mario-teacher-student-client 2.0.6 → 9000.0.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.
Files changed (51) hide show
  1. package/dist/components/Circle/Circle.d.ts +11 -0
  2. package/dist/components/Circle/ItemCircle.d.ts +7 -0
  3. package/dist/components/Header/HeaderLearningPlan.d.ts +11 -0
  4. package/dist/components/Header/HeaderSurvey.d.ts +11 -0
  5. package/dist/components/Input/TextAreaComponent.d.ts +8 -0
  6. package/dist/components/layouts/HeaderSideBar.d.ts +4 -0
  7. package/dist/containers/ConductOneToOne/hooks/useCountDown.d.ts +8 -0
  8. package/dist/containers/FriendCircle/components/ModalGoalFriend.d.ts +3 -0
  9. package/dist/containers/FriendCircle/constants/types.d.ts +101 -0
  10. package/dist/containers/FriendCircle/hooks/useListDetail.d.ts +20 -0
  11. package/dist/containers/FriendCircle/hooks/useListFriend.d.ts +8 -0
  12. package/dist/containers/FriendCircle/views/FriendCircle.d.ts +3 -0
  13. package/dist/containers/FriendCircle/views/FriendCircleLearning.d.ts +3 -0
  14. package/dist/containers/FriendCircle/views/ListFriendCircle.d.ts +3 -0
  15. package/dist/containers/MyConferences/hooks/useUpComing.d.ts +0 -1
  16. package/dist/containers/MyOneToOne/components/SliderRange.d.ts +2 -0
  17. package/dist/containers/MyOneToOne/components/UiCompletedOneToOne.d.ts +3 -0
  18. package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -3
  19. package/dist/containers/MyOneToOne/components/dialog/SimpleDialog.d.ts +3 -0
  20. package/dist/containers/MyOneToOne/hooks/useUpComing.d.ts +0 -1
  21. package/dist/containers/MyStudent/components/Accommodation/Accomondation.d.ts +3 -0
  22. package/dist/containers/MyStudent/components/Accommodation/AccomondationList.d.ts +3 -0
  23. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +4 -0
  24. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/TopLearningStrategies.d.ts +1 -0
  25. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/TopLearningStrategiesChart.d.ts +3 -0
  26. package/dist/containers/MyStudent/configs/createStudentSchema.d.ts +0 -5
  27. package/dist/containers/MyStudent/constants/types.d.ts +6 -0
  28. package/dist/containers/MyStudent/hooks/useAccommodation.d.ts +8 -0
  29. package/dist/containers/MySurvey/constants/types.d.ts +41 -0
  30. package/dist/containers/MySurvey/hooks/useStudentList.d.ts +9 -0
  31. package/dist/containers/MySurvey/views/CreateSurvey.d.ts +3 -0
  32. package/dist/containers/MySurvey/views/Mysurvey.d.ts +3 -0
  33. package/dist/containers/MySurvey/views/StudentSurvey.d.ts +3 -0
  34. package/dist/containers/Note/components/AddNew.d.ts +3 -0
  35. package/dist/containers/Note/components/Note.d.ts +3 -0
  36. package/dist/containers/Note/components/ViewItemNote.d.ts +3 -0
  37. package/dist/containers/Note/hook/useNote.d.ts +10 -0
  38. package/dist/containers/PersonalLearningPlan/hook/usePersonalInterest.d.ts +2 -33
  39. package/dist/containers/SettingPageV1/hook/useSettingPage.d.ts +5 -0
  40. package/dist/containers/SettingPageV1/view/SettingPage.d.ts +2 -0
  41. package/dist/index.css +1436 -25
  42. package/dist/index.d.ts +14 -2
  43. package/dist/index.js +4529 -1499
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.modern.js +4501 -1482
  46. package/dist/index.modern.js.map +1 -1
  47. package/dist/services/MyStudent.d.ts +7 -0
  48. package/dist/services/myFriendGoalService.d.ts +5 -0
  49. package/package.json +4 -2
  50. package/dist/containers/PersonalLearningPlan/hook/personalInterestApi.d.ts +0 -6
  51. package/dist/containers/PersonalLearningPlan/hook/personalInterestsService.d.ts +0 -6
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ title: string;
4
+ numberFriend: number;
5
+ background: string;
6
+ width: number;
7
+ height: number;
8
+ key?: number;
9
+ }
10
+ declare const Circle: ({ title, numberFriend, width, height, background, key }: Props) => JSX.Element;
11
+ export default Circle;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ background: string;
4
+ title: string;
5
+ }
6
+ declare const ItemCircle: ({ background, title }: Props) => JSX.Element;
7
+ export default ItemCircle;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ isShowButtonBackGround?: boolean;
5
+ onRedirect?: Function;
6
+ goBack?: Function;
7
+ isShowButtonPageHeader?: boolean;
8
+ textButton: string;
9
+ }
10
+ declare const HeaderLearningPlan: FC<Props>;
11
+ export default HeaderLearningPlan;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ isShowButtonBackGround?: boolean;
5
+ onFinishSession?: Function;
6
+ goBack?: Function;
7
+ isShowButtonPageHeader?: boolean;
8
+ textButton?: string;
9
+ }
10
+ declare const HeaderSurvey: FC<Props>;
11
+ export default HeaderSurvey;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ label?: string;
4
+ valueText: string;
5
+ onChange: Function;
6
+ }
7
+ declare const TextAreaComponent: ({ valueText, onChange, label }: Props) => JSX.Element;
8
+ export default TextAreaComponent;
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
+ export declare const ICON_NAV: {
3
+ name: string;
4
+ icon: JSX.Element;
5
+ }[];
2
6
  declare const HeaderSideBar: ({ children, navigations }: any) => JSX.Element;
3
7
  export default HeaderSideBar;
@@ -0,0 +1,8 @@
1
+ import { TypeTime } from "../constant/types";
2
+ declare const useCountDown: (typeTime: TypeTime, sessionResultId: number) => {
3
+ hour: number;
4
+ minute: number;
5
+ second: number;
6
+ clearTimer: () => void;
7
+ };
8
+ export default useCountDown;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,101 @@
1
+ export interface FILTER_STUDENT_SESSION {
2
+ currentPage: number;
3
+ pageSize: number;
4
+ searchString: string;
5
+ sortBy: string;
6
+ sortOrder?: string;
7
+ name?: string;
8
+ startDate?: number;
9
+ endDate?: number;
10
+ isDone?: boolean;
11
+ isDescending?: boolean;
12
+ }
13
+ export interface FILTER_SESSION {
14
+ currentPage: number;
15
+ pageSize: number;
16
+ searchString: string;
17
+ sortBy: string;
18
+ sortOrder?: string;
19
+ name?: string;
20
+ startDate?: number;
21
+ endDate?: number;
22
+ isDone?: boolean;
23
+ }
24
+ export interface SESSION_TYPE {
25
+ id: string;
26
+ studentId: string;
27
+ teacherId: number;
28
+ startTime: string;
29
+ minutes?: number;
30
+ isDoing?: boolean;
31
+ isDone?: boolean;
32
+ isCreatedByTeacher?: boolean;
33
+ isFavourite: boolean;
34
+ isTeacherFavourite: boolean;
35
+ isTeacherDone?: boolean;
36
+ teacherName?: string;
37
+ studentAvatar?: string;
38
+ studentName?: string;
39
+ gradeLevel?: any;
40
+ finalScore?: any;
41
+ studentProfile?: any;
42
+ sortOrder?: string;
43
+ teacherResultId?: number;
44
+ }
45
+ export interface STUDENT_PROFILE {
46
+ id: number;
47
+ userId: string;
48
+ name: string;
49
+ avatar: string;
50
+ classes: string[];
51
+ }
52
+ export interface CLASS_REFLECTION {
53
+ id: number;
54
+ classDate: string;
55
+ classType: string;
56
+ status: string;
57
+ teacherName: string;
58
+ isDone: string;
59
+ classImpactScore?: string;
60
+ studentAvatar?: string;
61
+ teacherAvatar?: string;
62
+ IsDescending?: boolean;
63
+ studentName?: string;
64
+ }
65
+ export interface QuestionAnswer {
66
+ id: number;
67
+ answer: string;
68
+ }
69
+ export declare enum OrderByStudent {
70
+ id = 0,
71
+ name = 1,
72
+ grade = 2,
73
+ lastOneToOne = 3,
74
+ lastConference = 4,
75
+ totalTime = 5
76
+ }
77
+ export interface ActionPointType {
78
+ id?: string;
79
+ text: string;
80
+ }
81
+ export interface FILTER_STUDENT_WELLBEING {
82
+ startDate?: number;
83
+ endDate?: number;
84
+ }
85
+ export interface FILTER_LEARNING {
86
+ currentPage: number;
87
+ pageSize: number;
88
+ searchString: string;
89
+ sortBy: string;
90
+ sortOrder?: string;
91
+ startDate?: number;
92
+ endDate?: number;
93
+ studentId?: number;
94
+ }
95
+ export interface LEARNING_PLAN {
96
+ id: number;
97
+ modifyTime: string;
98
+ createTime: string;
99
+ profileImageTeacher: string;
100
+ teacherName: string;
101
+ }
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ declare type CircleType = {
3
+ id: number;
4
+ firstName: string;
5
+ lastName: string;
6
+ type: string;
7
+ };
8
+ declare const useListDetail: () => {
9
+ myGoalCircle: CircleType;
10
+ setGoalCircle: import("react").Dispatch<import("react").SetStateAction<CircleType>>;
11
+ confirmData: (values: any, cb: any) => Promise<void>;
12
+ friendId: number;
13
+ setfriendId: import("react").Dispatch<import("react").SetStateAction<number>>;
14
+ OPTIONS_TYPE: {
15
+ value: string;
16
+ label: string;
17
+ color: string;
18
+ }[];
19
+ };
20
+ export default useListDetail;
@@ -0,0 +1,8 @@
1
+ import { FILTER_STUDENT_SESSION } from "../constants/types";
2
+ declare const useListFriend: () => {
3
+ goalFriendList: never[];
4
+ changeFilters: (updatedFilters: any) => void;
5
+ filters: FILTER_STUDENT_SESSION;
6
+ getData: () => Promise<void>;
7
+ };
8
+ export default useListFriend;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const FriendCircle: () => JSX.Element;
3
+ export default FriendCircle;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const FriendCircleLearning: () => JSX.Element;
3
+ export default FriendCircleLearning;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ListFriendCircle: () => JSX.Element;
3
+ export default ListFriendCircle;
@@ -17,6 +17,5 @@ declare const useUpComing: () => {
17
17
  nextSession: any;
18
18
  nextTimeMeeting: () => Promise<void>;
19
19
  getStudentSelector: () => Promise<void>;
20
- studentNameReq: string | null;
21
20
  };
22
21
  export default useUpComing;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function CustomizedSlider(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const UiCompletedOneToOne: () => JSX.Element;
3
+ export default UiCompletedOneToOne;
@@ -1,3 +1,3 @@
1
- import React from "react";
2
- declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
- export default _default;
1
+ /// <reference types="react" />
2
+ declare const DialogNodes: (props: any) => JSX.Element;
3
+ export default DialogNodes;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -20,6 +20,5 @@ declare const useUpComing: () => {
20
20
  getAllNoteConference: (sessionId: any) => Promise<void>;
21
21
  updateConferenceRubricPrivateNote: (privateNote: any, conferenceId: any) => Promise<void>;
22
22
  deleteNoteConference: (noteId: any, sessionId: any) => Promise<void>;
23
- studentNameReq: string | null;
24
23
  };
25
24
  export default useUpComing;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Accomondation: () => JSX.Element;
3
+ export default Accomondation;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AccomondationList: () => JSX.Element;
3
+ export default AccomondationList;
@@ -0,0 +1,4 @@
1
+ declare const useTopLearningStrategies: (studentId: any) => {
2
+ topLearningStrategiesData: any;
3
+ };
4
+ export default useTopLearningStrategies;
@@ -0,0 +1 @@
1
+ export declare const getTopLearningStrategiesApi: (studentId: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TopLearningStrategiesChart: (studentId: any) => JSX.Element;
3
+ export default TopLearningStrategiesChart;
@@ -1,15 +1,10 @@
1
- import * as yup from "yup";
2
1
  declare const schema: import("yup/lib/object").OptionalObjectSchema<{
3
2
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
3
  lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
4
  email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
6
- secondaryEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
7
- thirdEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
8
5
  }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
9
6
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
10
7
  lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
11
8
  email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
12
- secondaryEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
13
- thirdEmail: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
14
9
  }>>;
15
10
  export default schema;
@@ -99,3 +99,9 @@ export interface LEARNING_PLAN {
99
99
  profileImageTeacher: string;
100
100
  teacherName: string;
101
101
  }
102
+ export interface ACCOMMODATION_TYPE {
103
+ id: number;
104
+ title: string;
105
+ description: string;
106
+ type: string;
107
+ }
@@ -0,0 +1,8 @@
1
+ declare const useAccommodation: () => {
2
+ create: (data: any) => Promise<void>;
3
+ update: (id: number, data: any) => Promise<void>;
4
+ getById: (id: number, data: any) => Promise<void>;
5
+ deleteById: (id: number) => Promise<void>;
6
+ accommodationData: any;
7
+ };
8
+ export default useAccommodation;
@@ -0,0 +1,41 @@
1
+ export interface FILTER_STUDENT_SESSION {
2
+ currentPage: number;
3
+ pageSize: number;
4
+ searchString: string;
5
+ sortBy: string;
6
+ sortOrder?: string;
7
+ name?: string;
8
+ startDate?: number;
9
+ endDate?: number;
10
+ isDone?: boolean;
11
+ isDescending?: boolean;
12
+ }
13
+ export interface SESSION_TYPE {
14
+ id: string;
15
+ studentId: string;
16
+ teacherId: number;
17
+ startTime: string;
18
+ minutes?: number;
19
+ isDoing?: boolean;
20
+ isDone?: boolean;
21
+ isCreatedByTeacher?: boolean;
22
+ isFavourite: boolean;
23
+ isTeacherFavourite: boolean;
24
+ isTeacherDone?: boolean;
25
+ teacherName?: string;
26
+ studentAvatar?: string;
27
+ studentName?: string;
28
+ gradeLevel?: any;
29
+ finalScore?: any;
30
+ studentProfile?: any;
31
+ sortOrder?: string;
32
+ teacherResultId?: number;
33
+ }
34
+ export declare enum OrderByStudent {
35
+ id = 0,
36
+ name = 1,
37
+ grade = 2,
38
+ lastOneToOne = 3,
39
+ lastConference = 4,
40
+ totalTime = 5
41
+ }
@@ -0,0 +1,9 @@
1
+ import { FILTER_STUDENT_SESSION } from "../constants/types";
2
+ declare const useStudentList: () => {
3
+ students: any;
4
+ changeFilters: (updatedFilters: any) => void;
5
+ filters: FILTER_STUDENT_SESSION;
6
+ importStudentCsv: (file: any, teacherID: string, cb: any) => Promise<void>;
7
+ getData: () => Promise<void>;
8
+ };
9
+ export default useStudentList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CreateSurvey: () => JSX.Element;
3
+ export default CreateSurvey;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const MySurvey: FC;
3
+ export default MySurvey;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentSurvey: () => JSX.Element;
3
+ export default StudentSurvey;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AddNote: () => JSX.Element;
3
+ export default AddNote;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Note: () => JSX.Element;
3
+ export default Note;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ViewItemNote: () => JSX.Element;
3
+ export default ViewItemNote;
@@ -0,0 +1,10 @@
1
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
2
+ declare const useNote: () => {
3
+ changeEndDate: (date: MaterialUiPickersDate | null) => void;
4
+ changeStartDate: (date: MaterialUiPickersDate | null) => void;
5
+ startDate: any;
6
+ endDate: any;
7
+ onChangeSetData: (e: any) => void;
8
+ valueNoteAdd: string;
9
+ };
10
+ export default useNote;
@@ -1,36 +1,5 @@
1
1
  declare const usePersonalInterest: () => {
2
- upDateData: () => Promise<void>;
3
- editData: (id: number) => Promise<void>;
4
- sendDataCreate: () => Promise<void>;
5
- deleteDataItem: () => Promise<void>;
6
- handleClose: () => void;
7
- handleCloseEdit: () => void;
8
- handUpload: (e: any) => void;
9
- handleCloseDelete: () => void;
10
- dataList: any;
11
- handUploadEdit: (e: any) => void;
12
- openModal: boolean;
13
- openModalDelete: boolean;
14
- openModalEdit: boolean;
15
- targetImage: any;
16
- fileUploadEdit: string;
17
- fileAvatarEdit: string;
18
- deleteData: (id: number) => void;
19
- handOpenModal: () => void;
20
- handCloseModalEdit: () => void;
21
- handCloseModalDelete: () => void;
22
- value: string;
23
- fileAvatar: string;
24
- valueAddActivity: string;
25
- onChangeSetData: (e: any) => void;
26
- onChangeSetDataNote: (e: any) => void;
27
- dataEdit: {
28
- id: string;
29
- Title: string;
30
- Note: string;
31
- studentId: string;
32
- };
33
- onChangeSetDataEdit: (e: any) => void;
34
- onChangeSetDataEditNote: (e: any) => void;
2
+ getDataPersonalInterest: () => Promise<void>;
3
+ listPersonalInterest: any;
35
4
  };
36
5
  export default usePersonalInterest;
@@ -0,0 +1,5 @@
1
+ declare const useSettingPage: () => {
2
+ handleChangeRadio: (event: React.ChangeEvent<HTMLInputElement>) => void;
3
+ valueRadio: any;
4
+ };
5
+ export default useSettingPage;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function SettingPage(): JSX.Element;