@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.
- package/README.md +1 -3
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +228 -255
- package/dist/types/components/timeline/EventoDetalhado.mock.d.ts +4 -0
- package/dist/types/components/timeline/Templates/AdiantarHorario.vue.d.ts +35 -0
- package/dist/types/components/timeline/Templates/AdicionarObservacao.vue.d.ts +29 -0
- package/dist/types/components/timeline/Templates/EditarStatus.vue.d.ts +36 -0
- package/dist/types/components/timeline/Templates/TemplateEvento.vue.d.ts +24 -0
- package/dist/types/components/timeline/atomos/AvatarTimeline.vue.d.ts +1 -1
- package/dist/types/components/timeline/atomos/Destaque.vue.d.ts +3 -3
- package/dist/types/components/timeline/atomos/Hora.vue.d.ts +70 -1
- package/dist/types/components/timeline/atomos/IconeCategoria.vue.d.ts +1 -0
- package/dist/types/components/timeline/atomos/IconeStatus.vue.d.ts +1 -0
- 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/index.d.ts +2 -1
- package/dist/types/components/timeline/moleculas/AreaSalvamento.vue.d.ts +15 -0
- package/dist/types/components/timeline/moleculas/Botao.vue.d.ts +43 -0
- package/dist/types/components/timeline/moleculas/BotaoStatus.vue.d.ts +33 -0
- package/dist/types/components/timeline/moleculas/CabecalhoEventoDetalhado.vue.d.ts +32 -0
- package/dist/types/components/timeline/moleculas/DescricaoEvento.vue.d.ts +3 -3
- package/dist/types/components/timeline/moleculas/EventoTimeline.vue.d.ts +9 -12
- package/dist/types/components/timeline/moleculas/HoraEvento.vue.d.ts +1 -1
- package/dist/types/components/timeline/moleculas/Observacoes.vue.d.ts +30 -0
- package/dist/types/components/timeline/moleculas/PerfilTimeline.vue.d.ts +11 -9
- package/dist/types/components/timeline/moleculas/SeparadorPeriodo.vue.d.ts +0 -6
- package/dist/types/components/timeline/moleculas/StatusEvento.vue.d.ts +29 -0
- package/dist/types/components/timeline/moleculas/Topo.vue.d.ts +28 -1
- package/dist/types/components/timeline/organismos/EditarEvento.vue.d.ts +28 -0
- package/dist/types/components/timeline/organismos/EventoDetalhado.vue.d.ts +24 -0
- package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +2 -2
- package/dist/types/components/timeline/type.d.ts +2 -2
- package/dist/types/components/timeline/typeDetalhado.d.ts +15 -0
- package/package.json +2 -1
package/dist/timeline-vue.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as d, reactive as
|
|
2
|
-
const
|
|
3
|
-
name: "
|
|
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 =
|
|
28
|
-
classes:
|
|
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:
|
|
33
|
+
style: g(() => ({
|
|
34
34
|
borderColor: e.borderColor,
|
|
35
35
|
backgroundColor: e.backgroundColor
|
|
36
36
|
}))
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const
|
|
40
|
+
const _ = (e, o) => {
|
|
41
41
|
const r = e.__vccOpts || e;
|
|
42
|
-
for (const [s, l] of
|
|
42
|
+
for (const [s, l] of o)
|
|
43
43
|
r[s] = l;
|
|
44
44
|
return r;
|
|
45
|
-
},
|
|
46
|
-
function
|
|
47
|
-
return a(), i("div",
|
|
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:
|
|
50
|
-
style:
|
|
49
|
+
class: C(["iconeCategoria", e.classes]),
|
|
50
|
+
style: I(e.style),
|
|
51
51
|
alt: e.categoria
|
|
52
52
|
}, [
|
|
53
|
-
T("span",
|
|
53
|
+
T("span", F, v(e.iconeCategoria), 1)
|
|
54
54
|
], 14, N)
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
58
|
-
name: "
|
|
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 =
|
|
68
|
-
classes:
|
|
66
|
+
return e = P(e), {
|
|
67
|
+
classes: g(() => ({
|
|
69
68
|
[`${e.status || "planejado"}`]: !0
|
|
70
69
|
}))
|
|
71
70
|
};
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
|
-
function
|
|
73
|
+
function Y(e, o, r, s, l, c) {
|
|
75
74
|
return a(), i("div", {
|
|
76
|
-
class:
|
|
75
|
+
class: C([e.classes, "iconeStatus"])
|
|
77
76
|
}, null, 2);
|
|
78
77
|
}
|
|
79
|
-
const
|
|
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
|
|
92
|
-
function
|
|
93
|
-
return a(), i("h4",
|
|
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
|
|
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
|
|
108
|
-
function
|
|
109
|
-
return a(), i("h3",
|
|
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
|
|
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: !
|
|
112
|
+
required: !1,
|
|
119
113
|
type: String
|
|
120
114
|
}
|
|
121
115
|
},
|
|
122
|
-
components: { TituloEvento:
|
|
123
|
-
setup() {
|
|
124
|
-
return {};
|
|
125
|
-
}
|
|
116
|
+
components: { TituloEvento: x, SubtituloEvento: U }
|
|
126
117
|
});
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
|
145
|
-
name: "
|
|
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
|
-
|
|
160
|
-
|
|
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
|
|
156
|
+
function re(e, o, r, s, l, c) {
|
|
166
157
|
return a(), i("div", {
|
|
167
|
-
class:
|
|
168
|
-
}, v(e.
|
|
158
|
+
class: C(["hora", e.classes])
|
|
159
|
+
}, v(e.horas.getHours()) + ":" + v(e.horas.getMinutes().toString().padStart(2, "0")), 3);
|
|
169
160
|
}
|
|
170
|
-
const
|
|
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:
|
|
185
|
-
setup() {
|
|
186
|
-
return {};
|
|
187
|
-
}
|
|
173
|
+
components: { Hora: ne }
|
|
188
174
|
});
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
const
|
|
192
|
-
return a(), i("div",
|
|
193
|
-
T("div",
|
|
194
|
-
e.horaRealizada ? (a(),
|
|
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"])) :
|
|
200
|
-
|
|
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
|
-
|
|
209
|
-
|
|
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
|
|
214
|
-
name: "
|
|
193
|
+
const ue = /* @__PURE__ */ _(se, [["render", ce], ["__scopeId", "data-v-da519ace"]]), de = d({
|
|
194
|
+
name: "Destaque",
|
|
215
195
|
props: {
|
|
216
|
-
|
|
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
|
|
227
|
-
return a(), i("div", _e, v(e.
|
|
202
|
+
function pe(e, o, r, s, l, c) {
|
|
203
|
+
return a(), i("div", _e, v(e.texto), 1);
|
|
228
204
|
}
|
|
229
|
-
const
|
|
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: !
|
|
237
|
+
required: !1,
|
|
261
238
|
type: String
|
|
262
239
|
},
|
|
263
240
|
destaque: {
|
|
264
|
-
required: !
|
|
241
|
+
required: !1,
|
|
265
242
|
type: String
|
|
266
243
|
},
|
|
267
|
-
|
|
244
|
+
aoClicar: {
|
|
268
245
|
required: !1,
|
|
269
246
|
type: Function
|
|
270
247
|
}
|
|
271
248
|
},
|
|
272
249
|
components: {
|
|
273
|
-
IconeStatus:
|
|
274
|
-
IconeCategoria:
|
|
275
|
-
HoraEvento:
|
|
276
|
-
DescricaoEvento:
|
|
277
|
-
Destaque:
|
|
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:
|
|
258
|
+
eventoSelecionado: g(() => ({
|
|
282
259
|
atual: e.ehAtual,
|
|
283
260
|
padrao: e.ehAtual
|
|
284
261
|
})),
|
|
285
|
-
clicavel:
|
|
286
|
-
clicavel: e.
|
|
262
|
+
clicavel: g(() => ({
|
|
263
|
+
clicavel: e.aoClicar !== void 0
|
|
287
264
|
}))
|
|
288
265
|
};
|
|
289
266
|
}
|
|
290
267
|
});
|
|
291
268
|
const fe = ["onclick"];
|
|
292
|
-
function
|
|
293
|
-
const
|
|
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:
|
|
296
|
-
onclick: e.
|
|
272
|
+
class: C(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
|
|
273
|
+
onclick: e.aoClicar
|
|
297
274
|
}, [
|
|
298
|
-
|
|
299
|
-
|
|
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
|
-
|
|
280
|
+
h(E, {
|
|
304
281
|
iconeCategoria: e.categoria.icone,
|
|
305
282
|
categoria: e.categoria.nome
|
|
306
283
|
}, null, 8, ["iconeCategoria", "categoria"]),
|
|
307
|
-
|
|
284
|
+
h(t, {
|
|
308
285
|
titulo: e.titulo,
|
|
309
286
|
subtitulo: e.subtitulo
|
|
310
287
|
}, null, 8, ["titulo", "subtitulo"]),
|
|
311
|
-
|
|
288
|
+
h(n, { texto: e.destaque }, null, 8, ["texto"])
|
|
312
289
|
], 10, fe);
|
|
313
290
|
}
|
|
314
|
-
const
|
|
315
|
-
name: "
|
|
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 =
|
|
328
|
-
classes:
|
|
303
|
+
return e = P(e), {
|
|
304
|
+
classes: g(() => ({
|
|
329
305
|
[`${e.aparencia || "padrao"}`]: !0
|
|
330
306
|
}))
|
|
331
307
|
};
|
|
332
308
|
}
|
|
333
309
|
});
|
|
334
|
-
function
|
|
310
|
+
function $e(e, o, r, s, l, c) {
|
|
335
311
|
return a(), i("h3", {
|
|
336
|
-
class:
|
|
312
|
+
class: C(["boxData padrao", e.classes])
|
|
337
313
|
}, v(e.dataNumero), 3);
|
|
338
314
|
}
|
|
339
|
-
const
|
|
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:
|
|
323
|
+
components: { BoxData: he },
|
|
351
324
|
setup(e) {
|
|
352
|
-
const
|
|
353
|
-
return
|
|
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
|
|
357
|
-
function
|
|
358
|
-
const
|
|
359
|
-
return a(), i("div",
|
|
360
|
-
T("div",
|
|
361
|
-
|
|
362
|
-
dataNumero: e.dataSeparador.getDate()
|
|
363
|
-
|
|
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
|
|
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" },
|
|
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,
|
|
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,
|
|
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
|
|
397
|
-
components: { AvatarTimeline:
|
|
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
|
-
|
|
409
|
-
type:
|
|
410
|
-
default:
|
|
379
|
+
formatoReduzido: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: !1
|
|
411
382
|
}
|
|
412
383
|
},
|
|
413
384
|
setup(e) {
|
|
414
|
-
return e =
|
|
415
|
-
|
|
416
|
-
|
|
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
|
|
422
|
-
function Me(e,
|
|
423
|
-
const
|
|
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(),
|
|
399
|
+
e.imagemPerfil ? (a(), S(u, {
|
|
429
400
|
key: 0,
|
|
430
401
|
imagem: e.imagemPerfil
|
|
431
|
-
}, null, 8, ["imagem"])) : e.iconePerfil ? (a(),
|
|
402
|
+
}, null, 8, ["imagem"])) : e.iconePerfil ? (a(), S(u, {
|
|
432
403
|
key: 1,
|
|
433
404
|
icone: e.iconePerfil
|
|
434
|
-
}, null, 8, ["icone"])) :
|
|
435
|
-
T("h2",
|
|
436
|
-
],
|
|
405
|
+
}, null, 8, ["icone"])) : q("", !0),
|
|
406
|
+
T("h2", je, v(e.nomePerfil), 1)
|
|
407
|
+
], 2);
|
|
437
408
|
}
|
|
438
|
-
const Oe = /* @__PURE__ */
|
|
439
|
-
const Ne = d({
|
|
409
|
+
const Oe = /* @__PURE__ */ _(Be, [["render", Me]]), Re = d({
|
|
440
410
|
props: {
|
|
441
411
|
perfilTimeline: {
|
|
442
|
-
required: !
|
|
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:
|
|
453
|
-
EventoTimeline:
|
|
422
|
+
SeparadorPeriodo: Pe,
|
|
423
|
+
EventoTimeline: A
|
|
454
424
|
},
|
|
455
425
|
setup(e) {
|
|
456
|
-
const
|
|
426
|
+
const o = P(
|
|
457
427
|
e.eventosTimeline
|
|
458
428
|
);
|
|
459
|
-
let r =
|
|
429
|
+
let r = P(o);
|
|
460
430
|
function s() {
|
|
461
|
-
r =
|
|
462
|
-
const
|
|
463
|
-
r.map((n) => (
|
|
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
|
-
},
|
|
470
|
-
const m =
|
|
471
|
-
return m &&
|
|
472
|
-
},
|
|
473
|
-
if (
|
|
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
|
|
477
|
-
const
|
|
478
|
-
if (
|
|
479
|
-
const
|
|
480
|
-
if (m === null ||
|
|
481
|
-
m =
|
|
482
|
-
else if (
|
|
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
|
-
|
|
454
|
+
y.push(f);
|
|
485
455
|
}
|
|
486
456
|
}
|
|
487
|
-
return
|
|
457
|
+
return y;
|
|
488
458
|
} else
|
|
489
459
|
return [];
|
|
490
|
-
},
|
|
460
|
+
}, b = g(() => {
|
|
491
461
|
l();
|
|
492
|
-
const
|
|
462
|
+
const t = r.sort(
|
|
493
463
|
(n, m) => n.data.getTime() - m.data.getTime()
|
|
494
464
|
);
|
|
495
|
-
if (
|
|
496
|
-
let n = [], m = null,
|
|
497
|
-
for (const
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
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:
|
|
504
|
-
key:
|
|
473
|
+
valor: $.data,
|
|
474
|
+
key: ++y
|
|
505
475
|
})), n.push({
|
|
506
476
|
tipo: "evento",
|
|
507
|
-
valor:
|
|
508
|
-
key:
|
|
477
|
+
valor: $,
|
|
478
|
+
key: ++y
|
|
509
479
|
});
|
|
510
480
|
}
|
|
511
481
|
return n;
|
|
512
482
|
} else
|
|
513
483
|
return [];
|
|
514
|
-
}),
|
|
515
|
-
const
|
|
516
|
-
|
|
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:
|
|
523
|
-
scrollParaItemAtual:
|
|
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
|
|
531
|
-
function
|
|
532
|
-
const
|
|
533
|
-
return a(), i("div",
|
|
534
|
-
e.perfilTimeline
|
|
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"])) :
|
|
540
|
-
T("section",
|
|
541
|
-
|
|
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
|
-
|
|
515
|
+
t.tipo === "dia" ? (a(), S(b, {
|
|
547
516
|
key: 0,
|
|
548
|
-
dataSeparador:
|
|
549
|
-
}, null, 8, ["dataSeparador"])) :
|
|
550
|
-
|
|
517
|
+
dataSeparador: t.valor
|
|
518
|
+
}, null, 8, ["dataSeparador"])) : q("", !0),
|
|
519
|
+
t.tipo === "evento" ? (a(), S(E, {
|
|
551
520
|
key: 1,
|
|
552
|
-
status:
|
|
553
|
-
criticidade:
|
|
554
|
-
previsto:
|
|
555
|
-
realizado:
|
|
556
|
-
categoria:
|
|
557
|
-
titulo:
|
|
558
|
-
subtitulo:
|
|
559
|
-
destaque:
|
|
560
|
-
ehAtual:
|
|
561
|
-
|
|
562
|
-
|
|
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
|
-
]
|
|
535
|
+
])
|
|
565
536
|
]);
|
|
566
537
|
}
|
|
567
|
-
const
|
|
538
|
+
const Ve = /* @__PURE__ */ _(Re, [["render", we]]), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
568
539
|
__proto__: null
|
|
569
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
540
|
+
}, Symbol.toStringTag, { value: "Module" })), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
570
541
|
__proto__: null,
|
|
571
|
-
|
|
572
|
-
|
|
542
|
+
EventoTimeline: A,
|
|
543
|
+
Timeline: Ve,
|
|
544
|
+
Tipos: Je
|
|
573
545
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
574
|
-
const
|
|
575
|
-
install(e, ...
|
|
576
|
-
for (const r in
|
|
577
|
-
e.component(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
|
-
|
|
582
|
-
|
|
583
|
-
Je as
|
|
553
|
+
A as EventoTimeline,
|
|
554
|
+
Ve as Timeline,
|
|
555
|
+
Je as Tipos,
|
|
556
|
+
Le as default
|
|
584
557
|
};
|