@devix-tecnologia/timeline-vue 1.1.2 → 1.3.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 +1 -3
- package/dist/style.css +1 -1
- package/dist/timeline-vue.es.js +673 -276
- 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 +4 -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 +2 -2
- package/dist/types/components/timeline/type.d.ts +2 -2
- package/dist/types/components/timeline/typeDetalhado.d.ts +15 -0
- package/package.json +2 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import "material-symbols/outlined.css";
|
|
3
|
+
import { AoClicarEvento } from "../type";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
aoClicar: {
|
|
6
|
+
required: false;
|
|
7
|
+
type: PropType<AoClicarEvento>;
|
|
8
|
+
};
|
|
9
|
+
salvarVisivel: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
classes: import("vue").ComputedRef<{
|
|
14
|
+
visivel: boolean;
|
|
15
|
+
invisivel: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
aoClicar: {
|
|
19
|
+
required: false;
|
|
20
|
+
type: PropType<AoClicarEvento>;
|
|
21
|
+
};
|
|
22
|
+
salvarVisivel: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
salvarVisivel: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import "material-symbols/outlined.css";
|
|
3
|
+
import { Perfil } from "../type";
|
|
4
|
+
import { EventoDetalhado } from "../typeDetalhado";
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
perfilEvento: {
|
|
7
|
+
required: true;
|
|
8
|
+
type: PropType<Perfil>;
|
|
9
|
+
};
|
|
10
|
+
dadosEvento: {
|
|
11
|
+
required: true;
|
|
12
|
+
type: PropType<EventoDetalhado>;
|
|
13
|
+
};
|
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
perfilEvento: {
|
|
16
|
+
required: true;
|
|
17
|
+
type: PropType<Perfil>;
|
|
18
|
+
};
|
|
19
|
+
dadosEvento: {
|
|
20
|
+
required: true;
|
|
21
|
+
type: PropType<EventoDetalhado>;
|
|
22
|
+
};
|
|
23
|
+
}>>, {}>;
|
|
24
|
+
export default _default;
|
|
@@ -15,7 +15,7 @@ type TipoEventoTimeline = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
perfilTimeline: {
|
|
18
|
-
required:
|
|
18
|
+
required: false;
|
|
19
19
|
type: ObjectConstructor;
|
|
20
20
|
};
|
|
21
21
|
eventosTimeline: {
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
scrollParaItemAtual: () => void;
|
|
28
28
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
perfilTimeline: {
|
|
30
|
-
required:
|
|
30
|
+
required: false;
|
|
31
31
|
type: ObjectConstructor;
|
|
32
32
|
};
|
|
33
33
|
eventosTimeline: {
|
|
@@ -7,8 +7,8 @@ export type Categoria = {
|
|
|
7
7
|
nome: string;
|
|
8
8
|
icone: string;
|
|
9
9
|
};
|
|
10
|
+
export type AoClicarEvento = (evento: Evento) => void;
|
|
10
11
|
export type Evento = {
|
|
11
|
-
id: string;
|
|
12
12
|
data: Date;
|
|
13
13
|
previsto: Date;
|
|
14
14
|
duracao: number | null;
|
|
@@ -20,7 +20,7 @@ export type Evento = {
|
|
|
20
20
|
categoria: Categoria;
|
|
21
21
|
status: "atrasado" | "adiantado" | "adiado" | "realizado" | "planejado" | "cancelado";
|
|
22
22
|
criticidade: "baixa" | "media" | "alta";
|
|
23
|
-
|
|
23
|
+
aoClicar?: AoClicarEvento;
|
|
24
24
|
atual: boolean;
|
|
25
25
|
scroll: boolean;
|
|
26
26
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Evento } from "./type";
|
|
2
|
+
export type Autor = {
|
|
3
|
+
nome: string;
|
|
4
|
+
};
|
|
5
|
+
export type Observacao = {
|
|
6
|
+
mensagem: string;
|
|
7
|
+
autor: Autor;
|
|
8
|
+
criadaEm: Date;
|
|
9
|
+
};
|
|
10
|
+
export type AoAlterarEvento = (eventoDetalhado: EventoDetalhado) => void;
|
|
11
|
+
export type AoAdicionarObservacao = (eventoDetalhado: EventoDetalhado, observacao: Observacao) => void;
|
|
12
|
+
export type AoFechar = () => void;
|
|
13
|
+
export type EventoDetalhado = Evento & {
|
|
14
|
+
observacoes: Observacao[];
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devix-tecnologia/timeline-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
7
7
|
"build": "vue-tsc && vite build",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@fontsource/material-icons": "^4.5.4",
|
|
15
|
+
"date-fns": "^2.30.0",
|
|
15
16
|
"material-symbols": "^0.5.5",
|
|
16
17
|
"vue": "^3.0.0"
|
|
17
18
|
},
|