v-sistec-features 1.3.1 → 1.3.3

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,6 +1,6 @@
1
- import { defineComponent as F, useSlots as he, inject as ye, onMounted as te, computed as N, createElementBlock as n, createCommentVNode as k, openBlock as a, createElementVNode as s, toDisplayString as f, withModifiers as j, Fragment as S, renderList as T, normalizeClass as _, watch as O, resolveComponent as ke, withDirectives as ae, withKeys as be, vModelText as ne, createBlock as X, withCtx as xe, createTextVNode as D, ref as z, provide as we, readonly as Ce, nextTick as $e, renderSlot as q, createVNode as Q, resolveDynamicComponent as Z, unref as x, mergeProps as Me, normalizeStyle as Se } from "vue";
2
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
1
+ import { defineComponent as F, useSlots as he, inject as ye, onMounted as ke, computed as T, createElementBlock as n, createCommentVNode as k, openBlock as a, createElementVNode as l, toDisplayString as f, withModifiers as j, Fragment as S, renderList as P, normalizeClass as _, watch as I, resolveComponent as be, withDirectives as ne, withKeys as xe, vModelText as se, createBlock as W, withCtx as we, createTextVNode as D, ref as z, provide as Ce, readonly as $e, nextTick as Me, renderSlot as O, createVNode as R, resolveDynamicComponent as ee, unref as x, mergeProps as Se, normalizeStyle as ze } from "vue";
2
+ import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const le = Symbol("v-datatable-key"), Vt = /* @__PURE__ */ F({
4
4
  __name: "VColumn",
5
5
  props: {
6
6
  field: { default: null },
@@ -16,11 +16,11 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
16
16
  click: { type: [Function, null], default: null }
17
17
  },
18
18
  setup(w) {
19
- const d = w, o = he(), v = ye(se);
19
+ const d = w, o = he(), v = ye(le);
20
20
  if (!v)
21
21
  throw new Error("VColumn deve ser usado dentro de um VDataTable.");
22
22
  const h = ["text", "img", "date", "html"];
23
- return te(() => {
23
+ return ke(() => {
24
24
  if (d.field !== null && !d.field)
25
25
  throw new Error('A propriedade "field" é obrigatória em VColumn.');
26
26
  if (!d.header)
@@ -51,16 +51,16 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
51
51
  });
52
52
  }), (C, E) => null;
53
53
  }
54
- }), ze = {
54
+ }), Pe = {
55
55
  key: 0,
56
56
  class: "d-flex align-items-center justify-content-between w-100"
57
- }, Pe = {
57
+ }, Te = {
58
58
  key: 0,
59
59
  class: "d-flex align-items-center gap-2"
60
- }, Te = { class: "d-flex" }, Ne = ["disabled"], Ae = ["disabled"], De = { class: "d-flex gap-2" }, Ee = ["onClick", "disabled"], He = {
60
+ }, Ne = { class: "d-flex" }, Ae = ["disabled"], De = ["disabled"], Ee = { class: "d-flex gap-2" }, He = ["onClick", "disabled"], Ve = {
61
61
  key: 1,
62
62
  class: "m-0 p-0"
63
- }, Ve = { class: "d-flex" }, Le = ["disabled"], je = ["disabled"], R = `
63
+ }, Le = { class: "d-flex" }, je = ["disabled"], Be = ["disabled"], te = `
64
64
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
65
65
  stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
66
66
  class="icon icon-tabler icons-tabler-outline icon-tabler-chevrons-left">
@@ -68,14 +68,14 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
68
68
  <path d="M11 7l-5 5l5 5" />
69
69
  <path d="M17 7l-5 5l5 5" />
70
70
  </svg>
71
- `, ee = `
71
+ `, ae = `
72
72
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
73
73
  stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
74
74
  class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-left">
75
75
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
76
76
  <path d="M15 6l-6 6l6 6" />
77
77
  </svg>
78
- `, Be = /* @__PURE__ */ F({
78
+ `, Ie = /* @__PURE__ */ F({
79
79
  __name: "PaginationDatatable",
80
80
  props: {
81
81
  pagination: {},
@@ -83,19 +83,19 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
83
83
  },
84
84
  emits: ["tradePage"],
85
85
  setup(w, { emit: d }) {
86
- const o = w, v = d, h = N(() => o.pagination.limit_per_page ? Math.ceil(o.pagination.count / o.pagination.limit_per_page) : 0), C = N(() => o.pagination.current_page + 1 < h.value ? o.pagination.current_page + 1 : null), E = () => {
86
+ const o = w, v = d, h = T(() => o.pagination.limit_per_page ? Math.ceil(o.pagination.count / o.pagination.limit_per_page) : 0), C = T(() => o.pagination.current_page + 1 < h.value ? o.pagination.current_page + 1 : null), E = () => {
87
87
  o.pagination.current_page++, v("tradePage");
88
88
  }, V = (p) => {
89
89
  o.pagination.current_page = p - 1, v("tradePage");
90
- }, l = () => {
90
+ }, s = () => {
91
91
  o.pagination.current_page = h.value - 1, v("tradePage");
92
92
  }, c = () => {
93
93
  o.pagination.current_page = 0, v("tradePage");
94
94
  }, g = () => {
95
95
  o.pagination.current_page > 0 && (o.pagination.current_page--, v("tradePage"));
96
- }, m = N(() => {
96
+ }, m = T(() => {
97
97
  if (h.value <= 7)
98
- return Array.from({ length: h.value }, (A, B) => B + 1);
98
+ return Array.from({ length: h.value }, (N, B) => B + 1);
99
99
  const p = o.pagination.current_page + 1, y = h.value, $ = /* @__PURE__ */ new Set([
100
100
  1,
101
101
  2,
@@ -109,67 +109,67 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
109
109
  // Sempre mostra as 2 últimas
110
110
  ]), b = [];
111
111
  let u = 0;
112
- return Array.from($).sort((A, B) => A - B).forEach((A) => {
113
- A < 1 || A > y || (A > u + 1 && b.push("..."), b.push(A), u = A);
112
+ return Array.from($).sort((N, B) => N - B).forEach((N) => {
113
+ N < 1 || N > y || (N > u + 1 && b.push("..."), b.push(N), u = N);
114
114
  }), b;
115
115
  });
116
- return (p, y) => o.pagination.count > 0 ? (a(), n("div", ze, [
117
- s("span", null, " Mostrando de " + f(o.pagination.count !== 0 ? o.pagination.limit_per_page * o.pagination.current_page + 1 : 0) + " até " + f(o.pagination.limit_per_page * (o.pagination.current_page + 1) < o.pagination.count ? o.pagination.limit_per_page * (o.pagination.current_page + 1) : o.pagination.count) + " de " + f(o.pagination.count) + " registros ", 1),
118
- h.value > 0 ? (a(), n("div", Pe, [
119
- s("div", Te, [
120
- s("button", {
116
+ return (p, y) => o.pagination.count > 0 ? (a(), n("div", Pe, [
117
+ l("span", null, " Mostrando de " + f(o.pagination.count !== 0 ? o.pagination.limit_per_page * o.pagination.current_page + 1 : 0) + " até " + f(o.pagination.limit_per_page * (o.pagination.current_page + 1) < o.pagination.count ? o.pagination.limit_per_page * (o.pagination.current_page + 1) : o.pagination.count) + " de " + f(o.pagination.count) + " registros ", 1),
118
+ h.value > 0 ? (a(), n("div", Te, [
119
+ l("div", Ne, [
120
+ l("button", {
121
121
  class: "btn btn-estilo",
122
122
  onClick: j(c, ["prevent"]),
123
123
  disabled: o.pagination.current_page === 0,
124
- innerHTML: R
125
- }, null, 8, Ne),
126
- s("button", {
124
+ innerHTML: te
125
+ }, null, 8, Ae),
126
+ l("button", {
127
127
  class: "btn btn-estilo",
128
128
  onClick: j(g, ["prevent"]),
129
129
  disabled: o.pagination.current_page === 0,
130
- innerHTML: ee
131
- }, null, 8, Ae)
130
+ innerHTML: ae
131
+ }, null, 8, De)
132
132
  ]),
133
- s("div", De, [
134
- (a(!0), n(S, null, T(m.value, ($, b) => (a(), n(S, { key: b }, [
133
+ l("div", Ee, [
134
+ (a(!0), n(S, null, P(m.value, ($, b) => (a(), n(S, { key: b }, [
135
135
  typeof $ == "number" ? (a(), n("button", {
136
136
  key: 0,
137
137
  class: _([o.pagination.current_page + 1 == $ ? "page-select" : "", "page-estilo"]),
138
138
  onClick: j((u) => V($), ["prevent"]),
139
139
  disabled: o.pagination.current_page + 1 == $
140
- }, f($), 11, Ee)) : (a(), n("span", He, "..."))
140
+ }, f($), 11, He)) : (a(), n("span", Ve, "..."))
141
141
  ], 64))), 128))
142
142
  ]),
143
- s("div", Ve, [
144
- s("button", {
143
+ l("div", Le, [
144
+ l("button", {
145
145
  onClick: j(E, ["prevent"]),
146
146
  class: "btn btn-estilo rotate-180",
147
147
  disabled: !C.value,
148
- innerHTML: ee
149
- }, null, 8, Le),
150
- s("button", {
151
- onClick: j(l, ["prevent"]),
148
+ innerHTML: ae
149
+ }, null, 8, je),
150
+ l("button", {
151
+ onClick: j(s, ["prevent"]),
152
152
  class: "btn btn-estilo rotate-180",
153
153
  disabled: !C.value,
154
- innerHTML: R
155
- }, null, 8, je)
154
+ innerHTML: te
155
+ }, null, 8, Be)
156
156
  ])
157
157
  ])) : k("", !0)
158
158
  ])) : k("", !0);
159
159
  }
160
- }), Ie = /* @__PURE__ */ W(Be, [["__scopeId", "data-v-b9735591"]]), qe = { class: "dropdown d-flex" }, Oe = {
160
+ }), qe = /* @__PURE__ */ G(Ie, [["__scopeId", "data-v-b9735591"]]), Oe = { class: "dropdown d-flex" }, Fe = {
161
161
  key: 0,
162
162
  href: "#",
163
163
  class: "btn dropdown-toggle",
164
164
  "data-bs-toggle": "dropdown",
165
165
  title: "Pesquisas Prédefinidas"
166
- }, Fe = { class: "input-icon" }, Ke = {
166
+ }, Ke = { class: "input-icon" }, Ue = {
167
167
  key: 1,
168
168
  class: "input-icon-addon"
169
- }, Ue = {
169
+ }, Ye = {
170
170
  key: 1,
171
171
  class: "dropdown-menu"
172
- }, Ye = ["onClick"], Xe = /* @__PURE__ */ F({
172
+ }, Xe = ["onClick"], We = /* @__PURE__ */ F({
173
173
  __name: "SearchDatatable",
174
174
  props: {
175
175
  search: {},
@@ -179,35 +179,35 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
179
179
  },
180
180
  emits: ["update:search", "update:filter", "search"],
181
181
  setup(w, { emit: d }) {
182
- const o = w, v = d, h = N({
182
+ const o = w, v = d, h = T({
183
183
  get: () => o.search,
184
- set: (l) => v("update:search", l)
185
- }), C = N({
184
+ set: (s) => v("update:search", s)
185
+ }), C = T({
186
186
  get: () => o.filter,
187
- set: (l) => v("update:filter", l)
187
+ set: (s) => v("update:filter", s)
188
188
  });
189
- O(C, () => {
189
+ I(C, () => {
190
190
  v("search");
191
- }), O(
191
+ }), I(
192
192
  () => o.list_filter,
193
- (l) => {
194
- Array.isArray(l) ? (l.forEach((c, g) => {
193
+ (s) => {
194
+ Array.isArray(s) ? (s.forEach((c, g) => {
195
195
  c?.type === 1 && !c.to && console.error(`Filtro na posição ${g} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
196
- }), o.item_use.includes(2) && l.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.");
196
+ }), o.item_use.includes(2) && s.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.");
197
197
  },
198
198
  { immediate: !0, deep: !0 }
199
199
  );
200
- function E(l) {
201
- C.value === l ? C.value = "" : C.value = l;
200
+ function E(s) {
201
+ C.value === s ? C.value = "" : C.value = s;
202
202
  }
203
203
  function V() {
204
204
  h.value = "", v("search");
205
205
  }
206
- return (l, c) => {
207
- const g = ke("router-link");
208
- return a(), n("div", qe, [
209
- w.item_use.includes(2) ? (a(), n("a", Oe, [...c[3] || (c[3] = [
210
- s("svg", {
206
+ return (s, c) => {
207
+ const g = be("router-link");
208
+ return a(), n("div", Oe, [
209
+ w.item_use.includes(2) ? (a(), n("a", Fe, [...c[3] || (c[3] = [
210
+ l("svg", {
211
211
  xmlns: "http://www.w3.org/2000/svg",
212
212
  class: "icon icon-tabler icon-tabler-filter",
213
213
  width: "24",
@@ -219,24 +219,24 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
219
219
  "stroke-linecap": "round",
220
220
  "stroke-linejoin": "round"
221
221
  }, [
222
- s("path", {
222
+ l("path", {
223
223
  stroke: "none",
224
224
  d: "M0 0h24v24H0z",
225
225
  fill: "none"
226
226
  }),
227
- s("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" })
227
+ l("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" })
228
228
  ], -1)
229
229
  ])])) : k("", !0),
230
- s("div", Fe, [
231
- ae(s("input", {
230
+ l("div", Ke, [
231
+ ne(l("input", {
232
232
  type: "text",
233
233
  class: "form-control ms-1",
234
234
  id: "inputSearchLaudos",
235
235
  "onUpdate:modelValue": c[0] || (c[0] = (m) => h.value = m),
236
- onKeyup: c[1] || (c[1] = be((m) => l.$emit("search"), ["enter"])),
236
+ onKeyup: c[1] || (c[1] = xe((m) => s.$emit("search"), ["enter"])),
237
237
  placeholder: "Buscar..."
238
238
  }, null, 544), [
239
- [ne, h.value]
239
+ [se, h.value]
240
240
  ]),
241
241
  h.value ? (a(), n("span", {
242
242
  key: 0,
@@ -244,7 +244,7 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
244
244
  class: "inputClose",
245
245
  title: "Limpar pesquisa"
246
246
  }, [...c[4] || (c[4] = [
247
- s("svg", {
247
+ l("svg", {
248
248
  xmlns: "http://www.w3.org/2000/svg",
249
249
  width: "24",
250
250
  height: "24",
@@ -256,16 +256,16 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
256
256
  "stroke-linejoin": "round",
257
257
  class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
258
258
  }, [
259
- s("path", {
259
+ l("path", {
260
260
  stroke: "none",
261
261
  d: "M0 0h24v24H0z",
262
262
  fill: "none"
263
263
  }),
264
- s("path", { d: "M18 6l-12 12" }),
265
- s("path", { d: "M6 6l12 12" })
264
+ l("path", { d: "M18 6l-12 12" }),
265
+ l("path", { d: "M6 6l12 12" })
266
266
  ], -1)
267
- ])])) : (a(), n("span", Ke, [...c[5] || (c[5] = [
268
- s("svg", {
267
+ ])])) : (a(), n("span", Ue, [...c[5] || (c[5] = [
268
+ l("svg", {
269
269
  xmlns: "http://www.w3.org/2000/svg",
270
270
  width: "24",
271
271
  height: "24",
@@ -277,24 +277,24 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
277
277
  "stroke-linejoin": "round",
278
278
  class: "icon"
279
279
  }, [
280
- s("path", {
280
+ l("path", {
281
281
  stroke: "none",
282
282
  d: "M0 0h24v24H0z",
283
283
  fill: "none"
284
284
  }),
285
- s("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }),
286
- s("path", { d: "M21 21l-6 -6" })
285
+ l("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }),
286
+ l("path", { d: "M21 21l-6 -6" })
287
287
  ], -1)
288
288
  ])]))
289
289
  ]),
290
- w.item_use.includes(2) ? (a(), n("div", Ue, [
291
- (a(!0), n(S, null, T(o.list_filter, (m, p) => (a(), n(S, { key: p }, [
292
- "type" in m && m.type === 1 ? (a(), X(g, {
290
+ w.item_use.includes(2) ? (a(), n("div", Ye, [
291
+ (a(!0), n(S, null, P(o.list_filter, (m, p) => (a(), n(S, { key: p }, [
292
+ "type" in m && m.type === 1 ? (a(), W(g, {
293
293
  key: 0,
294
294
  to: m?.to,
295
295
  class: "dropdown-item cursor-pointer"
296
296
  }, {
297
- default: xe(() => [
297
+ default: we(() => [
298
298
  D(f(m.text), 1)
299
299
  ]),
300
300
  _: 2
@@ -302,15 +302,15 @@ const se = Symbol("v-datatable-key"), Ht = /* @__PURE__ */ F({
302
302
  key: 1,
303
303
  onClick: j((y) => E(String(m.value)), ["prevent"]),
304
304
  class: _(["dropdown-item cursor-pointer", C.value === m?.value ? "bg-info text-dark selected" : ""])
305
- }, f(m.text), 11, Ye)) : k("", !0)
305
+ }, f(m.text), 11, Xe)) : k("", !0)
306
306
  ], 64))), 128))
307
307
  ])) : k("", !0)
308
308
  ]);
309
309
  };
310
310
  }
311
- }), We = /* @__PURE__ */ W(Xe, [["__scopeId", "data-v-1b6ff54b"]]);
312
- function Ge() {
313
- const w = z(!1), d = z(""), o = z(0), v = z(0), h = N(() => ({
311
+ }), Ge = /* @__PURE__ */ G(We, [["__scopeId", "data-v-1b6ff54b"]]);
312
+ function Je() {
313
+ const w = z(!1), d = z(""), o = z(0), v = z(0), h = T(() => ({
314
314
  position: "fixed",
315
315
  zIndex: 9999,
316
316
  pointerEvents: "none",
@@ -328,7 +328,7 @@ function Ge() {
328
328
  function V(c) {
329
329
  w.value && C(c);
330
330
  }
331
- function l() {
331
+ function s() {
332
332
  w.value = !1;
333
333
  }
334
334
  return {
@@ -337,54 +337,54 @@ function Ge() {
337
337
  previewStyle: h,
338
338
  handleMouseOver: E,
339
339
  handleMouseMove: V,
340
- handleMouseLeave: l
340
+ handleMouseLeave: s
341
341
  };
342
342
  }
343
- const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Ze = {
343
+ const Qe = { class: "text-secondary" }, Ze = { class: "mx-2 d-inline-block" }, Re = {
344
344
  key: 0,
345
345
  class: "alert alert-cyan d-flex justify-content-center align-items-center py-3",
346
346
  role: "alert"
347
- }, Re = { class: "alert-title m-0" }, et = { key: 0 }, tt = { key: 2 }, at = {
347
+ }, et = { class: "alert-title m-0" }, tt = { key: 0 }, at = { key: 2 }, nt = {
348
348
  key: 5,
349
349
  class: "text-danger erro-custom-container"
350
- }, nt = { class: "badge bg-orange text-white erro-custom-text" }, st = { key: 0 }, lt = { key: 2 }, rt = {
350
+ }, st = { class: "badge bg-orange text-white erro-custom-text" }, lt = { key: 0 }, rt = { key: 2 }, it = {
351
351
  key: 5,
352
352
  class: "text-danger erro-custom-container"
353
- }, it = { class: "badge bg-orange text-white erro-custom-text" }, ot = ["colspan"], ut = {
353
+ }, ot = { class: "badge bg-orange text-white erro-custom-text" }, ut = ["colspan"], dt = {
354
354
  key: 0,
355
355
  class: "d-flex flex-column justify-content-center align-items-center",
356
356
  style: { height: "6rem" }
357
- }, dt = {
357
+ }, ct = {
358
358
  key: 1,
359
359
  style: { height: "3rem" }
360
- }, ct = {
360
+ }, pt = {
361
361
  key: 2,
362
362
  class: "p-3 text-center text-secondary"
363
- }, pt = {
363
+ }, _t = {
364
364
  key: 2,
365
365
  class: "feedback-container text-center"
366
- }, _t = {
366
+ }, mt = {
367
367
  key: 0,
368
368
  class: "text-secondary"
369
- }, mt = {
369
+ }, ft = {
370
370
  key: 1,
371
371
  class: "text-secondary"
372
- }, ft = {
372
+ }, gt = {
373
373
  key: 3,
374
374
  class: "table-responsive"
375
- }, gt = { key: 0 }, vt = {
375
+ }, vt = { key: 0 }, ht = {
376
376
  key: 0,
377
377
  class: "w-1"
378
- }, ht = {
378
+ }, yt = {
379
379
  key: 0,
380
380
  class: "w-1"
381
- }, yt = ["checked", "onChange"], kt = ["onClick"], bt = ["onClick"], xt = { key: 0 }, wt = { key: 1 }, Ct = ["onClick", "innerHTML"], $t = ["onClick"], Mt = ["src"], St = ["src"], zt = {
381
+ }, kt = ["checked", "onChange"], bt = ["onClick"], xt = ["onClick"], wt = { key: 0 }, Ct = { key: 1 }, $t = ["onClick", "innerHTML"], Mt = ["onClick"], St = ["src"], zt = ["src"], Pt = {
382
382
  key: 5,
383
383
  class: "text-danger erro-custom-container"
384
- }, Pt = { class: "badge bg-orange text-white erro-custom-text" }, Tt = {
384
+ }, Tt = { class: "badge bg-orange text-white erro-custom-text" }, Nt = {
385
385
  key: 1,
386
386
  class: "text-center p-4 text-secondary"
387
- }, Nt = ["src"], At = /* @__PURE__ */ F({
387
+ }, At = ["src"], Dt = /* @__PURE__ */ F({
388
388
  __name: "VDataTable",
389
389
  props: {
390
390
  fetch: {},
@@ -423,147 +423,153 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Z
423
423
  handleMouseOver: C,
424
424
  handleMouseMove: E,
425
425
  handleMouseLeave: V
426
- } = Ge(), l = w, c = z([]), g = z([]), m = z(0), p = z([]), y = z(null), $ = z(!1), b = z(null), u = z({
426
+ } = Je(), s = w, c = z([]), g = z([]), m = z(0), p = z([]), y = z(null), $ = z(!1), b = z(null), u = z({
427
427
  current_page: 0,
428
428
  // pagina atual
429
429
  count: 0,
430
430
  // total de itens
431
- limit_per_page: l.limit_per_page,
431
+ limit_per_page: s.limit_per_page,
432
432
  // limite de itens por página
433
433
  search: "",
434
434
  // termo de busca
435
435
  filter: ""
436
436
  // filtro selecionado
437
- }), { data: A, pending: B, error: K, execute: le, attempt: L } = l.fetch(l.endpoint, {
438
- params: () => l.deactivate_default_params ? l.add_params && typeof l.add_params == "function" ? l.add_params() : {
439
- ...l.add_params
440
- } : l.add_params && typeof l.add_params == "function" ? {
437
+ }), { data: N, pending: B, error: K, execute: re, attempt: L } = s.fetch(s.endpoint, {
438
+ params: () => s.deactivate_default_params ? s.add_params && typeof s.add_params == "function" ? s.add_params() : {
439
+ ...s.add_params
440
+ } : s.add_params && typeof s.add_params == "function" ? {
441
441
  ...U.value,
442
- ...l.add_params()
442
+ ...s.add_params()
443
443
  } : {
444
444
  ...U.value,
445
- ...l.add_params
445
+ ...s.add_params
446
446
  },
447
- retry: l.retry_attempts,
448
- retryDelay: l.retry_delay,
447
+ retry: s.retry_attempts,
448
+ retryDelay: s.retry_delay,
449
449
  paramsReactives: !1,
450
450
  immediate: !1
451
- }, l.fetch_name), re = N(() => {
451
+ }, s.fetch_name), ie = T(() => {
452
452
  let i = [1];
453
- return l.list_filter.length > 0 && i.push(2), i;
454
- }), U = N(() => ({
455
- [l.page_param_name]: u.value.current_page + 1,
456
- [l.page_size_param_name]: u.value.limit_per_page,
457
- [l.search_param_name]: u.value.search || "",
458
- [l.filter_param_name]: u.value.filter || ""
459
- })), ie = N(() => B.value || $.value), I = (i) => {
460
- const t = l.item_key;
453
+ return s.list_filter.length > 0 && i.push(2), i;
454
+ }), U = T(() => ({
455
+ [s.page_param_name]: u.value.current_page + 1,
456
+ [s.page_size_param_name]: u.value.limit_per_page,
457
+ [s.search_param_name]: u.value.search || "",
458
+ [s.filter_param_name]: u.value.filter || ""
459
+ })), oe = T(() => B.value || $.value), q = (i) => {
460
+ const t = s.item_key;
461
461
  return p.value.some((r) => r[t] === i[t]);
462
- }, G = N(() => {
462
+ }, J = T(() => {
463
463
  if (!g.value.length) return !1;
464
- const i = g.value.filter((t) => I(t)).length;
464
+ const i = g.value.filter((t) => q(t)).length;
465
465
  return i === 0 ? !1 : i === g.value.length ? !0 : "indeterminate";
466
- }), oe = N(() => p.value.length > 0);
467
- O([G, y], ([i]) => {
468
- y.value && (i === "indeterminate" ? (console.log("entrei no indeterminate"), y.value.checked = !1, y.value.indeterminate = !0) : (y.value.checked = i, y.value.indeterminate = !1));
466
+ }), ue = T(() => p.value.length > 0);
467
+ I([J, y], ([i]) => {
468
+ y.value && (i === "indeterminate" ? (y.value.checked = !1, y.value.indeterminate = !0) : (y.value.checked = i, y.value.indeterminate = !1));
469
469
  }, {
470
470
  immediate: !0,
471
471
  flush: "post"
472
- }), O(A, (i) => {
473
- i ? (g.value = i[l.data_key] || [], m.value = i[l.total_key] || 0, u.value.count = m.value) : (g.value = [], m.value = 0);
472
+ }), I(N, (i) => {
473
+ i ? (g.value = i[s.data_key] || [], m.value = i[s.total_key] || 0, u.value.count = m.value) : (g.value = [], m.value = 0);
474
474
  }, { immediate: !0 });
475
- function ue() {
475
+ function de() {
476
476
  const i = g.value;
477
477
  if (!i.length) return;
478
- const t = G.value;
478
+ const t = J.value;
479
479
  if (t === !0 || t === "indeterminate") {
480
- const r = i.map((e) => e[l.item_key]);
480
+ const r = i.map((e) => e[s.item_key]);
481
481
  p.value = p.value.filter(
482
- (e) => !r.includes(e[l.item_key])
482
+ (e) => !r.includes(e[s.item_key])
483
483
  );
484
484
  } else
485
485
  i.forEach((r) => {
486
- I(r) || p.value.push(r);
486
+ q(r) || p.value.push(r);
487
487
  });
488
488
  }
489
- function de(i) {
490
- const t = l.item_key, r = p.value.findIndex((e) => e[t] === i[t]);
489
+ function ce(i) {
490
+ const t = s.item_key, r = p.value.findIndex((e) => e[t] === i[t]);
491
491
  r > -1 ? p.value.splice(r, 1) : p.value.push(i);
492
492
  }
493
- function ce(i) {
493
+ function pe(i) {
494
494
  c.value.push(i);
495
495
  }
496
- we(se, { addColumn: ce });
497
- function P() {
496
+ Ce(le, { addColumn: pe });
497
+ function A() {
498
498
  b.value && clearTimeout(b.value), $.value = !0, b.value = setTimeout(() => {
499
499
  $.value = !1;
500
- }, l.min_loading_delay), le();
500
+ }, s.min_loading_delay), re();
501
501
  }
502
- function pe() {
503
- u.value.current_page = 0, P();
502
+ function Y() {
503
+ u.value.current_page = 0, A();
504
504
  }
505
- const J = (i) => {
505
+ const Q = (i) => {
506
506
  const t = i.target, r = parseInt(t.value, 10);
507
- r > 0 && (u.value.limit_per_page = r, u.value.limit_per_page = r, u.value.current_page = 0, P());
507
+ r > 0 && (u.value.limit_per_page = r, u.value.limit_per_page = r, u.value.current_page = 0, A());
508
508
  };
509
509
  function H(i, t, r = null) {
510
510
  if (!i) return t;
511
511
  const e = i.split(".");
512
512
  let M = t;
513
- for (const Y of e)
514
- M && typeof M == "object" && Y in M ? M = M[Y] : console.error(`Caminho inválido ou valor nulo em: ${i} na parte ${Y}`);
513
+ for (const X of e)
514
+ M && typeof M == "object" && X in M ? M = M[X] : console.error(`Caminho inválido ou valor nulo em: ${i} na parte ${X}`);
515
515
  return r && (M = r(M)), M;
516
516
  }
517
517
  function _e(i, t) {
518
518
  return t && typeof t == "number" && t > 0 && typeof i == "string" && i.length > t ? i.substring(0, t) + "..." : i;
519
519
  }
520
520
  function me(i) {
521
- i > 0 ? (u.value.limit_per_page = i, u.value.current_page = 0, P()) : console.warn("O limite deve ser um número maior que zero.");
521
+ i > 0 ? (u.value.limit_per_page = i, u.value.current_page = 0, A()) : console.warn("O limite deve ser um número maior que zero.");
522
522
  }
523
523
  function fe(i) {
524
- u.value.search = i, u.value.current_page = 0, P();
524
+ u.value.search = i, u.value.current_page = 0, A();
525
525
  }
526
526
  function ge(i) {
527
- u.value.filter = i, u.value.current_page = 0, P();
527
+ u.value.filter = i, u.value.current_page = 0, A();
528
528
  }
529
529
  function ve(i) {
530
- i >= 1 && i <= Math.ceil(u.value.count / u.value.limit_per_page) ? (u.value.current_page = i - 1, P()) : console.warn("Número de página inválido.");
530
+ i >= 1 && i <= Math.ceil(u.value.count / u.value.limit_per_page) ? (u.value.current_page = i - 1, A()) : console.warn("Número de página inválido.");
531
531
  }
532
- return d({
533
- execute: P,
534
- pagination: Ce(u),
532
+ d({
533
+ execute: A,
534
+ pagination: $e(u),
535
535
  set_limit_per_page: me,
536
536
  set_search: fe,
537
537
  set_filter: ge,
538
538
  set_page: ve,
539
539
  default_params: U,
540
540
  selected_items: p,
541
- atLeastOneSelected: oe
542
- }), te(() => {
543
- $e(() => {
544
- P();
545
- });
546
- }), (i, t) => (a(), n("div", null, [
547
- s("div", {
548
- class: _(["", l.class_container])
541
+ atLeastOneSelected: ue
542
+ });
543
+ const Z = z(!1);
544
+ return I(
545
+ () => s.add_params,
546
+ () => {
547
+ Z.value ? Y() : (Z.value = !0, Me(() => {
548
+ Y();
549
+ }));
550
+ },
551
+ { deep: !0, immediate: !0 }
552
+ ), (i, t) => (a(), n("div", null, [
553
+ l("div", {
554
+ class: _(["", s.class_container])
549
555
  }, [
550
- q(i.$slots, "default", {}, void 0, !0),
551
- s("div", {
552
- class: _(["", l.class_content])
556
+ O(i.$slots, "default", {}, void 0, !0),
557
+ l("div", {
558
+ class: _(["", s.class_content])
553
559
  }, [
554
- s("div", {
555
- class: _([l.class_filters, "d-flex justify-content-between align-items-start"])
560
+ l("div", {
561
+ class: _([s.class_filters, "d-flex justify-content-between align-items-start"])
556
562
  }, [
557
- q(i.$slots, "pageSize", {
558
- changePageSize: J,
563
+ O(i.$slots, "pageSize", {
564
+ changePageSize: Q,
559
565
  limit_per_page: u.value.limit_per_page
560
566
  }, () => [
561
- s("div", Je, [
562
- D(f(l.first_text_page_size) + " ", 1),
563
- s("div", Qe, [
564
- ae(s("input", {
567
+ l("div", Qe, [
568
+ D(f(s.first_text_page_size) + " ", 1),
569
+ l("div", Ze, [
570
+ ne(l("input", {
565
571
  class: "form-control form-control-sm",
566
- onChange: J,
572
+ onChange: Q,
567
573
  "onUpdate:modelValue": t[0] || (t[0] = (r) => u.value.limit_per_page = r),
568
574
  min: "1",
569
575
  size: "3",
@@ -571,93 +577,93 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Z
571
577
  type: "number"
572
578
  }, null, 544), [
573
579
  [
574
- ne,
580
+ se,
575
581
  u.value.limit_per_page,
576
582
  void 0,
577
583
  { lazy: !0 }
578
584
  ]
579
585
  ])
580
586
  ]),
581
- D(" " + f(l.second_text_page_size), 1)
587
+ D(" " + f(s.second_text_page_size), 1)
582
588
  ])
583
589
  ], !0),
584
- q(i.$slots, "fieldMiddle", {}, void 0, !0),
585
- Q(We, {
590
+ O(i.$slots, "fieldMiddle", {}, void 0, !0),
591
+ R(Ge, {
586
592
  search: u.value.search,
587
593
  "onUpdate:search": t[1] || (t[1] = (r) => u.value.search = r),
588
594
  filter: u.value.filter,
589
595
  "onUpdate:filter": t[2] || (t[2] = (r) => u.value.filter = r),
590
- list_filter: l.list_filter,
591
- item_use: re.value,
592
- onSearch: pe
596
+ list_filter: s.list_filter,
597
+ item_use: ie.value,
598
+ onSearch: Y
593
599
  }, null, 8, ["search", "filter", "list_filter", "item_use"])
594
600
  ], 2),
595
- l.use_checkbox && p.value.length > 0 ? (a(), n("div", Ze, [
596
- s("h4", Re, [
597
- t[4] || (t[4] = s("strong", null, "Itens Selecionados:", -1)),
601
+ s.use_checkbox && p.value.length > 0 ? (a(), n("div", Re, [
602
+ l("h4", et, [
603
+ t[4] || (t[4] = l("strong", null, "Itens Selecionados:", -1)),
598
604
  D(" " + f(p.value.length), 1)
599
605
  ]),
600
- s("button", {
606
+ l("button", {
601
607
  class: "btn btn-outline-danger ms-3 bold",
602
608
  onClick: t[3] || (t[3] = (r) => p.value = [])
603
609
  }, "Limpar Seleção")
604
610
  ])) : k("", !0),
605
- ie.value ? (a(), n(S, { key: 1 }, [
606
- l.custom_loading ? (a(), X(Z(l.custom_loading), { key: 0 })) : (a(), n("table", {
611
+ oe.value ? (a(), n(S, { key: 1 }, [
612
+ s.custom_loading ? (a(), W(ee(s.custom_loading), { key: 0 })) : (a(), n("table", {
607
613
  key: 1,
608
- class: _(["table table-vcenter table-selectable", l.class_table])
614
+ class: _(["table table-vcenter table-selectable", s.class_table])
609
615
  }, [
610
- s("thead", null, [
611
- s("tr", null, [
612
- (a(!0), n(S, null, T(c.value, (r) => (a(), n("th", {
616
+ l("thead", null, [
617
+ l("tr", null, [
618
+ (a(!0), n(S, null, P(c.value, (r) => (a(), n("th", {
613
619
  key: r.field || r.header,
614
620
  class: _(r.class_column)
615
621
  }, f(r.header), 3))), 128))
616
622
  ])
617
623
  ]),
618
- s("tbody", null, [
619
- l.type_loading === "placeholder" ? (a(!0), n(S, { key: 0 }, T(u.value.limit_per_page, (r) => (a(), n("tr", {
624
+ l("tbody", null, [
625
+ s.type_loading === "placeholder" ? (a(!0), n(S, { key: 0 }, P(u.value.limit_per_page, (r) => (a(), n("tr", {
620
626
  key: "placeholder-" + r,
621
627
  class: "placeholder-glow"
622
628
  }, [
623
- (a(!0), n(S, null, T(c.value, (e) => (a(), n("td", {
629
+ (a(!0), n(S, null, P(c.value, (e) => (a(), n("td", {
624
630
  key: e.field || e.header,
625
631
  class: _(e.class_row)
626
632
  }, [
627
- e.bodySlot ? (a(), n("span", et, [...t[5] || (t[5] = [
628
- s("span", { class: "placeholder col-8" }, null, -1)
633
+ e.bodySlot ? (a(), n("span", tt, [...t[5] || (t[5] = [
634
+ l("span", { class: "placeholder col-8" }, null, -1)
629
635
  ])])) : e.type === "text" ? (a(), n("span", {
630
636
  key: 1,
631
637
  class: _(e.class_item)
632
638
  }, [...t[6] || (t[6] = [
633
- s("span", { class: "placeholder col-8" }, null, -1)
634
- ])], 2)) : e.type === "date" ? (a(), n("span", tt, [...t[7] || (t[7] = [
635
- s("span", { class: "placeholder col-9" }, null, -1)
639
+ l("span", { class: "placeholder col-8" }, null, -1)
640
+ ])], 2)) : e.type === "date" ? (a(), n("span", at, [...t[7] || (t[7] = [
641
+ l("span", { class: "placeholder col-9" }, null, -1)
636
642
  ])])) : e.type === "html" ? (a(), n("div", {
637
643
  key: 3,
638
644
  class: _(e.class_item)
639
645
  }, [...t[8] || (t[8] = [
640
- s("div", { class: "placeholder col-12" }, null, -1)
646
+ l("div", { class: "placeholder col-12" }, null, -1)
641
647
  ])], 2)) : e.type === "img" ? (a(), n("div", {
642
648
  key: 4,
643
649
  class: _(e.class_item)
644
650
  }, [...t[9] || (t[9] = [
645
- s("div", { class: "placeholder placeholder-img" }, null, -1)
646
- ])], 2)) : (a(), n("span", at, [
651
+ l("div", { class: "placeholder placeholder-img" }, null, -1)
652
+ ])], 2)) : (a(), n("span", nt, [
647
653
  t[10] || (t[10] = D("tipo ", -1)),
648
- s("span", nt, f(e.type), 1),
654
+ l("span", st, f(e.type), 1),
649
655
  t[11] || (t[11] = D(" não suportado ", -1))
650
656
  ]))
651
657
  ], 2))), 128))
652
- ]))), 128)) : l.type_loading === "spiner-table" ? (a(!0), n(S, { key: 1 }, T(u.value.limit_per_page, (r) => (a(), n("tr", {
658
+ ]))), 128)) : s.type_loading === "spiner-table" ? (a(!0), n(S, { key: 1 }, P(u.value.limit_per_page, (r) => (a(), n("tr", {
653
659
  key: "placeholder-" + r
654
660
  }, [
655
- (a(!0), n(S, null, T(c.value, (e) => (a(), n("td", {
661
+ (a(!0), n(S, null, P(c.value, (e) => (a(), n("td", {
656
662
  key: e.field || e.header,
657
663
  class: _(e.class_row)
658
664
  }, [
659
- e.bodySlot ? (a(), n("span", st, [...t[12] || (t[12] = [
660
- s("span", {
665
+ e.bodySlot ? (a(), n("span", lt, [...t[12] || (t[12] = [
666
+ l("span", {
661
667
  class: "spinner-border spinner-border-sm",
662
668
  role: "status",
663
669
  "aria-hidden": "true"
@@ -666,13 +672,13 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Z
666
672
  key: 1,
667
673
  class: _(e.class_item)
668
674
  }, [...t[13] || (t[13] = [
669
- s("span", {
675
+ l("span", {
670
676
  class: "spinner-border spinner-border-sm",
671
677
  role: "status",
672
678
  "aria-hidden": "true"
673
679
  }, null, -1)
674
- ])], 2)) : e.type === "date" ? (a(), n("span", lt, [...t[14] || (t[14] = [
675
- s("span", {
680
+ ])], 2)) : e.type === "date" ? (a(), n("span", rt, [...t[14] || (t[14] = [
681
+ l("span", {
676
682
  class: "spinner-border spinner-border-sm",
677
683
  role: "status",
678
684
  "aria-hidden": "true"
@@ -681,7 +687,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Z
681
687
  key: 3,
682
688
  class: _(e.class_item)
683
689
  }, [...t[15] || (t[15] = [
684
- s("span", {
690
+ l("span", {
685
691
  class: "spinner-border spinner-border-sm",
686
692
  role: "status",
687
693
  "aria-hidden": "true"
@@ -690,114 +696,114 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Z
690
696
  key: 4,
691
697
  class: _(["", e.class_item])
692
698
  }, [...t[16] || (t[16] = [
693
- s("span", { class: "placeholder-img d-flex justify-content-center align-items-center" }, [
694
- s("span", {
699
+ l("span", { class: "placeholder-img d-flex justify-content-center align-items-center" }, [
700
+ l("span", {
695
701
  class: "spinner-border spinner-border-sm",
696
702
  role: "status",
697
703
  "aria-hidden": "true"
698
704
  })
699
705
  ], -1)
700
- ])], 2)) : (a(), n("span", rt, [
706
+ ])], 2)) : (a(), n("span", it, [
701
707
  t[17] || (t[17] = D("tipo ", -1)),
702
- s("span", it, f(e.type), 1),
708
+ l("span", ot, f(e.type), 1),
703
709
  t[18] || (t[18] = D(" não suportado ", -1))
704
710
  ]))
705
711
  ], 2))), 128))
706
- ]))), 128)) : l.type_loading === "spiner" ? (a(!0), n(S, { key: 2 }, T(u.value.limit_per_page, (r) => (a(), n("tr", { key: r }, [
707
- s("td", {
712
+ ]))), 128)) : s.type_loading === "spiner" ? (a(!0), n(S, { key: 2 }, P(u.value.limit_per_page, (r) => (a(), n("tr", { key: r }, [
713
+ l("td", {
708
714
  colspan: c.value.length,
709
715
  class: "text-center p-0",
710
716
  style: { "border-bottom": "none" }
711
717
  }, [
712
- r === Math.floor(u.value.limit_per_page / 2) + 1 ? (a(), n("div", ut, [...t[19] || (t[19] = [
713
- s("div", {
718
+ r === Math.floor(u.value.limit_per_page / 2) + 1 ? (a(), n("div", dt, [...t[19] || (t[19] = [
719
+ l("div", {
714
720
  class: "spinner-border",
715
721
  style: { width: "3rem", height: "3rem" },
716
722
  role: "status"
717
723
  }, null, -1),
718
- s("span", { class: "mt-2" }, "Carregando...", -1)
719
- ])])) : (a(), n("div", dt))
720
- ], 8, ot)
724
+ l("span", { class: "mt-2" }, "Carregando...", -1)
725
+ ])])) : (a(), n("div", ct))
726
+ ], 8, ut)
721
727
  ]))), 128)) : k("", !0)
722
728
  ])
723
729
  ], 2)),
724
- x(L) && x(L).current > 1 ? (a(), n("div", ct, " A conexão falhou. Tentando novamente... (Tentativa " + f(x(L).current) + " de " + f(x(L).total) + ") ", 1)) : k("", !0)
725
- ], 64)) : x(K) ? (a(), n("div", pt, [
726
- t[20] || (t[20] = s("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
727
- x(L) ? (a(), n("p", _t, " Não foi possível carregar os dados após " + f(x(L).total) + " tentativa(s). ", 1)) : (a(), n("p", mt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
728
- s("button", {
730
+ x(L) && x(L).current > 1 ? (a(), n("div", pt, " A conexão falhou. Tentando novamente... (Tentativa " + f(x(L).current) + " de " + f(x(L).total) + ") ", 1)) : k("", !0)
731
+ ], 64)) : x(K) ? (a(), n("div", _t, [
732
+ t[20] || (t[20] = l("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
733
+ x(L) ? (a(), n("p", mt, " Não foi possível carregar os dados após " + f(x(L).total) + " tentativa(s). ", 1)) : (a(), n("p", ft, " Não foi possível carregar os dados. Verifique sua conexão. ")),
734
+ l("button", {
729
735
  class: "btn btn-primary mt-2",
730
- onClick: P
736
+ onClick: A
731
737
  }, " Tentar Novamente ")
732
- ])) : g.value ? (a(), n("div", ft, [
733
- g.value.length > 0 ? (a(), n("div", gt, [
734
- s("table", {
735
- class: _(["table table-vcenter table-selectable", l.class_table])
738
+ ])) : g.value ? (a(), n("div", gt, [
739
+ g.value.length > 0 ? (a(), n("div", vt, [
740
+ l("table", {
741
+ class: _(["table table-vcenter table-selectable", s.class_table])
736
742
  }, [
737
- s("thead", null, [
738
- s("tr", null, [
739
- l.use_checkbox ? (a(), n("th", vt, [
740
- s("input", {
743
+ l("thead", null, [
744
+ l("tr", null, [
745
+ s.use_checkbox ? (a(), n("th", ht, [
746
+ l("input", {
741
747
  class: "form-check-input m-0",
742
748
  type: "checkbox",
743
749
  ref_key: "selectAllCheckbox",
744
750
  ref: y,
745
- onChange: ue,
751
+ onChange: de,
746
752
  "aria-label": "Selecionar todos os itens na página"
747
753
  }, null, 544)
748
754
  ])) : k("", !0),
749
- (a(!0), n(S, null, T(c.value, (r) => (a(), n("th", {
755
+ (a(!0), n(S, null, P(c.value, (r) => (a(), n("th", {
750
756
  key: r.field || r.header,
751
757
  class: _(r.class_column)
752
758
  }, f(r.header), 3))), 128))
753
759
  ])
754
760
  ]),
755
- s("tbody", null, [
756
- (a(!0), n(S, null, T(g.value, (r) => (a(), n("tr", {
757
- key: r[l.item_key]
761
+ l("tbody", null, [
762
+ (a(!0), n(S, null, P(g.value, (r) => (a(), n("tr", {
763
+ key: r[s.item_key]
758
764
  }, [
759
- l.use_checkbox ? (a(), n("td", ht, [
760
- s("input", {
765
+ s.use_checkbox ? (a(), n("td", yt, [
766
+ l("input", {
761
767
  class: "form-check-input m-0",
762
768
  type: "checkbox",
763
- checked: I(r),
764
- onChange: (e) => de(r),
769
+ checked: q(r),
770
+ onChange: (e) => ce(r),
765
771
  "aria-label": "Selecionar este item"
766
- }, null, 40, yt)
772
+ }, null, 40, kt)
767
773
  ])) : k("", !0),
768
- (a(!0), n(S, null, T(c.value, (e) => (a(), n("td", {
774
+ (a(!0), n(S, null, P(c.value, (e) => (a(), n("td", {
769
775
  key: e.field || e.header,
770
776
  class: _(e.class_row)
771
777
  }, [
772
- e.bodySlot ? (a(), X(Z(e.bodySlot), {
778
+ e.bodySlot ? (a(), W(ee(e.bodySlot), {
773
779
  key: 0,
774
780
  item: r,
775
- "is-selected": I(r)
781
+ "is-selected": q(r)
776
782
  }, null, 8, ["item", "is-selected"])) : e.type === "text" ? (a(), n("span", {
777
783
  key: 1,
778
784
  onClick: (M) => e.click ? e.click(r) : null,
779
785
  class: _(e.class_item + (e.click ? " cursor-pointer" : ""))
780
- }, f(_e(H(e.field, r, e.transform_function), e.limite_text ?? null)), 11, kt)) : e.type === "date" ? (a(), n("span", {
786
+ }, f(_e(H(e.field, r, e.transform_function), e.limite_text ?? null)), 11, bt)) : e.type === "date" ? (a(), n("span", {
781
787
  key: 2,
782
788
  onClick: (M) => e.click ? e.click(r) : null,
783
789
  class: _(e.class_item + (e.click ? " cursor-pointer" : ""))
784
790
  }, [
785
- e.format === "complete" ? (a(), n("span", xt, f(new Date(H(e.field, r)).toLocaleString()), 1)) : k("", !0),
786
- e.format === "simple" ? (a(), n("span", wt, f(new Date(H(
791
+ e.format === "complete" ? (a(), n("span", wt, f(new Date(H(e.field, r)).toLocaleString()), 1)) : k("", !0),
792
+ e.format === "simple" ? (a(), n("span", Ct, f(new Date(H(
787
793
  e.field,
788
794
  r
789
795
  )).toLocaleDateString()), 1)) : k("", !0)
790
- ], 10, bt)) : e.type === "html" ? (a(), n("div", {
796
+ ], 10, xt)) : e.type === "html" ? (a(), n("div", {
791
797
  key: 3,
792
798
  onClick: (M) => e.click ? e.click(r) : null,
793
799
  class: _(e.class_item + (e.click ? " cursor-pointer" : "")),
794
800
  innerHTML: H(e.field, r)
795
- }, null, 10, Ct)) : e.type === "img" ? (a(), n("div", {
801
+ }, null, 10, $t)) : e.type === "img" ? (a(), n("div", {
796
802
  key: 4,
797
803
  onClick: (M) => e.click ? e.click(r) : null,
798
804
  class: _(e.class_item + (e.click ? " cursor-pointer" : ""))
799
805
  }, [
800
- H(e.field, r) ? (a(), n("div", Me({
806
+ H(e.field, r) ? (a(), n("div", Se({
801
807
  key: 0,
802
808
  ref_for: !0
803
809
  }, e.deactivate_img_preview ? {
@@ -808,62 +814,62 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, Z
808
814
  onMouseleave: x(V),
809
815
  class: "container-img container-img-preview"
810
816
  }), [
811
- s("img", {
817
+ l("img", {
812
818
  class: "img-tamanho",
813
819
  src: H(e.field, r)
814
- }, null, 8, Mt),
815
- s("img", {
820
+ }, null, 8, St),
821
+ l("img", {
816
822
  class: "img-tamanho-cover",
817
823
  src: H(e.field, r)
818
- }, null, 8, St),
819
- t[21] || (t[21] = s("div", { class: "bg-img" }, null, -1))
824
+ }, null, 8, zt),
825
+ t[21] || (t[21] = l("div", { class: "bg-img" }, null, -1))
820
826
  ], 16)) : k("", !0)
821
- ], 10, $t)) : (a(), n("span", zt, [
827
+ ], 10, Mt)) : (a(), n("span", Pt, [
822
828
  t[22] || (t[22] = D("tipo ", -1)),
823
- s("span", Pt, f(e.type), 1),
829
+ l("span", Tt, f(e.type), 1),
824
830
  t[23] || (t[23] = D(" não suportado", -1))
825
831
  ]))
826
832
  ], 2))), 128))
827
833
  ]))), 128))
828
834
  ])
829
835
  ], 2)
830
- ])) : (a(), n("div", Tt, [...t[24] || (t[24] = [
831
- s("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
836
+ ])) : (a(), n("div", Nt, [...t[24] || (t[24] = [
837
+ l("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
832
838
  ])]))
833
839
  ])) : k("", !0)
834
840
  ], 2)
835
841
  ], 2),
836
- q(i.$slots, "pagination", {
842
+ O(i.$slots, "pagination", {
837
843
  pagination: u.value,
838
- tradePage: P,
844
+ tradePage: A,
839
845
  error: x(K)
840
846
  }, () => [
841
847
  !x(K) && u.value.count > 0 ? (a(), n("div", {
842
848
  key: 0,
843
- class: _(["px-3", l.class_pagination])
849
+ class: _(["px-3", s.class_pagination])
844
850
  }, [
845
- Q(Ie, {
851
+ R(qe, {
846
852
  filtering: !0,
847
853
  pagination: u.value,
848
- onTradePage: P
854
+ onTradePage: A
849
855
  }, null, 8, ["pagination"])
850
856
  ], 2)) : k("", !0)
851
857
  ], !0),
852
858
  x(o) ? (a(), n("div", {
853
859
  key: 0,
854
860
  class: "image-preview-container",
855
- style: Se(x(h))
861
+ style: ze(x(h))
856
862
  }, [
857
- s("img", {
863
+ l("img", {
858
864
  src: x(v),
859
865
  alt: "Preview",
860
866
  class: "image-preview-large"
861
- }, null, 8, Nt)
867
+ }, null, 8, At)
862
868
  ], 4)) : k("", !0)
863
869
  ]));
864
870
  }
865
- }), Vt = /* @__PURE__ */ W(At, [["__scopeId", "data-v-5a415ab2"]]);
871
+ }), Lt = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-01e87047"]]);
866
872
  export {
867
- Ht as VColumn,
868
- Vt as VDataTable
873
+ Vt as VColumn,
874
+ Lt as VDataTable
869
875
  };