@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.
Files changed (41) hide show
  1. package/README.md +41 -36
  2. package/dist/style.css +1 -1
  3. package/dist/timeline-vue.es.js +47 -47
  4. package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +1 -0
  5. package/package.json +2 -2
  6. package/src/assets/vue.svg +0 -1
  7. package/src/components/timeline/atomos/AvatarTimeline.stories.ts +0 -32
  8. package/src/components/timeline/atomos/AvatarTimeline.vue +0 -51
  9. package/src/components/timeline/atomos/BoxData.stories.ts +0 -41
  10. package/src/components/timeline/atomos/BoxData.vue +0 -57
  11. package/src/components/timeline/atomos/Destaque.stories.ts +0 -24
  12. package/src/components/timeline/atomos/Destaque.vue +0 -39
  13. package/src/components/timeline/atomos/Hora.stories.ts +0 -36
  14. package/src/components/timeline/atomos/Hora.vue +0 -50
  15. package/src/components/timeline/atomos/IconeCategoria.stories.ts +0 -60
  16. package/src/components/timeline/atomos/IconeCategoria.vue +0 -110
  17. package/src/components/timeline/atomos/IconeStatus.stories.ts +0 -38
  18. package/src/components/timeline/atomos/IconeStatus.vue +0 -73
  19. package/src/components/timeline/atomos/SubtituloEvento.stories.ts +0 -24
  20. package/src/components/timeline/atomos/SubtituloEvento.vue +0 -33
  21. package/src/components/timeline/atomos/TituloEvento.stories.ts +0 -24
  22. package/src/components/timeline/atomos/TituloEvento.vue +0 -32
  23. package/src/components/timeline/index.ts +0 -7
  24. package/src/components/timeline/moleculas/DescricaoEvento.stories.ts +0 -31
  25. package/src/components/timeline/moleculas/DescricaoEvento.vue +0 -59
  26. package/src/components/timeline/moleculas/EventoTimeline.stories.ts +0 -94
  27. package/src/components/timeline/moleculas/EventoTimeline.vue +0 -158
  28. package/src/components/timeline/moleculas/HoraEvento.stories.ts +0 -37
  29. package/src/components/timeline/moleculas/HoraEvento.vue +0 -74
  30. package/src/components/timeline/moleculas/PerfilTimeline.stories.ts +0 -40
  31. package/src/components/timeline/moleculas/PerfilTimeline.vue +0 -76
  32. package/src/components/timeline/moleculas/SeparadorPeriodo.stories.ts +0 -42
  33. package/src/components/timeline/moleculas/SeparadorPeriodo.vue +0 -100
  34. package/src/components/timeline/moleculas/Topo.vue +0 -38
  35. package/src/components/timeline/organismos/Timeline.mock.ts +0 -311
  36. package/src/components/timeline/organismos/Timeline.stories.ts +0 -48
  37. package/src/components/timeline/organismos/Timeline.vue +0 -217
  38. package/src/components/timeline/type.ts +0 -34
  39. package/src/global.css +0 -98
  40. package/src/index.ts +0 -16
  41. 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
- <Timeline :perfilTimeline="perfilTimeline" :eventosTimeline="listaEventos" />
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 "vue";
35
- import { Timeline } from "@devix-tecnologia/timeline-vue";
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
- 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 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: "15ea7863-2402-4b84-8a8d-10a00ba07e2f2",
48
- data: new Date("2023-04-26T18:10Z"),
49
- previsto: new Date("2023-04-26T18:10Z"),
50
- realizado: new Date("2023-04-26T18:15Z"),
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: "Vacina da gripe",
54
- subtitulo: "Posto de saúde do bairro",
55
- destaque: "",
58
+ titulo: 'Vacina da gripe',
59
+ subtitulo: 'Posto de saúde do bairro',
60
+ destaque: '',
56
61
  categoria: {
57
- nome: "Vacina",
58
- icone: "vaccines",
62
+ nome: 'Vacina',
63
+ icone: 'vaccines'
59
64
  },
60
- status: "realizado",
61
- criticidade: "alta",
65
+ status: 'realizado',
66
+ criticidade: 'alta'
62
67
  },
63
68
  {
64
- id: "15ea7863-2402-4b84-8a8d-10a00ba07e2f14",
65
- data: new Date("2023-05-09T17:00Z"),
66
- previsto: new Date("2023-05-09T17:00Z"),
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: "Vitamina D",
71
- subtitulo: "2 comprimidos",
72
- destaque: "",
75
+ titulo: 'Vitamina D',
76
+ subtitulo: '2 comprimidos',
77
+ destaque: '',
73
78
  categoria: {
74
- nome: "Remédio",
75
- icone: "pill",
79
+ nome: 'Remédio',
80
+ icone: 'pill'
76
81
  },
77
- status: "planejado",
78
- criticidade: "baixa",
79
- aoCLicar: () => alert("Olá, mundo!"),
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>