mario-teacher-student-client 2.1.44-beta → 2.1.47-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 (45) hide show
  1. package/dist/components/Card/CardSwitch.d.ts +2 -1
  2. package/dist/components/Header/HeaderComponent.d.ts +1 -0
  3. package/dist/components/Header/HeaderLearningPlan.d.ts +1 -0
  4. package/dist/containers/AboutMyLearning/components/AboutMyLearning.d.ts +1 -1
  5. package/dist/containers/AboutMyLearning/hook/useAboutMyLearning.d.ts +1 -0
  6. package/dist/containers/Accommodation/components/Accomondation.d.ts +1 -1
  7. package/dist/containers/Accommodation/hook/useAccommodation.d.ts +1 -0
  8. package/dist/containers/ExternalReflection/components/InformationUser.d.ts +8 -0
  9. package/dist/containers/ExternalReflection/components/QuestionComponent.d.ts +22 -0
  10. package/dist/containers/ExternalReflection/components/SliderExternalComponent.d.ts +16 -0
  11. package/dist/containers/ExternalReflection/constants/types.d.ts +114 -0
  12. package/dist/containers/ExternalReflection/hooks/useStartReflection.d.ts +20 -0
  13. package/dist/containers/ExternalReflection/views/ExternalReflection.d.ts +3 -0
  14. package/dist/containers/Goals/components/Goals.d.ts +6 -1
  15. package/dist/containers/Goals/hook/useGoals.d.ts +1 -0
  16. package/dist/containers/MyClassReflection/components/ExternalClassReflection.d.ts +3 -0
  17. package/dist/containers/MyClassReflection/components/tabs/ClassReflectionTab.d.ts +3 -0
  18. package/dist/containers/MyClassReflection/constants/types.d.ts +3 -1
  19. package/dist/containers/MyClassReflection/hooks/useExternalClassReflection.d.ts +11 -0
  20. package/dist/containers/MyClassReflection/views/TeacherClassReflection.d.ts +3 -0
  21. package/dist/containers/MyConferences/hooks/useChangeRouteQuestion.d.ts +4 -0
  22. package/dist/containers/MyOneToOne/constants/types.d.ts +1 -0
  23. package/dist/containers/MyOneToOne/hooks/useChangeRoteQuestion.d.ts +4 -0
  24. package/dist/containers/MyOneToOne/hooks/useUpComing.d.ts +5 -3
  25. package/dist/containers/MyStudent/components/NewOverview/Chat/view/ChatClassReflection.d.ts +1 -1
  26. package/dist/containers/PersonalLearningPlan/components/PersonalLearningGoal/usePersonalInterest.d.ts +6 -0
  27. package/dist/containers/StrengthsAndChallenges/views/SummaryStrengthsAndChallenges.d.ts +2 -1
  28. package/dist/containers/ThankYouCard/views/ThankYouCard.d.ts +3 -0
  29. package/dist/containers/ThingTeachersCanHelp/components/ThingTeachersCanHelp.d.ts +1 -1
  30. package/dist/containers/ThingTeachersCanHelp/constants/type.d.ts +3 -0
  31. package/dist/containers/ThingTeachersCanHelp/hook/useThingTeachersCanHelp.d.ts +1 -0
  32. package/dist/index.css +277 -0
  33. package/dist/index.d.ts +4 -1
  34. package/dist/index.js +5430 -3180
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.modern.js +5387 -3140
  37. package/dist/index.modern.js.map +1 -1
  38. package/dist/services/ExternalClassReflection.d.ts +2 -0
  39. package/dist/services/MyStudent.d.ts +4 -0
  40. package/dist/utils/formatDate.d.ts +1 -0
  41. package/package.json +2 -2
  42. package/dist/components/Tabs/CustomTabNote.d.ts +0 -3
  43. package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +0 -3
  44. package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +0 -3
  45. package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +0 -3
@@ -7,6 +7,7 @@ interface Props {
7
7
  updateAllow: Function;
8
8
  isTeacher?: boolean;
9
9
  classFontSize?: any;
10
+ name?: string;
10
11
  }
11
- declare const CardSwitch: ({ title, handleClickOpen, isAllowedEdit, updateAllow, isTeacher, classFontSize }: Props) => JSX.Element;
12
+ declare const CardSwitch: ({ title, handleClickOpen, isAllowedEdit, updateAllow, isTeacher, classFontSize, name }: Props) => JSX.Element;
12
13
  export default CardSwitch;
@@ -21,6 +21,7 @@ interface Props {
21
21
  onEditConference?: Function;
22
22
  numberOfEdit?: boolean;
23
23
  isUserChangeSession?: boolean;
24
+ isGoback?: boolean;
24
25
  }
25
26
  declare const HeaderComponent: FC<Props>;
26
27
  export default HeaderComponent;
@@ -7,6 +7,7 @@ interface Props {
7
7
  isShowButtonPageHeader?: boolean;
8
8
  textButton: string;
9
9
  setIsCreate?: any;
10
+ onPreCreateModal?: () => void;
10
11
  }
11
12
  declare const HeaderLearningPlan: FC<Props>;
12
13
  export default HeaderLearningPlan;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const AboutMyLearning: ({ studentId }: any) => JSX.Element;
2
+ declare const AboutMyLearning: ({ studentId, isAllowedEdit, updateAllow, studentInfo }: any) => JSX.Element;
3
3
  export default AboutMyLearning;
@@ -24,5 +24,6 @@ declare const useAboutMyLearning: () => {
24
24
  }>>;
25
25
  classFontSize: string;
26
26
  nameStudent: string;
27
+ getAllow: () => Promise<void>;
27
28
  };
28
29
  export default useAboutMyLearning;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Accomondation: ({ studentId }: any) => JSX.Element;
2
+ declare const Accomondation: ({ studentId, isAllowedEdit, updateAllow, studentInfo }: any) => JSX.Element;
3
3
  export default Accomondation;
@@ -32,5 +32,6 @@ declare const useAccommodation: () => {
32
32
  };
33
33
  classFontSize: string;
34
34
  nameStudent: string;
35
+ getAllow: () => Promise<void>;
35
36
  };
36
37
  export default useAccommodation;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ informationUser?: any;
4
+ isTeacher?: boolean;
5
+ clickOpenProfileDialog?: any;
6
+ }
7
+ declare const InformationUser: ({ informationUser, isTeacher, clickOpenProfileDialog, }: Props) => JSX.Element;
8
+ export default InformationUser;
@@ -0,0 +1,22 @@
1
+ import { FC } from "react";
2
+ import { QuestionType, EmotionType } from "../../ConductOneToOne/constant/types";
3
+ interface Props {
4
+ questionItemName: string;
5
+ minText?: string;
6
+ maxText?: string;
7
+ questionTypeId: QuestionType;
8
+ emotionTypeList?: EmotionType[];
9
+ onChangeQuestionAnswer?: (questionId: number, value: string) => void;
10
+ questionId: number;
11
+ valueText: string;
12
+ averageOtherRatings?: number;
13
+ isBeforeSession: boolean;
14
+ isPageResult?: boolean;
15
+ isPageSessionResult?: boolean;
16
+ avatar?: string;
17
+ isRedToRed?: boolean;
18
+ isUserChangeSession?: boolean;
19
+ questionAnswer?: string[];
20
+ }
21
+ declare const QuestionComponent: FC<Props>;
22
+ export default QuestionComponent;
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ minText?: string;
4
+ maxText?: string;
5
+ questionId: number;
6
+ valueText: string;
7
+ onChangeQuestionAnswer?: (questionId: number, value: string) => void;
8
+ averageOtherRatings?: number;
9
+ isBeforeSession: boolean;
10
+ isPageResult?: boolean;
11
+ isPageSessionResult?: boolean;
12
+ avatar?: string;
13
+ isRedToRed?: boolean;
14
+ }
15
+ declare const SliderExternalComponent: FC<Props>;
16
+ export default SliderExternalComponent;
@@ -0,0 +1,114 @@
1
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
2
+ export interface FILTER_STUDENT_SESSION {
3
+ currentPage: number;
4
+ pageSize: number;
5
+ searchString: string;
6
+ sortBy: string;
7
+ sortOrder?: string;
8
+ name?: string;
9
+ startDate?: number;
10
+ endDate?: number;
11
+ isDone?: boolean;
12
+ isDescending?: boolean;
13
+ currentId?: number;
14
+ showAssistant?: boolean;
15
+ onlyShowWorkAsAssistant?: boolean;
16
+ }
17
+ export interface FILTER_SESSION {
18
+ currentPage: number;
19
+ pageSize: number;
20
+ searchString: string;
21
+ sortBy: string;
22
+ sortOrder?: string;
23
+ name?: string;
24
+ startDate?: number;
25
+ endDate?: number;
26
+ isDone?: boolean;
27
+ }
28
+ export interface SESSION_TYPE {
29
+ id: string;
30
+ studentId: string;
31
+ teacherId: number;
32
+ startTime: string;
33
+ minutes?: number;
34
+ isDoing?: boolean;
35
+ isDone?: boolean;
36
+ isCreatedByTeacher?: boolean;
37
+ isFavourite: boolean;
38
+ isTeacherFavourite: boolean;
39
+ isTeacherDone?: boolean;
40
+ teacherName?: string;
41
+ studentAvatar?: string;
42
+ studentName?: string;
43
+ gradeLevel?: any;
44
+ finalScore?: any;
45
+ studentProfile?: any;
46
+ sortOrder?: string;
47
+ teacherResultId?: number;
48
+ isWorkAsAssistant?: boolean;
49
+ }
50
+ export interface STUDENT_PROFILE {
51
+ id: number;
52
+ userId: string;
53
+ name: string;
54
+ avatar: string;
55
+ classes: string[];
56
+ }
57
+ export interface CLASS_REFLECTION {
58
+ id: number;
59
+ classDate: string;
60
+ classType: string;
61
+ status: string;
62
+ teacherName: string;
63
+ isDone: string;
64
+ classImpactScore?: string;
65
+ studentAvatar?: string;
66
+ teacherAvatar?: string;
67
+ IsDescending?: boolean;
68
+ studentName?: string;
69
+ receiviedDate?: any;
70
+ }
71
+ export interface QuestionAnswer {
72
+ id: number;
73
+ answer: string;
74
+ }
75
+ export declare enum OrderByStudent {
76
+ id = 0,
77
+ name = 1,
78
+ grade = 2,
79
+ lastOneToOne = 3,
80
+ lastConference = 4,
81
+ totalTime = 5
82
+ }
83
+ export interface ActionPointType {
84
+ id?: string;
85
+ text: string;
86
+ deadline: string;
87
+ }
88
+ export interface FILTER_STUDENT_WELLBEING {
89
+ startDate?: number;
90
+ endDate?: number;
91
+ }
92
+ export interface FILTER_LEARNING {
93
+ currentPage: number;
94
+ pageSize: number;
95
+ searchString: string;
96
+ sortBy: string;
97
+ sortOrder?: string;
98
+ startDate?: MaterialUiPickersDate | null;
99
+ endDate?: MaterialUiPickersDate | null;
100
+ studentId?: number;
101
+ }
102
+ export interface LEARNING_PLAN {
103
+ id: number;
104
+ modifyTime: string;
105
+ createTime: string;
106
+ profileImageTeacher: string;
107
+ teacherName: string;
108
+ }
109
+ export interface ACCOMMODATION_TYPE {
110
+ id: number;
111
+ title: string;
112
+ description: string;
113
+ type: string;
114
+ }
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { QuestionAnswer, ActionPointType } from "../constants/types";
3
+ declare const useStartReflection: () => {
4
+ informationUser: any;
5
+ listQuestions: any;
6
+ questionAnswers: QuestionAnswer[];
7
+ actionPointAnswers: ActionPointType[];
8
+ setQuestionAnswers: import("react").Dispatch<import("react").SetStateAction<QuestionAnswer[]>>;
9
+ setActionPointAnswers: import("react").Dispatch<import("react").SetStateAction<ActionPointType[]>>;
10
+ setListQuestions: import("react").Dispatch<any>;
11
+ setNoteReflection: import("react").Dispatch<import("react").SetStateAction<string>>;
12
+ noteReflection: string;
13
+ fnfinishSession: (cb: any) => Promise<void>;
14
+ reflectionId: string;
15
+ getDataActionPoint: (searchParam: any) => Promise<any>;
16
+ createActionPoint: (formRequest: any) => Promise<void>;
17
+ deleteActionPoint: (id: number) => Promise<void>;
18
+ classFontSize: string;
19
+ };
20
+ export default useStartReflection;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ExternalReflection: FC;
3
+ export default ExternalReflection;
@@ -1,3 +1,8 @@
1
1
  /// <reference types="react" />
2
- declare const Goals: () => JSX.Element;
2
+ interface Goal {
3
+ isAllowedEdit: boolean;
4
+ updateAllow: Function;
5
+ studentInfo: any;
6
+ }
7
+ declare const Goals: ({ isAllowedEdit, updateAllow, studentInfo }: Goal) => JSX.Element;
3
8
  export default Goals;
@@ -9,5 +9,6 @@ declare const useGoals: () => {
9
9
  currentId: any;
10
10
  classFontSize: string;
11
11
  nameStudent: string;
12
+ getAllow: () => Promise<void>;
12
13
  };
13
14
  export default useGoals;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ExternalClassReflection: () => JSX.Element;
3
+ export default ExternalClassReflection;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabs: (props: any) => JSX.Element;
3
+ export default CustomTabs;
@@ -23,6 +23,7 @@ export interface FILTER_SESSION {
23
23
  startDate?: number | null;
24
24
  endDate?: number | null;
25
25
  isDone?: boolean;
26
+ isExternalLink?: boolean;
26
27
  }
27
28
  export interface QuestionAnswer {
28
29
  id: number;
@@ -40,5 +41,6 @@ export declare enum COLUMN_ClASS {
40
41
  TeacherImage = 4,
41
42
  StudentEmail = 5,
42
43
  BandScore = 6,
43
- SendNow = 7
44
+ IsExternalLink = 7,
45
+ SendNow = 8
44
46
  }
@@ -0,0 +1,11 @@
1
+ import { FILTER_SESSION } from "../constants/types";
2
+ export declare const defaultFontSmall = 12;
3
+ export declare const defaultFontLarge = 20;
4
+ declare const useExternalClassReflection: () => {
5
+ changeFilters: (updatedFilters: any) => void;
6
+ useFontCustomStyles: (props?: any) => Record<"select" | "fontCustom", string>;
7
+ classFontSize: string;
8
+ externalClassReflectionList: any;
9
+ filters: FILTER_SESSION;
10
+ };
11
+ export default useExternalClassReflection;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TeacherClassReflection: () => JSX.Element;
3
+ export default TeacherClassReflection;
@@ -0,0 +1,4 @@
1
+ declare const useChangeRouteQuestion: () => {
2
+ changRouteQuestion: (studentId: number) => Promise<void>;
3
+ };
4
+ export default useChangeRouteQuestion;
@@ -21,6 +21,7 @@ export interface STUDENT_PROFILE {
21
21
  avatar: string;
22
22
  gradeLevel: string;
23
23
  classes: string[];
24
+ email: string;
24
25
  }
25
26
  export interface SIMPLE_DIALOG {
26
27
  open: boolean;
@@ -0,0 +1,4 @@
1
+ declare const useChangeRoteQuestion: () => {
2
+ changeRouteQuestion: (studentId: number) => Promise<void>;
3
+ };
4
+ export default useChangeRoteQuestion;
@@ -1,12 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FILTER_SESSION } from "../constants/types";
1
3
  declare const useUpComing: () => {
2
4
  sessionData: any;
3
5
  teacherNoteData: any;
4
6
  studentNoteData: any;
5
7
  privateNoteData: any;
6
8
  bookSession: (data: any) => Promise<void>;
7
- setFilters: any;
8
- changeFilters: (updatedFilters: any) => any;
9
- filters: any;
9
+ setFilters: import("react").Dispatch<import("react").SetStateAction<FILTER_SESSION>>;
10
+ changeFilters: (updatedFilters: any) => void;
11
+ filters: FILTER_SESSION;
10
12
  changRouteQuestion: (studentId: number) => Promise<void>;
11
13
  getAllNoteSession: (sessionId: any) => Promise<void>;
12
14
  createSessionSingleNote: (note: any, sessionResultId: any, sessionId: any) => Promise<void>;
@@ -12,5 +12,5 @@ interface Props {
12
12
  timeStartClassReflection: any;
13
13
  classFontSize: string;
14
14
  }
15
- declare const ChatClassReflection: ({ title, studentId, classFontSize }: Props) => JSX.Element;
15
+ declare const ChatClassReflection: ({ title, classFontSize, seriesChartClassReflection, optionClassReflection, widthChartClassReflection, handleChangeStartDateClassReflection, handleChangeEndDateClassReflection, timeEndClassReflection, timeStartClassReflection }: Props) => JSX.Element;
16
16
  export default ChatClassReflection;
@@ -1,6 +1,11 @@
1
1
  declare type AllowToEdit = {
2
2
  PersonalInterest: boolean;
3
3
  LearningStrategie: boolean;
4
+ StrengthAndChallenge: boolean;
5
+ AdditionalThing: boolean;
6
+ Section: boolean;
7
+ Accommodation: boolean;
8
+ GOAL: boolean;
4
9
  };
5
10
  declare const usePersonalInterest: (studentId: number) => {
6
11
  listPersonalInterest: any;
@@ -9,6 +14,7 @@ declare const usePersonalInterest: (studentId: number) => {
9
14
  updateAllowToEdit: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
15
  classFontSize: string;
11
16
  nameStudentPlan: string;
17
+ getStudentDataProfile: () => Promise<void>;
12
18
  studentData: undefined;
13
19
  };
14
20
  export default usePersonalInterest;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface Props {
3
3
  isTeacher?: boolean;
4
+ studentInfo: any;
4
5
  }
5
- declare const SummaryStrengthsAndChallenges: ({ isTeacher }: Props) => JSX.Element;
6
+ declare const SummaryStrengthsAndChallenges: ({ isTeacher, studentInfo }: Props) => JSX.Element;
6
7
  export default SummaryStrengthsAndChallenges;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ThankYouCard: () => JSX.Element;
3
+ export default ThankYouCard;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { THING_TEACHER_TYPE } from "../constants/type";
3
- declare const ThingTeachersCanHelp: ({ studentId }: THING_TEACHER_TYPE) => JSX.Element;
3
+ declare const ThingTeachersCanHelp: ({ studentId, isAllowedEdit, updateAllow, studentInfo }: THING_TEACHER_TYPE) => JSX.Element;
4
4
  export default ThingTeachersCanHelp;
@@ -5,6 +5,9 @@ export interface THING_TEACHER_CAN_HELP {
5
5
  }
6
6
  export interface THING_TEACHER_TYPE {
7
7
  studentId: number;
8
+ isAllowedEdit: boolean;
9
+ updateAllow: Function;
10
+ studentInfo: any;
8
11
  }
9
12
  export interface THING_TEACHER_CAN_HELP_DIALOG {
10
13
  onClose: Function;
@@ -13,5 +13,6 @@ declare const useThingTeachersCanHelp: () => {
13
13
  isTeacher: any;
14
14
  classFontSize: string;
15
15
  nameStudent: string;
16
+ getAllow: () => Promise<void>;
16
17
  };
17
18
  export default useThingTeachersCanHelp;