mario-education 2.4.412-release → 2.4.413-release

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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IAssignTeacherModal } from "../utils/type.interface";
3
+ declare const _default: React.ForwardRefExoticComponent<IAssignTeacherModal & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { IOptions, IStudentWithoutTeacherItem } from "../utils/type.interface";
3
+ declare const useAssignAssistant: () => {
4
+ userList: IStudentWithoutTeacherItem[];
5
+ totalItems: number;
6
+ filters: import("mario-core").Filter;
7
+ changeFilters: (updatedFilters: any) => void;
8
+ modal: import("react").MutableRefObject<any>;
9
+ userChoiced: IStudentWithoutTeacherItem;
10
+ options: IOptions[];
11
+ changeTeacherId: (value: IOptions[]) => void;
12
+ teacherChangeId: IOptions[];
13
+ handleAssign: () => Promise<void>;
14
+ resetData: () => void;
15
+ choiceUser: (userChoiced: IStudentWithoutTeacherItem) => void;
16
+ isChecked: boolean;
17
+ };
18
+ export default useAssignAssistant;
@@ -0,0 +1,3 @@
1
+ import { IStudentWithoutTeacherItem } from "./type.interface";
2
+ export declare const INITIAL_USER_CHOICE: IStudentWithoutTeacherItem;
3
+ export declare const DEFAULT_DATE = "0001-01-01T00:00:00";
@@ -0,0 +1,42 @@
1
+ export interface IOptions {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export declare type USER_CHOICE = {
6
+ id: string;
7
+ studentName: string;
8
+ emailStudent: string;
9
+ assistantId: string;
10
+ emailAssistant: string;
11
+ assistantName: string;
12
+ };
13
+ export declare type Teacher = {
14
+ id: string;
15
+ name: string;
16
+ email: string;
17
+ };
18
+ export interface IAssignTeacherModal {
19
+ header: string;
20
+ onAssign: () => Promise<void>;
21
+ resetData: () => void;
22
+ userChoiced: IStudentWithoutTeacherItem;
23
+ options: IOptions[];
24
+ teacherChangeId: IOptions[];
25
+ setTeacherChangeId: (value: any) => void;
26
+ isChecked: boolean;
27
+ }
28
+ export interface IStudentWithoutTeacherItem {
29
+ id: number;
30
+ emailStudent: string;
31
+ studentName: string;
32
+ teacherUserIds?: string[];
33
+ dateOfBirth: string;
34
+ createdAt: string;
35
+ }
36
+ export declare type TypeStudentWithoutTeacherData = {
37
+ currentPage: number;
38
+ pageSize: number;
39
+ totalItems: number;
40
+ totalPages: number;
41
+ items: IStudentWithoutTeacherItem[];
42
+ };
@@ -0,0 +1,2 @@
1
+ declare const AssignTeacherList: () => JSX.Element;
2
+ export default AssignTeacherList;