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.
- package/dist/components/Card/CardSwitch.d.ts +2 -1
- package/dist/components/Header/HeaderComponent.d.ts +1 -0
- package/dist/components/Header/HeaderLearningPlan.d.ts +1 -0
- package/dist/containers/AboutMyLearning/components/AboutMyLearning.d.ts +1 -1
- package/dist/containers/AboutMyLearning/hook/useAboutMyLearning.d.ts +1 -0
- package/dist/containers/Accommodation/components/Accomondation.d.ts +1 -1
- package/dist/containers/Accommodation/hook/useAccommodation.d.ts +1 -0
- package/dist/containers/ExternalReflection/components/InformationUser.d.ts +8 -0
- package/dist/containers/ExternalReflection/components/QuestionComponent.d.ts +22 -0
- package/dist/containers/ExternalReflection/components/SliderExternalComponent.d.ts +16 -0
- package/dist/containers/ExternalReflection/constants/types.d.ts +114 -0
- package/dist/containers/ExternalReflection/hooks/useStartReflection.d.ts +20 -0
- package/dist/containers/ExternalReflection/views/ExternalReflection.d.ts +3 -0
- package/dist/containers/Goals/components/Goals.d.ts +6 -1
- package/dist/containers/Goals/hook/useGoals.d.ts +1 -0
- package/dist/containers/MyClassReflection/components/ExternalClassReflection.d.ts +3 -0
- package/dist/containers/MyClassReflection/components/tabs/ClassReflectionTab.d.ts +3 -0
- package/dist/containers/MyClassReflection/constants/types.d.ts +3 -1
- package/dist/containers/MyClassReflection/hooks/useExternalClassReflection.d.ts +11 -0
- package/dist/containers/MyClassReflection/views/TeacherClassReflection.d.ts +3 -0
- package/dist/containers/MyConferences/hooks/useChangeRouteQuestion.d.ts +4 -0
- package/dist/containers/MyOneToOne/constants/types.d.ts +1 -0
- package/dist/containers/MyOneToOne/hooks/useChangeRoteQuestion.d.ts +4 -0
- package/dist/containers/MyOneToOne/hooks/useUpComing.d.ts +5 -3
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/ChatClassReflection.d.ts +1 -1
- package/dist/containers/PersonalLearningPlan/components/PersonalLearningGoal/usePersonalInterest.d.ts +6 -0
- package/dist/containers/StrengthsAndChallenges/views/SummaryStrengthsAndChallenges.d.ts +2 -1
- package/dist/containers/ThankYouCard/views/ThankYouCard.d.ts +3 -0
- package/dist/containers/ThingTeachersCanHelp/components/ThingTeachersCanHelp.d.ts +1 -1
- package/dist/containers/ThingTeachersCanHelp/constants/type.d.ts +3 -0
- package/dist/containers/ThingTeachersCanHelp/hook/useThingTeachersCanHelp.d.ts +1 -0
- package/dist/index.css +277 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +5430 -3180
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5387 -3140
- package/dist/index.modern.js.map +1 -1
- package/dist/services/ExternalClassReflection.d.ts +2 -0
- package/dist/services/MyStudent.d.ts +4 -0
- package/dist/utils/formatDate.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components/Tabs/CustomTabNote.d.ts +0 -3
- package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +0 -3
- package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +0 -3
- 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;
|
|
@@ -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;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -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:
|
|
8
|
-
changeFilters: (updatedFilters: any) =>
|
|
9
|
-
filters:
|
|
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,
|
|
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;
|
|
@@ -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;
|