@imj_media/tareas 0.0.8 → 0.1.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/index.d.ts +2 -0
- package/dist/src/components/atoms/Avatar.d.ts +3 -0
- package/dist/src/components/atoms/Comment.d.ts +2 -0
- package/dist/src/components/atoms/InputSearch.d.ts +5 -0
- package/dist/src/components/atoms/PauseTaskButton.d.ts +4 -0
- package/dist/src/components/atoms/SkeletonCard.d.ts +2 -0
- package/dist/src/components/atoms/SkeletonList.d.ts +2 -0
- package/dist/src/components/atoms/TabButton.d.ts +8 -0
- package/dist/src/components/atoms/TooltipUser.d.ts +8 -0
- package/dist/src/components/atoms/index.d.ts +2 -0
- package/dist/src/components/index.d.ts +4 -0
- package/dist/src/components/kanban-campania/DoneBoard.d.ts +2 -0
- package/dist/src/components/kanban-campania/KanbanCampania.d.ts +2 -0
- package/dist/src/components/kanban-campania/ToDoBoard.d.ts +2 -0
- package/dist/src/components/kanban-campania/WorkingBoard.d.ts +2 -0
- package/dist/src/components/kanban-campania/filters.d.ts +17 -0
- package/dist/src/components/kanban-campania/index.d.ts +3 -0
- package/dist/src/components/kanban-general/DoneBoard.d.ts +2 -0
- package/dist/src/components/kanban-general/KanbanGeneral.d.ts +2 -0
- package/dist/src/components/kanban-general/ToDoBoard.d.ts +2 -0
- package/dist/src/components/kanban-general/WorkingBoard.d.ts +2 -0
- package/dist/src/components/kanban-general/filters.d.ts +17 -0
- package/dist/src/components/kanban-general/index.d.ts +3 -0
- package/dist/src/components/layout/FilterButton.d.ts +5 -0
- package/dist/src/components/layout/FilterContent.d.ts +2 -0
- package/dist/src/components/layout/IndexComponents.d.ts +3 -0
- package/dist/src/components/lista-campania/ActionsTaskList.d.ts +5 -0
- package/dist/src/components/lista-campania/ChildTask.d.ts +5 -0
- package/dist/src/components/lista-campania/Date.d.ts +6 -0
- package/dist/src/components/lista-campania/ListaCampania.d.ts +2 -0
- package/dist/src/components/lista-campania/MultiselectCheckbox.d.ts +5 -0
- package/dist/src/components/lista-campania/ParentTask.d.ts +4 -0
- package/dist/src/components/lista-campania/TaskName.d.ts +4 -0
- package/dist/src/components/molecules/AllComments.d.ts +2 -0
- package/dist/src/components/molecules/ButtonAssignUsers.d.ts +7 -0
- package/dist/src/components/molecules/DependentTasks.d.ts +1 -0
- package/dist/src/components/molecules/Tabs.d.ts +8 -0
- package/dist/src/components/molecules/index.d.ts +1 -0
- package/dist/src/components/organisms/Board.d.ts +11 -0
- package/dist/src/components/organisms/Checkbox.d.ts +8 -0
- package/dist/src/components/organisms/DetailsTask.d.ts +2 -0
- package/dist/src/components/organisms/TabDetailsTask.d.ts +2 -0
- package/dist/src/components/organisms/Task.d.ts +3 -0
- package/dist/src/components/organisms/index.d.ts +2 -0
- package/dist/src/components/tasks/PriorityButton.d.ts +6 -0
- package/dist/src/components/templates/Layout.d.ts +5 -0
- package/dist/src/components/templates/TableList.d.ts +2 -0
- package/dist/src/constants/colors.d.ts +62 -0
- package/dist/src/constants/gaps.d.ts +8 -0
- package/dist/src/constants/paddings.d.ts +8 -0
- package/dist/src/constants/shadows.d.ts +5 -0
- package/dist/src/context/MultiselectionTasksCampaing.d.ts +11 -0
- package/dist/src/context/filtersLayout.context.d.ts +46 -0
- package/dist/src/context/kanbanCampania.context.d.ts +13 -0
- package/dist/src/context/useApis.context.d.ts +17 -0
- package/dist/src/context/userLog.context.d.ts +18 -0
- package/dist/src/hooks/useAllUsers.d.ts +4 -0
- package/dist/src/hooks/useCheckTask.d.ts +7 -0
- package/dist/src/hooks/useComerciales.d.ts +9 -0
- package/dist/src/hooks/useDoneTasks.d.ts +5 -0
- package/dist/src/hooks/useElementPosition.d.ts +10 -0
- package/dist/src/hooks/useFunctionsTasks.d.ts +12 -0
- package/dist/src/hooks/useNormalizedData.d.ts +1 -0
- package/dist/src/hooks/useTeams.d.ts +4 -0
- package/dist/src/hooks/useToDoTasks.d.ts +5 -0
- package/dist/src/hooks/useWorkingTasks.d.ts +5 -0
- package/dist/src/pages/App.d.ts +12 -0
- package/dist/src/pages/NoAccessToken.d.ts +2 -0
- package/dist/src/pages/NoUser.d.ts +2 -0
- package/dist/src/stories/AppTasks.stories.d.ts +6 -0
- package/dist/src/types/index.d.ts +88 -0
- package/{src/types/interfaces.ts → dist/src/types/interfaces.d.ts} +1 -27
- package/dist/src/types/layout.types.d.ts +17 -0
- package/dist/src/utils/filters.functions.d.ts +2 -0
- package/dist/src/utils/formats.d.ts +8 -0
- package/dist/src/utils/inputs.functions.d.ts +4 -0
- package/dist/src/utils/tanstack.functions.d.ts +8 -0
- package/dist/src/utils/utils.d.ts +2 -0
- package/dist/tareas.cjs +3 -0
- package/dist/tareas.es.js +2018 -0
- package/package.json +22 -5
- package/.env.template +0 -8
- package/.storybook/main.ts +0 -26
- package/.storybook/preview.ts +0 -15
- package/core/actions/get_all_users.action.ts +0 -16
- package/core/actions/get_salesman_response.action.ts +0 -16
- package/core/actions/get_tasks_project.action.ts +0 -62
- package/core/actions/get_tasks_response.action.ts +0 -56
- package/eslint.config.js +0 -28
- package/global.d.ts +0 -3
- package/infraestructure/interfaces/salesmans-obp-response.ts +0 -43
- package/infraestructure/interfaces/salesmans-obp.ts +0 -4
- package/infraestructure/interfaces/tasks-campania-response.ts +0 -118
- package/infraestructure/interfaces/tasks-campania.ts +0 -28
- package/infraestructure/interfaces/tasks-kanban-general.ts +0 -25
- package/infraestructure/interfaces/tasks-reponse.ts +0 -111
- package/infraestructure/interfaces/teams-response.ts +0 -7
- package/infraestructure/interfaces/teams.ts +0 -5
- package/infraestructure/interfaces/users-obp-response.ts +0 -52
- package/infraestructure/interfaces/users.ts +0 -5
- package/infraestructure/mappers/all-users-obp.ts +0 -12
- package/infraestructure/mappers/campaign-tasks.ts +0 -37
- package/infraestructure/mappers/kanban-tasks.ts +0 -35
- package/infraestructure/mappers/salesmans-obp.ts +0 -11
- package/infraestructure/mappers/teams.ts +0 -12
- package/postcss.config.js +0 -6
- package/src/components/atoms/Avatar.tsx +0 -14
- package/src/components/atoms/Comment.tsx +0 -33
- package/src/components/atoms/InputSearch.tsx +0 -40
- package/src/components/atoms/PauseTaskButton.tsx +0 -14
- package/src/components/atoms/SkeletonCard.tsx +0 -17
- package/src/components/atoms/TabButton.tsx +0 -25
- package/src/components/atoms/TooltipUser.tsx +0 -26
- package/src/components/atoms/index.ts +0 -2
- package/src/components/index.ts +0 -4
- package/src/components/kanban-campania/DoneBoard.tsx +0 -12
- package/src/components/kanban-campania/KanbanCampania.tsx +0 -39
- package/src/components/kanban-campania/ToDoBoard.tsx +0 -12
- package/src/components/kanban-campania/WorkingBoard.tsx +0 -13
- package/src/components/kanban-campania/filters.ts +0 -46
- package/src/components/kanban-campania/index.ts +0 -3
- package/src/components/kanban-general/DoneBoard.tsx +0 -12
- package/src/components/kanban-general/KanbanGeneral.tsx +0 -40
- package/src/components/kanban-general/ToDoBoard.tsx +0 -12
- package/src/components/kanban-general/WorkingBoard.tsx +0 -13
- package/src/components/kanban-general/filters.ts +0 -58
- package/src/components/kanban-general/index.ts +0 -3
- package/src/components/layout/FilterButton.tsx +0 -50
- package/src/components/layout/FilterContent.tsx +0 -70
- package/src/components/layout/IndexComponents.tsx +0 -32
- package/src/components/lista-campania/ActionsTaskList.tsx +0 -21
- package/src/components/lista-campania/ChildTask.tsx +0 -40
- package/src/components/lista-campania/Date.tsx +0 -30
- package/src/components/lista-campania/ListaCampania.tsx +0 -22
- package/src/components/lista-campania/MultiselectCheckbox.tsx +0 -23
- package/src/components/lista-campania/ParentTask.tsx +0 -46
- package/src/components/lista-campania/TaskName.tsx +0 -15
- package/src/components/molecules/AllComments.tsx +0 -78
- package/src/components/molecules/ButtonAssignUsers.tsx +0 -177
- package/src/components/molecules/DependentTasks.tsx +0 -64
- package/src/components/molecules/Tabs.tsx +0 -40
- package/src/components/molecules/index.ts +0 -1
- package/src/components/organisms/Board.tsx +0 -94
- package/src/components/organisms/Checkbox.tsx +0 -47
- package/src/components/organisms/DetailsTask.tsx +0 -286
- package/src/components/organisms/TabDetailsTask.tsx +0 -39
- package/src/components/organisms/Task.tsx +0 -177
- package/src/components/organisms/index.ts +0 -2
- package/src/components/tasks/PriorityButton.tsx +0 -79
- package/src/components/templates/Layout.tsx +0 -84
- package/src/components/templates/TableList.scss +0 -270
- package/src/components/templates/TableList.tsx +0 -239
- package/src/constants/colors.ts +0 -64
- package/src/constants/gaps.ts +0 -8
- package/src/constants/paddings.ts +0 -8
- package/src/constants/shadows.ts +0 -5
- package/src/context/MultiselectionTasksCampaing.tsx +0 -43
- package/src/context/filtersLayout.context.tsx +0 -118
- package/src/context/kanbanCampania.context.tsx +0 -67
- package/src/context/useApis.context.tsx +0 -47
- package/src/context/userLog.context.tsx +0 -50
- package/src/env.d.ts +0 -10
- package/src/functions/taskCalculations.tsx +0 -818
- package/src/hooks/useAllUsers.ts +0 -18
- package/src/hooks/useCheckTask.tsx +0 -15
- package/src/hooks/useComerciales.ts +0 -58
- package/src/hooks/useDoneTasks.ts +0 -90
- package/src/hooks/useElementPosition.ts +0 -34
- package/src/hooks/useFunctionsTasks.ts +0 -57
- package/src/hooks/useNormalizedData.ts +0 -36
- package/src/hooks/useTeams.ts +0 -19
- package/src/hooks/useToDoTasks.ts +0 -89
- package/src/hooks/useWorkingTasks.ts +0 -85
- package/src/index.css +0 -55
- package/src/pages/App.tsx +0 -42
- package/src/pages/NoAccessToken.tsx +0 -20
- package/src/pages/NoUser.tsx +0 -20
- package/src/stories/AppTasks.stories.tsx +0 -36
- package/src/types/index.ts +0 -107
- package/src/types/layout.types.ts +0 -30
- package/src/utils/filters.functions.ts +0 -17
- package/src/utils/formats.ts +0 -33
- package/src/utils/inputs.functions.ts +0 -25
- package/src/utils/tanstack.functions.ts +0 -19
- package/src/utils/utils.ts +0 -12
- package/src/vite-env.d.ts +0 -1
- package/tailwind.config.js +0 -32
- package/tsconfig.app.json +0 -26
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -24
- package/vite.config.ts +0 -16
- /package/{src/components/templates/index.ts → dist/src/components/templates/index.d.ts} +0 -0
- /package/{src/index.ts → dist/src/index.d.ts} +0 -0
- /package/{src/utils/functionsStorybook.tsx → dist/src/utils/functionsStorybook.d.ts} +0 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ITabButtonProps {
|
|
2
|
+
label: string;
|
|
3
|
+
active: boolean;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const TabButton: ({ label, active, onClick, disabled }: ITabButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TabButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUsers } from '../../../infraestructure/interfaces/users';
|
|
2
|
+
interface TooltipUserProps {
|
|
3
|
+
trigger: React.ReactNode;
|
|
4
|
+
user: Partial<IUsers>;
|
|
5
|
+
showUser?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const TooltipUser: ({ trigger, user, showUser }: TooltipUserProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TooltipUser;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const filtersToShow: ({
|
|
2
|
+
label: string;
|
|
3
|
+
type: string;
|
|
4
|
+
id: string;
|
|
5
|
+
options: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
type: string;
|
|
12
|
+
id: string;
|
|
13
|
+
options: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
})[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const filtersToShow: ({
|
|
2
|
+
label: string;
|
|
3
|
+
type: string;
|
|
4
|
+
id: string;
|
|
5
|
+
options: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
type: string;
|
|
12
|
+
id: string;
|
|
13
|
+
options: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
})[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IUsers } from '../../../infraestructure/interfaces/users';
|
|
2
|
+
declare const ButtonAssignUsers: ({ users, onClick, responsible }: {
|
|
3
|
+
users: IUsers[] | [];
|
|
4
|
+
onClick: (option: any) => void;
|
|
5
|
+
responsible: number | null;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ButtonAssignUsers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DependentTasks({ data }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TTab } from '../../types/layout.types';
|
|
2
|
+
interface ITabsProps {
|
|
3
|
+
tabs: TTab[];
|
|
4
|
+
renderItem: (index: TTab) => void;
|
|
5
|
+
initialTab?: TTab;
|
|
6
|
+
}
|
|
7
|
+
declare const Tabs: ({ tabs, renderItem, initialTab }: ITabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ButtonAssignUsers } from './ButtonAssignUsers';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TasksKanbanGeneral } from '../../../infraestructure/interfaces/tasks-kanban-general';
|
|
2
|
+
interface IBoard {
|
|
3
|
+
title: string;
|
|
4
|
+
tasks: TasksKanbanGeneral[];
|
|
5
|
+
loadNextPage?: () => void;
|
|
6
|
+
isFetching?: boolean;
|
|
7
|
+
isLoadingData?: boolean;
|
|
8
|
+
total?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const Board: ({ title, tasks, loadNextPage, isFetching, total }: IBoard) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Board;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ICheckboxProps {
|
|
2
|
+
id: number;
|
|
3
|
+
nameRequiredTask: string;
|
|
4
|
+
statusRequiredTask: number;
|
|
5
|
+
status: number;
|
|
6
|
+
}
|
|
7
|
+
declare const Checkbox: ({ id, nameRequiredTask, statusRequiredTask, status }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Checkbox;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TasksKanbanGeneral } from '../../../infraestructure/interfaces/tasks-kanban-general';
|
|
2
|
+
declare const Task: ({ id, task, endDate, users, willBePaused, nameProject, idProject, comments, priority, responsible, nameRequiredTask, statusRequiredTask, status, }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Task;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const COLORS: {
|
|
2
|
+
bg: {
|
|
3
|
+
DEFAULT: string;
|
|
4
|
+
content: string;
|
|
5
|
+
card: string;
|
|
6
|
+
};
|
|
7
|
+
texts: {
|
|
8
|
+
DEFAULT: string;
|
|
9
|
+
enfasis: string;
|
|
10
|
+
subtext: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
};
|
|
13
|
+
primary: {
|
|
14
|
+
light: string;
|
|
15
|
+
medium: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
regular: string;
|
|
18
|
+
pastel: string;
|
|
19
|
+
};
|
|
20
|
+
success: {
|
|
21
|
+
light: string;
|
|
22
|
+
medium: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
regular: string;
|
|
25
|
+
pastel: string;
|
|
26
|
+
};
|
|
27
|
+
danger: {
|
|
28
|
+
light: string;
|
|
29
|
+
medium: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
regular: string;
|
|
32
|
+
pastel: string;
|
|
33
|
+
};
|
|
34
|
+
warning: {
|
|
35
|
+
light: string;
|
|
36
|
+
medium: string;
|
|
37
|
+
dark: string;
|
|
38
|
+
regular: string;
|
|
39
|
+
pastel: string;
|
|
40
|
+
};
|
|
41
|
+
alert: {
|
|
42
|
+
light: string;
|
|
43
|
+
medium: string;
|
|
44
|
+
dark: string;
|
|
45
|
+
regular: string;
|
|
46
|
+
pastel: string;
|
|
47
|
+
};
|
|
48
|
+
info: {
|
|
49
|
+
light: string;
|
|
50
|
+
medium: string;
|
|
51
|
+
dark: string;
|
|
52
|
+
regular: string;
|
|
53
|
+
pastel: string;
|
|
54
|
+
};
|
|
55
|
+
link: {
|
|
56
|
+
light: string;
|
|
57
|
+
medium: string;
|
|
58
|
+
dark: string;
|
|
59
|
+
regular: string;
|
|
60
|
+
pastel: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IMultiselectCampaignTask {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
project: number;
|
|
4
|
+
}
|
|
5
|
+
interface IValuesContext {
|
|
6
|
+
selectedTasks: number[];
|
|
7
|
+
selectTask: (id: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const MultiselectCampaignTaskProvider: ({ children }: IMultiselectCampaignTask) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useMultiselectCampaignTask: () => IValuesContext;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IFieldFilter {
|
|
3
|
+
label: string;
|
|
4
|
+
type: TType;
|
|
5
|
+
id: string;
|
|
6
|
+
options?: {
|
|
7
|
+
id: string | number;
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
interface IFiltersLayoutContext {
|
|
12
|
+
fields: IFieldFilter[];
|
|
13
|
+
filters: FiltersContext;
|
|
14
|
+
defineFields: (fields: IFieldFilter[]) => void;
|
|
15
|
+
updateFilters: ({ name, value }: {
|
|
16
|
+
name: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
cleanFilters: () => void;
|
|
20
|
+
applyFilters: () => void;
|
|
21
|
+
initialFilters: TFilters;
|
|
22
|
+
}
|
|
23
|
+
interface FiltersContext {
|
|
24
|
+
justProjects: boolean;
|
|
25
|
+
owner: IOwner;
|
|
26
|
+
}
|
|
27
|
+
interface IOwner {
|
|
28
|
+
user: string;
|
|
29
|
+
config: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TFilters {
|
|
32
|
+
label: string;
|
|
33
|
+
type: TType;
|
|
34
|
+
id: string;
|
|
35
|
+
options?: {
|
|
36
|
+
id: string | number;
|
|
37
|
+
name: string;
|
|
38
|
+
}[];
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}
|
|
41
|
+
type TType = React.HTMLInputTypeAttribute;
|
|
42
|
+
export declare const FiltersLayoutProvider: ({ children }: {
|
|
43
|
+
children: React.ReactNode;
|
|
44
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const useFiltersLayoutContext: () => IFiltersLayoutContext;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface IInfoCampaniaContext {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
project: number;
|
|
4
|
+
}
|
|
5
|
+
interface IValuesContext {
|
|
6
|
+
tasksProject: any;
|
|
7
|
+
selectedTasks: number[];
|
|
8
|
+
selectTask: (id: number) => void;
|
|
9
|
+
projectID: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const InfoCampaniaProvider: ({ children, project }: IInfoCampaniaContext) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const useInfoCampania: () => IValuesContext;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
interface IUserLogContext {
|
|
3
|
+
user: User;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
env: Env;
|
|
6
|
+
}
|
|
7
|
+
interface User {
|
|
8
|
+
id: number;
|
|
9
|
+
accessToken: string;
|
|
10
|
+
}
|
|
11
|
+
interface IValuesContext {
|
|
12
|
+
tasks_api: AxiosInstance;
|
|
13
|
+
}
|
|
14
|
+
type Env = "dev" | "prod";
|
|
15
|
+
export declare const UseApisProvider: ({ children, user, env }: IUserLogContext) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const useApis: () => IValuesContext;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
interface IUserLogContext {
|
|
3
|
+
user: User;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
env: Env;
|
|
6
|
+
}
|
|
7
|
+
interface User {
|
|
8
|
+
id: number;
|
|
9
|
+
accessToken: string;
|
|
10
|
+
}
|
|
11
|
+
interface IValuesContext {
|
|
12
|
+
user: User;
|
|
13
|
+
tasks_api: AxiosInstance;
|
|
14
|
+
}
|
|
15
|
+
type Env = "dev" | "prod";
|
|
16
|
+
export declare const UserLogProvider: ({ children, user, env }: IUserLogContext) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const useUser: () => IValuesContext;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const useElementPosition: () => {
|
|
2
|
+
position: {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
setElementPosition: (e: React.MutableRefObject<HTMLElement>) => void;
|
|
7
|
+
getChildrenSize: (e: React.MutableRefObject<HTMLElement>) => DOMRect;
|
|
8
|
+
clearPosition: () => void;
|
|
9
|
+
};
|
|
10
|
+
export default useElementPosition;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IUpdateTask {
|
|
2
|
+
id: number;
|
|
3
|
+
user: number;
|
|
4
|
+
data: TData;
|
|
5
|
+
}
|
|
6
|
+
interface TData {
|
|
7
|
+
[key: string]: string | number | null | boolean | Date | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare const useFunctionsTasks: () => {
|
|
10
|
+
updateTask: ({ id, data, user }: IUpdateTask) => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export default useFunctionsTasks;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const normalizeData: (data: any) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface AppTasksProps {
|
|
2
|
+
path: 'kanban-general' | 'kanban-campania' | 'lista-campanias';
|
|
3
|
+
user: User;
|
|
4
|
+
env: Env;
|
|
5
|
+
}
|
|
6
|
+
interface User {
|
|
7
|
+
id: number;
|
|
8
|
+
accessToken: string;
|
|
9
|
+
}
|
|
10
|
+
type Env = 'dev' | 'prod';
|
|
11
|
+
declare const AppTasks: ({ path, user, env }: AppTasksProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default AppTasks;
|