mario-teacher-student-client 1.1.7 → 1.2.1

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 (37) hide show
  1. package/dist/components/QuestionTypes/LearningStrategyComponent.d.ts +1 -0
  2. package/dist/components/QuestionTypes/QuestionComponent.d.ts +1 -0
  3. package/dist/components/QuestionTypes/SliderComponent.d.ts +1 -0
  4. package/dist/components/Tabs/CustomTab.d.ts +2 -0
  5. package/dist/containers/ConductOneToOne/components/ConductTop/ConductTop.d.ts +2 -0
  6. package/dist/containers/ConductOneToOne/components/QuestionConduct.d.ts +1 -0
  7. package/dist/containers/ConferenceRubric/components/AddNoteRubric.d.ts +9 -0
  8. package/dist/containers/ConferenceRubric/components/ChoiceOptionPopup.d.ts +11 -0
  9. package/dist/containers/ConferenceRubric/components/RubricTable.d.ts +16 -0
  10. package/dist/containers/ConferenceRubric/components/StartRubric.d.ts +16 -0
  11. package/dist/containers/ConferenceRubric/configs/constants.d.ts +129 -0
  12. package/dist/containers/ConferenceRubric/configs/types.d.ts +19 -0
  13. package/dist/containers/ConferenceRubric/hooks/useAutoSaveConferenceRubric.d.ts +11 -0
  14. package/dist/containers/ConferenceRubric/hooks/useConferenceRubric.d.ts +42 -0
  15. package/dist/containers/ConferenceRubric/views/ConferenceRubric.d.ts +3 -0
  16. package/dist/containers/ConferenceRubric/views/ResultConferenceRubric.d.ts +3 -0
  17. package/dist/containers/MyConferences/components/Tabs/CustomTab.d.ts +3 -0
  18. package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +3 -0
  19. package/dist/containers/MyConferences/components/Tabs/StudentTab.d.ts +3 -0
  20. package/dist/containers/MyConferences/components/dialog/DialogRequestConferences.d.ts +8 -0
  21. package/dist/containers/MyConferences/components/dialog/StudentDetail.d.ts +4 -0
  22. package/dist/containers/MyConferences/hooks/useUpComing.d.ts +2 -0
  23. package/dist/containers/MyOneToOne/components/ScheduleMobile.d.ts +10 -0
  24. package/dist/containers/MyOneToOne/constants/types.d.ts +2 -0
  25. package/dist/containers/MyOneToOne/hooks/useUpComing.d.ts +4 -0
  26. package/dist/containers/MyStudent/constants/types.d.ts +1 -0
  27. package/dist/index.css +1169 -222
  28. package/dist/index.d.ts +4 -1
  29. package/dist/index.js +8781 -4204
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.modern.js +9052 -4478
  32. package/dist/index.modern.js.map +1 -1
  33. package/dist/services/ConferenceService.d.ts +10 -0
  34. package/dist/services/MyConferences.d.ts +15 -0
  35. package/dist/services/OneToOne.d.ts +4 -0
  36. package/dist/utils/minutesToTime.d.ts +5 -0
  37. package/package.json +2 -2
@@ -5,6 +5,7 @@ interface Props {
5
5
  questionId: number;
6
6
  onChangeQuestionAnswer?: Function;
7
7
  valueText: string;
8
+ isResultPage?: boolean;
8
9
  }
9
10
  declare const LearningStrategyComponent: FC<Props>;
10
11
  export default LearningStrategyComponent;
@@ -11,6 +11,7 @@ interface Props {
11
11
  valueText: string;
12
12
  averageOtherRating?: number;
13
13
  isBeforeSession: boolean;
14
+ isPageResult?: boolean;
14
15
  }
15
16
  declare const QuestionComponent: FC<Props>;
16
17
  export default QuestionComponent;
@@ -7,6 +7,7 @@ interface Props {
7
7
  onChangeQuestionAnswer?: (questionId: number, value: string) => void;
8
8
  averageOtherRating?: number;
9
9
  isBeforeSession: boolean;
10
+ isPageResult?: boolean;
10
11
  }
11
12
  declare const SliderComponent: FC<Props>;
12
13
  export default SliderComponent;
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { SIMPLE_DIALOG } from "../../containers/MyOneToOne/constants/types";
3
+ export declare const SimpleDialog: (props: SIMPLE_DIALOG) => JSX.Element;
2
4
  declare const CustomTabs: (props: any) => JSX.Element;
3
5
  export default CustomTabs;
@@ -5,6 +5,8 @@ interface Props {
5
5
  isResultSession?: boolean;
6
6
  lengthSession?: string;
7
7
  startTime?: string;
8
+ createdByTeacher?: boolean;
9
+ gradeLevel?: number;
8
10
  }
9
11
  export interface DialogDetailProps {
10
12
  nameDetail: string;
@@ -3,6 +3,7 @@ interface Props {
3
3
  questionName?: string;
4
4
  questionList: any;
5
5
  onChangeQuestionAnswer?: (questionId: number, value: string) => void;
6
+ isPageResult?: boolean;
6
7
  }
7
8
  declare const QuestionConduct: FC<Props>;
8
9
  export default QuestionConduct;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ rowId: number;
4
+ addNoteRubric: Function;
5
+ itemId: number;
6
+ oldNote: string;
7
+ }
8
+ declare const AddNoteRubric: FC<Props>;
9
+ export default AddNoteRubric;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { COLUMN, ROW } from "../configs/constants";
3
+ interface Props {
4
+ isTeacherMode?: boolean;
5
+ choiceAnswerRubric: Function;
6
+ row: ROW;
7
+ column: COLUMN;
8
+ itemId: number;
9
+ }
10
+ declare const ChoiceOptionPopup: FC<Props>;
11
+ export default ChoiceOptionPopup;
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ import { CONFERENCE_RUBRIC_ANSWER_TYPES } from "../configs/constants";
3
+ interface Props {
4
+ rubric: any;
5
+ answerConferenceRubric?: CONFERENCE_RUBRIC_ANSWER_TYPES;
6
+ setAnswerConferenceRubric?: Function;
7
+ colIndex?: any;
8
+ choiceAnswerRubric: Function;
9
+ addNoteRubric: Function;
10
+ answerTeacherConferenceRubric: any;
11
+ answerStudentConferenceRubric: any;
12
+ imageTeacher: string;
13
+ imageStudent: string;
14
+ }
15
+ declare const RubricTable: FC<Props>;
16
+ export default RubricTable;
@@ -0,0 +1,16 @@
1
+ import { FC } from "react";
2
+ import { CONFERENCE_RUBRIC_ANSWER_TYPES, CONFERENCE_RUBRIC_TYPES } from "../configs/constants";
3
+ interface Props {
4
+ rubric: CONFERENCE_RUBRIC_TYPES;
5
+ answerConferenceRubric: CONFERENCE_RUBRIC_ANSWER_TYPES;
6
+ setAnswerConferenceRubric?: any;
7
+ colIndex?: string[];
8
+ choiceAnswerRubric: Function;
9
+ addNoteRubric: Function;
10
+ answerTeacherConferenceRubric: any;
11
+ answerStudentConferenceRubric: any;
12
+ imageTeacher: string;
13
+ imageStudent: string;
14
+ }
15
+ declare const StartRubric: FC<Props>;
16
+ export default StartRubric;
@@ -0,0 +1,129 @@
1
+ export declare const QUESTION_TYPES: {
2
+ SUMMARIZE: string;
3
+ LEARNING_STRATEGY: string;
4
+ EMOTIONAL: string;
5
+ RATING: string;
6
+ };
7
+ export declare enum ConferenceStatus {
8
+ Done = "Done",
9
+ InProgress = "Inprogress"
10
+ }
11
+ export declare type QuestionTypes = {
12
+ id?: number;
13
+ text?: string;
14
+ type?: string;
15
+ answers?: [];
16
+ };
17
+ export declare type AnswerTypes = {
18
+ questionId: number;
19
+ text: string;
20
+ };
21
+ export declare type SKILL = {
22
+ id: number;
23
+ name: string;
24
+ };
25
+ export declare type COLUMN = {
26
+ id: number;
27
+ order: string;
28
+ text: string;
29
+ };
30
+ export declare type ROW = {
31
+ id: number;
32
+ text: string;
33
+ };
34
+ export declare type QUESTION = {
35
+ id: number;
36
+ text: string;
37
+ };
38
+ export declare enum RubricItemColumnOrder {
39
+ Default = "Default",
40
+ Order1 = "Order1",
41
+ Order2 = "Order2",
42
+ Order3 = "Order3",
43
+ Order4 = "Order4",
44
+ Order5 = "Order5",
45
+ Order6 = "Order6"
46
+ }
47
+ export declare type CONFERENCE_RUBRIC_ITEMS_TYPES = {
48
+ id: number;
49
+ skillId: number;
50
+ skill: SKILL;
51
+ columns: COLUMN[];
52
+ rows: ROW[];
53
+ };
54
+ export declare enum STATUS_ANSWER {
55
+ NotYet = "NotYet",
56
+ Inprogress = "Inprogress",
57
+ Done = "Done"
58
+ }
59
+ export declare type CONFERENCE_RUBRIC_TYPES = {
60
+ sessionId: number;
61
+ id: number;
62
+ name: string;
63
+ instruction: string;
64
+ studentId: number;
65
+ teacherId: number;
66
+ teacherName: string;
67
+ studentName: string;
68
+ teacherResultId: number;
69
+ studentResultId: number;
70
+ conferenceRubricStudentStatus: STATUS_ANSWER;
71
+ conferenceRubricTeacherStatus: STATUS_ANSWER;
72
+ conferenceRubricItems: CONFERENCE_RUBRIC_ITEMS_TYPES[];
73
+ questions: QUESTION[];
74
+ startTime: string;
75
+ };
76
+ export declare const initialConferenceRubric: {
77
+ sessionId: number;
78
+ id: number;
79
+ name: string;
80
+ instruction: string;
81
+ studentId: number;
82
+ teacherId: number;
83
+ teacherName: string;
84
+ studentName: string;
85
+ teacherResultId: number;
86
+ studentResultId: number;
87
+ conferenceRubricItems: never[];
88
+ questions: never[];
89
+ startTime: string;
90
+ conferenceRubricStudentStatus: STATUS_ANSWER;
91
+ conferenceRubricTeacherStatus: STATUS_ANSWER;
92
+ };
93
+ export declare type QUESTIONS_RESPONSE = {
94
+ id?: number;
95
+ questionId: number;
96
+ text: string;
97
+ };
98
+ export declare type ROW_ANSWER = {
99
+ id?: number;
100
+ rowId: number;
101
+ choice?: string;
102
+ finalChoice?: string;
103
+ note?: string;
104
+ };
105
+ export declare type CONFERENCE_RUBRIC_ITEM_ANSWER = {
106
+ id?: number;
107
+ itemId: number;
108
+ rowAnswers: ROW_ANSWER[];
109
+ assessment: string;
110
+ finalAssessment: string;
111
+ };
112
+ export declare type CONFERENCE_RUBRIC_ANSWER_TYPES = {
113
+ id?: number;
114
+ conferenceRubricId?: number;
115
+ questionResponses?: QUESTIONS_RESPONSE[];
116
+ conferenceRubricItemAnswers: CONFERENCE_RUBRIC_ITEM_ANSWER[];
117
+ status?: STATUS_ANSWER;
118
+ };
119
+ export declare const initialAnswerConferenceRubric: {
120
+ conferenceRubricId: number;
121
+ questionResponses: never[];
122
+ conferenceRubricItemAnswers: never[];
123
+ status: STATUS_ANSWER;
124
+ };
125
+ export declare const initialResultAnswer: {
126
+ conferenceRubricItemAnswers: never[];
127
+ id: number;
128
+ questionResponses: never[];
129
+ };
@@ -0,0 +1,19 @@
1
+ export interface LearningStrategyType {
2
+ id?: number;
3
+ text: string;
4
+ description?: string;
5
+ }
6
+ export declare enum QuestionType {
7
+ Default = "Default",
8
+ SingleChoice = "SingleChoice",
9
+ MultipleChoice = "MultipleChoice",
10
+ TextInput = "TextInput",
11
+ Slider = "Slider",
12
+ ProgressBar = "ProgressBar",
13
+ StarRating = "StarRating",
14
+ TextInputWithSuggestions = "TextInputWithSuggestions",
15
+ Emotional = "Emotional",
16
+ Summarize = "Summarize",
17
+ Rating = "Rating",
18
+ LearningStrategy = "LearningStrategy"
19
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CONFERENCE_RUBRIC_ANSWER_TYPES, CONFERENCE_RUBRIC_ITEM_ANSWER, QUESTIONS_RESPONSE, ROW_ANSWER } from "../configs/constants";
3
+ declare const useAutoSaveConferenceRubric: () => {
4
+ startRubric: (sessionResultId: number) => Promise<void>;
5
+ answerConferenceRubric: CONFERENCE_RUBRIC_ANSWER_TYPES;
6
+ setAnswerConferenceRubric: import("react").Dispatch<import("react").SetStateAction<CONFERENCE_RUBRIC_ANSWER_TYPES>>;
7
+ autoUpdateItemAnswer: (itemAnswerId: number, itemAnswer: CONFERENCE_RUBRIC_ITEM_ANSWER) => Promise<void>;
8
+ autoUpdateRowAnswer: (rowAnswerId: number, rowAnswer: ROW_ANSWER) => Promise<void>;
9
+ timeOutSaveQuestion: (questionAnswerId: number, questionAnswer: QUESTIONS_RESPONSE) => void;
10
+ };
11
+ export default useAutoSaveConferenceRubric;
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ import { CONFERENCE_RUBRIC_ANSWER_TYPES, CONFERENCE_RUBRIC_ITEM_ANSWER, CONFERENCE_RUBRIC_TYPES, RubricItemColumnOrder, STATUS_ANSWER } from "../configs/constants";
3
+ declare const useConferenceRubric: () => {
4
+ initialAnswerConferenceRubric: {
5
+ conferenceRubricId: number;
6
+ questionResponses: never[];
7
+ conferenceRubricItemAnswers: never[];
8
+ status: STATUS_ANSWER;
9
+ };
10
+ answerConferenceRubric: CONFERENCE_RUBRIC_ANSWER_TYPES;
11
+ setAnswerConferenceRubric: import("react").Dispatch<import("react").SetStateAction<CONFERENCE_RUBRIC_ANSWER_TYPES>>;
12
+ colIndex: RubricItemColumnOrder[];
13
+ choiceAnswerRubric: (itemId: number, rowId: number, orderColumn: string, isChoiceAgreement?: boolean | undefined) => void;
14
+ addNoteRubric: (itemId: number, note: string) => Promise<void>;
15
+ answerAdditionalQuestion: (questionId: number, text: string) => void;
16
+ answerRubric: () => Promise<void>;
17
+ choiceAssessment: (itemId: number, isFinal: boolean, assessment: string) => void;
18
+ findItemAnswerById: (itemId: number, isResult: boolean) => CONFERENCE_RUBRIC_ITEM_ANSWER | null | undefined;
19
+ checkAnswerFull: boolean;
20
+ conferenceRubric: CONFERENCE_RUBRIC_TYPES;
21
+ isTeacherModeRubric: boolean | null;
22
+ teacherName: string;
23
+ studentName: string;
24
+ dateStartSession: string;
25
+ isTeacher: any;
26
+ isStudent: any;
27
+ isUnlocked: boolean;
28
+ setIsUnclocked: import("react").Dispatch<import("react").SetStateAction<boolean>>;
29
+ onChangeToogleAfterSession: () => Promise<void>;
30
+ updateQuestionAnswer: (questionId: number, text: string) => void;
31
+ listQuestionConferenceAnswer: any;
32
+ answerTeacherConferenceRubric: any;
33
+ answerStudentConferenceRubric: any;
34
+ informationUser: any;
35
+ conferenceId: string;
36
+ conferenceResult: any;
37
+ setLength: import("react").Dispatch<import("react").SetStateAction<number>>;
38
+ length: number;
39
+ finishConferenceRubric: (conferenceAnswerId: number, cb: any) => Promise<void>;
40
+ studentId: string;
41
+ };
42
+ export default useConferenceRubric;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ConferenceRubric: FC;
3
+ export default ConferenceRubric;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ResultConferenceRubric: FC;
3
+ export default ResultConferenceRubric;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabs: (props: any) => JSX.Element;
3
+ export default CustomTabs;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabNote: (props: any) => JSX.Element;
3
+ export default CustomTabNote;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentTabs: (props: any) => JSX.Element;
3
+ export default StudentTabs;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ studentId?: number;
4
+ setStudentId?: Function;
5
+ onClickStartQuestion?: Function;
6
+ }
7
+ declare const DialogRequestConferences: ({ setStudentId }: Props) => JSX.Element;
8
+ export default DialogRequestConferences;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DialogDetailProps } from "../../../ConductOneToOne/components/ConductTop/ConductTop";
3
+ declare const StudentDetail: (props: DialogDetailProps) => JSX.Element;
4
+ export default StudentDetail;
@@ -3,9 +3,11 @@ import { FILTER_SESSION } from "../constants/types";
3
3
  declare const useUpComing: () => {
4
4
  studentData: any;
5
5
  sessionData: any;
6
+ studentProf: any;
6
7
  teacherNoteData: any;
7
8
  studentNoteData: any;
8
9
  privateNoteData: any;
10
+ getStudentProfilesSelector: (id: any) => Promise<void>;
9
11
  bookSession: (data: any) => Promise<void>;
10
12
  setFilters: import("react").Dispatch<import("react").SetStateAction<FILTER_SESSION>>;
11
13
  changeFilters: (updatedFilters: any) => void;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
3
+ interface Props {
4
+ studentUserId: string;
5
+ date: MaterialUiPickersDate;
6
+ teacherUserId?: string;
7
+ isStudentSchedule: boolean;
8
+ }
9
+ declare const ScheduleMobile: FC<Props>;
10
+ export default ScheduleMobile;
@@ -10,6 +10,8 @@ export interface SESSION_TYPE {
10
10
  isCreatedByTeacher?: boolean;
11
11
  isFavourite: boolean;
12
12
  isTeacherFavourite: boolean;
13
+ isTeacherDone?: boolean;
14
+ teacherName: string;
13
15
  }
14
16
  export interface STUDENT_PROFILE {
15
17
  id: number;
@@ -19,5 +19,9 @@ declare const useUpComing: () => {
19
19
  deleteNote: (noteId: any, sessionId: any) => Promise<void>;
20
20
  updatePrivateNote: (privateNote: any, sessionId: any) => Promise<void>;
21
21
  nextSession: any;
22
+ createConferenceSingleNote: (note: any, conferenceAnswerId: any, conferenceId: any) => Promise<void>;
23
+ getAllNoteConference: (sessionId: any) => Promise<void>;
24
+ updateConferenceRubricPrivateNote: (privateNote: any, conferenceId: any) => Promise<void>;
25
+ deleteNoteConference: (noteId: any, sessionId: any) => Promise<void>;
22
26
  };
23
27
  export default useUpComing;
@@ -21,6 +21,7 @@ export interface CLASS_REFLECTION {
21
21
  classType: string;
22
22
  status: string;
23
23
  teacherName: string;
24
+ isDone: string;
24
25
  }
25
26
  export interface QuestionAnswer {
26
27
  id: number;