v-sistec-features 1.31.0 → 1.31.2

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 ee, useSlots as Ze, inject as Oe, onMounted as Ie, h as be, computed as B, watch as Y, resolveComponent as Re, createElementBlock as r, openBlock as e, Fragment as z, createCommentVNode as C, createElementVNode as c, withModifiers as he, createBlock as $, resolveDynamicComponent as V, unref as l, withDirectives as ze, withKeys as et, vModelText as Pe, renderList as N, withCtx as R, createTextVNode as H, toDisplayString as O, normalizeClass as S, ref as I, nextTick as we, normalizeProps as Te, mergeProps as xe, Comment as tt, Text as at, provide as nt, readonly as ye, renderSlot as F, Teleport as de, createVNode as le, TransitionGroup as st, Transition as lt, normalizeStyle as ot } from "vue";
2
- import { _ as ue, P as rt } from "./Pagination-DtVDFQ07.js";
3
- import it from "vuedraggable";
4
- import { D as dt } from "./datatableConfig-BMFlKtgh.js";
5
- const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
1
+ import { defineComponent as ee, useSlots as Re, inject as Oe, onMounted as Ie, h as be, computed as B, watch as Y, resolveComponent as et, createElementBlock as r, openBlock as e, Fragment as I, createCommentVNode as C, createElementVNode as c, withModifiers as he, createBlock as $, resolveDynamicComponent as V, unref as l, withDirectives as ze, withKeys as tt, vModelText as De, renderList as N, withCtx as R, createTextVNode as H, toDisplayString as O, normalizeClass as S, ref as z, nextTick as we, normalizeProps as Te, mergeProps as xe, Comment as at, Text as nt, mergeDefaults as st, provide as lt, readonly as ye, renderSlot as F, Teleport as de, createVNode as le, TransitionGroup as ot, Transition as rt, normalizeStyle as it } from "vue";
2
+ import { _ as ue, P as dt } from "./Pagination-DtVDFQ07.js";
3
+ import ut from "vuedraggable";
4
+ import { D as ct } from "./datatableConfig-BMFlKtgh.js";
5
+ const Pe = Symbol("v-datatable-key"), Da = /* @__PURE__ */ ee({
6
6
  __name: "VColumn",
7
7
  props: {
8
8
  field: { default: null },
@@ -26,7 +26,7 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
26
26
  disable_hide: { type: Boolean, default: !1 }
27
27
  },
28
28
  setup(d) {
29
- const m = crypto.randomUUID(), s = d, a = Ze(), _ = Oe(De);
29
+ const m = crypto.randomUUID(), s = d, a = Re(), _ = Oe(Pe);
30
30
  if (!_)
31
31
  throw new Error("VColumn deve ser usado dentro de um VDataTable.");
32
32
  const p = ["text", "img", "date", "html"];
@@ -78,8 +78,8 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
78
78
  });
79
79
  }), (x, g) => null;
80
80
  }
81
- }), ut = new DOMParser(), ct = (d) => {
82
- const s = ut.parseFromString(d, "image/svg+xml").documentElement;
81
+ }), _t = new DOMParser(), pt = (d) => {
82
+ const s = _t.parseFromString(d, "image/svg+xml").documentElement;
83
83
  if (s.tagName.toLowerCase() !== "svg")
84
84
  return () => be("span", {
85
85
  style: {
@@ -94,11 +94,11 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
94
94
  a[p.name] = p.value;
95
95
  const _ = s.innerHTML;
96
96
  return (p, { attrs: x }) => {
97
- const g = a.class || "", T = x.class || "", v = [g, T].filter(Boolean).join(" "), { class: k, ...h } = a, { class: o, ...P } = x;
97
+ const g = a.class || "", T = x.class || "", v = [g, T].filter(Boolean).join(" "), { class: k, ...h } = a, { class: o, ...D } = x;
98
98
  return be("svg", {
99
99
  ...h,
100
100
  ...p,
101
- ...P,
101
+ ...D,
102
102
  class: v,
103
103
  innerHTML: _
104
104
  });
@@ -107,7 +107,7 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
107
107
  const m = {};
108
108
  for (const s in d) {
109
109
  const a = d[s];
110
- typeof a == "string" ? m[s] = ct(a) : typeof a == "object" && a !== null && (m[s] = oe(a));
110
+ typeof a == "string" ? m[s] = pt(a) : typeof a == "object" && a !== null && (m[s] = oe(a));
111
111
  }
112
112
  return m;
113
113
  }, ce = {
@@ -129,13 +129,13 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
129
129
  increasing: ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <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> </svg> '
130
130
  },
131
131
  column_manager: ' <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-columns" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M4 6l5.5 0" /> <path d="M4 10l5.5 0" /> <path d="M4 14l5.5 0" /> <path d="M4 18l5.5 0" /> <path d="M14.5 6l5.5 0" /> <path d="M14.5 10l5.5 0" /> <path d="M14.5 14l5.5 0" /> <path d="M14.5 18l5.5 0" /> </svg> '
132
- }, _t = { class: "input-icon" }, pt = ["placeholder"], mt = {
132
+ }, mt = { class: "input-icon" }, gt = ["placeholder"], vt = {
133
133
  key: 1,
134
134
  class: "input-icon-addon"
135
- }, gt = {
135
+ }, ft = {
136
136
  key: 1,
137
137
  class: "dropdown-menu"
138
- }, vt = ["onClick"], ft = ["onClick"], ht = /* @__PURE__ */ ee({
138
+ }, ht = ["onClick"], yt = ["onClick"], kt = /* @__PURE__ */ ee({
139
139
  __name: "SearchDatatable",
140
140
  props: {
141
141
  search: {},
@@ -160,8 +160,8 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
160
160
  }), Y(
161
161
  () => a.list_filter,
162
162
  (h) => {
163
- Array.isArray(h) ? (h.forEach((o, P) => {
164
- o?.type === 1 && !o.to && console.error(`Filtro na posição ${P} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
163
+ Array.isArray(h) ? (h.forEach((o, D) => {
164
+ o?.type === 1 && !o.to && console.error(`Filtro na posição ${D} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
165
165
  }), a.item_use.includes(2) && h.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.");
166
166
  },
167
167
  { immediate: !0, deep: !0 }
@@ -179,8 +179,8 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
179
179
  a.deactivate_search_empty && p.value.trim() === "" || _("search");
180
180
  }
181
181
  return (h, o) => {
182
- const P = Re("router-link");
183
- return e(), r(z, null, [
182
+ const D = et("router-link");
183
+ return e(), r(I, null, [
184
184
  d.item_use.includes(2) ? (e(), r("a", {
185
185
  key: 0,
186
186
  onClick: o[0] || (o[0] = he(() => {
@@ -192,16 +192,16 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
192
192
  }, [
193
193
  (e(), $(V(l(s).search.filter)))
194
194
  ])) : C("", !0),
195
- c("div", _t, [
195
+ c("div", mt, [
196
196
  ze(c("input", {
197
197
  type: "text",
198
198
  class: "form-control ms-1",
199
199
  id: "inputSearchVDataTable",
200
200
  "onUpdate:modelValue": o[1] || (o[1] = (y) => p.value = y),
201
- onKeyup: et(k, ["enter"]),
201
+ onKeyup: tt(k, ["enter"]),
202
202
  placeholder: d.placeholder_search
203
- }, null, 40, pt), [
204
- [Pe, p.value]
203
+ }, null, 40, gt), [
204
+ [De, p.value]
205
205
  ]),
206
206
  p.value ? (e(), r("span", {
207
207
  key: 0,
@@ -210,13 +210,13 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
210
210
  title: "Limpar pesquisa"
211
211
  }, [
212
212
  (e(), $(V(l(s).search.clear)))
213
- ])) : (e(), r("span", mt, [
213
+ ])) : (e(), r("span", vt, [
214
214
  (e(), $(V(l(s).search.loupe)))
215
215
  ]))
216
216
  ]),
217
- d.item_use.includes(2) ? (e(), r("div", gt, [
218
- (e(!0), r(z, null, N(a.list_filter, (y, b) => (e(), r(z, { key: b }, [
219
- "type" in y && y.type === 1 && (!("visible" in y) || y.visible) ? (e(), $(P, {
217
+ d.item_use.includes(2) ? (e(), r("div", ft, [
218
+ (e(!0), r(I, null, N(a.list_filter, (y, b) => (e(), r(I, { key: b }, [
219
+ "type" in y && y.type === 1 && (!("visible" in y) || y.visible) ? (e(), $(D, {
220
220
  key: 0,
221
221
  to: y?.to,
222
222
  class: "dropdown-item cursor-pointer"
@@ -229,17 +229,20 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
229
229
  key: 1,
230
230
  onClick: he((L) => g(String(y.value)), ["prevent"]),
231
231
  class: S(["dropdown-item cursor-pointer", x.value === y?.value ? "bg-info text-dark selected" : ""])
232
- }, O(y.text), 11, vt)) : (!("type" in y) || y.type === 3) && (!("visible" in y) || y.visible) ? (e(), r("a", {
232
+ }, O(y.text), 11, ht)) : (!("type" in y) || y.type === 3) && (!("visible" in y) || y.visible) ? (e(), r("a", {
233
233
  key: 2,
234
234
  onClick: he((L) => v(y), ["prevent"]),
235
235
  class: S(["dropdown-item cursor-pointer", y?.active ? "bg-info text-dark selected" : ""])
236
- }, O(y.text), 11, ft)) : C("", !0)
236
+ }, O(y.text), 11, yt)) : C("", !0)
237
237
  ], 64))), 128))
238
238
  ])) : C("", !0)
239
239
  ], 64);
240
240
  };
241
241
  }
242
- }), yt = /* @__PURE__ */ ue(ht, [["__scopeId", "data-v-6a2b24b1"]]), kt = { class: "d-flex justify-content-between align-items-center mb-1 w-100" }, bt = { class: "d-flex flex-column gap-2" }, wt = ["checked", "disabled", "onChange"], xt = { class: "form-check-label user-select-none" }, Ct = /* @__PURE__ */ ee({
242
+ }), bt = /* @__PURE__ */ ue(kt, [["__scopeId", "data-v-6a2b24b1"]]), wt = { class: "d-flex justify-content-between align-items-center mb-1 w-100" }, xt = { class: "d-flex flex-column gap-2" }, Ct = {
243
+ key: 0,
244
+ class: "form-check cursor-pointer m-0"
245
+ }, St = ["checked", "disabled", "onChange"], Mt = { class: "form-check-label user-select-none" }, $t = /* @__PURE__ */ ee({
243
246
  __name: "VColumnManager",
244
247
  props: {
245
248
  columns_list: { default: () => [] },
@@ -281,7 +284,7 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
281
284
  ]]),
282
285
  style: { "min-width": "220px", "z-index": "1050" }
283
286
  }, [
284
- c("div", kt, [
287
+ c("div", wt, [
285
288
  a[2] || (a[2] = c("h6", { class: "dropdown-header text-uppercase fw-bold m-0 p-0" }, "Exibir Colunas", -1)),
286
289
  c("button", {
287
290
  title: "resetar",
@@ -313,27 +316,28 @@ const De = Symbol("v-datatable-key"), Ia = /* @__PURE__ */ ee({
313
316
  ])])
314
317
  ]),
315
318
  a[3] || (a[3] = c("div", { class: "dropdown-divider my-3" }, null, -1)),
316
- c("div", bt, [
317
- (e(!0), r(z, null, N(d.columns_list, (_) => (e(), r("label", {
318
- key: _.id,
319
- class: "form-check cursor-pointer m-0"
319
+ c("div", xt, [
320
+ (e(!0), r(I, null, N(d.columns_list, (_) => (e(), r(I, {
321
+ key: _.id
320
322
  }, [
321
- c("input", {
322
- class: "form-check-input",
323
- type: "checkbox",
324
- checked: _.visible,
325
- disabled: _.disable_hide,
326
- onChange: (p) => d.toggleColumnVisibility(_.id)
327
- }, null, 40, wt),
328
- c("span", xt, O(_.header), 1)
329
- ]))), 128))
323
+ _.disable_hide ? C("", !0) : (e(), r("label", Ct, [
324
+ c("input", {
325
+ class: "form-check-input",
326
+ type: "checkbox",
327
+ checked: _.visible,
328
+ disabled: _.disable_hide,
329
+ onChange: (p) => d.toggleColumnVisibility(_.id)
330
+ }, null, 40, St),
331
+ c("span", Mt, O(_.header), 1)
332
+ ]))
333
+ ], 64))), 128))
330
334
  ])
331
335
  ], 2)
332
336
  ], 2)) : C("", !0);
333
337
  }
334
- }), St = /* @__PURE__ */ ue(Ct, [["__scopeId", "data-v-f0efff28"]]);
335
- function Mt() {
336
- const d = I(!1), m = I(""), s = I(0), a = I(0), _ = B(() => ({
338
+ }), Bt = /* @__PURE__ */ ue($t, [["__scopeId", "data-v-59363743"]]);
339
+ function Tt() {
340
+ const d = z(!1), m = z(""), s = z(0), a = z(0), _ = B(() => ({
337
341
  position: "fixed",
338
342
  zIndex: 9999,
339
343
  pointerEvents: "none",
@@ -341,9 +345,9 @@ function Mt() {
341
345
  left: `${s.value + 15}px`
342
346
  }));
343
347
  function p(v) {
344
- const k = v.clientX, h = v.clientY, o = window.innerHeight, P = 15, y = 300;
345
- let b = h + P;
346
- b + y > o && (b = h - y - P, b < 0 && (b = 0)), s.value = k, a.value = b;
348
+ const k = v.clientX, h = v.clientY, o = window.innerHeight, D = 15, y = 300;
349
+ let b = h + D;
350
+ b + y > o && (b = h - y - D, b < 0 && (b = 0)), s.value = k, a.value = b;
347
351
  }
348
352
  function x(v, k) {
349
353
  d.value = !0, m.value = k, p(v);
@@ -363,8 +367,8 @@ function Mt() {
363
367
  handleMouseLeave: T
364
368
  };
365
369
  }
366
- function $t(d, m, s, a) {
367
- const _ = I([]);
370
+ function Ot(d, m, s, a) {
371
+ const _ = z([]);
368
372
  function p() {
369
373
  _.value = [];
370
374
  }
@@ -373,7 +377,7 @@ function $t(d, m, s, a) {
373
377
  return _.value.some((h) => h === k);
374
378
  }
375
379
  function g(v) {
376
- const k = v[m], h = _.value.findIndex((P) => P === k), o = h > -1;
380
+ const k = v[m], h = _.value.findIndex((D) => D === k), o = h > -1;
377
381
  d ? (p(), o || (_.value.push(k), a && T(k))) : o ? _.value.splice(h, 1) : (_.value.push(k), a && T(k));
378
382
  }
379
383
  function T(v) {
@@ -396,8 +400,8 @@ function $t(d, m, s, a) {
396
400
  close_all_expanded_items: p
397
401
  };
398
402
  }
399
- function Bt(d, m, s, a, _, p) {
400
- const x = I([]), g = B(() => l(d)), T = B(() => g.value.endpoint), v = B(() => ({
403
+ function It(d, m, s, a, _, p) {
404
+ const x = z([]), g = B(() => l(d)), T = B(() => g.value.endpoint), v = B(() => ({
401
405
  [g.value.page_param_name]: m.value.current_page + 1,
402
406
  [g.value.page_size_param_name]: m.value.limit_per_page,
403
407
  [g.value.search_param_name]: m.value.search || "",
@@ -407,12 +411,12 @@ function Bt(d, m, s, a, _, p) {
407
411
  for (const f of s.value)
408
412
  f.use_ordering && (a.value[f.id] === "increasing" ? w[f.param_ordering] = f.increasing_value || "increasing" : a.value[f.id] === "decreasing" && (w[f.param_ordering] = f.decreasing_value || "decreasing"));
409
413
  return w;
410
- }), { data: h, pending: o, error: P, execute: y, attempt: b } = g.value.fetch(T, {
414
+ }), { data: h, pending: o, error: D, execute: y, attempt: b } = g.value.fetch(T, {
411
415
  disable_request: () => g.value.disable_request,
412
416
  params: () => {
413
417
  const w = typeof g.value.add_params == "function";
414
418
  let f = {};
415
- const D = typeof g.value.silent_params == "function";
419
+ const P = typeof g.value.silent_params == "function";
416
420
  let q = {};
417
421
  const Z = typeof g.value.add_params_keep_page == "function";
418
422
  let ne = {};
@@ -421,7 +425,7 @@ function Bt(d, m, s, a, _, p) {
421
425
  f = K();
422
426
  } else
423
427
  f = g.value.add_params || {};
424
- if (D) {
428
+ if (P) {
425
429
  const K = g.value.silent_params;
426
430
  q = K();
427
431
  } else
@@ -455,12 +459,12 @@ function Bt(d, m, s, a, _, p) {
455
459
  const f = g.value.custom_frontend_filter;
456
460
  if (f && typeof f == "function")
457
461
  w = w.filter(
458
- (D) => f(D, m.value.search, m.value.filter)
462
+ (P) => f(P, m.value.search, m.value.filter)
459
463
  );
460
464
  else if (m.value.search) {
461
- const D = m.value.search.toLowerCase();
465
+ const P = m.value.search.toLowerCase();
462
466
  w = w.filter((q) => Object.values(q).some(
463
- (Z) => Z != null && String(Z).toLowerCase().includes(D)
467
+ (Z) => Z != null && String(Z).toLowerCase().includes(P)
464
468
  ));
465
469
  }
466
470
  return w;
@@ -477,7 +481,7 @@ function Bt(d, m, s, a, _, p) {
477
481
  return x.value;
478
482
  const w = m.value.current_page * m.value.limit_per_page, f = w + m.value.limit_per_page;
479
483
  return L.value.slice(w, f);
480
- }), G = I(!1), te = I(null), X = I(!1), W = B(() => o.value || G.value);
484
+ }), G = z(!1), te = z(null), X = z(!1), W = B(() => o.value || G.value);
481
485
  async function Q() {
482
486
  X.value || (X.value = !0), te.value && clearTimeout(te.value), G.value = !0, te.value = setTimeout(() => {
483
487
  G.value = !1;
@@ -516,7 +520,7 @@ function Bt(d, m, s, a, _, p) {
516
520
  ), {
517
521
  items: M,
518
522
  pending: o,
519
- error: P,
523
+ error: D,
520
524
  execute: y,
521
525
  response: h,
522
526
  attempt: b,
@@ -528,8 +532,8 @@ function Bt(d, m, s, a, _, p) {
528
532
  raw_items: x
529
533
  };
530
534
  }
531
- function Tt(d, m) {
532
- const s = I(null), a = I([]), _ = (v) => {
535
+ function zt(d, m) {
536
+ const s = z(null), a = z([]), _ = (v) => {
533
537
  const k = d.item_key;
534
538
  return a.value.some((h) => h[k] === v[k]);
535
539
  }, p = B(() => {
@@ -571,7 +575,7 @@ function Tt(d, m) {
571
575
  toggleItemSelection: T
572
576
  };
573
577
  }
574
- const Ot = {
578
+ const Ee = {
575
579
  // Configurações de API
576
580
  fetch_name: "",
577
581
  custom_loading: null,
@@ -634,14 +638,14 @@ const Ot = {
634
638
  use_column_manager: !1,
635
639
  custom_frontend_filter: null
636
640
  };
637
- function It(d) {
638
- const m = Oe(dt, {});
641
+ function Dt(d) {
642
+ const m = Oe(ct, {});
639
643
  return { options: B(() => {
640
644
  const a = Object.fromEntries(
641
645
  Object.entries(d).filter(([_, p]) => p !== void 0)
642
646
  );
643
647
  return {
644
- ...Ot,
648
+ ...Ee,
645
649
  // 1º Camada: Prioridade Mínima (Valores Padrão)
646
650
  ...m,
647
651
  // 2º Camada: Prioridade Média (Valores Globais definidos por quem usa o plugin)
@@ -650,23 +654,23 @@ function It(d) {
650
654
  };
651
655
  }) };
652
656
  }
653
- const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et = {
657
+ const Pt = { class: "loading-container" }, Et = { key: 0 }, Vt = { key: 2 }, jt = {
654
658
  key: 5,
655
659
  class: "text-danger erro-custom-container"
656
- }, Vt = { class: "badge bg-orange text-white erro-custom-text" }, jt = { key: 0 }, Nt = { key: 2 }, At = {
660
+ }, Nt = { class: "badge bg-orange text-white erro-custom-text" }, At = { key: 0 }, Ht = { key: 2 }, Ft = {
657
661
  key: 5,
658
662
  class: "text-danger erro-custom-container"
659
- }, Ht = { class: "badge bg-orange text-white erro-custom-text" }, Ft = ["colspan"], Lt = {
663
+ }, Lt = { class: "badge bg-orange text-white erro-custom-text" }, qt = ["colspan"], Kt = {
660
664
  key: 0,
661
665
  class: "d-flex flex-column justify-content-center align-items-center",
662
666
  style: { height: "6rem" }
663
- }, qt = {
667
+ }, Ut = {
664
668
  key: 1,
665
669
  style: { height: "3rem" }
666
- }, Kt = {
670
+ }, Jt = {
667
671
  key: 2,
668
672
  class: "p-3 text-center text-secondary"
669
- }, Ut = /* @__PURE__ */ ee({
673
+ }, Yt = /* @__PURE__ */ ee({
670
674
  __name: "VDataTableLoading",
671
675
  props: {
672
676
  columns: {},
@@ -679,36 +683,36 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
679
683
  },
680
684
  setup(d) {
681
685
  const m = d;
682
- return (s, a) => (e(), r("div", zt, [
686
+ return (s, a) => (e(), r("div", Pt, [
683
687
  m.custom_loading ? (e(), $(V(m.custom_loading), { key: 0 })) : (e(), r("table", {
684
688
  key: 1,
685
689
  class: S(["table table-vcenter table-selectable", m.class_table])
686
690
  }, [
687
691
  c("thead", null, [
688
692
  c("tr", null, [
689
- (e(!0), r(z, null, N(d.columns, (_) => (e(), r("th", {
693
+ (e(!0), r(I, null, N(d.columns, (_) => (e(), r("th", {
690
694
  key: _.field || _.header,
691
695
  class: S(_.class_column)
692
696
  }, O(_.header), 3))), 128))
693
697
  ])
694
698
  ]),
695
699
  c("tbody", null, [
696
- m.type_loading === "placeholder" ? (e(!0), r(z, { key: 0 }, N(d.pagination.limit_per_page, (_) => (e(), r("tr", {
700
+ m.type_loading === "placeholder" ? (e(!0), r(I, { key: 0 }, N(d.pagination.limit_per_page, (_) => (e(), r("tr", {
697
701
  key: "placeholder-" + _,
698
702
  class: "placeholder-glow"
699
703
  }, [
700
- (e(!0), r(z, null, N(d.columns, (p) => (e(), r("td", {
704
+ (e(!0), r(I, null, N(d.columns, (p) => (e(), r("td", {
701
705
  key: p.field || p.header,
702
706
  class: S(p.class_row)
703
707
  }, [
704
- p.bodySlot ? (e(), r("span", Pt, [...a[0] || (a[0] = [
708
+ p.bodySlot ? (e(), r("span", Et, [...a[0] || (a[0] = [
705
709
  c("span", { class: "placeholder col-8" }, null, -1)
706
710
  ])])) : p.type === "text" ? (e(), r("span", {
707
711
  key: 1,
708
712
  class: S(p.class_item)
709
713
  }, [...a[1] || (a[1] = [
710
714
  c("span", { class: "placeholder col-8" }, null, -1)
711
- ])], 2)) : p.type === "date" ? (e(), r("span", Dt, [...a[2] || (a[2] = [
715
+ ])], 2)) : p.type === "date" ? (e(), r("span", Vt, [...a[2] || (a[2] = [
712
716
  c("span", { class: "placeholder col-9" }, null, -1)
713
717
  ])])) : p.type === "html" ? (e(), r("div", {
714
718
  key: 3,
@@ -720,20 +724,20 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
720
724
  class: S(p.class_item)
721
725
  }, [...a[4] || (a[4] = [
722
726
  c("div", { class: "placeholder placeholder-img" }, null, -1)
723
- ])], 2)) : (e(), r("span", Et, [
727
+ ])], 2)) : (e(), r("span", jt, [
724
728
  a[5] || (a[5] = H("tipo ", -1)),
725
- c("span", Vt, O(p.type), 1),
729
+ c("span", Nt, O(p.type), 1),
726
730
  a[6] || (a[6] = H(" não suportado ", -1))
727
731
  ]))
728
732
  ], 2))), 128))
729
- ]))), 128)) : m.type_loading === "spiner-table" ? (e(!0), r(z, { key: 1 }, N(d.pagination.limit_per_page, (_) => (e(), r("tr", {
733
+ ]))), 128)) : m.type_loading === "spiner-table" ? (e(!0), r(I, { key: 1 }, N(d.pagination.limit_per_page, (_) => (e(), r("tr", {
730
734
  key: "placeholder-" + _
731
735
  }, [
732
- (e(!0), r(z, null, N(d.columns, (p) => (e(), r("td", {
736
+ (e(!0), r(I, null, N(d.columns, (p) => (e(), r("td", {
733
737
  key: p.field || p.header,
734
738
  class: S(p.class_row)
735
739
  }, [
736
- p.bodySlot ? (e(), r("span", jt, [...a[7] || (a[7] = [
740
+ p.bodySlot ? (e(), r("span", At, [...a[7] || (a[7] = [
737
741
  c("span", {
738
742
  class: "spinner-border spinner-border-sm",
739
743
  role: "status",
@@ -748,7 +752,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
748
752
  role: "status",
749
753
  "aria-hidden": "true"
750
754
  }, null, -1)
751
- ])], 2)) : p.type === "date" ? (e(), r("span", Nt, [...a[9] || (a[9] = [
755
+ ])], 2)) : p.type === "date" ? (e(), r("span", Ht, [...a[9] || (a[9] = [
752
756
  c("span", {
753
757
  class: "spinner-border spinner-border-sm",
754
758
  role: "status",
@@ -774,34 +778,34 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
774
778
  "aria-hidden": "true"
775
779
  })
776
780
  ], -1)
777
- ])], 2)) : (e(), r("span", At, [
781
+ ])], 2)) : (e(), r("span", Ft, [
778
782
  a[12] || (a[12] = H("tipo ", -1)),
779
- c("span", Ht, O(p.type), 1),
783
+ c("span", Lt, O(p.type), 1),
780
784
  a[13] || (a[13] = H(" não suportado ", -1))
781
785
  ]))
782
786
  ], 2))), 128))
783
- ]))), 128)) : m.type_loading === "spiner" ? (e(!0), r(z, { key: 2 }, N(d.pagination.limit_per_page, (_) => (e(), r("tr", { key: _ }, [
787
+ ]))), 128)) : m.type_loading === "spiner" ? (e(!0), r(I, { key: 2 }, N(d.pagination.limit_per_page, (_) => (e(), r("tr", { key: _ }, [
784
788
  c("td", {
785
789
  colspan: d.columns.length,
786
790
  class: "text-center p-0",
787
791
  style: { "border-bottom": "none" }
788
792
  }, [
789
- _ === Math.floor(d.pagination.limit_per_page / 2) + 1 ? (e(), r("div", Lt, [...a[14] || (a[14] = [
793
+ _ === Math.floor(d.pagination.limit_per_page / 2) + 1 ? (e(), r("div", Kt, [...a[14] || (a[14] = [
790
794
  c("div", {
791
795
  class: "spinner-border",
792
796
  style: { width: "3rem", height: "3rem" },
793
797
  role: "status"
794
798
  }, null, -1),
795
799
  c("span", { class: "mt-2" }, "Carregando...", -1)
796
- ])])) : (e(), r("div", qt))
797
- ], 8, Ft)
800
+ ])])) : (e(), r("div", Ut))
801
+ ], 8, qt)
798
802
  ]))), 128)) : C("", !0)
799
803
  ])
800
804
  ], 2)),
801
- d.attempt && d.attempt.current > 1 ? (e(), r("div", Kt, " A conexão falhou. Tentando novamente... (Tentativa " + O(d.attempt.current) + " de " + O(d.attempt.total) + ") ", 1)) : C("", !0)
805
+ d.attempt && d.attempt.current > 1 ? (e(), r("div", Jt, " A conexão falhou. Tentando novamente... (Tentativa " + O(d.attempt.current) + " de " + O(d.attempt.total) + ") ", 1)) : C("", !0)
802
806
  ]));
803
807
  }
804
- }), Jt = /* @__PURE__ */ ue(Ut, [["__scopeId", "data-v-3b019685"]]), Yt = /* @__PURE__ */ ee({
808
+ }), Gt = /* @__PURE__ */ ue(Yt, [["__scopeId", "data-v-3b019685"]]), Xt = /* @__PURE__ */ ee({
805
809
  __name: "VOrderingIcon",
806
810
  props: {
807
811
  orderings_state: {},
@@ -818,7 +822,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
818
822
  !a.orderings_state || a.orderings_state === "none" ? (e(), $(V(l(s).ordering.default), { key: 0 })) : a.orderings_state === "decreasing" ? (e(), $(V(l(s).ordering.decreasing), { key: 1 })) : a.orderings_state === "increasing" ? (e(), $(V(l(s).ordering.increasing), { key: 2 })) : C("", !0)
819
823
  ])) : C("", !0);
820
824
  }
821
- }), Gt = {
825
+ }), Wt = {
822
826
  key: 1,
823
827
  class: "d-flex justify-content-between align-items-center"
824
828
  }, ke = /* @__PURE__ */ ee({
@@ -833,7 +837,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
833
837
  },
834
838
  emits: ["toggleOrderingState"],
835
839
  setup(d, { emit: m }) {
836
- const s = d, a = () => be(Yt, {
840
+ const s = d, a = () => be(Xt, {
837
841
  orderings_state: s.orderings_state,
838
842
  use_ordering: s.use_ordering,
839
843
  onToggle: () => p("toggleOrderingState")
@@ -843,7 +847,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
843
847
  "header-locked-start": s.locked === "start",
844
848
  "header-locked-end": s.locked === !0 || s.locked === "end",
845
849
  [s.class_column]: !0
846
- })), p = m, x = (T) => !T || T.length === 0 ? !0 : T.every((v) => v.type === tt || v.type === at && typeof v.children == "string" && !v.children.trim() ? !0 : v.type === z || v.type === Symbol.for("v-fgt") || String(v.type) === "Symbol(Fragment)" ? x(v.children) : !1), g = B(() => {
850
+ })), p = m, x = (T) => !T || T.length === 0 ? !0 : T.every((v) => v.type === at || v.type === nt && typeof v.children == "string" && !v.children.trim() ? !0 : v.type === I || v.type === Symbol.for("v-fgt") || String(v.type) === "Symbol(Fragment)" ? x(v.children) : !1), g = B(() => {
847
851
  if (!s.col || !s.col.colHeaderSlot) return !1;
848
852
  const T = s.col.colHeaderSlot({ col: s.col, locked: s.locked });
849
853
  return !x(T);
@@ -854,7 +858,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
854
858
  c("div", {
855
859
  class: S({ "header-ordering": d.use_ordering })
856
860
  }, [
857
- g.value ? (e(), $(V(d.col.colHeaderSlot), Te(xe({ key: 0 }, { col: s.col, locked: s.locked, OrderingComponent: a })), null, 16)) : (e(), r("div", Gt, [
861
+ g.value ? (e(), $(V(d.col.colHeaderSlot), Te(xe({ key: 0 }, { col: s.col, locked: s.locked, OrderingComponent: a })), null, 16)) : (e(), r("div", Wt, [
858
862
  c("span", null, O(s.header), 1),
859
863
  d.col.colHeaderMidleSlot ? (e(), $(V(d.col.colHeaderMidleSlot), Te(xe({ key: 0 }, { col: s.col, locked: s.locked })), null, 16)) : C("", !0),
860
864
  (e(), $(V(a)))
@@ -862,40 +866,40 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
862
866
  ], 2)
863
867
  ], 2));
864
868
  }
865
- }), Xt = { class: "mx-2 d-inline-block" }, Wt = { class: "dropdown d-flex" }, Qt = {
869
+ }), Qt = { class: "mx-2 d-inline-block" }, Zt = { class: "dropdown d-flex" }, Rt = {
866
870
  key: 0,
867
871
  class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
868
872
  role: "alert"
869
- }, Zt = { class: "alert-title m-0" }, Rt = { class: "badge bg-azure text-azure-fg" }, ea = {
873
+ }, ea = { class: "alert-title m-0" }, ta = { class: "badge bg-azure text-azure-fg" }, aa = {
870
874
  key: 1,
871
875
  class: "feedback-container text-center"
872
- }, ta = {
876
+ }, na = {
873
877
  key: 0,
874
878
  class: "text-secondary"
875
- }, aa = {
879
+ }, sa = {
876
880
  key: 1,
877
881
  class: "text-secondary"
878
- }, na = {
882
+ }, la = {
879
883
  key: 2,
880
884
  class: "table-responsive"
881
- }, sa = { key: 0 }, la = { key: 0 }, oa = {
885
+ }, oa = { key: 0 }, ra = { key: 0 }, ia = {
882
886
  key: 1,
883
887
  class: "w-1"
884
- }, ra = {
888
+ }, da = {
885
889
  key: 0,
886
890
  class: "w-1"
887
- }, ia = ["onClick"], da = {
891
+ }, ua = ["onClick"], ca = {
888
892
  key: 1,
889
893
  class: "w-1"
890
- }, ua = ["checked", "onChange"], ca = ["onClick"], _a = ["onClick"], pa = { key: 0 }, ma = { key: 1 }, ga = ["onClick", "innerHTML"], va = ["onClick"], fa = ["src"], ha = ["src"], ya = {
894
+ }, _a = ["checked", "onChange"], pa = ["onClick"], ma = ["onClick"], ga = { key: 0 }, va = { key: 1 }, fa = ["onClick", "innerHTML"], ha = ["onClick"], ya = ["src"], ka = ["src"], ba = {
891
895
  key: 5,
892
896
  class: "text-danger erro-custom-container"
893
- }, ka = { class: "badge bg-orange text-white erro-custom-text" }, ba = ["id"], wa = ["colspan"], xa = { key: 1 }, Ca = {
897
+ }, wa = { class: "badge bg-orange text-white erro-custom-text" }, xa = ["id"], Ca = ["colspan"], Sa = { key: 1 }, Ma = {
894
898
  key: 2,
895
899
  class: "text-center p-4 text-secondary"
896
- }, Sa = ["src"], Ma = /* @__PURE__ */ ee({
900
+ }, $a = ["src"], Ba = /* @__PURE__ */ ee({
897
901
  __name: "VDataTable",
898
- props: {
902
+ props: /* @__PURE__ */ st({
899
903
  fetch: { type: Function },
900
904
  endpoint: {},
901
905
  fetch_name: {},
@@ -953,17 +957,17 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
953
957
  pagination_teleport: {},
954
958
  extra_actions_teleport: {},
955
959
  column_manager_teleport: {}
956
- },
960
+ }, Ee),
957
961
  emits: ["tradePage", "beforeFetch", "afterFetch", "clickedClearSearch"],
958
962
  setup(d, { expose: m, emit: s }) {
959
- const a = oe(ce), _ = I(!1), {
963
+ const a = oe(ce), _ = z(!1), {
960
964
  isHovering: p,
961
965
  previewSrc: x,
962
966
  previewStyle: g,
963
967
  handleMouseOver: T,
964
968
  handleMouseMove: v,
965
969
  handleMouseLeave: k
966
- } = Mt(), h = d, { options: o } = It(h), P = s, y = I({}), b = I([]), L = I(!1), M = I({
970
+ } = Tt(), h = d, { options: o } = Dt(h), D = s, y = z({}), b = z([]), L = z(!1), M = z({
967
971
  current_page: o.value.page_starts_at,
968
972
  // pagina atual
969
973
  count: 0,
@@ -978,7 +982,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
978
982
  expand_item_toggle: G,
979
983
  close_all_expanded_items: te,
980
984
  is_item_expanded: X
981
- } = $t(
985
+ } = Ot(
982
986
  o.value.close_expanded_item_on_expand_new,
983
987
  o.value.item_key,
984
988
  o.value.deactivate_animation_expand,
@@ -989,19 +993,19 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
989
993
  attempt: ae,
990
994
  default_params: w,
991
995
  fetchDataWithDelay: f,
992
- reSearch: D,
996
+ reSearch: P,
993
997
  showLoadingState: q,
994
998
  first_fetch: Z,
995
999
  raw_items: ne
996
- } = Bt(o, M, b, y, P, te), {
1000
+ } = It(o, M, b, y, D, te), {
997
1001
  selectAllCheckbox: K,
998
1002
  selected_items: se,
999
1003
  isSelected: Ce,
1000
- atLeastOneSelected: Ee,
1004
+ atLeastOneSelected: Ve,
1001
1005
  toggleSelectAll: Se,
1002
- toggleItemSelection: Ve
1003
- } = Tt(o.value, W), U = B(() => o.value.storage_id ? `vdatatable_${o.value.storage_id}_${o.value.endpoint}` : null), _e = I([]);
1004
- function je() {
1006
+ toggleItemSelection: je
1007
+ } = zt(o.value, W), U = B(() => o.value.storage_id ? `vdatatable_${o.value.storage_id}_${o.value.endpoint}` : null), _e = z([]);
1008
+ function Ne() {
1005
1009
  for (const n of b.value) {
1006
1010
  let i = "";
1007
1011
  const t = b.value.filter((E) => E.field === n.field).length;
@@ -1026,7 +1030,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1026
1030
  }));
1027
1031
  localStorage.setItem(U.value, JSON.stringify(n));
1028
1032
  }
1029
- function Ne() {
1033
+ function Ae() {
1030
1034
  if (!U.value) return;
1031
1035
  const n = localStorage.getItem(U.value);
1032
1036
  if (n)
@@ -1038,7 +1042,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1038
1042
  }
1039
1043
  const u = [];
1040
1044
  for (const j of i) {
1041
- const A = b.value.find((Qe) => Qe.storage_key === j.storage_key);
1045
+ const A = b.value.find((Ze) => Ze.storage_key === j.storage_key);
1042
1046
  A && (A.disable_hide ? A.visible = !0 : A.visible = j.visible, u.push(A));
1043
1047
  }
1044
1048
  b.value.splice(0, b.value.length, ...u);
@@ -1046,7 +1050,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1046
1050
  localStorage.removeItem(U.value);
1047
1051
  }
1048
1052
  }
1049
- function Ae() {
1053
+ function He() {
1050
1054
  if (U.value && localStorage.removeItem(U.value), _e.value.length > 0) {
1051
1055
  const n = [];
1052
1056
  for (const i of _e.value) {
@@ -1068,7 +1072,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1068
1072
  const i = b.value.filter((u) => u.locked === "start"), t = b.value.filter((u) => u.locked === !0 || u.locked === "end"), E = b.value.filter((u) => !u.locked && u.visible === !1);
1069
1073
  b.value.splice(0, b.value.length, ...i, ...n, ...E, ...t), pe();
1070
1074
  }
1071
- }), He = B(() => [...Me.value, ...me.value, ...$e.value]), ge = B(() => b.value.map((n) => ({
1075
+ }), Fe = B(() => [...Me.value, ...me.value, ...$e.value]), ge = B(() => b.value.map((n) => ({
1072
1076
  id: n.id,
1073
1077
  header: n.header,
1074
1078
  field: n.field,
@@ -1082,22 +1086,22 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1082
1086
  const i = b.value.find((t) => t.id === n);
1083
1087
  i && (i.visible = !i.visible, pe());
1084
1088
  }
1085
- const Fe = B(() => {
1089
+ const Le = B(() => {
1086
1090
  let n = [1];
1087
1091
  return o.value.list_filter.length > 0 && n.push(2), n;
1088
1092
  }), re = B(() => W.value.length > 0);
1089
- function Le() {
1093
+ function qe() {
1090
1094
  setTimeout(() => {
1091
1095
  L.value = !1;
1092
1096
  }, 500);
1093
1097
  }
1094
- function qe(n) {
1098
+ function Ke(n) {
1095
1099
  b.value.push(n);
1096
1100
  }
1097
- nt(De, { addColumn: qe });
1101
+ lt(Pe, { addColumn: Ke });
1098
1102
  const Be = (n) => {
1099
1103
  const i = n.target, t = parseInt(i.value, 10);
1100
- t > 0 && (M.value.limit_per_page = t, M.value.limit_per_page = t, D());
1104
+ t > 0 && (M.value.limit_per_page = t, M.value.limit_per_page = t, P());
1101
1105
  };
1102
1106
  function J(n, i, t = null) {
1103
1107
  if (!n) return i;
@@ -1107,33 +1111,33 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1107
1111
  u && typeof u == "object" && j in u ? u = u[j] : console.error(`Caminho inválido ou valor nulo em: ${n} na parte ${j}`);
1108
1112
  return t && (u = t(u)), u;
1109
1113
  }
1110
- function Ke(n, i) {
1114
+ function Ue(n, i) {
1111
1115
  return i && typeof i == "number" && i > 0 && typeof n == "string" && n.length > i ? n.substring(0, i) + "..." : n;
1112
1116
  }
1113
1117
  function fe(n) {
1114
1118
  for (const t in y.value)
1115
1119
  t !== n && (y.value[t] = "none");
1116
1120
  const i = y.value[n] || "none";
1117
- i === "none" ? y.value[n] = "increasing" : i === "increasing" ? y.value[n] = "decreasing" : y.value[n] = "none", D();
1118
- }
1119
- function Ue(n) {
1120
- n > 0 ? (M.value.limit_per_page = n, D()) : console.warn("O limite deve ser um número maior que zero.");
1121
+ i === "none" ? y.value[n] = "increasing" : i === "increasing" ? y.value[n] = "decreasing" : y.value[n] = "none", P();
1121
1122
  }
1122
1123
  function Je(n) {
1123
- M.value.search = n, D();
1124
+ n > 0 ? (M.value.limit_per_page = n, P()) : console.warn("O limite deve ser um número maior que zero.");
1124
1125
  }
1125
1126
  function Ye(n) {
1126
- M.value.filter = n, D();
1127
+ M.value.search = n, P();
1127
1128
  }
1128
1129
  function Ge(n) {
1130
+ M.value.filter = n, P();
1131
+ }
1132
+ function Xe(n) {
1129
1133
  n >= 0 && n <= Math.ceil(M.value.count / M.value.limit_per_page) ? (M.value.current_page = n, f()) : console.warn("Número de página inválido.");
1130
1134
  }
1131
- function Xe() {
1135
+ function We() {
1132
1136
  let n = b.value.length;
1133
1137
  return o.value.use_checkbox && (n += 1), o.value.use_expandable_items && (n += 1), n;
1134
1138
  }
1135
- function We() {
1136
- P("tradePage"), f();
1139
+ function Qe() {
1140
+ D("tradePage"), f();
1137
1141
  }
1138
1142
  const ie = (n, i) => {
1139
1143
  const t = [n.class_item || ""];
@@ -1144,15 +1148,15 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1144
1148
  };
1145
1149
  return m({
1146
1150
  execute: f,
1147
- reSearch: D,
1151
+ reSearch: P,
1148
1152
  pagination: ye(M),
1149
- set_limit_per_page: Ue,
1150
- set_search: Je,
1151
- set_filter: Ye,
1152
- set_page: Ge,
1153
+ set_limit_per_page: Je,
1154
+ set_search: Ye,
1155
+ set_filter: Ge,
1156
+ set_page: Xe,
1153
1157
  default_params: w,
1154
1158
  selected_items: se,
1155
- atLeastOneSelected: Ee,
1159
+ atLeastOneSelected: Ve,
1156
1160
  expand_item_toggle: G,
1157
1161
  close_all_expanded_items: te,
1158
1162
  selectAllCheckbox: K,
@@ -1162,9 +1166,9 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1162
1166
  results: ye(ne)
1163
1167
  }), Ie(() => {
1164
1168
  _.value = !0, o.value.immediate && we(() => {
1165
- D();
1169
+ P();
1166
1170
  }), we(() => {
1167
- o.value.storage_id && (je(), Ne());
1171
+ o.value.storage_id && (Ne(), Ae());
1168
1172
  });
1169
1173
  }), (n, i) => (e(), r("div", null, [
1170
1174
  c("div", {
@@ -1185,7 +1189,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1185
1189
  class: S(["text-secondary", l(o).class_page_size])
1186
1190
  }, [
1187
1191
  H(O(l(o).first_text_page_size) + " ", 1),
1188
- c("div", Xt, [
1192
+ c("div", Qt, [
1189
1193
  ze(c("input", {
1190
1194
  class: "form-control form-control-sm",
1191
1195
  onChange: Be,
@@ -1196,7 +1200,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1196
1200
  type: "number"
1197
1201
  }, null, 544), [
1198
1202
  [
1199
- Pe,
1203
+ De,
1200
1204
  M.value.limit_per_page,
1201
1205
  void 0,
1202
1206
  { lazy: !0 }
@@ -1207,21 +1211,21 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1207
1211
  ], 2)
1208
1212
  ], !0),
1209
1213
  F(n.$slots, "fieldMiddle", {}, void 0, !0),
1210
- c("div", Wt, [
1214
+ c("div", Zt, [
1211
1215
  _.value ? (e(), $(de, {
1212
1216
  key: 0,
1213
1217
  to: l(o).search_teleport || "body",
1214
1218
  disabled: !l(o).search_teleport
1215
1219
  }, [
1216
- l(o).disable_search ? C("", !0) : (e(), $(yt, {
1220
+ l(o).disable_search ? C("", !0) : (e(), $(bt, {
1217
1221
  key: 0,
1218
1222
  search: M.value.search,
1219
1223
  "onUpdate:search": i[1] || (i[1] = (t) => M.value.search = t),
1220
1224
  filter: M.value.filter,
1221
1225
  "onUpdate:filter": i[2] || (i[2] = (t) => M.value.filter = t),
1222
1226
  list_filter: l(o).list_filter,
1223
- item_use: Fe.value,
1224
- onSearch: l(D),
1227
+ item_use: Le.value,
1228
+ onSearch: l(P),
1225
1229
  deactivate_search_on_clear: l(o).deactivate_search_on_clear,
1226
1230
  placeholder_search: l(o).placeholder_search,
1227
1231
  deactivate_search_empty: l(o).deactivate_search_empty,
@@ -1234,7 +1238,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1234
1238
  F(n.$slots, "search-field", {
1235
1239
  search: M.value.search,
1236
1240
  filter: M.value.filter,
1237
- reSearch: l(D)
1241
+ reSearch: l(P)
1238
1242
  }, void 0, !0)
1239
1243
  ]),
1240
1244
  _: 3
@@ -1245,7 +1249,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1245
1249
  to: l(o).column_manager_teleport || "body",
1246
1250
  disabled: !l(o).column_manager_teleport
1247
1251
  }, [
1248
- le(St, {
1252
+ le(Bt, {
1249
1253
  use_column_manager: l(o).use_column_manager,
1250
1254
  columns_list: ge.value,
1251
1255
  toggleColumnVisibility: ve,
@@ -1253,7 +1257,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1253
1257
  class_column_manager_button: l(o).class_column_manager_button,
1254
1258
  class_column_manager_dropdown_menu: l(o).class_column_manager_dropdown_menu,
1255
1259
  class_column_manager_dropdown: l(o).class_column_manager_dropdown,
1256
- resetColumnsState: Ae
1260
+ resetColumnsState: He
1257
1261
  }, null, 8, ["use_column_manager", "columns_list", "disable_class_column_manager_default", "class_column_manager_button", "class_column_manager_dropdown_menu", "class_column_manager_dropdown"])
1258
1262
  ], 8, ["to", "disabled"])) : C("", !0),
1259
1263
  _.value ? (e(), $(de, {
@@ -1269,11 +1273,11 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1269
1273
  selected_items: l(se),
1270
1274
  clearSelection: () => se.value = []
1271
1275
  }, () => [
1272
- l(o).use_checkbox && l(se).length > 0 && !l(o).deactivate_selected_info ? (e(), r("div", Qt, [
1273
- c("h4", Zt, [
1276
+ l(o).use_checkbox && l(se).length > 0 && !l(o).deactivate_selected_info ? (e(), r("div", Rt, [
1277
+ c("h4", ea, [
1274
1278
  i[10] || (i[10] = c("strong", null, "oi Itens Selecionados:", -1)),
1275
1279
  i[11] || (i[11] = H()),
1276
- c("span", Rt, O(l(se).length), 1)
1280
+ c("span", ta, O(l(se).length), 1)
1277
1281
  ]),
1278
1282
  c("a", {
1279
1283
  class: "cursor-pointer",
@@ -1284,7 +1288,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1284
1288
  ])
1285
1289
  ])) : C("", !0)
1286
1290
  ], !0),
1287
- l(q) ? (e(), $(Jt, {
1291
+ l(q) ? (e(), $(Gt, {
1288
1292
  key: 0,
1289
1293
  columns: b.value,
1290
1294
  limit: M.value.limit_per_page,
@@ -1293,21 +1297,21 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1293
1297
  class_table: l(o).class_table,
1294
1298
  attempt: l(ae),
1295
1299
  pagination: M.value
1296
- }, null, 8, ["columns", "limit", "type_loading", "custom_loading", "class_table", "attempt", "pagination"])) : l(Q) ? (e(), r("div", ea, [
1300
+ }, null, 8, ["columns", "limit", "type_loading", "custom_loading", "class_table", "attempt", "pagination"])) : l(Q) ? (e(), r("div", aa, [
1297
1301
  i[13] || (i[13] = c("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
1298
- l(ae) ? (e(), r("p", ta, " Não foi possível carregar os dados após " + O(l(ae).total) + " tentativa(s). ", 1)) : (e(), r("p", aa, " Não foi possível carregar os dados. Verifique sua conexão. ")),
1302
+ l(ae) ? (e(), r("p", na, " Não foi possível carregar os dados após " + O(l(ae).total) + " tentativa(s). ", 1)) : (e(), r("p", sa, " Não foi possível carregar os dados. Verifique sua conexão. ")),
1299
1303
  c("button", {
1300
1304
  class: "btn btn-primary mt-2",
1301
1305
  onClick: i[5] || (i[5] = //@ts-ignore
1302
1306
  (...t) => l(f) && l(f)(...t))
1303
1307
  }, " Tentar Novamente ")
1304
- ])) : l(W) ? (e(), r("div", na, [
1305
- re.value || l(o).show_header_when_empty ? (e(), r("div", sa, [
1308
+ ])) : l(W) ? (e(), r("div", la, [
1309
+ re.value || l(o).show_header_when_empty ? (e(), r("div", oa, [
1306
1310
  c("table", {
1307
1311
  class: S(["table table-vcenter table-selectable", l(o).class_table])
1308
1312
  }, [
1309
1313
  c("thead", null, [
1310
- le(l(it), {
1314
+ le(l(ut), {
1311
1315
  modelValue: me.value,
1312
1316
  "onUpdate:modelValue": i[7] || (i[7] = (t) => me.value = t),
1313
1317
  tag: "tr",
@@ -1316,11 +1320,11 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1316
1320
  "ghost-class": "ghost-item",
1317
1321
  "drag-class": "dragging-item",
1318
1322
  onStart: i[8] || (i[8] = (t) => L.value = !0),
1319
- onEnd: i[9] || (i[9] = () => Le())
1323
+ onEnd: i[9] || (i[9] = () => qe())
1320
1324
  }, {
1321
1325
  header: R(() => [
1322
- l(o).use_expandable_items ? (e(), r("th", la)) : C("", !0),
1323
- l(o).use_checkbox ? (e(), r("th", oa, [
1326
+ l(o).use_expandable_items ? (e(), r("th", ra)) : C("", !0),
1327
+ l(o).use_checkbox ? (e(), r("th", ia, [
1324
1328
  c("input", {
1325
1329
  class: "form-check-input m-0",
1326
1330
  type: "checkbox",
@@ -1331,7 +1335,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1331
1335
  "aria-label": "Selecionar todos os itens na página"
1332
1336
  }, null, 544)
1333
1337
  ])) : C("", !0),
1334
- (e(!0), r(z, null, N(Me.value, (t) => (e(), $(ke, {
1338
+ (e(!0), r(I, null, N(Me.value, (t) => (e(), $(ke, {
1335
1339
  key: t.field || t.header,
1336
1340
  header: t.header,
1337
1341
  class_column: t.class_column,
@@ -1354,7 +1358,7 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1354
1358
  }, null, 8, ["header", "class_column", "use_ordering", "orderings_state", "onToggleOrderingState", "col"])
1355
1359
  ]),
1356
1360
  footer: R(() => [
1357
- (e(!0), r(z, null, N($e.value, (t) => (e(), $(ke, {
1361
+ (e(!0), r(I, null, N($e.value, (t) => (e(), $(ke, {
1358
1362
  key: t.field || t.header,
1359
1363
  header: t.header,
1360
1364
  class_column: t.class_column,
@@ -1369,15 +1373,15 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1369
1373
  }, 8, ["modelValue"])
1370
1374
  ]),
1371
1375
  c("tbody", null, [
1372
- re.value ? (e(!0), r(z, { key: 0 }, N(l(W), (t, E) => (e(), r(z, {
1376
+ re.value ? (e(!0), r(I, { key: 0 }, N(l(W), (t, E) => (e(), r(I, {
1373
1377
  key: t[l(o).item_key]
1374
1378
  }, [
1375
- le(st, {
1379
+ le(ot, {
1376
1380
  tag: "tr",
1377
1381
  name: L.value ? "column-move" : ""
1378
1382
  }, {
1379
1383
  default: R(() => [
1380
- l(o).use_expandable_items ? (e(), r("td", ra, [
1384
+ l(o).use_expandable_items ? (e(), r("td", da, [
1381
1385
  F(n.$slots, "expand-button", {
1382
1386
  item: t,
1383
1387
  index: E,
@@ -1390,19 +1394,19 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1390
1394
  onClick: (u) => l(G)(t)
1391
1395
  }, [
1392
1396
  l(o).type_button_expand === "arrow" ? (e(), $(V(l(a).expand.arrow), { key: 0 })) : (e(), $(V(l(a).expand.plus), { key: 1 }))
1393
- ], 10, ia)
1397
+ ], 10, ua)
1394
1398
  ], !0)
1395
1399
  ])) : C("", !0),
1396
- l(o).use_checkbox ? (e(), r("td", da, [
1400
+ l(o).use_checkbox ? (e(), r("td", ca, [
1397
1401
  c("input", {
1398
1402
  class: "form-check-input m-0",
1399
1403
  type: "checkbox",
1400
1404
  checked: l(Ce)(t),
1401
- onChange: (u) => l(Ve)(t),
1405
+ onChange: (u) => l(je)(t),
1402
1406
  "aria-label": "Selecionar este item"
1403
- }, null, 40, ua)
1407
+ }, null, 40, _a)
1404
1408
  ])) : C("", !0),
1405
- (e(!0), r(z, null, N(He.value, (u, j) => (e(), r("td", {
1409
+ (e(!0), r(I, null, N(Fe.value, (u, j) => (e(), r("td", {
1406
1410
  key: u.field || u.header,
1407
1411
  class: S(u.class_row)
1408
1412
  }, [
@@ -1415,25 +1419,25 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1415
1419
  key: 1,
1416
1420
  onClick: (A) => u.click ? u.click(t) : null,
1417
1421
  class: S(ie(u, t))
1418
- }, O(Ke(J(u.field, t, u.transform_function), u.limite_text ?? null)), 11, ca)) : u.type === "date" ? (e(), r("span", {
1422
+ }, O(Ue(J(u.field, t, u.transform_function), u.limite_text ?? null)), 11, pa)) : u.type === "date" ? (e(), r("span", {
1419
1423
  key: 2,
1420
1424
  onClick: (A) => u.click ? u.click(t) : null,
1421
1425
  class: S(ie(u, t))
1422
1426
  }, [
1423
- u.format === "complete" ? (e(), r("span", pa, O(new Date(J(
1427
+ u.format === "complete" ? (e(), r("span", ga, O(new Date(J(
1424
1428
  u.field,
1425
1429
  t
1426
1430
  )).toLocaleString()), 1)) : C("", !0),
1427
- u.format === "simple" ? (e(), r("span", ma, O(new Date(J(
1431
+ u.format === "simple" ? (e(), r("span", va, O(new Date(J(
1428
1432
  u.field,
1429
1433
  t
1430
1434
  )).toLocaleDateString()), 1)) : C("", !0)
1431
- ], 10, _a)) : u.type === "html" ? (e(), r("div", {
1435
+ ], 10, ma)) : u.type === "html" ? (e(), r("div", {
1432
1436
  key: 3,
1433
1437
  onClick: (A) => u.click ? u.click(t) : null,
1434
1438
  class: S(ie(u, t)),
1435
1439
  innerHTML: J(u.field, t)
1436
- }, null, 10, ga)) : u.type === "img" ? (e(), r("div", {
1440
+ }, null, 10, fa)) : u.type === "img" ? (e(), r("div", {
1437
1441
  key: 4,
1438
1442
  onClick: (A) => u.click ? u.click(t) : null,
1439
1443
  class: S(ie(u, t))
@@ -1452,23 +1456,23 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1452
1456
  c("img", {
1453
1457
  class: "img-tamanho",
1454
1458
  src: J(u.field, t)
1455
- }, null, 8, fa),
1459
+ }, null, 8, ya),
1456
1460
  c("img", {
1457
1461
  class: "img-tamanho-cover",
1458
1462
  src: J(u.field, t)
1459
- }, null, 8, ha),
1463
+ }, null, 8, ka),
1460
1464
  i[14] || (i[14] = c("div", { class: "bg-img" }, null, -1))
1461
1465
  ], 16)) : C("", !0)
1462
- ], 10, va)) : (e(), r("span", ya, [
1466
+ ], 10, ha)) : (e(), r("span", ba, [
1463
1467
  i[15] || (i[15] = H("tipo ", -1)),
1464
- c("span", ka, O(u.type), 1),
1468
+ c("span", wa, O(u.type), 1),
1465
1469
  i[16] || (i[16] = H(" não suportado", -1))
1466
1470
  ]))
1467
1471
  ], 2))), 128))
1468
1472
  ]),
1469
1473
  _: 2
1470
1474
  }, 1032, ["name"]),
1471
- le(lt, {
1475
+ le(rt, {
1472
1476
  name: "expand-item-" + l(o).type_animation_expand,
1473
1477
  css: !l(o).deactivate_animation_expand
1474
1478
  }, {
@@ -1479,11 +1483,11 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1479
1483
  class: "expanded-item-row"
1480
1484
  }, [
1481
1485
  c("td", {
1482
- colspan: Xe()
1486
+ colspan: We()
1483
1487
  }, [
1484
1488
  F(n.$slots, "after-row", { item: t }, void 0, !0)
1485
- ], 8, wa)
1486
- ], 8, ba)) : C("", !0)
1489
+ ], 8, Ca)
1490
+ ], 8, xa)) : C("", !0)
1487
1491
  ]),
1488
1492
  _: 2
1489
1493
  }, 1032, ["name", "css"])
@@ -1491,9 +1495,9 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1491
1495
  ])
1492
1496
  ], 2)
1493
1497
  ])) : C("", !0),
1494
- !re.value && l(Z) === !1 ? (e(), r("div", xa, [
1498
+ !re.value && l(Z) === !1 ? (e(), r("div", Sa, [
1495
1499
  F(n.$slots, "idle-state", {}, void 0, !0)
1496
- ])) : re.value ? C("", !0) : (e(), r("div", Ca, [...i[17] || (i[17] = [
1500
+ ])) : re.value ? C("", !0) : (e(), r("div", Ma, [...i[17] || (i[17] = [
1497
1501
  c("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
1498
1502
  ])]))
1499
1503
  ])) : C("", !0)
@@ -1513,11 +1517,11 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1513
1517
  key: 0,
1514
1518
  class: S(["px-3", l(o).class_pagination])
1515
1519
  }, [
1516
- le(rt, {
1520
+ le(dt, {
1517
1521
  page_starts_at: l(o).page_starts_at,
1518
1522
  filtering: !0,
1519
1523
  pagination: M.value,
1520
- onTradePage: We
1524
+ onTradePage: Qe
1521
1525
  }, null, 8, ["page_starts_at", "pagination"])
1522
1526
  ], 2)) : C("", !0)
1523
1527
  ], !0)
@@ -1525,18 +1529,18 @@ const zt = { class: "loading-container" }, Pt = { key: 0 }, Dt = { key: 2 }, Et
1525
1529
  l(p) ? (e(), r("div", {
1526
1530
  key: 1,
1527
1531
  class: "image-preview-container",
1528
- style: ot(l(g))
1532
+ style: it(l(g))
1529
1533
  }, [
1530
1534
  c("img", {
1531
1535
  src: l(x),
1532
1536
  alt: "Preview",
1533
1537
  class: "image-preview-large"
1534
- }, null, 8, Sa)
1538
+ }, null, 8, $a)
1535
1539
  ], 4)) : C("", !0)
1536
1540
  ]));
1537
1541
  }
1538
- }), za = /* @__PURE__ */ ue(Ma, [["__scopeId", "data-v-e9aa7f50"]]);
1542
+ }), Pa = /* @__PURE__ */ ue(Ba, [["__scopeId", "data-v-3238c4c3"]]);
1539
1543
  export {
1540
- Ia as VColumn,
1541
- za as VDataTable
1544
+ Da as VColumn,
1545
+ Pa as VDataTable
1542
1546
  };