@devix-tecnologia/timeline-vue 1.1.1 → 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 +39 -36
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +230 -257
- 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 +3 -2
- package/dist/types/components/timeline/type.d.ts +2 -2
- package/dist/types/components/timeline/typeDetalhado.d.ts +15 -0
- package/package.json +3 -2
- package/src/assets/vue.svg +0 -1
- package/src/components/timeline/atomos/AvatarTimeline.stories.ts +0 -32
- package/src/components/timeline/atomos/AvatarTimeline.vue +0 -51
- package/src/components/timeline/atomos/BoxData.stories.ts +0 -41
- package/src/components/timeline/atomos/BoxData.vue +0 -57
- package/src/components/timeline/atomos/Destaque.stories.ts +0 -24
- package/src/components/timeline/atomos/Destaque.vue +0 -39
- package/src/components/timeline/atomos/Hora.stories.ts +0 -36
- package/src/components/timeline/atomos/Hora.vue +0 -50
- package/src/components/timeline/atomos/IconeCategoria.stories.ts +0 -60
- package/src/components/timeline/atomos/IconeCategoria.vue +0 -110
- package/src/components/timeline/atomos/IconeStatus.stories.ts +0 -38
- package/src/components/timeline/atomos/IconeStatus.vue +0 -73
- package/src/components/timeline/atomos/SubtituloEvento.stories.ts +0 -24
- package/src/components/timeline/atomos/SubtituloEvento.vue +0 -33
- package/src/components/timeline/atomos/TituloEvento.stories.ts +0 -24
- package/src/components/timeline/atomos/TituloEvento.vue +0 -32
- package/src/components/timeline/index.ts +0 -7
- package/src/components/timeline/moleculas/DescricaoEvento.stories.ts +0 -31
- package/src/components/timeline/moleculas/DescricaoEvento.vue +0 -59
- package/src/components/timeline/moleculas/EventoTimeline.stories.ts +0 -94
- package/src/components/timeline/moleculas/EventoTimeline.vue +0 -158
- package/src/components/timeline/moleculas/HoraEvento.stories.ts +0 -37
- package/src/components/timeline/moleculas/HoraEvento.vue +0 -74
- package/src/components/timeline/moleculas/PerfilTimeline.stories.ts +0 -40
- package/src/components/timeline/moleculas/PerfilTimeline.vue +0 -76
- package/src/components/timeline/moleculas/SeparadorPeriodo.stories.ts +0 -42
- package/src/components/timeline/moleculas/SeparadorPeriodo.vue +0 -100
- package/src/components/timeline/moleculas/Topo.vue +0 -38
- package/src/components/timeline/organismos/Timeline.mock.ts +0 -311
- package/src/components/timeline/organismos/Timeline.stories.ts +0 -48
- package/src/components/timeline/organismos/Timeline.vue +0 -217
- package/src/components/timeline/type.ts +0 -34
- package/src/global.css +0 -98
- package/src/index.ts +0 -16
- package/src/vite-env.d.ts +0 -1
package/README.md
CHANGED
|
@@ -27,61 +27,64 @@ yarn add @devix-tecnologia/timeline-vue
|
|
|
27
27
|
//exemplo.vue
|
|
28
28
|
|
|
29
29
|
<template>
|
|
30
|
-
<
|
|
30
|
+
<main>
|
|
31
|
+
<div class="telaTimeline">
|
|
32
|
+
<Timeline :perfilTimeline="perfilTimeline" :eventosTimeline="listaEventos" />
|
|
33
|
+
</div>
|
|
34
|
+
</main>
|
|
31
35
|
</template>
|
|
32
36
|
|
|
33
37
|
<script lang="ts">
|
|
34
|
-
import { defineComponent } from
|
|
35
|
-
import { Timeline } from
|
|
38
|
+
import { defineComponent } from 'vue'
|
|
39
|
+
import { Timeline } from '@devix-tecnologia/timeline-vue'
|
|
40
|
+
import '@devix-tecnologia/timeline-vue/dist/style.css'
|
|
36
41
|
|
|
37
42
|
export default defineComponent({
|
|
43
|
+
components: { Timeline },
|
|
38
44
|
setup() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
+
const perfilTimeline = {
|
|
46
|
+
nome: 'Maria do Socorro',
|
|
47
|
+
imagem: 'https://this-person-does-not-exist.com/img/avatar-gen11071f8e0802a35d66684ee9376722b2.jpg',
|
|
48
|
+
icone: 'person'
|
|
49
|
+
}
|
|
45
50
|
const listaEventos = [
|
|
46
51
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
realizado: new Date("2023-04-26T18:15Z"),
|
|
52
|
+
data: new Date('2023-04-26T18:10Z'),
|
|
53
|
+
previsto: new Date('2023-04-26T18:10Z'),
|
|
54
|
+
realizado: new Date('2023-04-26T18:15Z'),
|
|
51
55
|
duracao: null,
|
|
52
56
|
tolerancia: 20,
|
|
53
|
-
titulo:
|
|
54
|
-
subtitulo:
|
|
55
|
-
destaque:
|
|
57
|
+
titulo: 'Vacina da gripe',
|
|
58
|
+
subtitulo: 'Posto de saúde do bairro',
|
|
59
|
+
destaque: '',
|
|
56
60
|
categoria: {
|
|
57
|
-
nome:
|
|
58
|
-
icone:
|
|
61
|
+
nome: 'Vacina',
|
|
62
|
+
icone: 'vaccines'
|
|
59
63
|
},
|
|
60
|
-
status:
|
|
61
|
-
criticidade:
|
|
64
|
+
status: 'realizado',
|
|
65
|
+
criticidade: 'alta'
|
|
62
66
|
},
|
|
63
67
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
previsto: new Date("2023-05-09T17:00Z"),
|
|
68
|
+
data: new Date('2023-05-09T17:00Z'),
|
|
69
|
+
previsto: new Date('2023-05-09T17:00Z'),
|
|
67
70
|
realizado: null,
|
|
68
71
|
duracao: null,
|
|
69
72
|
tolerancia: 10,
|
|
70
|
-
titulo:
|
|
71
|
-
subtitulo:
|
|
72
|
-
destaque:
|
|
73
|
+
titulo: 'Vitamina D',
|
|
74
|
+
subtitulo: '2 comprimidos',
|
|
75
|
+
destaque: '',
|
|
73
76
|
categoria: {
|
|
74
|
-
nome:
|
|
75
|
-
icone:
|
|
77
|
+
nome: 'Remédio',
|
|
78
|
+
icone: 'pill'
|
|
76
79
|
},
|
|
77
|
-
status:
|
|
78
|
-
criticidade:
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
return {perfilTimeline, listaEventos }
|
|
83
|
-
}
|
|
84
|
-
})
|
|
80
|
+
status: 'planejado',
|
|
81
|
+
criticidade: 'baixa',
|
|
82
|
+
aoClicar: () => alert('Olá, mundo!')
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
return { perfilTimeline, listaEventos }
|
|
86
|
+
}
|
|
87
|
+
})
|
|
85
88
|
</script>
|
|
86
89
|
|
|
87
90
|
<style>
|