mario-teacher-student-client 2.1.129-admin → 2.1.131-admin
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/Button/CustomButton.d.ts +11 -0
- package/dist/components/Card/CardNameButton.d.ts +7 -0
- package/dist/components/Card/CardTotal.d.ts +7 -0
- package/dist/components/Header/CustomHeaderComponent.d.ts +16 -0
- package/dist/components/Table/ConvertTime.d.ts +6 -0
- package/dist/components/Table/TableCells.d.ts +15 -0
- package/dist/components/layouts/LanguageDropdown.d.ts +3 -0
- package/dist/components/selector/CustomFilterComponent.d.ts +19 -0
- package/dist/components/selector/CustomFilterMobile.d.ts +23 -0
- package/dist/containers/ConductSurvey/apiClient/index.d.ts +2 -0
- package/dist/containers/ConductSurvey/components/ConductTop/ConductItem.d.ts +7 -0
- package/dist/containers/ConductSurvey/components/ConductTop/SurveyTop.d.ts +14 -0
- package/dist/containers/ConductSurvey/components/HeaderSurvey.d.ts +21 -0
- package/dist/containers/ConductSurvey/components/IBLearnerComponent.d.ts +12 -0
- package/dist/containers/ConductSurvey/components/Note/Note.d.ts +6 -0
- package/dist/containers/ConductSurvey/components/Note/PrivateNote.d.ts +3 -0
- package/dist/containers/ConductSurvey/components/Note/SessionResultNote.d.ts +3 -0
- package/dist/containers/ConductSurvey/components/ProfileDialog/ProfileDialog.d.ts +7 -0
- package/dist/containers/ConductSurvey/components/QuestionConduct.d.ts +12 -0
- package/dist/containers/ConductSurvey/components/RadiaBarChart.d.ts +3 -0
- package/dist/containers/ConductSurvey/components/ShareSurveyDialog.d.ts +12 -0
- package/dist/containers/ConductSurvey/components/SimpleDialog.d.ts +3 -0
- package/dist/containers/ConductSurvey/constant/constant.d.ts +1 -0
- package/dist/containers/ConductSurvey/constant/types.d.ts +97 -0
- package/dist/containers/ConductSurvey/hooks/useConductSurvey.d.ts +29 -0
- package/dist/containers/ConductSurvey/hooks/usePreviewSurvey.d.ts +28 -0
- package/dist/containers/ConductSurvey/hooks/useProfileDialog.d.ts +5 -0
- package/dist/containers/ConductSurvey/servies/index.d.ts +2 -0
- package/dist/containers/ConductSurvey/styles/makeStyles.d.ts +1 -0
- package/dist/containers/ConductSurvey/views/PreviewSurvey.d.ts +3 -0
- package/dist/containers/ConductSurvey/views/SurveyIndex.d.ts +3 -0
- package/dist/containers/ConductSurvey/views/SurveyResult.d.ts +3 -0
- package/dist/containers/ExternalSurvey/api/externalService.d.ts +6 -0
- package/dist/containers/ExternalSurvey/components/ConductTop/ConductItem.d.ts +7 -0
- package/dist/containers/ExternalSurvey/components/ConductTop/SurveyTop.d.ts +14 -0
- package/dist/containers/ExternalSurvey/components/QuestionConduct.d.ts +13 -0
- package/dist/containers/ExternalSurvey/constant/types.d.ts +69 -0
- package/dist/containers/ExternalSurvey/hooks/useExternalSurvey.d.ts +18 -0
- package/dist/containers/ExternalSurvey/views/ExternalSurvey.d.ts +3 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useLearningStrategies.d.ts +0 -2
- package/dist/containers/MyStudent/hooks/useOverview.d.ts +0 -2
- package/dist/containers/PLP/hooks/usePlpPage.d.ts +0 -2
- package/dist/containers/Surveys/apiClient/surveyService.d.ts +15 -0
- package/dist/containers/Surveys/components/ActionNeededSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/AllStudentSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/CardItemMobile/CardSurveyMobile.d.ts +4 -0
- package/dist/containers/Surveys/components/CompletedStudentSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/CreateSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/ExternalSurveyList.d.ts +3 -0
- package/dist/containers/Surveys/components/ListSurveyDetail.d.ts +3 -0
- package/dist/containers/Surveys/components/ListSurveys.d.ts +3 -0
- package/dist/containers/Surveys/components/MissedStudentSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/PendingStudentSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/PendingSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/Questions/AdditionalQuestionModel.d.ts +4 -0
- package/dist/containers/Surveys/components/RepliedSurvey.d.ts +3 -0
- package/dist/containers/Surveys/components/StepComponents/ConfirmPublishSurvey.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/ConfirmShareSurvey.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/CreateSurveyComponent.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/ListFavoriteSurvey.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/ModelSelectQuestion.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/ModelSelectSurveyTemplate.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/ModelSendSurvey.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/ReviewSurveyDetail.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/TableSelectStudent.d.ts +4 -0
- package/dist/containers/Surveys/constants/constant.d.ts +65 -0
- package/dist/containers/Surveys/constants/questionModelType.d.ts +27 -0
- package/dist/containers/Surveys/constants/tableColumn.d.ts +110 -0
- package/dist/containers/Surveys/constants/typeCardItem.d.ts +16 -0
- package/dist/containers/Surveys/constants/types.d.ts +308 -0
- package/dist/containers/Surveys/hook/useAdditionalQuestion.d.ts +24 -0
- package/dist/containers/Surveys/hook/useCreateSurvey.d.ts +77 -0
- package/dist/containers/Surveys/hook/useExternalSurvey.d.ts +21 -0
- package/dist/containers/Surveys/hook/useExternalSurveyList.d.ts +11 -0
- package/dist/containers/Surveys/hook/useFormCreateSurvey.d.ts +14 -0
- package/dist/containers/Surveys/hook/useListFavoriteSurvey.d.ts +10 -0
- package/dist/containers/Surveys/hook/useListSurvey.d.ts +28 -0
- package/dist/containers/Surveys/hook/useListSurveyDetail.d.ts +20 -0
- package/dist/containers/Surveys/hook/useSelectQuestion.d.ts +26 -0
- package/dist/containers/Surveys/hook/useSelectStudent.d.ts +15 -0
- package/dist/containers/Surveys/hook/useStudentSurvey.d.ts +16 -0
- package/dist/containers/Surveys/hook/useSurveyDetail.d.ts +10 -0
- package/dist/containers/Surveys/hook/useSurveyViewStudent.d.ts +4 -0
- package/dist/containers/Surveys/styles/makeStyles.d.ts +3 -0
- package/dist/containers/Surveys/views/SurveyDetail.d.ts +3 -0
- package/dist/containers/Surveys/views/SurveyStudentList.d.ts +3 -0
- package/dist/index.js +520 -396
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +517 -393
- package/dist/index.modern.js.map +1 -1
- package/dist/services/SurveyService.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, HTMLProps } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
color?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
handleClickOpen?: Function;
|
|
7
|
+
fontSize?: string;
|
|
8
|
+
icon?: HTMLProps<HTMLButtonElement>;
|
|
9
|
+
}
|
|
10
|
+
declare const CustomButton: FC<Props>;
|
|
11
|
+
export default CustomButton;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface headerProps {
|
|
3
|
+
title: string;
|
|
4
|
+
contentButton?: string;
|
|
5
|
+
status?: string;
|
|
6
|
+
iconButton?: any;
|
|
7
|
+
isGoback?: boolean;
|
|
8
|
+
isGreyBackground?: boolean;
|
|
9
|
+
handleChangePage?: Function;
|
|
10
|
+
handlePreview?: Function;
|
|
11
|
+
isDisableButton?: boolean;
|
|
12
|
+
isPreviewSurvey?: boolean;
|
|
13
|
+
onHandleGoBack?: Function;
|
|
14
|
+
}
|
|
15
|
+
declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack }: headerProps) => JSX.Element;
|
|
16
|
+
export default CustomHeaderComponent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FILTER_SURVEY } from "../../containers/Surveys/constants/types";
|
|
3
|
+
interface TABLE_CELL {
|
|
4
|
+
name: string;
|
|
5
|
+
tableWidth: number;
|
|
6
|
+
sortName: string | null;
|
|
7
|
+
align: any;
|
|
8
|
+
}
|
|
9
|
+
interface PROPS_TABLE {
|
|
10
|
+
listTableCell: TABLE_CELL[];
|
|
11
|
+
filters: FILTER_SURVEY;
|
|
12
|
+
handleSort?: Function;
|
|
13
|
+
}
|
|
14
|
+
declare const TableCells: ({ listTableCell, filters, handleSort }: PROPS_TABLE) => JSX.Element;
|
|
15
|
+
export default TableCells;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FILTER {
|
|
3
|
+
startDate?: number | null;
|
|
4
|
+
endDate?: number | null;
|
|
5
|
+
isFavorite?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface PROPS_FILTER {
|
|
8
|
+
filters?: FILTER;
|
|
9
|
+
handleChangeStartDate?: Function;
|
|
10
|
+
handleChangeEndDate?: Function;
|
|
11
|
+
handleChangeInputSearch: Function;
|
|
12
|
+
inputSearch: any;
|
|
13
|
+
isShowSelectRight?: boolean;
|
|
14
|
+
handleChangeStatus?: Function;
|
|
15
|
+
placeholderSearch?: string;
|
|
16
|
+
handleSelectFavorite?: Function;
|
|
17
|
+
}
|
|
18
|
+
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite }: PROPS_FILTER) => JSX.Element;
|
|
19
|
+
export default CustomFilterComponent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FILTER {
|
|
3
|
+
startDate?: number | null;
|
|
4
|
+
endDate?: number | null;
|
|
5
|
+
isFavorite?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface PROPS_FILTER {
|
|
8
|
+
filters?: FILTER;
|
|
9
|
+
handleChangeStartDate?: Function;
|
|
10
|
+
handleChangeEndDate?: Function;
|
|
11
|
+
handleChangeInputSearch: Function;
|
|
12
|
+
inputSearch: any;
|
|
13
|
+
isShowSelectRight?: boolean;
|
|
14
|
+
handleChangeStatus?: Function;
|
|
15
|
+
placeholderSearch?: string;
|
|
16
|
+
handleSelectFavorite?: Function;
|
|
17
|
+
onShowFilter?: Function;
|
|
18
|
+
isShowFilter?: boolean;
|
|
19
|
+
isShowCalendar?: boolean;
|
|
20
|
+
onShowFilterCalendar?: Function;
|
|
21
|
+
}
|
|
22
|
+
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar }: PROPS_FILTER) => JSX.Element;
|
|
23
|
+
export default CustomFilterMobile;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
name: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
isResultSurvey?: boolean;
|
|
6
|
+
startTime?: string;
|
|
7
|
+
gradeLevel?: string;
|
|
8
|
+
informationUser?: any;
|
|
9
|
+
clickOpenProfileDialog?: any;
|
|
10
|
+
classFontSize?: string;
|
|
11
|
+
dayLeft?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const SurveyTop: FC<Props>;
|
|
14
|
+
export default SurveyTop;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare enum TypeTime {
|
|
3
|
+
Default = 0,
|
|
4
|
+
StartTime = 1,
|
|
5
|
+
StopTime = 2
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
text: string;
|
|
9
|
+
isShowButtonBackGround?: boolean;
|
|
10
|
+
onFinishSession?: Function;
|
|
11
|
+
goBack?: Function;
|
|
12
|
+
isShowButtonPageHeader?: boolean;
|
|
13
|
+
isTeacher?: boolean;
|
|
14
|
+
isUserChangeSession?: boolean;
|
|
15
|
+
isGoback?: boolean;
|
|
16
|
+
isShowButtonScheduleBackGround?: boolean;
|
|
17
|
+
onScheduleButton?: Function;
|
|
18
|
+
isDone?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const HeaderSurvey: FC<Props>;
|
|
21
|
+
export default HeaderSurvey;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { LearningStrategyType } from "../constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
listLearningStrategory: LearningStrategyType[];
|
|
5
|
+
questionId?: number;
|
|
6
|
+
onChangeQuestionAnswer?: Function;
|
|
7
|
+
valueText?: string;
|
|
8
|
+
isResultPage?: boolean;
|
|
9
|
+
isUserChangeConference?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const IBLearnerComponent: FC<Props>;
|
|
12
|
+
export default IBLearnerComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
questionName?: string;
|
|
4
|
+
questionList: any;
|
|
5
|
+
onChangeQuestionAnswer?: (questionId: number, value: string) => void;
|
|
6
|
+
isPageResult?: boolean;
|
|
7
|
+
isPageSessionResult?: boolean;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
isUserChangeSession?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const QuestionConduct: FC<Props>;
|
|
12
|
+
export default QuestionConduct;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DATA_FORM_EMAIL } from "../constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
open: boolean;
|
|
5
|
+
handleClose: Function;
|
|
6
|
+
handleShareSurvey: Function;
|
|
7
|
+
listTeacher: string[];
|
|
8
|
+
dataFormEmail?: DATA_FORM_EMAIL;
|
|
9
|
+
setDataFormEmail: Function;
|
|
10
|
+
}
|
|
11
|
+
declare const ShareSurveyDialog: ({ open, handleClose, handleShareSurvey, listTeacher, dataFormEmail, setDataFormEmail }: Props) => JSX.Element;
|
|
12
|
+
export default ShareSurveyDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TAB_PANEL: string[];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export interface ItemConduct {
|
|
2
|
+
color: string;
|
|
3
|
+
label: string;
|
|
4
|
+
backgroundColor: 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
|
+
}
|
|
20
|
+
export declare enum TypeTime {
|
|
21
|
+
Default = 0,
|
|
22
|
+
StartTime = 1,
|
|
23
|
+
StopTime = 2
|
|
24
|
+
}
|
|
25
|
+
export interface LearningStrategyType {
|
|
26
|
+
id?: number;
|
|
27
|
+
text: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface EmotionType {
|
|
31
|
+
id?: number;
|
|
32
|
+
text: string;
|
|
33
|
+
emotionalText: string;
|
|
34
|
+
}
|
|
35
|
+
export interface LearningStrategyCategory {
|
|
36
|
+
id?: number;
|
|
37
|
+
name: string;
|
|
38
|
+
color: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const IBProfile: {
|
|
41
|
+
id: number;
|
|
42
|
+
text: string;
|
|
43
|
+
}[];
|
|
44
|
+
export interface QuestionSummarizeType {
|
|
45
|
+
answer: string;
|
|
46
|
+
text: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
49
|
+
export interface IAdditionalQuestion {
|
|
50
|
+
questionId?: number;
|
|
51
|
+
questionText?: string;
|
|
52
|
+
type?: string;
|
|
53
|
+
answers?: IAnswer[];
|
|
54
|
+
answer?: IAnswer[];
|
|
55
|
+
averageOtherRatings?: number;
|
|
56
|
+
fromLabel?: string;
|
|
57
|
+
questionAnswer?: string[];
|
|
58
|
+
toLabel?: string;
|
|
59
|
+
text: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface IAnswer {
|
|
63
|
+
text: string;
|
|
64
|
+
}
|
|
65
|
+
export interface IQuestionTemplate {
|
|
66
|
+
questionId?: number;
|
|
67
|
+
questionText: string;
|
|
68
|
+
type: string;
|
|
69
|
+
answers: IAnswer[];
|
|
70
|
+
questionAnswer: string[];
|
|
71
|
+
fromLabel: string;
|
|
72
|
+
toLabel: string;
|
|
73
|
+
}
|
|
74
|
+
export interface ITemplate {
|
|
75
|
+
id: number;
|
|
76
|
+
name: string;
|
|
77
|
+
questionTemplates: IQuestionTemplate[];
|
|
78
|
+
}
|
|
79
|
+
export interface SURVEY_DETAIL {
|
|
80
|
+
deadline?: number | null;
|
|
81
|
+
title?: string;
|
|
82
|
+
studentIds?: number[];
|
|
83
|
+
isFavorite?: boolean;
|
|
84
|
+
id?: number;
|
|
85
|
+
totalQuestions?: number;
|
|
86
|
+
}
|
|
87
|
+
export interface TEACHER_DETAIL {
|
|
88
|
+
email: string;
|
|
89
|
+
name: string;
|
|
90
|
+
teacherId: number;
|
|
91
|
+
userId: string;
|
|
92
|
+
}
|
|
93
|
+
export interface DATA_FORM_EMAIL {
|
|
94
|
+
emails: string[];
|
|
95
|
+
emailContent: string;
|
|
96
|
+
surveyId: number;
|
|
97
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useConductSurvey: () => {
|
|
3
|
+
currentUser: any;
|
|
4
|
+
isTeacher: any;
|
|
5
|
+
isStudent: any;
|
|
6
|
+
listQuestionTeachers: any;
|
|
7
|
+
listQuestionStudents: any;
|
|
8
|
+
updateQuestionAnswer: (questionId: number, text: string, isAdditional?: boolean | undefined) => void;
|
|
9
|
+
fnfinishSurvey: (cb: any) => Promise<void>;
|
|
10
|
+
surveyId: string;
|
|
11
|
+
studentId: string;
|
|
12
|
+
startTime: string;
|
|
13
|
+
informationUser: any;
|
|
14
|
+
category: string;
|
|
15
|
+
setCategory: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
16
|
+
classFontSize: string;
|
|
17
|
+
isStudentChangeAfter: boolean;
|
|
18
|
+
isUserChangeSession: boolean;
|
|
19
|
+
setIsUserChangeSession: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
20
|
+
listAdditionalQuestionAnswer: any;
|
|
21
|
+
questionSummarize: any;
|
|
22
|
+
setQuestionSummarize: import("react").Dispatch<any>;
|
|
23
|
+
updateAnswerIBLearner: (answer: string) => Promise<void>;
|
|
24
|
+
questionIBLearner: string;
|
|
25
|
+
setQuestionIBLearner: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
26
|
+
isSchedule: boolean;
|
|
27
|
+
isDone: boolean;
|
|
28
|
+
};
|
|
29
|
+
export default useConductSurvey;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DATA_FORM_EMAIL, IAdditionalQuestion, ITemplate, QuestionSummarizeType, SURVEY_DETAIL } from "../constant/types";
|
|
3
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
4
|
+
declare const usePreviewSurvey: () => {
|
|
5
|
+
currentUser: any;
|
|
6
|
+
isTeacher: any;
|
|
7
|
+
isStudent: any;
|
|
8
|
+
category: string;
|
|
9
|
+
setCategory: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
10
|
+
classFontSize: string;
|
|
11
|
+
questionSummarize: QuestionSummarizeType | null;
|
|
12
|
+
activeTab: string;
|
|
13
|
+
handleChange: (_event: React.ChangeEvent<{}>, newValue: string) => void;
|
|
14
|
+
surveyId: string;
|
|
15
|
+
surveyDetail: SURVEY_DETAIL;
|
|
16
|
+
handleChangeDeadline: (date: MaterialUiPickersDate | null) => void;
|
|
17
|
+
duplicateSurvey: () => void;
|
|
18
|
+
handleShareSurvey: () => Promise<void>;
|
|
19
|
+
openDialogShareSurvey: boolean;
|
|
20
|
+
handleToggleModelSurvey: () => void;
|
|
21
|
+
listTeacher: string[];
|
|
22
|
+
dataFormEmail: DATA_FORM_EMAIL | undefined;
|
|
23
|
+
setDataFormEmail: import("react").Dispatch<import("react").SetStateAction<DATA_FORM_EMAIL | undefined>>;
|
|
24
|
+
listQuestionTemplate: ITemplate[];
|
|
25
|
+
listAdditionalQuestion: IAdditionalQuestion[];
|
|
26
|
+
handleCreateSurvey: () => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
export default usePreviewSurvey;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => Record<"body" | "title" | "tabs" | "tabLabel" | "tabLabelActive" | "tabLabelActiveWhite", string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BODY_TYPE_EXTERNAL } from "../constant/types";
|
|
2
|
+
export declare const shareSurvey: (data: any) => void;
|
|
3
|
+
export declare const getAllEduTeacher: () => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const startExternalSurvey: (body: BODY_TYPE_EXTERNAL) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const updateItemQuestionAnswer: (isAdditional: boolean, body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
export declare const finishExternalSurvey: (externalSurveyId: number, email: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
name: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
isResultSurvey?: boolean;
|
|
6
|
+
startTime?: string;
|
|
7
|
+
gradeLevel?: string;
|
|
8
|
+
informationUser?: any;
|
|
9
|
+
clickOpenProfileDialog?: any;
|
|
10
|
+
classFontSize?: string;
|
|
11
|
+
dayLeft?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const SurveyTop: FC<Props>;
|
|
14
|
+
export default SurveyTop;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
questionName?: string;
|
|
4
|
+
questionList: any;
|
|
5
|
+
onChangeQuestionAnswer?: (questionId: number, value: string) => void;
|
|
6
|
+
isPageResult?: boolean;
|
|
7
|
+
isPageSessionResult?: boolean;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
isUserChangeSession?: boolean;
|
|
10
|
+
isMultiline?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const QuestionConduct: FC<Props>;
|
|
13
|
+
export default QuestionConduct;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface ItemConduct {
|
|
2
|
+
color: string;
|
|
3
|
+
label: string;
|
|
4
|
+
backgroundColor: 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
|
+
}
|
|
20
|
+
export declare enum TypeTime {
|
|
21
|
+
Default = 0,
|
|
22
|
+
StartTime = 1,
|
|
23
|
+
StopTime = 2
|
|
24
|
+
}
|
|
25
|
+
export interface LearningStrategyType {
|
|
26
|
+
id?: number;
|
|
27
|
+
text: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface EmotionType {
|
|
31
|
+
id?: number;
|
|
32
|
+
text: string;
|
|
33
|
+
emotionalText: string;
|
|
34
|
+
}
|
|
35
|
+
export interface LearningStrategyCategory {
|
|
36
|
+
id?: number;
|
|
37
|
+
name: string;
|
|
38
|
+
color: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const IBProfile: {
|
|
41
|
+
id: number;
|
|
42
|
+
text: string;
|
|
43
|
+
}[];
|
|
44
|
+
export interface QuestionSummarizeType {
|
|
45
|
+
answer: string;
|
|
46
|
+
text: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SURVEY_DETAIL {
|
|
50
|
+
deadline: number | null;
|
|
51
|
+
title?: string;
|
|
52
|
+
studentIds?: number[];
|
|
53
|
+
isFavorite?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface TEACHER_DETAIL {
|
|
56
|
+
email: string;
|
|
57
|
+
name: string;
|
|
58
|
+
teacherId: number;
|
|
59
|
+
userId: string;
|
|
60
|
+
}
|
|
61
|
+
export interface DATA_FORM_EMAIL {
|
|
62
|
+
emails: string[];
|
|
63
|
+
emailContent: string;
|
|
64
|
+
surveyId: number;
|
|
65
|
+
}
|
|
66
|
+
export interface BODY_TYPE_EXTERNAL {
|
|
67
|
+
token: string;
|
|
68
|
+
externalSurveyId: number;
|
|
69
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useExternalSurvey: () => {
|
|
3
|
+
listQuestionStudents: any;
|
|
4
|
+
updateQuestionAnswer: (questionId: number, text: string, isAdditional?: boolean | undefined) => void;
|
|
5
|
+
finishSurvey: () => Promise<void>;
|
|
6
|
+
informationUser: any;
|
|
7
|
+
category: string;
|
|
8
|
+
setCategory: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
9
|
+
classFontSize: string;
|
|
10
|
+
isStudentChangeAfter: boolean;
|
|
11
|
+
listAdditionalQuestionAnswer: any;
|
|
12
|
+
questionSummarize: any;
|
|
13
|
+
setQuestionSummarize: import("react").Dispatch<any>;
|
|
14
|
+
isDone: boolean;
|
|
15
|
+
externalSurveyId: string;
|
|
16
|
+
surveyId: string;
|
|
17
|
+
};
|
|
18
|
+
export default useExternalSurvey;
|
|
@@ -5,8 +5,6 @@ declare const useLearningStrategies: (studentId: any, filterDateChart: any) => {
|
|
|
5
5
|
pageSize: number;
|
|
6
6
|
sortBy: string;
|
|
7
7
|
sortOrder: string;
|
|
8
|
-
startDate: any;
|
|
9
|
-
endDate: any;
|
|
10
8
|
};
|
|
11
9
|
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
12
10
|
learningStrategiesData: any;
|
|
@@ -26,8 +26,6 @@ declare const useOverview: (studentId: number) => {
|
|
|
26
26
|
pageSize: number;
|
|
27
27
|
sortBy: string;
|
|
28
28
|
sortOrder: string;
|
|
29
|
-
startDate: any;
|
|
30
|
-
endDate: any;
|
|
31
29
|
};
|
|
32
30
|
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
33
31
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
@@ -25,8 +25,6 @@ declare const usePlpPage: () => {
|
|
|
25
25
|
pageSize: number;
|
|
26
26
|
sortBy: string;
|
|
27
27
|
sortOrder: string;
|
|
28
|
-
startDate: any;
|
|
29
|
-
endDate: any;
|
|
30
28
|
};
|
|
31
29
|
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
32
30
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const getStudentList: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const getTemplateSurvey: () => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const createSurvey: (model: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const getAllSurvey: (params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const getTotalSurvey: () => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
export declare const getStudentBySurvey: (params: any, id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const getSurveysByStudent: (params: any, studentId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
8
|
+
export declare const getNewSurvey: () => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
+
export declare const getDetailSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
10
|
+
export declare const getSurveyCountStudent: () => Promise<import("axios").AxiosResponse<any>>;
|
|
11
|
+
export declare const getAllEduTeacher: () => Promise<import("axios").AxiosResponse<any>>;
|
|
12
|
+
export declare const shareSurvey: (data: any) => void;
|
|
13
|
+
export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
14
|
+
export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
15
|
+
export declare const getSurveyDetail: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CARD_ITEM_PROPS } from "../../constants/typeCardItem";
|
|
3
|
+
declare const CardSurveyMobile: ({ surveyName, students, status, open, id, statusDetail, avatar, studentId, customItemName, customItemIcon, colorStatusDetail, customIconStatus }: CARD_ITEM_PROPS) => JSX.Element;
|
|
4
|
+
export default CardSurveyMobile;
|