@devix-tecnologia/timeline-vue 1.1.2 → 1.2.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 +228 -255
  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 +2 -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 d, reactive as P, computed as g, openBlock as a, createElementBlock as i, createElementVNode as T, normalizeClass as C, normalizeStyle as I, toDisplayString as v, resolveComponent as p, createVNode as h, createBlock as S, createCommentVNode as q, ref as B, Fragment as j, renderList as M } from "vue";
2
+ const O = d({
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 = P(e), {
28
+ classes: g(() => ({
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: g(() => ({
34
34
  borderColor: e.borderColor,
35
35
  backgroundColor: e.backgroundColor
36
36
  }))
37
37
  };
38
38
  }
39
39
  });
40
- const p = (e, t) => {
40
+ const _ = (e, o) => {
41
41
  const r = e.__vccOpts || e;
42
- for (const [s, l] of t)
42
+ for (const [s, l] of o)
43
43
  r[s] = l;
44
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, [
45
+ }, R = { class: "areaCategoria" }, N = ["alt"], F = { class: "material-symbols-outlined" };
46
+ function w(e, o, r, s, l, c) {
47
+ return a(), i("div", R, [
48
48
  T("div", {
49
- class: q(["iconeCategoria", e.classes]),
50
- style: z(e.style),
49
+ class: C(["iconeCategoria", e.classes]),
50
+ style: I(e.style),
51
51
  alt: e.categoria
52
52
  }, [
53
- T("span", L, v(e.iconeCategoria), 1)
53
+ T("span", F, v(e.iconeCategoria), 1)
54
54
  ], 14, N)
55
55
  ]);
56
56
  }
57
- const F = /* @__PURE__ */ p(M, [["render", R], ["__scopeId", "data-v-01127706"]]), w = d({
58
- name: "status",
57
+ const V = /* @__PURE__ */ _(O, [["render", w], ["__scopeId", "data-v-f922d1fe"]]), J = d({
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 = P(e), {
67
+ classes: g(() => ({
69
68
  [`${e.status || "planejado"}`]: !0
70
69
  }))
71
70
  };
72
71
  }
73
72
  });
74
- function V(e, t, r, s, l, u) {
73
+ function Y(e, o, r, s, l, c) {
75
74
  return a(), i("div", {
76
- class: q([e.classes, "iconeStatus"])
75
+ class: C([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 L = /* @__PURE__ */ _(J, [["render", Y], ["__scopeId", "data-v-61335255"]]), G = d({
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 K = { class: "subtitulo" };
88
+ function Q(e, o, r, s, l, c) {
89
+ return a(), i("h4", K, v(e.subtitulo), 1);
94
90
  }
95
- const Q = /* @__PURE__ */ p(Y, [["render", K], ["__scopeId", "data-v-f5319628"]]), U = d({
91
+ const U = /* @__PURE__ */ _(G, [["render", Q], ["__scopeId", "data-v-5f7c5673"]]), W = d({
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 X = { class: "titulo" };
101
+ function Z(e, o, r, s, l, c) {
102
+ return a(), i("h3", X, v(e.titulo), 1);
110
103
  }
111
- const Z = /* @__PURE__ */ p(U, [["render", X], ["__scopeId", "data-v-fce23b0e"]]), x = d({
104
+ const x = /* @__PURE__ */ _(W, [["render", Z], ["__scopeId", "data-v-7369e837"]]), ee = d({
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: x, SubtituloEvento: U }
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 te(e, o, r, s, l, c) {
119
+ const u = p("TituloEvento"), b = p("SubtituloEvento");
120
+ return a(), i("div", {
121
+ class: "descricaoEvento",
122
+ style: I(`${e.subtitulo ? "" : "padding-top: 3.3rem"}`)
123
+ }, [
124
+ h(u, { titulo: e.titulo }, null, 8, ["titulo"]),
125
+ e.subtitulo ? (a(), S(b, {
126
+ key: 0,
127
+ subtitulo: e.subtitulo
128
+ }, null, 8, ["subtitulo"])) : q("", !0)
129
+ ], 4);
143
130
  }
144
- const ae = /* @__PURE__ */ p(x, [["render", oe], ["__scopeId", "data-v-bb6e1ced"]]), re = d({
145
- name: "hora",
131
+ const oe = /* @__PURE__ */ _(ee, [["render", te], ["__scopeId", "data-v-171435d6"]]), ae = d({
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: B(new Date(e.hora)),
150
+ classes: g(() => ({
151
+ [`hora-${e.aparencia || ""}`]: !0
161
152
  }))
162
153
  };
163
154
  }
164
155
  });
165
- function ne(e, t, r, s, l, u) {
156
+ function re(e, o, r, s, l, c) {
166
157
  return a(), i("div", {
167
- class: q(["hora", e.classes])
168
- }, v(e.hora.getHours()) + ":" + v(e.hora.getMinutes().toString().padStart(2, "0")), 3);
158
+ class: C(["hora", e.classes])
159
+ }, v(e.horas.getHours()) + ":" + v(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 ne = /* @__PURE__ */ _(ae, [["render", re], ["__scopeId", "data-v-dacdabdc"]]), se = d({
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: ne }
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 ie = { class: "areaHora" }, le = { class: "horaEvento" };
176
+ function ce(e, o, r, s, l, c) {
177
+ const u = p("Hora");
178
+ return a(), i("div", ie, [
179
+ T("div", le, [
180
+ e.horaRealizada ? (a(), S(u, {
195
181
  key: 0,
196
- class: "horaRealizada texto-grande",
197
182
  hora: e.horaRealizada,
198
183
  style: { "padding-top": "0.3rem" }
199
- }, 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",
184
+ }, null, 8, ["hora"])) : q("", !0),
185
+ h(u, {
207
186
  hora: e.horaPrevista,
208
- style: { "padding-top": "1.2rem" }
209
- }, null, 8, ["hora"]))
187
+ aparencia: e.horaRealizada ? "riscada" : "padrao",
188
+ style: I(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 ue = /* @__PURE__ */ _(se, [["render", ce], ["__scopeId", "data-v-da519ace"]]), de = d({
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
201
  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);
202
+ function pe(e, o, r, s, l, c) {
203
+ return a(), i("div", _e, v(e.texto), 1);
228
204
  }
229
- const ve = /* @__PURE__ */ p(pe, [["render", me], ["__scopeId", "data-v-b0b0beb7"]]), ge = d({
205
+ const me = /* @__PURE__ */ _(de, [["render", pe], ["__scopeId", "data-v-c2f02de8"]]), ve = d({
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: L,
251
+ IconeCategoria: V,
252
+ HoraEvento: ue,
253
+ DescricaoEvento: oe,
254
+ Destaque: me
278
255
  },
279
256
  setup(e) {
280
257
  return {
281
- eventoSelecionado: y(() => ({
258
+ eventoSelecionado: g(() => ({
282
259
  atual: e.ehAtual,
283
260
  padrao: e.ehAtual
284
261
  })),
285
- clicavel: y(() => ({
286
- clicavel: e.aoCLicar !== void 0
262
+ clicavel: g(() => ({
263
+ clicavel: e.aoClicar !== void 0
287
264
  }))
288
265
  };
289
266
  }
290
267
  });
291
268
  const fe = ["onclick"];
292
- function ye(e, t, r, s, l, u) {
293
- const c = _("IconeStatus"), S = _("HoraEvento"), P = _("IconeCategoria"), o = _("DescricaoEvento"), n = _("Destaque");
269
+ function ge(e, o, r, s, l, c) {
270
+ const u = p("IconeStatus"), b = p("HoraEvento"), E = p("IconeCategoria"), t = p("DescricaoEvento"), n = p("Destaque");
294
271
  return a(), i("article", {
295
- class: q(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
296
- onclick: e.aoCLicar
272
+ class: C(["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
+ h(u, { status: e.status }, null, 8, ["status"]),
276
+ h(b, {
300
277
  horaPrevista: e.previsto,
301
278
  horaRealizada: e.realizado
302
279
  }, null, 8, ["horaPrevista", "horaRealizada"]),
303
- f(P, {
280
+ h(E, {
304
281
  iconeCategoria: e.categoria.icone,
305
282
  categoria: e.categoria.nome
306
283
  }, null, 8, ["iconeCategoria", "categoria"]),
307
- f(o, {
284
+ h(t, {
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"])
288
+ h(n, { texto: e.destaque }, null, 8, ["texto"])
312
289
  ], 10, fe);
313
290
  }
314
- const $e = /* @__PURE__ */ p(ge, [["render", ye]]), he = d({
315
- name: "BoxData",
291
+ const A = /* @__PURE__ */ _(ve, [["render", ge]]), ye = d({
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 = P(e), {
304
+ classes: g(() => ({
329
305
  [`${e.aparencia || "padrao"}`]: !0
330
306
  }))
331
307
  };
332
308
  }
333
309
  });
334
- function be(e, t, r, s, l, u) {
310
+ function $e(e, o, r, s, l, c) {
335
311
  return a(), i("h3", {
336
- class: q(["boxData padrao", e.classes])
312
+ class: C(["boxData padrao", e.classes])
337
313
  }, v(e.dataNumero), 3);
338
314
  }
339
- const Se = /* @__PURE__ */ p(he, [["render", be], ["__scopeId", "data-v-5e2b8273"]]), Te = d({
315
+ const he = /* @__PURE__ */ _(ye, [["render", $e], ["__scopeId", "data-v-385cc692"]]), be = d({
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: he },
351
324
  setup(e) {
352
- 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] };
325
+ const o = new Array(12);
326
+ return o[0] = "Janeiro", o[1] = "Fevereiro", o[2] = "Março", o[3] = "Abril", o[4] = "Maio", o[5] = "Junho", o[6] = "Julho", o[7] = "Agosto", o[8] = "Setembro", o[9] = "Outubro", o[10] = "Novembro", o[11] = "Dezembro", { mesCorrente: (s) => o[s] };
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 Se = { class: "separadorPeriodo" }, Te = { class: "areaData" }, Ee = { class: "titulo" };
330
+ function qe(e, o, r, s, l, c) {
331
+ const u = p("BoxData");
332
+ return a(), i("div", Se, [
333
+ T("div", Te, [
334
+ h(u, {
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
+ T("h3", Ee, v(e.mesCorrente(e.dataSeparador.getMonth())) + " de " + v(e.dataSeparador.getFullYear()), 1)
369
339
  ]);
370
340
  }
371
- const Ce = /* @__PURE__ */ p(Te, [["render", Ee]]), ke = d({
341
+ const Pe = /* @__PURE__ */ _(be, [["render", qe]]), Ce = d({
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 De = { class: "avatar" }, ke = ["src"], Ie = {
385
353
  key: 1,
386
354
  class: "material-symbols-outlined"
355
+ }, ze = {
356
+ key: 2,
357
+ class: "material-symbols-outlined"
387
358
  };
388
- function Ae(e, t, r, s, l, u) {
359
+ function Ae(e, o, r, s, l, c) {
389
360
  return a(), i("div", De, [
390
361
  e.imagem ? (a(), i("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, ke)) : e.icone ? (a(), i("span", Ie, v(e.icone), 1)) : (a(), i("span", ze, " 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 He = /* @__PURE__ */ _(Ce, [["render", Ae], ["__scopeId", "data-v-bd3d61f3"]]), Be = d({
368
+ components: { AvatarTimeline: He },
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 = P(e), {
386
+ classes: g(() => ({
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");
393
+ const je = { class: "nome" };
394
+ function Me(e, o, r, s, l, c) {
395
+ const u = p("AvatarTimeline");
424
396
  return a(), i("section", {
425
- class: "perfilTimeline",
426
- style: z(e.style)
397
+ class: C(["perfilTimeline", e.classes])
427
398
  }, [
428
- e.imagemPerfil ? (a(), b(c, {
399
+ e.imagemPerfil ? (a(), S(u, {
429
400
  key: 0,
430
401
  imagem: e.imagemPerfil
431
- }, null, 8, ["imagem"])) : e.iconePerfil ? (a(), b(c, {
402
+ }, null, 8, ["imagem"])) : e.iconePerfil ? (a(), S(u, {
432
403
  key: 1,
433
404
  icone: e.iconePerfil
434
- }, null, 8, ["icone"])) : E("", !0),
435
- T("h2", He, v(e.nomePerfil), 1)
436
- ], 4);
405
+ }, null, 8, ["icone"])) : q("", !0),
406
+ T("h2", je, v(e.nomePerfil), 1)
407
+ ], 2);
437
408
  }
438
- const Oe = /* @__PURE__ */ p(Be, [["render", Me]]);
439
- const Ne = d({
409
+ const Oe = /* @__PURE__ */ _(Be, [["render", Me]]), Re = d({
440
410
  props: {
441
411
  perfilTimeline: {
442
- required: !0,
412
+ required: !1,
443
413
  type: Object
444
414
  },
445
415
  eventosTimeline: {
@@ -449,136 +419,139 @@ const Ne = d({
449
419
  },
450
420
  components: {
451
421
  PerfilTimeline: Oe,
452
- SeparadorPeriodo: Ce,
453
- EventoTimeline: $e
422
+ SeparadorPeriodo: Pe,
423
+ EventoTimeline: A
454
424
  },
455
425
  setup(e) {
456
- const t = C(
426
+ const o = P(
457
427
  e.eventosTimeline
458
428
  );
459
- let r = C(t);
429
+ let r = P(o);
460
430
  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), {
431
+ r = o;
432
+ const t = u(r);
433
+ r.map((n) => (t[0] === n ? (n.atual = !0, n.scroll = !0, E()) : (n.atual = !1, n.scroll = !1), {
464
434
  evento: n
465
435
  }));
466
436
  }
467
437
  const l = () => {
468
438
  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) {
439
+ }, c = (t, n) => {
440
+ const m = t.getDay() === n.getDay(), y = t.getMonth() === n.getMonth(), f = t.getFullYear() === n.getFullYear();
441
+ return m && y && f;
442
+ }, u = (t) => {
443
+ if (t) {
474
444
  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)
445
+ let m = null, y = [];
446
+ for (const f of t) {
447
+ const $ = f.data.getTime();
448
+ if (f.status === "planejado" || f.status === "atrasado") {
449
+ const D = Math.abs(n - f.data.getTime());
450
+ if (m === null || D < m && $ <= n)
451
+ m = D, y.length = 0;
452
+ else if (D > m)
483
453
  continue;
484
- $.push(g);
454
+ y.push(f);
485
455
  }
486
456
  }
487
- return $;
457
+ return y;
488
458
  } else
489
459
  return [];
490
- }, S = y(() => {
460
+ }, b = g(() => {
491
461
  l();
492
- const o = r.sort(
462
+ const t = r.sort(
493
463
  (n, m) => n.data.getTime() - m.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 (t) {
466
+ let n = [], m = null, y = 0, f;
467
+ for (const $ of t) {
468
+ const D = /* @__PURE__ */ new Date(), k = $.data;
469
+ f = $.status;
470
+ const H = $.tolerancia * 60 * 1e3;
471
+ f === "planejado" && k.getTime() + H < D.getTime() && ($.status = "atrasado"), (!m || !c(m, k)) && (m = k, n.push({
502
472
  tipo: "dia",
503
- valor: h.data,
504
- key: ++$
473
+ valor: $.data,
474
+ key: ++y
505
475
  })), n.push({
506
476
  tipo: "evento",
507
- valor: h,
508
- key: ++$
477
+ valor: $,
478
+ key: ++y
509
479
  });
510
480
  }
511
481
  return n;
512
482
  } else
513
483
  return [];
514
- }), P = () => {
515
- const o = document.querySelector(".atual");
516
- o == null || o.scrollIntoView({
484
+ }), E = () => {
485
+ const t = document.querySelector(".atual");
486
+ t == null || t.scrollIntoView({
517
487
  behavior: "smooth",
518
488
  block: "center"
519
489
  });
520
490
  };
521
491
  return s(), {
522
- eventosPorTipo: S,
523
- scrollParaItemAtual: P
492
+ eventosPorTipo: b,
493
+ scrollParaItemAtual: E
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 Ne = { class: "areaTimeline" }, Fe = { class: "timeline" };
502
+ function we(e, o, r, s, l, c) {
503
+ const u = p("PerfilTimeline"), b = p("SeparadorPeriodo"), E = p("EventoTimeline");
504
+ return a(), i("div", Ne, [
505
+ e.perfilTimeline ? (a(), S(u, {
535
506
  key: 0,
536
507
  nomePerfil: e.perfilTimeline.nome,
537
508
  imagemPerfil: e.perfilTimeline.imagem,
538
509
  iconePerfil: e.perfilTimeline.icone
539
- }, 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
510
+ }, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) : q("", !0),
511
+ T("section", Fe, [
512
+ (a(!0), i(j, null, M(e.eventosPorTipo, (t) => (a(), i("div", {
513
+ key: t.key
545
514
  }, [
546
- o.tipo === "dia" ? (a(), b(S, {
515
+ t.tipo === "dia" ? (a(), S(b, {
547
516
  key: 0,
548
- dataSeparador: o.valor
549
- }, null, 8, ["dataSeparador"])) : E("", !0),
550
- o.tipo === "evento" ? (a(), b(P, {
517
+ dataSeparador: t.valor
518
+ }, null, 8, ["dataSeparador"])) : q("", !0),
519
+ t.tipo === "evento" ? (a(), S(E, {
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: t.valor.status,
522
+ criticidade: t.valor.criticidade,
523
+ previsto: t.valor.previsto,
524
+ realizado: t.valor.realizado,
525
+ categoria: t.valor.categoria,
526
+ titulo: t.valor.titulo,
527
+ subtitulo: t.valor.subtitulo,
528
+ destaque: t.valor.destaque,
529
+ ehAtual: t.valor.atual,
530
+ aoClicar: () => {
531
+ t && t.valor && t.valor.aoClicar && t.valor.aoClicar(t.valor);
532
+ }
533
+ }, null, 8, ["status", "criticidade", "previsto", "realizado", "categoria", "titulo", "subtitulo", "destaque", "ehAtual", "aoClicar"])) : q("", !0)
563
534
  ]))), 128))
564
- ], 2)
535
+ ])
565
536
  ]);
566
537
  }
567
- const Fe = /* @__PURE__ */ p(Ne, [["render", Re]]), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
538
+ const Ve = /* @__PURE__ */ _(Re, [["render", we]]), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
568
539
  __proto__: null
569
- }, Symbol.toStringTag, { value: "Module" })), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
540
+ }, Symbol.toStringTag, { value: "Module" })), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
570
541
  __proto__: null,
571
- Timeline: Fe,
572
- Tipos: we
542
+ EventoTimeline: A,
543
+ Timeline: Ve,
544
+ Tipos: Je
573
545
  }, Symbol.toStringTag, { value: "Module" }));
574
- const Je = {
575
- install(e, ...t) {
576
- for (const r in I)
577
- e.component(r, I[r]);
546
+ const Le = {
547
+ install(e, ...o) {
548
+ for (const r in z)
549
+ e.component(r, z[r]);
578
550
  }
579
551
  };
580
552
  export {
581
- Fe as Timeline,
582
- we as Tipos,
583
- Je as default
553
+ A as EventoTimeline,
554
+ Ve as Timeline,
555
+ Je as Tipos,
556
+ Le as default
584
557
  };