@devix-tecnologia/timeline-vue 1.5.0 → 2.0.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 +32 -13
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +489 -440
- package/dist/types/components/timeline/Templates/AdiantarHorario.test.d.ts +1 -0
- package/dist/types/components/timeline/Templates/AdiantarHorario.vue.d.ts +6 -14
- package/dist/types/components/timeline/Templates/AdicionarObservacao.vue.d.ts +15 -13
- package/dist/types/components/timeline/Templates/EditarStatus.vue.d.ts +18 -18
- package/dist/types/components/timeline/Templates/TemplateTimeline.mock.d.ts +4 -0
- package/dist/types/components/timeline/Templates/TemplateTimeline.test.d.ts +1 -0
- package/dist/types/components/timeline/Templates/TemplateTimeline.vue.d.ts +346 -0
- package/dist/types/components/timeline/atomos/IconeStatus.vue.d.ts +5 -3
- package/dist/types/components/timeline/moleculas/AreaSalvamento.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/AreaSalvamento.vue.d.ts +11 -14
- package/dist/types/components/timeline/moleculas/Botao.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/Botao.vue.d.ts +25 -17
- package/dist/types/components/timeline/moleculas/BotaoStatus.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/BotaoStatus.vue.d.ts +19 -19
- package/dist/types/components/timeline/moleculas/CabecalhoEventoDetalhado.vue.d.ts +10 -18
- package/dist/types/components/timeline/moleculas/EventoTimeline.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/EventoTimeline.vue.d.ts +34 -25
- package/dist/types/components/timeline/moleculas/Observacoes.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/Observacoes.vue.d.ts +11 -14
- package/dist/types/components/timeline/moleculas/StatusEvento.test.d.ts +1 -0
- package/dist/types/components/timeline/moleculas/StatusEvento.vue.d.ts +16 -17
- package/dist/types/components/timeline/moleculas/Topo.vue.d.ts +10 -6
- package/dist/types/components/timeline/organismos/EditarEvento.test.d.ts +1 -0
- package/dist/types/components/timeline/organismos/EditarEvento.vue.d.ts +11 -17
- package/dist/types/components/timeline/organismos/EventoDetalhado.test.d.ts +1 -0
- package/dist/types/components/timeline/organismos/EventoDetalhado.vue.d.ts +19 -10
- package/dist/types/components/timeline/organismos/MyComponent.test.d.ts +1 -0
- package/dist/types/components/timeline/organismos/MyComponent.vue.d.ts +11 -0
- package/dist/types/components/timeline/organismos/Timeline.mock.d.ts +1 -1
- package/dist/types/components/timeline/organismos/Timeline.test.d.ts +1 -0
- package/dist/types/components/timeline/organismos/Timeline.vue.d.ts +17 -11
- package/dist/types/components/timeline/type.d.ts +10 -9
- package/dist/types/components/timeline/typeDetalhado.d.ts +0 -3
- package/package.json +15 -4
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PropType } from
|
|
3
|
-
import {
|
|
1
|
+
import 'material-symbols/outlined.css';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Status } from '../type';
|
|
4
|
+
import { Aparencia } from './Botao.vue';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
5
6
|
aparencia: {
|
|
6
|
-
type:
|
|
7
|
+
type: PropType<Aparencia>;
|
|
7
8
|
};
|
|
8
9
|
status: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
aoClicar: {
|
|
13
|
-
required: false;
|
|
14
|
-
type: PropType<AoClicarEvento>;
|
|
10
|
+
type: PropType<Status>;
|
|
11
|
+
default: string;
|
|
15
12
|
};
|
|
16
13
|
}, {
|
|
14
|
+
emitirClick: (mouseEvent: MouseEvent) => void;
|
|
17
15
|
classes: import("vue").ComputedRef<{
|
|
18
16
|
[x: string]: boolean;
|
|
19
17
|
}>;
|
|
20
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
click: (mouseEvent: MouseEvent) => true;
|
|
20
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
aparencia: {
|
|
22
|
-
type:
|
|
22
|
+
type: PropType<Aparencia>;
|
|
23
23
|
};
|
|
24
24
|
status: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
aoClicar: {
|
|
29
|
-
required: false;
|
|
30
|
-
type: PropType<AoClicarEvento>;
|
|
25
|
+
type: PropType<Status>;
|
|
26
|
+
default: string;
|
|
31
27
|
};
|
|
32
|
-
}
|
|
28
|
+
}>> & {
|
|
29
|
+
onClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
status: Status;
|
|
32
|
+
}, {}>;
|
|
33
33
|
export default _default;
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PropType } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import 'material-symbols/outlined.css';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { EventoDetalhado } from '../typeDetalhado';
|
|
4
|
+
import { Perfil } from '../type';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
|
-
|
|
6
|
+
perfil: {
|
|
7
7
|
required: true;
|
|
8
|
-
type:
|
|
8
|
+
type: PropType<Perfil>;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
evento: {
|
|
11
11
|
required: true;
|
|
12
12
|
type: PropType<EventoDetalhado>;
|
|
13
13
|
};
|
|
14
|
-
aoClicar: {
|
|
15
|
-
required: false;
|
|
16
|
-
type: PropType<AoClicarEvento>;
|
|
17
|
-
};
|
|
18
14
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
|
|
15
|
+
perfil: {
|
|
20
16
|
required: true;
|
|
21
|
-
type:
|
|
17
|
+
type: PropType<Perfil>;
|
|
22
18
|
};
|
|
23
|
-
|
|
19
|
+
evento: {
|
|
24
20
|
required: true;
|
|
25
21
|
type: PropType<EventoDetalhado>;
|
|
26
22
|
};
|
|
27
|
-
aoClicar: {
|
|
28
|
-
required: false;
|
|
29
|
-
type: PropType<AoClicarEvento>;
|
|
30
|
-
};
|
|
31
23
|
}>>, {}, {}>;
|
|
32
24
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { Categoria,
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Categoria, Status, Criticidade } from '../type';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
status: {
|
|
5
5
|
required: true;
|
|
6
|
-
type:
|
|
6
|
+
type: PropType<Status>;
|
|
7
7
|
};
|
|
8
8
|
criticidade: {
|
|
9
9
|
required: true;
|
|
10
|
-
type:
|
|
10
|
+
type: PropType<Criticidade>;
|
|
11
11
|
};
|
|
12
12
|
ehAtual: {
|
|
13
|
-
required:
|
|
13
|
+
required: false;
|
|
14
14
|
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
previstoPara: {
|
|
17
18
|
required: true;
|
|
18
19
|
type: DateConstructor;
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
+
realizadoEm: {
|
|
21
22
|
required: false;
|
|
22
23
|
type: PropType<Date | null>;
|
|
23
24
|
};
|
|
24
25
|
categoria: {
|
|
25
26
|
required: true;
|
|
26
|
-
type:
|
|
27
|
+
type: PropType<Categoria>;
|
|
27
28
|
};
|
|
28
29
|
titulo: {
|
|
29
30
|
required: true;
|
|
@@ -33,46 +34,48 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
required: false;
|
|
34
35
|
type: StringConstructor;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
textoDestaque: {
|
|
37
38
|
required: false;
|
|
38
39
|
type: StringConstructor;
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
clicavel: {
|
|
41
42
|
required: false;
|
|
42
|
-
type:
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
43
45
|
};
|
|
44
46
|
}, {
|
|
47
|
+
handleClick: (mouseEvent: MouseEvent) => void;
|
|
45
48
|
eventoSelecionado: import("vue").ComputedRef<{
|
|
46
49
|
atual: boolean;
|
|
47
50
|
padrao: boolean;
|
|
48
51
|
}>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
click: (mouseEvent: MouseEvent) => true;
|
|
54
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
55
|
status: {
|
|
54
56
|
required: true;
|
|
55
|
-
type:
|
|
57
|
+
type: PropType<Status>;
|
|
56
58
|
};
|
|
57
59
|
criticidade: {
|
|
58
60
|
required: true;
|
|
59
|
-
type:
|
|
61
|
+
type: PropType<Criticidade>;
|
|
60
62
|
};
|
|
61
63
|
ehAtual: {
|
|
62
|
-
required:
|
|
64
|
+
required: false;
|
|
63
65
|
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
64
67
|
};
|
|
65
|
-
|
|
68
|
+
previstoPara: {
|
|
66
69
|
required: true;
|
|
67
70
|
type: DateConstructor;
|
|
68
71
|
};
|
|
69
|
-
|
|
72
|
+
realizadoEm: {
|
|
70
73
|
required: false;
|
|
71
74
|
type: PropType<Date | null>;
|
|
72
75
|
};
|
|
73
76
|
categoria: {
|
|
74
77
|
required: true;
|
|
75
|
-
type:
|
|
78
|
+
type: PropType<Categoria>;
|
|
76
79
|
};
|
|
77
80
|
titulo: {
|
|
78
81
|
required: true;
|
|
@@ -82,13 +85,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
85
|
required: false;
|
|
83
86
|
type: StringConstructor;
|
|
84
87
|
};
|
|
85
|
-
|
|
88
|
+
textoDestaque: {
|
|
86
89
|
required: false;
|
|
87
90
|
type: StringConstructor;
|
|
88
91
|
};
|
|
89
|
-
|
|
92
|
+
clicavel: {
|
|
90
93
|
required: false;
|
|
91
|
-
type:
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
92
96
|
};
|
|
93
|
-
}
|
|
97
|
+
}>> & {
|
|
98
|
+
onClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
clicavel: boolean;
|
|
101
|
+
ehAtual: boolean;
|
|
102
|
+
}, {}>;
|
|
94
103
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PropType } from
|
|
3
|
-
import {
|
|
4
|
-
import { Observacao } from "../typeDetalhado";
|
|
1
|
+
import 'material-symbols/outlined.css';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Observacao } from '../typeDetalhado';
|
|
5
4
|
declare const _default: import("vue").DefineComponent<{
|
|
6
5
|
tituloBotao: {
|
|
7
6
|
type: StringConstructor;
|
|
8
7
|
};
|
|
9
|
-
aoClicar: {
|
|
10
|
-
required: false;
|
|
11
|
-
type: PropType<AoClicarEvento>;
|
|
12
|
-
};
|
|
13
8
|
observacoes: {
|
|
14
9
|
required: true;
|
|
15
10
|
type: PropType<Observacao[]>;
|
|
16
11
|
};
|
|
17
|
-
}, {
|
|
12
|
+
}, {
|
|
13
|
+
emitirAdicionarClick: (mouseEvent: MouseEvent) => void;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
adicionarClick: (mouseEvent: MouseEvent) => true;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
17
|
tituloBotao: {
|
|
19
18
|
type: StringConstructor;
|
|
20
19
|
};
|
|
21
|
-
aoClicar: {
|
|
22
|
-
required: false;
|
|
23
|
-
type: PropType<AoClicarEvento>;
|
|
24
|
-
};
|
|
25
20
|
observacoes: {
|
|
26
21
|
required: true;
|
|
27
22
|
type: PropType<Observacao[]>;
|
|
28
23
|
};
|
|
29
|
-
}
|
|
24
|
+
}>> & {
|
|
25
|
+
onAdicionarClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
26
|
+
}, {}, {}>;
|
|
30
27
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PropType } from
|
|
3
|
-
import {
|
|
1
|
+
import 'material-symbols/outlined.css';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Aparencia } from './Botao.vue';
|
|
4
|
+
import { Status } from '../type';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
5
6
|
aparencia: {
|
|
6
|
-
type:
|
|
7
|
+
type: PropType<Aparencia>;
|
|
7
8
|
};
|
|
8
9
|
status: {
|
|
9
10
|
required: true;
|
|
10
|
-
type:
|
|
11
|
+
type: PropType<Status>;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
13
|
+
}, {
|
|
14
|
+
handleEditarClick: (mouseEvent: MouseEvent) => void;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
editarClick: (mouseEvent: MouseEvent) => true;
|
|
17
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
18
|
aparencia: {
|
|
18
|
-
type:
|
|
19
|
+
type: PropType<Aparencia>;
|
|
19
20
|
};
|
|
20
21
|
status: {
|
|
21
22
|
required: true;
|
|
22
|
-
type:
|
|
23
|
-
};
|
|
24
|
-
aoClicar: {
|
|
25
|
-
required: false;
|
|
26
|
-
type: PropType<AoClicarEvento>;
|
|
23
|
+
type: PropType<Status>;
|
|
27
24
|
};
|
|
28
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
onEditarClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
27
|
+
}, {}, {}>;
|
|
29
28
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'material-symbols/outlined.css';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
titulo: {
|
|
4
4
|
type: StringConstructor;
|
|
@@ -9,12 +9,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
link: {};
|
|
11
11
|
}, {
|
|
12
|
-
|
|
12
|
+
emitirVoltarClick: () => void;
|
|
13
13
|
classes: import("vue").ComputedRef<{
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
'bg-escuro': boolean;
|
|
15
|
+
'bg-claro': boolean;
|
|
16
16
|
}>;
|
|
17
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
voltarClick: () => true;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
20
|
titulo: {
|
|
19
21
|
type: StringConstructor;
|
|
20
22
|
};
|
|
@@ -23,7 +25,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
25
|
default: boolean;
|
|
24
26
|
};
|
|
25
27
|
link: {};
|
|
26
|
-
}
|
|
28
|
+
}>> & {
|
|
29
|
+
onVoltarClick?: (() => any) | undefined;
|
|
30
|
+
}, {
|
|
27
31
|
escuro: boolean;
|
|
28
32
|
}, {}>;
|
|
29
33
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "material-symbols/outlined.css";
|
|
3
|
-
import { AoClicarEvento } from "../type";
|
|
1
|
+
import 'material-symbols/outlined.css';
|
|
4
2
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
aoClicar: {
|
|
6
|
-
required: false;
|
|
7
|
-
type: PropType<AoClicarEvento>;
|
|
8
|
-
};
|
|
9
3
|
salvarVisivel: {
|
|
10
4
|
type: BooleanConstructor;
|
|
11
5
|
};
|
|
12
6
|
}, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
required: false;
|
|
20
|
-
type: PropType<AoClicarEvento>;
|
|
21
|
-
};
|
|
7
|
+
emitirSalvarClick: (mouseEvent: MouseEvent) => void;
|
|
8
|
+
emitirCancelarClick: (mouseEvent: MouseEvent) => void;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
salvarClick: (mouseEvent: MouseEvent) => true;
|
|
11
|
+
cancelarClick: (mouseEvent: MouseEvent) => true;
|
|
12
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
13
|
salvarVisivel: {
|
|
23
14
|
type: BooleanConstructor;
|
|
24
15
|
};
|
|
25
|
-
}
|
|
16
|
+
}>> & {
|
|
17
|
+
onSalvarClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
18
|
+
onCancelarClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
19
|
+
}, {
|
|
26
20
|
salvarVisivel: boolean;
|
|
27
21
|
}, {}>;
|
|
28
22
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import
|
|
3
|
-
import { Perfil } from
|
|
4
|
-
import { EventoDetalhado } from
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import 'material-symbols/outlined.css';
|
|
3
|
+
import { Perfil } from '../type';
|
|
4
|
+
import { EventoDetalhado } from '../typeDetalhado';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
|
-
|
|
6
|
+
perfil: {
|
|
7
7
|
required: true;
|
|
8
8
|
type: PropType<Perfil>;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
evento: {
|
|
11
11
|
required: true;
|
|
12
12
|
type: PropType<EventoDetalhado>;
|
|
13
13
|
};
|
|
14
|
-
}, {
|
|
15
|
-
|
|
14
|
+
}, {
|
|
15
|
+
handleEditarClick: (mouseEvent: MouseEvent) => void;
|
|
16
|
+
handleAdicionarObservacaoClick: (mouseEvent: MouseEvent) => void;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
statusEditarClick: (mouseEvent: MouseEvent) => true;
|
|
19
|
+
observacaoAdicionarClick: (mouseEvent: MouseEvent) => true;
|
|
20
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
perfil: {
|
|
16
22
|
required: true;
|
|
17
23
|
type: PropType<Perfil>;
|
|
18
24
|
};
|
|
19
|
-
|
|
25
|
+
evento: {
|
|
20
26
|
required: true;
|
|
21
27
|
type: PropType<EventoDetalhado>;
|
|
22
28
|
};
|
|
23
|
-
}
|
|
29
|
+
}>> & {
|
|
30
|
+
onStatusEditarClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
31
|
+
onObservacaoAdicionarClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
32
|
+
}, {}, {}>;
|
|
24
33
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
handleButtonValueClick: (mouseEvent: MouseEvent) => void;
|
|
3
|
+
handleButtonStatusClick: (mouseEvent: MouseEvent) => void;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
clicaramNoBotaoUpdateValue: null;
|
|
6
|
+
clicaramNoBotaoUpdateStatus: null;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
8
|
+
onClicaramNoBotaoUpdateValue?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onClicaramNoBotaoUpdateStatus?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Evento, Perfil } from '../type';
|
|
3
|
+
import 'material-symbols/outlined.css';
|
|
3
4
|
type TipoEventoTimeline = {
|
|
4
|
-
tipo:
|
|
5
|
+
tipo: 'dia';
|
|
5
6
|
valor: Date;
|
|
6
7
|
key: number;
|
|
7
8
|
} | {
|
|
8
|
-
tipo:
|
|
9
|
+
tipo: 'evento';
|
|
9
10
|
valor: Evento;
|
|
10
11
|
key: number;
|
|
11
12
|
} | {
|
|
12
|
-
tipo:
|
|
13
|
+
tipo: 'eventos';
|
|
13
14
|
valor: Evento[];
|
|
14
15
|
key: number;
|
|
15
16
|
};
|
|
16
17
|
declare const _default: import("vue").DefineComponent<{
|
|
17
18
|
perfilTimeline: {
|
|
18
19
|
required: false;
|
|
19
|
-
type:
|
|
20
|
+
type: PropType<Perfil>;
|
|
20
21
|
};
|
|
21
22
|
eventosTimeline: {
|
|
22
23
|
required: true;
|
|
23
|
-
type:
|
|
24
|
+
type: PropType<Evento[]>;
|
|
24
25
|
};
|
|
25
26
|
}, {
|
|
26
27
|
eventosPorTipo: import("vue").ComputedRef<TipoEventoTimeline[]>;
|
|
27
28
|
scrollParaItemAtual: () => void;
|
|
28
|
-
|
|
29
|
+
emitirEventoClick: (evento: Evento) => void;
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
eventoClick: (evento: Evento) => true;
|
|
32
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
33
|
perfilTimeline: {
|
|
30
34
|
required: false;
|
|
31
|
-
type:
|
|
35
|
+
type: PropType<Perfil>;
|
|
32
36
|
};
|
|
33
37
|
eventosTimeline: {
|
|
34
38
|
required: true;
|
|
35
|
-
type:
|
|
39
|
+
type: PropType<Evento[]>;
|
|
36
40
|
};
|
|
37
|
-
}
|
|
41
|
+
}>> & {
|
|
42
|
+
onEventoClick?: ((evento: Evento) => any) | undefined;
|
|
43
|
+
}, {}, {}>;
|
|
38
44
|
export default _default;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export type Perfil = {
|
|
2
2
|
nome: string;
|
|
3
|
-
imagem
|
|
4
|
-
icone
|
|
3
|
+
imagem?: string;
|
|
4
|
+
icone?: string;
|
|
5
5
|
};
|
|
6
6
|
export type Categoria = {
|
|
7
7
|
nome: string;
|
|
8
8
|
icone: string;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type Status = 'atrasado' | 'adiantado' | 'adiado' | 'realizado' | 'planejado' | 'cancelado';
|
|
11
|
+
export type Criticidade = 'baixa' | 'media' | 'alta';
|
|
11
12
|
export type Evento = {
|
|
12
13
|
data: Date;
|
|
13
|
-
|
|
14
|
-
duracao
|
|
15
|
-
realizado
|
|
14
|
+
previstoPara: Date;
|
|
15
|
+
duracao?: number;
|
|
16
|
+
realizado?: Date;
|
|
16
17
|
tolerancia: number;
|
|
17
18
|
titulo: string;
|
|
18
19
|
subtitulo: string;
|
|
19
20
|
destaque: string;
|
|
20
21
|
categoria: Categoria;
|
|
21
|
-
status:
|
|
22
|
-
criticidade:
|
|
23
|
-
aoClicar?: AoClicarEvento;
|
|
22
|
+
status: Status;
|
|
23
|
+
criticidade: Criticidade;
|
|
24
24
|
atual: boolean;
|
|
25
25
|
scroll: boolean;
|
|
26
|
+
clicavel?: boolean;
|
|
26
27
|
};
|
|
@@ -12,7 +12,4 @@ export type AoAdicionarObservacao = (eventoDetalhado: EventoDetalhado, observaca
|
|
|
12
12
|
export type AoFechar = () => void;
|
|
13
13
|
export type EventoDetalhado = Evento & {
|
|
14
14
|
observacoes: Observacao[];
|
|
15
|
-
aoAlterarEvento?: AoAlterarEvento;
|
|
16
|
-
aoAdicionarObservacao?: AoAdicionarObservacao;
|
|
17
|
-
aoFechar?: AoFechar;
|
|
18
15
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devix-tecnologia/timeline-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
|
+
"test:unit": "vitest",
|
|
8
9
|
"build": "vue-tsc && vite build",
|
|
9
10
|
"preview": "vite preview",
|
|
10
11
|
"storybook": "storybook dev -p 6006",
|
|
@@ -15,12 +16,15 @@
|
|
|
15
16
|
"@fontsource/material-icons": "^4.5.4",
|
|
16
17
|
"date-fns": "^2.30.0",
|
|
17
18
|
"material-symbols": "^0.5.5",
|
|
18
|
-
"vue": "^3.0.0"
|
|
19
|
+
"vue": "^3.0.0",
|
|
20
|
+
"wrap-ansi": "npm:wrap-ansi@^7.0.0"
|
|
19
21
|
},
|
|
20
22
|
"devDependencies": {
|
|
21
23
|
"@semantic-release/git": "^10.0.1",
|
|
22
24
|
"@semantic-release/github": "^8.0.7",
|
|
23
25
|
"@semantic-release/npm": "^9.0.1",
|
|
26
|
+
"@storybook/addon-a11y": "^7.5.3",
|
|
27
|
+
"@storybook/addon-designs": "^7.0.5",
|
|
24
28
|
"@storybook/addon-essentials": "^7.0.7",
|
|
25
29
|
"@storybook/addon-interactions": "^7.0.7",
|
|
26
30
|
"@storybook/addon-links": "^7.0.7",
|
|
@@ -29,14 +33,21 @@
|
|
|
29
33
|
"@storybook/testing-library": "^0.0.14-next.2",
|
|
30
34
|
"@storybook/vue3": "^7.5.1",
|
|
31
35
|
"@storybook/vue3-vite": "^7.0.7",
|
|
36
|
+
"@testing-library/vue": "^7.0.0",
|
|
32
37
|
"@vitejs/plugin-vue": "^4.1.0",
|
|
38
|
+
"@vitest/coverage-v8": "^0.34.6",
|
|
39
|
+
"@vue/test-utils": "^2.4.1",
|
|
40
|
+
"add": "^2.0.6",
|
|
41
|
+
"happy-dom": "^12.10.2",
|
|
33
42
|
"react": "^18.2.0",
|
|
34
43
|
"react-dom": "^18.2.0",
|
|
35
44
|
"semantic-release": "^19.0.5",
|
|
36
|
-
"storybook": "^7.
|
|
45
|
+
"storybook": "^7.5.3",
|
|
37
46
|
"typescript": "^5.0.2",
|
|
38
47
|
"vite": "^4.3.0",
|
|
39
|
-
"
|
|
48
|
+
"vitest": "^0.34.6",
|
|
49
|
+
"vue-tsc": "^1.8.22",
|
|
50
|
+
"yarn": "^1.22.19"
|
|
40
51
|
},
|
|
41
52
|
"resolutions": {
|
|
42
53
|
"wrap-ansi": "npm:wrap-ansi@^7.0.0"
|