@imj_media/tareas 1.1.13 → 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/dist/packages/tareas/src/components/kanban-campania/filters.d.ts +10 -15
- package/dist/packages/tareas/src/components/kanban-general/filters.d.ts +10 -15
- package/dist/packages/tareas/src/components/lista-campania/ActionsTaskList.d.ts +2 -1
- package/dist/packages/tareas/src/components/organisms/ButtonMoveTask.d.ts +12 -6
- package/dist/packages/tareas/src/components/organisms/Checkbox.d.ts +2 -1
- package/dist/packages/tareas/src/components/organisms/Task.d.ts +1 -1
- package/dist/packages/tareas/src/constants/colors.d.ts +6 -0
- package/dist/packages/tareas/src/context/userLog.context.d.ts +1 -0
- package/dist/packages/tareas/src/core/actions/get_tasks_project.action.d.ts +1 -1
- package/dist/packages/tareas/src/core/actions/get_tasks_response.action.d.ts +1 -0
- package/dist/packages/tareas/src/core/get_atraso_reasons_response.action.d.ts +5 -0
- package/dist/packages/tareas/src/hooks/useAtrasoReason.d.ts +15 -0
- package/dist/packages/tareas/src/hooks/useCheckTask.d.ts +2 -1
- package/dist/packages/tareas/src/hooks/useFiltersKanbanCampania.d.ts +4 -0
- package/dist/packages/tareas/src/hooks/useFiltersKanbanGeneral.d.ts +3 -0
- package/dist/packages/tareas/src/hooks/useFunctionsTasks.d.ts +2 -1
- package/dist/packages/tareas/src/hooks/useToDoTasks.d.ts +1 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/atraso-reasons-response.d.ts +10 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-campania-response.d.ts +3 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-campania.d.ts +3 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-kanban-general.d.ts +7 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-reponse.d.ts +3 -0
- package/dist/packages/tareas/src/infraestructure/mappers/atraso-reasons.d.ts +9 -0
- package/dist/packages/tareas/src/pages/App.d.ts +1 -0
- package/dist/packages/tareas/src/types/index.d.ts +17 -0
- package/dist/tareas.cjs +42 -1
- package/dist/tareas.css +1 -1
- package/dist/tareas.es.js +2078 -1470
- package/package.json +2 -2
- package/LICENSE.md +0 -21
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface FilterKanbanCampania {
|
|
2
2
|
label: string;
|
|
3
|
-
type:
|
|
3
|
+
type: 'select';
|
|
4
4
|
id: string;
|
|
5
|
-
options:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
options: {
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
}[];
|
|
17
|
-
})[];
|
|
5
|
+
options: FilterOption[];
|
|
6
|
+
}
|
|
7
|
+
interface FilterOption {
|
|
8
|
+
id: string | number;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const filtersToShow: FilterKanbanCampania[];
|
|
12
|
+
export {};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface FilterKanbanGeneral {
|
|
2
2
|
label: string;
|
|
3
|
-
type:
|
|
3
|
+
type: 'select';
|
|
4
4
|
id: string;
|
|
5
|
-
options:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
id: string;
|
|
13
|
-
options: {
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
}[];
|
|
17
|
-
})[];
|
|
5
|
+
options: FilterOption[];
|
|
6
|
+
}
|
|
7
|
+
interface FilterOption {
|
|
8
|
+
id: string | number;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const filtersToShow: FilterKanbanGeneral[];
|
|
18
12
|
export declare const filtersTableList: {
|
|
19
13
|
label: string;
|
|
20
14
|
type: string;
|
|
@@ -24,3 +18,4 @@ export declare const filtersTableList: {
|
|
|
24
18
|
name: string;
|
|
25
19
|
}[];
|
|
26
20
|
}[];
|
|
21
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
declare const ActionsTaskList: ({ id, priority, difficulty, endDate, }: {
|
|
1
|
+
declare const ActionsTaskList: ({ id, priority, difficulty, endDate, atraso, }: {
|
|
2
2
|
id: number;
|
|
3
3
|
priority: number;
|
|
4
4
|
difficulty: any;
|
|
5
5
|
endDate: any;
|
|
6
|
+
atraso: any;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default ActionsTaskList;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ICategory } from '../../types';
|
|
2
|
+
type ButtonMoveTaskProps = {
|
|
3
|
+
status: number;
|
|
4
|
+
nameRequiredTask: string;
|
|
5
|
+
statusRequiredTask: number;
|
|
6
|
+
id: number;
|
|
7
|
+
statusLateTask?: number | null;
|
|
8
|
+
projectID: number;
|
|
9
|
+
atrasoId?: number;
|
|
10
|
+
categoria?: ICategory | null;
|
|
11
|
+
};
|
|
12
|
+
declare const ButtonMoveTask: ({ status, nameRequiredTask, statusRequiredTask, id, statusLateTask, projectID, atrasoId, categoria, }: ButtonMoveTaskProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
13
|
export default ButtonMoveTask;
|
|
@@ -3,6 +3,7 @@ interface ICheckboxProps {
|
|
|
3
3
|
nameRequiredTask: string;
|
|
4
4
|
statusRequiredTask: number;
|
|
5
5
|
status: number;
|
|
6
|
+
idAtraso: number;
|
|
6
7
|
}
|
|
7
|
-
declare const Checkbox: ({ id, nameRequiredTask, statusRequiredTask, status }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const Checkbox: ({ id, nameRequiredTask, statusRequiredTask, status, idAtraso }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default Checkbox;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TasksKanbanGeneral } from '../../infraestructure/interfaces/tasks-kanban-general';
|
|
2
|
-
declare const Task: ({ id, task, endDate, users, willBePaused, nameProject, comments, priority, difficulty, responsible, nameRequiredTask, statusRequiredTask, status, repeatsToDo, repeats, medioName, paused, }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Task: ({ id, task, endDate, users, willBePaused, nameProject, comments, priority, difficulty, responsible, nameRequiredTask, statusRequiredTask, status, repeatsToDo, repeats, medioName, paused, idProject, atraso, categoria }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Task;
|
|
@@ -74,6 +74,7 @@ export declare const COLORS: {
|
|
|
74
74
|
gray_light: string;
|
|
75
75
|
gray_regular: string;
|
|
76
76
|
gray_dark: string;
|
|
77
|
+
gray_medium: string;
|
|
77
78
|
};
|
|
78
79
|
black: {
|
|
79
80
|
black_light: string;
|
|
@@ -81,4 +82,9 @@ export declare const COLORS: {
|
|
|
81
82
|
black_dark: string;
|
|
82
83
|
black_regular: string;
|
|
83
84
|
};
|
|
85
|
+
blue: {
|
|
86
|
+
blue_light: string;
|
|
87
|
+
blue_medium: string;
|
|
88
|
+
blue_dark: string;
|
|
89
|
+
};
|
|
84
90
|
};
|
|
@@ -34,7 +34,7 @@ interface IGetTasksResponse {
|
|
|
34
34
|
tasks_api: AxiosInstance;
|
|
35
35
|
project: number;
|
|
36
36
|
}
|
|
37
|
-
type TConfigs = 'yo_y_mis_equipos' | 'mis_equipos' | 'yo';
|
|
37
|
+
export type TConfigs = 'yo_y_mis_equipos' | 'mis_equipos' | 'yo' | 'todas';
|
|
38
38
|
type TDifficulty = 'Muy facil' | 'Facil' | 'Media' | 'Dificil' | 'Muy dificil';
|
|
39
39
|
type TPriority = 'Sin prioridad' | 'Prioridad Baja' | 'Prioridad Media' | 'Prioridad Alta';
|
|
40
40
|
type IDependency = 'con' | 'sin';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { IAtrasoReasonsResponse } from '../infraestructure/interfaces/atraso-reasons-response';
|
|
3
|
+
export declare const getAtrasoReasonsResponse: ({ tasks_api, }: {
|
|
4
|
+
tasks_api: AxiosInstance;
|
|
5
|
+
}) => Promise<IAtrasoReasonsResponse[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const useAtrasoReason: ({ enabled }?: {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}) => {
|
|
4
|
+
atrasoReasons: import('../infraestructure/interfaces/atraso-reasons-response').IAtrasoReasonsResponse[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
createAtraso: ({ taskId, projectID, motivo, }: {
|
|
7
|
+
taskId: number;
|
|
8
|
+
projectID: number;
|
|
9
|
+
motivo: number;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
getAtrasoReasons: () => Promise<any>;
|
|
12
|
+
deleteAtraso: (atrasoId: number) => Promise<void>;
|
|
13
|
+
finalizarAtraso: (atrasoId: number) => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export default useAtrasoReason;
|
|
@@ -14,8 +14,9 @@ declare const useFunctionsTasks: () => {
|
|
|
14
14
|
startWorking: ({ id }: {
|
|
15
15
|
id: number;
|
|
16
16
|
}) => Promise<void>;
|
|
17
|
-
completeTask: ({ id }: {
|
|
17
|
+
completeTask: ({ id, idAtraso }: {
|
|
18
18
|
id: number;
|
|
19
|
+
idAtraso: number;
|
|
19
20
|
}) => Promise<void>;
|
|
20
21
|
reasignResponsible: ({ id, idNewResponsible, typeOfSelect }: {
|
|
21
22
|
id: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IAtrasoReason, ICategory } from '../../types';
|
|
1
2
|
export interface ITasksCampaignResponse {
|
|
2
3
|
id: number;
|
|
3
4
|
texto_corto: string;
|
|
@@ -33,6 +34,8 @@ export interface ITasksCampaignResponse {
|
|
|
33
34
|
tarea_principal: boolean;
|
|
34
35
|
nombre_medio: string;
|
|
35
36
|
pausada: boolean;
|
|
37
|
+
atraso: IAtrasoReason | null;
|
|
38
|
+
categoria: ICategory | null;
|
|
36
39
|
}
|
|
37
40
|
export interface Comentario {
|
|
38
41
|
id: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IAtrasoReason, ICategory } from '../../types';
|
|
1
2
|
import { IUsers } from './users';
|
|
2
3
|
export interface ITasksCampaign {
|
|
3
4
|
isPrincipalTask: boolean;
|
|
@@ -21,6 +22,8 @@ export interface ITasksCampaign {
|
|
|
21
22
|
responsible: number | null;
|
|
22
23
|
orden: number;
|
|
23
24
|
paused: boolean;
|
|
25
|
+
atraso: IAtrasoReason | null;
|
|
26
|
+
categoria: ICategory | null;
|
|
24
27
|
}
|
|
25
28
|
export interface IChildTask {
|
|
26
29
|
id: number;
|
|
@@ -18,4 +18,11 @@ export interface TasksKanbanGeneral {
|
|
|
18
18
|
repeatsToDo?: number | null;
|
|
19
19
|
repeats?: number | null;
|
|
20
20
|
medioName?: string | null;
|
|
21
|
+
atraso?: any;
|
|
22
|
+
categoria?: ICategory | null;
|
|
23
|
+
}
|
|
24
|
+
export interface ICategory {
|
|
25
|
+
id: number;
|
|
26
|
+
nombre: string;
|
|
27
|
+
tipo: string;
|
|
21
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IAtrasoReason, ICategory } from '../../types';
|
|
1
2
|
export interface ITasksResponse {
|
|
2
3
|
id: number;
|
|
3
4
|
texto_corto: string;
|
|
@@ -28,6 +29,8 @@ export interface ITasksResponse {
|
|
|
28
29
|
updated_by: Responsable | null;
|
|
29
30
|
nombre_medio: string | null;
|
|
30
31
|
pausada: boolean;
|
|
32
|
+
atraso: IAtrasoReason | null;
|
|
33
|
+
categoria: ICategory | null;
|
|
31
34
|
}
|
|
32
35
|
export interface Equipo {
|
|
33
36
|
id: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICategory } from '../../types';
|
|
2
|
+
import { IAtrasoReasonsResponse } from '../interfaces/atraso-reasons-response';
|
|
3
|
+
export declare class AtrasoReasonsMapper {
|
|
4
|
+
static toAtrasoReasons(atrasoReason: IAtrasoReasonsResponse): {
|
|
5
|
+
id: number;
|
|
6
|
+
motivo_imj: string;
|
|
7
|
+
categoria: ICategory | null;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -71,6 +71,8 @@ type DetailsTaskData = {
|
|
|
71
71
|
texto_largo: string | null;
|
|
72
72
|
id_t_requerida: TRequirement;
|
|
73
73
|
ids_t_dependientes: TRequirement[];
|
|
74
|
+
atraso: IAtrasoReason | null;
|
|
75
|
+
categoria: ICategory | null;
|
|
74
76
|
};
|
|
75
77
|
type DetailsTaskProps = {
|
|
76
78
|
isOpen: boolean;
|
|
@@ -86,3 +88,18 @@ type TabDetailsTaskProps = {
|
|
|
86
88
|
items: TabDetailsTaskItem[];
|
|
87
89
|
};
|
|
88
90
|
export type { DetailsTaskData, DetailsTaskProps, TabDetailsTaskProps, TabDetailsTaskItem, CommentsProps, CommentItem, CommentProps, };
|
|
91
|
+
export type ICategory = {
|
|
92
|
+
id: number;
|
|
93
|
+
nombre: string;
|
|
94
|
+
tipo: string;
|
|
95
|
+
};
|
|
96
|
+
export type IAtrasoReason = {
|
|
97
|
+
activa: boolean;
|
|
98
|
+
diasRetraso: number;
|
|
99
|
+
etapa: string;
|
|
100
|
+
medioId: string;
|
|
101
|
+
motivo: string;
|
|
102
|
+
motivo_imj: string;
|
|
103
|
+
tareaId: number;
|
|
104
|
+
atrasoId: number;
|
|
105
|
+
};
|