@devix-tecnologia/timeline-vue 1.1.1 → 1.1.2
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 +41 -36
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +47 -47
- package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +1 -0
- package/package.json +2 -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,66 @@ 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
|
-
id:
|
|
48
|
-
data: new Date(
|
|
49
|
-
previsto: new Date(
|
|
50
|
-
realizado: new Date(
|
|
52
|
+
id: '15ea7863-2402-4b84-8a8d-10a00ba07e2f2',
|
|
53
|
+
data: new Date('2023-04-26T18:10Z'),
|
|
54
|
+
previsto: new Date('2023-04-26T18:10Z'),
|
|
55
|
+
realizado: new Date('2023-04-26T18:15Z'),
|
|
51
56
|
duracao: null,
|
|
52
57
|
tolerancia: 20,
|
|
53
|
-
titulo:
|
|
54
|
-
subtitulo:
|
|
55
|
-
destaque:
|
|
58
|
+
titulo: 'Vacina da gripe',
|
|
59
|
+
subtitulo: 'Posto de saúde do bairro',
|
|
60
|
+
destaque: '',
|
|
56
61
|
categoria: {
|
|
57
|
-
nome:
|
|
58
|
-
icone:
|
|
62
|
+
nome: 'Vacina',
|
|
63
|
+
icone: 'vaccines'
|
|
59
64
|
},
|
|
60
|
-
status:
|
|
61
|
-
criticidade:
|
|
65
|
+
status: 'realizado',
|
|
66
|
+
criticidade: 'alta'
|
|
62
67
|
},
|
|
63
68
|
{
|
|
64
|
-
id:
|
|
65
|
-
data: new Date(
|
|
66
|
-
previsto: new Date(
|
|
69
|
+
id: '15ea7863-2402-4b84-8a8d-10a00ba07e2f14',
|
|
70
|
+
data: new Date('2023-05-09T17:00Z'),
|
|
71
|
+
previsto: new Date('2023-05-09T17:00Z'),
|
|
67
72
|
realizado: null,
|
|
68
73
|
duracao: null,
|
|
69
74
|
tolerancia: 10,
|
|
70
|
-
titulo:
|
|
71
|
-
subtitulo:
|
|
72
|
-
destaque:
|
|
75
|
+
titulo: 'Vitamina D',
|
|
76
|
+
subtitulo: '2 comprimidos',
|
|
77
|
+
destaque: '',
|
|
73
78
|
categoria: {
|
|
74
|
-
nome:
|
|
75
|
-
icone:
|
|
79
|
+
nome: 'Remédio',
|
|
80
|
+
icone: 'pill'
|
|
76
81
|
},
|
|
77
|
-
status:
|
|
78
|
-
criticidade:
|
|
79
|
-
aoCLicar: () => alert(
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
return {perfilTimeline, listaEventos }
|
|
83
|
-
}
|
|
84
|
-
})
|
|
82
|
+
status: 'planejado',
|
|
83
|
+
criticidade: 'baixa',
|
|
84
|
+
aoCLicar: () => alert('Olá, mundo!')
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
return { perfilTimeline, listaEventos }
|
|
88
|
+
}
|
|
89
|
+
})
|
|
85
90
|
</script>
|
|
86
91
|
|
|
87
92
|
<style>
|