@devix-tecnologia/timeline-vue 1.1.0 → 1.1.1
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 +17 -7
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +155 -165
- package/dist/types/components/timeline/moleculas/PerfilTimeline.vue.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/timeline/moleculas/PerfilTimeline.vue +1 -27
- package/src/components/timeline/organismos/Timeline.vue +6 -1
package/README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-

|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
# Timeline de Eventos DEVIX
|
|
4
6
|
|
|
5
7
|
Este é um projeto implementando uma linha do tempo de eventos utilizando Vue 3 e Typescript. Utiliza o Storybook para o desenvolvimento dos componentes seguindo o Design Atômico.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
<div align="center">
|
|
10
|
+
<img src="https://github.com/devix-tecnologia/timeline-vue/blob/91c3b94c6167ca02364507d58dc59bb804b3b51f/docs/timeline01.gif" width="300px"/>
|
|
11
|
+
</div>
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
## 🛠 Como usar
|
|
@@ -24,7 +27,7 @@ yarn add @devix-tecnologia/timeline-vue
|
|
|
24
27
|
//exemplo.vue
|
|
25
28
|
|
|
26
29
|
<template>
|
|
27
|
-
<Timeline :
|
|
30
|
+
<Timeline :perfilTimeline="perfilTimeline" :eventosTimeline="listaEventos" />
|
|
28
31
|
</template>
|
|
29
32
|
|
|
30
33
|
<script lang="ts">
|
|
@@ -33,7 +36,13 @@ import { Timeline } from "@devix-tecnologia/timeline-vue";
|
|
|
33
36
|
|
|
34
37
|
export default defineComponent({
|
|
35
38
|
setup() {
|
|
36
|
-
|
|
39
|
+
|
|
40
|
+
const perfilTimeline = {
|
|
41
|
+
nome: "Maria do Socorro",
|
|
42
|
+
imagem: "https://this-person-does-not-exist.com/img/avatar-gen11071f8e0802a35d66684ee9376722b2.jpg",
|
|
43
|
+
icone: "person",
|
|
44
|
+
};
|
|
45
|
+
const listaEventos = [
|
|
37
46
|
{
|
|
38
47
|
id: "15ea7863-2402-4b84-8a8d-10a00ba07e2f2",
|
|
39
48
|
data: new Date("2023-04-26T18:10Z"),
|
|
@@ -70,7 +79,7 @@ export default defineComponent({
|
|
|
70
79
|
aoCLicar: () => alert("Olá, mundo!"),
|
|
71
80
|
},
|
|
72
81
|
];
|
|
73
|
-
return {
|
|
82
|
+
return {perfilTimeline, listaEventos };
|
|
74
83
|
},
|
|
75
84
|
});
|
|
76
85
|
</script>
|
|
@@ -124,7 +133,8 @@ A Timeline da DEVIX ordena e lista Eventos de forma crescente de acordo com a da
|
|
|
124
133
|
Cada Evento mostra a hora prevista, hora em que o evento foi realizado, título, subtítulo, ícone de categoria, ícone de status, indicação de criticidade e campo para informação em destaque.
|
|
125
134
|
|
|
126
135
|
|
|
127
|
-

|
|
137
|
+
|
|
128
138
|
|
|
129
139
|
## 🚀 Contribuindo
|
|
130
140
|
---
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.areaCategoria[data-v-01127706]{display:table-cell;align-items:center;width:3rem;padding:2.8rem 1.4rem}.bg-escuro[data-v-01127706],.iconeCategoria[data-v-01127706]{background:var(--cor-secundaria);border-radius:50%;width:3rem;height:3rem;display:flex;flex-direction:row;justify-content:center;align-items:center;color:var(--cor-terciaria);border:3px solid var(--cor-secundaria)}.iconeCategoria span[data-v-01127706]{font-size:2rem}.iconeCategoria.bg-claro[data-v-01127706],.realizado .iconeCategoria[data-v-01127706],.cancelado .iconeCategoria[data-v-01127706],.adiado .iconeCategoria[data-v-01127706]{opacity:.3}.iconeCategoria.borda-alerta[data-v-01127706],.criticidade-media .iconeCategoria[data-v-01127706]{border-color:var(--cor-alerta)}.iconeCategoria.borda-importante[data-v-01127706],.criticidade-alta .iconeCategoria[data-v-01127706]{border-color:var(--cor-importante)}.iconeCategoria.borda-sucesso[data-v-01127706]{border-color:var(--cor-sucesso)}.bg-claro.iconeCategoria.borda-importante[data-v-01127706],.adiado.criticidade-alta .iconeCategoria[data-v-01127706],.cancelado.criticidade-alta .iconeCategoria[data-v-01127706],.realizado.criticidade-alta .iconeCategoria[data-v-01127706]{border-color:var(--cor-importante)}.iconeStatus[data-v-22a8820e]{font-size:1.8rem;line-height:1rem;color:var(--cor-secundaria);width:1.6rem;display:table-cell;padding:3.7rem 1.4rem 2.4rem;vertical-align:top}.realizado.iconeStatus[data-v-22a8820e]{color:var(--cor-sucesso)}.realizado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.cancelado.iconeStatus[data-v-22a8820e]{color:var(--cor-importante)}.cancelado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.adiado.iconeStatus[data-v-22a8820e]{color:var(--cor-apoio)}.adiado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.planejado.iconeStatus[data-v-22a8820e]{opacity:0}.planejado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.atrasado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:"";color:var(--cor-alerta)}.descricaoEvento .subtitulo[data-v-f5319628]{line-height:1.4rem;margin:0;color:var(--cor-texto)}.bg-selecionado .descricaoEvento .subtitulo[data-v-f5319628]{color:var(--cor-texto-selecao)}.descricaoEvento .titulo[data-v-fce23b0e]{line-height:1.4rem;margin:0;color:var(--cor-texto)}.bg-selecionado .descricaoEvento .titulo[data-v-fce23b0e]{color:var(--cor-texto-selecao)}.descricaoEvento[data-v-bb6e1ced]{display:table-cell;vertical-align:top;padding:2.4rem;padding-left:0}.realizado .descricaoEvento[data-v-bb6e1ced],.cancelado .descricaoEvento[data-v-bb6e1ced],.adiado .descricaoEvento[data-v-bb6e1ced]{opacity:.4}.descricaoEvento .titulo[data-v-bb6e1ced]{line-height:1.8rem;margin:0}@media only screen and (max-width: 400px){.descricaoEvento[data-v-bb6e1ced]{max-width:15rem}}.hora[data-v-071a9ea4]{color:var(--cor-texto)}.bg-selecionado .hora[data-v-071a9ea4]{color:var(--cor-texto-selecao)}.hora-padrao[data-v-071a9ea4],.horaRealizada[data-v-071a9ea4]{font-weight:500;font-size:1.4rem}.hora-riscada[data-v-071a9ea4],.horaPlanejada[data-v-071a9ea4]{text-decoration:line-through;font-size:1rem}.realizado .horaEvento[data-v-04f44efd],.cancelado .horaEvento[data-v-04f44efd],.adiado .horaEvento[data-v-04f44efd]{opacity:.4}.areaHora[data-v-04f44efd]{width:4.5rem;display:table-cell;vertical-align:top;text-align:right;padding:2.4rem 0}.horaEvento[data-v-04f44efd]{line-height:1.4rem;text-align:right;display:flex;flex-direction:column}.horaRealizada[data-v-04f44efd]{font-weight:500}.horaPlanejada[data-v-04f44efd]{text-decoration:line-through}.realizado .destaqueEvento[data-v-b0b0beb7],.cancelado .destaqueEvento[data-v-b0b0beb7],.adiado .destaqueEvento[data-v-b0b0beb7]{opacity:.4}.destaqueEvento[data-v-b0b0beb7]{display:table-cell;text-align:right;width:15%;line-height:1em;color:var(--cor-texto);padding:2.4rem 1.4rem;vertical-align:middle}.bg-selecionado .destaqueEvento[data-v-b0b0beb7]{color:var(--cor-texto-selecao)}.eventoTimeline[data-v-1d1f6a39]{position:relative;width:100%;border-radius:1rem}.clicavel[data-v-1d1f6a39]{cursor:pointer}.eventoTimeline[data-v-1d1f6a39]:hover{background:#f9f9f9}.atual[data-v-1d1f6a39],.atual[data-v-1d1f6a39]:hover{background:var(--cor-selecao)}.eventoTimeline[data-v-1d1f6a39]:before{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;top:0;height:2.5rem;left:11.9rem}.eventoTimeline[data-v-1d1f6a39]:after{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;top:6.1rem;bottom:0;left:11.9rem}.eventoTimeline.atrasado[data-v-1d1f6a39]:before{background:var(--cor-alerta)}.eventoTimeline.atrasado[data-v-1d1f6a39]:after{background:var(--cor-alerta)}.boxData[data-v-5e2b8273]{line-height:3.5rem;border-radius:.5rem;background:var(--cor-primaria);color:var(--cor-secundaria);margin:0;width:3.5rem;height:3.5rem;text-align:center}.padrao[data-v-5e2b8273]{background:var(--cor-primaria);color:var(--cor-secundaria)}.escuro[data-v-5e2b8273]{background:var(--cor-secundaria);color:var(--cor-primaria)}.claro[data-v-5e2b8273]{background:var(--cor-terciaria);color:var(--cor-secundaria);box-shadow:0 0 10px #0000001c}.separadorPeriodo[data-v-de9ead2d]{display:table-row;width:100%;position:relative;background:#fff}.areaData[data-v-de9ead2d]{display:table-cell;padding:2.8rem 1.4rem 2.8rem 10.1rem;position:relative}.areaData[data-v-de9ead2d]:before{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;height:2.5rem;top:0;left:11.9rem}.areaData[data-v-de9ead2d]:after{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;height:2.5rem;bottom:0;left:11.9rem}.separadorPeriodo .titulo[data-v-de9ead2d]{text-transform:uppercase;padding-bottom:3.45rem;color:var(--cor-texto)}.separadorPeriodo .titulo.claro[data-v-de9ead2d]{color:var(--cor-apoio)}.avatar[data-v-a913d26b]{background:var(--cor-secundaria);color:var(--cor-apoio);width:6rem;height:6rem;border-radius:50%;display:flex;flex-direction:row;justify-content:center;align-items:center;aspect-ratio:1 / 1}.avatar img[data-v-a913d26b]{aspect-ratio:1 / 1;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}.avatar span[data-v-a913d26b]{font-size:3rem}.perfilTimeline[data-v-
|
|
1
|
+
.areaCategoria[data-v-01127706]{display:table-cell;align-items:center;width:3rem;padding:2.8rem 1.4rem}.bg-escuro[data-v-01127706],.iconeCategoria[data-v-01127706]{background:var(--cor-secundaria);border-radius:50%;width:3rem;height:3rem;display:flex;flex-direction:row;justify-content:center;align-items:center;color:var(--cor-terciaria);border:3px solid var(--cor-secundaria)}.iconeCategoria span[data-v-01127706]{font-size:2rem}.iconeCategoria.bg-claro[data-v-01127706],.realizado .iconeCategoria[data-v-01127706],.cancelado .iconeCategoria[data-v-01127706],.adiado .iconeCategoria[data-v-01127706]{opacity:.3}.iconeCategoria.borda-alerta[data-v-01127706],.criticidade-media .iconeCategoria[data-v-01127706]{border-color:var(--cor-alerta)}.iconeCategoria.borda-importante[data-v-01127706],.criticidade-alta .iconeCategoria[data-v-01127706]{border-color:var(--cor-importante)}.iconeCategoria.borda-sucesso[data-v-01127706]{border-color:var(--cor-sucesso)}.bg-claro.iconeCategoria.borda-importante[data-v-01127706],.adiado.criticidade-alta .iconeCategoria[data-v-01127706],.cancelado.criticidade-alta .iconeCategoria[data-v-01127706],.realizado.criticidade-alta .iconeCategoria[data-v-01127706]{border-color:var(--cor-importante)}.iconeStatus[data-v-22a8820e]{font-size:1.8rem;line-height:1rem;color:var(--cor-secundaria);width:1.6rem;display:table-cell;padding:3.7rem 1.4rem 2.4rem;vertical-align:top}.realizado.iconeStatus[data-v-22a8820e]{color:var(--cor-sucesso)}.realizado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.cancelado.iconeStatus[data-v-22a8820e]{color:var(--cor-importante)}.cancelado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.adiado.iconeStatus[data-v-22a8820e]{color:var(--cor-apoio)}.adiado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.planejado.iconeStatus[data-v-22a8820e]{opacity:0}.planejado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:""}.atrasado.iconeStatus[data-v-22a8820e]:before{font-family:Material Symbols Outlined;content:"";color:var(--cor-alerta)}.descricaoEvento .subtitulo[data-v-f5319628]{line-height:1.4rem;margin:0;color:var(--cor-texto)}.bg-selecionado .descricaoEvento .subtitulo[data-v-f5319628]{color:var(--cor-texto-selecao)}.descricaoEvento .titulo[data-v-fce23b0e]{line-height:1.4rem;margin:0;color:var(--cor-texto)}.bg-selecionado .descricaoEvento .titulo[data-v-fce23b0e]{color:var(--cor-texto-selecao)}.descricaoEvento[data-v-bb6e1ced]{display:table-cell;vertical-align:top;padding:2.4rem;padding-left:0}.realizado .descricaoEvento[data-v-bb6e1ced],.cancelado .descricaoEvento[data-v-bb6e1ced],.adiado .descricaoEvento[data-v-bb6e1ced]{opacity:.4}.descricaoEvento .titulo[data-v-bb6e1ced]{line-height:1.8rem;margin:0}@media only screen and (max-width: 400px){.descricaoEvento[data-v-bb6e1ced]{max-width:15rem}}.hora[data-v-071a9ea4]{color:var(--cor-texto)}.bg-selecionado .hora[data-v-071a9ea4]{color:var(--cor-texto-selecao)}.hora-padrao[data-v-071a9ea4],.horaRealizada[data-v-071a9ea4]{font-weight:500;font-size:1.4rem}.hora-riscada[data-v-071a9ea4],.horaPlanejada[data-v-071a9ea4]{text-decoration:line-through;font-size:1rem}.realizado .horaEvento[data-v-04f44efd],.cancelado .horaEvento[data-v-04f44efd],.adiado .horaEvento[data-v-04f44efd]{opacity:.4}.areaHora[data-v-04f44efd]{width:4.5rem;display:table-cell;vertical-align:top;text-align:right;padding:2.4rem 0}.horaEvento[data-v-04f44efd]{line-height:1.4rem;text-align:right;display:flex;flex-direction:column}.horaRealizada[data-v-04f44efd]{font-weight:500}.horaPlanejada[data-v-04f44efd]{text-decoration:line-through}.realizado .destaqueEvento[data-v-b0b0beb7],.cancelado .destaqueEvento[data-v-b0b0beb7],.adiado .destaqueEvento[data-v-b0b0beb7]{opacity:.4}.destaqueEvento[data-v-b0b0beb7]{display:table-cell;text-align:right;width:15%;line-height:1em;color:var(--cor-texto);padding:2.4rem 1.4rem;vertical-align:middle}.bg-selecionado .destaqueEvento[data-v-b0b0beb7]{color:var(--cor-texto-selecao)}.eventoTimeline[data-v-1d1f6a39]{position:relative;width:100%;border-radius:1rem}.clicavel[data-v-1d1f6a39]{cursor:pointer}.eventoTimeline[data-v-1d1f6a39]:hover{background:#f9f9f9}.atual[data-v-1d1f6a39],.atual[data-v-1d1f6a39]:hover{background:var(--cor-selecao)}.eventoTimeline[data-v-1d1f6a39]:before{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;top:0;height:2.5rem;left:11.9rem}.eventoTimeline[data-v-1d1f6a39]:after{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;top:6.1rem;bottom:0;left:11.9rem}.eventoTimeline.atrasado[data-v-1d1f6a39]:before{background:var(--cor-alerta)}.eventoTimeline.atrasado[data-v-1d1f6a39]:after{background:var(--cor-alerta)}.boxData[data-v-5e2b8273]{line-height:3.5rem;border-radius:.5rem;background:var(--cor-primaria);color:var(--cor-secundaria);margin:0;width:3.5rem;height:3.5rem;text-align:center}.padrao[data-v-5e2b8273]{background:var(--cor-primaria);color:var(--cor-secundaria)}.escuro[data-v-5e2b8273]{background:var(--cor-secundaria);color:var(--cor-primaria)}.claro[data-v-5e2b8273]{background:var(--cor-terciaria);color:var(--cor-secundaria);box-shadow:0 0 10px #0000001c}.separadorPeriodo[data-v-de9ead2d]{display:table-row;width:100%;position:relative;background:#fff}.areaData[data-v-de9ead2d]{display:table-cell;padding:2.8rem 1.4rem 2.8rem 10.1rem;position:relative}.areaData[data-v-de9ead2d]:before{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;height:2.5rem;top:0;left:11.9rem}.areaData[data-v-de9ead2d]:after{content:"";background:var(--cor-linha);display:block;position:absolute;width:2px;height:2.5rem;bottom:0;left:11.9rem}.separadorPeriodo .titulo[data-v-de9ead2d]{text-transform:uppercase;padding-bottom:3.45rem;color:var(--cor-texto)}.separadorPeriodo .titulo.claro[data-v-de9ead2d]{color:var(--cor-apoio)}.avatar[data-v-a913d26b]{background:var(--cor-secundaria);color:var(--cor-apoio);width:6rem;height:6rem;border-radius:50%;display:flex;flex-direction:row;justify-content:center;align-items:center;aspect-ratio:1 / 1}.avatar img[data-v-a913d26b]{aspect-ratio:1 / 1;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}.avatar span[data-v-a913d26b]{font-size:3rem}.perfilTimeline[data-v-9f148523]{background:var(--cor-primaria);padding:1.4rem;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1.4rem;z-index:999;width:100%;min-height:8rem;transition:all .3s}.nome[data-v-9f148523]{color:var(--cor-secundaria)}.fixed[data-v-9f148523]{position:fixed;top:0;left:0;transition:all .3s}.areaEvento[data-v-4245f5f5]{display:table-row;min-height:8rem;position:relative!important;width:100%}.timeline[data-v-4245f5f5]{display:table;width:100%;position:relative}.marginTop[data-v-4245f5f5]{margin-top:8rem}*{margin:0;padding:0;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*:focus{outline:none}:root{--fonte: "Work Sans", sans-serif;font-size:62.5%;--cor-primaria: #00e01d;--cor-secundaria: #1b2f39;--cor-terciaria: #ebf1f2;--cor-fundo: #fff;--cor-selecao: #ccf9d2;--cor-texto-selecao: #1b2f39;--cor-texto: #1b2f39;--cor-apoio: #57676f;--cor-linha: #e9eaeb;--cor-importante: #bb0202;--cor-alerta: #f0cc0d;--cor-sucesso: #00a816}:root .tema-escuro{--fonte: "Work Sans", sans-serif;font-size:62.5%;--cor-primaria: #00e01d;--cor-secundaria: #ebf1f2;--cor-terciaria: #1b2f39;--cor-fundo: #1b2f39;--cor-selecao: #ccf9d2;--cor-texto-selecao: #1b2f39;--cor-texto: #f9f9f9;--cor-apoio: #57676f;--cor-linha: #e9eaeb;--cor-importante: #bb0202;--cor-alerta: #f0cc0d;--cor-sucesso: #00a816}body{font-family:var(--fonte);font-size:1.6rem;font-weight:300}h1{font-size:2.4rem;font-weight:600}h2{font-size:1.8rem;font-weight:600}h3{font-size:1.4rem;font-weight:600;margin:0;padding:0;line-height:1em}h4{font-size:1.2rem;font-weight:300}.texto-pequeno{font-size:1rem}.texto-medio{font-size:1.2rem}.texto-grande{font-size:1.4rem}
|
package/dist/timeline-vue.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as d, reactive as C, computed as y, openBlock as
|
|
2
|
-
const
|
|
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 p, createVNode as g, ref as j, createBlock as b, createCommentVNode as E, Fragment as B, renderList as H } from "vue";
|
|
2
|
+
const M = d({
|
|
3
3
|
name: "categoria",
|
|
4
4
|
props: {
|
|
5
5
|
iconeCategoria: {
|
|
@@ -38,23 +38,23 @@ const F = d({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const _ = (e, t) => {
|
|
41
|
-
const
|
|
42
|
-
for (const [
|
|
43
|
-
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
function R(e, t,
|
|
47
|
-
return
|
|
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
48
|
T("div", {
|
|
49
49
|
class: q(["iconeCategoria", e.classes]),
|
|
50
|
-
style:
|
|
50
|
+
style: z(e.style),
|
|
51
51
|
alt: e.categoria
|
|
52
52
|
}, [
|
|
53
|
-
T("span",
|
|
54
|
-
], 14,
|
|
53
|
+
T("span", L, v(e.iconeCategoria), 1)
|
|
54
|
+
], 14, N)
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const F = /* @__PURE__ */ _(M, [["render", R], ["__scopeId", "data-v-01127706"]]), w = d({
|
|
58
58
|
name: "status",
|
|
59
59
|
props: {
|
|
60
60
|
status: {
|
|
@@ -71,12 +71,12 @@ const V = /* @__PURE__ */ _(F, [["render", R], ["__scopeId", "data-v-01127706"]]
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function V(e, t, r, s, l, u) {
|
|
75
|
+
return a(), i("div", {
|
|
76
76
|
class: q([e.classes, "iconeStatus"])
|
|
77
77
|
}, null, 2);
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const J = /* @__PURE__ */ _(w, [["render", V], ["__scopeId", "data-v-22a8820e"]]), Y = d({
|
|
80
80
|
props: {
|
|
81
81
|
subtitulo: {
|
|
82
82
|
required: !0,
|
|
@@ -88,11 +88,11 @@ const U = /* @__PURE__ */ _(Y, [["render", J], ["__scopeId", "data-v-22a8820e"]]
|
|
|
88
88
|
return {};
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
const
|
|
92
|
-
function
|
|
93
|
-
return
|
|
91
|
+
const G = { class: "subtitulo" };
|
|
92
|
+
function K(e, t, r, s, l, u) {
|
|
93
|
+
return a(), i("h4", G, v(e.subtitulo), 1);
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const Q = /* @__PURE__ */ _(Y, [["render", K], ["__scopeId", "data-v-f5319628"]]), U = d({
|
|
96
96
|
props: {
|
|
97
97
|
titulo: {
|
|
98
98
|
required: !0,
|
|
@@ -104,11 +104,11 @@ const W = /* @__PURE__ */ _(G, [["render", Q], ["__scopeId", "data-v-f5319628"]]
|
|
|
104
104
|
return {};
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
const
|
|
108
|
-
function
|
|
109
|
-
return
|
|
107
|
+
const W = { class: "titulo" };
|
|
108
|
+
function X(e, t, r, s, l, u) {
|
|
109
|
+
return a(), i("h3", W, v(e.titulo), 1);
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const Z = /* @__PURE__ */ _(U, [["render", X], ["__scopeId", "data-v-fce23b0e"]]), x = d({
|
|
112
112
|
props: {
|
|
113
113
|
titulo: {
|
|
114
114
|
required: !0,
|
|
@@ -119,29 +119,29 @@ const ee = /* @__PURE__ */ _(X, [["render", x], ["__scopeId", "data-v-fce23b0e"]
|
|
|
119
119
|
type: String
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
components: { TituloEvento:
|
|
122
|
+
components: { TituloEvento: Z, SubtituloEvento: Q },
|
|
123
123
|
setup() {
|
|
124
124
|
return {};
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
|
-
const
|
|
127
|
+
const ee = {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: "descricaoEvento"
|
|
130
|
-
},
|
|
130
|
+
}, te = {
|
|
131
131
|
key: 1,
|
|
132
132
|
class: "descricaoEvento",
|
|
133
133
|
style: { "padding-top": "3.3rem" }
|
|
134
134
|
};
|
|
135
|
-
function
|
|
136
|
-
const
|
|
137
|
-
return e.subtitulo ? (
|
|
138
|
-
g(
|
|
135
|
+
function oe(e, t, r, s, l, u) {
|
|
136
|
+
const c = p("TituloEvento"), S = p("SubtituloEvento");
|
|
137
|
+
return e.subtitulo ? (a(), i("div", ee, [
|
|
138
|
+
g(c, { titulo: e.titulo }, null, 8, ["titulo"]),
|
|
139
139
|
g(S, { subtitulo: e.subtitulo }, null, 8, ["subtitulo"])
|
|
140
|
-
])) : (
|
|
141
|
-
g(
|
|
140
|
+
])) : (a(), i("div", te, [
|
|
141
|
+
g(c, { titulo: e.titulo }, null, 8, ["titulo"])
|
|
142
142
|
]));
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const ae = /* @__PURE__ */ _(x, [["render", oe], ["__scopeId", "data-v-bb6e1ced"]]), re = d({
|
|
145
145
|
name: "hora",
|
|
146
146
|
props: {
|
|
147
147
|
hora: {
|
|
@@ -154,7 +154,7 @@ const re = /* @__PURE__ */ _(te, [["render", ne], ["__scopeId", "data-v-bb6e1ced
|
|
|
154
154
|
},
|
|
155
155
|
components: {},
|
|
156
156
|
setup(e) {
|
|
157
|
-
const t =
|
|
157
|
+
const t = j(e.aparencia);
|
|
158
158
|
return {
|
|
159
159
|
classes: y(() => ({
|
|
160
160
|
[`hora-${t || ""}`]: !0
|
|
@@ -162,12 +162,12 @@ const re = /* @__PURE__ */ _(te, [["render", ne], ["__scopeId", "data-v-bb6e1ced
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
|
-
function
|
|
166
|
-
return
|
|
165
|
+
function ne(e, t, r, s, l, u) {
|
|
166
|
+
return a(), i("div", {
|
|
167
167
|
class: q(["hora", e.classes])
|
|
168
168
|
}, v(e.hora.getHours()) + ":" + v(e.hora.getMinutes().toString().padStart(2, "0")), 3);
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const se = /* @__PURE__ */ _(re, [["render", ne], ["__scopeId", "data-v-071a9ea4"]]), ie = d({
|
|
171
171
|
props: {
|
|
172
172
|
horaPrevista: {
|
|
173
173
|
type: Date,
|
|
@@ -181,27 +181,27 @@ const le = /* @__PURE__ */ _(se, [["render", ie], ["__scopeId", "data-v-071a9ea4
|
|
|
181
181
|
// type: String,
|
|
182
182
|
// },
|
|
183
183
|
},
|
|
184
|
-
components: { Hora:
|
|
184
|
+
components: { Hora: se },
|
|
185
185
|
setup() {
|
|
186
186
|
return {};
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
const
|
|
192
|
-
return
|
|
193
|
-
T("div",
|
|
194
|
-
e.horaRealizada ? (
|
|
189
|
+
const le = { class: "areaHora" }, ce = { class: "horaEvento" };
|
|
190
|
+
function ue(e, t, r, s, l, u) {
|
|
191
|
+
const c = p("Hora");
|
|
192
|
+
return a(), i("div", le, [
|
|
193
|
+
T("div", ce, [
|
|
194
|
+
e.horaRealizada ? (a(), b(c, {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "horaRealizada texto-grande",
|
|
197
197
|
hora: e.horaRealizada,
|
|
198
198
|
style: { "padding-top": "0.3rem" }
|
|
199
|
-
}, null, 8, ["hora"])) :
|
|
200
|
-
e.horaRealizada ? (
|
|
199
|
+
}, null, 8, ["hora"])) : E("", !0),
|
|
200
|
+
e.horaRealizada ? (a(), b(c, {
|
|
201
201
|
key: 1,
|
|
202
202
|
class: "horaPlanejada texto-pequeno",
|
|
203
203
|
hora: e.horaPrevista
|
|
204
|
-
}, null, 8, ["hora"])) : (
|
|
204
|
+
}, null, 8, ["hora"])) : (a(), b(c, {
|
|
205
205
|
key: 2,
|
|
206
206
|
class: "horaRealizada texto-grande",
|
|
207
207
|
hora: e.horaPrevista,
|
|
@@ -210,7 +210,7 @@ function _e(e, t, a, r, i, u) {
|
|
|
210
210
|
])
|
|
211
211
|
]);
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const de = /* @__PURE__ */ _(ie, [["render", ue], ["__scopeId", "data-v-04f44efd"]]), _e = d({
|
|
214
214
|
name: "destaque",
|
|
215
215
|
props: {
|
|
216
216
|
destaque: {
|
|
@@ -222,11 +222,11 @@ const pe = /* @__PURE__ */ _(ce, [["render", _e], ["__scopeId", "data-v-04f44efd
|
|
|
222
222
|
return {};
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
|
-
const
|
|
226
|
-
function
|
|
227
|
-
return
|
|
225
|
+
const pe = { class: "destaqueEvento texto-pequeno" };
|
|
226
|
+
function me(e, t, r, s, l, u) {
|
|
227
|
+
return a(), i("div", pe, v(e.destaque), 1);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const ve = /* @__PURE__ */ _(_e, [["render", me], ["__scopeId", "data-v-b0b0beb7"]]), fe = d({
|
|
230
230
|
props: {
|
|
231
231
|
status: {
|
|
232
232
|
required: !0,
|
|
@@ -270,11 +270,11 @@ const ge = /* @__PURE__ */ _(me, [["render", fe], ["__scopeId", "data-v-b0b0beb7
|
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
272
|
components: {
|
|
273
|
-
IconeStatus:
|
|
274
|
-
IconeCategoria:
|
|
275
|
-
HoraEvento:
|
|
276
|
-
DescricaoEvento:
|
|
277
|
-
Destaque:
|
|
273
|
+
IconeStatus: J,
|
|
274
|
+
IconeCategoria: F,
|
|
275
|
+
HoraEvento: de,
|
|
276
|
+
DescricaoEvento: ae,
|
|
277
|
+
Destaque: ve
|
|
278
278
|
},
|
|
279
279
|
setup(e) {
|
|
280
280
|
return {
|
|
@@ -288,19 +288,19 @@ const ge = /* @__PURE__ */ _(me, [["render", fe], ["__scopeId", "data-v-b0b0beb7
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
|
-
const
|
|
292
|
-
function
|
|
293
|
-
const
|
|
294
|
-
return
|
|
291
|
+
const ge = ["onclick"];
|
|
292
|
+
function ye(e, t, r, s, l, u) {
|
|
293
|
+
const c = p("IconeStatus"), S = p("HoraEvento"), P = p("IconeCategoria"), o = p("DescricaoEvento"), n = p("Destaque");
|
|
294
|
+
return a(), i("article", {
|
|
295
295
|
class: q(["eventoTimeline", [e.status, "criticidade-" + e.criticidade, e.eventoSelecionado, e.clicavel]]),
|
|
296
296
|
onclick: e.aoCLicar
|
|
297
297
|
}, [
|
|
298
|
-
g(
|
|
298
|
+
g(c, { status: e.status }, null, 8, ["status"]),
|
|
299
299
|
g(S, {
|
|
300
300
|
horaPrevista: e.previsto,
|
|
301
301
|
horaRealizada: e.realizado
|
|
302
302
|
}, null, 8, ["horaPrevista", "horaRealizada"]),
|
|
303
|
-
g(
|
|
303
|
+
g(P, {
|
|
304
304
|
iconeCategoria: e.categoria.icone,
|
|
305
305
|
categoria: e.categoria.nome
|
|
306
306
|
}, null, 8, ["iconeCategoria", "categoria"]),
|
|
@@ -308,10 +308,10 @@ function he(e, t, a, r, i, u) {
|
|
|
308
308
|
titulo: e.titulo,
|
|
309
309
|
subtitulo: e.subtitulo
|
|
310
310
|
}, null, 8, ["titulo", "subtitulo"]),
|
|
311
|
-
g(
|
|
312
|
-
], 10,
|
|
311
|
+
g(n, { destaque: e.destaque }, null, 8, ["destaque"])
|
|
312
|
+
], 10, ge);
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const $e = /* @__PURE__ */ _(fe, [["render", ye], ["__scopeId", "data-v-1d1f6a39"]]), he = d({
|
|
315
315
|
name: "BoxData",
|
|
316
316
|
props: {
|
|
317
317
|
dataNumero: {
|
|
@@ -331,12 +331,12 @@ const be = /* @__PURE__ */ _(ye, [["render", he], ["__scopeId", "data-v-1d1f6a39
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
|
-
function
|
|
335
|
-
return
|
|
334
|
+
function be(e, t, r, s, l, u) {
|
|
335
|
+
return a(), i("h3", {
|
|
336
336
|
class: q(["boxData padrao", e.classes])
|
|
337
337
|
}, v(e.dataNumero), 3);
|
|
338
338
|
}
|
|
339
|
-
const
|
|
339
|
+
const Se = /* @__PURE__ */ _(he, [["render", be], ["__scopeId", "data-v-5e2b8273"]]), Te = d({
|
|
340
340
|
name: "SeparadorPeriodo",
|
|
341
341
|
props: {
|
|
342
342
|
dataSeparador: {
|
|
@@ -347,18 +347,18 @@ const qe = /* @__PURE__ */ _(Se, [["render", Te], ["__scopeId", "data-v-5e2b8273
|
|
|
347
347
|
type: String
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
|
-
components: { BoxData:
|
|
350
|
+
components: { BoxData: Se },
|
|
351
351
|
setup(e) {
|
|
352
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: (
|
|
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] };
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
const
|
|
357
|
-
function
|
|
358
|
-
const
|
|
359
|
-
return
|
|
360
|
-
T("div",
|
|
361
|
-
g(
|
|
356
|
+
const qe = { class: "separadorPeriodo" }, Pe = { class: "areaData" };
|
|
357
|
+
function Ee(e, t, r, s, l, u) {
|
|
358
|
+
const c = p("BoxData");
|
|
359
|
+
return a(), i("div", qe, [
|
|
360
|
+
T("div", Pe, [
|
|
361
|
+
g(c, {
|
|
362
362
|
dataNumero: e.dataSeparador.getDate(),
|
|
363
363
|
aparencia: e.aparencia
|
|
364
364
|
}, null, 8, ["dataNumero", "aparencia"])
|
|
@@ -368,7 +368,7 @@ function ke(e, t, a, r, i, u) {
|
|
|
368
368
|
}, v(e.mesCorrente(e.dataSeparador.getMonth())) + " de " + v(e.dataSeparador.getFullYear()), 3)
|
|
369
369
|
]);
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const Ce = /* @__PURE__ */ _(Te, [["render", Ee], ["__scopeId", "data-v-de9ead2d"]]), ke = d({
|
|
372
372
|
props: {
|
|
373
373
|
imagem: {
|
|
374
374
|
type: String
|
|
@@ -381,20 +381,20 @@ const De = /* @__PURE__ */ _(Ee, [["render", ke], ["__scopeId", "data-v-de9ead2d
|
|
|
381
381
|
return {};
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
const
|
|
384
|
+
const De = { class: "avatar" }, Ie = ["src"], ze = {
|
|
385
385
|
key: 1,
|
|
386
386
|
class: "material-symbols-outlined"
|
|
387
387
|
};
|
|
388
|
-
function
|
|
389
|
-
return
|
|
390
|
-
e.imagem ? (
|
|
388
|
+
function Ae(e, t, r, s, l, u) {
|
|
389
|
+
return a(), i("div", De, [
|
|
390
|
+
e.imagem ? (a(), i("img", {
|
|
391
391
|
key: 0,
|
|
392
392
|
src: e.imagem
|
|
393
|
-
}, null, 8,
|
|
393
|
+
}, null, 8, Ie)) : e.icone ? (a(), i("span", ze, v(e.icone), 1)) : E("", !0)
|
|
394
394
|
]);
|
|
395
395
|
}
|
|
396
|
-
const
|
|
397
|
-
components: { AvatarTimeline:
|
|
396
|
+
const je = /* @__PURE__ */ _(ke, [["render", Ae], ["__scopeId", "data-v-a913d26b"]]), Be = d({
|
|
397
|
+
components: { AvatarTimeline: je },
|
|
398
398
|
props: {
|
|
399
399
|
imagemPerfil: {
|
|
400
400
|
type: String
|
|
@@ -411,44 +411,32 @@ const Oe = /* @__PURE__ */ _(Ie, [["render", Me], ["__scopeId", "data-v-a913d26b
|
|
|
411
411
|
}
|
|
412
412
|
},
|
|
413
413
|
setup(e) {
|
|
414
|
-
e = C(e)
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
if (a.value) {
|
|
419
|
-
const u = window.pageYOffset || document.documentElement.scrollTop, l = a.value.offsetTop;
|
|
420
|
-
r.value = u > l;
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
return M(() => {
|
|
424
|
-
window.addEventListener("scroll", i);
|
|
425
|
-
}), O(() => {
|
|
426
|
-
window.removeEventListener("scroll", i);
|
|
427
|
-
}), {
|
|
428
|
-
style: t,
|
|
429
|
-
isFixed: r
|
|
414
|
+
return e = C(e), {
|
|
415
|
+
style: y(() => ({
|
|
416
|
+
backgroundColor: e.backgroundColor
|
|
417
|
+
}))
|
|
430
418
|
};
|
|
431
419
|
}
|
|
432
420
|
});
|
|
433
|
-
const
|
|
434
|
-
function
|
|
435
|
-
const
|
|
436
|
-
return
|
|
437
|
-
class:
|
|
421
|
+
const He = { class: "nome" };
|
|
422
|
+
function Me(e, t, r, s, l, u) {
|
|
423
|
+
const c = p("AvatarTimeline");
|
|
424
|
+
return a(), i("section", {
|
|
425
|
+
class: "perfilTimeline fixed",
|
|
438
426
|
ref: "elementoFixo",
|
|
439
|
-
style:
|
|
427
|
+
style: z(e.style)
|
|
440
428
|
}, [
|
|
441
|
-
e.imagemPerfil ? (
|
|
429
|
+
e.imagemPerfil ? (a(), b(c, {
|
|
442
430
|
key: 0,
|
|
443
431
|
imagem: e.imagemPerfil
|
|
444
|
-
}, null, 8, ["imagem"])) : e.iconePerfil ? (
|
|
432
|
+
}, null, 8, ["imagem"])) : e.iconePerfil ? (a(), b(c, {
|
|
445
433
|
key: 1,
|
|
446
434
|
icone: e.iconePerfil
|
|
447
|
-
}, null, 8, ["icone"])) :
|
|
448
|
-
T("h2",
|
|
449
|
-
],
|
|
435
|
+
}, null, 8, ["icone"])) : E("", !0),
|
|
436
|
+
T("h2", He, v(e.nomePerfil), 1)
|
|
437
|
+
], 4);
|
|
450
438
|
}
|
|
451
|
-
const
|
|
439
|
+
const Oe = /* @__PURE__ */ _(Be, [["render", Me], ["__scopeId", "data-v-9f148523"]]), Ne = d({
|
|
452
440
|
props: {
|
|
453
441
|
perfilTimeline: {
|
|
454
442
|
required: !0,
|
|
@@ -460,36 +448,36 @@ const He = /* @__PURE__ */ _(we, [["render", Fe], ["__scopeId", "data-v-804ffe54
|
|
|
460
448
|
}
|
|
461
449
|
},
|
|
462
450
|
components: {
|
|
463
|
-
PerfilTimeline:
|
|
464
|
-
SeparadorPeriodo:
|
|
465
|
-
EventoTimeline:
|
|
451
|
+
PerfilTimeline: Oe,
|
|
452
|
+
SeparadorPeriodo: Ce,
|
|
453
|
+
EventoTimeline: $e
|
|
466
454
|
},
|
|
467
455
|
setup(e) {
|
|
468
456
|
const t = C(
|
|
469
457
|
e.eventosTimeline
|
|
470
458
|
);
|
|
471
|
-
let
|
|
472
|
-
function
|
|
473
|
-
|
|
474
|
-
const o =
|
|
475
|
-
|
|
476
|
-
evento:
|
|
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
|
|
477
465
|
}));
|
|
478
466
|
}
|
|
479
|
-
const
|
|
480
|
-
setInterval(
|
|
481
|
-
}, u = (o,
|
|
482
|
-
const m = o.getDay() ===
|
|
467
|
+
const l = () => {
|
|
468
|
+
setInterval(s, 6e4);
|
|
469
|
+
}, u = (o, n) => {
|
|
470
|
+
const m = o.getDay() === n.getDay(), $ = o.getMonth() === n.getMonth(), f = o.getFullYear() === n.getFullYear();
|
|
483
471
|
return m && $ && f;
|
|
484
|
-
},
|
|
472
|
+
}, c = (o) => {
|
|
485
473
|
if (o) {
|
|
486
|
-
const
|
|
474
|
+
const n = Date.now();
|
|
487
475
|
let m = null, $ = [];
|
|
488
476
|
for (const f of o) {
|
|
489
477
|
const h = f.data.getTime();
|
|
490
478
|
if (f.status === "planejado" || f.status === "atrasado") {
|
|
491
|
-
const k = Math.abs(
|
|
492
|
-
if (m === null || k < m && h <=
|
|
479
|
+
const k = Math.abs(n - f.data.getTime());
|
|
480
|
+
if (m === null || k < m && h <= n)
|
|
493
481
|
m = k, $.length = 0;
|
|
494
482
|
else if (k > m)
|
|
495
483
|
continue;
|
|
@@ -500,64 +488,66 @@ const He = /* @__PURE__ */ _(we, [["render", Fe], ["__scopeId", "data-v-804ffe54
|
|
|
500
488
|
} else
|
|
501
489
|
return [];
|
|
502
490
|
}, S = y(() => {
|
|
503
|
-
|
|
504
|
-
const o =
|
|
505
|
-
(
|
|
491
|
+
l();
|
|
492
|
+
const o = r.sort(
|
|
493
|
+
(n, m) => n.data.getTime() - m.data.getTime()
|
|
506
494
|
);
|
|
507
495
|
if (o) {
|
|
508
|
-
let
|
|
496
|
+
let n = [], m = null, $ = 0, f;
|
|
509
497
|
for (const h of o) {
|
|
510
498
|
const k = /* @__PURE__ */ new Date(), D = h.data;
|
|
511
499
|
f = h.status;
|
|
512
|
-
const
|
|
513
|
-
f === "planejado" && D.getTime() +
|
|
500
|
+
const A = h.tolerancia * 60 * 1e3;
|
|
501
|
+
f === "planejado" && D.getTime() + A < k.getTime() && (h.status = "atrasado"), (!m || !u(m, D)) && (m = D, n.push({
|
|
514
502
|
tipo: "dia",
|
|
515
503
|
valor: h.data,
|
|
516
504
|
key: ++$
|
|
517
|
-
})),
|
|
505
|
+
})), n.push({
|
|
518
506
|
tipo: "evento",
|
|
519
507
|
valor: h,
|
|
520
508
|
key: ++$
|
|
521
509
|
});
|
|
522
510
|
}
|
|
523
|
-
return
|
|
511
|
+
return n;
|
|
524
512
|
} else
|
|
525
513
|
return [];
|
|
526
|
-
}),
|
|
514
|
+
}), P = () => {
|
|
527
515
|
const o = document.querySelector(".atual");
|
|
528
516
|
o == null || o.scrollIntoView({
|
|
529
517
|
behavior: "smooth",
|
|
530
518
|
block: "center"
|
|
531
519
|
});
|
|
532
520
|
};
|
|
533
|
-
return
|
|
521
|
+
return s(), {
|
|
534
522
|
eventosPorTipo: S,
|
|
535
|
-
scrollParaItemAtual:
|
|
523
|
+
scrollParaItemAtual: P
|
|
536
524
|
};
|
|
537
525
|
},
|
|
538
526
|
mounted() {
|
|
539
527
|
this.scrollParaItemAtual();
|
|
540
528
|
}
|
|
541
529
|
});
|
|
542
|
-
const
|
|
543
|
-
function
|
|
544
|
-
const
|
|
545
|
-
return
|
|
546
|
-
e.perfilTimeline !== null ? (
|
|
530
|
+
const Le = { class: "areaTimeline" };
|
|
531
|
+
function Re(e, t, r, s, l, u) {
|
|
532
|
+
const c = p("PerfilTimeline"), S = p("SeparadorPeriodo"), P = p("EventoTimeline");
|
|
533
|
+
return a(), i("div", Le, [
|
|
534
|
+
e.perfilTimeline !== null ? (a(), b(c, {
|
|
547
535
|
key: 0,
|
|
548
536
|
nomePerfil: e.perfilTimeline.nome,
|
|
549
537
|
imagemPerfil: e.perfilTimeline.imagem,
|
|
550
538
|
iconePerfil: e.perfilTimeline.icone
|
|
551
|
-
}, null, 8, ["nomePerfil", "imagemPerfil", "iconePerfil"])) :
|
|
552
|
-
T("section",
|
|
553
|
-
|
|
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", {
|
|
554
544
|
key: o.key
|
|
555
545
|
}, [
|
|
556
|
-
o.tipo === "dia" ? (
|
|
546
|
+
o.tipo === "dia" ? (a(), b(S, {
|
|
557
547
|
key: 0,
|
|
558
548
|
dataSeparador: o.valor
|
|
559
|
-
}, null, 8, ["dataSeparador"])) :
|
|
560
|
-
o.tipo === "evento" ? (
|
|
549
|
+
}, null, 8, ["dataSeparador"])) : E("", !0),
|
|
550
|
+
o.tipo === "evento" ? (a(), b(P, {
|
|
561
551
|
key: 1,
|
|
562
552
|
status: o.valor.status,
|
|
563
553
|
criticidade: o.valor.criticidade,
|
|
@@ -569,26 +559,26 @@ function Ve(e, t, a, r, i, u) {
|
|
|
569
559
|
destaque: o.valor.destaque,
|
|
570
560
|
ehAtual: o.valor.atual,
|
|
571
561
|
aoCLicar: o.valor.aoCLicar
|
|
572
|
-
}, null, 8, ["status", "criticidade", "previsto", "realizado", "categoria", "titulo", "subtitulo", "destaque", "ehAtual", "aoCLicar"])) :
|
|
562
|
+
}, null, 8, ["status", "criticidade", "previsto", "realizado", "categoria", "titulo", "subtitulo", "destaque", "ehAtual", "aoCLicar"])) : E("", !0)
|
|
573
563
|
]))), 128))
|
|
574
|
-
])
|
|
564
|
+
], 2)
|
|
575
565
|
]);
|
|
576
566
|
}
|
|
577
|
-
const
|
|
567
|
+
const Fe = /* @__PURE__ */ _(Ne, [["render", Re], ["__scopeId", "data-v-4245f5f5"]]), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
578
568
|
__proto__: null
|
|
579
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
569
|
+
}, Symbol.toStringTag, { value: "Module" })), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
580
570
|
__proto__: null,
|
|
581
|
-
Timeline:
|
|
582
|
-
Tipos:
|
|
571
|
+
Timeline: Fe,
|
|
572
|
+
Tipos: we
|
|
583
573
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
584
|
-
const
|
|
574
|
+
const Je = {
|
|
585
575
|
install(e, ...t) {
|
|
586
|
-
for (const
|
|
587
|
-
e.component(
|
|
576
|
+
for (const r in I)
|
|
577
|
+
e.component(r, I[r]);
|
|
588
578
|
}
|
|
589
579
|
};
|
|
590
580
|
export {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
581
|
+
Fe as Timeline,
|
|
582
|
+
we as Tipos,
|
|
583
|
+
Je as default
|
|
594
584
|
};
|
|
@@ -16,7 +16,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
style: import("vue").ComputedRef<{
|
|
17
17
|
backgroundColor: string;
|
|
18
18
|
}>;
|
|
19
|
-
isFixed: import("vue").Ref<boolean>;
|
|
20
19
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
20
|
imagemPerfil: {
|
|
22
21
|
type: StringConstructor;
|
package/package.json
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section
|
|
3
|
-
class="perfilTimeline"
|
|
4
|
-
ref="elementoFixo"
|
|
5
|
-
:style="style"
|
|
6
|
-
:class="{ fixed: isFixed }"
|
|
7
|
-
>
|
|
8
|
-
<!-- :class="{ fixed: isFixed }" -->
|
|
2
|
+
<section class="perfilTimeline fixed" ref="elementoFixo" :style="style">
|
|
9
3
|
<AvatarTimeline v-if="imagemPerfil" :imagem="imagemPerfil" />
|
|
10
4
|
<AvatarTimeline v-else-if="iconePerfil" :icone="iconePerfil" />
|
|
11
5
|
<h2 class="nome">{{ nomePerfil }}</h2>
|
|
@@ -46,29 +40,9 @@ export default defineComponent({
|
|
|
46
40
|
const style = computed(() => ({
|
|
47
41
|
backgroundColor: props.backgroundColor,
|
|
48
42
|
}));
|
|
49
|
-
// fixando o box no topo da página
|
|
50
|
-
const elementoFixo = ref<HTMLElement | null>(null);
|
|
51
|
-
const isFixed = ref(false);
|
|
52
|
-
|
|
53
|
-
const handleScroll = () => {
|
|
54
|
-
if (elementoFixo.value) {
|
|
55
|
-
const scrollTop =
|
|
56
|
-
window.pageYOffset || document.documentElement.scrollTop;
|
|
57
|
-
const offset = elementoFixo.value.offsetTop;
|
|
58
|
-
isFixed.value = scrollTop > offset;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
onMounted(() => {
|
|
63
|
-
window.addEventListener("scroll", handleScroll);
|
|
64
|
-
});
|
|
65
|
-
onUnmounted(() => {
|
|
66
|
-
window.removeEventListener("scroll", handleScroll);
|
|
67
|
-
});
|
|
68
43
|
|
|
69
44
|
return {
|
|
70
45
|
style,
|
|
71
|
-
isFixed,
|
|
72
46
|
};
|
|
73
47
|
},
|
|
74
48
|
});
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
:imagemPerfil="perfilTimeline.imagem"
|
|
7
7
|
:iconePerfil="perfilTimeline.icone"
|
|
8
8
|
/>
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
<section class="timeline" :class="{ marginTop: perfilTimeline !== null }">
|
|
10
11
|
<!-- SEPARADOR -->
|
|
11
12
|
<div v-for="evento in eventosPorTipo" :key="evento.key">
|
|
12
13
|
<SeparadorPeriodo
|
|
@@ -209,4 +210,8 @@ export default defineComponent({
|
|
|
209
210
|
width: 100%;
|
|
210
211
|
position: relative;
|
|
211
212
|
}
|
|
213
|
+
|
|
214
|
+
.marginTop {
|
|
215
|
+
margin-top: 8rem;
|
|
216
|
+
}
|
|
212
217
|
</style>
|