mario-teacher-student-client 1.2.8 → 1.2.9

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 (33) hide show
  1. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/EmotionComponent.d.ts +3 -0
  2. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/QuestionComponent.d.ts +3 -0
  3. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/SliderComponent.d.ts +3 -2
  4. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Tabs/CustomTabNote.d.ts +3 -0
  5. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/selector/StudentSelector.d.ts +1 -1
  6. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/QuestionConduct.d.ts +1 -0
  7. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/hooks/useConductOne.d.ts +4 -0
  8. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/BookSession.d.ts +1 -1
  9. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +1 -1
  10. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/dialog/DialogRequestOneToOne.d.ts +5 -1
  11. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/tab/Me.d.ts +3 -0
  12. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/tab/Student.d.ts +3 -0
  13. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/constants/types.d.ts +3 -1
  14. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/services/ConductOneToOne.d.ts +2 -1
  15. package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/services/OneToOne.d.ts +1 -0
  16. package/dist/containers/ConductOneToOne/components/ConductTop/ConductTop.d.ts +1 -0
  17. package/dist/containers/ConferenceRubric/components/RubricTable.d.ts +1 -0
  18. package/dist/containers/ConferenceRubric/components/StartRubric.d.ts +1 -0
  19. package/dist/containers/ConferenceRubric/hooks/useConferenceRubric.d.ts +0 -1
  20. package/dist/containers/MyConferences/constants/types.d.ts +5 -0
  21. package/dist/containers/MyOneToOne/constants/types.d.ts +1 -0
  22. package/dist/containers/MyStudent/constants/types.d.ts +1 -0
  23. package/dist/index.css +40 -27
  24. package/dist/index.js +172 -223
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.modern.js +172 -223
  27. package/dist/index.modern.js.map +1 -1
  28. package/package.json +97 -97
  29. package/dist/containers/ConductOneToOne/components/SessionResultNote.d.ts +0 -3
  30. package/dist/containers/MyConferences/components/BookSession.d.ts +0 -3
  31. package/dist/containers/MyConferences/components/DialogRequestOneToOne.d.ts +0 -3
  32. package/dist/containers/MyConferences/components/dialog/DialogRequestOneToOne.d.ts +0 -8
  33. package/dist/containers/MyOneToOne/components/SessionResultNote.d.ts +0 -3
@@ -2,6 +2,9 @@ import { FC } from "react";
2
2
  import { EmotionType } from "../../containers/ConductOneToOne/constant/types";
3
3
  interface Props {
4
4
  emotionTypeList?: EmotionType[];
5
+ onChangeSlider?: Function;
6
+ questionId: number;
7
+ valueText?: string;
5
8
  }
6
9
  declare const EmotionComponent: FC<Props>;
7
10
  export default EmotionComponent;
@@ -6,6 +6,9 @@ interface Props {
6
6
  maxText?: string;
7
7
  questionTypeId: QuestionType;
8
8
  emotionTypeList?: EmotionType[];
9
+ onChangeSlider?: (questionId: number, value: string) => void;
10
+ questionId: number;
11
+ valueText: string;
9
12
  }
10
13
  declare const QuestionComponent: FC<Props>;
11
14
  export default QuestionComponent;
@@ -2,8 +2,9 @@ import { FC } from "react";
2
2
  interface Props {
3
3
  minText?: string;
4
4
  maxText?: string;
5
- valueText: number;
6
- onChangeSlider?: (value: number) => void;
5
+ questionId: number;
6
+ valueText: string;
7
+ onChangeSlider?: (questionId: number, value: string) => void;
7
8
  }
8
9
  declare const SliderComponent: FC<Props>;
9
10
  export default SliderComponent;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabNote: () => JSX.Element;
3
+ export default CustomTabNote;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare function StudentSelector({ SelectStudent }: any): JSX.Element;
2
+ declare const StudentSelector: ({ setStudentId }: any) => JSX.Element;
3
3
  export default StudentSelector;
@@ -2,6 +2,7 @@ import { FC } from "react";
2
2
  interface Props {
3
3
  questionName?: string;
4
4
  questionList: any;
5
+ onChangeSlider?: (questionId: number, value: string) => void;
5
6
  }
6
7
  declare const QuestionConduct: FC<Props>;
7
8
  export default QuestionConduct;
@@ -1,8 +1,12 @@
1
1
  import { LearningStrategyType, LearningStrategyCategory } from "../constant/types";
2
2
  declare const useConductOne: () => {
3
+ currentUser: any;
4
+ isTeacher: any;
5
+ isStudent: any;
3
6
  listQuestionTeachers: any;
4
7
  listQuestionStudents: any;
5
8
  listLearningStrategory: LearningStrategyType[];
6
9
  listLearningStrategoryCategory: LearningStrategyCategory[];
10
+ updateQuestionAnswer: (questionId: number, text: string) => void;
7
11
  };
8
12
  export default useConductOne;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare function BookSession(): JSX.Element;
2
+ declare const BookSession: () => JSX.Element;
3
3
  export default BookSession;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare function DialogNodes(): JSX.Element;
2
+ declare const DialogNodes: () => JSX.Element;
3
3
  export default DialogNodes;
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare function DialogRequestOneToOne(): JSX.Element;
2
+ interface Props {
3
+ setStudentId?: Function;
4
+ onClickStartQuestion?: Function;
5
+ }
6
+ declare const DialogRequestOneToOne: ({ setStudentId, onClickStartQuestion }: Props) => JSX.Element;
3
7
  export default DialogRequestOneToOne;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Me: () => JSX.Element;
3
+ export default Me;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Student: () => JSX.Element;
3
+ export default Student;
@@ -21,6 +21,8 @@ export interface SIMPLE_DIALOG {
21
21
  open: boolean;
22
22
  selectedValue: string;
23
23
  onClose: (value: string) => void;
24
+ setStudentId?: Function;
25
+ onClickStartQuestion?: Function;
24
26
  }
25
27
  export interface STUDENT_SELECTOR {
26
28
  id: number;
@@ -33,7 +35,7 @@ export interface FILTER_SESSION {
33
35
  searchString: string;
34
36
  sortBy: string;
35
37
  sortOrder: string;
36
- name: string;
38
+ name?: string;
37
39
  queryTypes?: MediaType[];
38
40
  startDate?: number;
39
41
  endDate?: number;
@@ -1,4 +1,5 @@
1
1
  import { Filter } from "mario-core";
2
- export declare const getQuestionTeacherDefault: (studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any>>;
2
+ export declare const getQuestionTeacherDefault: (sessionId: number) => Promise<import("axios").AxiosResponse<any>>;
3
3
  export declare const getLearningStrategory: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
4
4
  export declare const getLearningStrategoryCategory: () => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const updateItemQuestionAnswer: (body: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -3,3 +3,4 @@ export declare const getSessionOneToOne: (filter: any) => Promise<import("axios"
3
3
  export declare const getStudent: () => Promise<import("axios").AxiosResponse<any>>;
4
4
  export declare const createSession: (data: any) => Promise<import("axios").AxiosResponse<any>>;
5
5
  export declare const getListEventTeacher: (startDate: any) => Promise<import("axios").AxiosResponse<GoogleCalendarEvent[]>>;
6
+ export declare const startSession: (studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any>>;
@@ -9,6 +9,7 @@ interface Props {
9
9
  gradeLevel?: number;
10
10
  informationUser?: any;
11
11
  clickOpenProfileDialog?: any;
12
+ isConference?: boolean;
12
13
  }
13
14
  declare const ConductTop: FC<Props>;
14
15
  export default ConductTop;
@@ -11,6 +11,7 @@ interface Props {
11
11
  answerStudentConferenceRubric: any;
12
12
  imageTeacher: string;
13
13
  imageStudent: string;
14
+ isPageResultConference?: boolean;
14
15
  }
15
16
  declare const RubricTable: FC<Props>;
16
17
  export default RubricTable;
@@ -11,6 +11,7 @@ interface Props {
11
11
  answerStudentConferenceRubric: any;
12
12
  imageTeacher: string;
13
13
  imageStudent: string;
14
+ isPageResultConference?: boolean;
14
15
  }
15
16
  declare const StartRubric: FC<Props>;
16
17
  export default StartRubric;
@@ -14,7 +14,6 @@ declare const useConferenceRubric: () => {
14
14
  addNoteRubric: (itemId: number, note: string) => Promise<void>;
15
15
  answerAdditionalQuestion: (questionId: number, text: string) => void;
16
16
  answerRubric: () => Promise<void>;
17
- choiceAssessment: (itemId: number, isFinal: boolean, assessment: string) => void;
18
17
  findItemAnswerById: (itemId: number, isResult: boolean) => CONFERENCE_RUBRIC_ITEM_ANSWER | null | undefined;
19
18
  checkAnswerFull: boolean;
20
19
  conferenceRubric: CONFERENCE_RUBRIC_TYPES;
@@ -13,6 +13,11 @@ export interface SESSION_TYPE {
13
13
  isTeacherDone?: boolean;
14
14
  teacherName: string;
15
15
  studentId?: number;
16
+ studentAvatar?: string;
17
+ teacherAvatar?: string;
18
+ studentName?: string;
19
+ gradeLevel?: number;
20
+ finalScore?: string;
16
21
  }
17
22
  export interface STUDENT_PROFILE {
18
23
  id: number;
@@ -12,6 +12,7 @@ export interface SESSION_TYPE {
12
12
  isTeacherFavourite: boolean;
13
13
  isTeacherDone?: boolean;
14
14
  teacherName: string;
15
+ teacherProfileImage: string;
15
16
  }
16
17
  export interface STUDENT_PROFILE {
17
18
  id: number;
@@ -51,6 +51,7 @@ export interface CLASS_REFLECTION {
51
51
  status: string;
52
52
  teacherName: string;
53
53
  isDone: string;
54
+ classImpactScore?: string;
54
55
  }
55
56
  export interface QuestionAnswer {
56
57
  id: number;
package/dist/index.css CHANGED
@@ -539,10 +539,12 @@ p._1YLGi {
539
539
  font-size: 20px;
540
540
  line-height: 24px;
541
541
  padding: 5px 0;
542
+ width: 80%;
542
543
  overflow: hidden;
543
- white-space: nowrap;
544
544
  text-overflow: ellipsis;
545
- width: 80%; }
545
+ display: -webkit-box;
546
+ -webkit-line-clamp: 2;
547
+ -webkit-box-orient: vertical; }
546
548
  ._oYOOf ._3KmXg ._2xzQn {
547
549
  font-weight: 600;
548
550
  font-size: 15px;
@@ -817,7 +819,8 @@ p._1YLGi {
817
819
  height: 100%; }
818
820
 
819
821
  ._3mDrv {
820
- height: 100%; }
822
+ height: 100%;
823
+ margin: 0 -20px -20px -20px; }
821
824
 
822
825
  ._23S4z {
823
826
  overflow: scroll;
@@ -953,6 +956,15 @@ p._1YLGi {
953
956
  font-size: 30px;
954
957
  cursor: pointer; }
955
958
 
959
+ @media (max-width: 767px) {
960
+ ._1svn1, ._1OjcF {
961
+ padding: 0 15px; }
962
+ ._1OjcF ._35oxu {
963
+ font-size: 12px;
964
+ font-weight: 400;
965
+ color: rgba(0, 0, 0, 0.54);
966
+ margin-left: 10px; } }
967
+
956
968
  @font-face {
957
969
  font-family: "Lato-Regular";
958
970
  src: url("/fonts/Lato-Regular.ttf");
@@ -1167,16 +1179,6 @@ p._1YLGi {
1167
1179
  ._2laTD {
1168
1180
  padding-top: 20px; } }
1169
1181
 
1170
- ._2PZMK {
1171
- background: #fed7e2;
1172
- color: #702459;
1173
- padding: 5px 8px;
1174
- margin-top: 10px;
1175
- border-radius: 70px;
1176
- width: -webkit-max-content;
1177
- width: -moz-max-content;
1178
- width: max-content; }
1179
-
1180
1182
  ._7kjhr {
1181
1183
  font-size: 15px; }
1182
1184
 
@@ -1205,15 +1207,6 @@ p._1YLGi {
1205
1207
  width: 100%;
1206
1208
  flex: 1; }
1207
1209
 
1208
- ._2PZMK {
1209
- background: #fed7e2;
1210
- color: #702459;
1211
- padding: 5px 8px;
1212
- border-radius: 70px;
1213
- width: -webkit-max-content;
1214
- width: -moz-max-content;
1215
- width: max-content; }
1216
-
1217
1210
  ._3QPbd {
1218
1211
  display: flex;
1219
1212
  flex-direction: column;
@@ -1747,6 +1740,18 @@ h2._1OAmb {
1747
1740
  height: 60px;
1748
1741
  border-radius: 50%; }
1749
1742
 
1743
+ @media (max-width: 767px) {
1744
+ ._9SOPe {
1745
+ padding: 0 15px; }
1746
+ ._9SOPe ._3Id4g {
1747
+ background-color: #308252;
1748
+ border-radius: 12px;
1749
+ margin: 15px 0 30px;
1750
+ width: 100%;
1751
+ padding: 10px 16px; }
1752
+ ._9SOPe ._3Id4g i {
1753
+ margin-left: 10px; } }
1754
+
1750
1755
  @font-face {
1751
1756
  font-family: "Lato-Regular";
1752
1757
  src: url("/fonts/Lato-Regular.ttf");
@@ -2660,14 +2665,22 @@ h4._1gYmd {
2660
2665
  margin-bottom: 20px; }
2661
2666
  ._7Fnwi ._dZCdI {
2662
2667
  background: #edf2f7;
2663
- border-radius: 10px; }
2668
+ border-radius: 12px; }
2669
+ ._7Fnwi ._dZCdI input {
2670
+ color: #000000; }
2664
2671
  ._7Fnwi ._2NjHb {
2665
2672
  background: #edf2f7;
2666
- border-radius: 10px; }
2673
+ border-radius: 12px; }
2667
2674
  ._7Fnwi ._1cAXC {
2668
2675
  cursor: pointer;
2669
2676
  margin-left: 15px; }
2670
2677
 
2678
+ ._2AnOh {
2679
+ background: #edf2f7;
2680
+ border-radius: 12px; }
2681
+ ._2AnOh input {
2682
+ color: #000000; }
2683
+
2671
2684
  ._1a24j {
2672
2685
  margin-bottom: 20px; }
2673
2686
 
@@ -3001,7 +3014,8 @@ h4._pDCgR {
3001
3014
  display: inline-block; }
3002
3015
 
3003
3016
  ._1QPtC {
3004
- padding: 0px 20px; }
3017
+ padding: 0px 20px;
3018
+ background: #f4f4f8; }
3005
3019
 
3006
3020
  ._2CRbt {
3007
3021
  display: flex;
@@ -3127,8 +3141,7 @@ h2._1KpSK {
3127
3141
  ._1WNMT ._3BU0L {
3128
3142
  display: flex;
3129
3143
  align-items: center;
3130
- margin-right: 25px;
3131
- padding: 0 20px; }
3144
+ margin-right: 25px; }
3132
3145
  ._1WNMT ._3BU0L ._1N_R5 {
3133
3146
  margin-right: 10px;
3134
3147
  margin-top: -4px; }