mario-teacher-student-client 2.2.12-beta → 2.2.15-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.
Files changed (77) hide show
  1. package/dist/components/Dialog/ConfirmDeleteSessionConference.d.ts +11 -0
  2. package/dist/components/Header/HeaderComponent.d.ts +1 -0
  3. package/dist/components/Tabs/CustomTabNote.d.ts +3 -0
  4. package/dist/containers/ConductSurvey/components/ConductTop/ConductTop.d.ts +17 -0
  5. package/dist/containers/ConductSurvey/constant/types.d.ts +33 -1
  6. package/dist/containers/ConductSurvey/hooks/useConductOne.d.ts +21 -0
  7. package/dist/containers/ConductSurvey/hooks/useCountDown.d.ts +8 -0
  8. package/dist/containers/ConductSurvey/hooks/useIsMounted.d.ts +2 -0
  9. package/dist/containers/ConductSurvey/hooks/usePreviewSurvey.d.ts +5 -5
  10. package/dist/containers/ConductSurvey/views/SessionResultComponent.d.ts +3 -0
  11. package/dist/containers/ExternalSurvey/components/IBLearnerComponent.d.ts +12 -0
  12. package/dist/containers/ExternalSurvey/hooks/useConductSurvey.d.ts +21 -0
  13. package/dist/containers/Home/components/mutipleSelectBox/mutipleSelectBox.d.ts +8 -0
  14. package/dist/containers/LearningStrategies/hook/useEditaLearningStrategies.d.ts +5 -0
  15. package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +3 -0
  16. package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +3 -0
  17. package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -0
  18. package/dist/containers/MyStudent/components/ClassReflectionTable.d.ts +3 -0
  19. package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/{conference.d.ts → Conference.d.ts} +0 -0
  20. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useChartConference.d.ts +19 -0
  21. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/ConferenceChart.d.ts +1 -0
  22. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/ConferenceChart.d.ts +6 -0
  23. package/dist/containers/MySurvey/styles/makeStyles.d.ts +2 -0
  24. package/dist/containers/MySurvey/views/MySurvey.d.ts +3 -0
  25. package/dist/containers/ScaffoldingExample/components/OneToOne.d.ts +3 -0
  26. package/dist/containers/ScaffoldingExample/components/PicChat.d.ts +2 -0
  27. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenFour.d.ts +8 -0
  28. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenOne.d.ts +8 -0
  29. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenThree.d.ts +8 -0
  30. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenTwo.d.ts +8 -0
  31. package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingNote.d.ts +10 -0
  32. package/dist/containers/ScaffoldingExample/components/ScreenTab.d.ts +3 -0
  33. package/dist/containers/ScaffoldingExample/components/SliderRange.d.ts +2 -0
  34. package/dist/containers/ScaffoldingExample/components/TeacherView/PrivateNotes/view/PrivateNote.d.ts +3 -0
  35. package/dist/containers/ScaffoldingExample/components/TeacherView/StudentNotes/view/StudentNote.d.ts +3 -0
  36. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/hooks/useTeacherNotes.d.ts +23 -0
  37. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts +12 -0
  38. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingFirstScreen.d.ts +12 -0
  39. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingQuestionAndAnswer.d.ts +12 -0
  40. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingSecondScreen.d.ts +3 -0
  41. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/TeacherScreen.d.ts +7 -0
  42. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherTab.d.ts +8 -0
  43. package/dist/containers/Surveys/apiClient/survey.d.ts +2 -0
  44. package/dist/containers/Surveys/apiClient/surveyService.d.ts +1 -1
  45. package/dist/containers/Surveys/components/Questions/AdditionalQuestionModel.d.ts +4 -0
  46. package/dist/containers/Surveys/components/StepComponents/CreateSurveyComponent.d.ts +1 -1
  47. package/dist/containers/Surveys/components/StepComponents/ListFavoriteSurvey.d.ts +1 -1
  48. package/dist/containers/Surveys/components/SurveyDetail.d.ts +3 -0
  49. package/dist/containers/Surveys/components/SurveyStudentCompleted.d.ts +3 -0
  50. package/dist/containers/Surveys/components/SurveyStudentMissed.d.ts +3 -0
  51. package/dist/containers/Surveys/components/SurveyStudentPending.d.ts +3 -0
  52. package/dist/containers/Surveys/constants/constant.d.ts +26 -0
  53. package/dist/containers/Surveys/constants/questionModelType.d.ts +27 -0
  54. package/dist/containers/Surveys/constants/tableColumn.d.ts +11 -0
  55. package/dist/containers/Surveys/constants/types.d.ts +23 -23
  56. package/dist/containers/Surveys/hook/useActionNeededSurvey.d.ts +9 -0
  57. package/dist/containers/Surveys/hook/useAdditionalQuestion.d.ts +24 -0
  58. package/dist/containers/Surveys/hook/useAllSurvey.d.ts +10 -0
  59. package/dist/containers/Surveys/hook/useCreateSurvey.d.ts +18 -5
  60. package/dist/containers/Surveys/hook/useFormCreateSurvey.d.ts +1 -6
  61. package/dist/containers/Surveys/hook/useListFavoriteSurvey.d.ts +4 -3
  62. package/dist/containers/Surveys/hook/usePendingSurvey.d.ts +10 -0
  63. package/dist/containers/Surveys/hook/useRepliedSurvey.d.ts +9 -0
  64. package/dist/containers/Surveys/hook/useSelectQuestion.d.ts +1 -1
  65. package/dist/containers/Surveys/views/ViewSurveyStudent.d.ts +3 -0
  66. package/dist/hooks/useUploadFile.d.ts +4 -0
  67. package/dist/index.css +47 -4
  68. package/dist/index.js +823 -406
  69. package/dist/index.js.map +1 -1
  70. package/dist/index.modern.js +823 -406
  71. package/dist/index.modern.js.map +1 -1
  72. package/dist/layouts/ModelSelectRole.d.ts +4 -0
  73. package/dist/layouts/constants/constants.d.ts +2 -0
  74. package/dist/layouts/constants/type.d.ts +4 -0
  75. package/dist/services/File.d.ts +1 -0
  76. package/dist/services/SurveyService.d.ts +1 -0
  77. package/package.json +107 -107
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface PropsType {
3
+ open: boolean;
4
+ isConference?: boolean;
5
+ isStudentStarted?: boolean;
6
+ selectedId: number;
7
+ handleCloseModalConfirmDelete: () => void;
8
+ handleDelete: (selectedId: number) => Promise<void>;
9
+ }
10
+ declare const ConfirmDeleteSessionConference: ({ open, isConference, isStudentStarted, handleCloseModalConfirmDelete, handleDelete, selectedId }: PropsType) => JSX.Element;
11
+ export default ConfirmDeleteSessionConference;
@@ -27,6 +27,7 @@ interface Props {
27
27
  duplicateSurvey?: Function;
28
28
  isShowDuplicate?: boolean;
29
29
  shareSurvey?: Function;
30
+ onPublishSurvey?: Function;
30
31
  }
31
32
  declare const HeaderComponent: FC<Props>;
32
33
  export default HeaderComponent;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabNote: (props: any) => JSX.Element;
3
+ export default CustomTabNote;
@@ -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;
@@ -46,11 +46,43 @@ export interface QuestionSummarizeType {
46
46
  text: string;
47
47
  type: string;
48
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
+ }
49
79
  export interface SURVEY_DETAIL {
50
- deadline: number | null;
80
+ deadline?: number | null;
51
81
  title?: string;
52
82
  studentIds?: number[];
53
83
  isFavorite?: boolean;
84
+ id?: number;
85
+ totalQuestions?: number;
54
86
  }
55
87
  export interface TEACHER_DETAIL {
56
88
  email: string;
@@ -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,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,2 @@
1
+ /// <reference types="react" />
2
+ export declare function useIsMounted(): import("react").MutableRefObject<boolean>;
@@ -1,21 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { DATA_FORM_EMAIL, QuestionSummarizeType, SURVEY_DETAIL } from "../constant/types";
2
+ import { DATA_FORM_EMAIL, IAdditionalQuestion, ITemplate, QuestionSummarizeType, SURVEY_DETAIL } from "../constant/types";
3
3
  import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
4
4
  declare const usePreviewSurvey: () => {
5
5
  currentUser: any;
6
6
  isTeacher: any;
7
7
  isStudent: any;
8
- listQuestionTeachers: any;
9
8
  category: string;
10
9
  setCategory: import("react").Dispatch<import("react").SetStateAction<string>>;
11
10
  classFontSize: string;
12
- listAdditionalQuestion: any;
13
- infoSurvey: any;
14
11
  questionSummarize: QuestionSummarizeType | null;
15
12
  activeTab: string;
16
13
  handleChange: (_event: React.ChangeEvent<{}>, newValue: string) => void;
17
14
  surveyId: string;
18
- surveyDetail: SURVEY_DETAIL | undefined;
15
+ surveyDetail: SURVEY_DETAIL;
19
16
  handleChangeDeadline: (date: MaterialUiPickersDate | null) => void;
20
17
  duplicateSurvey: () => void;
21
18
  handleShareSurvey: () => Promise<void>;
@@ -24,5 +21,8 @@ declare const usePreviewSurvey: () => {
24
21
  listTeacher: string[];
25
22
  dataFormEmail: DATA_FORM_EMAIL | undefined;
26
23
  setDataFormEmail: import("react").Dispatch<import("react").SetStateAction<DATA_FORM_EMAIL | undefined>>;
24
+ listQuestionTemplate: ITemplate[];
25
+ listAdditionalQuestion: IAdditionalQuestion[];
26
+ handleCreateSurvey: () => Promise<void>;
27
27
  };
28
28
  export default usePreviewSurvey;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SessionResultComponent: FC;
3
+ export default SessionResultComponent;
@@ -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,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;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IMutipleSelectBox {
3
+ label: string;
4
+ options: string[];
5
+ SelectedChange: (selected: string[]) => void;
6
+ }
7
+ declare function MutipleSelectBox({ label, options, SelectedChange }: IMutipleSelectBox): JSX.Element;
8
+ export default MutipleSelectBox;
@@ -0,0 +1,5 @@
1
+ declare const useEditLearningStrategies: () => {
2
+ handleChangeNote: (e?: any) => void;
3
+ description: any;
4
+ };
5
+ export default useEditLearningStrategies;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabNote: (props: any) => JSX.Element;
3
+ export default CustomTabNote;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DialogNodes: (props: any) => JSX.Element;
3
+ export default DialogNodes;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ClassReflectionTable: (props: any) => JSX.Element;
3
+ export default ClassReflectionTable;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
3
+ declare const useChartConference: () => {
4
+ topLearningStrategiesData: any;
5
+ setFilters: import("react").Dispatch<import("react").SetStateAction<{
6
+ studentId: number;
7
+ startDate: number;
8
+ endDate: number;
9
+ type: string;
10
+ }>>;
11
+ handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
12
+ handleClose: () => void;
13
+ anchorEl: any;
14
+ handleChangeStartDate: (datepicker: MaterialUiPickersDate | null) => void;
15
+ handleChangeEndDate: (datepicker: MaterialUiPickersDate | null) => void;
16
+ timeEnd: Date;
17
+ timeStart: Date;
18
+ };
19
+ export default useChartConference;
@@ -0,0 +1 @@
1
+ export declare const getConferenceChart: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ title: string;
4
+ }
5
+ declare const ConferenceChart: ({ title }: Props) => JSX.Element;
6
+ export default ConferenceChart;
@@ -0,0 +1,2 @@
1
+ export declare const useStyles: (props?: any) => Record<"title" | "body" | "tabs" | "tabLabel" | "tabLabelActive", string>;
2
+ export declare const useStyleModelCreate: (props?: any) => Record<"root" | "instructions" | "completed" | "label", string>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const MySurvey: () => JSX.Element;
3
+ export default MySurvey;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const OneToOne: () => JSX.Element;
3
+ export default OneToOne;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function PicChat(): JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type PropTypes = {
3
+ onChangeSetData: Function;
4
+ valueNoteAdd: string;
5
+ ShowHelp: Function;
6
+ };
7
+ declare const RightPicChatScreenFour: ({ onChangeSetData, valueNoteAdd, ShowHelp }: PropTypes) => JSX.Element;
8
+ export default RightPicChatScreenFour;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type PropTypes = {
3
+ onChangeSetData: Function;
4
+ valueNoteAdd: string;
5
+ ShowHelp: Function;
6
+ };
7
+ declare const RightPicChatScreenOne: ({ onChangeSetData, valueNoteAdd, ShowHelp }: PropTypes) => JSX.Element;
8
+ export default RightPicChatScreenOne;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type PropTypes = {
3
+ clickSelect: Function;
4
+ arraySelect: any;
5
+ ShowHelp: Function;
6
+ };
7
+ declare const RightPicChatScreenThree: ({ clickSelect, arraySelect, ShowHelp }: PropTypes) => JSX.Element;
8
+ export default RightPicChatScreenThree;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type PropTypes = {
3
+ onChangeSetData: Function;
4
+ valueNoteAdd: string;
5
+ ShowHelp: Function;
6
+ };
7
+ declare const RightPicChatScreenTwo: ({ onChangeSetData, valueNoteAdd, ShowHelp }: PropTypes) => JSX.Element;
8
+ export default RightPicChatScreenTwo;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ id: number;
4
+ content?: string;
5
+ date?: string;
6
+ onRemoveNote: Function;
7
+ onUpdateNote: Function;
8
+ }
9
+ declare const ScaffoldingQuestionAndAnswer: ({ id, content, date, onRemoveNote, onUpdateNote, }: Props) => JSX.Element;
10
+ export default ScaffoldingQuestionAndAnswer;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ScreenTab: (props: any) => JSX.Element;
3
+ export default ScreenTab;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function CustomizedSlider(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const PrivateNote: () => JSX.Element;
3
+ export default PrivateNote;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StudentNote: () => JSX.Element;
3
+ export default StudentNote;
@@ -0,0 +1,23 @@
1
+ declare type Filter = {
2
+ category?: string;
3
+ level?: string;
4
+ };
5
+ declare const useTeacherNotes: (sessionId: number, sessionResultId: number) => {
6
+ screenIndex: number;
7
+ changeScreen: (index: number) => void;
8
+ questionList: never[];
9
+ categoryList: never[];
10
+ levelList: never[];
11
+ randomQuestion: never[];
12
+ note: string;
13
+ handleChangeNote: (e?: any) => void;
14
+ handleSelectQuestion: (question: any) => Promise<void>;
15
+ changeFilters: (updateFilters: any) => void;
16
+ filters: Filter;
17
+ teacherNotesData: never[];
18
+ handleSelectSuggester: (question: any) => Promise<void>;
19
+ handleRemoveQuestion: (noteId: number) => Promise<void>;
20
+ handleSubmitNote: (noteId: number, answer: string) => Promise<void>;
21
+ handleRemoveQuestionAnswer: (noteId: number) => Promise<void>;
22
+ };
23
+ export default useTeacherNotes;
@@ -0,0 +1,12 @@
1
+ declare type Filter = {
2
+ category?: string;
3
+ level?: string;
4
+ };
5
+ export declare const getAllSelectQuestion: (dispatch: any, filters: Filter) => Promise<any>;
6
+ export declare const getListCategories: (dispatch: any) => Promise<any>;
7
+ export declare const getListLevel: (dispatch: any) => Promise<any>;
8
+ export declare const getAllNote: (dispatch: any, sessionId: number) => Promise<any>;
9
+ export declare const submitNote: (dispatch: any, sessionId: number, text: string) => Promise<any>;
10
+ export declare const updateNote: (dispatch: any, sessionNoteId: number, text: string) => Promise<any>;
11
+ export declare const removeNote: (dispatch: any, noteId: number) => Promise<any>;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ declare type PropsType = {
3
+ changeScreen: Function;
4
+ onPressSuggester: Function;
5
+ onUpdateNote: Function;
6
+ randomQuestion: any[];
7
+ teacherNotesData: any[];
8
+ onRemoveQuestion: Function;
9
+ onRemoveQuestionAnswer: Function;
10
+ };
11
+ declare const ScaffoldingFirstScreen: (props: PropsType) => JSX.Element;
12
+ export default ScaffoldingFirstScreen;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ id: number;
4
+ content?: string;
5
+ answer?: string;
6
+ date?: string;
7
+ onRemoveQuestion: Function;
8
+ onRemoveQuestionAnswer: Function;
9
+ onUpdateNote: Function;
10
+ }
11
+ declare const ScaffoldingQuestionAndAnswer: ({ id, content, answer, date, onRemoveQuestion, onUpdateNote, onRemoveQuestionAnswer }: Props) => JSX.Element;
12
+ export default ScaffoldingQuestionAndAnswer;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const ScaffoldingSecondScreen: (props: any) => JSX.Element;
3
+ export default ScaffoldingSecondScreen;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type PropsType = {
3
+ sessionId: number;
4
+ sessionResultId: number;
5
+ };
6
+ declare const TeacherScreen: (props: PropsType) => JSX.Element;
7
+ export default TeacherScreen;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type PropsType = {
3
+ onClose: any;
4
+ sessionId: number;
5
+ sessionResultId: number;
6
+ };
7
+ declare const TeacherTab: (props: PropsType) => JSX.Element;
8
+ export default TeacherTab;
@@ -0,0 +1,2 @@
1
+ export declare const getAllSurvey: (params: any) => Promise<import("axios").AxiosResponse<any>>;
2
+ export declare const getTotalSurvey: () => Promise<import("axios").AxiosResponse<any>>;
@@ -12,4 +12,4 @@ export declare const getAllEduTeacher: () => Promise<import("axios").AxiosRespon
12
12
  export declare const shareSurvey: (data: any) => void;
13
13
  export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
14
14
  export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
15
- export declare const getFavoriteSurveyDetail: (surveyId: number) => 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 { IQuestionModel } from "../../constants/questionModelType";
3
+ declare const AdditionalQuestionModel: ({ open, onClose, additionalQuestionForm, onChangeAdditionalQuestion, onAddAdditionalQuestion, onRemoveAdditionalQuestion, onEditAdditionalQuestion, onChangeAdditionalType, onCheckFormConfirm, onAddAnswerQuestion, onRemoveAnswer }: IQuestionModel) => JSX.Element;
4
+ export default AdditionalQuestionModel;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { CREATE_SURVEY_PROPS } from "../../constants/types";
3
- declare const CreateSurveyComponent: ({ dataFormCreateSurvey, onChangeValueForm, handleChangeDate, handleChangeFavorite, templateSurvey, handleToggleModel, openModelSelectTemplate, handleSelectTemplate, openCollapseId, setOpenCollapseId, handleInsertQuestion, additionalText, handleChangeAdditionalText, handleCreateAddional, handleRemoveQuestion, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckSelectQuestion, handleSelectQuestionCollapse, handleCheckTypeQuestion, handleCheckCountQuestionByType, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion, favoriteItem, handleDuplicateSurvey }: CREATE_SURVEY_PROPS) => JSX.Element;
3
+ declare const CreateSurveyComponent: ({ dataFormCreateSurvey, onChangeValueForm, handleChangeDate, handleChangeFavorite, templateSurvey, handleToggleModel, openModelSelectTemplate, handleSelectTemplate, openCollapseId, setOpenCollapseId, handleInsertQuestion, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckSelectQuestion, handleSelectQuestionCollapse, handleCheckTypeQuestion, handleCheckCountQuestionByType, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion, favoriteItem, handleDuplicateSurvey, handleAddAdditionalQuestion, handleChangeAdditionalQuestion, handleRemoveAdditionalQuestion, handleEditAdditionalQuestion, handleFindAdditionalQuestion, handleToggleModelAdditional, openModelAdditional, additionalQuestionForm, handleChangeAdditionalType, handleCheckFormConfirm, handleAddAnswerQuestion, handleRemoveAnswer, filterFavorite, handleSortTableFavorite, handleChangeRowsPerPageFavorite, handleChangePageFavorite, }: CREATE_SURVEY_PROPS) => JSX.Element;
4
4
  export default CreateSurveyComponent;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { FAVORITE_PROPS } from "../../constants/types";
3
- declare const ListFavoriteSurvey: ({ favoriteItem, onDuplicateSurvey }: FAVORITE_PROPS) => JSX.Element;
3
+ declare const ListFavoriteSurvey: ({ favoriteItem, filterFavorite, onDuplicateSurvey, onSortTable, handleChangeRowsPerPageFavorite, handleChangePageFavorite }: FAVORITE_PROPS) => JSX.Element;
4
4
  export default ListFavoriteSurvey;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SurveyDetail: () => JSX.Element;
3
+ export default SurveyDetail;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SurveyStudentCompleted: () => JSX.Element;
3
+ export default SurveyStudentCompleted;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SurveyStudentMissed: () => JSX.Element;
3
+ export default SurveyStudentMissed;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SurveyStudentPending: () => JSX.Element;
3
+ export default SurveyStudentPending;
@@ -37,3 +37,29 @@ export declare enum TYPE_SURVEY {
37
37
  Completed = 2,
38
38
  ActionNeed = 3
39
39
  }
40
+ export declare enum QuestionType {
41
+ Default = "Default",
42
+ SingleChoice = "SingleChoice",
43
+ MultipleChoice = "MultipleChoice",
44
+ TextInput = "TextInput",
45
+ Slider = "Slider",
46
+ ProgressBar = "ProgressBar",
47
+ StarRating = "StarRating",
48
+ TextInputWithSuggestions = "TextInputWithSuggestions",
49
+ Emotional = "Emotional",
50
+ Summarize = "Summarize",
51
+ Rating = "Rating",
52
+ LearningStrategy = "LearningStrategy"
53
+ }
54
+ export declare const questionTypeAdditional: string[];
55
+ export declare const initialAdditionalQuestion: {
56
+ questionId: number;
57
+ questionText: string;
58
+ type: QuestionType;
59
+ fromLabel: string;
60
+ toLabel: string;
61
+ answers: never[];
62
+ id: string;
63
+ textAnswer: string;
64
+ };
65
+ export declare const charactersRandom = "0123456789";
@@ -0,0 +1,27 @@
1
+ import { QuestionType } from "./constant";
2
+ export interface IQuestionModel {
3
+ open: boolean;
4
+ onClose: Function;
5
+ additionalQuestionForm: QUESTION_ADDITIONAL;
6
+ onChangeAdditionalQuestion: Function;
7
+ onAddAdditionalQuestion: Function;
8
+ onRemoveAdditionalQuestion: Function;
9
+ onEditAdditionalQuestion: Function;
10
+ onChangeAdditionalType: Function;
11
+ onCheckFormConfirm: Function;
12
+ onAddAnswerQuestion: Function;
13
+ onRemoveAnswer: Function;
14
+ }
15
+ export interface IAnswer {
16
+ text: string;
17
+ }
18
+ export interface QUESTION_ADDITIONAL {
19
+ id: string;
20
+ questionId: number;
21
+ questionText: string;
22
+ type: QuestionType;
23
+ fromLabel: string;
24
+ toLabel: string;
25
+ answers: IAnswer[];
26
+ textAnswer: string;
27
+ }
@@ -97,3 +97,14 @@ export declare const tableListSurvey: ({
97
97
  sortName: null;
98
98
  align: string;
99
99
  })[];
100
+ export declare const tableFavoriteSurvey: ({
101
+ name: string;
102
+ tableWidth: number;
103
+ sortName: string;
104
+ align: string;
105
+ } | {
106
+ name: string;
107
+ tableWidth: number;
108
+ sortName: null;
109
+ align: string;
110
+ })[];