@imj_media/tareas 1.3.2 → 1.4.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/molecules/ButtonAssignUsers.d.ts +2 -1
- package/dist/packages/tareas/src/components/tasks/DescriptionTask.d.ts +6 -0
- package/dist/packages/tareas/src/components/tasks/PriorityButton.d.ts +2 -1
- package/dist/packages/tareas/src/hooks/useFunctionsTasks.d.ts +13 -9
- package/dist/tareas.cjs +33 -19
- package/dist/tareas.css +1 -1
- package/dist/tareas.es.js +1798 -1636
- package/package.json +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IUsers } from '../../infraestructure/interfaces/users';
|
|
2
|
-
declare const ButtonAssignUsers: ({ users, onClick, responsible, }: {
|
|
2
|
+
declare const ButtonAssignUsers: ({ users, onClick, responsible, role }: {
|
|
3
3
|
users: IUsers[] | [];
|
|
4
4
|
onClick: (option: any, selected: string) => void;
|
|
5
|
+
role: string;
|
|
5
6
|
responsible: number | null;
|
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default ButtonAssignUsers;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface IPriorityButtonProps {
|
|
2
2
|
priority: number;
|
|
3
3
|
id: number;
|
|
4
|
+
withLabel?: boolean;
|
|
4
5
|
}
|
|
5
|
-
declare const PriorityButton: ({ priority, id }: IPriorityButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const PriorityButton: ({ priority, id, withLabel }: IPriorityButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default PriorityButton;
|
|
@@ -1,16 +1,20 @@
|
|
|
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
1
|
export interface IStartWorking {
|
|
10
2
|
id: number;
|
|
11
3
|
}
|
|
12
4
|
declare const useFunctionsTasks: () => {
|
|
13
|
-
|
|
5
|
+
updatingTask: ({ id, data, user }: {
|
|
6
|
+
id: any;
|
|
7
|
+
data: any;
|
|
8
|
+
user: any;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
updateTask: ({ id, data, user }: {
|
|
11
|
+
id: any;
|
|
12
|
+
data: any;
|
|
13
|
+
user: any;
|
|
14
|
+
}) => Promise<any>;
|
|
15
|
+
startTask: ({ id }: {
|
|
16
|
+
id: number;
|
|
17
|
+
}) => Promise<void>;
|
|
14
18
|
startWorking: ({ id }: {
|
|
15
19
|
id: number;
|
|
16
20
|
}) => Promise<void>;
|