@imj_media/tareas 1.5.11 → 1.5.13
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/atoms/InputSearch.d.ts +1 -1
- package/dist/packages/tareas/src/components/layout/FilterButton.d.ts +1 -1
- package/dist/packages/tareas/src/components/lista-campania/ActionsTaskList.d.ts +1 -1
- package/dist/packages/tareas/src/components/molecules/Pagination.d.ts +1 -1
- package/dist/packages/tareas/src/components/molecules/PickerColor.d.ts +1 -1
- package/dist/packages/tareas/src/components/organisms/ButtonMoveTask.d.ts +1 -1
- package/dist/packages/tareas/src/components/organisms/Paginator.d.ts +1 -1
- package/dist/packages/tareas/src/components/organisms/Task.d.ts +1 -1
- package/dist/packages/tareas/src/components/organisms/modal/Modal.d.ts +1 -1
- package/dist/packages/tareas/src/components/templates/LayoutContainer.d.ts +4 -0
- package/dist/packages/tareas/src/components/templates/TableList.d.ts +1 -1
- package/dist/packages/tareas/src/constants/colors.d.ts +24 -0
- package/dist/packages/tareas/src/constants/shadows.d.ts +2 -2
- package/dist/packages/tareas/src/core/actions/get_all_users.action.d.ts +1 -1
- package/dist/packages/tareas/src/core/actions/get_salesman_response.action.d.ts +1 -1
- package/dist/packages/tareas/src/core/actions/user_task/get_all_users.action.d.ts +1 -1
- package/dist/packages/tareas/src/core/get_atraso_reasons_response.action.d.ts +1 -1
- package/dist/packages/tareas/src/core/get_pause_reasons_response.action.d.ts +1 -1
- package/dist/packages/tareas/src/hooks/useAtrasoReason.d.ts +1 -1
- package/dist/packages/tareas/src/infraestructure/interfaces/salesmans-obp-response.d.ts +2 -2
- package/dist/packages/tareas/src/modules/teams/ui/molecules/TeamsOrganigram.d.ts +1 -1
- package/dist/packages/tareas/src/modules/teams/ui/molecules/createUpdate/MemberActions.d.ts +1 -1
- package/dist/packages/tareas/src/modules/teams/ui/molecules/createUpdate/MemberItem.d.ts +1 -1
- package/dist/packages/tareas/src/modules/teams/ui/molecules/createUpdate/MemberNode.d.ts +1 -1
- package/dist/packages/tareas/src/modules/teams/ui/molecules/createUpdate/MembersList.d.ts +1 -1
- package/dist/packages/tareas/src/modules/teams/ui/molecules/temporal/Dropdown.d.ts +26 -26
- package/dist/packages/tareas/src/modules/templates/components/atoms/Card.d.ts +10 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/ConnectionPopup.d.ts +7 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/ConnectionTypePopup.d.ts +16 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/GroupNode.d.ts +5 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/Header.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/MainNode.d.ts +6 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/NewNodePopup.d.ts +19 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/PlusNode.d.ts +9 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/StartNode.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/index.d.ts +5 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/tasks/Difficulty.d.ts +3 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/tasks/Duration.d.ts +3 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/tasks/Priority.d.ts +3 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/tasks/Responsible.d.ts +6 -0
- package/dist/packages/tareas/src/modules/templates/components/atoms/tasks/index.d.ts +4 -0
- package/dist/packages/tareas/src/modules/templates/components/index.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/LoadingOverlay.d.ts +48 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/StepContent.d.ts +9 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/CreateEditTemplate.d.ts +6 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/views/Container.d.ts +3 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/views/StepOne.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/views/StepThree.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/views/StepTwo.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/CreateEditTemplate/views/index.d.ts +0 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/DeleteTemplate/DeleteTemplateModal.d.ts +51 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/DeleteTemplate/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/PublishTemplate/PublishTemplate.d.ts +29 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/PublishTemplate/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/TemplateLimit/TemplateLimit.d.ts +7 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/TemplateLimit/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/UnsavedChanges/UnsavedChanges.d.ts +8 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/UnsavedChanges/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/molecules/modals/index.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/AddTemplateModal.d.ts +20 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/NewTaskDrawer.d.ts +30 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/TemplateButtonsList.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/TemplateGrid.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/TemplateGridFlow.d.ts +6 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/Templates.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/TemplatesContainer.d.ts +4 -0
- package/dist/packages/tareas/src/modules/templates/components/organisms/index.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/config/inputFiltersByPath.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/config/rules.d.ts +90 -0
- package/dist/packages/tareas/src/modules/templates/config/statusTemplate.d.ts +3 -0
- package/dist/packages/tareas/src/modules/templates/config/stores.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/config/templatesInputsFilters.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/hooks/filters/useFiltersOptions.d.ts +46 -0
- package/dist/packages/tareas/src/modules/templates/hooks/filters/useFiltersTemplates.d.ts +27 -0
- package/dist/packages/tareas/src/modules/templates/hooks/filters/useGetInputFiltersByPath.d.ts +33 -0
- package/dist/packages/tareas/src/modules/templates/hooks/filters/useStaticFilters.d.ts +23 -0
- package/dist/packages/tareas/src/modules/templates/hooks/index.d.ts +5 -0
- package/dist/packages/tareas/src/modules/templates/hooks/states/useStates.d.ts +26 -0
- package/dist/packages/tareas/src/modules/templates/hooks/stores/useGetStoreTemplates.d.ts +78 -0
- package/dist/packages/tareas/src/modules/templates/hooks/stores/useGetStoreTemplatesStates.d.ts +14 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useBuildTemplateFields.d.ts +40 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useCopyPaste.d.ts +248 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFetchGraphTemplates.d.ts +15 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFetchTemplates.d.ts +19 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFlow.d.ts +52 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFlow.types.d.ts +99 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFlow.utils.d.ts +53 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFlowActions.d.ts +25 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFlowPopups.d.ts +87 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useFormChanges.d.ts +31 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useGetTemplates.d.ts +4 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useGroupExpansion.d.ts +8 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useMagneticConnections.d.ts +214 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useNodePositioning.d.ts +94 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useSaveTemplateInStore.d.ts +63 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useSearchTemplates.d.ts +76 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useStepper.d.ts +166 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useTemplateForm.d.ts +21 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useTemplateGrid.d.ts +132 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useTemplateQuery.d.ts +131 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useTemplates.d.ts +32 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useUpdateTaskTemplate.d.ts +4 -0
- package/dist/packages/tareas/src/modules/templates/hooks/useZoomAndCenter.d.ts +159 -0
- package/dist/packages/tareas/src/modules/templates/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/api.types.d.ts +89 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/common.types.d.ts +4 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/filter.types.d.ts +18 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/form.types.d.ts +46 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/store.types.d.ts +31 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/template.types.d.ts +28 -0
- package/dist/packages/tareas/src/modules/templates/infraestructure/interfaces/templates.d.ts +4 -0
- package/dist/packages/tareas/src/modules/templates/params_template.d.ts +27 -0
- package/dist/packages/tareas/src/modules/templates/providers/IndexedDBProvider.d.ts +114 -0
- package/dist/packages/tareas/src/modules/templates/store/useActiveTemplateStore.d.ts +8 -0
- package/dist/packages/tareas/src/modules/templates/store/useStepperStore.d.ts +7 -0
- package/dist/packages/tareas/src/modules/templates/store/useTemplateGrid.d.ts +43 -0
- package/dist/packages/tareas/src/modules/templates/store/useTemplateStore.d.ts +2 -0
- package/dist/packages/tareas/src/modules/templates/types/template_graph.d.ts +71 -0
- package/dist/packages/tareas/src/modules/templates/utils/index.d.ts +1 -0
- package/dist/packages/tareas/src/modules/templates/utils/templateUtils.d.ts +48 -0
- package/dist/packages/tareas/src/modules/templates/utils/typeGuards.d.ts +3 -0
- package/dist/packages/tareas/src/pages/App.d.ts +2 -1
- package/dist/packages/tareas/src/shared/hooks/index.d.ts +2 -0
- package/dist/packages/tareas/src/shared/hooks/useDebounce.d.ts +21 -0
- package/dist/packages/tareas/src/shared/hooks/useTeams.d.ts +7 -0
- package/dist/packages/tareas/src/shared/index.d.ts +3 -0
- package/dist/packages/tareas/src/shared/modules/IndexedDB/hooks/useIndexedDB.d.ts +18 -0
- package/dist/packages/tareas/src/shared/modules/IndexedDB/index.d.ts +18 -0
- package/dist/packages/tareas/src/shared/modules/IndexedDB/store/indexedDBStore.d.ts +2 -0
- package/dist/packages/tareas/src/shared/modules/IndexedDB/types.d.ts +33 -0
- package/dist/packages/tareas/src/shared/modules/index.d.ts +1 -0
- package/dist/packages/tareas/src/shared/modules/layout/components/atoms/Header.d.ts +5 -0
- package/dist/packages/tareas/src/shared/modules/layout/components/atoms/index.d.ts +1 -0
- package/dist/packages/tareas/src/shared/modules/layout/components/index.d.ts +2 -0
- package/dist/packages/tareas/src/shared/modules/layout/components/organisms/Layout.d.ts +7 -0
- package/dist/packages/tareas/src/shared/modules/layout/components/organisms/index.d.ts +1 -0
- package/dist/packages/tareas/src/shared/modules/layout/index.d.ts +1 -0
- package/dist/packages/tareas/src/shared/store/index.d.ts +17 -0
- package/dist/packages/tareas/src/shared/store/useFilters.d.ts +20 -0
- package/dist/packages/tareas/src/shared/store/useStore.d.ts +54 -0
- package/dist/packages/tareas/src/types/index.d.ts +1 -1
- package/dist/packages/tareas/src/types/interfaces.d.ts +3 -3
- package/dist/packages/tareas/src/types/layout.types.d.ts +5 -3
- package/dist/tareas.cjs +70 -68
- package/dist/tareas.css +1 -1
- package/dist/tareas.es.js +11386 -5274
- package/package.json +85 -83
- package/LICENSE.md +0 -21
|
@@ -12,5 +12,5 @@ interface PaginationProps {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
maxVisiblePages?: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const Pagination: ({ currentPage, pageCount, pageSize, total, pageSizeText, elementsOfText, optionsSize, onPageChange, handlePageSize, className, maxVisiblePages
|
|
15
|
+
export declare const Pagination: ({ currentPage, pageCount, pageSize, total, pageSizeText, elementsOfText, optionsSize, onPageChange, handlePageSize, className, maxVisiblePages }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -4,5 +4,5 @@ interface PickerColorProps {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function ColorPicker({ color, setColor, label, className
|
|
7
|
+
export declare function ColorPicker({ color, setColor, label, className }: PickerColorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -9,5 +9,5 @@ type ButtonMoveTaskProps = {
|
|
|
9
9
|
atrasoId?: number;
|
|
10
10
|
categoria?: ICategory | null;
|
|
11
11
|
};
|
|
12
|
-
declare const ButtonMoveTask: ({ status, nameRequiredTask, statusRequiredTask, id, statusLateTask, projectID, atrasoId, categoria
|
|
12
|
+
declare const ButtonMoveTask: ({ status, nameRequiredTask, statusRequiredTask, id, statusLateTask, projectID, atrasoId, categoria }: ButtonMoveTaskProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default ButtonMoveTask;
|
|
@@ -11,6 +11,6 @@ interface PaginatorProps<T, U> {
|
|
|
11
11
|
searchTerm?: string;
|
|
12
12
|
filters?: U;
|
|
13
13
|
}
|
|
14
|
-
declare function PaginatorComponent<T, U>({ children, queryHook, pageSize, Loading, loadingText, searchTerm, filters
|
|
14
|
+
declare function PaginatorComponent<T, U>({ children, queryHook, pageSize, Loading, loadingText, searchTerm, filters }: PaginatorProps<T, U>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare const Paginator: typeof PaginatorComponent;
|
|
16
16
|
export {};
|
|
@@ -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, idProject, atraso, categoria
|
|
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;
|
|
@@ -16,5 +16,5 @@ interface Props {
|
|
|
16
16
|
titleClassName?: string;
|
|
17
17
|
descriptionClassName?: string;
|
|
18
18
|
}
|
|
19
|
-
export declare function Modal({ handleChange, open, size, title, children, noMinHeight, dialogClassName, contentClassName, headerClassName, titleClassName, isButtonClose, descriptionClassName, closeIcon
|
|
19
|
+
export declare function Modal({ handleChange, open, size, title, children, noMinHeight, dialogClassName, contentClassName, headerClassName, titleClassName, isButtonClose, descriptionClassName, closeIcon }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -87,4 +87,28 @@ export declare const COLORS: {
|
|
|
87
87
|
blue_medium: string;
|
|
88
88
|
blue_dark: string;
|
|
89
89
|
};
|
|
90
|
+
neutral: {
|
|
91
|
+
50: string;
|
|
92
|
+
100: string;
|
|
93
|
+
200: string;
|
|
94
|
+
300: string;
|
|
95
|
+
400: string;
|
|
96
|
+
500: string;
|
|
97
|
+
600: string;
|
|
98
|
+
700: string;
|
|
99
|
+
800: string;
|
|
100
|
+
900: string;
|
|
101
|
+
};
|
|
102
|
+
'blue-dark': {
|
|
103
|
+
50: string;
|
|
104
|
+
100: string;
|
|
105
|
+
200: string;
|
|
106
|
+
300: string;
|
|
107
|
+
400: string;
|
|
108
|
+
500: string;
|
|
109
|
+
600: string;
|
|
110
|
+
700: string;
|
|
111
|
+
800: string;
|
|
112
|
+
900: string;
|
|
113
|
+
};
|
|
90
114
|
};
|
|
@@ -6,7 +6,7 @@ import { IUsersResponseOBP } from '../../infraestructure/interfaces/users-mt-res
|
|
|
6
6
|
* @param tasks_api - AxiosInstance
|
|
7
7
|
* @returns Promise<IUsers[]>
|
|
8
8
|
*/
|
|
9
|
-
export declare const getAllUSersResponse: ({ tasks_api
|
|
9
|
+
export declare const getAllUSersResponse: ({ tasks_api }: {
|
|
10
10
|
tasks_api: AxiosInstance;
|
|
11
11
|
}) => Promise<IUsers[]>;
|
|
12
12
|
export declare const getAllUserWithIndexResponse: ({ users }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { ISalesmanUsers } from '../../infraestructure/interfaces/salesmans-obp';
|
|
3
|
-
export declare const getSalesmanUsersResponse: ({ tasks_api
|
|
3
|
+
export declare const getSalesmanUsersResponse: ({ tasks_api }: {
|
|
4
4
|
tasks_api: AxiosInstance;
|
|
5
5
|
}) => Promise<ISalesmanUsers[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { IUsers } from '../../../infraestructure/interfaces/users-mt';
|
|
3
|
-
export declare const getAllUsersResponse: ({ tasks_api
|
|
3
|
+
export declare const getAllUsersResponse: ({ tasks_api }: {
|
|
4
4
|
tasks_api: AxiosInstance;
|
|
5
5
|
}) => Promise<IUsers[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { IAtrasoReasonsResponse } from '../infraestructure/interfaces/atraso-reasons-response';
|
|
3
|
-
export declare const getAtrasoReasonsResponse: ({ tasks_api
|
|
3
|
+
export declare const getAtrasoReasonsResponse: ({ tasks_api }: {
|
|
4
4
|
tasks_api: AxiosInstance;
|
|
5
5
|
}) => Promise<IAtrasoReasonsResponse[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { IPauseReasonsResponse } from '../infraestructure/interfaces/pause-reasons-response';
|
|
3
|
-
export declare const getPauseReasonsResponse: ({ tasks_api
|
|
3
|
+
export declare const getPauseReasonsResponse: ({ tasks_api }: {
|
|
4
4
|
tasks_api: AxiosInstance;
|
|
5
5
|
}) => Promise<IPauseReasonsResponse[]>;
|
|
@@ -3,7 +3,7 @@ declare const useAtrasoReason: ({ enabled }?: {
|
|
|
3
3
|
}) => {
|
|
4
4
|
atrasoReasons: import('../infraestructure/interfaces/atraso-reasons-response').IAtrasoReasonsResponse[];
|
|
5
5
|
isLoading: boolean;
|
|
6
|
-
createAtraso: ({ taskId, projectID, motivo
|
|
6
|
+
createAtraso: ({ taskId, projectID, motivo }: {
|
|
7
7
|
taskId: number;
|
|
8
8
|
projectID: number;
|
|
9
9
|
motivo: number;
|
|
@@ -30,8 +30,8 @@ export interface Large {
|
|
|
30
30
|
width: number;
|
|
31
31
|
height: number;
|
|
32
32
|
}
|
|
33
|
-
export type Text =
|
|
34
|
-
export type TMime =
|
|
33
|
+
export type Text = '.jpg' | '.png';
|
|
34
|
+
export type TMime = 'image/jpeg' | 'image/png';
|
|
35
35
|
export interface Role {
|
|
36
36
|
id: number;
|
|
37
37
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MemberList } from '../../infrastructure/interfaces/team';
|
|
2
|
-
export declare function TeamsOrganigram({ open, handleChange, members
|
|
2
|
+
export declare function TeamsOrganigram({ open, handleChange, members }: {
|
|
3
3
|
open: boolean;
|
|
4
4
|
handleChange: (open: boolean) => void;
|
|
5
5
|
members?: MemberList;
|
|
@@ -8,5 +8,5 @@ type MemberActionsProps = {
|
|
|
8
8
|
removeHandler: (member: MemberObject) => void;
|
|
9
9
|
updateMemberHandler: (list: MemberListToUpdate) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const MemberActions: ({ member, level, isUpdate, addHandler, updateHandler, removeHandler, updateMemberHandler
|
|
11
|
+
export declare const MemberActions: ({ member, level, isUpdate, addHandler, updateHandler, removeHandler, updateMemberHandler }: MemberActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Member } from '../../../infrastructure/interfaces/team';
|
|
2
|
-
export declare const MemberItem: ({ member, removeHandler
|
|
2
|
+
export declare const MemberItem: ({ member, removeHandler }: {
|
|
3
3
|
member: Member;
|
|
4
4
|
removeHandler: (member: Member) => void;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { MemberObject, Team } from '../../../infrastructure/interfaces/team';
|
|
3
|
-
export declare const MemberNode: ({ member, level, isUpdate, setData
|
|
3
|
+
export declare const MemberNode: ({ member, level, isUpdate, setData }: {
|
|
4
4
|
member: MemberObject;
|
|
5
5
|
level: number;
|
|
6
6
|
isUpdate?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { MemberList, Team } from '../../../infrastructure/interfaces/team';
|
|
3
|
-
export declare const MembersList: ({ members, level, isUpdate, setData
|
|
3
|
+
export declare const MembersList: ({ members, level, isUpdate, setData }: {
|
|
4
4
|
members: MemberList;
|
|
5
5
|
level?: number;
|
|
6
6
|
isUpdate?: boolean;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Componente de búsqueda con dropdown que permite seleccionar opciones de una lista
|
|
3
|
-
* @param {boolean} isOpen - Controla si el dropdown está abierto o cerrado
|
|
4
|
-
* @param {string} [initialValue] - Valor inicial del dropdown
|
|
5
|
-
* @param {() => void} [onClose] - Función opcional que se ejecuta cuando se cierra el dropdown
|
|
6
|
-
* @param {string[] | Record<string, any>[]} options - Lista de opciones a mostrar en el dropdown
|
|
7
|
-
* @param {(option: any) => void} onSelect - Función que se ejecuta cuando se selecciona una opción
|
|
8
|
-
* @param {string} [placeholderDropdown] - Texto de placeholder para el botón del dropdown
|
|
9
|
-
* @param {string} [placeholderInput] - Texto de placeholder para el input de búsqueda
|
|
10
|
-
* @param {string} [className] - Clases CSS adicionales para el contenedor principal
|
|
11
|
-
* @param {string} [selectClassName] - Clases CSS adicionales para el botón de selección
|
|
12
|
-
* @param {string} [containerOptionsClassName] - Clases CSS adicionales para el contenedor de opciones
|
|
13
|
-
* @param {string} [optionClassName] - Clases CSS adicionales para cada opción del dropdown
|
|
14
|
-
* @param {{ id: string; nombre: string }} [fields] - Campos personalizados para los objetos en options
|
|
15
|
-
*/
|
|
2
|
+
* Componente de búsqueda con dropdown que permite seleccionar opciones de una lista
|
|
3
|
+
* @param {boolean} isOpen - Controla si el dropdown está abierto o cerrado
|
|
4
|
+
* @param {string} [initialValue] - Valor inicial del dropdown
|
|
5
|
+
* @param {() => void} [onClose] - Función opcional que se ejecuta cuando se cierra el dropdown
|
|
6
|
+
* @param {string[] | Record<string, any>[]} options - Lista de opciones a mostrar en el dropdown
|
|
7
|
+
* @param {(option: any) => void} onSelect - Función que se ejecuta cuando se selecciona una opción
|
|
8
|
+
* @param {string} [placeholderDropdown] - Texto de placeholder para el botón del dropdown
|
|
9
|
+
* @param {string} [placeholderInput] - Texto de placeholder para el input de búsqueda
|
|
10
|
+
* @param {string} [className] - Clases CSS adicionales para el contenedor principal
|
|
11
|
+
* @param {string} [selectClassName] - Clases CSS adicionales para el botón de selección
|
|
12
|
+
* @param {string} [containerOptionsClassName] - Clases CSS adicionales para el contenedor de opciones
|
|
13
|
+
* @param {string} [optionClassName] - Clases CSS adicionales para cada opción del dropdown
|
|
14
|
+
* @param {{ id: string; nombre: string }} [fields] - Campos personalizados para los objetos en options
|
|
15
|
+
*/
|
|
16
16
|
export type DropDownSearchProps = {
|
|
17
17
|
isOpen: boolean;
|
|
18
18
|
initialValue?: string | Record<string, any>;
|
|
@@ -31,15 +31,15 @@ export type DropDownSearchProps = {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* Componente de búsqueda con dropdown que permite seleccionar opciones de una lista
|
|
35
|
-
* @example
|
|
36
|
-
* ```tsx
|
|
37
|
-
* <DropDownSearch
|
|
38
|
-
* isOpen={true}
|
|
39
|
-
* options={['Opción 1', 'Opción 2']}
|
|
40
|
-
* onSelect={(option, id, index) => console.log(option)}
|
|
41
|
-
* placeholderDropdown="Seleccione una opción"
|
|
42
|
-
* />
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export declare const DropDownSearch: ({ isOpen, initialValue, onClose, options, onSelect, placeholderDropdown, placeholderInput, className, selectClassName, containerOptionsClassName, optionClassName, fields
|
|
34
|
+
* Componente de búsqueda con dropdown que permite seleccionar opciones de una lista
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <DropDownSearch
|
|
38
|
+
* isOpen={true}
|
|
39
|
+
* options={['Opción 1', 'Opción 2']}
|
|
40
|
+
* onSelect={(option, id, index) => console.log(option)}
|
|
41
|
+
* placeholderDropdown="Seleccione una opción"
|
|
42
|
+
* />
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare const DropDownSearch: ({ isOpen, initialValue, onClose, options, onSelect, placeholderDropdown, placeholderInput, className, selectClassName, containerOptionsClassName, optionClassName, fields }: DropDownSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Template } from '../../types/template_graph';
|
|
2
|
+
interface CardProps {
|
|
3
|
+
fullWidth?: boolean;
|
|
4
|
+
mode?: 'grid' | 'modal';
|
|
5
|
+
onClick?: (id: number) => void;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
template?: Template;
|
|
8
|
+
}
|
|
9
|
+
export declare const Card: ({ fullWidth, mode, onClick, active, template }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ConnectionPopupProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
createConnectionFromPopup: (nodeType: string, connectionType: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ConnectionPopup: ({ isOpen, onClose, createConnectionFromPopup }: ConnectionPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface ConnectionTypePopupProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
createConnectionFromPopup: (nodeType: string, connectionType: string) => void;
|
|
5
|
+
availableConnections?: {
|
|
6
|
+
tarea: {
|
|
7
|
+
dependiente: boolean;
|
|
8
|
+
hija: boolean;
|
|
9
|
+
};
|
|
10
|
+
plantilla: {
|
|
11
|
+
dependiente: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const ConnectionTypePopup: ({ isOpen, onClose, createConnectionFromPopup, availableConnections }: ConnectionTypePopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Header: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface ParentNodeInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
nodeType?: string;
|
|
5
|
+
connectionType?: string;
|
|
6
|
+
data?: any;
|
|
7
|
+
}
|
|
8
|
+
interface NewNodePopupProps {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
position: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
createNodeFromPopup: (nodeType: string, connectionType: string, formData?: any) => void;
|
|
16
|
+
parentNodeInfo?: ParentNodeInfo;
|
|
17
|
+
}
|
|
18
|
+
export declare const NewNodePopup: ({ isOpen, position, onClose, createNodeFromPopup, parentNodeInfo, }: NewNodePopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StartNode: (node: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props para el componente LoadingOverlay
|
|
3
|
+
*/
|
|
4
|
+
interface LoadingOverlayProps {
|
|
5
|
+
/** Indica si el overlay de carga debe mostrarse */
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Componente de overlay de carga que cubre toda la pantalla
|
|
10
|
+
*
|
|
11
|
+
* @description Muestra un overlay semitransparente con un spinner centrado
|
|
12
|
+
* cuando se está realizando una operación de carga. El overlay cubre toda
|
|
13
|
+
* la pantalla y bloquea la interacción del usuario.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Las propiedades del componente
|
|
16
|
+
* @param props.isLoading - Si es true, muestra el overlay; si es false, no renderiza nada
|
|
17
|
+
*
|
|
18
|
+
* @returns JSX.Element | null - El overlay de carga o null si isLoading es false
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* Uso básico
|
|
23
|
+
* <LoadingOverlay isLoading={isLoading} />
|
|
24
|
+
*
|
|
25
|
+
* Con estado de carga
|
|
26
|
+
* const [isLoading, setIsLoading] = useState(false);
|
|
27
|
+
*
|
|
28
|
+
* const handleSave = async () => {
|
|
29
|
+
* setIsLoading(true);
|
|
30
|
+
* try {
|
|
31
|
+
* await saveData();
|
|
32
|
+
* } finally {
|
|
33
|
+
* setIsLoading(false);
|
|
34
|
+
* }
|
|
35
|
+
* };
|
|
36
|
+
*
|
|
37
|
+
* return (
|
|
38
|
+
* <div>
|
|
39
|
+
* <button onClick={handleSave}>Guardar</button>
|
|
40
|
+
* <LoadingOverlay isLoading={isLoading} />
|
|
41
|
+
* </div>
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @author Alejandro Loera
|
|
46
|
+
*/
|
|
47
|
+
export declare const LoadingOverlay: ({ isLoading }: LoadingOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que renderiza el contenido de un paso específico del stepper de plantillas.
|
|
3
|
+
*
|
|
4
|
+
* Este componente se encarga de mostrar los campos correspondientes al paso actual,
|
|
5
|
+
* renderizando dropdowns para cada campo con validaciones y manejo de estado.
|
|
6
|
+
*
|
|
7
|
+
* @returns {JSX.Element[]} Array de elementos JSX que representan los campos del paso actual
|
|
8
|
+
*/
|
|
9
|
+
export declare const StepContent: () => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modals';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateEditTemplate } from './CreateEditTemplate';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StepOne: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StepThree: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StepTwo: () => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props del componente DeleteTemplateModal
|
|
3
|
+
*
|
|
4
|
+
* @interface DeleteTemplateModalProps
|
|
5
|
+
* @property {boolean} isOpen - Controla si el modal está abierto o cerrado
|
|
6
|
+
* @property {() => void} onClose - Función que se ejecuta al cerrar el modal
|
|
7
|
+
* @property {() => Promise<void>} deleteTemplate - Función asíncrona que ejecuta la eliminación
|
|
8
|
+
*/
|
|
9
|
+
interface DeleteTemplateModalProps {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
deleteTemplate: () => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Modal de confirmación para eliminar una plantilla (borrador).
|
|
16
|
+
*
|
|
17
|
+
* Este componente presenta un diálogo de confirmación que requiere que el usuario
|
|
18
|
+
* escriba "Eliminar" para proceder con la eliminación de una plantilla. Incluye
|
|
19
|
+
* advertencias sobre las consecuencias de la eliminación.
|
|
20
|
+
*
|
|
21
|
+
* @component
|
|
22
|
+
* @param {DeleteTemplateModalProps} props - Propiedades del componente
|
|
23
|
+
* @returns {JSX.Element} Modal de confirmación de eliminación
|
|
24
|
+
*
|
|
25
|
+
* @description
|
|
26
|
+
* El modal incluye:
|
|
27
|
+
* - Título: "Eliminar Borrador"
|
|
28
|
+
* - Icono de advertencia (BanOutlined) y de eliminación (TrashOutlined)
|
|
29
|
+
* - Pregunta de confirmación: "¿Estás seguro?"
|
|
30
|
+
* - Descripción de las consecuencias de la eliminación
|
|
31
|
+
* - Campo de texto que requiere escribir "Eliminar" para confirmar
|
|
32
|
+
* - Botones de cancelar y confirmar
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* // Uso básico del modal
|
|
36
|
+
* <DeleteTemplateModal
|
|
37
|
+
* isOpen={isModalOpen}
|
|
38
|
+
* onClose={() => setIsModalOpen(false)}
|
|
39
|
+
* deleteTemplate={handleDeleteTemplate}
|
|
40
|
+
* />
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Integración con estado global
|
|
44
|
+
* <DeleteTemplateModal
|
|
45
|
+
* isOpen={openModalDeleteTemplate}
|
|
46
|
+
* onClose={() => setOpenModalDeleteTemplate(false)}
|
|
47
|
+
* deleteTemplate={handleClickDelete}
|
|
48
|
+
* />
|
|
49
|
+
*/
|
|
50
|
+
export declare const DeleteTemplateModal: ({ isOpen, onClose, deleteTemplate, }: DeleteTemplateModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeleteTemplateModal } from './DeleteTemplateModal';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Propiedades del componente modal para publicar plantillas
|
|
3
|
+
*/
|
|
4
|
+
interface PublishTemplateModalProps {
|
|
5
|
+
/** Indica si el modal está abierto o cerrado */
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
/** Función que se ejecuta al cerrar el modal */
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/** Función asíncrona que publica la plantilla */
|
|
10
|
+
publishTemplate: () => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Modal de confirmación para publicar una plantilla de proceso.
|
|
14
|
+
* Muestra una interfaz de confirmación con un ícono y mensaje explicativo
|
|
15
|
+
* antes de proceder con la publicación de la plantilla.
|
|
16
|
+
*
|
|
17
|
+
* @param {PublishTemplateModalProps} props - Propiedades del componente
|
|
18
|
+
* @returns {JSX.Element} Componente modal de confirmación
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Uso básico del modal
|
|
22
|
+
* <PublishTemplateModal
|
|
23
|
+
* isOpen={showModal}
|
|
24
|
+
* onClose={() => setShowModal(false)}
|
|
25
|
+
* publishTemplate={handlePublish}
|
|
26
|
+
* />
|
|
27
|
+
*/
|
|
28
|
+
export declare const PublishTemplateModal: ({ isOpen, onClose, publishTemplate, }: PublishTemplateModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PublishTemplateModal } from './PublishTemplate';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface TemplateLimitModalProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
replaceTemplate: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const TemplateLimitModal: ({ isOpen, onClose, replaceTemplate, }: TemplateLimitModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TemplateLimitModal } from './TemplateLimit';
|