mario-teacher-student-client 2.1.63-beta → 2.1.65-beta

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 (39) hide show
  1. package/dist/components/Card/CardItem.d.ts +2 -1
  2. package/dist/components/Header/HeaderComponent.d.ts +2 -0
  3. package/dist/components/Header/HeaderLearningPlan.d.ts +1 -0
  4. package/dist/components/layouts/NotificationStepLogin.d.ts +10 -0
  5. package/dist/components/layouts/type.d.ts +20 -0
  6. package/dist/containers/AboutMyLearning/hook/useAboutMyLearning.d.ts +1 -0
  7. package/dist/containers/Accommodation/hook/useAccommodation.d.ts +1 -0
  8. package/dist/containers/FriendCircle/hooks/useListDetail.d.ts +1 -0
  9. package/dist/containers/FriendCircle/hooks/useListFriend.d.ts +1 -0
  10. package/dist/containers/Goals/hook/useGoalDetail.d.ts +1 -0
  11. package/dist/containers/Goals/hook/useGoals.d.ts +1 -0
  12. package/dist/containers/LearningStrategies/hook/useEditLearningStrategies.d.ts +1 -0
  13. package/dist/containers/LearningStrategies/view/LearningStrategiesMobileItem.d.ts +2 -1
  14. package/dist/containers/MyStudent/configs/createStudentSchema.d.ts +8 -0
  15. package/dist/containers/MyStudent/constants/types.d.ts +14 -0
  16. package/dist/containers/MyStudent/hooks/useCreateStudent.d.ts +12 -0
  17. package/dist/containers/MyStudent/hooks/useUpdateProfile.d.ts +20 -0
  18. package/dist/containers/MyStudentEduTeacher/apiClient/api.d.ts +2 -0
  19. package/dist/containers/MyStudentEduTeacher/components/ListStudent.d.ts +2 -0
  20. package/dist/containers/MyStudentEduTeacher/constants/types.d.ts +31 -0
  21. package/dist/containers/MyStudentEduTeacher/hook/useStudentList.d.ts +7 -0
  22. package/dist/containers/MyStudentEduTeacher/views/EduTeacherViewDetail.d.ts +3 -0
  23. package/dist/containers/Parent/components/StudentItem.d.ts +8 -0
  24. package/dist/containers/Parent/configs/constants.d.ts +7 -0
  25. package/dist/containers/Parent/hooks/useParentHome.d.ts +6 -0
  26. package/dist/containers/Parent/views/ParentPage.d.ts +5 -0
  27. package/dist/containers/PersonalLearningPlan/PersonalInterests/components/CardItemMobile/CardItemMobile.d.ts +2 -1
  28. package/dist/containers/StrengthsAndChallenges/hook/useStrengthsChallenges.d.ts +1 -0
  29. package/dist/containers/StrengthsAndChallenges/views/SummaryStrengthsAndChallenges.d.ts +2 -1
  30. package/dist/containers/ThingTeachersCanHelp/hook/useThingTeachersCanHelp.d.ts +1 -0
  31. package/dist/index.css +548 -8
  32. package/dist/index.d.ts +4 -1
  33. package/dist/index.js +2093 -605
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.modern.js +2042 -557
  36. package/dist/index.modern.js.map +1 -1
  37. package/dist/services/MyStudent.d.ts +5 -0
  38. package/dist/services/Parent.d.ts +2 -0
  39. package/package.json +2 -2
@@ -13,6 +13,7 @@ interface Props {
13
13
  isAllowedEdit?: boolean;
14
14
  isAccommodationIEP?: boolean;
15
15
  classFontSize?: any;
16
+ isParent?: boolean;
16
17
  }
17
- declare const CardItem: ({ title, description, status, id, handleEdit, note, contentWidth, handleDelete, isTeacher, isAllowedEdit, isAccommodationIEP, classFontSize }: Props) => JSX.Element;
18
+ declare const CardItem: ({ title, description, status, id, handleEdit, note, contentWidth, handleDelete, isTeacher, isAllowedEdit, isAccommodationIEP, classFontSize, isParent }: Props) => JSX.Element;
18
19
  export default CardItem;
@@ -22,6 +22,8 @@ interface Props {
22
22
  numberOfEdit?: boolean;
23
23
  isUserChangeSession?: boolean;
24
24
  isGoback?: boolean;
25
+ isShowButton?: boolean;
26
+ handleSubmit?: Function;
25
27
  }
26
28
  declare const HeaderComponent: FC<Props>;
27
29
  export default HeaderComponent;
@@ -7,6 +7,7 @@ interface Props {
7
7
  isShowButtonPageHeader?: boolean;
8
8
  textButton: string;
9
9
  setIsCreate?: any;
10
+ isParent?: boolean;
10
11
  onPreCreateModal?: () => void;
11
12
  }
12
13
  declare const HeaderLearningPlan: FC<Props>;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ step: number;
4
+ title: string;
5
+ message: string;
6
+ onStepNext: Function;
7
+ totalStep: number;
8
+ }
9
+ declare const NotificationStepLogin: FC<Props>;
10
+ export default NotificationStepLogin;
@@ -0,0 +1,20 @@
1
+ export declare const LIST_TEACHER_STEP_POPUP: {
2
+ id: number;
3
+ title: string;
4
+ message: string;
5
+ }[];
6
+ export declare const LIST_ASSISTANT_STEP_POPUP: {
7
+ id: number;
8
+ title: string;
9
+ message: string;
10
+ }[];
11
+ export declare const LIST_STUDENT_STEP_POPUP: {
12
+ id: number;
13
+ title: string;
14
+ message: string;
15
+ }[];
16
+ export declare const STEP_PROFILE: {
17
+ id: number;
18
+ title: string;
19
+ message: string;
20
+ };
@@ -24,6 +24,7 @@ declare const useAboutMyLearning: () => {
24
24
  }>>;
25
25
  classFontSize: string;
26
26
  nameStudent: string;
27
+ isParent: any;
27
28
  getAllow: () => Promise<void>;
28
29
  };
29
30
  export default useAboutMyLearning;
@@ -32,6 +32,7 @@ declare const useAccommodation: () => {
32
32
  };
33
33
  classFontSize: string;
34
34
  nameStudent: string;
35
+ isParent: any;
35
36
  getAllow: () => Promise<void>;
36
37
  };
37
38
  export default useAccommodation;
@@ -18,5 +18,6 @@ declare const useListDetail: () => {
18
18
  }[];
19
19
  onDeleteFriend: (cb: any) => Promise<void>;
20
20
  classFontSize: string;
21
+ isParent: any;
21
22
  };
22
23
  export default useListDetail;
@@ -5,5 +5,6 @@ declare const useListFriend: () => {
5
5
  filters: FILTER_STUDENT_SESSION;
6
6
  getData: () => Promise<void>;
7
7
  nameStudent: string;
8
+ isParent: any;
8
9
  };
9
10
  export default useListFriend;
@@ -14,5 +14,6 @@ declare const useGoalDetail: () => {
14
14
  isTeacher: any;
15
15
  isAllowedEdit: boolean;
16
16
  setDataDetail: import("react").Dispatch<any>;
17
+ isParent: any;
17
18
  };
18
19
  export default useGoalDetail;
@@ -10,5 +10,6 @@ declare const useGoals: () => {
10
10
  classFontSize: string;
11
11
  nameStudent: string;
12
12
  getAllow: () => Promise<void>;
13
+ isParent: any;
13
14
  };
14
15
  export default useGoals;
@@ -19,5 +19,6 @@ declare const useEditLearningStrategies: () => {
19
19
  bestFits: string[];
20
20
  selectedChange: (e: string[]) => Promise<void>;
21
21
  nameStudent: string;
22
+ isParent: any;
22
23
  };
23
24
  export default useEditLearningStrategies;
@@ -9,6 +9,7 @@ interface PropsType {
9
9
  toggleAllow: boolean;
10
10
  isTeacher: boolean;
11
11
  classFontSize: string;
12
+ isParent: boolean;
12
13
  }
13
- declare const LearningStrategiesMobileItem: ({ title, detail, bestFits, note, onDelete, onEdit, toggleAllow, isTeacher, classFontSize }: PropsType) => JSX.Element;
14
+ declare const LearningStrategiesMobileItem: ({ title, detail, bestFits, note, onDelete, onEdit, toggleAllow, isTeacher, classFontSize, isParent }: PropsType) => JSX.Element;
14
15
  export default LearningStrategiesMobileItem;
@@ -4,12 +4,20 @@ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
4
4
  lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
5
  email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
6
6
  secondaryEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
7
+ secondaryFirstName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
8
+ secondaryLastName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
7
9
  thirdEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
10
+ thirdFirstName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
11
+ thirdLastName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
8
12
  }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
9
13
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
10
14
  lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
11
15
  email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
12
16
  secondaryEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
17
+ secondaryFirstName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
18
+ secondaryLastName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
13
19
  thirdEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
20
+ thirdFirstName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
21
+ thirdLastName: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
14
22
  }>>;
15
23
  export default schema;
@@ -151,3 +151,17 @@ export interface DEFAULT_VALUE {
151
151
  typeFileVersion: string;
152
152
  nameFileVersion: string;
153
153
  }
154
+ export interface EDU_TEACHER {
155
+ email: string;
156
+ firstName: string;
157
+ fullName: string;
158
+ generalEducationTeacherId: number;
159
+ id: string;
160
+ isActive: boolean;
161
+ lastName: string;
162
+ profileImageFileName: string;
163
+ }
164
+ export interface ASSIGN_EDU_TEACHER {
165
+ eduTeacherId: number[];
166
+ studentId: number;
167
+ }
@@ -2,5 +2,17 @@
2
2
  declare const useCreateStudent: () => {
3
3
  createStudent: (data: any) => Promise<void>;
4
4
  setFile: import("react").Dispatch<any>;
5
+ handleCloseConfirmModal: () => void;
6
+ handleSendMailToCheckUser: (email: string) => Promise<void>;
7
+ openConfirmModal: boolean;
8
+ handleAcceptEmail: (values: any) => void;
9
+ handleDeclineEmail: () => void;
10
+ handleOpenParentModal1: () => void;
11
+ handleOpenParentModal2: () => void;
12
+ openAddEditParentModal1: boolean;
13
+ openAddEditParentModal2: boolean;
14
+ handleCloseParentModal1: () => void;
15
+ handleCloseParentModal2: () => void;
16
+ handleOpenConfirmModal: () => void;
5
17
  };
6
18
  export default useCreateStudent;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { EDU_TEACHER, ASSIGN_EDU_TEACHER } from "../constants/types";
2
3
  declare const useUpdateProfile: (studentId: number) => {
3
4
  studentData: any;
4
5
  updateStudentProfile: (imageUse: any, studentId: any, data: any) => Promise<void>;
@@ -17,5 +18,24 @@ declare const useUpdateProfile: (studentId: number) => {
17
18
  };
18
19
  classScheduleData: never[];
19
20
  updateCheckedClassSchedule: (id: number) => Promise<void>;
21
+ getListEduTeachers: () => Promise<void>;
22
+ dataListEduTeacher: EDU_TEACHER[];
23
+ assignEduTeacher: (data: ASSIGN_EDU_TEACHER) => Promise<void>;
24
+ setListSelectEduTeacher: import("react").Dispatch<import("react").SetStateAction<number[]>>;
25
+ listSelectEduTeacher: number[];
26
+ getEduTeacherByStudent: (studentId: number) => Promise<void>;
27
+ removeAssignEduTeacherById: (studentId: number, eduTeacherId: number) => Promise<void>;
28
+ handleSendMailToCheckUser: (email: string) => Promise<void>;
29
+ handleAcceptEmail: (values: any) => void;
30
+ handleDeclineEmail: () => void;
31
+ openConfirmModal: boolean;
32
+ handleCloseConfirmModal: () => void;
33
+ handleOpenParentModal1: () => void;
34
+ handleOpenParentModal2: () => void;
35
+ openAddEditParentModal1: boolean;
36
+ openAddEditParentModal2: boolean;
37
+ handleCloseParentModal1: () => void;
38
+ handleCloseParentModal2: () => void;
39
+ handleOpenConfirmModal: () => void;
20
40
  };
21
41
  export default useUpdateProfile;
@@ -0,0 +1,2 @@
1
+ import { FILTER_STUDENT } from "../constants/types";
2
+ export declare const getAllStudent: (filters: FILTER_STUDENT) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ListStudent: () => JSX.Element;
@@ -0,0 +1,31 @@
1
+ export interface FILTER_STUDENT {
2
+ currentPage: number;
3
+ pageSize: number;
4
+ searchString: string;
5
+ sortBy: string;
6
+ sortOrder?: string;
7
+ name?: string;
8
+ isDescending?: boolean;
9
+ }
10
+ export declare enum OrderByStudent {
11
+ id = 0,
12
+ name = 1,
13
+ grade = 2,
14
+ lastOneToOne = 3,
15
+ lastConference = 4,
16
+ totalTime = 5
17
+ }
18
+ export interface STUDENT_LIST {
19
+ fullName: string;
20
+ gradeLevel: string;
21
+ id: string;
22
+ profileImageFileName: string;
23
+ studentId: number;
24
+ }
25
+ export interface RES_STUDENT {
26
+ currentPage: number;
27
+ items: STUDENT_LIST[];
28
+ pageSize: number;
29
+ totalItems: number;
30
+ totalPages: number;
31
+ }
@@ -0,0 +1,7 @@
1
+ import { FILTER_STUDENT } from "../constants/types";
2
+ declare const useStudentList: () => {
3
+ students: any;
4
+ changeFilters: (updatedFilters: any) => void;
5
+ filters: FILTER_STUDENT;
6
+ };
7
+ export default useStudentList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const EduTeacherViewDetail: () => JSX.Element;
3
+ export default EduTeacherViewDetail;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { STUDENT_ITEM } from "../configs/constants";
3
+ interface Props {
4
+ studentItem: STUDENT_ITEM;
5
+ setCurrentChildren: Function;
6
+ }
7
+ declare const StudentItem: FC<Props>;
8
+ export default StudentItem;
@@ -0,0 +1,7 @@
1
+ export declare type STUDENT_ITEM = {
2
+ id: number;
3
+ name: string;
4
+ email: string;
5
+ avatarPath: string;
6
+ studentId: number;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { STUDENT_ITEM } from "../configs/constants";
2
+ declare const useParentHome: () => {
3
+ students: STUDENT_ITEM[];
4
+ setCurrentChildren: (studentUserId: string, studentId: number, studentName: string) => void;
5
+ };
6
+ export default useParentHome;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ }
4
+ declare const ParentPage: ({}: Props) => JSX.Element;
5
+ export default ParentPage;
@@ -7,6 +7,7 @@ interface PropsType {
7
7
  onEditItem?: Function;
8
8
  isAllowedEdit?: boolean;
9
9
  classFontSize: string;
10
+ isParent?: boolean;
10
11
  }
11
- declare const CardItemMobile: ({ imageUrl, interestName, interestDescription, onDeleteItem, onEditItem, isAllowedEdit, classFontSize }: PropsType) => JSX.Element;
12
+ declare const CardItemMobile: ({ imageUrl, interestName, interestDescription, onDeleteItem, onEditItem, isAllowedEdit, classFontSize, isParent }: PropsType) => JSX.Element;
12
13
  export default CardItemMobile;
@@ -12,5 +12,6 @@ declare const useStrengthsChallenges: () => {
12
12
  isAllowedEdit: boolean;
13
13
  classFontSize: string;
14
14
  nameStudent: string;
15
+ isParent: any;
15
16
  };
16
17
  export default useStrengthsChallenges;
@@ -2,6 +2,7 @@
2
2
  interface Props {
3
3
  isTeacher?: boolean;
4
4
  studentInfo: any;
5
+ isParent?: boolean;
5
6
  }
6
- declare const SummaryStrengthsAndChallenges: ({ isTeacher, studentInfo }: Props) => JSX.Element;
7
+ declare const SummaryStrengthsAndChallenges: ({ isTeacher, isParent, studentInfo }: Props) => JSX.Element;
7
8
  export default SummaryStrengthsAndChallenges;
@@ -14,5 +14,6 @@ declare const useThingTeachersCanHelp: () => {
14
14
  classFontSize: string;
15
15
  nameStudent: string;
16
16
  getAllow: () => Promise<void>;
17
+ isParent: any;
17
18
  };
18
19
  export default useThingTeachersCanHelp;