mario-teacher-student-client 1.3.0 → 1.3.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 (29) 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/components/Button/NodeDraggable.d.ts +1 -1
  17. package/dist/containers/MyStudent/components/InformationUser.d.ts +1 -2
  18. package/dist/containers/MyStudent/constants/types.d.ts +2 -0
  19. package/dist/index.css +49 -25
  20. package/dist/index.js +222 -122
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.modern.js +222 -122
  23. package/dist/index.modern.js.map +1 -1
  24. package/package.json +97 -97
  25. package/dist/containers/ConductOneToOne/components/SessionResultNote.d.ts +0 -3
  26. package/dist/containers/MyConferences/components/BookSession.d.ts +0 -3
  27. package/dist/containers/MyConferences/components/DialogRequestOneToOne.d.ts +0 -3
  28. package/dist/containers/MyConferences/components/dialog/DialogRequestOneToOne.d.ts +0 -8
  29. 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>>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare function NodeDraggable(): JSX.Element;
2
+ declare function NodeDraggable(props: any): JSX.Element;
3
3
  export default NodeDraggable;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface Props {
3
3
  informationUser: any;
4
- clickOpenProfileDialog?: any;
5
4
  }
6
- declare const InformationUser: ({ informationUser, clickOpenProfileDialog }: Props) => JSX.Element;
5
+ declare const InformationUser: ({ informationUser }: Props) => JSX.Element;
7
6
  export default InformationUser;
@@ -52,6 +52,8 @@ export interface CLASS_REFLECTION {
52
52
  teacherName: string;
53
53
  isDone: string;
54
54
  classImpactScore?: string;
55
+ studentAvatar?: string;
56
+ teacherAvatar?: string;
55
57
  }
56
58
  export interface QuestionAnswer {
57
59
  id: number;
package/dist/index.css CHANGED
@@ -58,13 +58,14 @@
58
58
  flex-direction: row;
59
59
  align-items: center; }
60
60
  ._1bTW5 ._1gs0Z {
61
- font-size: 16px;
61
+ font-size: 14px;
62
62
  font-weight: bold;
63
+ line-height: 40px;
63
64
  margin-bottom: 0px;
64
65
  width: 5%; }
65
66
  @media (max-width: 767px) {
66
67
  ._1bTW5 ._1gs0Z {
67
- width: 18%;
68
+ width: 30%;
68
69
  padding-top: 0; } }
69
70
 
70
71
  h2._13S5D {
@@ -74,7 +75,7 @@ h2._13S5D {
74
75
 
75
76
  ._t-JhH p:nth-child(1) {
76
77
  color: #2d3748;
77
- font-size: 18px;
78
+ font-size: 14px;
78
79
  font-weight: bold; }
79
80
 
80
81
  ._t-JhH p:nth-child(2) {
@@ -88,14 +89,15 @@ p._1YLGi {
88
89
  ._2gqE- {
89
90
  display: flex;
90
91
  align-items: center;
91
- margin-bottom: 20px;
92
- flex-wrap: wrap; }
92
+ margin-bottom: 20px; }
93
+ @media (max-width: 767px) {
94
+ ._2gqE- {
95
+ display: block; } }
93
96
  ._2gqE- ._337MJ {
94
97
  flex: 1 0 30%; }
95
98
  ._2gqE- ._k_dl- {
96
99
  display: block;
97
- width: 100%;
98
- max-width: 1000px; }
100
+ width: 100%; }
99
101
 
100
102
  ._p-cUG {
101
103
  display: flex;
@@ -426,9 +428,9 @@ p._1YLGi {
426
428
  transform: translateY(-50%); }
427
429
  ._2z25F ._3grbq {
428
430
  height: 55px;
429
- padding-left: 50px;
431
+ padding-left: 42px;
430
432
  padding-right: 20px;
431
- width: 280px; }
433
+ width: 304px; }
432
434
  @media (max-width: 767px) {
433
435
  ._2z25F {
434
436
  flex: none; } }
@@ -835,7 +837,7 @@ p._1YLGi {
835
837
  ._1Tcvm ._1x-xp {
836
838
  display: flex;
837
839
  justify-content: center;
838
- align-items: center;
840
+ flex-direction: column;
839
841
  margin: 5px 0;
840
842
  width: 100%; }
841
843
  ._1Tcvm ._1x-xp ._3zyhK {
@@ -949,11 +951,11 @@ p._1YLGi {
949
951
  align-items: center; }
950
952
  ._2g648 ._37CyR {
951
953
  font-weight: 700;
952
- font-size: 24px;
954
+ font-size: 22px;
953
955
  line-height: 28px; }
954
956
  ._2g648 ._2gfkC {
955
957
  margin: 0 15px;
956
- font-size: 30px;
958
+ font-size: 23px;
957
959
  cursor: pointer; }
958
960
 
959
961
  @media (max-width: 767px) {
@@ -1033,9 +1035,9 @@ p._1YLGi {
1033
1035
  transform: translateY(-50%); }
1034
1036
  ._2QjST ._1nJp- {
1035
1037
  height: 55px;
1036
- padding-left: 50px;
1038
+ padding-left: 42px;
1037
1039
  padding-right: 20px;
1038
- width: 280px; }
1040
+ width: 304px; }
1039
1041
  @media (max-width: 767px) {
1040
1042
  ._2QjST {
1041
1043
  flex: none; } }
@@ -1076,9 +1078,7 @@ p._1YLGi {
1076
1078
  border-radius: 12px; }
1077
1079
  ._2vNRu ._FQ3hY:first-child {
1078
1080
  margin-right: 10px; }
1079
- @media (max-width: 767px) {
1080
- ._2vNRu {
1081
- padding: 0 15px 10px; }
1081
+ @media (max-width: 767px) {
1082
1082
  ._2vNRu ._FQ3hY {
1083
1083
  padding-bottom: 10px;
1084
1084
  margin-top: 20px; } }
@@ -1115,6 +1115,15 @@ p._1YLGi {
1115
1115
  ._123ug ._1D2Iu:nth-of-type(odd) {
1116
1116
  background-color: #f9f9f9; }
1117
1117
 
1118
+ ._1HdIl {
1119
+ font-size: 24px;
1120
+ font-weight: 700;
1121
+ padding: 15px;
1122
+ border-bottom: 1px solid #ebebeb; }
1123
+
1124
+ ._TwDxK {
1125
+ margin-bottom: 90px; }
1126
+
1118
1127
  ._1D2Iu {
1119
1128
  display: flex;
1120
1129
  flex-direction: row;
@@ -1180,6 +1189,7 @@ p._1YLGi {
1180
1189
  padding-top: 20px; } }
1181
1190
 
1182
1191
  ._7kjhr {
1192
+ margin-top: 5px;
1183
1193
  font-size: 15px; }
1184
1194
 
1185
1195
  ._3QPbd {
@@ -1994,23 +2004,33 @@ h2._1OAmb {
1994
2004
  ._ruFmH ._3NP_o ._3rCrx {
1995
2005
  font-size: 15px;
1996
2006
  line-height: 24px;
1997
- display: flex; }
2007
+ display: flex;
2008
+ align-items: center; }
1998
2009
  ._ruFmH ._3NP_o ._3BLm1 {
1999
2010
  font-size: 15px;
2000
2011
  line-height: 24px;
2001
2012
  overflow: hidden;
2002
2013
  white-space: nowrap;
2003
- text-overflow: ellipsis; }
2014
+ text-overflow: ellipsis;
2015
+ display: flex;
2016
+ align-items: baseline; }
2004
2017
  ._ruFmH ._3NP_o ._1pUBh {
2005
2018
  font-size: 15px;
2006
2019
  line-height: 24px;
2007
2020
  font-weight: 700;
2008
2021
  padding-left: 5px; }
2009
2022
  ._ruFmH ._3NP_o ._3BLm1 {
2010
- font-size: 15px;
2023
+ font-size: 13px;
2011
2024
  overflow: hidden;
2012
2025
  white-space: nowrap;
2013
2026
  text-overflow: ellipsis; }
2027
+ ._ruFmH ._3NP_o ._3BLm1 ._1z8mq {
2028
+ font-weight: 700;
2029
+ overflow: hidden;
2030
+ white-space: nowrap;
2031
+ text-overflow: ellipsis;
2032
+ font-size: 13px;
2033
+ margin-left: 5px; }
2014
2034
 
2015
2035
  @media (max-width: 767px) {
2016
2036
  ._1E00t {
@@ -2612,17 +2632,20 @@ h4._1gYmd {
2612
2632
 
2613
2633
  ._29Tsr p._1xpMn {
2614
2634
  color: #6b6b6b;
2615
- font-size: 14px;
2616
- font-weight: bold; }
2635
+ font-size: 12px;
2636
+ font-weight: 400;
2637
+ margin: 3px 0;
2638
+ line-height: 14.06px; }
2617
2639
  @media (max-width: 767px) {
2618
2640
  ._29Tsr p._1xpMn {
2619
2641
  margin-bottom: 0px; } }
2620
2642
 
2621
2643
  ._29Tsr h5._2J0ft {
2622
2644
  color: #2d3748;
2623
- font-weight: bold;
2645
+ font-weight: 700;
2624
2646
  text-transform: capitalize;
2625
- font-size: 15px; }
2647
+ font-size: 14px;
2648
+ line-height: 19.07px; }
2626
2649
 
2627
2650
  ._SX3F9 {
2628
2651
  margin-right: 20px; }
@@ -2686,7 +2709,8 @@ h4._1gYmd {
2686
2709
  margin-bottom: 20px; }
2687
2710
 
2688
2711
  ._1elXi {
2689
- font-size: 21px;
2712
+ font-size: 16px;
2713
+ line-height: 21.79px;
2690
2714
  font-weight: bold;
2691
2715
  padding-bottom: 15px; }
2692
2716
  ._1elXi img {