@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.
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +89 -86
- package/dist/types/components/timeline/Templates/AdiantarHorario.vue.d.ts +133 -5
- package/dist/types/components/timeline/Templates/AdicionarObservacao.test.d.ts +1 -0
- package/dist/types/components/timeline/Templates/AdicionarObservacao.vue.d.ts +1 -1
- package/dist/types/components/timeline/Templates/TemplateTimeline.vue.d.ts +20 -17
- package/dist/types/components/timeline/moleculas/EventoTimeline.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/StatusEvento.vue.d.ts +8 -3
- package/dist/types/components/timeline/moleculas/Topo.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/Topo.vue.d.ts +3 -3
- package/dist/types/components/timeline/organismos/MyComponent.vue.d.ts +4 -4
- package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +3 -3
- package/package.json +3 -3
package/dist/timeline-vue.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const X =
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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(),
|
|
125
|
+
e.subtitulo ? (a(), b(f, {
|
|
126
126
|
key: 0,
|
|
127
127
|
subtitulo: e.subtitulo
|
|
128
|
-
}, null, 8, ["subtitulo"])) :
|
|
128
|
+
}, null, 8, ["subtitulo"])) : C("", !0)
|
|
129
129
|
], 4);
|
|
130
130
|
}
|
|
131
|
-
const me = /* @__PURE__ */
|
|
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__ */
|
|
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(),
|
|
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"])) :
|
|
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
|
|
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__ */
|
|
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:
|
|
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] = (...
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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(),
|
|
404
|
+
e.imagemPerfil ? (a(), b(r, {
|
|
405
405
|
key: 0,
|
|
406
406
|
imagem: e.imagemPerfil
|
|
407
|
-
}, null, 8, ["imagem"])) : e.iconePerfil ? (a(),
|
|
407
|
+
}, null, 8, ["imagem"])) : e.iconePerfil ? (a(), b(r, {
|
|
408
408
|
key: 1,
|
|
409
409
|
icone: e.iconePerfil
|
|
410
|
-
}, null, 8, ["icone"])) :
|
|
410
|
+
}, null, 8, ["icone"])) : C("", !0),
|
|
411
411
|
u("h2", Ye, c(e.nomePerfil), 1)
|
|
412
412
|
], 2);
|
|
413
413
|
}
|
|
414
|
-
const K = /* @__PURE__ */
|
|
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 = (
|
|
435
|
-
t("eventoClick",
|
|
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
|
|
439
|
+
const p = y(o);
|
|
440
440
|
o.forEach((h) => {
|
|
441
|
-
const g =
|
|
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 = (
|
|
448
|
-
const g =
|
|
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 = (
|
|
451
|
-
if (
|
|
450
|
+
}, y = (p) => {
|
|
451
|
+
if (p) {
|
|
452
452
|
const h = Date.now();
|
|
453
453
|
let g = null, T = [];
|
|
454
|
-
for (const k of
|
|
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
|
|
471
|
-
if (
|
|
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
|
|
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
|
|
492
|
-
!
|
|
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
|
-
|
|
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(),
|
|
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"])) :
|
|
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(),
|
|
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"])) :
|
|
527
|
-
$.tipo === "evento" ? (a(),
|
|
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: (
|
|
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"])) :
|
|
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__ */
|
|
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)) :
|
|
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__ */
|
|
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(),
|
|
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"])) :
|
|
639
|
-
e.evento.criticidade !== "baixa" ? (a(), i("div", at, " Criticidade: " + c(e.evento.criticidade), 1)) :
|
|
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)) :
|
|
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(),
|
|
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"])) :
|
|
663
|
-
e.evento.realizado ? (a(),
|
|
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(),
|
|
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__ */
|
|
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-
|
|
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",
|
|
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,
|
|
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__ */
|
|
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(),
|
|
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__ */
|
|
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
|
-
|
|
786
|
+
click: (e) => !0
|
|
783
787
|
},
|
|
784
788
|
setup(e, { emit: t }) {
|
|
785
789
|
const s = (o) => {
|
|
786
|
-
t("
|
|
790
|
+
t("click", o);
|
|
787
791
|
};
|
|
788
792
|
return e = S(e), {
|
|
789
|
-
|
|
793
|
+
emitClick: s,
|
|
794
|
+
props: e
|
|
790
795
|
};
|
|
791
796
|
}
|
|
792
797
|
});
|
|
793
|
-
const It = (e) => (M("data-v-
|
|
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
|
-
|
|
802
|
-
onClick: e.handleEditarClick
|
|
807
|
+
onClick: e.emitClick
|
|
803
808
|
}, null, 8, ["aparencia", "status", "onClick"])
|
|
804
809
|
]);
|
|
805
810
|
}
|
|
806
|
-
const Ot = /* @__PURE__ */
|
|
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
|
-
|
|
892
|
-
}, null, 8, ["status", "
|
|
897
|
+
onClick: e.handleEditarClick
|
|
898
|
+
}, null, 8, ["status", "onClick"])
|
|
893
899
|
]),
|
|
894
900
|
_: 1
|
|
895
901
|
})
|
|
896
902
|
]);
|
|
897
903
|
}
|
|
898
|
-
const wt = /* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
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, ["
|
|
1003
|
+
}, 8, ["onCancelarClick", "onSalvarClick"])
|
|
1001
1004
|
])
|
|
1002
1005
|
]),
|
|
1003
1006
|
_: 3
|
|
1004
1007
|
})
|
|
1005
1008
|
]);
|
|
1006
1009
|
}
|
|
1007
|
-
const Ut = /* @__PURE__ */
|
|
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
|