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