@devix-tecnologia/timeline-vue 1.1.2 → 1.3.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.
Files changed (34) hide show
  1. package/README.md +1 -3
  2. package/dist/style.css +1 -1
  3. package/dist/timeline-vue.es.js +673 -276
  4. package/dist/types/components/timeline/EventoDetalhado.mock.d.ts +4 -0
  5. package/dist/types/components/timeline/Templates/AdiantarHorario.vue.d.ts +35 -0
  6. package/dist/types/components/timeline/Templates/AdicionarObservacao.vue.d.ts +29 -0
  7. package/dist/types/components/timeline/Templates/EditarStatus.vue.d.ts +36 -0
  8. package/dist/types/components/timeline/Templates/TemplateEvento.vue.d.ts +24 -0
  9. package/dist/types/components/timeline/atomos/AvatarTimeline.vue.d.ts +1 -1
  10. package/dist/types/components/timeline/atomos/Destaque.vue.d.ts +3 -3
  11. package/dist/types/components/timeline/atomos/Hora.vue.d.ts +70 -1
  12. package/dist/types/components/timeline/atomos/IconeCategoria.vue.d.ts +1 -0
  13. package/dist/types/components/timeline/atomos/IconeStatus.vue.d.ts +1 -0
  14. package/dist/types/components/timeline/atomos/SubtituloEvento.vue.d.ts +1 -1
  15. package/dist/types/components/timeline/atomos/TituloEvento.vue.d.ts +1 -1
  16. package/dist/types/components/timeline/index.d.ts +4 -1
  17. package/dist/types/components/timeline/moleculas/AreaSalvamento.vue.d.ts +15 -0
  18. package/dist/types/components/timeline/moleculas/Botao.vue.d.ts +43 -0
  19. package/dist/types/components/timeline/moleculas/BotaoStatus.vue.d.ts +33 -0
  20. package/dist/types/components/timeline/moleculas/CabecalhoEventoDetalhado.vue.d.ts +32 -0
  21. package/dist/types/components/timeline/moleculas/DescricaoEvento.vue.d.ts +3 -3
  22. package/dist/types/components/timeline/moleculas/EventoTimeline.vue.d.ts +9 -12
  23. package/dist/types/components/timeline/moleculas/HoraEvento.vue.d.ts +1 -1
  24. package/dist/types/components/timeline/moleculas/Observacoes.vue.d.ts +30 -0
  25. package/dist/types/components/timeline/moleculas/PerfilTimeline.vue.d.ts +11 -9
  26. package/dist/types/components/timeline/moleculas/SeparadorPeriodo.vue.d.ts +0 -6
  27. package/dist/types/components/timeline/moleculas/StatusEvento.vue.d.ts +29 -0
  28. package/dist/types/components/timeline/moleculas/Topo.vue.d.ts +28 -1
  29. package/dist/types/components/timeline/organismos/EditarEvento.vue.d.ts +28 -0
  30. package/dist/types/components/timeline/organismos/EventoDetalhado.vue.d.ts +24 -0
  31. package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +2 -2
  32. package/dist/types/components/timeline/type.d.ts +2 -2
  33. package/dist/types/components/timeline/typeDetalhado.d.ts +15 -0
  34. package/package.json +2 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, reactive as C, computed as y, openBlock as a, createElementBlock as i, createElementVNode as T, normalizeClass as q, normalizeStyle as z, toDisplayString as v, resolveComponent as _, createVNode as f, ref as j, createBlock as b, createCommentVNode as E, Fragment as B, renderList as H } from "vue";
2
- const M = d({
3
- name: "categoria",
1
+ import { defineComponent as v, reactive as S, computed as b, openBlock as o, createElementBlock as s, createElementVNode as u, normalizeClass as T, normalizeStyle as O, toDisplayString as l, resolveComponent as d, createVNode as _, createBlock as y, createCommentVNode as E, ref as Q, Fragment as M, renderList as N, renderSlot as z, createTextVNode as j, pushScopeId as H, popScopeId as R, withCtx as k, Transition as D } from "vue";
2
+ const U = v({
3
+ name: "Icone Categoria",
4
4
  props: {
5
5
  iconeCategoria: {
6
6
  type: String,
@@ -24,150 +24,142 @@ const M = d({
24
24
  }
25
25
  },
26
26
  setup(e) {
27
- return e = C(e), {
28
- classes: y(() => ({
27
+ return e = S(e), {
28
+ classes: b(() => ({
29
29
  "bg-escuro": e.escuro,
30
30
  "bg-claro": !e.escuro,
31
31
  [`borda-${e.tipo || "padrao"}`]: !0
32
32
  })),
33
- style: y(() => ({
33
+ style: b(() => ({
34
34
  borderColor: e.borderColor,
35
35
  backgroundColor: e.backgroundColor
36
36
  }))
37
37
  };
38
38
  }
39
39
  });
40
- const p = (e, t) => {
41
- const r = e.__vccOpts || e;
42
- for (const [s, l] of t)
43
- r[s] = l;
44
- return r;
45
- }, O = { class: "areaCategoria" }, N = ["alt"], L = { class: "material-symbols-outlined" };
46
- function R(e, t, r, s, l, u) {
47
- return a(), i("div", O, [
48
- T("div", {
49
- class: q(["iconeCategoria", e.classes]),
50
- style: z(e.style),
40
+ const m = (e, t) => {
41
+ const n = e.__vccOpts || e;
42
+ for (const [i, c] of t)
43
+ n[i] = c;
44
+ return n;
45
+ }, W = { class: "areaCategoria" }, X = ["alt"], Z = { class: "material-symbols-outlined" };
46
+ function x(e, t, n, i, c, p) {
47
+ return o(), s("div", W, [
48
+ u("div", {
49
+ class: T(["iconeCategoria", e.classes]),
50
+ style: O(e.style),
51
51
  alt: e.categoria
52
52
  }, [
53
- T("span", L, v(e.iconeCategoria), 1)
54
- ], 14, N)
53
+ u("span", Z, l(e.iconeCategoria), 1)
54
+ ], 14, X)
55
55
  ]);
56
56
  }
57
- const F = /* @__PURE__ */ p(M, [["render", R], ["__scopeId", "data-v-01127706"]]), w = d({
58
- name: "status",
57
+ const w = /* @__PURE__ */ m(U, [["render", x], ["__scopeId", "data-v-f922d1fe"]]), ee = v({
58
+ name: "Icone Status",
59
59
  props: {
60
60
  status: {
61
61
  required: !0,
62
62
  type: String
63
63
  }
64
64
  },
65
- components: {},
66
65
  setup(e) {
67
- return e = C(e), {
68
- classes: y(() => ({
66
+ return e = S(e), {
67
+ classes: b(() => ({
69
68
  [`${e.status || "planejado"}`]: !0
70
69
  }))
71
70
  };
72
71
  }
73
72
  });
74
- function V(e, t, r, s, l, u) {
75
- return a(), i("div", {
76
- class: q([e.classes, "iconeStatus"])
73
+ function oe(e, t, n, i, c, p) {
74
+ return o(), s("div", {
75
+ class: T([e.classes, "iconeStatus"])
77
76
  }, null, 2);
78
77
  }
79
- const J = /* @__PURE__ */ p(w, [["render", V], ["__scopeId", "data-v-22a8820e"]]), Y = d({
78
+ const V = /* @__PURE__ */ m(ee, [["render", oe], ["__scopeId", "data-v-61335255"]]), te = v({
79
+ name: "Subtítulo Evento",
80
80
  props: {
81
81
  subtitulo: {
82
82
  required: !0,
83
83
  type: String
84
84
  }
85
- },
86
- components: {},
87
- setup() {
88
- return {};
89
85
  }
90
86
  });
91
- const G = { class: "subtitulo" };
92
- function K(e, t, r, s, l, u) {
93
- return a(), i("h4", G, v(e.subtitulo), 1);
87
+ const ae = { class: "subtitulo" };
88
+ function ne(e, t, n, i, c, p) {
89
+ return o(), s("h4", ae, l(e.subtitulo), 1);
94
90
  }
95
- const Q = /* @__PURE__ */ p(Y, [["render", K], ["__scopeId", "data-v-f5319628"]]), U = d({
91
+ const se = /* @__PURE__ */ m(te, [["render", ne], ["__scopeId", "data-v-5f7c5673"]]), re = v({
92
+ name: "Título Evento",
96
93
  props: {
97
94
  titulo: {
98
95
  required: !0,
99
96
  type: String
100
97
  }
101
- },
102
- components: {},
103
- setup() {
104
- return {};
105
98
  }
106
99
  });
107
- const W = { class: "titulo" };
108
- function X(e, t, r, s, l, u) {
109
- return a(), i("h3", W, v(e.titulo), 1);
100
+ const ie = { class: "titulo" };
101
+ function ce(e, t, n, i, c, p) {
102
+ return o(), s("h3", ie, l(e.titulo), 1);
110
103
  }
111
- const Z = /* @__PURE__ */ p(U, [["render", X], ["__scopeId", "data-v-fce23b0e"]]), x = d({
104
+ const le = /* @__PURE__ */ m(re, [["render", ce], ["__scopeId", "data-v-7369e837"]]), de = v({
105
+ name: "Descrição Evento",
112
106
  props: {
113
107
  titulo: {
114
108
  required: !0,
115
109
  type: String
116
110
  },
117
111
  subtitulo: {
118
- required: !0,
112
+ required: !1,
119
113
  type: String
120
114
  }
121
115
  },
122
- components: { TituloEvento: Z, SubtituloEvento: Q },
123
- setup() {
124
- return {};
125
- }
116
+ components: { TituloEvento: le, SubtituloEvento: se }
126
117
  });
127
- const ee = {
128
- key: 0,
129
- class: "descricaoEvento"
130
- }, te = {
131
- key: 1,
132
- class: "descricaoEvento",
133
- style: { "padding-top": "3.3rem" }
134
- };
135
- function oe(e, t, r, s, l, u) {
136
- const c = _("TituloEvento"), S = _("SubtituloEvento");
137
- return e.subtitulo ? (a(), i("div", ee, [
138
- f(c, { titulo: e.titulo }, null, 8, ["titulo"]),
139
- f(S, { subtitulo: e.subtitulo }, null, 8, ["subtitulo"])
140
- ])) : (a(), i("div", te, [
141
- f(c, { titulo: e.titulo }, null, 8, ["titulo"])
142
- ]));
118
+ function ue(e, t, n, i, c, p) {
119
+ const r = d("TituloEvento"), $ = d("SubtituloEvento");
120
+ return o(), s("div", {
121
+ class: "descricaoEvento",
122
+ style: O(`${e.subtitulo ? "" : "padding-top: 3.3rem"}`)
123
+ }, [
124
+ _(r, { titulo: e.titulo }, null, 8, ["titulo"]),
125
+ e.subtitulo ? (o(), y($, {
126
+ key: 0,
127
+ subtitulo: e.subtitulo
128
+ }, null, 8, ["subtitulo"])) : E("", !0)
129
+ ], 4);
143
130
  }
144
- const ae = /* @__PURE__ */ p(x, [["render", oe], ["__scopeId", "data-v-bb6e1ced"]]), re = d({
145
- name: "hora",
131
+ const _e = /* @__PURE__ */ m(de, [["render", ue], ["__scopeId", "data-v-171435d6"]]), pe = v({
132
+ name: "Hora",
146
133
  props: {
147
134
  hora: {
148
135
  required: !0,
149
136
  type: Date
150
137
  },
151
138
  aparencia: {
152
- type: String
139
+ type: String,
140
+ default: "padrao",
141
+ validator(e) {
142
+ return ["padrao", "riscada"].includes(e);
143
+ }
153
144
  }
154
145
  },
155
146
  components: {},
156
147
  setup(e) {
157
- const t = j(e.aparencia);
158
148
  return {
159
- classes: y(() => ({
160
- [`hora-${t || ""}`]: !0
149
+ horas: Q(new Date(e.hora)),
150
+ classes: b(() => ({
151
+ [`hora-${e.aparencia || ""}`]: !0
161
152
  }))
162
153
  };
163
154
  }
164
155
  });
165
- function ne(e, t, r, s, l, u) {
166
- return a(), i("div", {
167
- class: q(["hora", e.classes])
168
- }, v(e.hora.getHours()) + ":" + v(e.hora.getMinutes().toString().padStart(2, "0")), 3);
156
+ function ve(e, t, n, i, c, p) {
157
+ return o(), s("div", {
158
+ class: T(["hora", e.classes])
159
+ }, l(e.horas.getHours()) + ":" + l(e.horas.getMinutes().toString().padStart(2, "0")), 3);
169
160
  }
170
- const se = /* @__PURE__ */ p(re, [["render", ne], ["__scopeId", "data-v-071a9ea4"]]), ie = d({
161
+ const L = /* @__PURE__ */ m(pe, [["render", ve], ["__scopeId", "data-v-dacdabdc"]]), me = v({
162
+ name: "Hora Evento",
171
163
  props: {
172
164
  horaPrevista: {
173
165
  type: Date,
@@ -177,56 +169,41 @@ const se = /* @__PURE__ */ p(re, [["render", ne], ["__scopeId", "data-v-071a9ea4
177
169
  required: !1,
178
170
  type: Date
179
171
  }
180
- // aparencia: {
181
- // type: String,
182
- // },
183
172
  },
184
- components: { Hora: se },
185
- setup() {
186
- return {};
187
- }
173
+ components: { Hora: L }
188
174
  });
189
- const le = { class: "areaHora" }, ce = { class: "horaEvento" };
190
- function ue(e, t, r, s, l, u) {
191
- const c = _("Hora");
192
- return a(), i("div", le, [
193
- T("div", ce, [
194
- e.horaRealizada ? (a(), b(c, {
175
+ const fe = { class: "areaHora" }, $e = { class: "horaEvento" };
176
+ function he(e, t, n, i, c, p) {
177
+ const r = d("Hora");
178
+ return o(), s("div", fe, [
179
+ u("div", $e, [
180
+ e.horaRealizada ? (o(), y(r, {
195
181
  key: 0,
196
- class: "horaRealizada texto-grande",
197
182
  hora: e.horaRealizada,
198
183
  style: { "padding-top": "0.3rem" }
199
184
  }, null, 8, ["hora"])) : E("", !0),
200
- e.horaRealizada ? (a(), b(c, {
201
- key: 1,
202
- class: "horaPlanejada texto-pequeno",
203
- hora: e.horaPrevista
204
- }, null, 8, ["hora"])) : (a(), b(c, {
205
- key: 2,
206
- class: "horaRealizada texto-grande",
185
+ _(r, {
207
186
  hora: e.horaPrevista,
208
- style: { "padding-top": "1.2rem" }
209
- }, null, 8, ["hora"]))
187
+ aparencia: e.horaRealizada ? "riscada" : "padrao",
188
+ style: O(e.horaRealizada ? "" : "padding-top: 1.2rem")
189
+ }, null, 8, ["hora", "aparencia", "style"])
210
190
  ])
211
191
  ]);
212
192
  }
213
- const de = /* @__PURE__ */ p(ie, [["render", ue], ["__scopeId", "data-v-04f44efd"]]), pe = d({
214
- name: "destaque",
193
+ const ge = /* @__PURE__ */ m(me, [["render", he], ["__scopeId", "data-v-da519ace"]]), ye = v({
194
+ name: "Destaque",
215
195
  props: {
216
- destaque: {
196
+ texto: {
217
197
  type: String
218
198
  }
219
- },
220
- components: {},
221
- setup() {
222
- return {};
223
199
  }
224
200
  });
225
- const _e = { class: "destaqueEvento texto-pequeno" };
226
- function me(e, t, r, s, l, u) {
227
- return a(), i("div", _e, v(e.destaque), 1);
201
+ const be = { class: "destaqueEvento texto-pequeno" };
202
+ function Ee(e, t, n, i, c, p) {
203
+ return o(), s("div", be, l(e.texto), 1);
228
204
  }
229
- const ve = /* @__PURE__ */ p(pe, [["render", me], ["__scopeId", "data-v-b0b0beb7"]]), ge = d({
205
+ const Se = /* @__PURE__ */ m(ye, [["render", Ee], ["__scopeId", "data-v-c2f02de8"]]), Ce = v({
206
+ name: "Evento Timeline",
230
207
  props: {
231
208
  status: {
232
209
  required: !0,
@@ -257,62 +234,62 @@ const ve = /* @__PURE__ */ p(pe, [["render", me], ["__scopeId", "data-v-b0b0beb7
257
234
  type: String
258
235
  },
259
236
  subtitulo: {
260
- required: !0,
237
+ required: !1,
261
238
  type: String
262
239
  },
263
240
  destaque: {
264
- required: !0,
241
+ required: !1,
265
242
  type: String
266
243
  },
267
- aoCLicar: {
244
+ aoClicar: {
268
245
  required: !1,
269
246
  type: Function
270
247
  }
271
248
  },
272
249
  components: {
273
- IconeStatus: J,
274
- IconeCategoria: F,
275
- HoraEvento: de,
276
- DescricaoEvento: ae,
277
- Destaque: ve
250
+ IconeStatus: V,
251
+ IconeCategoria: w,
252
+ HoraEvento: ge,
253
+ DescricaoEvento: _e,
254
+ Destaque: Se
278
255
  },
279
256
  setup(e) {
280
257
  return {
281
- eventoSelecionado: y(() => ({
258
+ eventoSelecionado: b(() => ({
282
259
  atual: e.ehAtual,
283
260
  padrao: e.ehAtual
284
261
  })),
285
- clicavel: y(() => ({
286
- clicavel: e.aoCLicar !== void 0
262
+ clicavel: b(() => ({
263
+ clicavel: e.aoClicar !== void 0
287
264
  }))
288
265
  };
289
266
  }
290
267
  });
291
- const fe = ["onclick"];
292
- function ye(e, t, r, s, l, u) {
293
- const c = _("IconeStatus"), S = _("HoraEvento"), P = _("IconeCategoria"), o = _("DescricaoEvento"), n = _("Destaque");
294
- return a(), i("article", {
295
- class: q(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
296
- onclick: e.aoCLicar
268
+ const Te = ["onclick"];
269
+ function qe(e, t, n, i, c, p) {
270
+ const r = d("IconeStatus"), $ = d("HoraEvento"), h = d("IconeCategoria"), a = d("DescricaoEvento"), f = d("Destaque");
271
+ return o(), s("article", {
272
+ class: T(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
273
+ onclick: e.aoClicar
297
274
  }, [
298
- f(c, { status: e.status }, null, 8, ["status"]),
299
- f(S, {
275
+ _(r, { status: e.status }, null, 8, ["status"]),
276
+ _($, {
300
277
  horaPrevista: e.previsto,
301
278
  horaRealizada: e.realizado
302
279
  }, null, 8, ["horaPrevista", "horaRealizada"]),
303
- f(P, {
280
+ _(h, {
304
281
  iconeCategoria: e.categoria.icone,
305
282
  categoria: e.categoria.nome
306
283
  }, null, 8, ["iconeCategoria", "categoria"]),
307
- f(o, {
284
+ _(a, {
308
285
  titulo: e.titulo,
309
286
  subtitulo: e.subtitulo
310
287
  }, null, 8, ["titulo", "subtitulo"]),
311
- f(n, { destaque: e.destaque }, null, 8, ["destaque"])
312
- ], 10, fe);
288
+ _(f, { texto: e.destaque }, null, 8, ["texto"])
289
+ ], 10, Te);
313
290
  }
314
- const $e = /* @__PURE__ */ p(ge, [["render", ye]]), he = d({
315
- name: "BoxData",
291
+ const J = /* @__PURE__ */ m(Ce, [["render", qe]]), Pe = v({
292
+ name: "Box Data",
316
293
  props: {
317
294
  dataNumero: {
318
295
  required: !0,
@@ -322,53 +299,47 @@ const $e = /* @__PURE__ */ p(ge, [["render", ye]]), he = d({
322
299
  type: String
323
300
  }
324
301
  },
325
- components: {},
326
302
  setup(e) {
327
- return e = C(e), {
328
- classes: y(() => ({
303
+ return e = S(e), {
304
+ classes: b(() => ({
329
305
  [`${e.aparencia || "padrao"}`]: !0
330
306
  }))
331
307
  };
332
308
  }
333
309
  });
334
- function be(e, t, r, s, l, u) {
335
- return a(), i("h3", {
336
- class: q(["boxData padrao", e.classes])
337
- }, v(e.dataNumero), 3);
310
+ function ke(e, t, n, i, c, p) {
311
+ return o(), s("h3", {
312
+ class: T(["boxData padrao", e.classes])
313
+ }, l(e.dataNumero), 3);
338
314
  }
339
- const Se = /* @__PURE__ */ p(he, [["render", be], ["__scopeId", "data-v-5e2b8273"]]), Te = d({
315
+ const De = /* @__PURE__ */ m(Pe, [["render", ke], ["__scopeId", "data-v-385cc692"]]), Ie = v({
340
316
  name: "SeparadorPeriodo",
341
317
  props: {
342
318
  dataSeparador: {
343
319
  required: !0,
344
320
  type: Date
345
- },
346
- aparencia: {
347
- type: String
348
321
  }
349
322
  },
350
- components: { BoxData: Se },
323
+ components: { BoxData: De },
351
324
  setup(e) {
352
325
  const t = new Array(12);
353
- return t[0] = "Janeiro", t[1] = "Fevereiro", t[2] = "Março", t[3] = "Abril", t[4] = "Maio", t[5] = "Junho", t[6] = "Julho", t[7] = "Agosto", t[8] = "Setembro", t[9] = "Outubro", t[10] = "Novembro", t[11] = "Dezembro", { mesCorrente: (s) => t[s] };
326
+ return t[0] = "Janeiro", t[1] = "Fevereiro", t[2] = "Março", t[3] = "Abril", t[4] = "Maio", t[5] = "Junho", t[6] = "Julho", t[7] = "Agosto", t[8] = "Setembro", t[9] = "Outubro", t[10] = "Novembro", t[11] = "Dezembro", { mesCorrente: (i) => t[i] };
354
327
  }
355
328
  });
356
- const qe = { class: "separadorPeriodo" }, Pe = { class: "areaData" };
357
- function Ee(e, t, r, s, l, u) {
358
- const c = _("BoxData");
359
- return a(), i("div", qe, [
360
- T("div", Pe, [
361
- f(c, {
362
- dataNumero: e.dataSeparador.getDate(),
363
- aparencia: e.aparencia
364
- }, null, 8, ["dataNumero", "aparencia"])
329
+ const ze = { class: "separadorPeriodo" }, Be = { class: "areaData" }, Ae = { class: "titulo" };
330
+ function Oe(e, t, n, i, c, p) {
331
+ const r = d("BoxData");
332
+ return o(), s("div", ze, [
333
+ u("div", Be, [
334
+ _(r, {
335
+ dataNumero: e.dataSeparador.getDate()
336
+ }, null, 8, ["dataNumero"])
365
337
  ]),
366
- T("h3", {
367
- class: q(["titulo", e.aparencia])
368
- }, v(e.mesCorrente(e.dataSeparador.getMonth())) + " de " + v(e.dataSeparador.getFullYear()), 3)
338
+ u("h3", Ae, l(e.mesCorrente(e.dataSeparador.getMonth())) + " de " + l(e.dataSeparador.getFullYear()), 1)
369
339
  ]);
370
340
  }
371
- const Ce = /* @__PURE__ */ p(Te, [["render", Ee]]), ke = d({
341
+ const je = /* @__PURE__ */ m(Ie, [["render", Oe]]), He = v({
342
+ name: "Avatar Timeline",
372
343
  props: {
373
344
  imagem: {
374
345
  type: String
@@ -376,25 +347,25 @@ const Ce = /* @__PURE__ */ p(Te, [["render", Ee]]), ke = d({
376
347
  icone: {
377
348
  type: String
378
349
  }
379
- },
380
- setup() {
381
- return {};
382
350
  }
383
351
  });
384
- const De = { class: "avatar" }, Ie = ["src"], ze = {
352
+ const Re = { class: "avatar" }, Fe = ["src"], Me = {
385
353
  key: 1,
386
354
  class: "material-symbols-outlined"
355
+ }, Ne = {
356
+ key: 2,
357
+ class: "material-symbols-outlined"
387
358
  };
388
- function Ae(e, t, r, s, l, u) {
389
- return a(), i("div", De, [
390
- e.imagem ? (a(), i("img", {
359
+ function we(e, t, n, i, c, p) {
360
+ return o(), s("div", Re, [
361
+ e.imagem ? (o(), s("img", {
391
362
  key: 0,
392
363
  src: e.imagem
393
- }, null, 8, Ie)) : e.icone ? (a(), i("span", ze, v(e.icone), 1)) : E("", !0)
364
+ }, null, 8, Fe)) : e.icone ? (o(), s("span", Me, l(e.icone), 1)) : (o(), s("span", Ne, " person "))
394
365
  ]);
395
366
  }
396
- const je = /* @__PURE__ */ p(ke, [["render", Ae], ["__scopeId", "data-v-a913d26b"]]), Be = d({
397
- components: { AvatarTimeline: je },
367
+ const Ve = /* @__PURE__ */ m(He, [["render", we], ["__scopeId", "data-v-bd3d61f3"]]), Le = v({
368
+ components: { AvatarTimeline: Ve },
398
369
  props: {
399
370
  imagemPerfil: {
400
371
  type: String
@@ -405,41 +376,40 @@ const je = /* @__PURE__ */ p(ke, [["render", Ae], ["__scopeId", "data-v-a913d26b
405
376
  iconePerfil: {
406
377
  type: String
407
378
  },
408
- backgroundColor: {
409
- type: String,
410
- default: "var(--cor-primaria)"
379
+ formatoReduzido: {
380
+ type: Boolean,
381
+ default: !1
411
382
  }
412
383
  },
413
384
  setup(e) {
414
- return e = C(e), {
415
- style: y(() => ({
416
- backgroundColor: e.backgroundColor
385
+ return e = S(e), {
386
+ classes: b(() => ({
387
+ "formato-reduzido": e.formatoReduzido,
388
+ "formato-normal": !e.formatoReduzido
417
389
  }))
418
390
  };
419
391
  }
420
392
  });
421
- const He = { class: "nome" };
422
- function Me(e, t, r, s, l, u) {
423
- const c = _("AvatarTimeline");
424
- return a(), i("section", {
425
- class: "perfilTimeline",
426
- style: z(e.style)
393
+ const Je = { class: "nome" };
394
+ function Ye(e, t, n, i, c, p) {
395
+ const r = d("AvatarTimeline");
396
+ return o(), s("section", {
397
+ class: T(["perfilTimeline", e.classes])
427
398
  }, [
428
- e.imagemPerfil ? (a(), b(c, {
399
+ e.imagemPerfil ? (o(), y(r, {
429
400
  key: 0,
430
401
  imagem: e.imagemPerfil
431
- }, null, 8, ["imagem"])) : e.iconePerfil ? (a(), b(c, {
402
+ }, null, 8, ["imagem"])) : e.iconePerfil ? (o(), y(r, {
432
403
  key: 1,
433
404
  icone: e.iconePerfil
434
405
  }, null, 8, ["icone"])) : E("", !0),
435
- T("h2", He, v(e.nomePerfil), 1)
436
- ], 4);
406
+ u("h2", Je, l(e.nomePerfil), 1)
407
+ ], 2);
437
408
  }
438
- const Oe = /* @__PURE__ */ p(Be, [["render", Me]]);
439
- const Ne = d({
409
+ const Y = /* @__PURE__ */ m(Le, [["render", Ye]]), Ge = v({
440
410
  props: {
441
411
  perfilTimeline: {
442
- required: !0,
412
+ required: !1,
443
413
  type: Object
444
414
  },
445
415
  eventosTimeline: {
@@ -448,137 +418,564 @@ const Ne = d({
448
418
  }
449
419
  },
450
420
  components: {
451
- PerfilTimeline: Oe,
452
- SeparadorPeriodo: Ce,
453
- EventoTimeline: $e
421
+ PerfilTimeline: Y,
422
+ SeparadorPeriodo: je,
423
+ EventoTimeline: J
454
424
  },
455
425
  setup(e) {
456
- const t = C(
426
+ const t = S(
457
427
  e.eventosTimeline
458
428
  );
459
- let r = C(t);
460
- function s() {
461
- r = t;
462
- const o = c(r);
463
- r.map((n) => (o[0].id === n.id ? (n.atual = !0, n.scroll = !0, P()) : (n.atual = !1, n.scroll = !1), {
464
- evento: n
429
+ let n = S(t);
430
+ function i() {
431
+ n = t;
432
+ const a = r(n);
433
+ n.map((f) => (a[0] === f ? (f.atual = !0, f.scroll = !0, h()) : (f.atual = !1, f.scroll = !1), {
434
+ evento: f
465
435
  }));
466
436
  }
467
- const l = () => {
468
- setInterval(s, 6e4);
469
- }, u = (o, n) => {
470
- const m = o.getDay() === n.getDay(), $ = o.getMonth() === n.getMonth(), g = o.getFullYear() === n.getFullYear();
471
- return m && $ && g;
472
- }, c = (o) => {
473
- if (o) {
474
- const n = Date.now();
475
- let m = null, $ = [];
476
- for (const g of o) {
477
- const h = g.data.getTime();
478
- if (g.status === "planejado" || g.status === "atrasado") {
479
- const k = Math.abs(n - g.data.getTime());
480
- if (m === null || k < m && h <= n)
481
- m = k, $.length = 0;
482
- else if (k > m)
437
+ const c = () => {
438
+ setInterval(i, 6e4);
439
+ }, p = (a, f) => {
440
+ const g = a.getDay() === f.getDay(), q = a.getMonth() === f.getMonth(), C = a.getFullYear() === f.getFullYear();
441
+ return g && q && C;
442
+ }, r = (a) => {
443
+ if (a) {
444
+ const f = Date.now();
445
+ let g = null, q = [];
446
+ for (const C of a) {
447
+ const P = C.data.getTime();
448
+ if (C.status === "planejado" || C.status === "atrasado") {
449
+ const I = Math.abs(f - C.data.getTime());
450
+ if (g === null || I < g && P <= f)
451
+ g = I, q.length = 0;
452
+ else if (I > g)
483
453
  continue;
484
- $.push(g);
454
+ q.push(C);
485
455
  }
486
456
  }
487
- return $;
457
+ return q;
488
458
  } else
489
459
  return [];
490
- }, S = y(() => {
491
- l();
492
- const o = r.sort(
493
- (n, m) => n.data.getTime() - m.data.getTime()
460
+ }, $ = b(() => {
461
+ c();
462
+ const a = n.sort(
463
+ (f, g) => f.data.getTime() - g.data.getTime()
494
464
  );
495
- if (o) {
496
- let n = [], m = null, $ = 0, g;
497
- for (const h of o) {
498
- const k = /* @__PURE__ */ new Date(), D = h.data;
499
- g = h.status;
500
- const A = h.tolerancia * 60 * 1e3;
501
- g === "planejado" && D.getTime() + A < k.getTime() && (h.status = "atrasado"), (!m || !u(m, D)) && (m = D, n.push({
465
+ if (a) {
466
+ let f = [], g = null, q = 0, C;
467
+ for (const P of a) {
468
+ const I = /* @__PURE__ */ new Date(), A = P.data;
469
+ C = P.status;
470
+ const K = P.tolerancia * 60 * 1e3;
471
+ C === "planejado" && A.getTime() + K < I.getTime() && (P.status = "atrasado"), (!g || !p(g, A)) && (g = A, f.push({
502
472
  tipo: "dia",
503
- valor: h.data,
504
- key: ++$
505
- })), n.push({
473
+ valor: P.data,
474
+ key: ++q
475
+ })), f.push({
506
476
  tipo: "evento",
507
- valor: h,
508
- key: ++$
477
+ valor: P,
478
+ key: ++q
509
479
  });
510
480
  }
511
- return n;
481
+ return f;
512
482
  } else
513
483
  return [];
514
- }), P = () => {
515
- const o = document.querySelector(".atual");
516
- o == null || o.scrollIntoView({
484
+ }), h = () => {
485
+ const a = document.querySelector(".atual");
486
+ a == null || a.scrollIntoView({
517
487
  behavior: "smooth",
518
488
  block: "center"
519
489
  });
520
490
  };
521
- return s(), {
522
- eventosPorTipo: S,
523
- scrollParaItemAtual: P
491
+ return i(), {
492
+ eventosPorTipo: $,
493
+ scrollParaItemAtual: h
494
+ // clicar,
524
495
  };
525
496
  },
526
497
  mounted() {
527
498
  this.scrollParaItemAtual();
528
499
  }
529
500
  });
530
- const Le = { class: "areaTimeline" };
531
- function Re(e, t, r, s, l, u) {
532
- const c = _("PerfilTimeline"), S = _("SeparadorPeriodo"), P = _("EventoTimeline");
533
- return a(), i("div", Le, [
534
- e.perfilTimeline !== null ? (a(), b(c, {
501
+ const Ke = { class: "areaTimeline" }, Qe = { class: "timeline" };
502
+ function Ue(e, t, n, i, c, p) {
503
+ const r = d("PerfilTimeline"), $ = d("SeparadorPeriodo"), h = d("EventoTimeline");
504
+ return o(), s("div", Ke, [
505
+ e.perfilTimeline ? (o(), y(r, {
535
506
  key: 0,
536
507
  nomePerfil: e.perfilTimeline.nome,
537
508
  imagemPerfil: e.perfilTimeline.imagem,
538
509
  iconePerfil: e.perfilTimeline.icone
539
510
  }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : E("", !0),
540
- T("section", {
541
- class: q(["timeline", { marginTop: e.perfilTimeline !== null }])
542
- }, [
543
- (a(!0), i(B, null, H(e.eventosPorTipo, (o) => (a(), i("div", {
544
- key: o.key
511
+ u("section", Qe, [
512
+ (o(!0), s(M, null, N(e.eventosPorTipo, (a) => (o(), s("div", {
513
+ key: a.key
545
514
  }, [
546
- o.tipo === "dia" ? (a(), b(S, {
515
+ a.tipo === "dia" ? (o(), y($, {
547
516
  key: 0,
548
- dataSeparador: o.valor
517
+ dataSeparador: a.valor
549
518
  }, null, 8, ["dataSeparador"])) : E("", !0),
550
- o.tipo === "evento" ? (a(), b(P, {
519
+ a.tipo === "evento" ? (o(), y(h, {
551
520
  key: 1,
552
- status: o.valor.status,
553
- criticidade: o.valor.criticidade,
554
- previsto: o.valor.previsto,
555
- realizado: o.valor.realizado,
556
- categoria: o.valor.categoria,
557
- titulo: o.valor.titulo,
558
- subtitulo: o.valor.subtitulo,
559
- destaque: o.valor.destaque,
560
- ehAtual: o.valor.atual,
561
- aoCLicar: o.valor.aoCLicar
562
- }, null, 8, ["status", "criticidade", "previsto", "realizado", "categoria", "titulo", "subtitulo", "destaque", "ehAtual", "aoCLicar"])) : E("", !0)
521
+ status: a.valor.status,
522
+ criticidade: a.valor.criticidade,
523
+ previsto: a.valor.previsto,
524
+ realizado: a.valor.realizado,
525
+ categoria: a.valor.categoria,
526
+ titulo: a.valor.titulo,
527
+ subtitulo: a.valor.subtitulo,
528
+ destaque: a.valor.destaque,
529
+ ehAtual: a.valor.atual,
530
+ aoClicar: () => {
531
+ a && a.valor && a.valor.aoClicar && a.valor.aoClicar(a.valor);
532
+ }
533
+ }, null, 8, ["status", "criticidade", "previsto", "realizado", "categoria", "titulo", "subtitulo", "destaque", "ehAtual", "aoClicar"])) : E("", !0)
563
534
  ]))), 128))
564
- ], 2)
535
+ ])
536
+ ]);
537
+ }
538
+ const We = /* @__PURE__ */ m(Ge, [["render", Ue]]), Xe = v({
539
+ name: "Botao",
540
+ props: {
541
+ titulo: {
542
+ type: String
543
+ },
544
+ icone: {
545
+ type: String
546
+ },
547
+ aparencia: {
548
+ type: String
549
+ },
550
+ tamanho: {
551
+ type: String
552
+ },
553
+ aoClicar: {
554
+ required: !1,
555
+ type: Function
556
+ }
557
+ },
558
+ setup(e) {
559
+ return e = S(e), {
560
+ classes: b(() => ({
561
+ [`${e.aparencia || "outline"}`]: !0,
562
+ [`${e.tamanho || "medio"}`]: !0
563
+ }))
564
+ };
565
+ }
566
+ });
567
+ const Ze = ["onclick"], xe = {
568
+ key: 0,
569
+ class: "material-symbols-outlined"
570
+ };
571
+ function eo(e, t, n, i, c, p) {
572
+ return o(), s("button", {
573
+ class: T(["btn", e.classes]),
574
+ onclick: e.aoClicar
575
+ }, [
576
+ z(e.$slots, "default", {}, () => [
577
+ e.icone ? (o(), s("span", xe, l(e.icone), 1)) : E("", !0),
578
+ j(" " + l(e.titulo), 1)
579
+ ], !0)
580
+ ], 10, Ze);
581
+ }
582
+ const B = /* @__PURE__ */ m(Xe, [["render", eo], ["__scopeId", "data-v-e91d41fc"]]), oo = v({
583
+ components: { Botao: B, PerfilTimeline: Y, IconeCategoria: w, Hora: L },
584
+ name: "CabecalhoEventoDetalhado",
585
+ props: {
586
+ perfilEvento: {
587
+ required: !0,
588
+ type: Object
589
+ },
590
+ dadosEvento: {
591
+ required: !0,
592
+ type: Object
593
+ },
594
+ aoClicar: {
595
+ required: !1,
596
+ type: Function
597
+ }
598
+ },
599
+ setup(e) {
600
+ return {};
601
+ }
602
+ });
603
+ const G = (e) => (H("data-v-e8d44815"), e = e(), R(), e), to = {
604
+ key: 1,
605
+ class: "criticidade"
606
+ }, ao = { class: "titulo" }, no = { class: "dataHora" }, so = ["onclick"], ro = /* @__PURE__ */ G(() => /* @__PURE__ */ u("span", { class: "material-symbols-outlined" }, " calendar_month ", -1)), io = { class: "horaEvento" }, co = {
607
+ key: 0,
608
+ class: "horaRealizada texto-grande"
609
+ }, lo = {
610
+ key: 1,
611
+ class: "horaPlanejada texto-pequeno"
612
+ }, uo = {
613
+ key: 2,
614
+ class: "horaRealizada texto-grande"
615
+ }, _o = ["onclick"], po = /* @__PURE__ */ G(() => /* @__PURE__ */ u("span", { class: "material-symbols-outlined" }, " schedule ", -1)), vo = { class: "horaEvento" };
616
+ function mo(e, t, n, i, c, p) {
617
+ const r = d("PerfilTimeline"), $ = d("IconeCategoria"), h = d("Hora");
618
+ return o(), s("section", {
619
+ class: T(["cabecalho-evento", ["criticidade-" + e.dadosEvento.criticidade]])
620
+ }, [
621
+ e.perfilEvento ? (o(), y(r, {
622
+ key: 0,
623
+ nomePerfil: e.perfilEvento.nome,
624
+ imagemPerfil: e.perfilEvento.imagem,
625
+ iconePerfil: e.perfilEvento.icone,
626
+ formatoReduzido: !0
627
+ }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : E("", !0),
628
+ e.dadosEvento.criticidade !== "baixa" ? (o(), s("div", to, " Criticidade: " + l(e.dadosEvento.criticidade), 1)) : E("", !0),
629
+ u("div", ao, [
630
+ _($, {
631
+ iconeCategoria: e.dadosEvento.categoria.icone,
632
+ categoria: e.dadosEvento.categoria.nome
633
+ }, null, 8, ["iconeCategoria", "categoria"]),
634
+ u("h1", null, l(e.dadosEvento.titulo), 1)
635
+ ]),
636
+ u("div", no, [
637
+ u("div", {
638
+ onclick: e.aoClicar,
639
+ class: "box"
640
+ }, [
641
+ ro,
642
+ u("div", io, [
643
+ e.dadosEvento.realizado ? (o(), s("div", co, l(e.dadosEvento.realizado.toLocaleDateString()), 1)) : E("", !0),
644
+ e.dadosEvento.realizado ? (o(), s("div", lo, l(e.dadosEvento.realizado.toLocaleDateString()), 1)) : (o(), s("div", uo, l(e.dadosEvento.previsto.toLocaleDateString()), 1))
645
+ ])
646
+ ], 8, so),
647
+ u("div", {
648
+ onclick: e.aoClicar,
649
+ class: "box"
650
+ }, [
651
+ po,
652
+ u("div", vo, [
653
+ e.dadosEvento.realizado ? (o(), y(h, {
654
+ key: 0,
655
+ class: "horaRealizada texto-grande",
656
+ hora: e.dadosEvento.realizado
657
+ }, null, 8, ["hora"])) : E("", !0),
658
+ e.dadosEvento.realizado ? (o(), y(h, {
659
+ key: 1,
660
+ class: "horaPlanejada texto-pequeno",
661
+ hora: e.dadosEvento.previsto
662
+ }, null, 8, ["hora"])) : (o(), y(h, {
663
+ key: 2,
664
+ class: "horaRealizada texto-grande",
665
+ hora: e.dadosEvento.previsto
666
+ }, null, 8, ["hora"]))
667
+ ])
668
+ ], 8, _o)
669
+ ])
670
+ ], 2);
671
+ }
672
+ const fo = /* @__PURE__ */ m(oo, [["render", mo], ["__scopeId", "data-v-e8d44815"]]), $o = v({
673
+ components: { Botao: B },
674
+ name: "Observacoes",
675
+ props: {
676
+ tituloBotao: {
677
+ type: String
678
+ },
679
+ aoClicar: {
680
+ required: !1,
681
+ type: Function
682
+ },
683
+ observacoes: {
684
+ required: !0,
685
+ type: Object
686
+ }
687
+ },
688
+ setup(e) {
689
+ return e.observacoes.sort(
690
+ (t, n) => n.criadaEm.getTime() - t.criadaEm.getTime()
691
+ ), e = S(e), {};
692
+ }
693
+ });
694
+ const ho = (e) => (H("data-v-e90a0cb4"), e = e(), R(), e), go = { class: "box box-observacoes" }, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */ u("h3", null, "Observações:", -1)), bo = { class: "lista-obs" }, Eo = { class: "texto" }, So = { class: "autor" };
695
+ function Co(e, t, n, i, c, p) {
696
+ const r = d("Botao");
697
+ return o(), s("section", go, [
698
+ yo,
699
+ u("ul", bo, [
700
+ (o(!0), s(M, null, N(e.observacoes, ($, h) => (o(), s("li", {
701
+ key: h,
702
+ class: "lista-item"
703
+ }, [
704
+ u("p", Eo, l($.mensagem), 1),
705
+ u("div", So, l($.autor.nome) + " em " + l($.criadaEm.toLocaleDateString()) + " às " + l($.criadaEm.getHours()) + ":" + l($.criadaEm.getMinutes().toString().padStart(2, "0")), 1)
706
+ ]))), 128))
707
+ ]),
708
+ _(r, {
709
+ titulo: e.tituloBotao,
710
+ aoClicar: e.aoClicar,
711
+ icone: "add",
712
+ aparencia: "preenchido",
713
+ tamanho: "pequeno"
714
+ }, null, 8, ["titulo", "aoClicar"])
715
+ ]);
716
+ }
717
+ const To = /* @__PURE__ */ m($o, [["render", Co], ["__scopeId", "data-v-e90a0cb4"]]), qo = v({
718
+ components: { Botao: B, IconeStatus: V },
719
+ name: "BotaoStatus",
720
+ props: {
721
+ aparencia: {
722
+ type: String
723
+ },
724
+ status: {
725
+ required: !0,
726
+ type: String
727
+ },
728
+ aoClicar: {
729
+ required: !1,
730
+ type: Function
731
+ }
732
+ },
733
+ setup(e) {
734
+ return e = S(e), {
735
+ classes: b(() => ({
736
+ [`${e.status || "planejado"}`]: !0
737
+ }))
738
+ };
739
+ }
740
+ });
741
+ function Po(e, t, n, i, c, p) {
742
+ const r = d("IconeStatus"), $ = d("Botao");
743
+ return o(), y($, {
744
+ aparencia: e.aparencia,
745
+ class: T(e.classes),
746
+ aoClicar: e.aoClicar
747
+ }, {
748
+ default: k(() => [
749
+ _(r, {
750
+ class: "icone",
751
+ status: e.status
752
+ }, null, 8, ["status"]),
753
+ j(" " + l(e.status), 1)
754
+ ]),
755
+ _: 1
756
+ }, 8, ["aparencia", "class", "aoClicar"]);
757
+ }
758
+ const ko = /* @__PURE__ */ m(qo, [["render", Po], ["__scopeId", "data-v-dc6d6557"]]), Do = v({
759
+ components: { BotaoStatus: ko },
760
+ name: "StatusEvento",
761
+ props: {
762
+ aparencia: {
763
+ type: String
764
+ },
765
+ status: {
766
+ required: !0,
767
+ type: String
768
+ },
769
+ aoClicar: {
770
+ required: !1,
771
+ type: Function
772
+ }
773
+ },
774
+ setup(e) {
775
+ return e = S(e), {};
776
+ }
777
+ });
778
+ const Io = (e) => (H("data-v-69bc6463"), e = e(), R(), e), zo = { class: "box box-status" }, Bo = /* @__PURE__ */ Io(() => /* @__PURE__ */ u("h3", null, "Status:", -1));
779
+ function Ao(e, t, n, i, c, p) {
780
+ const r = d("BotaoStatus");
781
+ return o(), s("section", zo, [
782
+ Bo,
783
+ _(r, {
784
+ aparencia: e.aparencia,
785
+ aoClicar: e.aoClicar,
786
+ status: e.status
787
+ }, null, 8, ["aparencia", "aoClicar", "status"])
788
+ ]);
789
+ }
790
+ const Oo = /* @__PURE__ */ m(Do, [["render", Ao], ["__scopeId", "data-v-69bc6463"]]), jo = v({
791
+ props: {
792
+ perfilEvento: {
793
+ required: !0,
794
+ type: Object
795
+ },
796
+ dadosEvento: {
797
+ required: !0,
798
+ type: Object
799
+ }
800
+ },
801
+ components: { CabecalhoEventoDetalhado: fo, Observacoes: To, StatusEvento: Oo },
802
+ setup(e) {
803
+ return {};
804
+ }
805
+ });
806
+ const Ho = { class: "evento" }, Ro = { class: "descricao" };
807
+ function Fo(e, t, n, i, c, p) {
808
+ const r = d("CabecalhoEventoDetalhado"), $ = d("Observacoes"), h = d("StatusEvento");
809
+ return o(), s("div", Ho, [
810
+ _(D, {
811
+ name: "fadeBaixo",
812
+ mode: "out-in",
813
+ appear: ""
814
+ }, {
815
+ default: k(() => [
816
+ _(r, {
817
+ perfilEvento: e.perfilEvento,
818
+ dadosEvento: e.dadosEvento,
819
+ aoClicar: e.dadosEvento.aoClicar
820
+ }, null, 8, ["perfilEvento", "dadosEvento", "aoClicar"])
821
+ ]),
822
+ _: 1
823
+ }),
824
+ _(D, {
825
+ name: "fadeBaixo",
826
+ mode: "out-in",
827
+ appear: ""
828
+ }, {
829
+ default: k(() => [
830
+ u("section", Ro, [
831
+ z(e.$slots, "descricao", {}, () => [
832
+ j(l(e.dadosEvento.subtitulo), 1)
833
+ ])
834
+ ])
835
+ ]),
836
+ _: 3
837
+ }),
838
+ _(D, {
839
+ name: "fadeBaixo",
840
+ mode: "out-in",
841
+ appear: ""
842
+ }, {
843
+ default: k(() => [
844
+ _($, {
845
+ observacoes: e.dadosEvento.observacoes,
846
+ tituloBotao: "Inserir observação",
847
+ aoClicar: e.dadosEvento.aoClicar
848
+ }, null, 8, ["observacoes", "aoClicar"])
849
+ ]),
850
+ _: 1
851
+ }),
852
+ _(D, {
853
+ name: "fadeBaixo",
854
+ mode: "out-in",
855
+ appear: ""
856
+ }, {
857
+ default: k(() => [
858
+ _(h, {
859
+ aparencia: "preenchido",
860
+ aoClicar: e.dadosEvento.aoClicar,
861
+ status: e.dadosEvento.status
862
+ }, null, 8, ["aoClicar", "status"])
863
+ ]),
864
+ _: 1
865
+ })
866
+ ]);
867
+ }
868
+ const Mo = /* @__PURE__ */ m(jo, [["render", Fo]]), No = v({
869
+ components: { Botao: B },
870
+ name: "AreaSalvamento",
871
+ props: {
872
+ aoClicar: {
873
+ required: !1,
874
+ type: Function
875
+ }
876
+ },
877
+ setup(e) {
878
+ return {};
879
+ }
880
+ });
881
+ const wo = { class: "area-salvamento" };
882
+ function Vo(e, t, n, i, c, p) {
883
+ const r = d("Botao");
884
+ return o(), s("section", wo, [
885
+ z(e.$slots, "default", {}, void 0, !0),
886
+ _(r, {
887
+ aparencia: "preenchido",
888
+ titulo: "Salvar",
889
+ tamanho: "grande",
890
+ aoClicar: e.aoClicar
891
+ }, null, 8, ["aoClicar"]),
892
+ _(r, {
893
+ aparencia: "vazio",
894
+ titulo: "Cancelar",
895
+ tamanho: "pequeno",
896
+ aoClicar: e.aoClicar
897
+ }, null, 8, ["aoClicar"])
898
+ ]);
899
+ }
900
+ const Lo = /* @__PURE__ */ m(No, [["render", Vo], ["__scopeId", "data-v-5dd5054f"]]), Jo = v({
901
+ props: {
902
+ aoClicar: {
903
+ required: !1,
904
+ type: Function
905
+ },
906
+ salvarVisivel: {
907
+ type: Boolean
908
+ }
909
+ },
910
+ components: { AreaSalvamento: Lo },
911
+ setup(e) {
912
+ return e = S(e), {
913
+ classes: b(() => ({
914
+ visivel: e.salvarVisivel,
915
+ invisivel: !e.salvarVisivel
916
+ }))
917
+ };
918
+ }
919
+ });
920
+ const Yo = { class: "editar-evento" }, Go = { class: "area-conteudo" }, Ko = { class: "salvar" };
921
+ function Qo(e, t, n, i, c, p) {
922
+ const r = d("AreaSalvamento");
923
+ return o(), s("div", Yo, [
924
+ _(D, {
925
+ name: "fadeTopo",
926
+ mode: "out-in",
927
+ appear: ""
928
+ }, {
929
+ default: k(() => [
930
+ u("div", Go, [
931
+ z(e.$slots, "conteudo")
932
+ ])
933
+ ]),
934
+ _: 3
935
+ }),
936
+ _(D, {
937
+ name: "fadeBaixo",
938
+ mode: "out-in",
939
+ appear: ""
940
+ }, {
941
+ default: k(() => [
942
+ u("div", Ko, [
943
+ _(r, {
944
+ aoClicar: e.aoClicar,
945
+ class: T(e.classes)
946
+ }, {
947
+ default: k(() => [
948
+ z(e.$slots, "salvamento")
949
+ ]),
950
+ _: 3
951
+ }, 8, ["aoClicar", "class"])
952
+ ])
953
+ ]),
954
+ _: 3
955
+ })
565
956
  ]);
566
957
  }
567
- const Fe = /* @__PURE__ */ p(Ne, [["render", Re]]), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
958
+ const Uo = /* @__PURE__ */ m(Jo, [["render", Qo]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
568
959
  __proto__: null
569
- }, Symbol.toStringTag, { value: "Module" })), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
960
+ }, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
570
961
  __proto__: null,
571
- Timeline: Fe,
572
- Tipos: we
962
+ EditarEvento: Uo,
963
+ EventoDetalhado: Mo,
964
+ EventoTimeline: J,
965
+ Timeline: We,
966
+ Tipos: Wo
573
967
  }, Symbol.toStringTag, { value: "Module" }));
574
- const Je = {
968
+ const Zo = {
575
969
  install(e, ...t) {
576
- for (const r in I)
577
- e.component(r, I[r]);
970
+ for (const n in F)
971
+ e.component(n, F[n]);
578
972
  }
579
973
  };
580
974
  export {
581
- Fe as Timeline,
582
- we as Tipos,
583
- Je as default
975
+ Uo as EditarEvento,
976
+ Mo as EventoDetalhado,
977
+ J as EventoTimeline,
978
+ We as Timeline,
979
+ Wo as Tipos,
980
+ Zo as default
584
981
  };