v-sistec-features 1.28.0 → 1.30.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 R, useSlots as Ye, inject as Me, onMounted as $e, h as me, computed as T, watch as W, resolveComponent as Ge, createElementBlock as r, openBlock as e, Fragment as D, createCommentVNode as b, createElementVNode as _, withModifiers as pe, createBlock as $, resolveDynamicComponent as V, unref as t, withDirectives as Be, withKeys as Xe, vModelText as Te, renderList as A, withCtx as X, createTextVNode as H, toDisplayString as z, normalizeClass as w, ref as O, nextTick as ge, normalizeProps as Ce, mergeProps as ve, Comment as We, Text as Re, provide as Qe, readonly as Ze, renderSlot as F, Teleport as oe, createVNode as te, TransitionGroup as et, Transition as tt, normalizeStyle as at } from "vue";
2
- import { _ as fe, P as nt } from "./Pagination-DtVDFQ07.js";
3
- import st from "vuedraggable";
4
- import { D as lt } from "./datatableConfig-BMFlKtgh.js";
5
- const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
1
+ import { defineComponent as R, useSlots as Xe, inject as Be, onMounted as Te, h as ve, computed as B, watch as J, resolveComponent as We, createElementBlock as r, openBlock as e, Fragment as E, createCommentVNode as C, createElementVNode as m, withModifiers as ge, createBlock as $, resolveDynamicComponent as V, unref as t, withDirectives as Oe, withKeys as Qe, vModelText as ze, renderList as j, withCtx as Z, createTextVNode as A, toDisplayString as O, normalizeClass as S, ref as I, nextTick as he, normalizeProps as Me, mergeProps as ye, Comment as Ze, Text as Re, provide as et, readonly as fe, renderSlot as H, Teleport as de, createVNode as le, TransitionGroup as tt, Transition as at, normalizeStyle as nt } from "vue";
2
+ import { _ as ke, P as st } from "./Pagination-DtVDFQ07.js";
3
+ import lt from "vuedraggable";
4
+ import { D as ot } from "./datatableConfig-BMFlKtgh.js";
5
+ const Ie = Symbol("v-datatable-key"), Ma = /* @__PURE__ */ R({
6
6
  __name: "VColumn",
7
7
  props: {
8
8
  field: { default: null },
@@ -25,16 +25,16 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
25
25
  start_hidden: { type: Boolean, default: !1 }
26
26
  },
27
27
  setup(d) {
28
- const v = crypto.randomUUID(), n = d, a = Ye(), u = Me(ze);
29
- if (!u)
28
+ const _ = crypto.randomUUID(), n = d, a = Xe(), c = Be(Ie);
29
+ if (!c)
30
30
  throw new Error("VColumn deve ser usado dentro de um VDataTable.");
31
- const c = ["text", "img", "date", "html"];
32
- return $e(() => {
31
+ const u = ["text", "img", "date", "html"];
32
+ return Te(() => {
33
33
  if (n.field !== null && !n.field)
34
34
  throw new Error('A propriedade "field" é obrigatória em VColumn.');
35
35
  if (!n.header)
36
36
  throw new Error('A propriedade "header" é obrigatória em VColumn.');
37
- if (n.field !== null && !c.includes(n.type))
37
+ if (n.field !== null && !u.includes(n.type))
38
38
  throw new Error(`O tipo "${n.type}" não é suportado em VColumn. Tipos suportados: text, img, date, html.`);
39
39
  if (n.limite_text) {
40
40
  if (n.type !== "text")
@@ -44,8 +44,8 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
44
44
  if (isNaN(Number(n.limite_text)) || Number(n.limite_text) <= 0)
45
45
  throw new Error('A propriedade "limite_text" deve ser um número maior que 0.');
46
46
  }
47
- u.addColumn({
48
- id: v,
47
+ c.addColumn({
48
+ id: _,
49
49
  field: n.field,
50
50
  header: n.header,
51
51
  type: n.type,
@@ -73,12 +73,12 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
73
73
  visible: !n.start_hidden
74
74
  // Se start_hidden for true, ela não estará visível inicialmente
75
75
  });
76
- }), (C, m) => null;
76
+ }), (w, p) => null;
77
77
  }
78
- }), ot = new DOMParser(), rt = (d) => {
79
- const n = ot.parseFromString(d, "image/svg+xml").documentElement;
78
+ }), rt = new DOMParser(), it = (d) => {
79
+ const n = rt.parseFromString(d, "image/svg+xml").documentElement;
80
80
  if (n.tagName.toLowerCase() !== "svg")
81
- return () => me("span", {
81
+ return () => ve("span", {
82
82
  style: {
83
83
  backgroundColor: "red",
84
84
  color: "white",
@@ -87,27 +87,27 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
87
87
  }
88
88
  }, "Icon Error");
89
89
  const a = {};
90
- for (const c of n.attributes)
91
- a[c.name] = c.value;
92
- const u = n.innerHTML;
93
- return (c, { attrs: C }) => {
94
- const m = a.class || "", B = C.class || "", g = [m, B].filter(Boolean).join(" "), { class: y, ...f } = a, { class: s, ...P } = C;
95
- return me("svg", {
96
- ...f,
97
- ...c,
90
+ for (const u of n.attributes)
91
+ a[u.name] = u.value;
92
+ const c = n.innerHTML;
93
+ return (u, { attrs: w }) => {
94
+ const p = a.class || "", T = w.class || "", f = [p, T].filter(Boolean).join(" "), { class: k, ...h } = a, { class: s, ...P } = w;
95
+ return ve("svg", {
96
+ ...h,
97
+ ...u,
98
98
  ...P,
99
- class: g,
100
- innerHTML: u
99
+ class: f,
100
+ innerHTML: c
101
101
  });
102
102
  };
103
- }, ae = (d) => {
104
- const v = {};
103
+ }, oe = (d) => {
104
+ const _ = {};
105
105
  for (const n in d) {
106
106
  const a = d[n];
107
- typeof a == "string" ? v[n] = rt(a) : typeof a == "object" && a !== null && (v[n] = ae(a));
107
+ typeof a == "string" ? _[n] = it(a) : typeof a == "object" && a !== null && (_[n] = oe(a));
108
108
  }
109
- return v;
110
- }, re = {
109
+ return _;
110
+ }, ue = {
111
111
  search: {
112
112
  filter: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-filter" 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> <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"> </path> </svg>',
113
113
  clear: '<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-x"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg>',
@@ -126,13 +126,13 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
126
126
  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> '
127
127
  },
128
128
  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> '
129
- }, it = { class: "input-icon" }, dt = ["placeholder"], ct = {
129
+ }, dt = { class: "input-icon" }, ut = ["placeholder"], ct = {
130
130
  key: 1,
131
131
  class: "input-icon-addon"
132
- }, ut = {
132
+ }, _t = {
133
133
  key: 1,
134
134
  class: "dropdown-menu"
135
- }, _t = ["onClick"], pt = ["onClick"], mt = /* @__PURE__ */ R({
135
+ }, pt = ["onClick"], mt = ["onClick"], gt = /* @__PURE__ */ R({
136
136
  __name: "SearchDatatable",
137
137
  props: {
138
138
  search: {},
@@ -144,43 +144,43 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
144
144
  deactivate_search_empty: { type: Boolean, default: !1 }
145
145
  },
146
146
  emits: ["update:search", "update:filter", "search", "clickedClearSearch"],
147
- setup(d, { emit: v }) {
148
- const n = ae(re), a = d, u = v, c = T({
147
+ setup(d, { emit: _ }) {
148
+ const n = oe(ue), a = d, c = _, u = B({
149
149
  get: () => a.search,
150
- set: (f) => u("update:search", f)
151
- }), C = T({
150
+ set: (h) => c("update:search", h)
151
+ }), w = B({
152
152
  get: () => a.filter,
153
- set: (f) => u("update:filter", f)
153
+ set: (h) => c("update:filter", h)
154
154
  });
155
- W(C, () => {
156
- u("search");
157
- }), W(
155
+ J(w, () => {
156
+ c("search");
157
+ }), J(
158
158
  () => a.list_filter,
159
- (f) => {
160
- Array.isArray(f) ? (f.forEach((s, P) => {
159
+ (h) => {
160
+ Array.isArray(h) ? (h.forEach((s, P) => {
161
161
  s?.type === 1 && !s.to && console.error(`Filtro na posição ${P} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
162
- }), a.item_use.includes(2) && f.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.");
162
+ }), 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.");
163
163
  },
164
164
  { immediate: !0, deep: !0 }
165
165
  );
166
- function m(f) {
167
- C.value === f ? C.value = "" : C.value = f;
166
+ function p(h) {
167
+ w.value === h ? w.value = "" : w.value = h;
168
168
  }
169
- function B() {
170
- c.value = "", a.deactivate_search_on_clear || u("search"), u("clickedClearSearch");
169
+ function T() {
170
+ u.value = "", a.deactivate_search_on_clear || c("search"), c("clickedClearSearch");
171
171
  }
172
- function g(f) {
173
- f.click && typeof f.click == "function" ? f.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
172
+ function f(h) {
173
+ h.click && typeof h.click == "function" ? h.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
174
174
  }
175
- function y() {
176
- a.deactivate_search_empty && c.value.trim() === "" || u("search");
175
+ function k() {
176
+ a.deactivate_search_empty && u.value.trim() === "" || c("search");
177
177
  }
178
- return (f, s) => {
179
- const P = Ge("router-link");
180
- return e(), r(D, null, [
178
+ return (h, s) => {
179
+ const P = We("router-link");
180
+ return e(), r(E, null, [
181
181
  d.item_use.includes(2) ? (e(), r("a", {
182
182
  key: 0,
183
- onClick: s[0] || (s[0] = pe(() => {
183
+ onClick: s[0] || (s[0] = ge(() => {
184
184
  }, ["prevent"])),
185
185
  href: "#",
186
186
  class: "btn dropdown-toggle",
@@ -188,21 +188,21 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
188
188
  title: "Pesquisas Prédefinidas"
189
189
  }, [
190
190
  (e(), $(V(t(n).search.filter)))
191
- ])) : b("", !0),
192
- _("div", it, [
193
- Be(_("input", {
191
+ ])) : C("", !0),
192
+ m("div", dt, [
193
+ Oe(m("input", {
194
194
  type: "text",
195
195
  class: "form-control ms-1",
196
196
  id: "inputSearchVDataTable",
197
- "onUpdate:modelValue": s[1] || (s[1] = (h) => c.value = h),
198
- onKeyup: Xe(y, ["enter"]),
197
+ "onUpdate:modelValue": s[1] || (s[1] = (y) => u.value = y),
198
+ onKeyup: Qe(k, ["enter"]),
199
199
  placeholder: d.placeholder_search
200
- }, null, 40, dt), [
201
- [Te, c.value]
200
+ }, null, 40, ut), [
201
+ [ze, u.value]
202
202
  ]),
203
- c.value ? (e(), r("span", {
203
+ u.value ? (e(), r("span", {
204
204
  key: 0,
205
- onClick: s[2] || (s[2] = (h) => B()),
205
+ onClick: s[2] || (s[2] = (y) => T()),
206
206
  class: "inputClose",
207
207
  title: "Limpar pesquisa"
208
208
  }, [
@@ -211,32 +211,32 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
211
211
  (e(), $(V(t(n).search.loupe)))
212
212
  ]))
213
213
  ]),
214
- d.item_use.includes(2) ? (e(), r("div", ut, [
215
- (e(!0), r(D, null, A(a.list_filter, (h, k) => (e(), r(D, { key: k }, [
216
- "type" in h && h.type === 1 && (!("visible" in h) || h.visible) ? (e(), $(P, {
214
+ d.item_use.includes(2) ? (e(), r("div", _t, [
215
+ (e(!0), r(E, null, j(a.list_filter, (y, x) => (e(), r(E, { key: x }, [
216
+ "type" in y && y.type === 1 && (!("visible" in y) || y.visible) ? (e(), $(P, {
217
217
  key: 0,
218
- to: h?.to,
218
+ to: y?.to,
219
219
  class: "dropdown-item cursor-pointer"
220
220
  }, {
221
- default: X(() => [
222
- H(z(h.text), 1)
221
+ default: Z(() => [
222
+ A(O(y.text), 1)
223
223
  ]),
224
224
  _: 2
225
- }, 1032, ["to"])) : (!("type" in h) || h.type === 2) && (!("visible" in h) || h.visible) ? (e(), r("a", {
225
+ }, 1032, ["to"])) : (!("type" in y) || y.type === 2) && (!("visible" in y) || y.visible) ? (e(), r("a", {
226
226
  key: 1,
227
- onClick: pe((L) => m(String(h.value)), ["prevent"]),
228
- class: w(["dropdown-item cursor-pointer", C.value === h?.value ? "bg-info text-dark selected" : ""])
229
- }, z(h.text), 11, _t)) : (!("type" in h) || h.type === 3) && (!("visible" in h) || h.visible) ? (e(), r("a", {
227
+ onClick: ge((L) => p(String(y.value)), ["prevent"]),
228
+ class: S(["dropdown-item cursor-pointer", w.value === y?.value ? "bg-info text-dark selected" : ""])
229
+ }, O(y.text), 11, pt)) : (!("type" in y) || y.type === 3) && (!("visible" in y) || y.visible) ? (e(), r("a", {
230
230
  key: 2,
231
- onClick: pe((L) => g(h), ["prevent"]),
232
- class: w(["dropdown-item cursor-pointer", h?.active ? "bg-info text-dark selected" : ""])
233
- }, z(h.text), 11, pt)) : b("", !0)
231
+ onClick: ge((L) => f(y), ["prevent"]),
232
+ class: S(["dropdown-item cursor-pointer", y?.active ? "bg-info text-dark selected" : ""])
233
+ }, O(y.text), 11, mt)) : C("", !0)
234
234
  ], 64))), 128))
235
- ])) : b("", !0)
235
+ ])) : C("", !0)
236
236
  ], 64);
237
237
  };
238
238
  }
239
- }), gt = /* @__PURE__ */ fe(mt, [["__scopeId", "data-v-4c04950a"]]), vt = { class: "d-flex flex-column gap-2" }, ft = ["checked", "disabled", "onChange"], ht = { class: "form-check-label user-select-none" }, yt = /* @__PURE__ */ R({
239
+ }), ft = /* @__PURE__ */ ke(gt, [["__scopeId", "data-v-6a2b24b1"]]), vt = { class: "d-flex flex-column gap-2" }, ht = ["checked", "disabled", "onChange"], yt = { class: "form-check-label user-select-none" }, kt = /* @__PURE__ */ R({
240
240
  __name: "VColumnManager",
241
241
  props: {
242
242
  columns_list: { default: () => [] },
@@ -249,16 +249,16 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
249
249
  disable_class_column_manager_default: { type: Boolean, default: !1 }
250
250
  },
251
251
  setup(d) {
252
- const v = ae(re);
252
+ const _ = oe(ue);
253
253
  return (n, a) => d.use_column_manager ? (e(), r("div", {
254
254
  key: 0,
255
- class: w([
255
+ class: S([
256
256
  { "dropdown d-inline-block ms-2": !d.disable_class_column_manager_default },
257
257
  d.class_column_manager_dropdown
258
258
  ])
259
259
  }, [
260
- _("button", {
261
- class: w([
260
+ m("button", {
261
+ class: S([
262
262
  { "btn dropdown-toggle": !d.disable_class_column_manager_default },
263
263
  d.class_column_manager_button
264
264
  ]),
@@ -267,245 +267,280 @@ const ze = Symbol("v-datatable-key"), Sa = /* @__PURE__ */ R({
267
267
  "aria-expanded": "false",
268
268
  title: "Gerenciar Colunas visíveis"
269
269
  }, [
270
- (e(), $(V(t(v).column_manager)))
270
+ (e(), $(V(t(_).column_manager)))
271
271
  ], 2),
272
- _("div", {
273
- class: w(["dropdown-menu dropdown-menu-end p-3 shadow-sm", [
272
+ m("div", {
273
+ class: S(["dropdown-menu dropdown-menu-end p-3 shadow-sm", [
274
274
  { "dropdown-menu dropdown-menu-end p-3 shadow-sm": !d.disable_class_column_manager_default },
275
275
  d.class_column_manager_dropdown_menu
276
276
  ]]),
277
277
  style: { "min-width": "220px", "z-index": "1050" }
278
278
  }, [
279
- a[0] || (a[0] = _("h6", { class: "dropdown-header text-uppercase fw-bold mb-2" }, "Exibir Colunas", -1)),
280
- _("div", vt, [
281
- (e(!0), r(D, null, A(d.columns_list, (u) => (e(), r("label", {
282
- key: u.id,
279
+ a[0] || (a[0] = m("h6", { class: "dropdown-header text-uppercase fw-bold mb-2" }, "Exibir Colunas", -1)),
280
+ m("div", vt, [
281
+ (e(!0), r(E, null, j(d.columns_list, (c) => (e(), r("label", {
282
+ key: c.id,
283
283
  class: "form-check cursor-pointer m-0"
284
284
  }, [
285
- _("input", {
285
+ m("input", {
286
286
  class: "form-check-input",
287
287
  type: "checkbox",
288
- checked: u.visible,
289
- disabled: u.locked,
290
- onChange: (c) => d.toggleColumnVisibility(u.id)
291
- }, null, 40, ft),
292
- _("span", ht, z(u.header), 1)
288
+ checked: c.visible,
289
+ disabled: c.locked,
290
+ onChange: (u) => d.toggleColumnVisibility(c.id)
291
+ }, null, 40, ht),
292
+ m("span", yt, O(c.header), 1)
293
293
  ]))), 128))
294
294
  ])
295
295
  ], 2)
296
- ], 2)) : b("", !0);
296
+ ], 2)) : C("", !0);
297
297
  }
298
298
  });
299
- function kt() {
300
- const d = O(!1), v = O(""), n = O(0), a = O(0), u = T(() => ({
299
+ function bt() {
300
+ const d = I(!1), _ = I(""), n = I(0), a = I(0), c = B(() => ({
301
301
  position: "fixed",
302
302
  zIndex: 9999,
303
303
  pointerEvents: "none",
304
304
  top: `${a.value + 15}px`,
305
305
  left: `${n.value + 15}px`
306
306
  }));
307
- function c(g) {
308
- const y = g.clientX, f = g.clientY, s = window.innerHeight, P = 15, h = 300;
309
- let k = f + P;
310
- k + h > s && (k = f - h - P, k < 0 && (k = 0)), n.value = y, a.value = k;
307
+ function u(f) {
308
+ const k = f.clientX, h = f.clientY, s = window.innerHeight, P = 15, y = 300;
309
+ let x = h + P;
310
+ x + y > s && (x = h - y - P, x < 0 && (x = 0)), n.value = k, a.value = x;
311
311
  }
312
- function C(g, y) {
313
- d.value = !0, v.value = y, c(g);
312
+ function w(f, k) {
313
+ d.value = !0, _.value = k, u(f);
314
314
  }
315
- function m(g) {
316
- d.value && c(g);
315
+ function p(f) {
316
+ d.value && u(f);
317
317
  }
318
- function B() {
318
+ function T() {
319
319
  d.value = !1;
320
320
  }
321
321
  return {
322
322
  isHovering: d,
323
- previewSrc: v,
324
- previewStyle: u,
325
- handleMouseOver: C,
326
- handleMouseMove: m,
327
- handleMouseLeave: B
323
+ previewSrc: _,
324
+ previewStyle: c,
325
+ handleMouseOver: w,
326
+ handleMouseMove: p,
327
+ handleMouseLeave: T
328
328
  };
329
329
  }
330
- function bt(d, v, n, a) {
331
- const u = O([]);
332
- function c() {
333
- u.value = [];
330
+ function wt(d, _, n, a) {
331
+ const c = I([]);
332
+ function u() {
333
+ c.value = [];
334
334
  }
335
- function C(g) {
336
- const y = g[v];
337
- return u.value.some((f) => f === y);
335
+ function w(f) {
336
+ const k = f[_];
337
+ return c.value.some((h) => h === k);
338
338
  }
339
- function m(g) {
340
- const y = g[v], f = u.value.findIndex((P) => P === y), s = f > -1;
341
- d ? (c(), s || (u.value.push(y), a && B(y))) : s ? u.value.splice(f, 1) : (u.value.push(y), a && B(y));
339
+ function p(f) {
340
+ const k = f[_], h = c.value.findIndex((P) => P === k), s = h > -1;
341
+ d ? (u(), s || (c.value.push(k), a && T(k))) : s ? c.value.splice(h, 1) : (c.value.push(k), a && T(k));
342
342
  }
343
- function B(g) {
344
- ge(() => {
343
+ function T(f) {
344
+ he(() => {
345
345
  if (n) {
346
- const y = document.querySelector("#expand-item-" + g);
347
- y && y.scrollIntoView({ behavior: "smooth", block: "center" });
346
+ const k = document.querySelector("#expand-item-" + f);
347
+ k && k.scrollIntoView({ behavior: "smooth", block: "center" });
348
348
  return;
349
349
  } else
350
350
  setTimeout(() => {
351
- const y = document.querySelector("#expand-item-" + g);
352
- y && y.scrollIntoView({ behavior: "smooth", block: "center" });
351
+ const k = document.querySelector("#expand-item-" + f);
352
+ k && k.scrollIntoView({ behavior: "smooth", block: "center" });
353
353
  }, 600);
354
354
  });
355
355
  }
356
356
  return {
357
- expanded_items: u,
358
- is_item_expanded: C,
359
- expand_item_toggle: m,
360
- close_all_expanded_items: c
357
+ expanded_items: c,
358
+ is_item_expanded: w,
359
+ expand_item_toggle: p,
360
+ close_all_expanded_items: u
361
361
  };
362
362
  }
363
- function wt(d, v, n, a, u, c) {
364
- const C = O([]), m = T(() => t(d)), B = T(() => m.value.endpoint), g = T(() => ({
365
- [m.value.page_param_name]: v.value.current_page + 1,
366
- [m.value.page_size_param_name]: v.value.limit_per_page,
367
- [m.value.search_param_name]: v.value.search || "",
368
- [m.value.filter_param_name]: v.value.filter || ""
369
- })), y = T(() => {
370
- const M = {};
371
- for (const S of n.value)
372
- S.use_ordering && (a.value[S.id] === "increasing" ? M[S.param_ordering] = S.increasing_value || "increasing" : a.value[S.id] === "decreasing" && (M[S.param_ordering] = S.decreasing_value || "decreasing"));
373
- return M;
374
- }), { data: f, pending: s, error: P, execute: h, attempt: k } = m.value.fetch(B, {
375
- disable_request: () => m.value.disable_request,
363
+ function xt(d, _, n, a, c, u) {
364
+ const w = I([]), p = B(() => t(d)), T = B(() => p.value.endpoint), f = B(() => ({
365
+ [p.value.page_param_name]: _.value.current_page + 1,
366
+ [p.value.page_size_param_name]: _.value.limit_per_page,
367
+ [p.value.search_param_name]: _.value.search || "",
368
+ [p.value.filter_param_name]: _.value.filter || ""
369
+ })), k = B(() => {
370
+ const b = {};
371
+ for (const v of n.value)
372
+ v.use_ordering && (a.value[v.id] === "increasing" ? b[v.param_ordering] = v.increasing_value || "increasing" : a.value[v.id] === "decreasing" && (b[v.param_ordering] = v.decreasing_value || "decreasing"));
373
+ return b;
374
+ }), { data: h, pending: s, error: P, execute: y, attempt: x } = p.value.fetch(T, {
375
+ disable_request: () => p.value.disable_request,
376
376
  params: () => {
377
- const M = typeof m.value.add_params == "function";
378
- let S = {};
379
- const ie = typeof m.value.silent_params == "function";
380
- let N = {};
381
- const j = typeof m.value.add_params_keep_page == "function";
382
- let Q = {};
383
- if (M) {
384
- const G = m.value.add_params;
385
- S = G();
377
+ const b = typeof p.value.add_params == "function";
378
+ let v = {};
379
+ const D = typeof p.value.silent_params == "function";
380
+ let q = {};
381
+ const Q = typeof p.value.add_params_keep_page == "function";
382
+ let ae = {};
383
+ if (b) {
384
+ const K = p.value.add_params;
385
+ v = K();
386
386
  } else
387
- S = m.value.add_params || {};
388
- if (ie) {
389
- const G = m.value.silent_params;
390
- N = G();
387
+ v = p.value.add_params || {};
388
+ if (D) {
389
+ const K = p.value.silent_params;
390
+ q = K();
391
391
  } else
392
- N = m.value.silent_params || {};
393
- if (j) {
394
- const G = m.value.add_params_keep_page;
395
- Q = G();
392
+ q = p.value.silent_params || {};
393
+ if (Q) {
394
+ const K = p.value.add_params_keep_page;
395
+ ae = K();
396
396
  } else
397
- Q = m.value.add_params_keep_page || {};
398
- return m.value.deactivate_default_params ? {
399
- ...S,
400
- ...N,
401
- ...Q,
402
- ...y.value
397
+ ae = p.value.add_params_keep_page || {};
398
+ return p.value.deactivate_default_params ? {
399
+ ...v,
400
+ ...q,
401
+ ...ae,
402
+ ...k.value
403
403
  } : {
404
- ...g.value,
405
- ...S,
406
- ...N,
407
- ...Q,
408
- ...y.value
404
+ ...f.value,
405
+ ...v,
406
+ ...q,
407
+ ...ae,
408
+ ...k.value
409
409
  };
410
410
  },
411
- retry: m.value.retry_attempts,
412
- retryDelay: m.value.retry_delay,
411
+ retry: p.value.retry_attempts,
412
+ retryDelay: p.value.retry_delay,
413
413
  paramsReactives: !1,
414
414
  immediate: !1
415
- }, m.value.fetch_name), L = O(!1), x = O(null), U = O(!1), ne = T(() => s.value || L.value);
416
- async function J() {
417
- U.value || (U.value = !0), x.value && clearTimeout(x.value), L.value = !0, x.value = setTimeout(() => {
418
- L.value = !1;
419
- }, m.value.min_loading_delay), c(), u("beforeFetch"), await h(), u("afterFetch");
415
+ }, p.value.fetch_name), L = B(() => {
416
+ if (!p.value.frontend_pagination)
417
+ return w.value;
418
+ let b = w.value;
419
+ const v = p.value.custom_frontend_filter;
420
+ if (v && typeof v == "function")
421
+ b = b.filter(
422
+ (D) => v(D, _.value.search, _.value.filter)
423
+ );
424
+ else if (_.value.search) {
425
+ const D = _.value.search.toLowerCase();
426
+ b = b.filter((q) => Object.values(q).some(
427
+ (Q) => Q != null && String(Q).toLowerCase().includes(D)
428
+ ));
429
+ }
430
+ return b;
431
+ });
432
+ J(L, (b) => {
433
+ if (p.value.frontend_pagination) {
434
+ _.value.count = b.length;
435
+ const v = Math.ceil(b.length / _.value.limit_per_page) - 1;
436
+ _.value.current_page > v && v >= 0 && (_.value.current_page = v);
437
+ }
438
+ }, { immediate: !0 });
439
+ const M = B(() => {
440
+ if (!p.value.frontend_pagination)
441
+ return w.value;
442
+ const b = _.value.current_page * _.value.limit_per_page, v = b + _.value.limit_per_page;
443
+ return L.value.slice(b, v);
444
+ }), Y = I(!1), ee = I(null), G = I(!1), X = B(() => s.value || Y.value);
445
+ async function W() {
446
+ G.value || (G.value = !0), ee.value && clearTimeout(ee.value), Y.value = !0, ee.value = setTimeout(() => {
447
+ Y.value = !1;
448
+ }, p.value.min_loading_delay), u(), c("beforeFetch"), (!p.value.frontend_pagination || w.value.length === 0) && await y(), c("afterFetch");
420
449
  }
421
- function Y() {
422
- v.value.current_page = m.value.page_starts_at, J();
450
+ function te() {
451
+ _.value.current_page = p.value.page_starts_at, W();
423
452
  }
424
- return W(f, (M) => {
425
- M ? (C.value = M[m.value.data_key] || [], v.value.count = M[m.value.total_key] || 0) : (C.value = [], v.value.count = 0);
426
- }, { immediate: !0 }), W(
453
+ return J(h, (b) => {
454
+ if (b) {
455
+ let v = [];
456
+ p.value.data_key ? v = b[p.value.data_key] || [] : v = Array.isArray(b) ? b : [b], w.value = v, p.value.frontend_pagination || (_.value.count = b[p.value.total_key] || 0);
457
+ } else
458
+ w.value = [], _.value.count = 0;
459
+ }, { immediate: !0 }), J(
427
460
  () => {
428
- const M = typeof m.value.add_params == "function" ? m.value.add_params() : m.value.add_params;
429
- return JSON.stringify(M);
461
+ const b = typeof p.value.add_params == "function" ? p.value.add_params() : p.value.add_params;
462
+ return JSON.stringify(b);
430
463
  },
431
- (M, S) => {
432
- M !== S && S !== void 0 && Y();
464
+ (b, v) => {
465
+ b !== v && v !== void 0 && te();
433
466
  }
434
- ), W(
467
+ ), J(
435
468
  () => {
436
- const M = typeof m.value.add_params_keep_page == "function" ? m.value.add_params_keep_page() : m.value.add_params_keep_page;
437
- return JSON.stringify(M);
469
+ const b = typeof p.value.add_params_keep_page == "function" ? p.value.add_params_keep_page() : p.value.add_params_keep_page;
470
+ return JSON.stringify(b);
438
471
  },
439
- (M, S) => {
440
- M !== S && S !== void 0 && J();
472
+ (b, v) => {
473
+ b !== v && v !== void 0 && W();
441
474
  }
442
- ), W(
443
- () => m.value.endpoint,
444
- (M, S) => {
445
- M !== S && S !== void 0 && (v.value.current_page = m.value.page_starts_at);
475
+ ), J(
476
+ () => p.value.endpoint,
477
+ (b, v) => {
478
+ b !== v && v !== void 0 && (_.value.current_page = p.value.page_starts_at);
446
479
  }
447
480
  ), {
448
- items: C,
481
+ items: M,
449
482
  pending: s,
450
483
  error: P,
451
- execute: h,
452
- response: f,
453
- attempt: k,
454
- default_params: g,
455
- fetchDataWithDelay: J,
456
- reSearch: Y,
457
- showLoadingState: ne,
458
- first_fetch: U
484
+ execute: y,
485
+ response: h,
486
+ attempt: x,
487
+ default_params: f,
488
+ fetchDataWithDelay: W,
489
+ reSearch: te,
490
+ showLoadingState: X,
491
+ first_fetch: G,
492
+ raw_items: w
459
493
  };
460
494
  }
461
- function xt(d, v) {
462
- const n = O(null), a = O([]), u = (g) => {
463
- const y = d.item_key;
464
- return a.value.some((f) => f[y] === g[y]);
465
- }, c = T(() => {
466
- if (!v.value.length) return !1;
467
- const g = v.value.filter((y) => u(y)).length;
468
- return g === 0 ? !1 : g === v.value.length ? !0 : "indeterminate";
469
- }), C = T(() => a.value.length > 0);
470
- W([c, n], ([g]) => {
471
- n.value && (g === "indeterminate" ? (n.value.checked = !1, n.value.indeterminate = !0) : (n.value.checked = g, n.value.indeterminate = !1));
495
+ function Ct(d, _) {
496
+ const n = I(null), a = I([]), c = (f) => {
497
+ const k = d.item_key;
498
+ return a.value.some((h) => h[k] === f[k]);
499
+ }, u = B(() => {
500
+ if (!_.value.length) return !1;
501
+ const f = _.value.filter((k) => c(k)).length;
502
+ return f === 0 ? !1 : f === _.value.length ? !0 : "indeterminate";
503
+ }), w = B(() => a.value.length > 0);
504
+ J([u, n], ([f]) => {
505
+ n.value && (f === "indeterminate" ? (n.value.checked = !1, n.value.indeterminate = !0) : (n.value.checked = f, n.value.indeterminate = !1));
472
506
  }, {
473
507
  immediate: !0,
474
508
  flush: "post"
475
509
  });
476
- function m() {
477
- const g = v.value;
478
- if (!g.length) return;
479
- const y = c.value;
480
- if (y === !0 || y === "indeterminate") {
481
- const f = g.map((s) => s[d.item_key]);
510
+ function p() {
511
+ const f = _.value;
512
+ if (!f.length) return;
513
+ const k = u.value;
514
+ if (k === !0 || k === "indeterminate") {
515
+ const h = f.map((s) => s[d.item_key]);
482
516
  a.value = a.value.filter(
483
- (s) => !f.includes(s[d.item_key])
517
+ (s) => !h.includes(s[d.item_key])
484
518
  );
485
519
  } else
486
- g.forEach((f) => {
487
- u(f) || a.value.push(f);
520
+ f.forEach((h) => {
521
+ c(h) || a.value.push(h);
488
522
  });
489
523
  }
490
- function B(g) {
491
- const y = d.item_key, f = a.value.findIndex((s) => s[y] === g[y]);
492
- f > -1 ? a.value.splice(f, 1) : a.value.push(g);
524
+ function T(f) {
525
+ const k = d.item_key, h = a.value.findIndex((s) => s[k] === f[k]);
526
+ h > -1 ? a.value.splice(h, 1) : a.value.push(f);
493
527
  }
494
528
  return {
495
529
  selectAllCheckbox: n,
496
530
  selected_items: a,
497
- isSelected: u,
498
- selectAllState: c,
499
- atLeastOneSelected: C,
500
- toggleSelectAll: m,
501
- toggleItemSelection: B
531
+ isSelected: c,
532
+ selectAllState: u,
533
+ atLeastOneSelected: w,
534
+ toggleSelectAll: p,
535
+ toggleItemSelection: T
502
536
  };
503
537
  }
504
- const Ct = {
538
+ const St = {
505
539
  // Configurações de API
506
540
  fetch_name: "",
507
541
  custom_loading: null,
508
542
  deactivate_default_params: !1,
543
+ frontend_pagination: !1,
509
544
  add_params: {},
510
545
  add_params_keep_page: {},
511
546
  silent_params: {},
@@ -560,41 +595,42 @@ const Ct = {
560
595
  retry_delay: 2e3,
561
596
  show_header_when_empty: !1,
562
597
  storage_id: "",
563
- use_column_manager: !1
598
+ use_column_manager: !1,
599
+ custom_frontend_filter: null
564
600
  };
565
- function St(d) {
566
- const v = Me(lt, {});
567
- return { options: T(() => {
601
+ function Mt(d) {
602
+ const _ = Be(ot, {});
603
+ return { options: B(() => {
568
604
  const a = Object.fromEntries(
569
- Object.entries(d).filter(([u, c]) => c !== void 0)
605
+ Object.entries(d).filter(([c, u]) => u !== void 0)
570
606
  );
571
607
  return {
572
- ...Ct,
608
+ ...St,
573
609
  // 1º Camada: Prioridade Mínima (Valores Padrão)
574
- ...v,
610
+ ..._,
575
611
  // 2º Camada: Prioridade Média (Valores Globais definidos por quem usa o plugin)
576
612
  ...a
577
613
  // 3º Camada: Prioridade Máxima (O que o dev digitou na tela)
578
614
  };
579
615
  }) };
580
616
  }
581
- const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt = {
617
+ const $t = { class: "loading-container" }, Bt = { key: 0 }, Tt = { key: 2 }, Ot = {
582
618
  key: 5,
583
619
  class: "text-danger erro-custom-container"
584
- }, zt = { class: "badge bg-orange text-white erro-custom-text" }, It = { key: 0 }, Ot = { key: 2 }, Pt = {
620
+ }, zt = { class: "badge bg-orange text-white erro-custom-text" }, It = { key: 0 }, Pt = { key: 2 }, Dt = {
585
621
  key: 5,
586
622
  class: "text-danger erro-custom-container"
587
- }, Dt = { class: "badge bg-orange text-white erro-custom-text" }, Vt = ["colspan"], Et = {
623
+ }, Et = { class: "badge bg-orange text-white erro-custom-text" }, Vt = ["colspan"], Nt = {
588
624
  key: 0,
589
625
  class: "d-flex flex-column justify-content-center align-items-center",
590
626
  style: { height: "6rem" }
591
- }, Nt = {
627
+ }, jt = {
592
628
  key: 1,
593
629
  style: { height: "3rem" }
594
- }, jt = {
630
+ }, At = {
595
631
  key: 2,
596
632
  class: "p-3 text-center text-secondary"
597
- }, At = /* @__PURE__ */ R({
633
+ }, Ht = /* @__PURE__ */ R({
598
634
  __name: "VDataTableLoading",
599
635
  props: {
600
636
  columns: {},
@@ -606,150 +642,150 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
606
642
  pagination: {}
607
643
  },
608
644
  setup(d) {
609
- const v = d;
610
- return (n, a) => (e(), r("div", Mt, [
611
- v.custom_loading ? (e(), $(V(v.custom_loading), { key: 0 })) : (e(), r("table", {
645
+ const _ = d;
646
+ return (n, a) => (e(), r("div", $t, [
647
+ _.custom_loading ? (e(), $(V(_.custom_loading), { key: 0 })) : (e(), r("table", {
612
648
  key: 1,
613
- class: w(["table table-vcenter table-selectable", v.class_table])
649
+ class: S(["table table-vcenter table-selectable", _.class_table])
614
650
  }, [
615
- _("thead", null, [
616
- _("tr", null, [
617
- (e(!0), r(D, null, A(d.columns, (u) => (e(), r("th", {
618
- key: u.field || u.header,
619
- class: w(u.class_column)
620
- }, z(u.header), 3))), 128))
651
+ m("thead", null, [
652
+ m("tr", null, [
653
+ (e(!0), r(E, null, j(d.columns, (c) => (e(), r("th", {
654
+ key: c.field || c.header,
655
+ class: S(c.class_column)
656
+ }, O(c.header), 3))), 128))
621
657
  ])
622
658
  ]),
623
- _("tbody", null, [
624
- v.type_loading === "placeholder" ? (e(!0), r(D, { key: 0 }, A(d.pagination.limit_per_page, (u) => (e(), r("tr", {
625
- key: "placeholder-" + u,
659
+ m("tbody", null, [
660
+ _.type_loading === "placeholder" ? (e(!0), r(E, { key: 0 }, j(d.pagination.limit_per_page, (c) => (e(), r("tr", {
661
+ key: "placeholder-" + c,
626
662
  class: "placeholder-glow"
627
663
  }, [
628
- (e(!0), r(D, null, A(d.columns, (c) => (e(), r("td", {
629
- key: c.field || c.header,
630
- class: w(c.class_row)
664
+ (e(!0), r(E, null, j(d.columns, (u) => (e(), r("td", {
665
+ key: u.field || u.header,
666
+ class: S(u.class_row)
631
667
  }, [
632
- c.bodySlot ? (e(), r("span", $t, [...a[0] || (a[0] = [
633
- _("span", { class: "placeholder col-8" }, null, -1)
634
- ])])) : c.type === "text" ? (e(), r("span", {
668
+ u.bodySlot ? (e(), r("span", Bt, [...a[0] || (a[0] = [
669
+ m("span", { class: "placeholder col-8" }, null, -1)
670
+ ])])) : u.type === "text" ? (e(), r("span", {
635
671
  key: 1,
636
- class: w(c.class_item)
672
+ class: S(u.class_item)
637
673
  }, [...a[1] || (a[1] = [
638
- _("span", { class: "placeholder col-8" }, null, -1)
639
- ])], 2)) : c.type === "date" ? (e(), r("span", Bt, [...a[2] || (a[2] = [
640
- _("span", { class: "placeholder col-9" }, null, -1)
641
- ])])) : c.type === "html" ? (e(), r("div", {
674
+ m("span", { class: "placeholder col-8" }, null, -1)
675
+ ])], 2)) : u.type === "date" ? (e(), r("span", Tt, [...a[2] || (a[2] = [
676
+ m("span", { class: "placeholder col-9" }, null, -1)
677
+ ])])) : u.type === "html" ? (e(), r("div", {
642
678
  key: 3,
643
- class: w(c.class_item)
679
+ class: S(u.class_item)
644
680
  }, [...a[3] || (a[3] = [
645
- _("div", { class: "placeholder col-12" }, null, -1)
646
- ])], 2)) : c.type === "img" ? (e(), r("div", {
681
+ m("div", { class: "placeholder col-12" }, null, -1)
682
+ ])], 2)) : u.type === "img" ? (e(), r("div", {
647
683
  key: 4,
648
- class: w(c.class_item)
684
+ class: S(u.class_item)
649
685
  }, [...a[4] || (a[4] = [
650
- _("div", { class: "placeholder placeholder-img" }, null, -1)
651
- ])], 2)) : (e(), r("span", Tt, [
652
- a[5] || (a[5] = H("tipo ", -1)),
653
- _("span", zt, z(c.type), 1),
654
- a[6] || (a[6] = H(" não suportado ", -1))
686
+ m("div", { class: "placeholder placeholder-img" }, null, -1)
687
+ ])], 2)) : (e(), r("span", Ot, [
688
+ a[5] || (a[5] = A("tipo ", -1)),
689
+ m("span", zt, O(u.type), 1),
690
+ a[6] || (a[6] = A(" não suportado ", -1))
655
691
  ]))
656
692
  ], 2))), 128))
657
- ]))), 128)) : v.type_loading === "spiner-table" ? (e(!0), r(D, { key: 1 }, A(d.pagination.limit_per_page, (u) => (e(), r("tr", {
658
- key: "placeholder-" + u
693
+ ]))), 128)) : _.type_loading === "spiner-table" ? (e(!0), r(E, { key: 1 }, j(d.pagination.limit_per_page, (c) => (e(), r("tr", {
694
+ key: "placeholder-" + c
659
695
  }, [
660
- (e(!0), r(D, null, A(d.columns, (c) => (e(), r("td", {
661
- key: c.field || c.header,
662
- class: w(c.class_row)
696
+ (e(!0), r(E, null, j(d.columns, (u) => (e(), r("td", {
697
+ key: u.field || u.header,
698
+ class: S(u.class_row)
663
699
  }, [
664
- c.bodySlot ? (e(), r("span", It, [...a[7] || (a[7] = [
665
- _("span", {
700
+ u.bodySlot ? (e(), r("span", It, [...a[7] || (a[7] = [
701
+ m("span", {
666
702
  class: "spinner-border spinner-border-sm",
667
703
  role: "status",
668
704
  "aria-hidden": "true"
669
705
  }, null, -1)
670
- ])])) : c.type === "text" ? (e(), r("span", {
706
+ ])])) : u.type === "text" ? (e(), r("span", {
671
707
  key: 1,
672
- class: w(c.class_item)
708
+ class: S(u.class_item)
673
709
  }, [...a[8] || (a[8] = [
674
- _("span", {
710
+ m("span", {
675
711
  class: "spinner-border spinner-border-sm",
676
712
  role: "status",
677
713
  "aria-hidden": "true"
678
714
  }, null, -1)
679
- ])], 2)) : c.type === "date" ? (e(), r("span", Ot, [...a[9] || (a[9] = [
680
- _("span", {
715
+ ])], 2)) : u.type === "date" ? (e(), r("span", Pt, [...a[9] || (a[9] = [
716
+ m("span", {
681
717
  class: "spinner-border spinner-border-sm",
682
718
  role: "status",
683
719
  "aria-hidden": "true"
684
720
  }, null, -1)
685
- ])])) : c.type === "html" ? (e(), r("div", {
721
+ ])])) : u.type === "html" ? (e(), r("div", {
686
722
  key: 3,
687
- class: w(c.class_item)
723
+ class: S(u.class_item)
688
724
  }, [...a[10] || (a[10] = [
689
- _("span", {
725
+ m("span", {
690
726
  class: "spinner-border spinner-border-sm",
691
727
  role: "status",
692
728
  "aria-hidden": "true"
693
729
  }, null, -1)
694
- ])], 2)) : c.type === "img" ? (e(), r("div", {
730
+ ])], 2)) : u.type === "img" ? (e(), r("div", {
695
731
  key: 4,
696
- class: w(["", c.class_item])
732
+ class: S(["", u.class_item])
697
733
  }, [...a[11] || (a[11] = [
698
- _("span", { class: "placeholder-img d-flex justify-content-center align-items-center" }, [
699
- _("span", {
734
+ m("span", { class: "placeholder-img d-flex justify-content-center align-items-center" }, [
735
+ m("span", {
700
736
  class: "spinner-border spinner-border-sm",
701
737
  role: "status",
702
738
  "aria-hidden": "true"
703
739
  })
704
740
  ], -1)
705
- ])], 2)) : (e(), r("span", Pt, [
706
- a[12] || (a[12] = H("tipo ", -1)),
707
- _("span", Dt, z(c.type), 1),
708
- a[13] || (a[13] = H(" não suportado ", -1))
741
+ ])], 2)) : (e(), r("span", Dt, [
742
+ a[12] || (a[12] = A("tipo ", -1)),
743
+ m("span", Et, O(u.type), 1),
744
+ a[13] || (a[13] = A(" não suportado ", -1))
709
745
  ]))
710
746
  ], 2))), 128))
711
- ]))), 128)) : v.type_loading === "spiner" ? (e(!0), r(D, { key: 2 }, A(d.pagination.limit_per_page, (u) => (e(), r("tr", { key: u }, [
712
- _("td", {
747
+ ]))), 128)) : _.type_loading === "spiner" ? (e(!0), r(E, { key: 2 }, j(d.pagination.limit_per_page, (c) => (e(), r("tr", { key: c }, [
748
+ m("td", {
713
749
  colspan: d.columns.length,
714
750
  class: "text-center p-0",
715
751
  style: { "border-bottom": "none" }
716
752
  }, [
717
- u === Math.floor(d.pagination.limit_per_page / 2) + 1 ? (e(), r("div", Et, [...a[14] || (a[14] = [
718
- _("div", {
753
+ c === Math.floor(d.pagination.limit_per_page / 2) + 1 ? (e(), r("div", Nt, [...a[14] || (a[14] = [
754
+ m("div", {
719
755
  class: "spinner-border",
720
756
  style: { width: "3rem", height: "3rem" },
721
757
  role: "status"
722
758
  }, null, -1),
723
- _("span", { class: "mt-2" }, "Carregando...", -1)
724
- ])])) : (e(), r("div", Nt))
759
+ m("span", { class: "mt-2" }, "Carregando...", -1)
760
+ ])])) : (e(), r("div", jt))
725
761
  ], 8, Vt)
726
- ]))), 128)) : b("", !0)
762
+ ]))), 128)) : C("", !0)
727
763
  ])
728
764
  ], 2)),
729
- d.attempt && d.attempt.current > 1 ? (e(), r("div", jt, " A conexão falhou. Tentando novamente... (Tentativa " + z(d.attempt.current) + " de " + z(d.attempt.total) + ") ", 1)) : b("", !0)
765
+ d.attempt && d.attempt.current > 1 ? (e(), r("div", At, " A conexão falhou. Tentando novamente... (Tentativa " + O(d.attempt.current) + " de " + O(d.attempt.total) + ") ", 1)) : C("", !0)
730
766
  ]));
731
767
  }
732
- }), Ht = /* @__PURE__ */ fe(At, [["__scopeId", "data-v-3b019685"]]), Ft = /* @__PURE__ */ R({
768
+ }), Ft = /* @__PURE__ */ ke(Ht, [["__scopeId", "data-v-3b019685"]]), Lt = /* @__PURE__ */ R({
733
769
  __name: "VOrderingIcon",
734
770
  props: {
735
771
  orderings_state: {},
736
772
  use_ordering: { type: Boolean }
737
773
  },
738
774
  emits: ["toggle"],
739
- setup(d, { emit: v }) {
740
- const n = ae(re), a = d, u = v;
741
- return (c, C) => d.use_ordering ? (e(), r("span", {
775
+ setup(d, { emit: _ }) {
776
+ const n = oe(ue), a = d, c = _;
777
+ return (u, w) => d.use_ordering ? (e(), r("span", {
742
778
  key: 0,
743
- onClick: C[0] || (C[0] = (m) => u("toggle")),
779
+ onClick: w[0] || (w[0] = (p) => c("toggle")),
744
780
  class: "cursor-pointer"
745
781
  }, [
746
- !a.orderings_state || a.orderings_state === "none" ? (e(), $(V(t(n).ordering.default), { key: 0 })) : a.orderings_state === "decreasing" ? (e(), $(V(t(n).ordering.decreasing), { key: 1 })) : a.orderings_state === "increasing" ? (e(), $(V(t(n).ordering.increasing), { key: 2 })) : b("", !0)
747
- ])) : b("", !0);
782
+ !a.orderings_state || a.orderings_state === "none" ? (e(), $(V(t(n).ordering.default), { key: 0 })) : a.orderings_state === "decreasing" ? (e(), $(V(t(n).ordering.decreasing), { key: 1 })) : a.orderings_state === "increasing" ? (e(), $(V(t(n).ordering.increasing), { key: 2 })) : C("", !0)
783
+ ])) : C("", !0);
748
784
  }
749
- }), Lt = {
785
+ }), qt = {
750
786
  key: 1,
751
787
  class: "d-flex justify-content-between align-items-center"
752
- }, Se = /* @__PURE__ */ R({
788
+ }, $e = /* @__PURE__ */ R({
753
789
  __name: "VThDataTable",
754
790
  props: {
755
791
  header: {},
@@ -760,66 +796,66 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
760
796
  col: {}
761
797
  },
762
798
  emits: ["toggleOrderingState"],
763
- setup(d, { emit: v }) {
764
- const n = d, a = () => me(Ft, {
799
+ setup(d, { emit: _ }) {
800
+ const n = d, a = () => ve(Lt, {
765
801
  orderings_state: n.orderings_state,
766
802
  use_ordering: n.use_ordering,
767
- onToggle: () => c("toggleOrderingState")
768
- }), u = T(() => ({
803
+ onToggle: () => u("toggleOrderingState")
804
+ }), c = B(() => ({
769
805
  "header-draggable": !n.locked,
770
806
  "header-locked": n.locked,
771
807
  [n.class_column]: !0
772
- })), c = v, C = (B) => !B || B.length === 0 ? !0 : B.every((g) => g.type === We || g.type === Re && typeof g.children == "string" && !g.children.trim() ? !0 : g.type === D || g.type === Symbol.for("v-fgt") || String(g.type) === "Symbol(Fragment)" ? C(g.children) : !1), m = T(() => {
808
+ })), u = _, w = (T) => !T || T.length === 0 ? !0 : T.every((f) => f.type === Ze || f.type === Re && typeof f.children == "string" && !f.children.trim() ? !0 : f.type === E || f.type === Symbol.for("v-fgt") || String(f.type) === "Symbol(Fragment)" ? w(f.children) : !1), p = B(() => {
773
809
  if (!n.col || !n.col.colHeaderSlot) return !1;
774
- const B = n.col.colHeaderSlot({ col: n.col, locked: n.locked });
775
- return !C(B);
810
+ const T = n.col.colHeaderSlot({ col: n.col, locked: n.locked });
811
+ return !w(T);
776
812
  });
777
- return (B, g) => (e(), r("th", {
778
- class: w(u.value)
813
+ return (T, f) => (e(), r("th", {
814
+ class: S(c.value)
779
815
  }, [
780
- _("div", {
781
- class: w({ "header-ordering": d.use_ordering })
816
+ m("div", {
817
+ class: S({ "header-ordering": d.use_ordering })
782
818
  }, [
783
- m.value ? (e(), $(V(d.col.colHeaderSlot), Ce(ve({ key: 0 }, { col: n.col, locked: n.locked, OrderingComponent: a })), null, 16)) : (e(), r("div", Lt, [
784
- _("span", null, z(n.header), 1),
785
- d.col.colHeaderMidleSlot ? (e(), $(V(d.col.colHeaderMidleSlot), Ce(ve({ key: 0 }, { col: n.col, locked: n.locked })), null, 16)) : b("", !0),
819
+ p.value ? (e(), $(V(d.col.colHeaderSlot), Me(ye({ key: 0 }, { col: n.col, locked: n.locked, OrderingComponent: a })), null, 16)) : (e(), r("div", qt, [
820
+ m("span", null, O(n.header), 1),
821
+ d.col.colHeaderMidleSlot ? (e(), $(V(d.col.colHeaderMidleSlot), Me(ye({ key: 0 }, { col: n.col, locked: n.locked })), null, 16)) : C("", !0),
786
822
  (e(), $(V(a)))
787
823
  ]))
788
824
  ], 2)
789
825
  ], 2));
790
826
  }
791
- }), qt = { class: "mx-2 d-inline-block" }, Kt = { class: "dropdown d-flex" }, Ut = {
827
+ }), Kt = { class: "mx-2 d-inline-block" }, Ut = { class: "dropdown d-flex" }, Jt = {
792
828
  key: 0,
793
829
  class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
794
830
  role: "alert"
795
- }, Jt = { class: "alert-title m-0" }, Yt = { class: "badge bg-azure text-azure-fg" }, Gt = {
831
+ }, Yt = { class: "alert-title m-0" }, Gt = { class: "badge bg-azure text-azure-fg" }, Xt = {
796
832
  key: 1,
797
833
  class: "feedback-container text-center"
798
- }, Xt = {
834
+ }, Wt = {
799
835
  key: 0,
800
836
  class: "text-secondary"
801
- }, Wt = {
837
+ }, Qt = {
802
838
  key: 1,
803
839
  class: "text-secondary"
804
- }, Rt = {
840
+ }, Zt = {
805
841
  key: 2,
806
842
  class: "table-responsive"
807
- }, Qt = { key: 0 }, Zt = { key: 0 }, ea = {
843
+ }, Rt = { key: 0 }, ea = { key: 0 }, ta = {
808
844
  key: 1,
809
845
  class: "w-1"
810
- }, ta = {
846
+ }, aa = {
811
847
  key: 0,
812
848
  class: "w-1"
813
- }, aa = ["onClick"], na = {
849
+ }, na = ["onClick"], sa = {
814
850
  key: 1,
815
851
  class: "w-1"
816
- }, sa = ["checked", "onChange"], la = ["onClick"], oa = ["onClick"], ra = { key: 0 }, ia = { key: 1 }, da = ["onClick", "innerHTML"], ca = ["onClick"], ua = ["src"], _a = ["src"], pa = {
852
+ }, la = ["checked", "onChange"], oa = ["onClick"], ra = ["onClick"], ia = { key: 0 }, da = { key: 1 }, ua = ["onClick", "innerHTML"], ca = ["onClick"], _a = ["src"], pa = ["src"], ma = {
817
853
  key: 5,
818
854
  class: "text-danger erro-custom-container"
819
- }, ma = { class: "badge bg-orange text-white erro-custom-text" }, ga = ["id"], va = ["colspan"], fa = { key: 1 }, ha = {
855
+ }, ga = { class: "badge bg-orange text-white erro-custom-text" }, fa = ["id"], va = ["colspan"], ha = { key: 1 }, ya = {
820
856
  key: 2,
821
857
  class: "text-center p-4 text-secondary"
822
- }, ya = ["src"], ka = /* @__PURE__ */ R({
858
+ }, ka = ["src"], ba = /* @__PURE__ */ R({
823
859
  __name: "VDataTable",
824
860
  props: {
825
861
  fetch: { type: Function },
@@ -846,6 +882,7 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
846
882
  class_table: {},
847
883
  class_filters: {},
848
884
  class_page_size: {},
885
+ frontend_pagination: { type: Boolean },
849
886
  limit_per_page: {},
850
887
  page_starts_at: {},
851
888
  min_loading_delay: {},
@@ -863,6 +900,7 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
863
900
  disable_search: { type: Boolean },
864
901
  deactivate_search_empty: { type: Boolean },
865
902
  deactivate_search_on_clear: { type: Boolean },
903
+ custom_frontend_filter: { type: [Function, null] },
866
904
  first_text_page_size: {},
867
905
  second_text_page_size: {},
868
906
  use_checkbox: { type: Boolean },
@@ -879,15 +917,15 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
879
917
  column_manager_teleport: {}
880
918
  },
881
919
  emits: ["tradePage", "beforeFetch", "afterFetch", "clickedClearSearch"],
882
- setup(d, { expose: v, emit: n }) {
883
- const a = ae(re), u = O(!1), {
884
- isHovering: c,
885
- previewSrc: C,
886
- previewStyle: m,
887
- handleMouseOver: B,
888
- handleMouseMove: g,
889
- handleMouseLeave: y
890
- } = kt(), f = d, { options: s } = St(f), P = n, h = O({}), k = O([]), L = O(!1), x = O({
920
+ setup(d, { expose: _, emit: n }) {
921
+ const a = oe(ue), c = I(!1), {
922
+ isHovering: u,
923
+ previewSrc: w,
924
+ previewStyle: p,
925
+ handleMouseOver: T,
926
+ handleMouseMove: f,
927
+ handleMouseLeave: k
928
+ } = bt(), h = d, { options: s } = Mt(h), P = n, y = I({}), x = I([]), L = I(!1), M = I({
891
929
  current_page: s.value.page_starts_at,
892
930
  // pagina atual
893
931
  count: 0,
@@ -899,40 +937,41 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
899
937
  filter: ""
900
938
  // filtro selecionado
901
939
  }), {
902
- expand_item_toggle: U,
903
- close_all_expanded_items: ne,
904
- is_item_expanded: J
905
- } = bt(
940
+ expand_item_toggle: Y,
941
+ close_all_expanded_items: ee,
942
+ is_item_expanded: G
943
+ } = wt(
906
944
  s.value.close_expanded_item_on_expand_new,
907
945
  s.value.item_key,
908
946
  s.value.deactivate_animation_expand,
909
947
  s.value.scroll_to_expanded_item
910
948
  ), {
911
- items: Y,
912
- error: M,
913
- attempt: S,
914
- default_params: ie,
915
- fetchDataWithDelay: N,
916
- reSearch: j,
917
- showLoadingState: Q,
918
- first_fetch: G
919
- } = wt(s, x, k, h, P, ne), {
920
- selectAllCheckbox: he,
921
- selected_items: Z,
922
- isSelected: ye,
923
- atLeastOneSelected: Ie,
924
- toggleSelectAll: ke,
925
- toggleItemSelection: Oe
926
- } = xt(s.value, Y), ee = T(() => s.value.storage_id ? `vdatatable_${s.value.storage_id}_${s.value.endpoint}` : null);
927
- function Pe() {
928
- for (const l of k.value) {
949
+ items: X,
950
+ error: W,
951
+ attempt: te,
952
+ default_params: b,
953
+ fetchDataWithDelay: v,
954
+ reSearch: D,
955
+ showLoadingState: q,
956
+ first_fetch: Q,
957
+ raw_items: ae
958
+ } = xt(s, M, x, y, P, ee), {
959
+ selectAllCheckbox: K,
960
+ selected_items: ne,
961
+ isSelected: be,
962
+ atLeastOneSelected: Pe,
963
+ toggleSelectAll: we,
964
+ toggleItemSelection: De
965
+ } = Ct(s.value, X), se = B(() => s.value.storage_id ? `vdatatable_${s.value.storage_id}_${s.value.endpoint}` : null);
966
+ function Ee() {
967
+ for (const l of x.value) {
929
968
  let i = "";
930
- const o = k.value.filter((I) => I.field === l.field).length;
969
+ const o = x.value.filter((z) => z.field === l.field).length;
931
970
  if (l.field && o === 1)
932
971
  i = l.field;
933
972
  else {
934
- const I = k.value.filter((p) => p.header === l.header).length;
935
- if (l.header && I === 1)
973
+ const z = x.value.filter((g) => g.header === l.header).length;
974
+ if (l.header && z === 1)
936
975
  i = l.header;
937
976
  else
938
977
  throw new Error(`[VDataTable] Falha de integridade: Impossível designar um ID único de armazenamento. O 'field' e 'header' estão duplicados ou ausentes. Header ofensor: ${l.header}`);
@@ -940,45 +979,45 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
940
979
  l.storage_key = i;
941
980
  }
942
981
  }
943
- function de() {
944
- if (!ee.value) return;
945
- const l = k.value.map((i) => ({
982
+ function ce() {
983
+ if (!se.value) return;
984
+ const l = x.value.map((i) => ({
946
985
  storage_key: i.storage_key,
947
986
  visible: i.visible
948
987
  }));
949
- localStorage.setItem(ee.value, JSON.stringify(l));
988
+ localStorage.setItem(se.value, JSON.stringify(l));
950
989
  }
951
- function De() {
952
- if (!ee.value) return;
953
- const l = localStorage.getItem(ee.value);
990
+ function Ve() {
991
+ if (!se.value) return;
992
+ const l = localStorage.getItem(se.value);
954
993
  if (l)
955
994
  try {
956
- const i = JSON.parse(l), o = k.value.map((E) => E.storage_key).sort(), I = i.map((E) => E.storage_key).sort();
957
- if (JSON.stringify(o) !== JSON.stringify(I)) {
958
- localStorage.removeItem(ee.value), de();
995
+ const i = JSON.parse(l), o = x.value.map((N) => N.storage_key).sort(), z = i.map((N) => N.storage_key).sort();
996
+ if (JSON.stringify(o) !== JSON.stringify(z)) {
997
+ localStorage.removeItem(se.value), ce();
959
998
  return;
960
999
  }
961
- const p = [];
962
- for (const E of i) {
963
- const q = k.value.find((Je) => Je.storage_key === E.storage_key);
964
- q && (q.visible = E.visible, p.push(q));
1000
+ const g = [];
1001
+ for (const N of i) {
1002
+ const F = x.value.find((Ge) => Ge.storage_key === N.storage_key);
1003
+ F && (F.visible = N.visible, g.push(F));
965
1004
  }
966
- k.value.splice(0, k.value.length, ...p);
1005
+ x.value.splice(0, x.value.length, ...g);
967
1006
  } catch {
968
- localStorage.removeItem(ee.value);
1007
+ localStorage.removeItem(se.value);
969
1008
  }
970
1009
  }
971
- const be = T(
972
- () => k.value.filter((l) => l.locked && l.visible !== !1)
973
- ), ce = T({
1010
+ const xe = B(
1011
+ () => x.value.filter((l) => l.locked && l.visible !== !1)
1012
+ ), _e = B({
974
1013
  get() {
975
- return k.value.filter((l) => !l.locked && l.visible !== !1);
1014
+ return x.value.filter((l) => !l.locked && l.visible !== !1);
976
1015
  },
977
1016
  set(l) {
978
- const i = k.value.filter((I) => I.locked), o = k.value.filter((I) => !I.locked && I.visible === !1);
979
- k.value.splice(0, k.value.length, ...l, ...o, ...i), de();
1017
+ const i = x.value.filter((z) => z.locked), o = x.value.filter((z) => !z.locked && z.visible === !1);
1018
+ x.value.splice(0, x.value.length, ...l, ...o, ...i), ce();
980
1019
  }
981
- }), Ve = T(() => [...ce.value, ...be.value]), ue = T(() => k.value.map((l) => ({
1020
+ }), Ne = B(() => [..._e.value, ...xe.value]), pe = B(() => x.value.map((l) => ({
982
1021
  id: l.id,
983
1022
  header: l.header,
984
1023
  field: l.field,
@@ -987,276 +1026,278 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
987
1026
  visible: l.visible !== !1,
988
1027
  locked: l.locked
989
1028
  })));
990
- function _e(l) {
991
- const i = k.value.find((o) => o.id === l);
992
- i && (i.visible = !i.visible, de());
1029
+ function me(l) {
1030
+ const i = x.value.find((o) => o.id === l);
1031
+ i && (i.visible = !i.visible, ce());
993
1032
  }
994
- const Ee = T(() => {
1033
+ const je = B(() => {
995
1034
  let l = [1];
996
1035
  return s.value.list_filter.length > 0 && l.push(2), l;
997
- }), se = T(() => Y.value.length > 0);
998
- function Ne() {
1036
+ }), re = B(() => X.value.length > 0);
1037
+ function Ae() {
999
1038
  setTimeout(() => {
1000
1039
  L.value = !1;
1001
1040
  }, 500);
1002
1041
  }
1003
- function je(l) {
1004
- k.value.push(l);
1042
+ function He(l) {
1043
+ x.value.push(l);
1005
1044
  }
1006
- Qe(ze, { addColumn: je });
1007
- const we = (l) => {
1045
+ et(Ie, { addColumn: He });
1046
+ const Ce = (l) => {
1008
1047
  const i = l.target, o = parseInt(i.value, 10);
1009
- o > 0 && (x.value.limit_per_page = o, x.value.limit_per_page = o, j());
1048
+ o > 0 && (M.value.limit_per_page = o, M.value.limit_per_page = o, D());
1010
1049
  };
1011
- function K(l, i, o = null) {
1050
+ function U(l, i, o = null) {
1012
1051
  if (!l) return i;
1013
- const I = l.split(".");
1014
- let p = i;
1015
- for (const E of I)
1016
- p && typeof p == "object" && E in p ? p = p[E] : console.error(`Caminho inválido ou valor nulo em: ${l} na parte ${E}`);
1017
- return o && (p = o(p)), p;
1052
+ const z = l.split(".");
1053
+ let g = i;
1054
+ for (const N of z)
1055
+ g && typeof g == "object" && N in g ? g = g[N] : console.error(`Caminho inválido ou valor nulo em: ${l} na parte ${N}`);
1056
+ return o && (g = o(g)), g;
1018
1057
  }
1019
- function Ae(l, i) {
1058
+ function Fe(l, i) {
1020
1059
  return i && typeof i == "number" && i > 0 && typeof l == "string" && l.length > i ? l.substring(0, i) + "..." : l;
1021
1060
  }
1022
- function xe(l) {
1023
- for (const o in h.value)
1024
- o !== l && (h.value[o] = "none");
1025
- const i = h.value[l] || "none";
1026
- i === "none" ? h.value[l] = "increasing" : i === "increasing" ? h.value[l] = "decreasing" : h.value[l] = "none", j();
1027
- }
1028
- function He(l) {
1029
- l > 0 ? (x.value.limit_per_page = l, j()) : console.warn("O limite deve ser um número maior que zero.");
1030
- }
1031
- function Fe(l) {
1032
- x.value.search = l, j();
1061
+ function Se(l) {
1062
+ for (const o in y.value)
1063
+ o !== l && (y.value[o] = "none");
1064
+ const i = y.value[l] || "none";
1065
+ i === "none" ? y.value[l] = "increasing" : i === "increasing" ? y.value[l] = "decreasing" : y.value[l] = "none", D();
1033
1066
  }
1034
1067
  function Le(l) {
1035
- x.value.filter = l, j();
1068
+ l > 0 ? (M.value.limit_per_page = l, D()) : console.warn("O limite deve ser um número maior que zero.");
1036
1069
  }
1037
1070
  function qe(l) {
1038
- l >= 0 && l <= Math.ceil(x.value.count / x.value.limit_per_page) ? (x.value.current_page = l, N()) : console.warn("Número de página inválido.");
1071
+ M.value.search = l, D();
1072
+ }
1073
+ function Ke(l) {
1074
+ M.value.filter = l, D();
1075
+ }
1076
+ function Ue(l) {
1077
+ l >= 0 && l <= Math.ceil(M.value.count / M.value.limit_per_page) ? (M.value.current_page = l, v()) : console.warn("Número de página inválido.");
1039
1078
  }
1040
- function Ke() {
1041
- let l = k.value.length;
1079
+ function Je() {
1080
+ let l = x.value.length;
1042
1081
  return s.value.use_checkbox && (l += 1), s.value.use_expandable_items && (l += 1), l;
1043
1082
  }
1044
- function Ue() {
1045
- P("tradePage"), N();
1083
+ function Ye() {
1084
+ P("tradePage"), v();
1046
1085
  }
1047
- const le = (l, i) => {
1086
+ const ie = (l, i) => {
1048
1087
  const o = [l.class_item || ""];
1049
1088
  if (l.click && o.push("cursor-pointer"), l.class_rules)
1050
- for (const [I, p] of Object.entries(l.class_rules))
1051
- typeof p == "function" && p(i) && o.push(I);
1089
+ for (const [z, g] of Object.entries(l.class_rules))
1090
+ typeof g == "function" && g(i) && o.push(z);
1052
1091
  return o.join(" ").trim();
1053
1092
  };
1054
- return v({
1055
- execute: N,
1056
- reSearch: j,
1057
- pagination: Ze(x),
1058
- set_limit_per_page: He,
1059
- set_search: Fe,
1060
- set_filter: Le,
1061
- set_page: qe,
1062
- default_params: ie,
1063
- selected_items: Z,
1064
- atLeastOneSelected: Ie,
1065
- expand_item_toggle: U,
1066
- close_all_expanded_items: ne,
1067
- selectAllCheckbox: he,
1068
- toggleColumnVisibility: _e,
1069
- columns_list: ue
1070
- }), $e(() => {
1071
- u.value = !0, s.value.immediate && ge(() => {
1072
- j();
1073
- }), ge(() => {
1074
- s.value.storage_id && (Pe(), De());
1093
+ return _({
1094
+ execute: v,
1095
+ reSearch: D,
1096
+ pagination: fe(M),
1097
+ set_limit_per_page: Le,
1098
+ set_search: qe,
1099
+ set_filter: Ke,
1100
+ set_page: Ue,
1101
+ default_params: b,
1102
+ selected_items: ne,
1103
+ atLeastOneSelected: Pe,
1104
+ expand_item_toggle: Y,
1105
+ close_all_expanded_items: ee,
1106
+ selectAllCheckbox: K,
1107
+ toggleColumnVisibility: me,
1108
+ columns_list: pe,
1109
+ items: fe(X),
1110
+ results: fe(ae)
1111
+ }), Te(() => {
1112
+ c.value = !0, s.value.immediate && he(() => {
1113
+ D();
1114
+ }), he(() => {
1115
+ s.value.storage_id && (Ee(), Ve());
1075
1116
  });
1076
1117
  }), (l, i) => (e(), r("div", null, [
1077
- _("div", {
1078
- class: w(["", t(s).class_container])
1118
+ m("div", {
1119
+ class: S(["", t(s).class_container])
1079
1120
  }, [
1080
- F(l.$slots, "default", {}, void 0, !0),
1081
- _("div", {
1082
- class: w(["", t(s).class_content])
1121
+ H(l.$slots, "default", {}, void 0, !0),
1122
+ m("div", {
1123
+ class: S(["", t(s).class_content])
1083
1124
  }, [
1084
- _("div", {
1085
- class: w([t(s).class_filters, "d-flex justify-content-between align-items-start"])
1125
+ m("div", {
1126
+ class: S([t(s).class_filters, "d-flex justify-content-between align-items-start"])
1086
1127
  }, [
1087
- F(l.$slots, "pageSize", {
1088
- changePageSize: we,
1089
- limit_per_page: x.value.limit_per_page
1128
+ H(l.$slots, "pageSize", {
1129
+ changePageSize: Ce,
1130
+ limit_per_page: M.value.limit_per_page
1090
1131
  }, () => [
1091
- _("div", {
1092
- class: w(["text-secondary", t(s).class_page_size])
1132
+ m("div", {
1133
+ class: S(["text-secondary", t(s).class_page_size])
1093
1134
  }, [
1094
- H(z(t(s).first_text_page_size) + " ", 1),
1095
- _("div", qt, [
1096
- Be(_("input", {
1135
+ A(O(t(s).first_text_page_size) + " ", 1),
1136
+ m("div", Kt, [
1137
+ Oe(m("input", {
1097
1138
  class: "form-control form-control-sm",
1098
- onChange: we,
1099
- "onUpdate:modelValue": i[0] || (i[0] = (o) => x.value.limit_per_page = o),
1139
+ onChange: Ce,
1140
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => M.value.limit_per_page = o),
1100
1141
  min: "1",
1101
1142
  size: "3",
1102
1143
  "aria-label": "Número de registros por página",
1103
1144
  type: "number"
1104
1145
  }, null, 544), [
1105
1146
  [
1106
- Te,
1107
- x.value.limit_per_page,
1147
+ ze,
1148
+ M.value.limit_per_page,
1108
1149
  void 0,
1109
1150
  { lazy: !0 }
1110
1151
  ]
1111
1152
  ])
1112
1153
  ]),
1113
- H(" " + z(t(s).second_text_page_size), 1)
1154
+ A(" " + O(t(s).second_text_page_size), 1)
1114
1155
  ], 2)
1115
1156
  ], !0),
1116
- F(l.$slots, "fieldMiddle", {}, void 0, !0),
1117
- _("div", Kt, [
1118
- u.value ? (e(), $(oe, {
1157
+ H(l.$slots, "fieldMiddle", {}, void 0, !0),
1158
+ m("div", Ut, [
1159
+ c.value ? (e(), $(de, {
1119
1160
  key: 0,
1120
1161
  to: t(s).search_teleport || "body",
1121
1162
  disabled: !t(s).search_teleport
1122
1163
  }, [
1123
- t(s).disable_search ? b("", !0) : (e(), $(gt, {
1164
+ t(s).disable_search ? C("", !0) : (e(), $(ft, {
1124
1165
  key: 0,
1125
- search: x.value.search,
1126
- "onUpdate:search": i[1] || (i[1] = (o) => x.value.search = o),
1127
- filter: x.value.filter,
1128
- "onUpdate:filter": i[2] || (i[2] = (o) => x.value.filter = o),
1166
+ search: M.value.search,
1167
+ "onUpdate:search": i[1] || (i[1] = (o) => M.value.search = o),
1168
+ filter: M.value.filter,
1169
+ "onUpdate:filter": i[2] || (i[2] = (o) => M.value.filter = o),
1129
1170
  list_filter: t(s).list_filter,
1130
- item_use: Ee.value,
1131
- onSearch: t(j),
1171
+ item_use: je.value,
1172
+ onSearch: t(D),
1132
1173
  deactivate_search_on_clear: t(s).deactivate_search_on_clear,
1133
1174
  placeholder_search: t(s).placeholder_search,
1134
1175
  deactivate_search_empty: t(s).deactivate_search_empty,
1135
1176
  use_column_manager: t(s).use_column_manager,
1136
- toggleColumnVisibility: _e,
1137
- columns_list: ue.value,
1177
+ toggleColumnVisibility: me,
1178
+ columns_list: pe.value,
1138
1179
  onClickedClearSearch: i[3] || (i[3] = (o) => l.$emit("clickedClearSearch"))
1139
1180
  }, {
1140
- "search-field": X(() => [
1141
- F(l.$slots, "search-field", {
1142
- search: x.value.search,
1143
- filter: x.value.filter,
1144
- reSearch: t(j)
1181
+ "search-field": Z(() => [
1182
+ H(l.$slots, "search-field", {
1183
+ search: M.value.search,
1184
+ filter: M.value.filter,
1185
+ reSearch: t(D)
1145
1186
  }, void 0, !0)
1146
1187
  ]),
1147
1188
  _: 3
1148
1189
  }, 8, ["search", "filter", "list_filter", "item_use", "onSearch", "deactivate_search_on_clear", "placeholder_search", "deactivate_search_empty", "use_column_manager", "columns_list"]))
1149
- ], 8, ["to", "disabled"])) : b("", !0),
1150
- u.value ? (e(), $(oe, {
1190
+ ], 8, ["to", "disabled"])) : C("", !0),
1191
+ c.value ? (e(), $(de, {
1151
1192
  key: 1,
1152
1193
  to: t(s).column_manager_teleport || "body",
1153
1194
  disabled: !t(s).column_manager_teleport
1154
1195
  }, [
1155
- te(yt, {
1196
+ le(kt, {
1156
1197
  use_column_manager: t(s).use_column_manager,
1157
- columns_list: ue.value,
1158
- toggleColumnVisibility: _e,
1198
+ columns_list: pe.value,
1199
+ toggleColumnVisibility: me,
1159
1200
  disable_class_column_manager_default: t(s).disable_class_column_manager_default,
1160
1201
  class_column_manager_button: t(s).class_column_manager_button,
1161
1202
  class_column_manager_dropdown_menu: t(s).class_column_manager_dropdown_menu,
1162
1203
  class_column_manager_dropdown: t(s).class_column_manager_dropdown
1163
1204
  }, 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"])
1164
- ], 8, ["to", "disabled"])) : b("", !0),
1165
- u.value ? (e(), $(oe, {
1205
+ ], 8, ["to", "disabled"])) : C("", !0),
1206
+ c.value ? (e(), $(de, {
1166
1207
  key: 2,
1167
1208
  to: t(s).extra_actions_teleport || "body",
1168
1209
  disabled: !t(s).extra_actions_teleport
1169
1210
  }, [
1170
- F(l.$slots, "extra-actions", {}, void 0, !0)
1171
- ], 8, ["to", "disabled"])) : b("", !0)
1211
+ H(l.$slots, "extra-actions", {}, void 0, !0)
1212
+ ], 8, ["to", "disabled"])) : C("", !0)
1172
1213
  ])
1173
1214
  ], 2),
1174
- F(l.$slots, "item-selected-info", {
1175
- selected_items: t(Z),
1176
- clearSelection: () => Z.value = []
1215
+ H(l.$slots, "item-selected-info", {
1216
+ selected_items: t(ne),
1217
+ clearSelection: () => ne.value = []
1177
1218
  }, () => [
1178
- t(s).use_checkbox && t(Z).length > 0 && !t(s).deactivate_selected_info ? (e(), r("div", Ut, [
1179
- _("h4", Jt, [
1180
- i[10] || (i[10] = _("strong", null, "oi Itens Selecionados:", -1)),
1181
- i[11] || (i[11] = H()),
1182
- _("span", Yt, z(t(Z).length), 1)
1219
+ t(s).use_checkbox && t(ne).length > 0 && !t(s).deactivate_selected_info ? (e(), r("div", Jt, [
1220
+ m("h4", Yt, [
1221
+ i[10] || (i[10] = m("strong", null, "oi Itens Selecionados:", -1)),
1222
+ i[11] || (i[11] = A()),
1223
+ m("span", Gt, O(t(ne).length), 1)
1183
1224
  ]),
1184
- _("a", {
1225
+ m("a", {
1185
1226
  class: "cursor-pointer",
1186
- onClick: i[4] || (i[4] = (o) => Z.value = [])
1227
+ onClick: i[4] || (i[4] = (o) => ne.value = [])
1187
1228
  }, [
1188
1229
  (e(), $(V(t(a).checkbox.clear))),
1189
- i[12] || (i[12] = H(" Limpar Seleção ", -1))
1230
+ i[12] || (i[12] = A(" Limpar Seleção ", -1))
1190
1231
  ])
1191
- ])) : b("", !0)
1232
+ ])) : C("", !0)
1192
1233
  ], !0),
1193
- t(Q) ? (e(), $(Ht, {
1234
+ t(q) ? (e(), $(Ft, {
1194
1235
  key: 0,
1195
- columns: k.value,
1196
- limit: x.value.limit_per_page,
1236
+ columns: x.value,
1237
+ limit: M.value.limit_per_page,
1197
1238
  type_loading: t(s).type_loading,
1198
1239
  custom_loading: t(s).custom_loading,
1199
1240
  class_table: t(s).class_table,
1200
- attempt: t(S),
1201
- pagination: x.value
1202
- }, null, 8, ["columns", "limit", "type_loading", "custom_loading", "class_table", "attempt", "pagination"])) : t(M) ? (e(), r("div", Gt, [
1203
- i[13] || (i[13] = _("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
1204
- t(S) ? (e(), r("p", Xt, " Não foi possível carregar os dados após " + z(t(S).total) + " tentativa(s). ", 1)) : (e(), r("p", Wt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
1205
- _("button", {
1241
+ attempt: t(te),
1242
+ pagination: M.value
1243
+ }, null, 8, ["columns", "limit", "type_loading", "custom_loading", "class_table", "attempt", "pagination"])) : t(W) ? (e(), r("div", Xt, [
1244
+ i[13] || (i[13] = m("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
1245
+ t(te) ? (e(), r("p", Wt, " Não foi possível carregar os dados após " + O(t(te).total) + " tentativa(s). ", 1)) : (e(), r("p", Qt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
1246
+ m("button", {
1206
1247
  class: "btn btn-primary mt-2",
1207
1248
  onClick: i[5] || (i[5] = //@ts-ignore
1208
- (...o) => t(N) && t(N)(...o))
1249
+ (...o) => t(v) && t(v)(...o))
1209
1250
  }, " Tentar Novamente ")
1210
- ])) : t(Y) ? (e(), r("div", Rt, [
1211
- se.value || t(s).show_header_when_empty ? (e(), r("div", Qt, [
1212
- _("table", {
1213
- class: w(["table table-vcenter table-selectable", t(s).class_table])
1251
+ ])) : t(X) ? (e(), r("div", Zt, [
1252
+ re.value || t(s).show_header_when_empty ? (e(), r("div", Rt, [
1253
+ m("table", {
1254
+ class: S(["table table-vcenter table-selectable", t(s).class_table])
1214
1255
  }, [
1215
- _("thead", null, [
1216
- te(t(st), {
1217
- modelValue: ce.value,
1218
- "onUpdate:modelValue": i[7] || (i[7] = (o) => ce.value = o),
1256
+ m("thead", null, [
1257
+ le(t(lt), {
1258
+ modelValue: _e.value,
1259
+ "onUpdate:modelValue": i[7] || (i[7] = (o) => _e.value = o),
1219
1260
  tag: "tr",
1220
1261
  "item-key": "id",
1221
1262
  animation: 400,
1222
1263
  "ghost-class": "ghost-item",
1223
1264
  "drag-class": "dragging-item",
1224
1265
  onStart: i[8] || (i[8] = (o) => L.value = !0),
1225
- onEnd: i[9] || (i[9] = () => Ne())
1266
+ onEnd: i[9] || (i[9] = () => Ae())
1226
1267
  }, {
1227
- header: X(() => [
1228
- t(s).use_expandable_items ? (e(), r("th", Zt)) : b("", !0),
1229
- t(s).use_checkbox ? (e(), r("th", ea, [
1230
- _("input", {
1268
+ header: Z(() => [
1269
+ t(s).use_expandable_items ? (e(), r("th", ea)) : C("", !0),
1270
+ t(s).use_checkbox ? (e(), r("th", ta, [
1271
+ m("input", {
1231
1272
  class: "form-check-input m-0",
1232
1273
  type: "checkbox",
1233
1274
  ref_key: "selectAllCheckbox",
1234
- ref: he,
1275
+ ref: K,
1235
1276
  onChange: i[6] || (i[6] = //@ts-ignore
1236
- (...o) => t(ke) && t(ke)(...o)),
1277
+ (...o) => t(we) && t(we)(...o)),
1237
1278
  "aria-label": "Selecionar todos os itens na página"
1238
1279
  }, null, 544)
1239
- ])) : b("", !0)
1280
+ ])) : C("", !0)
1240
1281
  ]),
1241
- item: X(({ element: o }) => [
1242
- te(Se, {
1282
+ item: Z(({ element: o }) => [
1283
+ le($e, {
1243
1284
  header: o.header,
1244
1285
  class_column: o.class_column,
1245
1286
  use_ordering: o.use_ordering,
1246
- orderings_state: h.value[o.id] || "none",
1247
- onToggleOrderingState: () => xe(o.id),
1287
+ orderings_state: y.value[o.id] || "none",
1288
+ onToggleOrderingState: () => Se(o.id),
1248
1289
  locked: !1,
1249
1290
  col: o
1250
1291
  }, null, 8, ["header", "class_column", "use_ordering", "orderings_state", "onToggleOrderingState", "col"])
1251
1292
  ]),
1252
- footer: X(() => [
1253
- (e(!0), r(D, null, A(be.value, (o) => (e(), $(Se, {
1293
+ footer: Z(() => [
1294
+ (e(!0), r(E, null, j(xe.value, (o) => (e(), $($e, {
1254
1295
  key: o.field || o.header,
1255
1296
  header: o.header,
1256
1297
  class_column: o.class_column,
1257
1298
  use_ordering: o.use_ordering,
1258
- orderings_state: h.value[o.id] || "none",
1259
- onToggleOrderingState: () => xe(o.id),
1299
+ orderings_state: y.value[o.id] || "none",
1300
+ onToggleOrderingState: () => Se(o.id),
1260
1301
  col: o,
1261
1302
  locked: ""
1262
1303
  }, null, 8, ["header", "class_column", "use_ordering", "orderings_state", "onToggleOrderingState", "col"]))), 128))
@@ -1264,175 +1305,175 @@ const Mt = { class: "loading-container" }, $t = { key: 0 }, Bt = { key: 2 }, Tt
1264
1305
  _: 1
1265
1306
  }, 8, ["modelValue"])
1266
1307
  ]),
1267
- _("tbody", null, [
1268
- se.value ? (e(!0), r(D, { key: 0 }, A(t(Y), (o, I) => (e(), r(D, {
1308
+ m("tbody", null, [
1309
+ re.value ? (e(!0), r(E, { key: 0 }, j(t(X), (o, z) => (e(), r(E, {
1269
1310
  key: o[t(s).item_key]
1270
1311
  }, [
1271
- te(et, {
1312
+ le(tt, {
1272
1313
  tag: "tr",
1273
1314
  name: L.value ? "column-move" : ""
1274
1315
  }, {
1275
- default: X(() => [
1276
- t(s).use_expandable_items ? (e(), r("td", ta, [
1277
- F(l.$slots, "expand-button", {
1316
+ default: Z(() => [
1317
+ t(s).use_expandable_items ? (e(), r("td", aa, [
1318
+ H(l.$slots, "expand-button", {
1278
1319
  item: o,
1279
- index: I,
1280
- isExpanded: t(J)(o),
1281
- expand_item_toggle: t(U)
1320
+ index: z,
1321
+ isExpanded: t(G)(o),
1322
+ expand_item_toggle: t(Y)
1282
1323
  }, () => [
1283
- _("button", {
1324
+ m("button", {
1284
1325
  type: "button",
1285
- class: w(["btn-clean btn-icon-anim", { "is-expanded": t(J)(o) }]),
1286
- onClick: (p) => t(U)(o)
1326
+ class: S(["btn-clean btn-icon-anim", { "is-expanded": t(G)(o) }]),
1327
+ onClick: (g) => t(Y)(o)
1287
1328
  }, [
1288
1329
  t(s).type_button_expand === "arrow" ? (e(), $(V(t(a).expand.arrow), { key: 0 })) : (e(), $(V(t(a).expand.plus), { key: 1 }))
1289
- ], 10, aa)
1330
+ ], 10, na)
1290
1331
  ], !0)
1291
- ])) : b("", !0),
1292
- t(s).use_checkbox ? (e(), r("td", na, [
1293
- _("input", {
1332
+ ])) : C("", !0),
1333
+ t(s).use_checkbox ? (e(), r("td", sa, [
1334
+ m("input", {
1294
1335
  class: "form-check-input m-0",
1295
1336
  type: "checkbox",
1296
- checked: t(ye)(o),
1297
- onChange: (p) => t(Oe)(o),
1337
+ checked: t(be)(o),
1338
+ onChange: (g) => t(De)(o),
1298
1339
  "aria-label": "Selecionar este item"
1299
- }, null, 40, sa)
1300
- ])) : b("", !0),
1301
- (e(!0), r(D, null, A(Ve.value, (p, E) => (e(), r("td", {
1302
- key: p.field || p.header,
1303
- class: w(p.class_row)
1340
+ }, null, 40, la)
1341
+ ])) : C("", !0),
1342
+ (e(!0), r(E, null, j(Ne.value, (g, N) => (e(), r("td", {
1343
+ key: g.field || g.header,
1344
+ class: S(g.class_row)
1304
1345
  }, [
1305
- p.bodySlot ? (e(), $(V(p.bodySlot), {
1346
+ g.bodySlot ? (e(), $(V(g.bodySlot), {
1306
1347
  key: 0,
1307
1348
  item: o,
1308
- index: E,
1309
- "is-selected": t(ye)(o)
1310
- }, null, 8, ["item", "index", "is-selected"])) : p.type === "text" ? (e(), r("span", {
1349
+ index: N,
1350
+ "is-selected": t(be)(o)
1351
+ }, null, 8, ["item", "index", "is-selected"])) : g.type === "text" ? (e(), r("span", {
1311
1352
  key: 1,
1312
- onClick: (q) => p.click ? p.click(o) : null,
1313
- class: w(le(p, o))
1314
- }, z(Ae(K(p.field, o, p.transform_function), p.limite_text ?? null)), 11, la)) : p.type === "date" ? (e(), r("span", {
1353
+ onClick: (F) => g.click ? g.click(o) : null,
1354
+ class: S(ie(g, o))
1355
+ }, O(Fe(U(g.field, o, g.transform_function), g.limite_text ?? null)), 11, oa)) : g.type === "date" ? (e(), r("span", {
1315
1356
  key: 2,
1316
- onClick: (q) => p.click ? p.click(o) : null,
1317
- class: w(le(p, o))
1357
+ onClick: (F) => g.click ? g.click(o) : null,
1358
+ class: S(ie(g, o))
1318
1359
  }, [
1319
- p.format === "complete" ? (e(), r("span", ra, z(new Date(K(
1320
- p.field,
1360
+ g.format === "complete" ? (e(), r("span", ia, O(new Date(U(
1361
+ g.field,
1321
1362
  o
1322
- )).toLocaleString()), 1)) : b("", !0),
1323
- p.format === "simple" ? (e(), r("span", ia, z(new Date(K(
1324
- p.field,
1363
+ )).toLocaleString()), 1)) : C("", !0),
1364
+ g.format === "simple" ? (e(), r("span", da, O(new Date(U(
1365
+ g.field,
1325
1366
  o
1326
- )).toLocaleDateString()), 1)) : b("", !0)
1327
- ], 10, oa)) : p.type === "html" ? (e(), r("div", {
1367
+ )).toLocaleDateString()), 1)) : C("", !0)
1368
+ ], 10, ra)) : g.type === "html" ? (e(), r("div", {
1328
1369
  key: 3,
1329
- onClick: (q) => p.click ? p.click(o) : null,
1330
- class: w(le(p, o)),
1331
- innerHTML: K(p.field, o)
1332
- }, null, 10, da)) : p.type === "img" ? (e(), r("div", {
1370
+ onClick: (F) => g.click ? g.click(o) : null,
1371
+ class: S(ie(g, o)),
1372
+ innerHTML: U(g.field, o)
1373
+ }, null, 10, ua)) : g.type === "img" ? (e(), r("div", {
1333
1374
  key: 4,
1334
- onClick: (q) => p.click ? p.click(o) : null,
1335
- class: w(le(p, o))
1375
+ onClick: (F) => g.click ? g.click(o) : null,
1376
+ class: S(ie(g, o))
1336
1377
  }, [
1337
- K(p.field, o) ? (e(), r("div", ve({
1378
+ U(g.field, o) ? (e(), r("div", ye({
1338
1379
  key: 0,
1339
1380
  ref_for: !0
1340
- }, p.deactivate_img_preview ? {
1381
+ }, g.deactivate_img_preview ? {
1341
1382
  class: "container-img"
1342
1383
  } : {
1343
- onMouseover: (q) => t(B)(q, K(p.field, o)),
1344
- onMousemove: t(g),
1345
- onMouseleave: t(y),
1384
+ onMouseover: (F) => t(T)(F, U(g.field, o)),
1385
+ onMousemove: t(f),
1386
+ onMouseleave: t(k),
1346
1387
  class: "container-img container-img-preview"
1347
1388
  }), [
1348
- _("img", {
1389
+ m("img", {
1349
1390
  class: "img-tamanho",
1350
- src: K(p.field, o)
1351
- }, null, 8, ua),
1352
- _("img", {
1353
- class: "img-tamanho-cover",
1354
- src: K(p.field, o)
1391
+ src: U(g.field, o)
1355
1392
  }, null, 8, _a),
1356
- i[14] || (i[14] = _("div", { class: "bg-img" }, null, -1))
1357
- ], 16)) : b("", !0)
1358
- ], 10, ca)) : (e(), r("span", pa, [
1359
- i[15] || (i[15] = H("tipo ", -1)),
1360
- _("span", ma, z(p.type), 1),
1361
- i[16] || (i[16] = H(" não suportado", -1))
1393
+ m("img", {
1394
+ class: "img-tamanho-cover",
1395
+ src: U(g.field, o)
1396
+ }, null, 8, pa),
1397
+ i[14] || (i[14] = m("div", { class: "bg-img" }, null, -1))
1398
+ ], 16)) : C("", !0)
1399
+ ], 10, ca)) : (e(), r("span", ma, [
1400
+ i[15] || (i[15] = A("tipo ", -1)),
1401
+ m("span", ga, O(g.type), 1),
1402
+ i[16] || (i[16] = A(" não suportado", -1))
1362
1403
  ]))
1363
1404
  ], 2))), 128))
1364
1405
  ]),
1365
1406
  _: 2
1366
1407
  }, 1032, ["name"]),
1367
- te(tt, {
1408
+ le(at, {
1368
1409
  name: "expand-item-" + t(s).type_animation_expand,
1369
1410
  css: !t(s).deactivate_animation_expand
1370
1411
  }, {
1371
- default: X(() => [
1372
- t(J)(o) ? (e(), r("tr", {
1412
+ default: Z(() => [
1413
+ t(G)(o) ? (e(), r("tr", {
1373
1414
  key: 0,
1374
1415
  id: "expand-item-" + o[t(s).item_key],
1375
1416
  class: "expanded-item-row"
1376
1417
  }, [
1377
- _("td", {
1378
- colspan: Ke()
1418
+ m("td", {
1419
+ colspan: Je()
1379
1420
  }, [
1380
- F(l.$slots, "after-row", { item: o }, void 0, !0)
1421
+ H(l.$slots, "after-row", { item: o }, void 0, !0)
1381
1422
  ], 8, va)
1382
- ], 8, ga)) : b("", !0)
1423
+ ], 8, fa)) : C("", !0)
1383
1424
  ]),
1384
1425
  _: 2
1385
1426
  }, 1032, ["name", "css"])
1386
- ], 64))), 128)) : b("", !0)
1427
+ ], 64))), 128)) : C("", !0)
1387
1428
  ])
1388
1429
  ], 2)
1389
- ])) : b("", !0),
1390
- !se.value && t(G) === !1 ? (e(), r("div", fa, [
1391
- F(l.$slots, "idle-state", {}, void 0, !0)
1392
- ])) : se.value ? b("", !0) : (e(), r("div", ha, [...i[17] || (i[17] = [
1393
- _("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
1430
+ ])) : C("", !0),
1431
+ !re.value && t(Q) === !1 ? (e(), r("div", ha, [
1432
+ H(l.$slots, "idle-state", {}, void 0, !0)
1433
+ ])) : re.value ? C("", !0) : (e(), r("div", ya, [...i[17] || (i[17] = [
1434
+ m("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
1394
1435
  ])]))
1395
- ])) : b("", !0)
1436
+ ])) : C("", !0)
1396
1437
  ], 2)
1397
1438
  ], 2),
1398
- u.value ? (e(), $(oe, {
1439
+ c.value ? (e(), $(de, {
1399
1440
  key: 0,
1400
1441
  to: t(s).pagination_teleport || "body",
1401
1442
  disabled: !t(s).pagination_teleport
1402
1443
  }, [
1403
- F(l.$slots, "pagination", {
1404
- pagination: x.value,
1405
- tradePage: t(N),
1406
- error: t(M)
1444
+ H(l.$slots, "pagination", {
1445
+ pagination: M.value,
1446
+ tradePage: t(v),
1447
+ error: t(W)
1407
1448
  }, () => [
1408
- !t(M) && x.value.count > 0 ? (e(), r("div", {
1449
+ !t(W) && M.value.count > 0 ? (e(), r("div", {
1409
1450
  key: 0,
1410
- class: w(["px-3", t(s).class_pagination])
1451
+ class: S(["px-3", t(s).class_pagination])
1411
1452
  }, [
1412
- te(nt, {
1453
+ le(st, {
1413
1454
  page_starts_at: t(s).page_starts_at,
1414
1455
  filtering: !0,
1415
- pagination: x.value,
1416
- onTradePage: Ue
1456
+ pagination: M.value,
1457
+ onTradePage: Ye
1417
1458
  }, null, 8, ["page_starts_at", "pagination"])
1418
- ], 2)) : b("", !0)
1459
+ ], 2)) : C("", !0)
1419
1460
  ], !0)
1420
- ], 8, ["to", "disabled"])) : b("", !0),
1421
- t(c) ? (e(), r("div", {
1461
+ ], 8, ["to", "disabled"])) : C("", !0),
1462
+ t(u) ? (e(), r("div", {
1422
1463
  key: 1,
1423
1464
  class: "image-preview-container",
1424
- style: at(t(m))
1465
+ style: nt(t(p))
1425
1466
  }, [
1426
- _("img", {
1427
- src: t(C),
1467
+ m("img", {
1468
+ src: t(w),
1428
1469
  alt: "Preview",
1429
1470
  class: "image-preview-large"
1430
- }, null, 8, ya)
1431
- ], 4)) : b("", !0)
1471
+ }, null, 8, ka)
1472
+ ], 4)) : C("", !0)
1432
1473
  ]));
1433
1474
  }
1434
- }), Ma = /* @__PURE__ */ fe(ka, [["__scopeId", "data-v-3198e7cc"]]);
1475
+ }), $a = /* @__PURE__ */ ke(ba, [["__scopeId", "data-v-762bb23a"]]);
1435
1476
  export {
1436
- Sa as VColumn,
1437
- Ma as VDataTable
1477
+ Ma as VColumn,
1478
+ $a as VDataTable
1438
1479
  };