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