mario-teacher-student-client 2.1.123-admin → 2.1.126-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/Tabs/CustomTabNote.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/ConductTop.d.ts +17 -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/useConductOne.d.ts +21 -0
- package/dist/containers/ConductSurvey/hooks/useConductSurvey.d.ts +29 -0
- package/dist/containers/ConductSurvey/hooks/useCountDown.d.ts +8 -0
- package/dist/containers/ConductSurvey/hooks/useIsMounted.d.ts +2 -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/SessionResultComponent.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/IBLearnerComponent.d.ts +12 -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/useConductSurvey.d.ts +21 -0
- package/dist/containers/ExternalSurvey/hooks/useExternalSurvey.d.ts +18 -0
- package/dist/containers/ExternalSurvey/views/ExternalSurvey.d.ts +3 -0
- package/dist/containers/Home/components/mutipleSelectBox/mutipleSelectBox.d.ts +8 -0
- package/dist/containers/LearningStrategies/hook/useEditaLearningStrategies.d.ts +5 -0
- package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +3 -0
- package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +3 -0
- package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -0
- package/dist/containers/MyStudent/components/ChartOverview.d.ts +1 -1
- package/dist/containers/MyStudent/components/ClassReflectionTable.d.ts +3 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/{conference.d.ts → Conference.d.ts} +0 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartClassReflection.d.ts +2 -6
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartOneToOne.d.ts +2 -6
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useConference.d.ts +2 -6
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useLearningProgress.d.ts +2 -6
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useRedinessToLearn.d.ts +2 -6
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/BubbleChartCustom.d.ts +1 -5
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/ColumnChartAndPercent.d.ts +1 -4
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/TopLearningStrategy.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useChartConference.d.ts +19 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +2 -6
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/ConferenceChart.d.ts +1 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/ConferenceChart.d.ts +6 -0
- package/dist/containers/MyStudent/hooks/useOverview.d.ts +4 -26
- package/dist/containers/MySurvey/styles/makeStyles.d.ts +2 -0
- package/dist/containers/MySurvey/views/MySurvey.d.ts +3 -0
- package/dist/containers/PLP/hooks/usePlpPage.d.ts +5 -24
- package/dist/containers/ScaffoldingExample/components/OneToOne.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/PicChat.d.ts +2 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenFour.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenOne.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenThree.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenTwo.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingNote.d.ts +10 -0
- package/dist/containers/ScaffoldingExample/components/ScreenTab.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/SliderRange.d.ts +2 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/PrivateNotes/view/PrivateNote.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/StudentNotes/view/StudentNote.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/hooks/useTeacherNotes.d.ts +23 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts +12 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingFirstScreen.d.ts +12 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingQuestionAndAnswer.d.ts +12 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingSecondScreen.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/TeacherScreen.d.ts +7 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherTab.d.ts +8 -0
- package/dist/containers/Surveys/apiClient/survey.d.ts +2 -0
- 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/components/SurveyDetail.d.ts +3 -0
- package/dist/containers/Surveys/components/SurveyStudentCompleted.d.ts +3 -0
- package/dist/containers/Surveys/components/SurveyStudentMissed.d.ts +3 -0
- package/dist/containers/Surveys/components/SurveyStudentPending.d.ts +3 -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/useActionNeededSurvey.d.ts +9 -0
- package/dist/containers/Surveys/hook/useAdditionalQuestion.d.ts +24 -0
- package/dist/containers/Surveys/hook/useAllSurvey.d.ts +10 -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/usePendingSurvey.d.ts +10 -0
- package/dist/containers/Surveys/hook/useRepliedSurvey.d.ts +9 -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/containers/Surveys/views/ViewSurveyStudent.d.ts +3 -0
- package/dist/hooks/useUploadFile.d.ts +4 -0
- package/dist/index.css +38 -5
- package/dist/index.js +363 -876
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +363 -876
- package/dist/index.modern.js.map +1 -1
- package/dist/services/File.d.ts +1 -0
- package/dist/services/MyStudent.d.ts +1 -1
- package/dist/services/SurveyService.d.ts +11 -0
- package/package.json +1 -1
- package/dist/i18n.d.ts +0 -2
|
@@ -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,17 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
name: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
isResultSession?: boolean;
|
|
6
|
+
lengthSession?: string;
|
|
7
|
+
startTime?: string;
|
|
8
|
+
createdByTeacher?: boolean;
|
|
9
|
+
gradeLevel?: string;
|
|
10
|
+
informationUser?: any;
|
|
11
|
+
clickOpenProfileDialog?: any;
|
|
12
|
+
isConference?: boolean;
|
|
13
|
+
sessionType?: string;
|
|
14
|
+
classFontSize?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const ConductTop: FC<Props>;
|
|
17
|
+
export default ConductTop;
|
|
@@ -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,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useConductOne: () => {
|
|
3
|
+
currentUser: any;
|
|
4
|
+
isTeacher: any;
|
|
5
|
+
isStudent: any;
|
|
6
|
+
listQuestionTeachers: any;
|
|
7
|
+
listQuestionStudents: any;
|
|
8
|
+
updateQuestionAnswer: (questionId: number, text: string) => void;
|
|
9
|
+
fnfinishSession: (cb: any) => Promise<void>;
|
|
10
|
+
surveyId: string;
|
|
11
|
+
surveyResultId: number;
|
|
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
|
+
};
|
|
21
|
+
export default useConductOne;
|
|
@@ -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,8 @@
|
|
|
1
|
+
import { TypeTime } from "../constant/types";
|
|
2
|
+
declare const useCountDown: (typeTime: TypeTime, sessionResultId: number, isUserChangeSession: boolean, isTeacherSessionDone: boolean) => {
|
|
3
|
+
hour: number;
|
|
4
|
+
minute: number;
|
|
5
|
+
second: number;
|
|
6
|
+
clearTimer: () => void;
|
|
7
|
+
};
|
|
8
|
+
export default useCountDown;
|
|
@@ -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<"title" | "body" | "tabs" | "tabLabel" | "tabLabelActiveWhite" | "tabLabelActive", 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,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,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,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useConductSurvey: () => {
|
|
3
|
+
listQuestionTeachers: any;
|
|
4
|
+
listQuestionStudents: any;
|
|
5
|
+
updateQuestionAnswer: (questionId: number, text: string, isAdditional?: boolean | undefined) => void;
|
|
6
|
+
fnfinishSurvey: (cb: any) => Promise<void>;
|
|
7
|
+
informationUser: any;
|
|
8
|
+
category: string;
|
|
9
|
+
setCategory: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
10
|
+
classFontSize: string;
|
|
11
|
+
isStudentChangeAfter: boolean;
|
|
12
|
+
isUserChangeSession: boolean;
|
|
13
|
+
setIsUserChangeSession: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
14
|
+
listAdditionalQuestionAnswer: any;
|
|
15
|
+
questionSummarize: any;
|
|
16
|
+
setQuestionSummarize: import("react").Dispatch<any>;
|
|
17
|
+
updateAnswerIBLearner: (_answer: string) => Promise<void>;
|
|
18
|
+
questionIBLearner: string;
|
|
19
|
+
setQuestionIBLearner: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
20
|
+
};
|
|
21
|
+
export default useConductSurvey;
|