mario-core 3.0.2-es-staging → 3.0.2-es-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,19 @@
1
+ import { FC } from 'react';
2
+ import { IStaffAssign, StudentAssign } from '../configs/type';
3
+ interface IProps {
4
+ openDetailModal: boolean;
5
+ onClose: Function;
6
+ selectedUser: StudentAssign;
7
+ staffBulkAssign: IStaffAssign;
8
+ teacherOptions: any[];
9
+ assistantOptions: any[];
10
+ counselorOptions: any[];
11
+ handleChangeTeacherBulk: Function;
12
+ handleChangeCounselorBulk: Function;
13
+ handleChangeStaffBulk: Function;
14
+ handleEditAssignForStudents: Function;
15
+ toggleCollapse: (index: number) => void;
16
+ activeIndex: number;
17
+ }
18
+ declare const AssignStudentModal: FC<IProps>;
19
+ export default AssignStudentModal;
@@ -1,9 +1,35 @@
1
- import { StudentFilter, UserColumn, UserFilter } from "./type";
1
+ import { IStaffAssign, StudentFilter, UserColumn, UserFilter } from "./type";
2
2
  export declare const DEFAULT_PAGE_SIZE: {
3
3
  label: string;
4
4
  value: number;
5
5
  };
6
6
  export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
7
+ export declare const initialStaffBulk: IStaffAssign;
8
+ export declare const initAssignStd: {
9
+ studentId: number;
10
+ id: string;
11
+ email: string;
12
+ fullName: string;
13
+ gradeLevel: string;
14
+ phoneNumber: string;
15
+ isActive: boolean;
16
+ dateOfBirth: string;
17
+ profileImageFileName: string;
18
+ quote: string;
19
+ assistantName: string;
20
+ assistantEmail: string;
21
+ assistantUserId: string;
22
+ counselors: never[];
23
+ secondaryTeacherName: string;
24
+ secondaryTeacherEmail: string;
25
+ secondaryTeacherUserId: string;
26
+ teachers: never[];
27
+ counselorName: string;
28
+ counselorEmail: string;
29
+ mainTeacherName: string;
30
+ mainTeacherEmail: string;
31
+ teacherUserId: string;
32
+ };
7
33
  export declare const UserColumns: UserColumn[];
8
34
  export declare const DEFAULT_FILTER_POPOVER: UserFilter;
9
35
  export declare const DEFAULT_FILTER: UserFilter;
@@ -16,3 +42,7 @@ export declare const userOrders: {
16
42
  5: string;
17
43
  6: string;
18
44
  };
45
+ export declare const GRADE_DEFAULT: {
46
+ label: string;
47
+ value: string;
48
+ }[];
@@ -14,12 +14,43 @@ export type StudentAssign = {
14
14
  assistantEmail: string;
15
15
  counselorName: string;
16
16
  counselorEmail: string;
17
+ assistantUserId: string;
18
+ counselors: Array<ICounselor>;
17
19
  secondaryTeacherName: string;
18
20
  secondaryTeacherEmail: string;
21
+ secondaryTeacherUserId: string;
19
22
  mainTeacherName: string;
20
23
  mainTeacherEmail: string;
21
24
  mainTeacherId?: number;
25
+ teachers: Array<ITeachers>;
22
26
  };
27
+ export interface IStaffAssign {
28
+ teacher: {
29
+ id: string;
30
+ email: string;
31
+ }[];
32
+ assistantId: string;
33
+ assistantEmail: string;
34
+ counselors: {
35
+ id: string;
36
+ email: string;
37
+ }[];
38
+ secondaryTeacherId: string;
39
+ secondaryTeacherEmail: string;
40
+ gradeLevel?: string;
41
+ }
42
+ export interface ICounselor {
43
+ counselorUserId: string;
44
+ counselorName: string;
45
+ counselorEmail: string;
46
+ studentId?: number;
47
+ }
48
+ export interface ITeachers {
49
+ teacherUserId: string;
50
+ mainTeacherName: string;
51
+ mainTeacherEmail: string;
52
+ mainTeacherId?: number;
53
+ }
23
54
  export type Counselor = {
24
55
  id: string;
25
56
  counselorId: number;
@@ -54,12 +85,12 @@ export interface IOptions {
54
85
  }
55
86
  export type AssignStudentDto = {
56
87
  id: string;
57
- mainTeacherUserId?: string;
58
- mainTeacherEmail?: string;
88
+ mainTeacherUserId?: Array<string>;
89
+ mainTeacherEmail?: Array<string>;
59
90
  assistantUserId?: string;
60
91
  assistantEmail?: string;
61
- counselorUserId?: string;
62
- counselorEmail?: string;
92
+ counselorUserIds?: Array<string>;
93
+ counselorEmails?: Array<string>;
63
94
  secondaryTeacherUserId?: string;
64
95
  secondaryTeacherEmail?: string;
65
96
  };
@@ -1,5 +1,19 @@
1
+ import { IStaffAssign, StudentAssign } from "../configs/type";
1
2
  declare const useAssignStudent: (teacherSelected?: Record<string, any>, assistantSelected?: Record<string, any>, counselorSelected?: Record<string, any>, callback?: Function) => {
2
3
  handleAssignSingleStudent: (id: string) => void;
3
4
  handleAssignMultiStudent: (listUserIds: string[]) => void;
5
+ openDetailModal: boolean;
6
+ setOpenDetailModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
+ selectedUser: StudentAssign;
8
+ setSelectedUser: import("react").Dispatch<import("react").SetStateAction<StudentAssign>>;
9
+ onClose: () => void;
10
+ toggleCollapse: (index: number) => void;
11
+ activeIndex: number;
12
+ staffBulkAssign: IStaffAssign;
13
+ removeTeacherUserIds: string[];
14
+ handleChangeCounselorBulk: (value: any[]) => void;
15
+ handleChangeTeacherBulk: (value: any[]) => void;
16
+ handleEditAssignForStudents: (_teacherUserId?: string) => Promise<void>;
17
+ handleChangeStaffBulk: (name: string, value: any) => void;
4
18
  };
5
19
  export default useAssignStudent;
@@ -2,7 +2,7 @@ import { IOptions } from "../configs/type";
2
2
  declare const useTeacherList: () => {
3
3
  selectedTeachers: object | undefined;
4
4
  teacherOptions: IOptions[];
5
- handleSelectTeacher: (teacherId: string, studentUserId: string) => void;
5
+ handleSelectTeacher: (teacherIds: Array<string>, studentUserId: string) => void;
6
6
  handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
7
7
  setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
8
8
  };