@devix-tecnologia/timeline-vue 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as p, reactive as S, computed as E, openBlock as a, createElementBlock as i, createElementVNode as u, normalizeClass as q, normalizeStyle as H, toDisplayString as c, resolveComponent as l, createVNode as _, createBlock as C, createCommentVNode as b, ref as W, Fragment as V, renderList as F, renderSlot as B, createTextVNode as R, pushScopeId as M, popScopeId as w, withCtx as D, Transition as z } from "vue";
2
- const X = p({
1
+ import { defineComponent as m, reactive as S, computed as E, openBlock as a, createElementBlock as i, createElementVNode as u, normalizeClass as q, normalizeStyle as H, toDisplayString as c, resolveComponent as l, createVNode as _, createBlock as b, createCommentVNode as C, ref as W, Fragment as V, renderList as F, renderSlot as B, createTextVNode as R, pushScopeId as M, popScopeId as w, withCtx as D, Transition as z } from "vue";
2
+ const X = m({
3
3
  name: "Icone Categoria",
4
4
  props: {
5
5
  iconeCategoria: {
@@ -37,7 +37,7 @@ const X = p({
37
37
  };
38
38
  }
39
39
  });
40
- const m = (e, t) => {
40
+ const v = (e, t) => {
41
41
  const s = e.__vccOpts || e;
42
42
  for (const [o, n] of t)
43
43
  s[o] = n;
@@ -54,7 +54,7 @@ function te(e, t, s, o, n, d) {
54
54
  ], 14, x)
55
55
  ]);
56
56
  }
57
- const L = /* @__PURE__ */ m(X, [["render", te], ["__scopeId", "data-v-f922d1fe"]]), ae = p({
57
+ const L = /* @__PURE__ */ v(X, [["render", te], ["__scopeId", "data-v-f922d1fe"]]), ae = m({
58
58
  name: "Icone Status",
59
59
  props: {
60
60
  status: {
@@ -75,7 +75,7 @@ function oe(e, t, s, o, n, d) {
75
75
  class: q([e.classes, "iconeStatus"])
76
76
  }, null, 2);
77
77
  }
78
- const J = /* @__PURE__ */ m(ae, [["render", oe], ["__scopeId", "data-v-efe84975"]]), ne = p({
78
+ const J = /* @__PURE__ */ v(ae, [["render", oe], ["__scopeId", "data-v-efe84975"]]), ne = m({
79
79
  name: "Subtítulo Evento",
80
80
  props: {
81
81
  subtitulo: {
@@ -88,7 +88,7 @@ const se = { class: "subtitulo" };
88
88
  function ie(e, t, s, o, n, d) {
89
89
  return a(), i("h4", se, c(e.subtitulo), 1);
90
90
  }
91
- const re = /* @__PURE__ */ m(ne, [["render", ie], ["__scopeId", "data-v-5f7c5673"]]), ce = p({
91
+ const re = /* @__PURE__ */ v(ne, [["render", ie], ["__scopeId", "data-v-5f7c5673"]]), ce = m({
92
92
  name: "Título Evento",
93
93
  props: {
94
94
  titulo: {
@@ -101,7 +101,7 @@ const le = { class: "titulo" };
101
101
  function de(e, t, s, o, n, d) {
102
102
  return a(), i("h3", le, c(e.titulo), 1);
103
103
  }
104
- const ue = /* @__PURE__ */ m(ce, [["render", de], ["__scopeId", "data-v-7369e837"]]), _e = p({
104
+ const ue = /* @__PURE__ */ v(ce, [["render", de], ["__scopeId", "data-v-7369e837"]]), _e = m({
105
105
  name: "Descrição Evento",
106
106
  props: {
107
107
  titulo: {
@@ -122,13 +122,13 @@ function pe(e, t, s, o, n, d) {
122
122
  style: H(`${e.subtitulo ? "" : "padding-top: 3.3rem"}`)
123
123
  }, [
124
124
  _(r, { titulo: e.titulo }, null, 8, ["titulo"]),
125
- e.subtitulo ? (a(), C(f, {
125
+ e.subtitulo ? (a(), b(f, {
126
126
  key: 0,
127
127
  subtitulo: e.subtitulo
128
- }, null, 8, ["subtitulo"])) : b("", !0)
128
+ }, null, 8, ["subtitulo"])) : C("", !0)
129
129
  ], 4);
130
130
  }
131
- const me = /* @__PURE__ */ m(_e, [["render", pe], ["__scopeId", "data-v-793cab8b"]]), ve = p({
131
+ const me = /* @__PURE__ */ v(_e, [["render", pe], ["__scopeId", "data-v-793cab8b"]]), ve = m({
132
132
  name: "Hora",
133
133
  props: {
134
134
  hora: {
@@ -158,7 +158,7 @@ function fe(e, t, s, o, n, d) {
158
158
  class: q(["hora", e.classes])
159
159
  }, c(e.horas.getHours()) + ":" + c(e.horas.getMinutes().toString().padStart(2, "0")), 3);
160
160
  }
161
- const Y = /* @__PURE__ */ m(ve, [["render", fe], ["__scopeId", "data-v-d3082250"]]), $e = p({
161
+ const Y = /* @__PURE__ */ v(ve, [["render", fe], ["__scopeId", "data-v-d3082250"]]), $e = m({
162
162
  name: "Hora Evento",
163
163
  props: {
164
164
  horaPrevista: {
@@ -177,11 +177,11 @@ function ye(e, t, s, o, n, d) {
177
177
  const r = l("Hora");
178
178
  return a(), i("div", he, [
179
179
  u("div", ge, [
180
- e.horaRealizada ? (a(), C(r, {
180
+ e.horaRealizada ? (a(), b(r, {
181
181
  key: 0,
182
182
  hora: e.horaRealizada,
183
183
  style: { "padding-top": "0.3rem" }
184
- }, null, 8, ["hora"])) : b("", !0),
184
+ }, null, 8, ["hora"])) : C("", !0),
185
185
  _(r, {
186
186
  hora: e.horaPrevista,
187
187
  aparencia: e.horaRealizada ? "riscada" : "padrao",
@@ -190,7 +190,7 @@ function ye(e, t, s, o, n, d) {
190
190
  ])
191
191
  ]);
192
192
  }
193
- const Ce = /* @__PURE__ */ m($e, [["render", ye], ["__scopeId", "data-v-da519ace"]]), be = p({
193
+ const be = /* @__PURE__ */ v($e, [["render", ye], ["__scopeId", "data-v-da519ace"]]), Ce = m({
194
194
  name: "Destaque",
195
195
  props: {
196
196
  texto: {
@@ -202,7 +202,7 @@ const ke = { class: "destaqueEvento texto-pequeno" };
202
202
  function Se(e, t, s, o, n, d) {
203
203
  return a(), i("div", ke, c(e.texto), 1);
204
204
  }
205
- const Ee = /* @__PURE__ */ m(be, [["render", Se], ["__scopeId", "data-v-c2f02de8"]]), Te = p({
205
+ const Ee = /* @__PURE__ */ v(Ce, [["render", Se], ["__scopeId", "data-v-c2f02de8"]]), Te = m({
206
206
  name: "Evento Timeline",
207
207
  props: {
208
208
  status: {
@@ -251,7 +251,7 @@ const Ee = /* @__PURE__ */ m(be, [["render", Se], ["__scopeId", "data-v-c2f02de8
251
251
  components: {
252
252
  IconeStatus: J,
253
253
  IconeCategoria: L,
254
- HoraEvento: Ce,
254
+ HoraEvento: be,
255
255
  DescricaoEvento: me,
256
256
  Destaque: Ee
257
257
  },
@@ -275,7 +275,7 @@ function Pe(e, t, s, o, n, d) {
275
275
  return a(), i("article", {
276
276
  "data-testid": "evento",
277
277
  class: q(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
278
- onClick: t[0] || (t[0] = (...v) => e.handleClick && e.handleClick(...v))
278
+ onClick: t[0] || (t[0] = (...p) => e.handleClick && e.handleClick(...p))
279
279
  }, [
280
280
  _(r, { status: e.status }, null, 8, ["status"]),
281
281
  _(f, {
@@ -293,7 +293,7 @@ function Pe(e, t, s, o, n, d) {
293
293
  _(I, { texto: e.textoDestaque }, null, 8, ["texto"])
294
294
  ], 2);
295
295
  }
296
- const G = /* @__PURE__ */ m(Te, [["render", Pe]]), De = p({
296
+ const G = /* @__PURE__ */ v(Te, [["render", Pe]]), De = m({
297
297
  name: "Box Data",
298
298
  props: {
299
299
  dataNumero: {
@@ -317,7 +317,7 @@ function qe(e, t, s, o, n, d) {
317
317
  class: q(["boxData padrao", e.classes])
318
318
  }, c(e.dataNumero), 3);
319
319
  }
320
- const Ie = /* @__PURE__ */ m(De, [["render", qe], ["__scopeId", "data-v-385cc692"]]), ze = p({
320
+ const Ie = /* @__PURE__ */ v(De, [["render", qe], ["__scopeId", "data-v-385cc692"]]), ze = m({
321
321
  name: "SeparadorPeriodo",
322
322
  props: {
323
323
  dataSeparador: {
@@ -343,7 +343,7 @@ function je(e, t, s, o, n, d) {
343
343
  u("h3", Oe, c(e.mesCorrente(e.dataSeparador.getMonth())) + " de " + c(e.dataSeparador.getFullYear()), 1)
344
344
  ]);
345
345
  }
346
- const He = /* @__PURE__ */ m(ze, [["render", je]]), Re = p({
346
+ const He = /* @__PURE__ */ v(ze, [["render", je]]), Re = m({
347
347
  name: "Avatar Timeline",
348
348
  props: {
349
349
  imagem: {
@@ -369,7 +369,7 @@ function Fe(e, t, s, o, n, d) {
369
369
  }, null, 8, we)) : e.icone ? (a(), i("span", Ne, c(e.icone), 1)) : (a(), i("span", Ve, " person "))
370
370
  ]);
371
371
  }
372
- const Le = /* @__PURE__ */ m(Re, [["render", Fe], ["__scopeId", "data-v-bd3d61f3"]]), Je = p({
372
+ const Le = /* @__PURE__ */ v(Re, [["render", Fe], ["__scopeId", "data-v-bd3d61f3"]]), Je = m({
373
373
  components: { AvatarTimeline: Le },
374
374
  props: {
375
375
  imagemPerfil: {
@@ -401,17 +401,17 @@ function Ge(e, t, s, o, n, d) {
401
401
  return a(), i("section", {
402
402
  class: q(["perfilTimeline", e.classes])
403
403
  }, [
404
- e.imagemPerfil ? (a(), C(r, {
404
+ e.imagemPerfil ? (a(), b(r, {
405
405
  key: 0,
406
406
  imagem: e.imagemPerfil
407
- }, null, 8, ["imagem"])) : e.iconePerfil ? (a(), C(r, {
407
+ }, null, 8, ["imagem"])) : e.iconePerfil ? (a(), b(r, {
408
408
  key: 1,
409
409
  icone: e.iconePerfil
410
- }, null, 8, ["icone"])) : b("", !0),
410
+ }, null, 8, ["icone"])) : C("", !0),
411
411
  u("h2", Ye, c(e.nomePerfil), 1)
412
412
  ], 2);
413
413
  }
414
- const K = /* @__PURE__ */ m(Je, [["render", Ge]]), Ke = p({
414
+ const K = /* @__PURE__ */ v(Je, [["render", Ge]]), Ke = m({
415
415
  props: {
416
416
  perfilTimeline: {
417
417
  required: !1,
@@ -428,30 +428,30 @@ const K = /* @__PURE__ */ m(Je, [["render", Ge]]), Ke = p({
428
428
  EventoTimeline: G
429
429
  },
430
430
  emits: {
431
- eventoClick: (e) => !0
431
+ eventoClick: (e, t) => !0
432
432
  },
433
433
  setup(e, { emit: t }) {
434
- const s = (v) => {
435
- t("eventoClick", v);
434
+ const s = (p, h) => {
435
+ p.clicavel !== !1 && t("eventoClick", p, h);
436
436
  }, o = S(e.eventosTimeline);
437
437
  let n = S(o);
438
438
  function d() {
439
- const v = y(o);
439
+ const p = y(o);
440
440
  o.forEach((h) => {
441
- const g = v.length > 0 && v[0] === h;
441
+ const g = p.length > 0 && p[0] === h;
442
442
  h.atual = g, h.scroll = g;
443
443
  }), I();
444
444
  }
445
445
  const r = () => {
446
446
  setInterval(d, 6e4);
447
- }, f = (v, h) => {
448
- const g = v.getDay() === h.getDay(), T = v.getMonth() === h.getMonth(), k = v.getFullYear() === h.getFullYear();
447
+ }, f = (p, h) => {
448
+ const g = p.getDay() === h.getDay(), T = p.getMonth() === h.getMonth(), k = p.getFullYear() === h.getFullYear();
449
449
  return g && T && k;
450
- }, y = (v) => {
451
- if (v) {
450
+ }, y = (p) => {
451
+ if (p) {
452
452
  const h = Date.now();
453
453
  let g = null, T = [];
454
- for (const k of v) {
454
+ for (const k of p) {
455
455
  const P = k.data.getTime();
456
456
  if (k.status === "planejado" || k.status === "atrasado") {
457
457
  const A = Math.abs(h - k.data.getTime());
@@ -467,10 +467,10 @@ const K = /* @__PURE__ */ m(Je, [["render", Ge]]), Ke = p({
467
467
  return [];
468
468
  }, $ = E(() => {
469
469
  r();
470
- const v = n.sort((h, g) => h.data.getTime() - g.data.getTime());
471
- if (v) {
470
+ const p = n.sort((h, g) => h.data.getTime() - g.data.getTime());
471
+ if (p) {
472
472
  let h = [], g = null, T = 0, k;
473
- for (const P of v) {
473
+ for (const P of p) {
474
474
  const A = /* @__PURE__ */ new Date(), j = P.data;
475
475
  k = P.status;
476
476
  const U = P.tolerancia * 60 * 1e3;
@@ -488,8 +488,8 @@ const K = /* @__PURE__ */ m(Je, [["render", Ge]]), Ke = p({
488
488
  } else
489
489
  return [];
490
490
  }), I = () => {
491
- const v = document.querySelector(".atual");
492
- !v || !v.scrollIntoView || v.scrollIntoView({
491
+ const p = document.querySelector(".atual");
492
+ !p || !p.scrollIntoView || p.scrollIntoView({
493
493
  behavior: "smooth",
494
494
  block: "center"
495
495
  });
@@ -497,7 +497,7 @@ const K = /* @__PURE__ */ m(Je, [["render", Ge]]), Ke = p({
497
497
  return d(), {
498
498
  eventosPorTipo: $,
499
499
  scrollParaItemAtual: I,
500
- emitirEventoClick: s
500
+ handleEventoClick: s
501
501
  };
502
502
  },
503
503
  mounted() {
@@ -508,23 +508,23 @@ const Qe = { class: "areaTimeline" }, Ue = { class: "timeline" };
508
508
  function We(e, t, s, o, n, d) {
509
509
  const r = l("PerfilTimeline"), f = l("SeparadorPeriodo"), y = l("EventoTimeline");
510
510
  return a(), i("div", Qe, [
511
- e.perfilTimeline ? (a(), C(r, {
511
+ e.perfilTimeline ? (a(), b(r, {
512
512
  key: 0,
513
513
  nomePerfil: e.perfilTimeline.nome,
514
514
  imagemPerfil: e.perfilTimeline.imagem,
515
515
  iconePerfil: e.perfilTimeline.icone,
516
516
  "data-testid": "perfilTimeline"
517
- }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : b("", !0),
517
+ }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : C("", !0),
518
518
  u("section", Ue, [
519
519
  (a(!0), i(V, null, F(e.eventosPorTipo, ($, I) => (a(), i("div", {
520
520
  key: $.key
521
521
  }, [
522
- $.tipo === "dia" ? (a(), C(f, {
522
+ $.tipo === "dia" ? (a(), b(f, {
523
523
  key: 0,
524
524
  dataSeparador: $.valor,
525
525
  "data-testid": `evento-timeline-${I}`
526
- }, null, 8, ["dataSeparador", "data-testid"])) : b("", !0),
527
- $.tipo === "evento" ? (a(), C(y, {
526
+ }, null, 8, ["dataSeparador", "data-testid"])) : C("", !0),
527
+ $.tipo === "evento" ? (a(), b(y, {
528
528
  key: 1,
529
529
  status: $.valor.status,
530
530
  criticidade: $.valor.criticidade,
@@ -535,14 +535,14 @@ function We(e, t, s, o, n, d) {
535
535
  subtitulo: $.valor.subtitulo,
536
536
  "texto-destaque": $.valor.destaque,
537
537
  ehAtual: $.valor.atual,
538
- onClick: (v) => e.emitirEventoClick($.valor),
538
+ onClick: (p) => e.handleEventoClick($.valor, p),
539
539
  "data-testid": `evento-timeline-${I}`
540
- }, null, 8, ["status", "criticidade", "previstoPara", "realizado-em", "categoria", "titulo", "subtitulo", "texto-destaque", "ehAtual", "onClick", "data-testid"])) : b("", !0)
540
+ }, null, 8, ["status", "criticidade", "previstoPara", "realizado-em", "categoria", "titulo", "subtitulo", "texto-destaque", "ehAtual", "onClick", "data-testid"])) : C("", !0)
541
541
  ]))), 128))
542
542
  ])
543
543
  ]);
544
544
  }
545
- const Xe = /* @__PURE__ */ m(Ke, [["render", We]]), Ze = p({
545
+ const Xe = /* @__PURE__ */ v(Ke, [["render", We]]), Ze = m({
546
546
  name: "Botao",
547
547
  props: {
548
548
  titulo: {
@@ -589,12 +589,12 @@ function et(e, t, s, o, n, d) {
589
589
  onClick: t[0] || (t[0] = (...r) => e.handleClick && e.handleClick(...r))
590
590
  }, [
591
591
  B(e.$slots, "default", {}, () => [
592
- e.icone ? (a(), i("span", xe, c(e.icone), 1)) : b("", !0),
592
+ e.icone ? (a(), i("span", xe, c(e.icone), 1)) : C("", !0),
593
593
  R(" " + c(e.titulo), 1)
594
594
  ], !0)
595
595
  ]);
596
596
  }
597
- const O = /* @__PURE__ */ m(Ze, [["render", et], ["__scopeId", "data-v-ce25287c"]]), tt = p({
597
+ const O = /* @__PURE__ */ v(Ze, [["render", et], ["__scopeId", "data-v-ce25287c"]]), tt = m({
598
598
  components: { Botao: O, PerfilTimeline: K, IconeCategoria: L, Hora: Y },
599
599
  name: "CabecalhoEventoDetalhado",
600
600
  props: {
@@ -629,14 +629,14 @@ function mt(e, t, s, o, n, d) {
629
629
  return a(), i("section", {
630
630
  class: q(["cabecalho-evento", ["criticidade-" + e.evento.criticidade]])
631
631
  }, [
632
- e.perfil ? (a(), C(r, {
632
+ e.perfil ? (a(), b(r, {
633
633
  key: 0,
634
634
  nomePerfil: e.perfil.nome,
635
635
  imagemPerfil: e.perfil.imagem,
636
636
  iconePerfil: e.perfil.icone,
637
637
  formatoReduzido: !0
638
- }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : b("", !0),
639
- e.evento.criticidade !== "baixa" ? (a(), i("div", at, " Criticidade: " + c(e.evento.criticidade), 1)) : b("", !0),
638
+ }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : C("", !0),
639
+ e.evento.criticidade !== "baixa" ? (a(), i("div", at, " Criticidade: " + c(e.evento.criticidade), 1)) : C("", !0),
640
640
  u("div", ot, [
641
641
  _(f, {
642
642
  iconeCategoria: e.evento.categoria.icone,
@@ -648,23 +648,23 @@ function mt(e, t, s, o, n, d) {
648
648
  u("div", st, [
649
649
  it,
650
650
  u("div", rt, [
651
- e.evento.realizado ? (a(), i("div", ct, c(e.evento.realizado.toLocaleDateString()), 1)) : b("", !0),
651
+ e.evento.realizado ? (a(), i("div", ct, c(e.evento.realizado.toLocaleDateString()), 1)) : C("", !0),
652
652
  e.evento.realizado ? (a(), i("div", lt, c(e.evento.realizado.toLocaleDateString()), 1)) : (a(), i("div", dt, c(e.evento.previstoPara.toLocaleDateString()), 1))
653
653
  ])
654
654
  ]),
655
655
  u("div", ut, [
656
656
  _t,
657
657
  u("div", pt, [
658
- e.evento.realizado ? (a(), C(y, {
658
+ e.evento.realizado ? (a(), b(y, {
659
659
  key: 0,
660
660
  class: "horaRealizada texto-grande",
661
661
  hora: e.evento.realizado
662
- }, null, 8, ["hora"])) : b("", !0),
663
- e.evento.realizado ? (a(), C(y, {
662
+ }, null, 8, ["hora"])) : C("", !0),
663
+ e.evento.realizado ? (a(), b(y, {
664
664
  key: 1,
665
665
  class: "horaPlanejada texto-pequeno",
666
666
  hora: e.evento.previstoPara
667
- }, null, 8, ["hora"])) : (a(), C(y, {
667
+ }, null, 8, ["hora"])) : (a(), b(y, {
668
668
  key: 2,
669
669
  class: "horaRealizada texto-grande",
670
670
  hora: e.evento.previstoPara
@@ -674,7 +674,7 @@ function mt(e, t, s, o, n, d) {
674
674
  ])
675
675
  ], 2);
676
676
  }
677
- const vt = /* @__PURE__ */ m(tt, [["render", mt], ["__scopeId", "data-v-aa43d357"]]), ft = p({
677
+ const vt = /* @__PURE__ */ v(tt, [["render", mt], ["__scopeId", "data-v-aa43d357"]]), ft = m({
678
678
  components: { Botao: O },
679
679
  name: "Observacoes",
680
680
  props: {
@@ -696,7 +696,10 @@ const vt = /* @__PURE__ */ m(tt, [["render", mt], ["__scopeId", "data-v-aa43d357
696
696
  return e.observacoes.sort((o, n) => n.criadaEm.getTime() - o.criadaEm.getTime()), e = S(e), { emitirAdicionarClick: s };
697
697
  }
698
698
  });
699
- const $t = (e) => (M("data-v-2fd919a9"), e = e(), w(), e), ht = { class: "box box-observacoes" }, gt = /* @__PURE__ */ $t(() => /* @__PURE__ */ u("h3", null, "Observações:", -1)), yt = { class: "lista-obs" }, Ct = ["data-testid"], bt = { class: "texto" }, kt = { class: "autor" };
699
+ const $t = (e) => (M("data-v-27347f9c"), e = e(), w(), e), ht = {
700
+ class: "box box-observacoes",
701
+ "data-testid": "observacoes"
702
+ }, gt = /* @__PURE__ */ $t(() => /* @__PURE__ */ u("h3", null, "Observações:", -1)), yt = { class: "lista-obs" }, bt = ["data-testid"], Ct = { class: "texto" }, kt = { class: "autor" };
700
703
  function St(e, t, s, o, n, d) {
701
704
  const r = l("Botao");
702
705
  return a(), i("section", ht, [
@@ -707,9 +710,9 @@ function St(e, t, s, o, n, d) {
707
710
  key: y,
708
711
  class: "lista-item"
709
712
  }, [
710
- u("p", bt, c(f.mensagem), 1),
713
+ u("p", Ct, c(f.mensagem), 1),
711
714
  u("div", kt, c(f.autor.nome) + " em " + c(f.criadaEm.toLocaleDateString()) + " às " + c(f.criadaEm.getHours()) + ":" + c(f.criadaEm.getMinutes().toString().padStart(2, "0")), 1)
712
- ], 8, Ct))), 128))
715
+ ], 8, bt))), 128))
713
716
  ]),
714
717
  _(r, {
715
718
  titulo: e.tituloBotao,
@@ -721,7 +724,7 @@ function St(e, t, s, o, n, d) {
721
724
  }, null, 8, ["titulo", "onClick"])
722
725
  ]);
723
726
  }
724
- const Et = /* @__PURE__ */ m(ft, [["render", St], ["__scopeId", "data-v-2fd919a9"]]), Tt = p({
727
+ const Et = /* @__PURE__ */ v(ft, [["render", St], ["__scopeId", "data-v-27347f9c"]]), Tt = m({
725
728
  components: { Botao: O, IconeStatus: J },
726
729
  name: "BotaoStatus",
727
730
  props: {
@@ -751,10 +754,11 @@ const Et = /* @__PURE__ */ m(ft, [["render", St], ["__scopeId", "data-v-2fd919a9
751
754
  });
752
755
  function Pt(e, t, s, o, n, d) {
753
756
  const r = l("IconeStatus"), f = l("Botao");
754
- return a(), C(f, {
757
+ return a(), b(f, {
755
758
  aparencia: e.aparencia,
756
759
  class: q(e.classes),
757
- onClick: e.emitirClick
760
+ onClick: e.emitirClick,
761
+ "data-testid": "botao-status"
758
762
  }, {
759
763
  default: D(() => [
760
764
  _(r, {
@@ -766,7 +770,7 @@ function Pt(e, t, s, o, n, d) {
766
770
  _: 1
767
771
  }, 8, ["aparencia", "class", "onClick"]);
768
772
  }
769
- const Dt = /* @__PURE__ */ m(Tt, [["render", Pt], ["__scopeId", "data-v-3eb00cbd"]]), qt = p({
773
+ const Dt = /* @__PURE__ */ v(Tt, [["render", Pt], ["__scopeId", "data-v-9b0bacc7"]]), qt = m({
770
774
  components: { BotaoStatus: Dt },
771
775
  name: "StatusEvento",
772
776
  props: {
@@ -779,31 +783,32 @@ const Dt = /* @__PURE__ */ m(Tt, [["render", Pt], ["__scopeId", "data-v-3eb00cbd
779
783
  }
780
784
  },
781
785
  emits: {
782
- editarClick: (e) => !0
786
+ click: (e) => !0
783
787
  },
784
788
  setup(e, { emit: t }) {
785
789
  const s = (o) => {
786
- t("editarClick", o);
790
+ t("click", o);
787
791
  };
788
792
  return e = S(e), {
789
- handleEditarClick: s
793
+ emitClick: s,
794
+ props: e
790
795
  };
791
796
  }
792
797
  });
793
- const It = (e) => (M("data-v-c7bc7440"), e = e(), w(), e), zt = { class: "box box-status" }, At = /* @__PURE__ */ It(() => /* @__PURE__ */ u("h3", null, "Status:", -1));
798
+ const It = (e) => (M("data-v-027bde63"), e = e(), w(), e), zt = { class: "box box-status" }, At = /* @__PURE__ */ It(() => /* @__PURE__ */ u("h3", null, "Status:", -1));
794
799
  function Bt(e, t, s, o, n, d) {
795
800
  const r = l("BotaoStatus");
796
801
  return a(), i("section", zt, [
797
802
  At,
798
803
  _(r, {
804
+ "data-testid": "botao-status",
799
805
  aparencia: e.aparencia,
800
806
  status: e.status,
801
- "data-testid": "status-evento",
802
- onClick: e.handleEditarClick
807
+ onClick: e.emitClick
803
808
  }, null, 8, ["aparencia", "status", "onClick"])
804
809
  ]);
805
810
  }
806
- const Ot = /* @__PURE__ */ m(qt, [["render", Bt], ["__scopeId", "data-v-c7bc7440"]]), jt = p({
811
+ const Ot = /* @__PURE__ */ v(qt, [["render", Bt], ["__scopeId", "data-v-027bde63"]]), jt = m({
807
812
  name: "EventoDetalhado",
808
813
  props: {
809
814
  perfil: {
@@ -886,16 +891,17 @@ function Mt(e, t, s, o, n, d) {
886
891
  }, {
887
892
  default: D(() => [
888
893
  _(y, {
894
+ "data-testid": "status-evento",
889
895
  aparencia: "preenchido",
890
896
  status: e.evento.status,
891
- onEditarClick: e.handleEditarClick
892
- }, null, 8, ["status", "onEditarClick"])
897
+ onClick: e.handleEditarClick
898
+ }, null, 8, ["status", "onClick"])
893
899
  ]),
894
900
  _: 1
895
901
  })
896
902
  ]);
897
903
  }
898
- const wt = /* @__PURE__ */ m(jt, [["render", Mt]]), Nt = p({
904
+ const wt = /* @__PURE__ */ v(jt, [["render", Mt]]), Nt = m({
899
905
  name: "AreaSalvamento",
900
906
  components: { Botao: O },
901
907
  emits: {
@@ -937,7 +943,7 @@ function Ft(e, t, s, o, n, d) {
937
943
  }, null, 8, ["onClick"])
938
944
  ]);
939
945
  }
940
- const Lt = /* @__PURE__ */ m(Nt, [["render", Ft], ["__scopeId", "data-v-a1900faf"]]), Jt = p({
946
+ const Lt = /* @__PURE__ */ v(Nt, [["render", Ft], ["__scopeId", "data-v-bffa6dc0"]]), Jt = m({
941
947
  props: {
942
948
  salvarVisivel: {
943
949
  type: Boolean
@@ -956,10 +962,6 @@ const Lt = /* @__PURE__ */ m(Nt, [["render", Ft], ["__scopeId", "data-v-a1900faf
956
962
  emitirCancelarClick: (n) => {
957
963
  t("cancelarClick", n);
958
964
  }
959
- // classes: computed(() => ({
960
- // visivel: props.salvarVisivel,
961
- // invisivel: !props.salvarVisivel,
962
- // })),
963
965
  };
964
966
  }
965
967
  });
@@ -990,21 +992,22 @@ function Qt(e, t, s, o, n, d) {
990
992
  default: D(() => [
991
993
  u("div", Kt, [
992
994
  _(r, {
993
- onSalvarClick: e.emitirSalvarClick,
994
- onCancelarClick: e.emitirCancelarClick
995
+ "data-testid": "area-salvamento",
996
+ onCancelarClick: e.emitirCancelarClick,
997
+ onSalvarClick: e.emitirSalvarClick
995
998
  }, {
996
999
  default: D(() => [
997
1000
  B(e.$slots, "salvamento")
998
1001
  ]),
999
1002
  _: 3
1000
- }, 8, ["onSalvarClick", "onCancelarClick"])
1003
+ }, 8, ["onCancelarClick", "onSalvarClick"])
1001
1004
  ])
1002
1005
  ]),
1003
1006
  _: 3
1004
1007
  })
1005
1008
  ]);
1006
1009
  }
1007
- const Ut = /* @__PURE__ */ m(Jt, [["render", Qt]]), Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1010
+ const Ut = /* @__PURE__ */ v(Jt, [["render", Qt]]), Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1008
1011
  __proto__: null
1009
1012
  }, Symbol.toStringTag, { value: "Module" })), Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1010
1013
  __proto__: null