v-sistec-features 1.15.0 → 1.16.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,7 +1,7 @@
1
- import { defineComponent as ne, useSlots as De, inject as qe, onMounted as Ae, computed as B, watch as F, resolveComponent as Pe, createElementBlock as l, openBlock as s, createCommentVNode as g, createElementVNode as t, withDirectives as ce, withKeys as He, vModelText as pe, Fragment as $, renderList as V, createBlock as ae, withCtx as O, createTextVNode as T, toDisplayString as h, normalizeClass as p, withModifiers as de, ref as y, nextTick as _e, provide as Oe, readonly as Le, renderSlot as D, createVNode as L, createStaticVNode as Fe, resolveDynamicComponent as ue, unref as v, TransitionGroup as Ue, mergeProps as Ke, Transition as Ye, normalizeStyle as Xe } from "vue";
2
- import { _ as me, P as Ge } from "./Pagination-DtVDFQ07.js";
3
- import We from "vuedraggable";
4
- const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
1
+ import { defineComponent as se, useSlots as qe, inject as Ae, onMounted as Pe, computed as B, watch as F, resolveComponent as He, createElementBlock as r, openBlock as s, createCommentVNode as g, createElementVNode as t, withDirectives as pe, withKeys as Oe, vModelText as _e, Fragment as $, renderList as V, createBlock as ne, withCtx as O, createTextVNode as T, toDisplayString as h, normalizeClass as p, withModifiers as ue, ref as w, nextTick as me, provide as Le, readonly as Fe, renderSlot as D, createVNode as L, createStaticVNode as Ue, resolveDynamicComponent as ce, unref as v, TransitionGroup as Ke, mergeProps as Ye, Transition as Xe, normalizeStyle as Ge } from "vue";
2
+ import { _ as ve, P as We } from "./Pagination-DtVDFQ07.js";
3
+ import Je from "vuedraggable";
4
+ const he = Symbol("v-datatable-key"), _a = /* @__PURE__ */ se({
5
5
  __name: "VColumn",
6
6
  props: {
7
7
  field: { default: null },
@@ -19,14 +19,15 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
19
19
  use_ordering: { type: Boolean, default: !1 },
20
20
  param_ordering: { default: "" },
21
21
  decreasing_value: { default: "" },
22
- increasing_value: { default: "" }
22
+ increasing_value: { default: "" },
23
+ class_rules: { default: () => ({}) }
23
24
  },
24
25
  setup(b) {
25
- const i = b, w = De(), k = qe(ve);
26
- if (!k)
26
+ const i = b, x = qe(), y = Ae(he);
27
+ if (!y)
27
28
  throw new Error("VColumn deve ser usado dentro de um VDataTable.");
28
29
  const f = ["text", "img", "date", "html"];
29
- return Ae(() => {
30
+ return Pe(() => {
30
31
  if (i.field !== null && !i.field)
31
32
  throw new Error('A propriedade "field" é obrigatória em VColumn.');
32
33
  if (!i.header)
@@ -41,7 +42,7 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
41
42
  if (isNaN(Number(i.limite_text)) || Number(i.limite_text) <= 0)
42
43
  throw new Error('A propriedade "limite_text" deve ser um número maior que 0.');
43
44
  }
44
- k.addColumn({
45
+ y.addColumn({
45
46
  field: i.field,
46
47
  header: i.header,
47
48
  type: i.type,
@@ -55,26 +56,27 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
55
56
  param_ordering: i.param_ordering,
56
57
  decreasing_value: i.decreasing_value,
57
58
  increasing_value: i.increasing_value,
58
- bodySlot: w.body,
59
+ class_rules: i.class_rules,
60
+ bodySlot: x.body,
59
61
  ...i.type === "text" && { limite_text: Number(i.limite_text) },
60
62
  ...i.type === "img" && { deactivate_img_preview: i.deactivate_img_preview },
61
63
  ...i.type === "date" && { format: i.format }
62
64
  });
63
- }), (x, j) => null;
65
+ }), (C, j) => null;
64
66
  }
65
- }), Je = { class: "dropdown d-flex" }, Qe = {
67
+ }), Qe = { class: "dropdown d-flex" }, Re = {
66
68
  key: 0,
67
69
  href: "#",
68
70
  class: "btn dropdown-toggle",
69
71
  "data-bs-toggle": "dropdown",
70
72
  title: "Pesquisas Prédefinidas"
71
- }, Re = { class: "input-icon" }, Ze = ["placeholder"], et = {
73
+ }, Ze = { class: "input-icon" }, et = ["placeholder"], tt = {
72
74
  key: 1,
73
75
  class: "input-icon-addon"
74
- }, tt = {
76
+ }, at = {
75
77
  key: 1,
76
78
  class: "dropdown-menu"
77
- }, at = ["onClick"], nt = ["onClick"], st = /* @__PURE__ */ ne({
79
+ }, nt = ["onClick"], st = ["onClick"], lt = /* @__PURE__ */ se({
78
80
  __name: "SearchDatatable",
79
81
  props: {
80
82
  search: {},
@@ -87,40 +89,40 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
87
89
  },
88
90
  emits: ["update:search", "update:filter", "search", "clickedClearSearch"],
89
91
  setup(b, { emit: i }) {
90
- const w = b, k = i, f = B({
91
- get: () => w.search,
92
- set: (u) => k("update:search", u)
93
- }), x = B({
94
- get: () => w.filter,
95
- set: (u) => k("update:filter", u)
92
+ const x = b, y = i, f = B({
93
+ get: () => x.search,
94
+ set: (u) => y("update:search", u)
95
+ }), C = B({
96
+ get: () => x.filter,
97
+ set: (u) => y("update:filter", u)
96
98
  });
97
- F(x, () => {
98
- k("search");
99
+ F(C, () => {
100
+ y("search");
99
101
  }), F(
100
- () => w.list_filter,
102
+ () => x.list_filter,
101
103
  (u) => {
102
104
  Array.isArray(u) ? (u.forEach((_, m) => {
103
105
  _?.type === 1 && !_.to && console.error(`Filtro na posição ${m} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
104
- }), w.item_use.includes(2) && u.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.");
106
+ }), x.item_use.includes(2) && u.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.");
105
107
  },
106
108
  { immediate: !0, deep: !0 }
107
109
  );
108
110
  function j(u) {
109
- x.value === u ? x.value = "" : x.value = u;
111
+ C.value === u ? C.value = "" : C.value = u;
110
112
  }
111
113
  function q() {
112
- f.value = "", w.deactivate_search_on_clear || k("search"), k("clickedClearSearch");
114
+ f.value = "", x.deactivate_search_on_clear || y("search"), y("clickedClearSearch");
113
115
  }
114
116
  function N(u) {
115
117
  u.click && typeof u.click == "function" ? u.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
116
118
  }
117
119
  function n() {
118
- w.deactivate_search_empty && f.value.trim() === "" || k("search");
120
+ x.deactivate_search_empty && f.value.trim() === "" || y("search");
119
121
  }
120
122
  return (u, _) => {
121
- const m = Pe("router-link");
122
- return s(), l("div", Je, [
123
- b.item_use.includes(2) ? (s(), l("a", Qe, [..._[2] || (_[2] = [
123
+ const m = He("router-link");
124
+ return s(), r("div", Qe, [
125
+ b.item_use.includes(2) ? (s(), r("a", Re, [..._[2] || (_[2] = [
124
126
  t("svg", {
125
127
  xmlns: "http://www.w3.org/2000/svg",
126
128
  class: "icon icon-tabler icon-tabler-filter",
@@ -141,18 +143,18 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
141
143
  t("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" })
142
144
  ], -1)
143
145
  ])])) : g("", !0),
144
- t("div", Re, [
145
- ce(t("input", {
146
+ t("div", Ze, [
147
+ pe(t("input", {
146
148
  type: "text",
147
149
  class: "form-control ms-1",
148
150
  id: "inputSearchVDataTable",
149
151
  "onUpdate:modelValue": _[0] || (_[0] = (d) => f.value = d),
150
- onKeyup: He(n, ["enter"]),
152
+ onKeyup: Oe(n, ["enter"]),
151
153
  placeholder: b.placeholder_search
152
- }, null, 40, Ze), [
153
- [pe, f.value]
154
+ }, null, 40, et), [
155
+ [_e, f.value]
154
156
  ]),
155
- f.value ? (s(), l("span", {
157
+ f.value ? (s(), r("span", {
156
158
  key: 0,
157
159
  onClick: _[1] || (_[1] = (d) => q()),
158
160
  class: "inputClose",
@@ -178,7 +180,7 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
178
180
  t("path", { d: "M18 6l-12 12" }),
179
181
  t("path", { d: "M6 6l12 12" })
180
182
  ], -1)
181
- ])])) : (s(), l("span", et, [..._[4] || (_[4] = [
183
+ ])])) : (s(), r("span", tt, [..._[4] || (_[4] = [
182
184
  t("svg", {
183
185
  xmlns: "http://www.w3.org/2000/svg",
184
186
  width: "24",
@@ -201,9 +203,9 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
201
203
  ], -1)
202
204
  ])]))
203
205
  ]),
204
- b.item_use.includes(2) ? (s(), l("div", tt, [
205
- (s(!0), l($, null, V(w.list_filter, (d, C) => (s(), l($, { key: C }, [
206
- "type" in d && d.type === 1 && (!("visible" in d) || d.visible) ? (s(), ae(m, {
206
+ b.item_use.includes(2) ? (s(), r("div", at, [
207
+ (s(!0), r($, null, V(x.list_filter, (d, M) => (s(), r($, { key: M }, [
208
+ "type" in d && d.type === 1 && (!("visible" in d) || d.visible) ? (s(), ne(m, {
207
209
  key: 0,
208
210
  to: d?.to,
209
211
  class: "dropdown-item cursor-pointer"
@@ -212,39 +214,39 @@ const ve = Symbol("v-datatable-key"), pa = /* @__PURE__ */ ne({
212
214
  T(h(d.text), 1)
213
215
  ]),
214
216
  _: 2
215
- }, 1032, ["to"])) : (!("type" in d) || d.type === 2) && (!("visible" in d) || d.visible) ? (s(), l("a", {
217
+ }, 1032, ["to"])) : (!("type" in d) || d.type === 2) && (!("visible" in d) || d.visible) ? (s(), r("a", {
216
218
  key: 1,
217
- onClick: de((z) => j(String(d.value)), ["prevent"]),
218
- class: p(["dropdown-item cursor-pointer", x.value === d?.value ? "bg-info text-dark selected" : ""])
219
- }, h(d.text), 11, at)) : (!("type" in d) || d.type === 3) && (!("visible" in d) || d.visible) ? (s(), l("a", {
219
+ onClick: ue((z) => j(String(d.value)), ["prevent"]),
220
+ class: p(["dropdown-item cursor-pointer", C.value === d?.value ? "bg-info text-dark selected" : ""])
221
+ }, h(d.text), 11, nt)) : (!("type" in d) || d.type === 3) && (!("visible" in d) || d.visible) ? (s(), r("a", {
220
222
  key: 2,
221
- onClick: de((z) => N(d), ["prevent"]),
223
+ onClick: ue((z) => N(d), ["prevent"]),
222
224
  class: p(["dropdown-item cursor-pointer", d?.active ? "bg-info text-dark selected" : ""])
223
- }, h(d.text), 11, nt)) : g("", !0)
225
+ }, h(d.text), 11, st)) : g("", !0)
224
226
  ], 64))), 128))
225
227
  ])) : g("", !0)
226
228
  ]);
227
229
  };
228
230
  }
229
- }), lt = /* @__PURE__ */ me(st, [["__scopeId", "data-v-ed591287"]]);
230
- function rt() {
231
- const b = y(!1), i = y(""), w = y(0), k = y(0), f = B(() => ({
231
+ }), rt = /* @__PURE__ */ ve(lt, [["__scopeId", "data-v-ed591287"]]);
232
+ function ot() {
233
+ const b = w(!1), i = w(""), x = w(0), y = w(0), f = B(() => ({
232
234
  position: "fixed",
233
235
  zIndex: 9999,
234
236
  pointerEvents: "none",
235
- top: `${k.value + 15}px`,
236
- left: `${w.value + 15}px`
237
+ top: `${y.value + 15}px`,
238
+ left: `${x.value + 15}px`
237
239
  }));
238
- function x(n) {
239
- const u = n.clientX, _ = n.clientY, m = window.innerHeight, d = 15, C = 300;
240
+ function C(n) {
241
+ const u = n.clientX, _ = n.clientY, m = window.innerHeight, d = 15, M = 300;
240
242
  let z = _ + d;
241
- z + C > m && (z = _ - C - d, z < 0 && (z = 0)), w.value = u, k.value = z;
243
+ z + M > m && (z = _ - M - d, z < 0 && (z = 0)), x.value = u, y.value = z;
242
244
  }
243
245
  function j(n, u) {
244
- b.value = !0, i.value = u, x(n);
246
+ b.value = !0, i.value = u, C(n);
245
247
  }
246
248
  function q(n) {
247
- b.value && x(n);
249
+ b.value && C(n);
248
250
  }
249
251
  function N() {
250
252
  b.value = !1;
@@ -258,9 +260,9 @@ function rt() {
258
260
  handleMouseLeave: N
259
261
  };
260
262
  }
261
- function ot(b, i, w, k) {
262
- const f = y([]);
263
- function x() {
263
+ function it(b, i, x, y) {
264
+ const f = w([]);
265
+ function C() {
264
266
  f.value = [];
265
267
  }
266
268
  function j(n) {
@@ -269,11 +271,11 @@ function ot(b, i, w, k) {
269
271
  }
270
272
  function q(n) {
271
273
  const u = n[i], _ = f.value.findIndex((d) => d === u), m = _ > -1;
272
- b ? (x(), m || (f.value.push(u), k && N(u))) : m ? f.value.splice(_, 1) : (f.value.push(u), k && N(u));
274
+ b ? (C(), m || (f.value.push(u), y && N(u))) : m ? f.value.splice(_, 1) : (f.value.push(u), y && N(u));
273
275
  }
274
276
  function N(n) {
275
- _e(() => {
276
- if (w) {
277
+ me(() => {
278
+ if (x) {
277
279
  const u = document.querySelector("#expand-item-" + n);
278
280
  u && u.scrollIntoView({ behavior: "smooth", block: "center" });
279
281
  return;
@@ -288,45 +290,45 @@ function ot(b, i, w, k) {
288
290
  expanded_items: f,
289
291
  is_item_expanded: j,
290
292
  expand_item_toggle: q,
291
- close_all_expanded_items: x
293
+ close_all_expanded_items: C
292
294
  };
293
295
  }
294
- const it = { class: "mx-2 d-inline-block" }, dt = {
296
+ const dt = { class: "mx-2 d-inline-block" }, ut = {
295
297
  key: 0,
296
298
  class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
297
299
  role: "alert"
298
- }, ut = { class: "alert-title m-0" }, ct = { class: "badge bg-azure text-azure-fg" }, pt = { key: 0 }, _t = { key: 2 }, mt = {
300
+ }, ct = { class: "alert-title m-0" }, pt = { class: "badge bg-azure text-azure-fg" }, _t = { key: 0 }, mt = { key: 2 }, vt = {
299
301
  key: 5,
300
302
  class: "text-danger erro-custom-container"
301
- }, vt = { class: "badge bg-orange text-white erro-custom-text" }, ht = { key: 0 }, ft = { key: 2 }, gt = {
303
+ }, ht = { class: "badge bg-orange text-white erro-custom-text" }, ft = { key: 0 }, gt = { key: 2 }, yt = {
302
304
  key: 5,
303
305
  class: "text-danger erro-custom-container"
304
- }, kt = { class: "badge bg-orange text-white erro-custom-text" }, yt = ["colspan"], wt = {
306
+ }, kt = { class: "badge bg-orange text-white erro-custom-text" }, wt = ["colspan"], xt = {
305
307
  key: 0,
306
308
  class: "d-flex flex-column justify-content-center align-items-center",
307
309
  style: { height: "6rem" }
308
310
  }, bt = {
309
311
  key: 1,
310
312
  style: { height: "3rem" }
311
- }, xt = {
313
+ }, Ct = {
312
314
  key: 2,
313
315
  class: "p-3 text-center text-secondary"
314
- }, Ct = {
316
+ }, Mt = {
315
317
  key: 1,
316
318
  class: "feedback-container text-center"
317
- }, Mt = {
319
+ }, St = {
318
320
  key: 0,
319
321
  class: "text-secondary"
320
- }, St = {
322
+ }, $t = {
321
323
  key: 1,
322
324
  class: "text-secondary"
323
- }, $t = {
325
+ }, Bt = {
324
326
  key: 2,
325
327
  class: "table-responsive"
326
- }, Bt = { key: 0 }, zt = { key: 0 }, Vt = {
328
+ }, zt = { key: 0 }, Vt = { key: 0 }, Tt = {
327
329
  key: 1,
328
330
  class: "w-1"
329
- }, Tt = { class: "header-ordering" }, Et = ["onClick"], jt = {
331
+ }, Et = { class: "header-ordering" }, jt = ["onClick"], Nt = {
330
332
  key: 0,
331
333
  xmlns: "http://www.w3.org/2000/svg",
332
334
  width: "16",
@@ -337,7 +339,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
337
339
  "stroke-width": "2",
338
340
  "stroke-linecap": "round",
339
341
  "stroke-linejoin": "round"
340
- }, Nt = {
342
+ }, It = {
341
343
  key: 1,
342
344
  xmlns: "http://www.w3.org/2000/svg",
343
345
  width: "16",
@@ -348,7 +350,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
348
350
  "stroke-width": "2",
349
351
  "stroke-linecap": "round",
350
352
  "stroke-linejoin": "round"
351
- }, It = {
353
+ }, Dt = {
352
354
  key: 2,
353
355
  xmlns: "http://www.w3.org/2000/svg",
354
356
  width: "16",
@@ -359,7 +361,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
359
361
  "stroke-width": "2",
360
362
  "stroke-linecap": "round",
361
363
  "stroke-linejoin": "round"
362
- }, Dt = { class: "header-ordering" }, qt = ["onClick"], At = {
364
+ }, qt = { class: "header-ordering" }, At = ["onClick"], Pt = {
363
365
  key: 0,
364
366
  xmlns: "http://www.w3.org/2000/svg",
365
367
  width: "16",
@@ -370,7 +372,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
370
372
  "stroke-width": "2",
371
373
  "stroke-linecap": "round",
372
374
  "stroke-linejoin": "round"
373
- }, Pt = {
375
+ }, Ht = {
374
376
  key: 1,
375
377
  xmlns: "http://www.w3.org/2000/svg",
376
378
  width: "16",
@@ -381,7 +383,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
381
383
  "stroke-width": "2",
382
384
  "stroke-linecap": "round",
383
385
  "stroke-linejoin": "round"
384
- }, Ht = {
386
+ }, Ot = {
385
387
  key: 2,
386
388
  xmlns: "http://www.w3.org/2000/svg",
387
389
  width: "16",
@@ -392,10 +394,10 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
392
394
  "stroke-width": "2",
393
395
  "stroke-linecap": "round",
394
396
  "stroke-linejoin": "round"
395
- }, Ot = {
397
+ }, Lt = {
396
398
  key: 0,
397
399
  class: "w-1"
398
- }, Lt = ["onClick"], Ft = {
400
+ }, Ft = ["onClick"], Ut = {
399
401
  key: 0,
400
402
  xmlns: "http://www.w3.org/2000/svg",
401
403
  width: "24",
@@ -407,7 +409,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
407
409
  "stroke-linecap": "round",
408
410
  "stroke-linejoin": "round",
409
411
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-right icon-transition-arrow"
410
- }, Ut = {
412
+ }, Kt = {
411
413
  key: 1,
412
414
  xmlns: "http://www.w3.org/2000/svg",
413
415
  width: "20",
@@ -419,16 +421,16 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
419
421
  "stroke-linecap": "round",
420
422
  "stroke-linejoin": "round",
421
423
  class: "icon icon-transition-plus"
422
- }, Kt = {
424
+ }, Yt = {
423
425
  key: 1,
424
426
  class: "w-1"
425
- }, Yt = ["checked", "onChange"], Xt = ["onClick"], Gt = ["onClick"], Wt = { key: 0 }, Jt = { key: 1 }, Qt = ["onClick", "innerHTML"], Rt = ["onClick"], Zt = ["src"], ea = ["src"], ta = {
427
+ }, Xt = ["checked", "onChange"], Gt = ["onClick"], Wt = ["onClick"], Jt = { key: 0 }, Qt = { key: 1 }, Rt = ["onClick", "innerHTML"], Zt = ["onClick"], ea = ["src"], ta = ["src"], aa = {
426
428
  key: 5,
427
429
  class: "text-danger erro-custom-container"
428
- }, aa = { class: "badge bg-orange text-white erro-custom-text" }, na = ["id"], sa = ["colspan"], la = { key: 1 }, ra = {
430
+ }, na = { class: "badge bg-orange text-white erro-custom-text" }, sa = ["id"], la = ["colspan"], ra = { key: 1 }, oa = {
429
431
  key: 2,
430
432
  class: "text-center p-4 text-secondary"
431
- }, oa = ["src"], ia = /* @__PURE__ */ ne({
433
+ }, ia = ["src"], da = /* @__PURE__ */ se({
432
434
  __name: "VDataTable",
433
435
  props: {
434
436
  fetch: {},
@@ -474,15 +476,15 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
474
476
  disable_request: { default: !1 }
475
477
  },
476
478
  emits: ["tradePage", "beforeFetch", "afterFetch", "clickedClearSearch"],
477
- setup(b, { expose: i, emit: w }) {
479
+ setup(b, { expose: i, emit: x }) {
478
480
  const {
479
- isHovering: k,
481
+ isHovering: y,
480
482
  previewSrc: f,
481
- previewStyle: x,
483
+ previewStyle: C,
482
484
  handleMouseOver: j,
483
485
  handleMouseMove: q,
484
486
  handleMouseLeave: N
485
- } = rt(), n = b, u = w, _ = y(!1), m = y({}), d = y([]), C = y([]), z = y(0), M = y([]), A = y(null), Y = y(!1), X = y(null), G = y(!1), c = y({
487
+ } = ot(), n = b, u = x, _ = w(!1), m = w({}), d = w([]), M = w([]), z = w(0), S = w([]), A = w(null), X = w(!1), G = w(null), W = w(!1), c = w({
486
488
  current_page: n.page_starts_at,
487
489
  // pagina atual
488
490
  count: 0,
@@ -493,16 +495,16 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
493
495
  // termo de busca
494
496
  filter: ""
495
497
  // filtro selecionado
496
- }), he = B(() => (c.value.current_page = n.page_starts_at, n.endpoint)), {
497
- expanded_items: fe,
498
- expand_item_toggle: W,
499
- is_item_expanded: J
500
- } = ot(
498
+ }), fe = B(() => (c.value.current_page = n.page_starts_at, n.endpoint)), {
499
+ expanded_items: ge,
500
+ expand_item_toggle: J,
501
+ is_item_expanded: Q
502
+ } = it(
501
503
  n.close_expanded_item_on_expand_new,
502
504
  n.item_key,
503
505
  n.deactivate_animation_expand,
504
506
  n.scroll_to_expanded_item
505
- ), { data: ge, pending: ke, error: Q, execute: ye, attempt: P } = n.fetch(he, {
507
+ ), { data: ye, pending: ke, error: R, execute: we, attempt: P } = n.fetch(fe, {
506
508
  disable_request: () => n.disable_request,
507
509
  params: () => n.deactivate_default_params ? n.add_params && typeof n.add_params == "function" ? {
508
510
  ...n.add_params(),
@@ -511,11 +513,11 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
511
513
  ...n.add_params,
512
514
  ...U.value
513
515
  } : n.add_params && typeof n.add_params == "function" ? {
514
- ...ee.value,
516
+ ...te.value,
515
517
  ...n.add_params(),
516
518
  ...U.value
517
519
  } : {
518
- ...ee.value,
520
+ ...te.value,
519
521
  ...n.add_params,
520
522
  ...U.value
521
523
  },
@@ -523,177 +525,184 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
523
525
  retryDelay: n.retry_delay,
524
526
  paramsReactives: !1,
525
527
  immediate: !1
526
- }, n.fetch_name), R = B(
527
- () => d.value.filter((r) => r.locked)
528
- ), Z = B({
528
+ }, n.fetch_name), Z = B(
529
+ () => d.value.filter((l) => l.locked)
530
+ ), ee = B({
529
531
  get() {
530
- return d.value.filter((r) => !r.locked);
532
+ return d.value.filter((l) => !l.locked);
531
533
  },
532
- set(r) {
533
- const e = R.value;
534
- d.value = [...r, ...e];
534
+ set(l) {
535
+ const e = Z.value;
536
+ d.value = [...l, ...e];
535
537
  }
536
- }), we = B(() => [...Z.value, ...R.value]), be = B(() => {
537
- let r = [1];
538
- return n.list_filter.length > 0 && r.push(2), r;
538
+ }), xe = B(() => [...ee.value, ...Z.value]), be = B(() => {
539
+ let l = [1];
540
+ return n.list_filter.length > 0 && l.push(2), l;
539
541
  }), U = B(() => {
540
- const r = {};
542
+ const l = {};
541
543
  for (const e of d.value)
542
544
  if (e.use_ordering)
543
545
  if (m.value[e.header] === "increasing")
544
- r[e.param_ordering] = e.increasing_value || "increasing";
546
+ l[e.param_ordering] = e.increasing_value || "increasing";
545
547
  else if (m.value[e.header] === "decreasing")
546
- r[e.param_ordering] = e.decreasing_value || "decreasing";
548
+ l[e.param_ordering] = e.decreasing_value || "decreasing";
547
549
  else
548
550
  continue;
549
551
  else
550
552
  continue;
551
- return r;
552
- }), ee = B(() => ({
553
+ return l;
554
+ }), te = B(() => ({
553
555
  [n.page_param_name]: c.value.current_page + 1,
554
556
  [n.page_size_param_name]: c.value.limit_per_page,
555
557
  [n.search_param_name]: c.value.search || "",
556
558
  [n.filter_param_name]: c.value.filter || ""
557
- })), xe = B(() => ke.value || Y.value), K = (r) => {
559
+ })), Ce = B(() => ke.value || X.value), K = (l) => {
558
560
  const e = n.item_key;
559
- return M.value.some((a) => a[e] === r[e]);
560
- }, se = B(() => {
561
- if (!C.value.length) return !1;
562
- const r = C.value.filter((e) => K(e)).length;
563
- return r === 0 ? !1 : r === C.value.length ? !0 : "indeterminate";
564
- }), Ce = B(() => M.value.length > 0);
565
- F([se, A], ([r]) => {
566
- A.value && (r === "indeterminate" ? (A.value.checked = !1, A.value.indeterminate = !0) : (A.value.checked = r, A.value.indeterminate = !1));
561
+ return S.value.some((a) => a[e] === l[e]);
562
+ }, le = B(() => {
563
+ if (!M.value.length) return !1;
564
+ const l = M.value.filter((e) => K(e)).length;
565
+ return l === 0 ? !1 : l === M.value.length ? !0 : "indeterminate";
566
+ }), Me = B(() => S.value.length > 0);
567
+ F([le, A], ([l]) => {
568
+ A.value && (l === "indeterminate" ? (A.value.checked = !1, A.value.indeterminate = !0) : (A.value.checked = l, A.value.indeterminate = !1));
567
569
  }, {
568
570
  immediate: !0,
569
571
  flush: "post"
570
- }), F(ge, (r) => {
571
- r ? (C.value = r[n.data_key] || [], z.value = r[n.total_key] || 0, c.value.count = z.value) : (C.value = [], z.value = 0);
572
+ }), F(ye, (l) => {
573
+ l ? (M.value = l[n.data_key] || [], z.value = l[n.total_key] || 0, c.value.count = z.value) : (M.value = [], z.value = 0);
572
574
  }, { immediate: !0 });
573
- function Me() {
575
+ function Se() {
574
576
  setTimeout(() => {
575
- G.value = !1;
577
+ W.value = !1;
576
578
  }, 500);
577
579
  }
578
- function Se() {
579
- const r = C.value;
580
- if (!r.length) return;
581
- const e = se.value;
580
+ function $e() {
581
+ const l = M.value;
582
+ if (!l.length) return;
583
+ const e = le.value;
582
584
  if (e === !0 || e === "indeterminate") {
583
- const a = r.map((o) => o[n.item_key]);
584
- M.value = M.value.filter(
585
+ const a = l.map((o) => o[n.item_key]);
586
+ S.value = S.value.filter(
585
587
  (o) => !a.includes(o[n.item_key])
586
588
  );
587
589
  } else
588
- r.forEach((a) => {
589
- K(a) || M.value.push(a);
590
+ l.forEach((a) => {
591
+ K(a) || S.value.push(a);
590
592
  });
591
593
  }
592
- function $e(r) {
593
- const e = n.item_key, a = M.value.findIndex((o) => o[e] === r[e]);
594
- a > -1 ? M.value.splice(a, 1) : M.value.push(r);
594
+ function Be(l) {
595
+ const e = n.item_key, a = S.value.findIndex((o) => o[e] === l[e]);
596
+ a > -1 ? S.value.splice(a, 1) : S.value.push(l);
595
597
  }
596
- function Be(r) {
597
- d.value.push(r);
598
+ function ze(l) {
599
+ d.value.push(l);
598
600
  }
599
- Oe(ve, { addColumn: Be });
601
+ Le(he, { addColumn: ze });
600
602
  async function H() {
601
- _.value || (_.value = !0), X.value && clearTimeout(X.value), Y.value = !0, X.value = setTimeout(() => {
602
- Y.value = !1;
603
- }, n.min_loading_delay), oe(), u("beforeFetch"), await ye(), u("afterFetch");
603
+ _.value || (_.value = !0), G.value && clearTimeout(G.value), X.value = !0, G.value = setTimeout(() => {
604
+ X.value = !1;
605
+ }, n.min_loading_delay), ie(), u("beforeFetch"), await we(), u("afterFetch");
604
606
  }
605
607
  function E() {
606
608
  c.value.current_page = n.page_starts_at, H();
607
609
  }
608
- const le = (r) => {
609
- const e = r.target, a = parseInt(e.value, 10);
610
+ const re = (l) => {
611
+ const e = l.target, a = parseInt(e.value, 10);
610
612
  a > 0 && (c.value.limit_per_page = a, c.value.limit_per_page = a, E());
611
613
  };
612
- function I(r, e, a = null) {
613
- if (!r) return e;
614
- const o = r.split(".");
615
- let S = e;
616
- for (const te of o)
617
- S && typeof S == "object" && te in S ? S = S[te] : console.error(`Caminho inválido ou valor nulo em: ${r} na parte ${te}`);
618
- return a && (S = a(S)), S;
614
+ function I(l, e, a = null) {
615
+ if (!l) return e;
616
+ const o = l.split(".");
617
+ let k = e;
618
+ for (const ae of o)
619
+ k && typeof k == "object" && ae in k ? k = k[ae] : console.error(`Caminho inválido ou valor nulo em: ${l} na parte ${ae}`);
620
+ return a && (k = a(k)), k;
619
621
  }
620
- function ze(r, e) {
621
- return e && typeof e == "number" && e > 0 && typeof r == "string" && r.length > e ? r.substring(0, e) + "..." : r;
622
+ function Ve(l, e) {
623
+ return e && typeof e == "number" && e > 0 && typeof l == "string" && l.length > e ? l.substring(0, e) + "..." : l;
622
624
  }
623
- function re(r) {
625
+ function oe(l) {
624
626
  for (const a in m.value)
625
- a !== r && (m.value[a] = "none");
626
- const e = m.value[r] || "none";
627
- e === "none" ? m.value[r] = "increasing" : e === "increasing" ? m.value[r] = "decreasing" : m.value[r] = "none", E();
627
+ a !== l && (m.value[a] = "none");
628
+ const e = m.value[l] || "none";
629
+ e === "none" ? m.value[l] = "increasing" : e === "increasing" ? m.value[l] = "decreasing" : m.value[l] = "none", E();
628
630
  }
629
- function Ve(r) {
630
- r > 0 ? (c.value.limit_per_page = r, E()) : console.warn("O limite deve ser um número maior que zero.");
631
+ function Te(l) {
632
+ l > 0 ? (c.value.limit_per_page = l, E()) : console.warn("O limite deve ser um número maior que zero.");
631
633
  }
632
- function Te(r) {
633
- c.value.search = r, E();
634
+ function Ee(l) {
635
+ c.value.search = l, E();
634
636
  }
635
- function Ee(r) {
636
- c.value.filter = r, E();
637
+ function je(l) {
638
+ c.value.filter = l, E();
637
639
  }
638
- function je(r) {
639
- r >= 0 && r <= Math.ceil(c.value.count / c.value.limit_per_page) ? (c.value.current_page = r, H()) : console.warn("Número de página inválido.");
640
+ function Ne(l) {
641
+ l >= 0 && l <= Math.ceil(c.value.count / c.value.limit_per_page) ? (c.value.current_page = l, H()) : console.warn("Número de página inválido.");
640
642
  }
641
- function oe() {
642
- fe.value = [];
643
- }
644
- function Ne() {
645
- let r = d.value.length;
646
- return n.use_checkbox && (r += 1), n.use_expandable_items && (r += 1), r;
643
+ function ie() {
644
+ ge.value = [];
647
645
  }
648
646
  function Ie() {
647
+ let l = d.value.length;
648
+ return n.use_checkbox && (l += 1), n.use_expandable_items && (l += 1), l;
649
+ }
650
+ function De() {
649
651
  u("tradePage"), H();
650
652
  }
653
+ const Y = (l, e) => {
654
+ const a = [l.class_item || ""];
655
+ if (l.click && a.push("cursor-pointer"), l.class_rules)
656
+ for (const [o, k] of Object.entries(l.class_rules))
657
+ typeof k == "function" && k(e) && a.push(o);
658
+ return a.join(" ").trim();
659
+ };
651
660
  i({
652
661
  execute: H,
653
662
  reSearch: E,
654
- pagination: Le(c),
655
- set_limit_per_page: Ve,
656
- set_search: Te,
657
- set_filter: Ee,
658
- set_page: je,
659
- default_params: ee,
660
- selected_items: M,
661
- atLeastOneSelected: Ce,
662
- expand_item_toggle: W,
663
- close_all_expanded_items: oe
663
+ pagination: Fe(c),
664
+ set_limit_per_page: Te,
665
+ set_search: Ee,
666
+ set_filter: je,
667
+ set_page: Ne,
668
+ default_params: te,
669
+ selected_items: S,
670
+ atLeastOneSelected: Me,
671
+ expand_item_toggle: J,
672
+ close_all_expanded_items: ie
664
673
  });
665
- const ie = y(!1);
674
+ const de = w(!1);
666
675
  return F(
667
676
  () => n.add_params,
668
677
  () => {
669
- ie.value ? E() : (ie.value = !0, _e(() => {
678
+ de.value ? E() : (de.value = !0, me(() => {
670
679
  E();
671
680
  }));
672
681
  },
673
682
  { deep: !0, immediate: n.immediate }
674
- ), (r, e) => (s(), l("div", null, [
683
+ ), (l, e) => (s(), r("div", null, [
675
684
  t("div", {
676
685
  class: p(["", n.class_container])
677
686
  }, [
678
- D(r.$slots, "default", {}, void 0, !0),
687
+ D(l.$slots, "default", {}, void 0, !0),
679
688
  t("div", {
680
689
  class: p(["", n.class_content])
681
690
  }, [
682
691
  t("div", {
683
692
  class: p([n.class_filters, "d-flex justify-content-between align-items-start"])
684
693
  }, [
685
- D(r.$slots, "pageSize", {
686
- changePageSize: le,
694
+ D(l.$slots, "pageSize", {
695
+ changePageSize: re,
687
696
  limit_per_page: c.value.limit_per_page
688
697
  }, () => [
689
698
  t("div", {
690
699
  class: p(["text-secondary", n.class_page_size])
691
700
  }, [
692
701
  T(h(n.first_text_page_size) + " ", 1),
693
- t("div", it, [
694
- ce(t("input", {
702
+ t("div", dt, [
703
+ pe(t("input", {
695
704
  class: "form-control form-control-sm",
696
- onChange: le,
705
+ onChange: re,
697
706
  "onUpdate:modelValue": e[0] || (e[0] = (a) => c.value.limit_per_page = a),
698
707
  min: "1",
699
708
  size: "3",
@@ -701,7 +710,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
701
710
  type: "number"
702
711
  }, null, 544), [
703
712
  [
704
- pe,
713
+ _e,
705
714
  c.value.limit_per_page,
706
715
  void 0,
707
716
  { lazy: !0 }
@@ -711,8 +720,8 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
711
720
  T(" " + h(n.second_text_page_size), 1)
712
721
  ], 2)
713
722
  ], !0),
714
- D(r.$slots, "fieldMiddle", {}, void 0, !0),
715
- L(lt, {
723
+ D(l.$slots, "fieldMiddle", {}, void 0, !0),
724
+ L(rt, {
716
725
  search: c.value.search,
717
726
  "onUpdate:search": e[1] || (e[1] = (a) => c.value.search = a),
718
727
  filter: c.value.filter,
@@ -723,88 +732,88 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
723
732
  deactivate_search_on_clear: n.deactivate_search_on_clear,
724
733
  placeholder_search: n.placeholder_search,
725
734
  deactivate_search_empty: n.deactivate_search_empty,
726
- onClickedClearSearch: e[3] || (e[3] = (a) => r.$emit("clickedClearSearch"))
735
+ onClickedClearSearch: e[3] || (e[3] = (a) => l.$emit("clickedClearSearch"))
727
736
  }, null, 8, ["search", "filter", "list_filter", "item_use", "deactivate_search_on_clear", "placeholder_search", "deactivate_search_empty"])
728
737
  ], 2),
729
- D(r.$slots, "item-selected-info", {
730
- selected_items: M.value,
731
- clearSelection: () => M.value = []
738
+ D(l.$slots, "item-selected-info", {
739
+ selected_items: S.value,
740
+ clearSelection: () => S.value = []
732
741
  }, () => [
733
- n.use_checkbox && M.value.length > 0 && !n.deactivate_selected_info ? (s(), l("div", dt, [
734
- t("h4", ut, [
742
+ n.use_checkbox && S.value.length > 0 && !n.deactivate_selected_info ? (s(), r("div", ut, [
743
+ t("h4", ct, [
735
744
  e[8] || (e[8] = t("strong", null, "Itens Selecionados:", -1)),
736
745
  e[9] || (e[9] = T()),
737
- t("span", ct, h(M.value.length), 1)
746
+ t("span", pt, h(S.value.length), 1)
738
747
  ]),
739
748
  t("a", {
740
749
  class: "cursor-pointer",
741
- onClick: e[4] || (e[4] = (a) => M.value = [])
750
+ onClick: e[4] || (e[4] = (a) => S.value = [])
742
751
  }, [...e[10] || (e[10] = [
743
- Fe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-trash" data-v-a1abeddb><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-a1abeddb></path><path d="M4 7l16 0" data-v-a1abeddb></path><path d="M10 11l0 6" data-v-a1abeddb></path><path d="M14 11l0 6" data-v-a1abeddb></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-a1abeddb></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-a1abeddb></path></svg> Limpar Seleção', 2)
752
+ Ue('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-trash" data-v-4da5ec67><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-4da5ec67></path><path d="M4 7l16 0" data-v-4da5ec67></path><path d="M10 11l0 6" data-v-4da5ec67></path><path d="M14 11l0 6" data-v-4da5ec67></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-4da5ec67></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-4da5ec67></path></svg> Limpar Seleção', 2)
744
753
  ])])
745
754
  ])) : g("", !0)
746
755
  ], !0),
747
- xe.value ? (s(), l($, { key: 0 }, [
748
- n.custom_loading ? (s(), ae(ue(n.custom_loading), { key: 0 })) : (s(), l("table", {
756
+ Ce.value ? (s(), r($, { key: 0 }, [
757
+ n.custom_loading ? (s(), ne(ce(n.custom_loading), { key: 0 })) : (s(), r("table", {
749
758
  key: 1,
750
759
  class: p(["table table-vcenter table-selectable", n.class_table])
751
760
  }, [
752
761
  t("thead", null, [
753
762
  t("tr", null, [
754
- (s(!0), l($, null, V(d.value, (a) => (s(), l("th", {
763
+ (s(!0), r($, null, V(d.value, (a) => (s(), r("th", {
755
764
  key: a.field || a.header,
756
765
  class: p(a.class_column)
757
766
  }, h(a.header), 3))), 128))
758
767
  ])
759
768
  ]),
760
769
  t("tbody", null, [
761
- n.type_loading === "placeholder" ? (s(!0), l($, { key: 0 }, V(c.value.limit_per_page, (a) => (s(), l("tr", {
770
+ n.type_loading === "placeholder" ? (s(!0), r($, { key: 0 }, V(c.value.limit_per_page, (a) => (s(), r("tr", {
762
771
  key: "placeholder-" + a,
763
772
  class: "placeholder-glow"
764
773
  }, [
765
- (s(!0), l($, null, V(d.value, (o) => (s(), l("td", {
774
+ (s(!0), r($, null, V(d.value, (o) => (s(), r("td", {
766
775
  key: o.field || o.header,
767
776
  class: p(o.class_row)
768
777
  }, [
769
- o.bodySlot ? (s(), l("span", pt, [...e[11] || (e[11] = [
778
+ o.bodySlot ? (s(), r("span", _t, [...e[11] || (e[11] = [
770
779
  t("span", { class: "placeholder col-8" }, null, -1)
771
- ])])) : o.type === "text" ? (s(), l("span", {
780
+ ])])) : o.type === "text" ? (s(), r("span", {
772
781
  key: 1,
773
782
  class: p(o.class_item)
774
783
  }, [...e[12] || (e[12] = [
775
784
  t("span", { class: "placeholder col-8" }, null, -1)
776
- ])], 2)) : o.type === "date" ? (s(), l("span", _t, [...e[13] || (e[13] = [
785
+ ])], 2)) : o.type === "date" ? (s(), r("span", mt, [...e[13] || (e[13] = [
777
786
  t("span", { class: "placeholder col-9" }, null, -1)
778
- ])])) : o.type === "html" ? (s(), l("div", {
787
+ ])])) : o.type === "html" ? (s(), r("div", {
779
788
  key: 3,
780
789
  class: p(o.class_item)
781
790
  }, [...e[14] || (e[14] = [
782
791
  t("div", { class: "placeholder col-12" }, null, -1)
783
- ])], 2)) : o.type === "img" ? (s(), l("div", {
792
+ ])], 2)) : o.type === "img" ? (s(), r("div", {
784
793
  key: 4,
785
794
  class: p(o.class_item)
786
795
  }, [...e[15] || (e[15] = [
787
796
  t("div", { class: "placeholder placeholder-img" }, null, -1)
788
- ])], 2)) : (s(), l("span", mt, [
797
+ ])], 2)) : (s(), r("span", vt, [
789
798
  e[16] || (e[16] = T("tipo ", -1)),
790
- t("span", vt, h(o.type), 1),
799
+ t("span", ht, h(o.type), 1),
791
800
  e[17] || (e[17] = T(" não suportado ", -1))
792
801
  ]))
793
802
  ], 2))), 128))
794
- ]))), 128)) : n.type_loading === "spiner-table" ? (s(!0), l($, { key: 1 }, V(c.value.limit_per_page, (a) => (s(), l("tr", {
803
+ ]))), 128)) : n.type_loading === "spiner-table" ? (s(!0), r($, { key: 1 }, V(c.value.limit_per_page, (a) => (s(), r("tr", {
795
804
  key: "placeholder-" + a
796
805
  }, [
797
- (s(!0), l($, null, V(d.value, (o) => (s(), l("td", {
806
+ (s(!0), r($, null, V(d.value, (o) => (s(), r("td", {
798
807
  key: o.field || o.header,
799
808
  class: p(o.class_row)
800
809
  }, [
801
- o.bodySlot ? (s(), l("span", ht, [...e[18] || (e[18] = [
810
+ o.bodySlot ? (s(), r("span", ft, [...e[18] || (e[18] = [
802
811
  t("span", {
803
812
  class: "spinner-border spinner-border-sm",
804
813
  role: "status",
805
814
  "aria-hidden": "true"
806
815
  }, null, -1)
807
- ])])) : o.type === "text" ? (s(), l("span", {
816
+ ])])) : o.type === "text" ? (s(), r("span", {
808
817
  key: 1,
809
818
  class: p(o.class_item)
810
819
  }, [...e[19] || (e[19] = [
@@ -813,13 +822,13 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
813
822
  role: "status",
814
823
  "aria-hidden": "true"
815
824
  }, null, -1)
816
- ])], 2)) : o.type === "date" ? (s(), l("span", ft, [...e[20] || (e[20] = [
825
+ ])], 2)) : o.type === "date" ? (s(), r("span", gt, [...e[20] || (e[20] = [
817
826
  t("span", {
818
827
  class: "spinner-border spinner-border-sm",
819
828
  role: "status",
820
829
  "aria-hidden": "true"
821
830
  }, null, -1)
822
- ])])) : o.type === "html" ? (s(), l("div", {
831
+ ])])) : o.type === "html" ? (s(), r("div", {
823
832
  key: 3,
824
833
  class: p(o.class_item)
825
834
  }, [...e[21] || (e[21] = [
@@ -828,7 +837,7 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
828
837
  role: "status",
829
838
  "aria-hidden": "true"
830
839
  }, null, -1)
831
- ])], 2)) : o.type === "img" ? (s(), l("div", {
840
+ ])], 2)) : o.type === "img" ? (s(), r("div", {
832
841
  key: 4,
833
842
  class: p(["", o.class_item])
834
843
  }, [...e[22] || (e[22] = [
@@ -839,143 +848,143 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
839
848
  "aria-hidden": "true"
840
849
  })
841
850
  ], -1)
842
- ])], 2)) : (s(), l("span", gt, [
851
+ ])], 2)) : (s(), r("span", yt, [
843
852
  e[23] || (e[23] = T("tipo ", -1)),
844
853
  t("span", kt, h(o.type), 1),
845
854
  e[24] || (e[24] = T(" não suportado ", -1))
846
855
  ]))
847
856
  ], 2))), 128))
848
- ]))), 128)) : n.type_loading === "spiner" ? (s(!0), l($, { key: 2 }, V(c.value.limit_per_page, (a) => (s(), l("tr", { key: a }, [
857
+ ]))), 128)) : n.type_loading === "spiner" ? (s(!0), r($, { key: 2 }, V(c.value.limit_per_page, (a) => (s(), r("tr", { key: a }, [
849
858
  t("td", {
850
859
  colspan: d.value.length,
851
860
  class: "text-center p-0",
852
861
  style: { "border-bottom": "none" }
853
862
  }, [
854
- a === Math.floor(c.value.limit_per_page / 2) + 1 ? (s(), l("div", wt, [...e[25] || (e[25] = [
863
+ a === Math.floor(c.value.limit_per_page / 2) + 1 ? (s(), r("div", xt, [...e[25] || (e[25] = [
855
864
  t("div", {
856
865
  class: "spinner-border",
857
866
  style: { width: "3rem", height: "3rem" },
858
867
  role: "status"
859
868
  }, null, -1),
860
869
  t("span", { class: "mt-2" }, "Carregando...", -1)
861
- ])])) : (s(), l("div", bt))
862
- ], 8, yt)
870
+ ])])) : (s(), r("div", bt))
871
+ ], 8, wt)
863
872
  ]))), 128)) : g("", !0)
864
873
  ])
865
874
  ], 2)),
866
- v(P) && v(P).current > 1 ? (s(), l("div", xt, " A conexão falhou. Tentando novamente... (Tentativa " + h(v(P).current) + " de " + h(v(P).total) + ") ", 1)) : g("", !0)
867
- ], 64)) : v(Q) ? (s(), l("div", Ct, [
875
+ v(P) && v(P).current > 1 ? (s(), r("div", Ct, " A conexão falhou. Tentando novamente... (Tentativa " + h(v(P).current) + " de " + h(v(P).total) + ") ", 1)) : g("", !0)
876
+ ], 64)) : v(R) ? (s(), r("div", Mt, [
868
877
  e[26] || (e[26] = t("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
869
- v(P) ? (s(), l("p", Mt, " Não foi possível carregar os dados após " + h(v(P).total) + " tentativa(s). ", 1)) : (s(), l("p", St, " Não foi possível carregar os dados. Verifique sua conexão. ")),
878
+ v(P) ? (s(), r("p", St, " Não foi possível carregar os dados após " + h(v(P).total) + " tentativa(s). ", 1)) : (s(), r("p", $t, " Não foi possível carregar os dados. Verifique sua conexão. ")),
870
879
  t("button", {
871
880
  class: "btn btn-primary mt-2",
872
881
  onClick: H
873
882
  }, " Tentar Novamente ")
874
- ])) : C.value ? (s(), l("div", $t, [
875
- C.value.length > 0 ? (s(), l("div", Bt, [
883
+ ])) : M.value ? (s(), r("div", Bt, [
884
+ M.value.length > 0 ? (s(), r("div", zt, [
876
885
  t("table", {
877
886
  class: p(["table table-vcenter table-selectable", n.class_table])
878
887
  }, [
879
888
  t("thead", null, [
880
- L(v(We), {
881
- modelValue: Z.value,
882
- "onUpdate:modelValue": e[5] || (e[5] = (a) => Z.value = a),
889
+ L(v(Je), {
890
+ modelValue: ee.value,
891
+ "onUpdate:modelValue": e[5] || (e[5] = (a) => ee.value = a),
883
892
  tag: "tr",
884
893
  "item-key": "header",
885
894
  animation: 400,
886
895
  "ghost-class": "ghost-item",
887
896
  "drag-class": "dragging-item",
888
- onStart: e[6] || (e[6] = (a) => G.value = !0),
889
- onEnd: e[7] || (e[7] = () => Me())
897
+ onStart: e[6] || (e[6] = (a) => W.value = !0),
898
+ onEnd: e[7] || (e[7] = () => Se())
890
899
  }, {
891
900
  header: O(() => [
892
- n.use_expandable_items ? (s(), l("th", zt)) : g("", !0),
893
- n.use_checkbox ? (s(), l("th", Vt, [
901
+ n.use_expandable_items ? (s(), r("th", Vt)) : g("", !0),
902
+ n.use_checkbox ? (s(), r("th", Tt, [
894
903
  t("input", {
895
904
  class: "form-check-input m-0",
896
905
  type: "checkbox",
897
906
  ref_key: "selectAllCheckbox",
898
907
  ref: A,
899
- onChange: Se,
908
+ onChange: $e,
900
909
  "aria-label": "Selecionar todos os itens na página"
901
910
  }, null, 544)
902
911
  ])) : g("", !0)
903
912
  ]),
904
913
  item: O(({ element: a }) => [
905
- a.use_ordering ? (s(), l("th", {
914
+ a.use_ordering ? (s(), r("th", {
906
915
  key: 0,
907
916
  class: p(["header-draggable", a.class_column])
908
917
  }, [
909
- t("div", Tt, [
918
+ t("div", Et, [
910
919
  t("span", null, h(a.header), 1),
911
920
  t("span", {
912
- onClick: () => re(a.header),
921
+ onClick: () => oe(a.header),
913
922
  class: "ms-2 cursor-pointer"
914
923
  }, [
915
- !m.value[a.header] || m.value[a.header] === "none" ? (s(), l("svg", jt, [...e[27] || (e[27] = [
924
+ !m.value[a.header] || m.value[a.header] === "none" ? (s(), r("svg", Nt, [...e[27] || (e[27] = [
916
925
  t("path", { d: "m3 8 4-4 4 4" }, null, -1),
917
926
  t("path", { d: "m11 16-4 4-4-4" }, null, -1),
918
927
  t("path", { d: "M7 4v16" }, null, -1),
919
928
  t("path", { d: "M15 8h6" }, null, -1),
920
929
  t("path", { d: "M15 16h6" }, null, -1),
921
930
  t("path", { d: "M13 12h8" }, null, -1)
922
- ])])) : m.value[a.header] === "decreasing" ? (s(), l("svg", Nt, [...e[28] || (e[28] = [
931
+ ])])) : m.value[a.header] === "decreasing" ? (s(), r("svg", It, [...e[28] || (e[28] = [
923
932
  t("path", { d: "m3 16 4 4 4-4" }, null, -1),
924
933
  t("path", { d: "M7 20V4" }, null, -1),
925
934
  t("path", { d: "M11 4h10" }, null, -1),
926
935
  t("path", { d: "M11 8h7" }, null, -1),
927
936
  t("path", { d: "M11 12h4" }, null, -1)
928
- ])])) : m.value[a.header] === "increasing" ? (s(), l("svg", It, [...e[29] || (e[29] = [
937
+ ])])) : m.value[a.header] === "increasing" ? (s(), r("svg", Dt, [...e[29] || (e[29] = [
929
938
  t("path", { d: "m3 8 4-4 4 4" }, null, -1),
930
939
  t("path", { d: "M7 4v16" }, null, -1),
931
940
  t("path", { d: "M11 12h4" }, null, -1),
932
941
  t("path", { d: "M11 16h7" }, null, -1),
933
942
  t("path", { d: "M11 20h10" }, null, -1)
934
943
  ])])) : g("", !0)
935
- ], 8, Et)
944
+ ], 8, jt)
936
945
  ])
937
- ], 2)) : (s(), l("th", {
946
+ ], 2)) : (s(), r("th", {
938
947
  key: 1,
939
948
  class: p(["header-draggable", a.class_column])
940
949
  }, h(a.header), 3))
941
950
  ]),
942
951
  footer: O(() => [
943
- (s(!0), l($, null, V(R.value, (a) => (s(), l($, {
952
+ (s(!0), r($, null, V(Z.value, (a) => (s(), r($, {
944
953
  key: a.field || a.header
945
954
  }, [
946
- a.use_ordering ? (s(), l("th", {
955
+ a.use_ordering ? (s(), r("th", {
947
956
  key: 0,
948
957
  class: p(["header-locked header-ordering", a.class_column])
949
958
  }, [
950
- t("div", Dt, [
959
+ t("div", qt, [
951
960
  t("span", null, h(a.header), 1),
952
961
  t("span", {
953
- onClick: () => re(a.header),
962
+ onClick: () => oe(a.header),
954
963
  class: "ms-2 cursor-pointer"
955
964
  }, [
956
- !m.value[a.header] || m.value[a.header] === "none" ? (s(), l("svg", At, [...e[30] || (e[30] = [
965
+ !m.value[a.header] || m.value[a.header] === "none" ? (s(), r("svg", Pt, [...e[30] || (e[30] = [
957
966
  t("path", { d: "m3 8 4-4 4 4" }, null, -1),
958
967
  t("path", { d: "m11 16-4 4-4-4" }, null, -1),
959
968
  t("path", { d: "M7 4v16" }, null, -1),
960
969
  t("path", { d: "M15 8h6" }, null, -1),
961
970
  t("path", { d: "M15 16h6" }, null, -1),
962
971
  t("path", { d: "M13 12h8" }, null, -1)
963
- ])])) : m.value[a.header] === "decreasing" ? (s(), l("svg", Pt, [...e[31] || (e[31] = [
972
+ ])])) : m.value[a.header] === "decreasing" ? (s(), r("svg", Ht, [...e[31] || (e[31] = [
964
973
  t("path", { d: "m3 16 4 4 4-4" }, null, -1),
965
974
  t("path", { d: "M7 20V4" }, null, -1),
966
975
  t("path", { d: "M11 4h10" }, null, -1),
967
976
  t("path", { d: "M11 8h7" }, null, -1),
968
977
  t("path", { d: "M11 12h4" }, null, -1)
969
- ])])) : m.value[a.header] === "increasing" ? (s(), l("svg", Ht, [...e[32] || (e[32] = [
978
+ ])])) : m.value[a.header] === "increasing" ? (s(), r("svg", Ot, [...e[32] || (e[32] = [
970
979
  t("path", { d: "m3 8 4-4 4 4" }, null, -1),
971
980
  t("path", { d: "M7 4v16" }, null, -1),
972
981
  t("path", { d: "M11 12h4" }, null, -1),
973
982
  t("path", { d: "M11 16h7" }, null, -1),
974
983
  t("path", { d: "M11 20h10" }, null, -1)
975
984
  ])])) : g("", !0)
976
- ], 8, qt)
985
+ ], 8, At)
977
986
  ])
978
- ], 2)) : (s(), l("th", {
987
+ ], 2)) : (s(), r("th", {
979
988
  key: 1,
980
989
  class: p(["header-locked", a.class_column])
981
990
  }, h(a.header), 3))
@@ -985,33 +994,33 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
985
994
  }, 8, ["modelValue"])
986
995
  ]),
987
996
  t("tbody", null, [
988
- (s(!0), l($, null, V(C.value, (a) => (s(), l($, {
997
+ (s(!0), r($, null, V(M.value, (a) => (s(), r($, {
989
998
  key: a[n.item_key]
990
999
  }, [
991
- L(Ue, {
1000
+ L(Ke, {
992
1001
  tag: "tr",
993
- name: G.value ? "column-move" : ""
1002
+ name: W.value ? "column-move" : ""
994
1003
  }, {
995
1004
  default: O(() => [
996
- n.use_expandable_items ? (s(), l("td", Ot, [
997
- D(r.$slots, "expand-button", {
1005
+ n.use_expandable_items ? (s(), r("td", Lt, [
1006
+ D(l.$slots, "expand-button", {
998
1007
  item: a,
999
- isExpanded: v(J)(a),
1000
- expand_item_toggle: v(W)
1008
+ isExpanded: v(Q)(a),
1009
+ expand_item_toggle: v(J)
1001
1010
  }, () => [
1002
1011
  t("button", {
1003
1012
  type: "button",
1004
- class: p(["btn-clean btn-icon-anim", { "is-expanded": v(J)(a) }]),
1005
- onClick: (o) => v(W)(a)
1013
+ class: p(["btn-clean btn-icon-anim", { "is-expanded": v(Q)(a) }]),
1014
+ onClick: (o) => v(J)(a)
1006
1015
  }, [
1007
- n.type_button_expand === "arrow" ? (s(), l("svg", Ft, [...e[33] || (e[33] = [
1016
+ n.type_button_expand === "arrow" ? (s(), r("svg", Ut, [...e[33] || (e[33] = [
1008
1017
  t("path", {
1009
1018
  stroke: "none",
1010
1019
  d: "M0 0h24v24H0z",
1011
1020
  fill: "none"
1012
1021
  }, null, -1),
1013
1022
  t("path", { d: "M9 6l6 6l-6 6" }, null, -1)
1014
- ])])) : (s(), l("svg", Ut, [...e[34] || (e[34] = [
1023
+ ])])) : (s(), r("svg", Kt, [...e[34] || (e[34] = [
1015
1024
  t("path", {
1016
1025
  stroke: "none",
1017
1026
  d: "M0 0h24v24H0z",
@@ -1023,57 +1032,57 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
1023
1032
  }, null, -1),
1024
1033
  t("path", { d: "M5 12l14 0" }, null, -1)
1025
1034
  ])]))
1026
- ], 10, Lt)
1035
+ ], 10, Ft)
1027
1036
  ], !0)
1028
1037
  ])) : g("", !0),
1029
- n.use_checkbox ? (s(), l("td", Kt, [
1038
+ n.use_checkbox ? (s(), r("td", Yt, [
1030
1039
  t("input", {
1031
1040
  class: "form-check-input m-0",
1032
1041
  type: "checkbox",
1033
1042
  checked: K(a),
1034
- onChange: (o) => $e(a),
1043
+ onChange: (o) => Be(a),
1035
1044
  "aria-label": "Selecionar este item"
1036
- }, null, 40, Yt)
1045
+ }, null, 40, Xt)
1037
1046
  ])) : g("", !0),
1038
- (s(!0), l($, null, V(we.value, (o) => (s(), l("td", {
1047
+ (s(!0), r($, null, V(xe.value, (o) => (s(), r("td", {
1039
1048
  key: o.field || o.header,
1040
1049
  class: p(o.class_row)
1041
1050
  }, [
1042
- o.bodySlot ? (s(), ae(ue(o.bodySlot), {
1051
+ o.bodySlot ? (s(), ne(ce(o.bodySlot), {
1043
1052
  key: 0,
1044
1053
  item: a,
1045
1054
  "is-selected": K(a)
1046
- }, null, 8, ["item", "is-selected"])) : o.type === "text" ? (s(), l("span", {
1055
+ }, null, 8, ["item", "is-selected"])) : o.type === "text" ? (s(), r("span", {
1047
1056
  key: 1,
1048
- onClick: (S) => o.click ? o.click(a) : null,
1049
- class: p(o.class_item + (o.click ? " cursor-pointer" : ""))
1050
- }, h(ze(I(o.field, a, o.transform_function), o.limite_text ?? null)), 11, Xt)) : o.type === "date" ? (s(), l("span", {
1057
+ onClick: (k) => o.click ? o.click(a) : null,
1058
+ class: p(Y(o, a))
1059
+ }, h(Ve(I(o.field, a, o.transform_function), o.limite_text ?? null)), 11, Gt)) : o.type === "date" ? (s(), r("span", {
1051
1060
  key: 2,
1052
- onClick: (S) => o.click ? o.click(a) : null,
1053
- class: p(o.class_item + (o.click ? " cursor-pointer" : ""))
1061
+ onClick: (k) => o.click ? o.click(a) : null,
1062
+ class: p(Y(o, a))
1054
1063
  }, [
1055
- o.format === "complete" ? (s(), l("span", Wt, h(new Date(I(o.field, a)).toLocaleString()), 1)) : g("", !0),
1056
- o.format === "simple" ? (s(), l("span", Jt, h(new Date(I(
1064
+ o.format === "complete" ? (s(), r("span", Jt, h(new Date(I(o.field, a)).toLocaleString()), 1)) : g("", !0),
1065
+ o.format === "simple" ? (s(), r("span", Qt, h(new Date(I(
1057
1066
  o.field,
1058
1067
  a
1059
1068
  )).toLocaleDateString()), 1)) : g("", !0)
1060
- ], 10, Gt)) : o.type === "html" ? (s(), l("div", {
1069
+ ], 10, Wt)) : o.type === "html" ? (s(), r("div", {
1061
1070
  key: 3,
1062
- onClick: (S) => o.click ? o.click(a) : null,
1063
- class: p(o.class_item + (o.click ? " cursor-pointer" : "")),
1071
+ onClick: (k) => o.click ? o.click(a) : null,
1072
+ class: p(Y(o, a)),
1064
1073
  innerHTML: I(o.field, a)
1065
- }, null, 10, Qt)) : o.type === "img" ? (s(), l("div", {
1074
+ }, null, 10, Rt)) : o.type === "img" ? (s(), r("div", {
1066
1075
  key: 4,
1067
- onClick: (S) => o.click ? o.click(a) : null,
1068
- class: p(o.class_item + (o.click ? " cursor-pointer" : ""))
1076
+ onClick: (k) => o.click ? o.click(a) : null,
1077
+ class: p(Y(o, a))
1069
1078
  }, [
1070
- I(o.field, a) ? (s(), l("div", Ke({
1079
+ I(o.field, a) ? (s(), r("div", Ye({
1071
1080
  key: 0,
1072
1081
  ref_for: !0
1073
1082
  }, o.deactivate_img_preview ? {
1074
1083
  class: "container-img"
1075
1084
  } : {
1076
- onMouseover: (S) => v(j)(S, I(o.field, a)),
1085
+ onMouseover: (k) => v(j)(k, I(o.field, a)),
1077
1086
  onMousemove: v(q),
1078
1087
  onMouseleave: v(N),
1079
1088
  class: "container-img container-img-preview"
@@ -1081,84 +1090,84 @@ const it = { class: "mx-2 d-inline-block" }, dt = {
1081
1090
  t("img", {
1082
1091
  class: "img-tamanho",
1083
1092
  src: I(o.field, a)
1084
- }, null, 8, Zt),
1093
+ }, null, 8, ea),
1085
1094
  t("img", {
1086
1095
  class: "img-tamanho-cover",
1087
1096
  src: I(o.field, a)
1088
- }, null, 8, ea),
1097
+ }, null, 8, ta),
1089
1098
  e[35] || (e[35] = t("div", { class: "bg-img" }, null, -1))
1090
1099
  ], 16)) : g("", !0)
1091
- ], 10, Rt)) : (s(), l("span", ta, [
1100
+ ], 10, Zt)) : (s(), r("span", aa, [
1092
1101
  e[36] || (e[36] = T("tipo ", -1)),
1093
- t("span", aa, h(o.type), 1),
1102
+ t("span", na, h(o.type), 1),
1094
1103
  e[37] || (e[37] = T(" não suportado", -1))
1095
1104
  ]))
1096
1105
  ], 2))), 128))
1097
1106
  ]),
1098
1107
  _: 2
1099
1108
  }, 1032, ["name"]),
1100
- L(Ye, {
1109
+ L(Xe, {
1101
1110
  name: "expand-item-" + n.type_animation_expand,
1102
1111
  css: !n.deactivate_animation_expand
1103
1112
  }, {
1104
1113
  default: O(() => [
1105
- v(J)(a) ? (s(), l("tr", {
1114
+ v(Q)(a) ? (s(), r("tr", {
1106
1115
  key: 0,
1107
1116
  id: "expand-item-" + a[n.item_key],
1108
1117
  class: "expanded-item-row"
1109
1118
  }, [
1110
1119
  t("td", {
1111
- colspan: Ne()
1120
+ colspan: Ie()
1112
1121
  }, [
1113
- D(r.$slots, "after-row", { item: a }, void 0, !0)
1114
- ], 8, sa)
1115
- ], 8, na)) : g("", !0)
1122
+ D(l.$slots, "after-row", { item: a }, void 0, !0)
1123
+ ], 8, la)
1124
+ ], 8, sa)) : g("", !0)
1116
1125
  ]),
1117
1126
  _: 2
1118
1127
  }, 1032, ["name", "css"])
1119
1128
  ], 64))), 128))
1120
1129
  ])
1121
1130
  ], 2)
1122
- ])) : _.value === !1 ? (s(), l("div", la, [
1123
- D(r.$slots, "idle-state", {}, void 0, !0)
1124
- ])) : (s(), l("div", ra, [...e[38] || (e[38] = [
1131
+ ])) : _.value === !1 ? (s(), r("div", ra, [
1132
+ D(l.$slots, "idle-state", {}, void 0, !0)
1133
+ ])) : (s(), r("div", oa, [...e[38] || (e[38] = [
1125
1134
  t("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
1126
1135
  ])]))
1127
1136
  ])) : g("", !0)
1128
1137
  ], 2)
1129
1138
  ], 2),
1130
- D(r.$slots, "pagination", {
1139
+ D(l.$slots, "pagination", {
1131
1140
  pagination: c.value,
1132
1141
  tradePage: H,
1133
- error: v(Q)
1142
+ error: v(R)
1134
1143
  }, () => [
1135
- !v(Q) && c.value.count > 0 ? (s(), l("div", {
1144
+ !v(R) && c.value.count > 0 ? (s(), r("div", {
1136
1145
  key: 0,
1137
1146
  class: p(["px-3", n.class_pagination])
1138
1147
  }, [
1139
- L(Ge, {
1148
+ L(We, {
1140
1149
  page_starts_at: n.page_starts_at,
1141
1150
  filtering: !0,
1142
1151
  pagination: c.value,
1143
- onTradePage: Ie
1152
+ onTradePage: De
1144
1153
  }, null, 8, ["page_starts_at", "pagination"])
1145
1154
  ], 2)) : g("", !0)
1146
1155
  ], !0),
1147
- v(k) ? (s(), l("div", {
1156
+ v(y) ? (s(), r("div", {
1148
1157
  key: 0,
1149
1158
  class: "image-preview-container",
1150
- style: Xe(v(x))
1159
+ style: Ge(v(C))
1151
1160
  }, [
1152
1161
  t("img", {
1153
1162
  src: v(f),
1154
1163
  alt: "Preview",
1155
1164
  class: "image-preview-large"
1156
- }, null, 8, oa)
1165
+ }, null, 8, ia)
1157
1166
  ], 4)) : g("", !0)
1158
1167
  ]));
1159
1168
  }
1160
- }), _a = /* @__PURE__ */ me(ia, [["__scopeId", "data-v-a1abeddb"]]);
1169
+ }), ma = /* @__PURE__ */ ve(da, [["__scopeId", "data-v-4da5ec67"]]);
1161
1170
  export {
1162
- pa as VColumn,
1163
- _a as VDataTable
1171
+ _a as VColumn,
1172
+ ma as VDataTable
1164
1173
  };