@devix-tecnologia/timeline-vue 2.1.1 → 3.1.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.
- package/dist/components/timeline/EventoDetalhado.mock.d.ts +5 -0
- package/dist/components/timeline/atomos/AvatarTimeline.vue.d.ts +17 -0
- package/dist/components/timeline/atomos/BoxData.vue.d.ts +22 -0
- package/dist/components/timeline/atomos/Destaque.vue.d.ts +10 -0
- package/dist/components/timeline/atomos/Hora.vue.d.ts +29 -0
- package/dist/components/timeline/atomos/IconeCategoria.vue.d.ts +57 -0
- package/dist/components/timeline/atomos/IconeStatus.vue.d.ts +19 -0
- package/dist/components/timeline/atomos/SubtituloEvento.vue.d.ts +12 -0
- package/dist/components/timeline/atomos/TituloEvento.vue.d.ts +12 -0
- package/dist/components/timeline/index.d.ts +9 -0
- package/dist/components/timeline/moleculas/AreaSalvamento.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/AreaSalvamento.vue.d.ts +12 -0
- package/dist/components/timeline/moleculas/Botao.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/Botao.vue.d.ts +61 -0
- package/dist/components/timeline/moleculas/BotaoStatus.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/BotaoStatus.vue.d.ts +33 -0
- package/dist/components/timeline/moleculas/CabecalhoEventoDetalhado.vue.d.ts +24 -0
- package/dist/components/timeline/moleculas/DescricaoEvento.vue.d.ts +20 -0
- package/dist/components/timeline/moleculas/EventoTimeline.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/EventoTimeline.vue.d.ts +104 -0
- package/dist/components/timeline/moleculas/HoraEvento.vue.d.ts +22 -0
- package/dist/components/timeline/moleculas/Observacoes.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/Observacoes.vue.d.ts +27 -0
- package/dist/components/timeline/moleculas/PerfilTimeline.vue.d.ts +38 -0
- package/dist/components/timeline/moleculas/SeparadorPeriodo.vue.d.ts +14 -0
- package/dist/components/timeline/moleculas/StatusEvento.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/StatusEvento.vue.d.ts +33 -0
- package/dist/components/timeline/moleculas/Topo.test.d.ts +1 -0
- package/dist/components/timeline/moleculas/Topo.vue.d.ts +33 -0
- package/dist/components/timeline/organismos/EditarEvento.test.d.ts +1 -0
- package/dist/components/timeline/organismos/EditarEvento.vue.d.ts +22 -0
- package/dist/components/timeline/organismos/EventoDetalhado.test.d.ts +1 -0
- package/dist/components/timeline/organismos/EventoDetalhado.vue.d.ts +33 -0
- package/dist/components/timeline/organismos/MyComponent.test.d.ts +1 -0
- package/dist/components/timeline/organismos/Timeline.mock.d.ts +4 -0
- package/dist/components/timeline/organismos/Timeline.test.d.ts +1 -0
- package/dist/components/timeline/organismos/Timeline.vue.d.ts +44 -0
- package/dist/components/timeline/templates/AdiantarHorario.test.d.ts +1 -0
- package/dist/components/timeline/templates/AdicionarObservacao.test.d.ts +1 -0
- package/dist/components/timeline/templates/AdicionarObservacao.vue.d.ts +31 -0
- package/dist/components/timeline/templates/EditarStatus.test.d.ts +1 -0
- package/dist/components/timeline/templates/EditarStatus.vue.d.ts +36 -0
- package/dist/components/timeline/templates/TemplateTimeline.mock.d.ts +5 -0
- package/dist/components/timeline/templates/TemplateTimeline.test.d.ts +1 -0
- package/dist/components/timeline/templates/TemplateTimeline.vue.d.ts +100 -0
- package/dist/components/timeline/type.d.ts +27 -0
- package/dist/components/timeline/typeDetalhado.d.ts +16 -0
- package/dist/index.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/timeline-vue.cjs.js +1 -0
- package/dist/timeline-vue.es.js +355 -367
- package/dist/timeline-vue.umd.js +1 -0
- package/dist/types/components/timeline/atomos/AvatarTimeline.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/BoxData.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/Destaque.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/Hora.vue.d.ts +2 -64
- package/dist/types/components/timeline/atomos/IconeCategoria.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/IconeStatus.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/SubtituloEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/TituloEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/AreaSalvamento.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/Botao.vue.d.ts +16 -6
- package/dist/types/components/timeline/moleculas/BotaoStatus.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/CabecalhoEventoDetalhado.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/DescricaoEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/EventoTimeline.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/HoraEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/Observacoes.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/PerfilTimeline.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/SeparadorPeriodo.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/StatusEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/Topo.vue.d.ts +1 -1
- package/dist/types/components/timeline/organismos/EditarEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/organismos/EventoDetalhado.vue.d.ts +1 -1
- package/dist/types/components/timeline/organismos/MyComponent.vue.d.ts +1 -1
- package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +1 -1
- package/dist/types/components/timeline/templates/AdiantarHorario.vue.d.ts +3 -127
- package/dist/types/components/timeline/templates/AdicionarObservacao.vue.d.ts +2 -2
- package/dist/types/components/timeline/templates/EditarStatus.vue.d.ts +1 -1
- package/dist/types/components/timeline/templates/TemplateEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/templates/TemplateTimeline.vue.d.ts +5 -253
- package/dist/types/index.d.ts +1 -1
- package/package.json +27 -30
package/dist/timeline-vue.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const ne =
|
|
1
|
+
import { defineComponent as f, reactive as T, computed as A, openBlock as r, createElementBlock as c, createElementVNode as u, normalizeClass as P, normalizeStyle as H, toDisplayString as m, resolveComponent as p, createVNode as v, createBlock as b, createCommentVNode as S, ref as M, Fragment as J, renderList as Y, pushScopeId as V, popScopeId as j, renderSlot as z, createTextVNode as L, withCtx as y, Transition as q, withDirectives as te, vModelText as oe, toRef as B } from "vue";
|
|
2
|
+
const ne = f({
|
|
3
3
|
name: "Icone Categoria",
|
|
4
4
|
props: {
|
|
5
5
|
iconeCategoria: {
|
|
@@ -36,25 +36,24 @@ const ne = m({
|
|
|
36
36
|
}))
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
})
|
|
40
|
-
const f = (e, a) => {
|
|
39
|
+
}), _ = (e, a) => {
|
|
41
40
|
const o = e.__vccOpts || e;
|
|
42
|
-
for (const [
|
|
43
|
-
o[
|
|
41
|
+
for (const [n, t] of a)
|
|
42
|
+
o[n] = t;
|
|
44
43
|
return o;
|
|
45
|
-
}, ie = { class: "areaCategoria" },
|
|
46
|
-
function le(e, a, o,
|
|
47
|
-
return
|
|
44
|
+
}, ie = { class: "areaCategoria" }, re = ["alt"], se = { class: "material-symbols-outlined" };
|
|
45
|
+
function le(e, a, o, n, t, s) {
|
|
46
|
+
return r(), c("div", ie, [
|
|
48
47
|
u("div", {
|
|
49
48
|
class: P(["iconeCategoria", e.classes]),
|
|
50
|
-
style:
|
|
49
|
+
style: H(e.style),
|
|
51
50
|
alt: e.categoria
|
|
52
51
|
}, [
|
|
53
|
-
u("span",
|
|
54
|
-
], 14,
|
|
52
|
+
u("span", se, m(e.iconeCategoria), 1)
|
|
53
|
+
], 14, re)
|
|
55
54
|
]);
|
|
56
55
|
}
|
|
57
|
-
const G = /* @__PURE__ */
|
|
56
|
+
const G = /* @__PURE__ */ _(ne, [["render", le], ["__scopeId", "data-v-f922d1fe"]]), ce = f({
|
|
58
57
|
name: "Icone Status",
|
|
59
58
|
props: {
|
|
60
59
|
status: {
|
|
@@ -70,12 +69,12 @@ const G = /* @__PURE__ */ f(ne, [["render", le], ["__scopeId", "data-v-f922d1fe"
|
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
});
|
|
73
|
-
function de(e, a, o,
|
|
74
|
-
return
|
|
72
|
+
function de(e, a, o, n, t, s) {
|
|
73
|
+
return r(), c("div", {
|
|
75
74
|
class: P([e.classes, "iconeStatus"])
|
|
76
75
|
}, null, 2);
|
|
77
76
|
}
|
|
78
|
-
const
|
|
77
|
+
const w = /* @__PURE__ */ _(ce, [["render", de], ["__scopeId", "data-v-efe84975"]]), ue = f({
|
|
79
78
|
name: "Subtítulo Evento",
|
|
80
79
|
props: {
|
|
81
80
|
subtitulo: {
|
|
@@ -83,12 +82,11 @@ const N = /* @__PURE__ */ f(ce, [["render", de], ["__scopeId", "data-v-efe84975"
|
|
|
83
82
|
type: String
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return i(), c("h4", pe, _(e.subtitulo), 1);
|
|
85
|
+
}), pe = { class: "subtitulo" };
|
|
86
|
+
function ve(e, a, o, n, t, s) {
|
|
87
|
+
return r(), c("h4", pe, m(e.subtitulo), 1);
|
|
90
88
|
}
|
|
91
|
-
const
|
|
89
|
+
const me = /* @__PURE__ */ _(ue, [["render", ve], ["__scopeId", "data-v-5f7c5673"]]), fe = f({
|
|
92
90
|
name: "Título Evento",
|
|
93
91
|
props: {
|
|
94
92
|
titulo: {
|
|
@@ -96,12 +94,11 @@ const _e = /* @__PURE__ */ f(ue, [["render", ve], ["__scopeId", "data-v-5f7c5673
|
|
|
96
94
|
type: String
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return i(), c("h3", fe, _(e.titulo), 1);
|
|
97
|
+
}), _e = { class: "titulo" };
|
|
98
|
+
function $e(e, a, o, n, t, s) {
|
|
99
|
+
return r(), c("h3", _e, m(e.titulo), 1);
|
|
103
100
|
}
|
|
104
|
-
const he = /* @__PURE__ */
|
|
101
|
+
const he = /* @__PURE__ */ _(fe, [["render", $e], ["__scopeId", "data-v-7369e837"]]), Ce = f({
|
|
105
102
|
name: "Descrição Evento",
|
|
106
103
|
props: {
|
|
107
104
|
titulo: {
|
|
@@ -113,22 +110,22 @@ const he = /* @__PURE__ */ f(me, [["render", $e], ["__scopeId", "data-v-7369e837
|
|
|
113
110
|
type: String
|
|
114
111
|
}
|
|
115
112
|
},
|
|
116
|
-
components: { TituloEvento: he, SubtituloEvento:
|
|
113
|
+
components: { TituloEvento: he, SubtituloEvento: me }
|
|
117
114
|
});
|
|
118
|
-
function ke(e, a, o,
|
|
119
|
-
const
|
|
120
|
-
return
|
|
115
|
+
function ke(e, a, o, n, t, s) {
|
|
116
|
+
const i = p("TituloEvento"), l = p("SubtituloEvento");
|
|
117
|
+
return r(), c("div", {
|
|
121
118
|
class: "descricaoEvento",
|
|
122
|
-
style:
|
|
119
|
+
style: H(`${e.subtitulo ? "" : "padding-top: 3.3rem"}`)
|
|
123
120
|
}, [
|
|
124
|
-
v(
|
|
125
|
-
e.subtitulo ? (
|
|
121
|
+
v(i, { titulo: e.titulo }, null, 8, ["titulo"]),
|
|
122
|
+
e.subtitulo ? (r(), b(l, {
|
|
126
123
|
key: 0,
|
|
127
124
|
subtitulo: e.subtitulo
|
|
128
|
-
}, null, 8, ["subtitulo"])) :
|
|
125
|
+
}, null, 8, ["subtitulo"])) : S("", !0)
|
|
129
126
|
], 4);
|
|
130
127
|
}
|
|
131
|
-
const be = /* @__PURE__ */
|
|
128
|
+
const be = /* @__PURE__ */ _(Ce, [["render", ke], ["__scopeId", "data-v-793cab8b"]]), Se = f({
|
|
132
129
|
name: "Hora",
|
|
133
130
|
props: {
|
|
134
131
|
hora: {
|
|
@@ -153,12 +150,12 @@ const be = /* @__PURE__ */ f(Ce, [["render", ke], ["__scopeId", "data-v-793cab8b
|
|
|
153
150
|
};
|
|
154
151
|
}
|
|
155
152
|
});
|
|
156
|
-
function ge(e, a, o,
|
|
157
|
-
return
|
|
153
|
+
function ge(e, a, o, n, t, s) {
|
|
154
|
+
return r(), c("div", {
|
|
158
155
|
class: P(["hora", e.classes])
|
|
159
|
-
},
|
|
156
|
+
}, m(e.horas.getHours()) + ":" + m(e.horas.getMinutes().toString().padStart(2, "0")), 3);
|
|
160
157
|
}
|
|
161
|
-
const
|
|
158
|
+
const Q = /* @__PURE__ */ _(Se, [["render", ge], ["__scopeId", "data-v-d3082250"]]), Ee = f({
|
|
162
159
|
name: "Hora Evento",
|
|
163
160
|
props: {
|
|
164
161
|
horaPrevista: {
|
|
@@ -170,39 +167,37 @@ const K = /* @__PURE__ */ f(ye, [["render", ge], ["__scopeId", "data-v-d3082250"
|
|
|
170
167
|
type: Date
|
|
171
168
|
}
|
|
172
169
|
},
|
|
173
|
-
components: { Hora:
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
return i(), c("div", Ee, [
|
|
170
|
+
components: { Hora: Q }
|
|
171
|
+
}), ye = { class: "areaHora" }, Te = { class: "horaEvento" };
|
|
172
|
+
function Ae(e, a, o, n, t, s) {
|
|
173
|
+
const i = p("Hora");
|
|
174
|
+
return r(), c("div", ye, [
|
|
179
175
|
u("div", Te, [
|
|
180
|
-
e.horaRealizada ? (
|
|
176
|
+
e.horaRealizada ? (r(), b(i, {
|
|
181
177
|
key: 0,
|
|
182
178
|
hora: e.horaRealizada,
|
|
183
179
|
style: { "padding-top": "0.3rem" }
|
|
184
|
-
}, null, 8, ["hora"])) :
|
|
185
|
-
v(
|
|
180
|
+
}, null, 8, ["hora"])) : S("", !0),
|
|
181
|
+
v(i, {
|
|
186
182
|
hora: e.horaPrevista,
|
|
187
183
|
aparencia: e.horaRealizada ? "riscada" : "padrao",
|
|
188
|
-
style:
|
|
184
|
+
style: H(e.horaRealizada ? "" : "padding-top: 1.2rem")
|
|
189
185
|
}, null, 8, ["hora", "aparencia", "style"])
|
|
190
186
|
])
|
|
191
187
|
]);
|
|
192
188
|
}
|
|
193
|
-
const
|
|
189
|
+
const Oe = /* @__PURE__ */ _(Ee, [["render", Ae], ["__scopeId", "data-v-da519ace"]]), De = f({
|
|
194
190
|
name: "Destaque",
|
|
195
191
|
props: {
|
|
196
192
|
texto: {
|
|
197
193
|
type: String
|
|
198
194
|
}
|
|
199
195
|
}
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return i(), c("div", Pe, _(e.texto), 1);
|
|
196
|
+
}), Pe = { class: "destaqueEvento texto-pequeno" };
|
|
197
|
+
function qe(e, a, o, n, t, s) {
|
|
198
|
+
return r(), c("div", Pe, m(e.texto), 1);
|
|
204
199
|
}
|
|
205
|
-
const
|
|
200
|
+
const Ie = /* @__PURE__ */ _(De, [["render", qe], ["__scopeId", "data-v-c2f02de8"]]), ze = f({
|
|
206
201
|
name: "Evento Timeline",
|
|
207
202
|
props: {
|
|
208
203
|
status: {
|
|
@@ -249,19 +244,19 @@ const ze = /* @__PURE__ */ f(Oe, [["render", qe], ["__scopeId", "data-v-c2f02de8
|
|
|
249
244
|
}
|
|
250
245
|
},
|
|
251
246
|
components: {
|
|
252
|
-
IconeStatus:
|
|
247
|
+
IconeStatus: w,
|
|
253
248
|
IconeCategoria: G,
|
|
254
|
-
HoraEvento:
|
|
249
|
+
HoraEvento: Oe,
|
|
255
250
|
DescricaoEvento: be,
|
|
256
|
-
Destaque:
|
|
251
|
+
Destaque: Ie
|
|
257
252
|
},
|
|
258
253
|
emits: {
|
|
259
254
|
click: (e) => !0
|
|
260
255
|
},
|
|
261
256
|
setup(e, { emit: a }) {
|
|
262
257
|
return {
|
|
263
|
-
handleClick: (
|
|
264
|
-
e.clicavel && a("click",
|
|
258
|
+
handleClick: (n) => {
|
|
259
|
+
e.clicavel && a("click", n);
|
|
265
260
|
},
|
|
266
261
|
eventoSelecionado: A(() => ({
|
|
267
262
|
atual: e.ehAtual,
|
|
@@ -270,14 +265,14 @@ const ze = /* @__PURE__ */ f(Oe, [["render", qe], ["__scopeId", "data-v-c2f02de8
|
|
|
270
265
|
};
|
|
271
266
|
}
|
|
272
267
|
});
|
|
273
|
-
function Be(e, a, o,
|
|
274
|
-
const
|
|
275
|
-
return
|
|
268
|
+
function Be(e, a, o, n, t, s) {
|
|
269
|
+
const i = p("IconeStatus"), l = p("HoraEvento"), $ = p("IconeCategoria"), C = p("DescricaoEvento"), O = p("Destaque");
|
|
270
|
+
return r(), c("article", {
|
|
276
271
|
"data-testid": "evento",
|
|
277
272
|
class: P(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
|
|
278
273
|
onClick: a[0] || (a[0] = (...h) => e.handleClick && e.handleClick(...h))
|
|
279
274
|
}, [
|
|
280
|
-
v(
|
|
275
|
+
v(i, { status: e.status }, null, 8, ["status"]),
|
|
281
276
|
v(l, {
|
|
282
277
|
horaPrevista: e.previstoPara,
|
|
283
278
|
horaRealizada: e.realizadoEm
|
|
@@ -290,10 +285,10 @@ function Be(e, a, o, s, t, r) {
|
|
|
290
285
|
titulo: e.titulo,
|
|
291
286
|
subtitulo: e.subtitulo
|
|
292
287
|
}, null, 8, ["titulo", "subtitulo"]),
|
|
293
|
-
v(
|
|
288
|
+
v(O, { texto: e.textoDestaque }, null, 8, ["texto"])
|
|
294
289
|
], 2);
|
|
295
290
|
}
|
|
296
|
-
const
|
|
291
|
+
const Z = /* @__PURE__ */ _(ze, [["render", Be]]), Ve = f({
|
|
297
292
|
name: "Box Data",
|
|
298
293
|
props: {
|
|
299
294
|
dataNumero: {
|
|
@@ -312,12 +307,12 @@ const Q = /* @__PURE__ */ f(Ie, [["render", Be]]), Ve = m({
|
|
|
312
307
|
};
|
|
313
308
|
}
|
|
314
309
|
});
|
|
315
|
-
function je(e, a, o,
|
|
316
|
-
return
|
|
310
|
+
function je(e, a, o, n, t, s) {
|
|
311
|
+
return r(), c("h3", {
|
|
317
312
|
class: P(["boxData padrao", e.classes])
|
|
318
|
-
},
|
|
313
|
+
}, m(e.dataNumero), 3);
|
|
319
314
|
}
|
|
320
|
-
const
|
|
315
|
+
const Re = /* @__PURE__ */ _(Ve, [["render", je], ["__scopeId", "data-v-385cc692"]]), Ne = f({
|
|
321
316
|
name: "SeparadorPeriodo",
|
|
322
317
|
props: {
|
|
323
318
|
dataSeparador: {
|
|
@@ -325,25 +320,24 @@ const He = /* @__PURE__ */ f(Ve, [["render", je], ["__scopeId", "data-v-385cc692
|
|
|
325
320
|
type: Date
|
|
326
321
|
}
|
|
327
322
|
},
|
|
328
|
-
components: { BoxData:
|
|
323
|
+
components: { BoxData: Re },
|
|
329
324
|
setup(e) {
|
|
330
325
|
const a = new Array(12);
|
|
331
|
-
return a[0] = "Janeiro", a[1] = "Fevereiro", a[2] = "Março", a[3] = "Abril", a[4] = "Maio", a[5] = "Junho", a[6] = "Julho", a[7] = "Agosto", a[8] = "Setembro", a[9] = "Outubro", a[10] = "Novembro", a[11] = "Dezembro", { mesCorrente: (
|
|
326
|
+
return a[0] = "Janeiro", a[1] = "Fevereiro", a[2] = "Março", a[3] = "Abril", a[4] = "Maio", a[5] = "Junho", a[6] = "Julho", a[7] = "Agosto", a[8] = "Setembro", a[9] = "Outubro", a[10] = "Novembro", a[11] = "Dezembro", { mesCorrente: (n) => a[n] };
|
|
332
327
|
}
|
|
333
|
-
});
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
return i(), c("div", we, [
|
|
328
|
+
}), He = { class: "separadorPeriodo" }, Me = { class: "areaData" }, Le = { class: "titulo" };
|
|
329
|
+
function we(e, a, o, n, t, s) {
|
|
330
|
+
const i = p("BoxData");
|
|
331
|
+
return r(), c("div", He, [
|
|
338
332
|
u("div", Me, [
|
|
339
|
-
v(
|
|
333
|
+
v(i, {
|
|
340
334
|
dataNumero: e.dataSeparador.getDate()
|
|
341
335
|
}, null, 8, ["dataNumero"])
|
|
342
336
|
]),
|
|
343
|
-
u("h3", Le,
|
|
337
|
+
u("h3", Le, m(e.mesCorrente(e.dataSeparador.getMonth())) + " de " + m(e.dataSeparador.getFullYear()), 1)
|
|
344
338
|
]);
|
|
345
339
|
}
|
|
346
|
-
const Fe = /* @__PURE__ */
|
|
340
|
+
const Fe = /* @__PURE__ */ _(Ne, [["render", we]]), Ue = f({
|
|
347
341
|
name: "Avatar Timeline",
|
|
348
342
|
props: {
|
|
349
343
|
imagem: {
|
|
@@ -353,24 +347,23 @@ const Fe = /* @__PURE__ */ f(Re, [["render", Ne]]), Je = m({
|
|
|
353
347
|
type: String
|
|
354
348
|
}
|
|
355
349
|
}
|
|
356
|
-
})
|
|
357
|
-
const Ye = { class: "avatar" }, Ue = ["src"], Ge = {
|
|
350
|
+
}), Je = { class: "avatar" }, Ye = ["src"], Ge = {
|
|
358
351
|
key: 1,
|
|
359
352
|
class: "material-symbols-outlined"
|
|
360
|
-
},
|
|
353
|
+
}, Qe = {
|
|
361
354
|
key: 2,
|
|
362
355
|
class: "material-symbols-outlined"
|
|
363
356
|
};
|
|
364
|
-
function
|
|
365
|
-
return
|
|
366
|
-
e.imagem ? (
|
|
357
|
+
function Ze(e, a, o, n, t, s) {
|
|
358
|
+
return r(), c("div", Je, [
|
|
359
|
+
e.imagem ? (r(), c("img", {
|
|
367
360
|
key: 0,
|
|
368
361
|
src: e.imagem
|
|
369
|
-
}, null, 8,
|
|
362
|
+
}, null, 8, Ye)) : e.icone ? (r(), c("span", Ge, m(e.icone), 1)) : (r(), c("span", Qe, " person "))
|
|
370
363
|
]);
|
|
371
364
|
}
|
|
372
|
-
const
|
|
373
|
-
components: { AvatarTimeline:
|
|
365
|
+
const Ke = /* @__PURE__ */ _(Ue, [["render", Ze], ["__scopeId", "data-v-28501768"]]), We = f({
|
|
366
|
+
components: { AvatarTimeline: Ke },
|
|
374
367
|
props: {
|
|
375
368
|
imagemPerfil: {
|
|
376
369
|
type: String
|
|
@@ -394,24 +387,23 @@ const We = /* @__PURE__ */ f(Je, [["render", Qe], ["__scopeId", "data-v-28501768
|
|
|
394
387
|
}))
|
|
395
388
|
};
|
|
396
389
|
}
|
|
397
|
-
});
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
return i(), c("section", {
|
|
390
|
+
}), Xe = { class: "nome" };
|
|
391
|
+
function xe(e, a, o, n, t, s) {
|
|
392
|
+
const i = p("AvatarTimeline");
|
|
393
|
+
return r(), c("section", {
|
|
402
394
|
class: P(["perfilTimeline", e.classes])
|
|
403
395
|
}, [
|
|
404
|
-
e.imagemPerfil ? (
|
|
396
|
+
e.imagemPerfil ? (r(), b(i, {
|
|
405
397
|
key: 0,
|
|
406
398
|
imagem: e.imagemPerfil
|
|
407
|
-
}, null, 8, ["imagem"])) : e.iconePerfil ? (
|
|
399
|
+
}, null, 8, ["imagem"])) : e.iconePerfil ? (r(), b(i, {
|
|
408
400
|
key: 1,
|
|
409
401
|
icone: e.iconePerfil
|
|
410
|
-
}, null, 8, ["icone"])) :
|
|
411
|
-
u("h2",
|
|
402
|
+
}, null, 8, ["icone"])) : S("", !0),
|
|
403
|
+
u("h2", Xe, m(e.nomePerfil), 1)
|
|
412
404
|
], 2);
|
|
413
405
|
}
|
|
414
|
-
const
|
|
406
|
+
const K = /* @__PURE__ */ _(We, [["render", xe]]), ea = f({
|
|
415
407
|
props: {
|
|
416
408
|
perfilTimeline: {
|
|
417
409
|
required: !1,
|
|
@@ -423,9 +415,9 @@ const W = /* @__PURE__ */ f(Xe, [["render", xe]]), ea = m({
|
|
|
423
415
|
}
|
|
424
416
|
},
|
|
425
417
|
components: {
|
|
426
|
-
PerfilTimeline:
|
|
418
|
+
PerfilTimeline: K,
|
|
427
419
|
SeparadorPeriodo: Fe,
|
|
428
|
-
EventoTimeline:
|
|
420
|
+
EventoTimeline: Z
|
|
429
421
|
},
|
|
430
422
|
emits: {
|
|
431
423
|
eventoClick: (e, a) => !0
|
|
@@ -433,98 +425,97 @@ const W = /* @__PURE__ */ f(Xe, [["render", xe]]), ea = m({
|
|
|
433
425
|
setup(e, { emit: a }) {
|
|
434
426
|
const o = (h, k) => {
|
|
435
427
|
h.clicavel !== !1 && a("eventoClick", h, k);
|
|
436
|
-
},
|
|
437
|
-
let t = T(
|
|
438
|
-
function
|
|
439
|
-
const h = $(
|
|
440
|
-
|
|
428
|
+
}, n = T(e.eventosTimeline);
|
|
429
|
+
let t = T(n);
|
|
430
|
+
function s() {
|
|
431
|
+
const h = $(n);
|
|
432
|
+
n.forEach((k) => {
|
|
441
433
|
const g = h.length > 0 && h[0] === k;
|
|
442
434
|
k.atual = g, k.scroll = g;
|
|
443
|
-
}),
|
|
435
|
+
}), O();
|
|
444
436
|
}
|
|
445
|
-
const
|
|
446
|
-
setInterval(
|
|
437
|
+
const i = () => {
|
|
438
|
+
setInterval(s, 6e4);
|
|
447
439
|
}, l = (h, k) => {
|
|
448
|
-
const g = h.getDay() === k.getDay(),
|
|
449
|
-
return g &&
|
|
440
|
+
const g = h.getDay() === k.getDay(), D = h.getMonth() === k.getMonth(), d = h.getFullYear() === k.getFullYear();
|
|
441
|
+
return g && D && d;
|
|
450
442
|
}, $ = (h) => {
|
|
451
443
|
if (h) {
|
|
452
444
|
const k = Date.now();
|
|
453
|
-
let g = null,
|
|
445
|
+
let g = null, D = [];
|
|
454
446
|
for (const d of h) {
|
|
455
|
-
const
|
|
447
|
+
const E = d.data.getTime();
|
|
456
448
|
if (d.status === "planejado" || d.status === "atrasado") {
|
|
457
|
-
const
|
|
458
|
-
if (g === null ||
|
|
459
|
-
g =
|
|
460
|
-
else if (
|
|
449
|
+
const I = Math.abs(k - d.data.getTime());
|
|
450
|
+
if (g === null || I < g && E <= k)
|
|
451
|
+
g = I, D.length = 0;
|
|
452
|
+
else if (I > g)
|
|
461
453
|
continue;
|
|
462
|
-
|
|
454
|
+
D.push(d);
|
|
463
455
|
}
|
|
464
456
|
}
|
|
465
|
-
return
|
|
457
|
+
return D;
|
|
466
458
|
} else
|
|
467
459
|
return [];
|
|
468
460
|
}, C = A(() => {
|
|
469
|
-
|
|
461
|
+
i();
|
|
470
462
|
const h = t.sort((k, g) => k.data.getTime() - g.data.getTime());
|
|
471
463
|
if (h) {
|
|
472
|
-
let k = [], g = null,
|
|
473
|
-
for (const
|
|
474
|
-
const
|
|
475
|
-
d =
|
|
476
|
-
const ae =
|
|
477
|
-
d === "planejado" &&
|
|
464
|
+
let k = [], g = null, D = 0, d;
|
|
465
|
+
for (const E of h) {
|
|
466
|
+
const I = /* @__PURE__ */ new Date(), N = E.data;
|
|
467
|
+
d = E.status;
|
|
468
|
+
const ae = E.tolerancia * 60 * 1e3;
|
|
469
|
+
d === "planejado" && N.getTime() + ae < I.getTime() && (E.status = "atrasado"), (!g || !l(g, N)) && (g = N, k.push({
|
|
478
470
|
tipo: "dia",
|
|
479
|
-
valor:
|
|
480
|
-
key: ++
|
|
471
|
+
valor: E.data,
|
|
472
|
+
key: ++D
|
|
481
473
|
})), k.push({
|
|
482
474
|
tipo: "evento",
|
|
483
|
-
valor:
|
|
484
|
-
key: ++
|
|
475
|
+
valor: E,
|
|
476
|
+
key: ++D
|
|
485
477
|
});
|
|
486
478
|
}
|
|
487
479
|
return k;
|
|
488
480
|
} else
|
|
489
481
|
return [];
|
|
490
|
-
}),
|
|
482
|
+
}), O = () => {
|
|
491
483
|
const h = document.querySelector(".atual");
|
|
492
484
|
!h || !h.scrollIntoView || h.scrollIntoView({
|
|
493
485
|
behavior: "smooth",
|
|
494
486
|
block: "center"
|
|
495
487
|
});
|
|
496
488
|
};
|
|
497
|
-
return
|
|
489
|
+
return s(), {
|
|
498
490
|
eventosPorTipo: C,
|
|
499
|
-
scrollParaItemAtual:
|
|
491
|
+
scrollParaItemAtual: O,
|
|
500
492
|
handleEventoClick: o
|
|
501
493
|
};
|
|
502
494
|
},
|
|
503
495
|
mounted() {
|
|
504
496
|
this.scrollParaItemAtual();
|
|
505
497
|
}
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
e.perfilTimeline ? (i(), b(n, {
|
|
498
|
+
}), aa = { class: "areaTimeline" }, ta = { class: "timeline" };
|
|
499
|
+
function oa(e, a, o, n, t, s) {
|
|
500
|
+
const i = p("PerfilTimeline"), l = p("SeparadorPeriodo"), $ = p("EventoTimeline");
|
|
501
|
+
return r(), c("div", aa, [
|
|
502
|
+
e.perfilTimeline ? (r(), b(i, {
|
|
512
503
|
key: 0,
|
|
513
504
|
nomePerfil: e.perfilTimeline.nome,
|
|
514
505
|
imagemPerfil: e.perfilTimeline.imagem,
|
|
515
506
|
iconePerfil: e.perfilTimeline.icone,
|
|
516
507
|
"data-testid": "perfilTimeline"
|
|
517
|
-
}, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) :
|
|
508
|
+
}, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : S("", !0),
|
|
518
509
|
u("section", ta, [
|
|
519
|
-
(
|
|
510
|
+
(r(!0), c(J, null, Y(e.eventosPorTipo, (C, O) => (r(), c("div", {
|
|
520
511
|
key: C.key
|
|
521
512
|
}, [
|
|
522
|
-
C.tipo === "dia" ? (
|
|
513
|
+
C.tipo === "dia" ? (r(), b(l, {
|
|
523
514
|
key: 0,
|
|
524
515
|
dataSeparador: C.valor,
|
|
525
|
-
"data-testid": `evento-timeline-${
|
|
526
|
-
}, null, 8, ["dataSeparador", "data-testid"])) :
|
|
527
|
-
C.tipo === "evento" ? (
|
|
516
|
+
"data-testid": `evento-timeline-${O}`
|
|
517
|
+
}, null, 8, ["dataSeparador", "data-testid"])) : S("", !0),
|
|
518
|
+
C.tipo === "evento" ? (r(), b($, {
|
|
528
519
|
key: 1,
|
|
529
520
|
status: C.valor.status,
|
|
530
521
|
criticidade: C.valor.criticidade,
|
|
@@ -536,13 +527,13 @@ function oa(e, a, o, s, t, r) {
|
|
|
536
527
|
"texto-destaque": C.valor.destaque,
|
|
537
528
|
ehAtual: C.valor.atual,
|
|
538
529
|
onClick: (h) => e.handleEventoClick(C.valor, h),
|
|
539
|
-
"data-testid": `evento-timeline-${
|
|
540
|
-
}, null, 8, ["status", "criticidade", "previstoPara", "realizado-em", "categoria", "titulo", "subtitulo", "texto-destaque", "ehAtual", "onClick", "data-testid"])) :
|
|
530
|
+
"data-testid": `evento-timeline-${O}`
|
|
531
|
+
}, null, 8, ["status", "criticidade", "previstoPara", "realizado-em", "categoria", "titulo", "subtitulo", "texto-destaque", "ehAtual", "onClick", "data-testid"])) : S("", !0)
|
|
541
532
|
]))), 128))
|
|
542
533
|
])
|
|
543
534
|
]);
|
|
544
535
|
}
|
|
545
|
-
const
|
|
536
|
+
const W = /* @__PURE__ */ _(ea, [["render", oa]]), na = f({
|
|
546
537
|
name: "Topo",
|
|
547
538
|
props: {
|
|
548
539
|
titulo: {
|
|
@@ -558,8 +549,8 @@ const X = /* @__PURE__ */ f(ea, [["render", oa]]), na = m({
|
|
|
558
549
|
voltarClick: (e) => !0
|
|
559
550
|
},
|
|
560
551
|
setup(e, { emit: a }) {
|
|
561
|
-
const o = (
|
|
562
|
-
a("voltarClick",
|
|
552
|
+
const o = (n) => {
|
|
553
|
+
a("voltarClick", n);
|
|
563
554
|
};
|
|
564
555
|
return e = T(e), {
|
|
565
556
|
emitirVoltarClick: o,
|
|
@@ -569,26 +560,33 @@ const X = /* @__PURE__ */ f(ea, [["render", oa]]), na = m({
|
|
|
569
560
|
}))
|
|
570
561
|
};
|
|
571
562
|
}
|
|
572
|
-
})
|
|
573
|
-
|
|
574
|
-
ra
|
|
563
|
+
}), ia = (e) => (V("data-v-33d6850e"), e = e(), j(), e), ra = { class: "conteudoTitulo" }, sa = /* @__PURE__ */ ia(() => /* @__PURE__ */ u("span", { class: "material-symbols-outlined" }, " arrow_back ", -1)), la = [
|
|
564
|
+
sa
|
|
575
565
|
], ca = { class: "titulo" };
|
|
576
|
-
function da(e, a, o,
|
|
577
|
-
return
|
|
566
|
+
function da(e, a, o, n, t, s) {
|
|
567
|
+
return r(), c("div", {
|
|
578
568
|
class: P(["topo", e.classes]),
|
|
579
569
|
"data-testid": "topo"
|
|
580
570
|
}, [
|
|
581
|
-
u("div",
|
|
571
|
+
u("div", ra, [
|
|
582
572
|
u("button", {
|
|
583
573
|
class: "btn_voltar",
|
|
584
|
-
onClick: a[0] || (a[0] = (...
|
|
574
|
+
onClick: a[0] || (a[0] = (...i) => e.emitirVoltarClick && e.emitirVoltarClick(...i)),
|
|
585
575
|
"data-testid": "botao-voltar"
|
|
586
576
|
}, la),
|
|
587
|
-
u("h3", ca,
|
|
577
|
+
u("h3", ca, m(e.titulo), 1)
|
|
588
578
|
])
|
|
589
579
|
], 2);
|
|
590
580
|
}
|
|
591
|
-
const ua = /* @__PURE__ */
|
|
581
|
+
const ua = /* @__PURE__ */ _(na, [["render", da], ["__scopeId", "data-v-33d6850e"]]), pa = {
|
|
582
|
+
PEQUENO: "pequeno",
|
|
583
|
+
MEDIO: "medio",
|
|
584
|
+
GRANDE: "grande"
|
|
585
|
+
}, va = {
|
|
586
|
+
OUTLINE: "outline",
|
|
587
|
+
PREENCHIDO: "preenchido",
|
|
588
|
+
VAZIO: "vazio"
|
|
589
|
+
}, ma = f({
|
|
592
590
|
name: "Botao",
|
|
593
591
|
props: {
|
|
594
592
|
titulo: {
|
|
@@ -600,11 +598,11 @@ const ua = /* @__PURE__ */ f(na, [["render", da], ["__scopeId", "data-v-33d6850e
|
|
|
600
598
|
},
|
|
601
599
|
aparencia: {
|
|
602
600
|
type: String,
|
|
603
|
-
default:
|
|
601
|
+
default: va.OUTLINE
|
|
604
602
|
},
|
|
605
603
|
tamanho: {
|
|
606
604
|
type: String,
|
|
607
|
-
default:
|
|
605
|
+
default: pa.MEDIO
|
|
608
606
|
}
|
|
609
607
|
},
|
|
610
608
|
emits: {
|
|
@@ -614,34 +612,33 @@ const ua = /* @__PURE__ */ f(na, [["render", da], ["__scopeId", "data-v-33d6850e
|
|
|
614
612
|
e = T(e);
|
|
615
613
|
const o = (t) => {
|
|
616
614
|
a("click", t);
|
|
617
|
-
},
|
|
615
|
+
}, n = A(() => ({
|
|
618
616
|
[`${e.aparencia}`]: !0,
|
|
619
617
|
[`${e.tamanho}`]: !0
|
|
620
618
|
}));
|
|
621
619
|
return {
|
|
622
620
|
handleClick: o,
|
|
623
|
-
classes:
|
|
621
|
+
classes: n
|
|
624
622
|
};
|
|
625
623
|
}
|
|
626
|
-
})
|
|
627
|
-
const va = {
|
|
624
|
+
}), fa = {
|
|
628
625
|
key: 0,
|
|
629
626
|
class: "material-symbols-outlined"
|
|
630
627
|
};
|
|
631
|
-
function _a(e, a, o,
|
|
632
|
-
return
|
|
628
|
+
function _a(e, a, o, n, t, s) {
|
|
629
|
+
return r(), c("button", {
|
|
633
630
|
class: "btn",
|
|
634
631
|
"data-testid": "botao",
|
|
635
|
-
onClick: a[0] || (a[0] = (...
|
|
632
|
+
onClick: a[0] || (a[0] = (...i) => e.handleClick && e.handleClick(...i))
|
|
636
633
|
}, [
|
|
637
|
-
|
|
638
|
-
e.icone ? (
|
|
639
|
-
L(" " +
|
|
634
|
+
z(e.$slots, "default", {}, () => [
|
|
635
|
+
e.icone ? (r(), c("span", fa, m(e.icone), 1)) : S("", !0),
|
|
636
|
+
L(" " + m(e.titulo), 1)
|
|
640
637
|
], !0)
|
|
641
638
|
]);
|
|
642
639
|
}
|
|
643
|
-
const
|
|
644
|
-
components: { Botao:
|
|
640
|
+
const R = /* @__PURE__ */ _(ma, [["render", _a], ["__scopeId", "data-v-adc6e80a"]]), $a = f({
|
|
641
|
+
components: { Botao: R, PerfilTimeline: K, IconeCategoria: G, Hora: Q },
|
|
645
642
|
name: "CabecalhoEventoDetalhado",
|
|
646
643
|
props: {
|
|
647
644
|
perfil: {
|
|
@@ -656,61 +653,60 @@ const H = /* @__PURE__ */ f(pa, [["render", _a], ["__scopeId", "data-v-ce25287c"
|
|
|
656
653
|
setup(e) {
|
|
657
654
|
return {};
|
|
658
655
|
}
|
|
659
|
-
})
|
|
660
|
-
const Z = (e) => (V("data-v-aa43d357"), e = e(), j(), e), fa = {
|
|
656
|
+
}), X = (e) => (V("data-v-aa43d357"), e = e(), j(), e), ha = {
|
|
661
657
|
key: 1,
|
|
662
658
|
class: "criticidade"
|
|
663
|
-
},
|
|
659
|
+
}, Ca = { class: "titulo" }, ka = { class: "dataHora" }, ba = { class: "box" }, Sa = /* @__PURE__ */ X(() => /* @__PURE__ */ u("span", { class: "material-symbols-outlined" }, " calendar_month ", -1)), ga = { class: "horaEvento" }, Ea = {
|
|
664
660
|
key: 0,
|
|
665
661
|
class: "horaRealizada texto-grande"
|
|
666
|
-
},
|
|
662
|
+
}, ya = {
|
|
667
663
|
key: 1,
|
|
668
664
|
class: "horaPlanejada texto-pequeno"
|
|
669
|
-
},
|
|
665
|
+
}, Ta = {
|
|
670
666
|
key: 2,
|
|
671
667
|
class: "horaRealizada texto-grande"
|
|
672
|
-
},
|
|
673
|
-
function
|
|
674
|
-
const
|
|
675
|
-
return
|
|
668
|
+
}, Aa = { class: "box" }, Oa = /* @__PURE__ */ X(() => /* @__PURE__ */ u("span", { class: "material-symbols-outlined" }, " schedule ", -1)), Da = { class: "horaEvento" };
|
|
669
|
+
function Pa(e, a, o, n, t, s) {
|
|
670
|
+
const i = p("PerfilTimeline"), l = p("IconeCategoria"), $ = p("Hora");
|
|
671
|
+
return r(), c("section", {
|
|
676
672
|
class: P(["cabecalho-evento", ["criticidade-" + e.evento.criticidade]])
|
|
677
673
|
}, [
|
|
678
|
-
e.perfil ? (
|
|
674
|
+
e.perfil ? (r(), b(i, {
|
|
679
675
|
key: 0,
|
|
680
676
|
nomePerfil: e.perfil.nome,
|
|
681
677
|
imagemPerfil: e.perfil.imagem,
|
|
682
678
|
iconePerfil: e.perfil.icone,
|
|
683
679
|
formatoReduzido: !0
|
|
684
|
-
}, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) :
|
|
685
|
-
e.evento.criticidade !== "baixa" ? (
|
|
686
|
-
u("div",
|
|
680
|
+
}, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : S("", !0),
|
|
681
|
+
e.evento.criticidade !== "baixa" ? (r(), c("div", ha, " Criticidade: " + m(e.evento.criticidade), 1)) : S("", !0),
|
|
682
|
+
u("div", Ca, [
|
|
687
683
|
v(l, {
|
|
688
684
|
iconeCategoria: e.evento.categoria.icone,
|
|
689
685
|
categoria: e.evento.categoria.nome
|
|
690
686
|
}, null, 8, ["iconeCategoria", "categoria"]),
|
|
691
|
-
u("h1", null,
|
|
687
|
+
u("h1", null, m(e.evento.titulo), 1)
|
|
692
688
|
]),
|
|
693
|
-
u("div",
|
|
694
|
-
u("div",
|
|
695
|
-
|
|
696
|
-
u("div",
|
|
697
|
-
e.evento.realizado ? (
|
|
698
|
-
e.evento.realizado ? (
|
|
689
|
+
u("div", ka, [
|
|
690
|
+
u("div", ba, [
|
|
691
|
+
Sa,
|
|
692
|
+
u("div", ga, [
|
|
693
|
+
e.evento.realizado ? (r(), c("div", Ea, m(e.evento.realizado.toLocaleDateString()), 1)) : S("", !0),
|
|
694
|
+
e.evento.realizado ? (r(), c("div", ya, m(e.evento.realizado.toLocaleDateString()), 1)) : (r(), c("div", Ta, m(e.evento.previstoPara.toLocaleDateString()), 1))
|
|
699
695
|
])
|
|
700
696
|
]),
|
|
701
|
-
u("div",
|
|
702
|
-
|
|
703
|
-
u("div",
|
|
704
|
-
e.evento.realizado ? (
|
|
697
|
+
u("div", Aa, [
|
|
698
|
+
Oa,
|
|
699
|
+
u("div", Da, [
|
|
700
|
+
e.evento.realizado ? (r(), b($, {
|
|
705
701
|
key: 0,
|
|
706
702
|
class: "horaRealizada texto-grande",
|
|
707
703
|
hora: e.evento.realizado
|
|
708
|
-
}, null, 8, ["hora"])) :
|
|
709
|
-
e.evento.realizado ? (
|
|
704
|
+
}, null, 8, ["hora"])) : S("", !0),
|
|
705
|
+
e.evento.realizado ? (r(), b($, {
|
|
710
706
|
key: 1,
|
|
711
707
|
class: "horaPlanejada texto-pequeno",
|
|
712
708
|
hora: e.evento.previstoPara
|
|
713
|
-
}, null, 8, ["hora"])) : (
|
|
709
|
+
}, null, 8, ["hora"])) : (r(), b($, {
|
|
714
710
|
key: 2,
|
|
715
711
|
class: "horaRealizada texto-grande",
|
|
716
712
|
hora: e.evento.previstoPara
|
|
@@ -720,8 +716,8 @@ function Da(e, a, o, s, t, r) {
|
|
|
720
716
|
])
|
|
721
717
|
], 2);
|
|
722
718
|
}
|
|
723
|
-
const
|
|
724
|
-
components: { Botao:
|
|
719
|
+
const qa = /* @__PURE__ */ _($a, [["render", Pa], ["__scopeId", "data-v-aa43d357"]]), Ia = f({
|
|
720
|
+
components: { Botao: R },
|
|
725
721
|
name: "Observacoes",
|
|
726
722
|
props: {
|
|
727
723
|
tituloBotao: {
|
|
@@ -736,31 +732,30 @@ const Oa = /* @__PURE__ */ f(ma, [["render", Da], ["__scopeId", "data-v-aa43d357
|
|
|
736
732
|
adicionarClick: (e) => !0
|
|
737
733
|
},
|
|
738
734
|
setup(e, { emit: a }) {
|
|
739
|
-
const o = (
|
|
740
|
-
a("adicionarClick",
|
|
735
|
+
const o = (n) => {
|
|
736
|
+
a("adicionarClick", n);
|
|
741
737
|
};
|
|
742
|
-
return e.observacoes.sort((
|
|
738
|
+
return e.observacoes.sort((n, t) => t.criadaEm.getTime() - n.criadaEm.getTime()), e = T(e), { emitirAdicionarClick: o };
|
|
743
739
|
}
|
|
744
|
-
})
|
|
745
|
-
const qa = (e) => (V("data-v-27347f9c"), e = e(), j(), e), za = {
|
|
740
|
+
}), za = (e) => (V("data-v-27347f9c"), e = e(), j(), e), Ba = {
|
|
746
741
|
class: "box box-observacoes",
|
|
747
742
|
"data-testid": "observacoes"
|
|
748
|
-
},
|
|
749
|
-
function
|
|
750
|
-
const
|
|
751
|
-
return
|
|
752
|
-
|
|
753
|
-
u("ul",
|
|
754
|
-
(
|
|
743
|
+
}, Va = /* @__PURE__ */ za(() => /* @__PURE__ */ u("h3", null, "Observações:", -1)), ja = { class: "lista-obs" }, Ra = ["data-testid"], Na = { class: "texto" }, Ha = { class: "autor" };
|
|
744
|
+
function Ma(e, a, o, n, t, s) {
|
|
745
|
+
const i = p("Botao");
|
|
746
|
+
return r(), c("section", Ba, [
|
|
747
|
+
Va,
|
|
748
|
+
u("ul", ja, [
|
|
749
|
+
(r(!0), c(J, null, Y(e.observacoes, (l, $) => (r(), c("li", {
|
|
755
750
|
"data-testid": `observacao-${$}`,
|
|
756
751
|
key: $,
|
|
757
752
|
class: "lista-item"
|
|
758
753
|
}, [
|
|
759
|
-
u("p",
|
|
760
|
-
u("div", Ha,
|
|
761
|
-
], 8,
|
|
754
|
+
u("p", Na, m(l.mensagem), 1),
|
|
755
|
+
u("div", Ha, m(l.autor.nome) + " em " + m(l.criadaEm.toLocaleDateString()) + " às " + m(l.criadaEm.getHours()) + ":" + m(l.criadaEm.getMinutes().toString().padStart(2, "0")), 1)
|
|
756
|
+
], 8, Ra))), 128))
|
|
762
757
|
]),
|
|
763
|
-
v(
|
|
758
|
+
v(i, {
|
|
764
759
|
titulo: e.tituloBotao,
|
|
765
760
|
"data-testid": "botao-adicionar",
|
|
766
761
|
icone: "add",
|
|
@@ -770,8 +765,8 @@ function Ra(e, a, o, s, t, r) {
|
|
|
770
765
|
}, null, 8, ["titulo", "onClick"])
|
|
771
766
|
]);
|
|
772
767
|
}
|
|
773
|
-
const
|
|
774
|
-
components: { Botao:
|
|
768
|
+
const La = /* @__PURE__ */ _(Ia, [["render", Ma], ["__scopeId", "data-v-27347f9c"]]), wa = f({
|
|
769
|
+
components: { Botao: R, IconeStatus: w },
|
|
775
770
|
name: "BotaoStatus",
|
|
776
771
|
props: {
|
|
777
772
|
aparencia: {
|
|
@@ -798,25 +793,25 @@ const wa = /* @__PURE__ */ f(Pa, [["render", Ra], ["__scopeId", "data-v-27347f9c
|
|
|
798
793
|
};
|
|
799
794
|
}
|
|
800
795
|
});
|
|
801
|
-
function
|
|
802
|
-
const
|
|
803
|
-
return
|
|
796
|
+
function Fa(e, a, o, n, t, s) {
|
|
797
|
+
const i = p("IconeStatus"), l = p("Botao");
|
|
798
|
+
return r(), b(l, {
|
|
804
799
|
aparencia: e.aparencia,
|
|
805
800
|
class: P(e.classes),
|
|
806
801
|
onClick: e.emitirClick,
|
|
807
802
|
"data-testid": "botao-status"
|
|
808
803
|
}, {
|
|
809
|
-
default:
|
|
810
|
-
v(
|
|
804
|
+
default: y(() => [
|
|
805
|
+
v(i, {
|
|
811
806
|
class: "icone",
|
|
812
807
|
status: e.status
|
|
813
808
|
}, null, 8, ["status"]),
|
|
814
|
-
L(" " +
|
|
809
|
+
L(" " + m(e.status), 1)
|
|
815
810
|
]),
|
|
816
811
|
_: 1
|
|
817
812
|
}, 8, ["aparencia", "class", "onClick"]);
|
|
818
813
|
}
|
|
819
|
-
const x = /* @__PURE__ */
|
|
814
|
+
const x = /* @__PURE__ */ _(wa, [["render", Fa], ["__scopeId", "data-v-9b0bacc7"]]), Ua = f({
|
|
820
815
|
components: { BotaoStatus: x },
|
|
821
816
|
name: "StatusEvento",
|
|
822
817
|
props: {
|
|
@@ -832,21 +827,20 @@ const x = /* @__PURE__ */ f(Ma, [["render", La], ["__scopeId", "data-v-9b0bacc7"
|
|
|
832
827
|
click: (e) => !0
|
|
833
828
|
},
|
|
834
829
|
setup(e, { emit: a }) {
|
|
835
|
-
const o = (
|
|
836
|
-
a("click",
|
|
830
|
+
const o = (n) => {
|
|
831
|
+
a("click", n);
|
|
837
832
|
};
|
|
838
833
|
return e = T(e), {
|
|
839
834
|
emitClick: o,
|
|
840
835
|
props: e
|
|
841
836
|
};
|
|
842
837
|
}
|
|
843
|
-
});
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
v(n, {
|
|
838
|
+
}), Ja = (e) => (V("data-v-027bde63"), e = e(), j(), e), Ya = { class: "box box-status" }, Ga = /* @__PURE__ */ Ja(() => /* @__PURE__ */ u("h3", null, "Status:", -1));
|
|
839
|
+
function Qa(e, a, o, n, t, s) {
|
|
840
|
+
const i = p("BotaoStatus");
|
|
841
|
+
return r(), c("section", Ya, [
|
|
842
|
+
Ga,
|
|
843
|
+
v(i, {
|
|
850
844
|
"data-testid": "botao-status",
|
|
851
845
|
aparencia: e.aparencia,
|
|
852
846
|
status: e.status,
|
|
@@ -854,7 +848,7 @@ function Ua(e, a, o, s, t, r) {
|
|
|
854
848
|
}, null, 8, ["aparencia", "status", "onClick"])
|
|
855
849
|
]);
|
|
856
850
|
}
|
|
857
|
-
const
|
|
851
|
+
const Za = /* @__PURE__ */ _(Ua, [["render", Qa], ["__scopeId", "data-v-027bde63"]]), Ka = f({
|
|
858
852
|
name: "EventoDetalhado",
|
|
859
853
|
props: {
|
|
860
854
|
perfil: {
|
|
@@ -866,7 +860,7 @@ const Ga = /* @__PURE__ */ f(Na, [["render", Ua], ["__scopeId", "data-v-027bde63
|
|
|
866
860
|
type: Object
|
|
867
861
|
}
|
|
868
862
|
},
|
|
869
|
-
components: { CabecalhoEventoDetalhado:
|
|
863
|
+
components: { CabecalhoEventoDetalhado: qa, Observacoes: La, StatusEvento: Za },
|
|
870
864
|
emits: {
|
|
871
865
|
statusEditarClick: (e) => !0,
|
|
872
866
|
observacaoAdicionarClick: (e) => !0
|
|
@@ -881,21 +875,20 @@ const Ga = /* @__PURE__ */ f(Na, [["render", Ua], ["__scopeId", "data-v-027bde63
|
|
|
881
875
|
}
|
|
882
876
|
};
|
|
883
877
|
}
|
|
884
|
-
})
|
|
885
|
-
const Qa = {
|
|
878
|
+
}), Wa = {
|
|
886
879
|
class: "evento",
|
|
887
880
|
"data-testid": "evento-detalhado"
|
|
888
|
-
},
|
|
889
|
-
function
|
|
890
|
-
const
|
|
891
|
-
return
|
|
881
|
+
}, Xa = { class: "descricao" };
|
|
882
|
+
function xa(e, a, o, n, t, s) {
|
|
883
|
+
const i = p("CabecalhoEventoDetalhado"), l = p("Observacoes"), $ = p("StatusEvento");
|
|
884
|
+
return r(), c("div", Wa, [
|
|
892
885
|
v(q, {
|
|
893
886
|
name: "fadeBaixo",
|
|
894
887
|
mode: "out-in",
|
|
895
888
|
appear: ""
|
|
896
889
|
}, {
|
|
897
|
-
default:
|
|
898
|
-
v(
|
|
890
|
+
default: y(() => [
|
|
891
|
+
v(i, {
|
|
899
892
|
perfil: e.perfil,
|
|
900
893
|
evento: e.evento
|
|
901
894
|
}, null, 8, ["perfil", "evento"])
|
|
@@ -907,10 +900,10 @@ function Xa(e, a, o, s, t, r) {
|
|
|
907
900
|
mode: "out-in",
|
|
908
901
|
appear: ""
|
|
909
902
|
}, {
|
|
910
|
-
default:
|
|
911
|
-
u("section",
|
|
912
|
-
|
|
913
|
-
L(
|
|
903
|
+
default: y(() => [
|
|
904
|
+
u("section", Xa, [
|
|
905
|
+
z(e.$slots, "descricao", {}, () => [
|
|
906
|
+
L(m(e.evento.subtitulo), 1)
|
|
914
907
|
])
|
|
915
908
|
])
|
|
916
909
|
]),
|
|
@@ -921,7 +914,7 @@ function Xa(e, a, o, s, t, r) {
|
|
|
921
914
|
mode: "out-in",
|
|
922
915
|
appear: ""
|
|
923
916
|
}, {
|
|
924
|
-
default:
|
|
917
|
+
default: y(() => [
|
|
925
918
|
v(l, {
|
|
926
919
|
observacoes: e.evento.observacoes,
|
|
927
920
|
tituloBotao: "Inserir observação",
|
|
@@ -935,7 +928,7 @@ function Xa(e, a, o, s, t, r) {
|
|
|
935
928
|
mode: "out-in",
|
|
936
929
|
appear: ""
|
|
937
930
|
}, {
|
|
938
|
-
default:
|
|
931
|
+
default: y(() => [
|
|
939
932
|
v($, {
|
|
940
933
|
"data-testid": "status-evento",
|
|
941
934
|
aparencia: "preenchido",
|
|
@@ -947,9 +940,9 @@ function Xa(e, a, o, s, t, r) {
|
|
|
947
940
|
})
|
|
948
941
|
]);
|
|
949
942
|
}
|
|
950
|
-
const ee = /* @__PURE__ */
|
|
943
|
+
const ee = /* @__PURE__ */ _(Ka, [["render", xa]]), et = f({
|
|
951
944
|
name: "AreaSalvamento",
|
|
952
|
-
components: { Botao:
|
|
945
|
+
components: { Botao: R },
|
|
953
946
|
emits: {
|
|
954
947
|
salvarClick: (e) => !0,
|
|
955
948
|
cancelarClick: (e) => !0
|
|
@@ -964,23 +957,22 @@ const ee = /* @__PURE__ */ f(Ka, [["render", Xa]]), Za = m({
|
|
|
964
957
|
}
|
|
965
958
|
};
|
|
966
959
|
}
|
|
967
|
-
})
|
|
968
|
-
const xa = {
|
|
960
|
+
}), at = {
|
|
969
961
|
class: "area-salvamento",
|
|
970
962
|
"data-testid": "area-salvamento"
|
|
971
963
|
};
|
|
972
|
-
function
|
|
973
|
-
const
|
|
974
|
-
return
|
|
975
|
-
|
|
976
|
-
v(
|
|
964
|
+
function tt(e, a, o, n, t, s) {
|
|
965
|
+
const i = p("Botao");
|
|
966
|
+
return r(), c("section", at, [
|
|
967
|
+
z(e.$slots, "default", {}, void 0, !0),
|
|
968
|
+
v(i, {
|
|
977
969
|
"data-testid": "botao-salvar",
|
|
978
970
|
aparencia: "preenchido",
|
|
979
971
|
titulo: "Salvar",
|
|
980
972
|
tamanho: "grande",
|
|
981
973
|
onClick: e.emitirSalvarClick
|
|
982
974
|
}, null, 8, ["onClick"]),
|
|
983
|
-
v(
|
|
975
|
+
v(i, {
|
|
984
976
|
"data-testid": "botao-cancelar",
|
|
985
977
|
aparencia: "vazio",
|
|
986
978
|
titulo: "Cancelar",
|
|
@@ -989,13 +981,13 @@ function et(e, a, o, s, t, r) {
|
|
|
989
981
|
}, null, 8, ["onClick"])
|
|
990
982
|
]);
|
|
991
983
|
}
|
|
992
|
-
const
|
|
984
|
+
const ot = /* @__PURE__ */ _(et, [["render", tt], ["__scopeId", "data-v-bffa6dc0"]]), nt = f({
|
|
993
985
|
props: {
|
|
994
986
|
salvarVisivel: {
|
|
995
987
|
type: Boolean
|
|
996
988
|
}
|
|
997
989
|
},
|
|
998
|
-
components: { AreaSalvamento:
|
|
990
|
+
components: { AreaSalvamento: ot },
|
|
999
991
|
emits: {
|
|
1000
992
|
salvarClick: (e) => !0,
|
|
1001
993
|
cancelarClick: (e) => !0
|
|
@@ -1010,22 +1002,21 @@ const at = /* @__PURE__ */ f(Za, [["render", et], ["__scopeId", "data-v-bffa6dc0
|
|
|
1010
1002
|
}
|
|
1011
1003
|
};
|
|
1012
1004
|
}
|
|
1013
|
-
})
|
|
1014
|
-
const ot = {
|
|
1005
|
+
}), it = {
|
|
1015
1006
|
class: "editar-evento",
|
|
1016
1007
|
"data-testid": "editar-evento"
|
|
1017
|
-
},
|
|
1018
|
-
function
|
|
1019
|
-
const
|
|
1020
|
-
return
|
|
1008
|
+
}, rt = { class: "area-conteudo" }, st = { class: "salvar" };
|
|
1009
|
+
function lt(e, a, o, n, t, s) {
|
|
1010
|
+
const i = p("AreaSalvamento");
|
|
1011
|
+
return r(), c("div", it, [
|
|
1021
1012
|
v(q, {
|
|
1022
1013
|
name: "fadeTopo",
|
|
1023
1014
|
mode: "out-in",
|
|
1024
1015
|
appear: ""
|
|
1025
1016
|
}, {
|
|
1026
|
-
default:
|
|
1027
|
-
u("div",
|
|
1028
|
-
|
|
1017
|
+
default: y(() => [
|
|
1018
|
+
u("div", rt, [
|
|
1019
|
+
z(e.$slots, "conteudo")
|
|
1029
1020
|
])
|
|
1030
1021
|
]),
|
|
1031
1022
|
_: 3
|
|
@@ -1035,15 +1026,15 @@ function st(e, a, o, s, t, r) {
|
|
|
1035
1026
|
mode: "out-in",
|
|
1036
1027
|
appear: ""
|
|
1037
1028
|
}, {
|
|
1038
|
-
default:
|
|
1039
|
-
u("div",
|
|
1040
|
-
v(
|
|
1029
|
+
default: y(() => [
|
|
1030
|
+
u("div", st, [
|
|
1031
|
+
v(i, {
|
|
1041
1032
|
"data-testid": "area-salvamento",
|
|
1042
1033
|
onCancelarClick: e.emitirCancelarClick,
|
|
1043
1034
|
onSalvarClick: e.emitirSalvarClick
|
|
1044
1035
|
}, {
|
|
1045
|
-
default:
|
|
1046
|
-
|
|
1036
|
+
default: y(() => [
|
|
1037
|
+
z(e.$slots, "salvamento")
|
|
1047
1038
|
]),
|
|
1048
1039
|
_: 3
|
|
1049
1040
|
}, 8, ["onCancelarClick", "onSalvarClick"])
|
|
@@ -1053,7 +1044,7 @@ function st(e, a, o, s, t, r) {
|
|
|
1053
1044
|
})
|
|
1054
1045
|
]);
|
|
1055
1046
|
}
|
|
1056
|
-
const F = /* @__PURE__ */
|
|
1047
|
+
const F = /* @__PURE__ */ _(nt, [["render", lt]]), ct = f({
|
|
1057
1048
|
props: {
|
|
1058
1049
|
salvarVisivel: {
|
|
1059
1050
|
type: Boolean
|
|
@@ -1063,7 +1054,7 @@ const F = /* @__PURE__ */ f(tt, [["render", st]]), rt = m({
|
|
|
1063
1054
|
type: Object
|
|
1064
1055
|
}
|
|
1065
1056
|
},
|
|
1066
|
-
components: { EditarEvento: F, IconeStatus:
|
|
1057
|
+
components: { EditarEvento: F, IconeStatus: w, BotaoStatus: x },
|
|
1067
1058
|
emits: {
|
|
1068
1059
|
salvarClick: (e, a) => !0,
|
|
1069
1060
|
cancelarClick: (e) => !0
|
|
@@ -1071,66 +1062,65 @@ const F = /* @__PURE__ */ f(tt, [["render", st]]), rt = m({
|
|
|
1071
1062
|
setup(e, { emit: a }) {
|
|
1072
1063
|
const o = (l, $) => {
|
|
1073
1064
|
a("salvarClick", l, $);
|
|
1074
|
-
},
|
|
1065
|
+
}, n = (l) => {
|
|
1075
1066
|
a("cancelarClick", l);
|
|
1076
1067
|
}, t = M(e.evento.status);
|
|
1077
|
-
function
|
|
1068
|
+
function s(l) {
|
|
1078
1069
|
t.value = l;
|
|
1079
1070
|
}
|
|
1080
|
-
const
|
|
1071
|
+
const i = A(() => (l) => t.value === l ? "preenchido" : "outline");
|
|
1081
1072
|
return {
|
|
1082
1073
|
aoSalvar: o,
|
|
1083
|
-
aoCancelar:
|
|
1084
|
-
atualizarSelecionado:
|
|
1074
|
+
aoCancelar: n,
|
|
1075
|
+
atualizarSelecionado: s,
|
|
1085
1076
|
selecionado: t,
|
|
1086
|
-
getAparencia:
|
|
1077
|
+
getAparencia: i
|
|
1087
1078
|
};
|
|
1088
1079
|
}
|
|
1089
|
-
})
|
|
1090
|
-
const lt = /* @__PURE__ */ u("h2", null, "Alterar o Status para:", -1), ct = {
|
|
1080
|
+
}), dt = /* @__PURE__ */ u("h2", null, "Alterar o Status para:", -1), ut = {
|
|
1091
1081
|
key: 0,
|
|
1092
1082
|
class: "nova-data"
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1095
|
-
|
|
1083
|
+
}, pt = /* @__PURE__ */ u("h2", null, "Nova Data:", -1), vt = /* @__PURE__ */ u("p", null, "componente de seleção de data deve entrar aqui.", -1), mt = [
|
|
1084
|
+
pt,
|
|
1085
|
+
vt
|
|
1096
1086
|
];
|
|
1097
|
-
function
|
|
1098
|
-
const
|
|
1099
|
-
return
|
|
1087
|
+
function ft(e, a, o, n, t, s) {
|
|
1088
|
+
const i = p("BotaoStatus"), l = p("EditarEvento");
|
|
1089
|
+
return r(), b(l, {
|
|
1100
1090
|
"data-testid": "editar-status",
|
|
1101
1091
|
salvarVisivel: e.salvarVisivel,
|
|
1102
1092
|
onCancelarClick: e.aoCancelar,
|
|
1103
1093
|
onSalvarClick: a[3] || (a[3] = ($) => e.aoSalvar(e.selecionado, $))
|
|
1104
1094
|
}, {
|
|
1105
|
-
conteudo:
|
|
1106
|
-
|
|
1107
|
-
v(
|
|
1095
|
+
conteudo: y(() => [
|
|
1096
|
+
dt,
|
|
1097
|
+
v(i, {
|
|
1108
1098
|
aparencia: e.getAparencia("realizado"),
|
|
1109
1099
|
onClick: a[0] || (a[0] = ($) => e.atualizarSelecionado("realizado")),
|
|
1110
1100
|
status: "realizado",
|
|
1111
1101
|
"data-testid": "botao-status-realizado"
|
|
1112
1102
|
}, null, 8, ["aparencia"]),
|
|
1113
|
-
v(
|
|
1103
|
+
v(i, {
|
|
1114
1104
|
aparencia: e.getAparencia("cancelado"),
|
|
1115
1105
|
onClick: a[1] || (a[1] = ($) => e.atualizarSelecionado("cancelado")),
|
|
1116
1106
|
status: "cancelado",
|
|
1117
1107
|
"data-testid": "botao-status-cancelado"
|
|
1118
1108
|
}, null, 8, ["aparencia"]),
|
|
1119
|
-
v(
|
|
1109
|
+
v(i, {
|
|
1120
1110
|
aparencia: e.getAparencia("adiado"),
|
|
1121
1111
|
onClick: a[2] || (a[2] = ($) => e.atualizarSelecionado("adiado")),
|
|
1122
1112
|
status: "adiado",
|
|
1123
1113
|
"data-testid": "botao-status-adiado"
|
|
1124
1114
|
}, null, 8, ["aparencia"])
|
|
1125
1115
|
]),
|
|
1126
|
-
salvamento:
|
|
1116
|
+
salvamento: y(() => [
|
|
1127
1117
|
v(q, {
|
|
1128
1118
|
name: "fadeBaixo",
|
|
1129
1119
|
mode: "out-in",
|
|
1130
1120
|
appear: ""
|
|
1131
1121
|
}, {
|
|
1132
|
-
default:
|
|
1133
|
-
e.selecionado === "adiado" ? (
|
|
1122
|
+
default: y(() => [
|
|
1123
|
+
e.selecionado === "adiado" ? (r(), c("div", ut, mt)) : S("", !0)
|
|
1134
1124
|
]),
|
|
1135
1125
|
_: 1
|
|
1136
1126
|
})
|
|
@@ -1138,7 +1128,7 @@ function vt(e, a, o, s, t, r) {
|
|
|
1138
1128
|
_: 1
|
|
1139
1129
|
}, 8, ["salvarVisivel", "onCancelarClick"]);
|
|
1140
1130
|
}
|
|
1141
|
-
const _t = /* @__PURE__ */
|
|
1131
|
+
const _t = /* @__PURE__ */ _(ct, [["render", ft]]), $t = f({
|
|
1142
1132
|
props: {
|
|
1143
1133
|
salvarVisivel: {
|
|
1144
1134
|
type: Boolean
|
|
@@ -1156,18 +1146,17 @@ const _t = /* @__PURE__ */ f(rt, [["render", vt]]), mt = m({
|
|
|
1156
1146
|
const o = M({
|
|
1157
1147
|
observacaoLocal: e.observacao || ""
|
|
1158
1148
|
});
|
|
1159
|
-
return { salvar: (
|
|
1160
|
-
const
|
|
1161
|
-
a("adicionarClick",
|
|
1162
|
-
}, cancelar: (
|
|
1163
|
-
a("cancelarClick",
|
|
1149
|
+
return { salvar: (s) => {
|
|
1150
|
+
const i = o.value.observacaoLocal;
|
|
1151
|
+
a("adicionarClick", i, s);
|
|
1152
|
+
}, cancelar: (s) => {
|
|
1153
|
+
a("cancelarClick", s);
|
|
1164
1154
|
}, state: o };
|
|
1165
1155
|
}
|
|
1166
|
-
});
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
return i(), b(n, {
|
|
1156
|
+
}), ht = /* @__PURE__ */ u("h2", null, "Observação:", -1);
|
|
1157
|
+
function Ct(e, a, o, n, t, s) {
|
|
1158
|
+
const i = p("EditarEvento");
|
|
1159
|
+
return r(), b(i, {
|
|
1171
1160
|
"data-testid": "adicionar-observacao",
|
|
1172
1161
|
salvarVisivel: e.salvarVisivel,
|
|
1173
1162
|
observacao: e.state.observacaoLocal,
|
|
@@ -1175,8 +1164,8 @@ function $t(e, a, o, s, t, r) {
|
|
|
1175
1164
|
onSalvarClick: e.salvar,
|
|
1176
1165
|
onCancelarClick: e.cancelar
|
|
1177
1166
|
}, {
|
|
1178
|
-
conteudo:
|
|
1179
|
-
|
|
1167
|
+
conteudo: y(() => [
|
|
1168
|
+
ht,
|
|
1180
1169
|
te(u("textarea", {
|
|
1181
1170
|
"data-testid": "observacao-textarea",
|
|
1182
1171
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => e.state.observacaoLocal = l),
|
|
@@ -1188,7 +1177,7 @@ function $t(e, a, o, s, t, r) {
|
|
|
1188
1177
|
_: 1
|
|
1189
1178
|
}, 8, ["salvarVisivel", "observacao", "onSalvarClick", "onCancelarClick"]);
|
|
1190
1179
|
}
|
|
1191
|
-
const
|
|
1180
|
+
const kt = /* @__PURE__ */ _($t, [["render", Ct]]), bt = f({
|
|
1192
1181
|
props: {
|
|
1193
1182
|
perfil: {
|
|
1194
1183
|
required: !0,
|
|
@@ -1199,7 +1188,7 @@ const ht = /* @__PURE__ */ f(mt, [["render", $t]]), Ct = m({
|
|
|
1199
1188
|
type: Array
|
|
1200
1189
|
}
|
|
1201
1190
|
},
|
|
1202
|
-
components: { Topo: ua, Evento: ee, Timeline:
|
|
1191
|
+
components: { Topo: ua, Evento: ee, Timeline: W, EditarStatus: _t, AdicionarObservacao: kt },
|
|
1203
1192
|
emits: {
|
|
1204
1193
|
eventoTimelineClicked: (e, a) => !0,
|
|
1205
1194
|
eventoStatusEditClicked: (e, a) => !0,
|
|
@@ -1211,7 +1200,7 @@ const ht = /* @__PURE__ */ f(mt, [["render", $t]]), Ct = m({
|
|
|
1211
1200
|
voltarClick: (e) => !0
|
|
1212
1201
|
},
|
|
1213
1202
|
setup(e, { emit: a }) {
|
|
1214
|
-
const o = B(e, "eventos"),
|
|
1203
|
+
const o = B(e, "eventos"), n = B(null), t = T({
|
|
1215
1204
|
topo: { exibir: !0 },
|
|
1216
1205
|
timeline: { exibir: !0 },
|
|
1217
1206
|
evento: { exibir: !1 },
|
|
@@ -1222,79 +1211,78 @@ const ht = /* @__PURE__ */ f(mt, [["render", $t]]), Ct = m({
|
|
|
1222
1211
|
perfil: B(e, "perfil"),
|
|
1223
1212
|
eventosTimeline: o,
|
|
1224
1213
|
eventosDetalhados: o,
|
|
1225
|
-
eventoAtual:
|
|
1214
|
+
eventoAtual: n
|
|
1226
1215
|
}
|
|
1227
|
-
}),
|
|
1228
|
-
const
|
|
1229
|
-
t.topo.exibir =
|
|
1216
|
+
}), s = (d) => "observacoes" in d, i = (d) => {
|
|
1217
|
+
const E = ["Timeline", "Evento"];
|
|
1218
|
+
t.topo.exibir = E.includes(d), t.timeline.exibir = d === "Timeline", t.evento.exibir = d === "Evento", t.editarStatus.exibir = d === "EditarStatus", t.adicionarObservacao.exibir = d === "AdicionarObservacao";
|
|
1230
1219
|
};
|
|
1231
1220
|
return {
|
|
1232
|
-
selecionarEvento: (d,
|
|
1233
|
-
|
|
1221
|
+
selecionarEvento: (d, E) => {
|
|
1222
|
+
s(d) && (a("eventoTimelineClicked", d, E), t.dados.eventoAtual = d, i("Evento"));
|
|
1234
1223
|
},
|
|
1235
1224
|
handleVoltarTela: (d) => {
|
|
1236
|
-
t.dados.eventoAtual ?
|
|
1225
|
+
t.dados.eventoAtual ? i("Timeline") : a("voltarClick", d);
|
|
1237
1226
|
},
|
|
1238
1227
|
handleStatusEditarClick: (d) => {
|
|
1239
|
-
|
|
1228
|
+
i("EditarStatus");
|
|
1240
1229
|
},
|
|
1241
1230
|
handleStatusCancelarClick: (d) => {
|
|
1242
|
-
t.dados.eventoAtual && (
|
|
1231
|
+
t.dados.eventoAtual && (i("Evento"), a("editarStatusCancelarClicked", t.dados.eventoAtual, d));
|
|
1243
1232
|
},
|
|
1244
|
-
handleStatusSalvarClick: (d,
|
|
1245
|
-
t.dados.eventoAtual && (
|
|
1233
|
+
handleStatusSalvarClick: (d, E) => {
|
|
1234
|
+
t.dados.eventoAtual && (i("Evento"), a("editarStatusSalvarClicked", t.dados.eventoAtual, d, E));
|
|
1246
1235
|
},
|
|
1247
1236
|
handleObservacaoAdicionarClick: (d) => {
|
|
1248
1237
|
t.dados.eventoAtual && (a(
|
|
1249
1238
|
"eventoDetalhadoObservacoesAddClicked",
|
|
1250
1239
|
t.dados.eventoAtual,
|
|
1251
1240
|
d
|
|
1252
|
-
),
|
|
1241
|
+
), i("AdicionarObservacao"));
|
|
1253
1242
|
},
|
|
1254
|
-
handleAdicionarObservacaoSalvarClick: (d,
|
|
1255
|
-
t.dados.eventoAtual && (
|
|
1243
|
+
handleAdicionarObservacaoSalvarClick: (d, E) => {
|
|
1244
|
+
t.dados.eventoAtual && (i("Evento"), a(
|
|
1256
1245
|
"adicionarObservacaoSalvarClicked",
|
|
1257
1246
|
t.dados.eventoAtual,
|
|
1258
1247
|
d,
|
|
1259
|
-
|
|
1248
|
+
E
|
|
1260
1249
|
));
|
|
1261
1250
|
},
|
|
1262
1251
|
handleObservacaoAdicionarCancelarClick: (d) => {
|
|
1263
|
-
t.dados.eventoAtual && (
|
|
1252
|
+
t.dados.eventoAtual && (i("Evento"), a("adicionarObservacaoCancelarClicked", t.dados.eventoAtual, d));
|
|
1264
1253
|
},
|
|
1265
1254
|
TemplateTimeline: t
|
|
1266
1255
|
};
|
|
1267
1256
|
}
|
|
1268
|
-
})
|
|
1269
|
-
const kt = {
|
|
1257
|
+
}), St = {
|
|
1270
1258
|
class: "pagina",
|
|
1271
1259
|
"data-testid": "template-timeline"
|
|
1272
1260
|
};
|
|
1273
|
-
function
|
|
1274
|
-
const
|
|
1275
|
-
return
|
|
1276
|
-
e.TemplateTimeline.topo.exibir ? (
|
|
1261
|
+
function gt(e, a, o, n, t, s) {
|
|
1262
|
+
const i = p("Topo"), l = p("Timeline"), $ = p("Evento"), C = p("EditarStatus"), O = p("AdicionarObservacao");
|
|
1263
|
+
return r(), c("div", St, [
|
|
1264
|
+
e.TemplateTimeline.topo.exibir ? (r(), b(i, {
|
|
1277
1265
|
key: 0,
|
|
1278
1266
|
titulo: e.TemplateTimeline.dados.perfil.nome,
|
|
1279
1267
|
escuro: !1,
|
|
1280
1268
|
onVoltarClick: e.handleVoltarTela
|
|
1281
|
-
}, null, 8, ["titulo", "onVoltarClick"])) :
|
|
1282
|
-
e.TemplateTimeline.timeline.exibir ? (
|
|
1269
|
+
}, null, 8, ["titulo", "onVoltarClick"])) : S("", !0),
|
|
1270
|
+
e.TemplateTimeline.timeline.exibir ? (r(), b(l, {
|
|
1283
1271
|
key: 1,
|
|
1284
1272
|
"data-testid": "timeline",
|
|
1285
1273
|
perfilTimeline: e.TemplateTimeline.dados.perfil,
|
|
1286
1274
|
eventosTimeline: e.TemplateTimeline.dados.eventosTimeline,
|
|
1287
1275
|
onEventoClick: e.selecionarEvento
|
|
1288
|
-
}, null, 8, ["perfilTimeline", "eventosTimeline", "onEventoClick"])) :
|
|
1289
|
-
e.TemplateTimeline.dados.eventoAtual && e.TemplateTimeline.evento.exibir ? (
|
|
1276
|
+
}, null, 8, ["perfilTimeline", "eventosTimeline", "onEventoClick"])) : S("", !0),
|
|
1277
|
+
e.TemplateTimeline.dados.eventoAtual && e.TemplateTimeline.evento.exibir ? (r(), b($, {
|
|
1290
1278
|
key: 2,
|
|
1291
1279
|
"data-testid": "evento-detalhado",
|
|
1292
1280
|
perfil: e.TemplateTimeline.dados.perfil,
|
|
1293
1281
|
evento: e.TemplateTimeline.dados.eventoAtual,
|
|
1294
1282
|
onObservacaoAdicionarClick: e.handleObservacaoAdicionarClick,
|
|
1295
1283
|
onStatusEditarClick: e.handleStatusEditarClick
|
|
1296
|
-
}, null, 8, ["perfil", "evento", "onObservacaoAdicionarClick", "onStatusEditarClick"])) :
|
|
1297
|
-
e.TemplateTimeline.dados.eventoAtual && e.TemplateTimeline.editarStatus.exibir ? (
|
|
1284
|
+
}, null, 8, ["perfil", "evento", "onObservacaoAdicionarClick", "onStatusEditarClick"])) : S("", !0),
|
|
1285
|
+
e.TemplateTimeline.dados.eventoAtual && e.TemplateTimeline.editarStatus.exibir ? (r(), b(C, {
|
|
1298
1286
|
key: 3,
|
|
1299
1287
|
"data-testid": "editar-status",
|
|
1300
1288
|
salvarVisivel: e.TemplateTimeline.editarStatus.exibir,
|
|
@@ -1302,43 +1290,43 @@ function bt(e, a, o, s, t, r) {
|
|
|
1302
1290
|
evento: e.TemplateTimeline.dados.eventoAtual,
|
|
1303
1291
|
onSalvarClick: e.handleStatusSalvarClick,
|
|
1304
1292
|
onCancelarClick: e.handleStatusCancelarClick
|
|
1305
|
-
}, null, 8, ["salvarVisivel", "perfil", "evento", "onSalvarClick", "onCancelarClick"])) :
|
|
1306
|
-
e.TemplateTimeline.adicionarObservacao.exibir ? (
|
|
1293
|
+
}, null, 8, ["salvarVisivel", "perfil", "evento", "onSalvarClick", "onCancelarClick"])) : S("", !0),
|
|
1294
|
+
e.TemplateTimeline.adicionarObservacao.exibir ? (r(), b(O, {
|
|
1307
1295
|
key: 4,
|
|
1308
1296
|
"data-testid": "adicionar-observacao",
|
|
1309
1297
|
salvarVisivel: e.TemplateTimeline.adicionarObservacao.exibir,
|
|
1310
1298
|
onAdicionarClick: e.handleAdicionarObservacaoSalvarClick,
|
|
1311
1299
|
onCancelarClick: e.handleObservacaoAdicionarCancelarClick
|
|
1312
|
-
}, null, 8, ["salvarVisivel", "onAdicionarClick", "onCancelarClick"])) :
|
|
1300
|
+
}, null, 8, ["salvarVisivel", "onAdicionarClick", "onCancelarClick"])) : S("", !0)
|
|
1313
1301
|
]);
|
|
1314
1302
|
}
|
|
1315
|
-
const
|
|
1303
|
+
const Et = /* @__PURE__ */ _(bt, [["render", gt]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1316
1304
|
__proto__: null
|
|
1317
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1305
|
+
}, Symbol.toStringTag, { value: "Module" })), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1318
1306
|
__proto__: null
|
|
1319
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1307
|
+
}, Symbol.toStringTag, { value: "Module" })), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1320
1308
|
__proto__: null,
|
|
1321
1309
|
EditarEvento: F,
|
|
1322
1310
|
EventoDetalhado: ee,
|
|
1323
|
-
EventoTimeline:
|
|
1324
|
-
TemplateTimeline:
|
|
1325
|
-
Timeline:
|
|
1326
|
-
Tipos:
|
|
1327
|
-
TiposDetalhado:
|
|
1328
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
1329
|
-
const Tt = {
|
|
1311
|
+
EventoTimeline: Z,
|
|
1312
|
+
TemplateTimeline: Et,
|
|
1313
|
+
Timeline: W,
|
|
1314
|
+
Tipos: yt,
|
|
1315
|
+
TiposDetalhado: Tt
|
|
1316
|
+
}, Symbol.toStringTag, { value: "Module" })), Ot = {
|
|
1330
1317
|
install(e, ...a) {
|
|
1331
|
-
|
|
1332
|
-
|
|
1318
|
+
Object.keys(U).forEach((o) => {
|
|
1319
|
+
const n = U[o];
|
|
1320
|
+
n && typeof n == "object" && e.component(o, n);
|
|
1321
|
+
});
|
|
1333
1322
|
}
|
|
1334
1323
|
};
|
|
1335
1324
|
export {
|
|
1336
1325
|
F as EditarEvento,
|
|
1337
1326
|
ee as EventoDetalhado,
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
Tt as default
|
|
1327
|
+
Z as EventoTimeline,
|
|
1328
|
+
Et as TemplateTimeline,
|
|
1329
|
+
Ot as Timeline,
|
|
1330
|
+
yt as Tipos,
|
|
1331
|
+
Tt as TiposDetalhado
|
|
1344
1332
|
};
|