@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.
Files changed (194) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/src/components/atoms/Avatar.d.ts +3 -0
  3. package/dist/src/components/atoms/Comment.d.ts +2 -0
  4. package/dist/src/components/atoms/InputSearch.d.ts +5 -0
  5. package/dist/src/components/atoms/PauseTaskButton.d.ts +4 -0
  6. package/dist/src/components/atoms/SkeletonCard.d.ts +2 -0
  7. package/dist/src/components/atoms/SkeletonList.d.ts +2 -0
  8. package/dist/src/components/atoms/TabButton.d.ts +8 -0
  9. package/dist/src/components/atoms/TooltipUser.d.ts +8 -0
  10. package/dist/src/components/atoms/index.d.ts +2 -0
  11. package/dist/src/components/index.d.ts +4 -0
  12. package/dist/src/components/kanban-campania/DoneBoard.d.ts +2 -0
  13. package/dist/src/components/kanban-campania/KanbanCampania.d.ts +2 -0
  14. package/dist/src/components/kanban-campania/ToDoBoard.d.ts +2 -0
  15. package/dist/src/components/kanban-campania/WorkingBoard.d.ts +2 -0
  16. package/dist/src/components/kanban-campania/filters.d.ts +17 -0
  17. package/dist/src/components/kanban-campania/index.d.ts +3 -0
  18. package/dist/src/components/kanban-general/DoneBoard.d.ts +2 -0
  19. package/dist/src/components/kanban-general/KanbanGeneral.d.ts +2 -0
  20. package/dist/src/components/kanban-general/ToDoBoard.d.ts +2 -0
  21. package/dist/src/components/kanban-general/WorkingBoard.d.ts +2 -0
  22. package/dist/src/components/kanban-general/filters.d.ts +17 -0
  23. package/dist/src/components/kanban-general/index.d.ts +3 -0
  24. package/dist/src/components/layout/FilterButton.d.ts +5 -0
  25. package/dist/src/components/layout/FilterContent.d.ts +2 -0
  26. package/dist/src/components/layout/IndexComponents.d.ts +3 -0
  27. package/dist/src/components/lista-campania/ActionsTaskList.d.ts +5 -0
  28. package/dist/src/components/lista-campania/ChildTask.d.ts +5 -0
  29. package/dist/src/components/lista-campania/Date.d.ts +6 -0
  30. package/dist/src/components/lista-campania/ListaCampania.d.ts +2 -0
  31. package/dist/src/components/lista-campania/MultiselectCheckbox.d.ts +5 -0
  32. package/dist/src/components/lista-campania/ParentTask.d.ts +4 -0
  33. package/dist/src/components/lista-campania/TaskName.d.ts +4 -0
  34. package/dist/src/components/molecules/AllComments.d.ts +2 -0
  35. package/dist/src/components/molecules/ButtonAssignUsers.d.ts +7 -0
  36. package/dist/src/components/molecules/DependentTasks.d.ts +1 -0
  37. package/dist/src/components/molecules/Tabs.d.ts +8 -0
  38. package/dist/src/components/molecules/index.d.ts +1 -0
  39. package/dist/src/components/organisms/Board.d.ts +11 -0
  40. package/dist/src/components/organisms/Checkbox.d.ts +8 -0
  41. package/dist/src/components/organisms/DetailsTask.d.ts +2 -0
  42. package/dist/src/components/organisms/TabDetailsTask.d.ts +2 -0
  43. package/dist/src/components/organisms/Task.d.ts +3 -0
  44. package/dist/src/components/organisms/index.d.ts +2 -0
  45. package/dist/src/components/tasks/PriorityButton.d.ts +6 -0
  46. package/dist/src/components/templates/Layout.d.ts +5 -0
  47. package/dist/src/components/templates/TableList.d.ts +2 -0
  48. package/dist/src/constants/colors.d.ts +62 -0
  49. package/dist/src/constants/gaps.d.ts +8 -0
  50. package/dist/src/constants/paddings.d.ts +8 -0
  51. package/dist/src/constants/shadows.d.ts +5 -0
  52. package/dist/src/context/MultiselectionTasksCampaing.d.ts +11 -0
  53. package/dist/src/context/filtersLayout.context.d.ts +46 -0
  54. package/dist/src/context/kanbanCampania.context.d.ts +13 -0
  55. package/dist/src/context/useApis.context.d.ts +17 -0
  56. package/dist/src/context/userLog.context.d.ts +18 -0
  57. package/dist/src/hooks/useAllUsers.d.ts +4 -0
  58. package/dist/src/hooks/useCheckTask.d.ts +7 -0
  59. package/dist/src/hooks/useComerciales.d.ts +9 -0
  60. package/dist/src/hooks/useDoneTasks.d.ts +5 -0
  61. package/dist/src/hooks/useElementPosition.d.ts +10 -0
  62. package/dist/src/hooks/useFunctionsTasks.d.ts +12 -0
  63. package/dist/src/hooks/useNormalizedData.d.ts +1 -0
  64. package/dist/src/hooks/useTeams.d.ts +4 -0
  65. package/dist/src/hooks/useToDoTasks.d.ts +5 -0
  66. package/dist/src/hooks/useWorkingTasks.d.ts +5 -0
  67. package/dist/src/pages/App.d.ts +12 -0
  68. package/dist/src/pages/NoAccessToken.d.ts +2 -0
  69. package/dist/src/pages/NoUser.d.ts +2 -0
  70. package/dist/src/stories/AppTasks.stories.d.ts +6 -0
  71. package/dist/src/types/index.d.ts +88 -0
  72. package/{src/types/interfaces.ts → dist/src/types/interfaces.d.ts} +1 -27
  73. package/dist/src/types/layout.types.d.ts +17 -0
  74. package/dist/src/utils/filters.functions.d.ts +2 -0
  75. package/dist/src/utils/formats.d.ts +8 -0
  76. package/dist/src/utils/inputs.functions.d.ts +4 -0
  77. package/dist/src/utils/tanstack.functions.d.ts +8 -0
  78. package/dist/src/utils/utils.d.ts +2 -0
  79. package/dist/tareas.cjs +3 -0
  80. package/dist/tareas.es.js +2018 -0
  81. package/package.json +22 -5
  82. package/.env.template +0 -8
  83. package/.storybook/main.ts +0 -26
  84. package/.storybook/preview.ts +0 -15
  85. package/core/actions/get_all_users.action.ts +0 -16
  86. package/core/actions/get_salesman_response.action.ts +0 -16
  87. package/core/actions/get_tasks_project.action.ts +0 -62
  88. package/core/actions/get_tasks_response.action.ts +0 -56
  89. package/eslint.config.js +0 -28
  90. package/global.d.ts +0 -3
  91. package/infraestructure/interfaces/salesmans-obp-response.ts +0 -43
  92. package/infraestructure/interfaces/salesmans-obp.ts +0 -4
  93. package/infraestructure/interfaces/tasks-campania-response.ts +0 -118
  94. package/infraestructure/interfaces/tasks-campania.ts +0 -28
  95. package/infraestructure/interfaces/tasks-kanban-general.ts +0 -25
  96. package/infraestructure/interfaces/tasks-reponse.ts +0 -111
  97. package/infraestructure/interfaces/teams-response.ts +0 -7
  98. package/infraestructure/interfaces/teams.ts +0 -5
  99. package/infraestructure/interfaces/users-obp-response.ts +0 -52
  100. package/infraestructure/interfaces/users.ts +0 -5
  101. package/infraestructure/mappers/all-users-obp.ts +0 -12
  102. package/infraestructure/mappers/campaign-tasks.ts +0 -37
  103. package/infraestructure/mappers/kanban-tasks.ts +0 -35
  104. package/infraestructure/mappers/salesmans-obp.ts +0 -11
  105. package/infraestructure/mappers/teams.ts +0 -12
  106. package/postcss.config.js +0 -6
  107. package/src/components/atoms/Avatar.tsx +0 -14
  108. package/src/components/atoms/Comment.tsx +0 -33
  109. package/src/components/atoms/InputSearch.tsx +0 -40
  110. package/src/components/atoms/PauseTaskButton.tsx +0 -14
  111. package/src/components/atoms/SkeletonCard.tsx +0 -17
  112. package/src/components/atoms/TabButton.tsx +0 -25
  113. package/src/components/atoms/TooltipUser.tsx +0 -26
  114. package/src/components/atoms/index.ts +0 -2
  115. package/src/components/index.ts +0 -4
  116. package/src/components/kanban-campania/DoneBoard.tsx +0 -12
  117. package/src/components/kanban-campania/KanbanCampania.tsx +0 -39
  118. package/src/components/kanban-campania/ToDoBoard.tsx +0 -12
  119. package/src/components/kanban-campania/WorkingBoard.tsx +0 -13
  120. package/src/components/kanban-campania/filters.ts +0 -46
  121. package/src/components/kanban-campania/index.ts +0 -3
  122. package/src/components/kanban-general/DoneBoard.tsx +0 -12
  123. package/src/components/kanban-general/KanbanGeneral.tsx +0 -40
  124. package/src/components/kanban-general/ToDoBoard.tsx +0 -12
  125. package/src/components/kanban-general/WorkingBoard.tsx +0 -13
  126. package/src/components/kanban-general/filters.ts +0 -58
  127. package/src/components/kanban-general/index.ts +0 -3
  128. package/src/components/layout/FilterButton.tsx +0 -50
  129. package/src/components/layout/FilterContent.tsx +0 -70
  130. package/src/components/layout/IndexComponents.tsx +0 -32
  131. package/src/components/lista-campania/ActionsTaskList.tsx +0 -21
  132. package/src/components/lista-campania/ChildTask.tsx +0 -40
  133. package/src/components/lista-campania/Date.tsx +0 -30
  134. package/src/components/lista-campania/ListaCampania.tsx +0 -22
  135. package/src/components/lista-campania/MultiselectCheckbox.tsx +0 -23
  136. package/src/components/lista-campania/ParentTask.tsx +0 -46
  137. package/src/components/lista-campania/TaskName.tsx +0 -15
  138. package/src/components/molecules/AllComments.tsx +0 -78
  139. package/src/components/molecules/ButtonAssignUsers.tsx +0 -177
  140. package/src/components/molecules/DependentTasks.tsx +0 -64
  141. package/src/components/molecules/Tabs.tsx +0 -40
  142. package/src/components/molecules/index.ts +0 -1
  143. package/src/components/organisms/Board.tsx +0 -94
  144. package/src/components/organisms/Checkbox.tsx +0 -47
  145. package/src/components/organisms/DetailsTask.tsx +0 -286
  146. package/src/components/organisms/TabDetailsTask.tsx +0 -39
  147. package/src/components/organisms/Task.tsx +0 -177
  148. package/src/components/organisms/index.ts +0 -2
  149. package/src/components/tasks/PriorityButton.tsx +0 -79
  150. package/src/components/templates/Layout.tsx +0 -84
  151. package/src/components/templates/TableList.scss +0 -270
  152. package/src/components/templates/TableList.tsx +0 -239
  153. package/src/constants/colors.ts +0 -64
  154. package/src/constants/gaps.ts +0 -8
  155. package/src/constants/paddings.ts +0 -8
  156. package/src/constants/shadows.ts +0 -5
  157. package/src/context/MultiselectionTasksCampaing.tsx +0 -43
  158. package/src/context/filtersLayout.context.tsx +0 -118
  159. package/src/context/kanbanCampania.context.tsx +0 -67
  160. package/src/context/useApis.context.tsx +0 -47
  161. package/src/context/userLog.context.tsx +0 -50
  162. package/src/env.d.ts +0 -10
  163. package/src/functions/taskCalculations.tsx +0 -818
  164. package/src/hooks/useAllUsers.ts +0 -18
  165. package/src/hooks/useCheckTask.tsx +0 -15
  166. package/src/hooks/useComerciales.ts +0 -58
  167. package/src/hooks/useDoneTasks.ts +0 -90
  168. package/src/hooks/useElementPosition.ts +0 -34
  169. package/src/hooks/useFunctionsTasks.ts +0 -57
  170. package/src/hooks/useNormalizedData.ts +0 -36
  171. package/src/hooks/useTeams.ts +0 -19
  172. package/src/hooks/useToDoTasks.ts +0 -89
  173. package/src/hooks/useWorkingTasks.ts +0 -85
  174. package/src/index.css +0 -55
  175. package/src/pages/App.tsx +0 -42
  176. package/src/pages/NoAccessToken.tsx +0 -20
  177. package/src/pages/NoUser.tsx +0 -20
  178. package/src/stories/AppTasks.stories.tsx +0 -36
  179. package/src/types/index.ts +0 -107
  180. package/src/types/layout.types.ts +0 -30
  181. package/src/utils/filters.functions.ts +0 -17
  182. package/src/utils/formats.ts +0 -33
  183. package/src/utils/inputs.functions.ts +0 -25
  184. package/src/utils/tanstack.functions.ts +0 -19
  185. package/src/utils/utils.ts +0 -12
  186. package/src/vite-env.d.ts +0 -1
  187. package/tailwind.config.js +0 -32
  188. package/tsconfig.app.json +0 -26
  189. package/tsconfig.json +0 -7
  190. package/tsconfig.node.json +0 -24
  191. package/vite.config.ts +0 -16
  192. /package/{src/components/templates/index.ts → dist/src/components/templates/index.d.ts} +0 -0
  193. /package/{src/index.ts → dist/src/index.d.ts} +0 -0
  194. /package/{src/utils/functionsStorybook.tsx → dist/src/utils/functionsStorybook.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ export * from './src/index'
2
+ export {}
@@ -0,0 +1,3 @@
1
+ import { IAvatar } from '../../types/interfaces';
2
+ declare const Avatar: ({ imageUrl, alt }: IAvatar) => import("react/jsx-runtime").JSX.Element;
3
+ export default Avatar;
@@ -0,0 +1,2 @@
1
+ import { CommentProps } from '../../types';
2
+ export default function Comment({ comment }: CommentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ declare const InputSearch: ({ options, onselect }: {
2
+ options: any[];
3
+ onselect: (option: any) => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default InputSearch;
@@ -0,0 +1,4 @@
1
+ declare const PauseTaskButton: ({ id }: {
2
+ id: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default PauseTaskButton;
@@ -0,0 +1,2 @@
1
+ declare const SkeletonCard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SkeletonCard;
@@ -0,0 +1,2 @@
1
+ declare const SkeletonList: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SkeletonList;
@@ -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,2 @@
1
+ export { default as Avatar } from './Avatar';
2
+ export { default as Checkbox } from '../organisms/Checkbox';
@@ -0,0 +1,4 @@
1
+ export * from './atoms';
2
+ export * from './molecules';
3
+ export * from './organisms';
4
+ export * from './templates';
@@ -0,0 +1,2 @@
1
+ declare const DoneBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DoneBoard;
@@ -0,0 +1,2 @@
1
+ declare const KanbanCampania: () => import("react/jsx-runtime").JSX.Element;
2
+ export default KanbanCampania;
@@ -0,0 +1,2 @@
1
+ declare const ToDoBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ToDoBoard;
@@ -0,0 +1,2 @@
1
+ declare const WorkingBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default WorkingBoard;
@@ -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,3 @@
1
+ export { default as ToDoBoard } from './ToDoBoard';
2
+ export { default as WorkingBoard } from './WorkingBoard';
3
+ export { default as DoneBoard } from './DoneBoard';
@@ -0,0 +1,2 @@
1
+ declare const DoneBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DoneBoard;
@@ -0,0 +1,2 @@
1
+ declare const KanbanGeneral: () => import("react/jsx-runtime").JSX.Element;
2
+ export default KanbanGeneral;
@@ -0,0 +1,2 @@
1
+ declare const ToDoBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ToDoBoard;
@@ -0,0 +1,2 @@
1
+ declare const WorkingBoard: () => import("react/jsx-runtime").JSX.Element;
2
+ export default WorkingBoard;
@@ -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,3 @@
1
+ export { default as ToDoBoard } from './ToDoBoard';
2
+ export { default as WorkingBoard } from './WorkingBoard';
3
+ export { default as DoneBoard } from './DoneBoard';
@@ -0,0 +1,5 @@
1
+ declare const FilterButton: ({ children, filterChildren }: {
2
+ children: React.ReactNode;
3
+ filterChildren: React.MutableRefObject<HTMLDivElement>;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default FilterButton;
@@ -0,0 +1,2 @@
1
+ declare const FilterContent: () => import("react/jsx-runtime").JSX.Element;
2
+ export default FilterContent;
@@ -0,0 +1,3 @@
1
+ import { IIndexComponents } from '../../types/layout.types';
2
+ declare const IndexComponents: ({ path, tab }: IIndexComponents) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import('react').ReactNode>;
3
+ export default IndexComponents;
@@ -0,0 +1,5 @@
1
+ declare const ActionsTaskList: ({ id, priority }: {
2
+ id: number;
3
+ priority: number;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ActionsTaskList;
@@ -0,0 +1,5 @@
1
+ interface ChildTaskProps {
2
+ id: number;
3
+ }
4
+ declare const ChildTask: ({ id }: ChildTaskProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default ChildTask;
@@ -0,0 +1,6 @@
1
+ interface DateViewProps {
2
+ startDate: Date;
3
+ endDate: Date;
4
+ }
5
+ declare const DateView: ({ startDate, endDate }: DateViewProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default DateView;
@@ -0,0 +1,2 @@
1
+ declare const ListaCampania: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ListaCampania;
@@ -0,0 +1,5 @@
1
+ interface MultiselectCheckboxProps {
2
+ id: number;
3
+ }
4
+ declare const MultiselectCheckbox: ({ id }: MultiselectCheckboxProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default MultiselectCheckbox;
@@ -0,0 +1,4 @@
1
+ declare const ParentTask: ({ id }: {
2
+ id: number;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default ParentTask;
@@ -0,0 +1,4 @@
1
+ declare const TaskName: ({ task }: {
2
+ task: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default TaskName;
@@ -0,0 +1,2 @@
1
+ import { CommentsProps } from '../../types';
2
+ export default function AllComments({ currentUser, data, taskId, onNewComment }: CommentsProps): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { DetailsTaskProps } from '../../types';
2
+ export default function DetailsTask({ isOpen, setIsOpen, taskId }: DetailsTaskProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { TabDetailsTaskProps } from '../../types';
2
+ export default function TabDetailsTask({ items }: TabDetailsTaskProps): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export { default as Board } from './Board';
2
+ export { default as Task } from './Task';
@@ -0,0 +1,6 @@
1
+ interface IPriorityButtonProps {
2
+ priority: number;
3
+ id: number;
4
+ }
5
+ declare const PriorityButton: ({ priority, id }: IPriorityButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default PriorityButton;
@@ -0,0 +1,5 @@
1
+ import { TPaths } from '../../types/layout.types';
2
+ declare const Layout: ({ path }: {
3
+ path: TPaths;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default Layout;
@@ -0,0 +1,2 @@
1
+ declare const TableList: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TableList;
@@ -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,8 @@
1
+ export declare const GAPS: {
2
+ s: string;
3
+ m: string;
4
+ l: string;
5
+ xl: string;
6
+ xxl: string;
7
+ xxxl: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ export declare const PADDINGS: {
2
+ s: string;
3
+ m: string;
4
+ l: string;
5
+ xl: string;
6
+ xxl: string;
7
+ xxxl: string;
8
+ };
@@ -0,0 +1,5 @@
1
+ export declare const SHADOWS: {
2
+ "button-primary": string;
3
+ "button-primary-hover": string;
4
+ input: string;
5
+ };
@@ -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,4 @@
1
+ declare const useAllUsers: () => {
2
+ users: import('@tanstack/react-query').UseQueryResult<import('../../infraestructure/interfaces/users').IUsers[], Error>;
3
+ };
4
+ export default useAllUsers;
@@ -0,0 +1,7 @@
1
+ declare const useCheckTask: ({ id }: {
2
+ id: number;
3
+ }) => {
4
+ checked: boolean;
5
+ checkTask: () => void;
6
+ };
7
+ export default useCheckTask;
@@ -0,0 +1,9 @@
1
+ declare const useSalesmanUsers: () => {
2
+ getSalesmanAndProjects: () => Promise<{
3
+ salesmanUsers: any;
4
+ projects: any;
5
+ }>;
6
+ getProjects: () => Promise<any>;
7
+ getSalesmans: () => Promise<any>;
8
+ };
9
+ export default useSalesmanUsers;
@@ -0,0 +1,5 @@
1
+ declare const useDoneTasks: () => {
2
+ doneTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<any, unknown>, Error>;
3
+ total: number;
4
+ };
5
+ export default useDoneTasks;
@@ -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,4 @@
1
+ declare const useTeams: () => {
2
+ teams: import('@tanstack/react-query').UseQueryResult<any, Error>;
3
+ };
4
+ export default useTeams;
@@ -0,0 +1,5 @@
1
+ declare const useToDoTasks: () => {
2
+ toDoTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<any, unknown>, Error>;
3
+ total: number;
4
+ };
5
+ export default useToDoTasks;
@@ -0,0 +1,5 @@
1
+ declare const useWorkingTasks: () => {
2
+ workingTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<any, unknown>, Error>;
3
+ total: number;
4
+ };
5
+ export default useWorkingTasks;
@@ -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;
@@ -0,0 +1,2 @@
1
+ declare const NoAccessToken: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NoAccessToken;
@@ -0,0 +1,2 @@
1
+ declare const NoUser: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NoUser;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as AppTasks } from '../pages/App';
3
+ declare const meta: Meta<typeof AppTasks>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;