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.
Files changed (153) hide show
  1. package/dist/components/Button/CustomButton.d.ts +11 -0
  2. package/dist/components/Card/CardNameButton.d.ts +7 -0
  3. package/dist/components/Card/CardTotal.d.ts +7 -0
  4. package/dist/components/Header/CustomHeaderComponent.d.ts +16 -0
  5. package/dist/components/Table/ConvertTime.d.ts +6 -0
  6. package/dist/components/Table/TableCells.d.ts +15 -0
  7. package/dist/components/Tabs/CustomTabNote.d.ts +3 -0
  8. package/dist/components/selector/CustomFilterComponent.d.ts +19 -0
  9. package/dist/components/selector/CustomFilterMobile.d.ts +23 -0
  10. package/dist/containers/ConductSurvey/apiClient/index.d.ts +2 -0
  11. package/dist/containers/ConductSurvey/components/ConductTop/ConductItem.d.ts +7 -0
  12. package/dist/containers/ConductSurvey/components/ConductTop/ConductTop.d.ts +17 -0
  13. package/dist/containers/ConductSurvey/components/ConductTop/SurveyTop.d.ts +14 -0
  14. package/dist/containers/ConductSurvey/components/HeaderSurvey.d.ts +21 -0
  15. package/dist/containers/ConductSurvey/components/IBLearnerComponent.d.ts +12 -0
  16. package/dist/containers/ConductSurvey/components/Note/Note.d.ts +6 -0
  17. package/dist/containers/ConductSurvey/components/Note/PrivateNote.d.ts +3 -0
  18. package/dist/containers/ConductSurvey/components/Note/SessionResultNote.d.ts +3 -0
  19. package/dist/containers/ConductSurvey/components/ProfileDialog/ProfileDialog.d.ts +7 -0
  20. package/dist/containers/ConductSurvey/components/QuestionConduct.d.ts +12 -0
  21. package/dist/containers/ConductSurvey/components/RadiaBarChart.d.ts +3 -0
  22. package/dist/containers/ConductSurvey/components/ShareSurveyDialog.d.ts +12 -0
  23. package/dist/containers/ConductSurvey/components/SimpleDialog.d.ts +3 -0
  24. package/dist/containers/ConductSurvey/constant/constant.d.ts +1 -0
  25. package/dist/containers/ConductSurvey/constant/types.d.ts +97 -0
  26. package/dist/containers/ConductSurvey/hooks/useConductOne.d.ts +21 -0
  27. package/dist/containers/ConductSurvey/hooks/useConductSurvey.d.ts +29 -0
  28. package/dist/containers/ConductSurvey/hooks/useCountDown.d.ts +8 -0
  29. package/dist/containers/ConductSurvey/hooks/useIsMounted.d.ts +2 -0
  30. package/dist/containers/ConductSurvey/hooks/usePreviewSurvey.d.ts +28 -0
  31. package/dist/containers/ConductSurvey/hooks/useProfileDialog.d.ts +5 -0
  32. package/dist/containers/ConductSurvey/servies/index.d.ts +2 -0
  33. package/dist/containers/ConductSurvey/styles/makeStyles.d.ts +1 -0
  34. package/dist/containers/ConductSurvey/views/PreviewSurvey.d.ts +3 -0
  35. package/dist/containers/ConductSurvey/views/SessionResultComponent.d.ts +3 -0
  36. package/dist/containers/ConductSurvey/views/SurveyIndex.d.ts +3 -0
  37. package/dist/containers/ConductSurvey/views/SurveyResult.d.ts +3 -0
  38. package/dist/containers/ExternalSurvey/api/externalService.d.ts +6 -0
  39. package/dist/containers/ExternalSurvey/components/ConductTop/ConductItem.d.ts +7 -0
  40. package/dist/containers/ExternalSurvey/components/ConductTop/SurveyTop.d.ts +14 -0
  41. package/dist/containers/ExternalSurvey/components/IBLearnerComponent.d.ts +12 -0
  42. package/dist/containers/ExternalSurvey/components/QuestionConduct.d.ts +13 -0
  43. package/dist/containers/ExternalSurvey/constant/types.d.ts +69 -0
  44. package/dist/containers/ExternalSurvey/hooks/useConductSurvey.d.ts +21 -0
  45. package/dist/containers/ExternalSurvey/hooks/useExternalSurvey.d.ts +18 -0
  46. package/dist/containers/ExternalSurvey/views/ExternalSurvey.d.ts +3 -0
  47. package/dist/containers/Home/components/mutipleSelectBox/mutipleSelectBox.d.ts +8 -0
  48. package/dist/containers/LearningStrategies/hook/useEditaLearningStrategies.d.ts +5 -0
  49. package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +3 -0
  50. package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +3 -0
  51. package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -0
  52. package/dist/containers/MyStudent/components/ChartOverview.d.ts +1 -1
  53. package/dist/containers/MyStudent/components/ClassReflectionTable.d.ts +3 -0
  54. package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/{conference.d.ts → Conference.d.ts} +0 -0
  55. package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartClassReflection.d.ts +2 -6
  56. package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartOneToOne.d.ts +2 -6
  57. package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useConference.d.ts +2 -6
  58. package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useLearningProgress.d.ts +2 -6
  59. package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useRedinessToLearn.d.ts +2 -6
  60. package/dist/containers/MyStudent/components/NewOverview/Chat/view/BubbleChartCustom.d.ts +1 -5
  61. package/dist/containers/MyStudent/components/NewOverview/Chat/view/ColumnChartAndPercent.d.ts +1 -4
  62. package/dist/containers/MyStudent/components/NewOverview/Chat/view/TopLearningStrategy.d.ts +1 -1
  63. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useChartConference.d.ts +19 -0
  64. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +2 -6
  65. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/ConferenceChart.d.ts +1 -0
  66. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/ConferenceChart.d.ts +6 -0
  67. package/dist/containers/MyStudent/hooks/useOverview.d.ts +4 -26
  68. package/dist/containers/MySurvey/styles/makeStyles.d.ts +2 -0
  69. package/dist/containers/MySurvey/views/MySurvey.d.ts +3 -0
  70. package/dist/containers/PLP/hooks/usePlpPage.d.ts +5 -24
  71. package/dist/containers/ScaffoldingExample/components/OneToOne.d.ts +3 -0
  72. package/dist/containers/ScaffoldingExample/components/PicChat.d.ts +2 -0
  73. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenFour.d.ts +8 -0
  74. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenOne.d.ts +8 -0
  75. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenThree.d.ts +8 -0
  76. package/dist/containers/ScaffoldingExample/components/RightPicChatScreenTwo.d.ts +8 -0
  77. package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingNote.d.ts +10 -0
  78. package/dist/containers/ScaffoldingExample/components/ScreenTab.d.ts +3 -0
  79. package/dist/containers/ScaffoldingExample/components/SliderRange.d.ts +2 -0
  80. package/dist/containers/ScaffoldingExample/components/TeacherView/PrivateNotes/view/PrivateNote.d.ts +3 -0
  81. package/dist/containers/ScaffoldingExample/components/TeacherView/StudentNotes/view/StudentNote.d.ts +3 -0
  82. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/hooks/useTeacherNotes.d.ts +23 -0
  83. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts +12 -0
  84. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingFirstScreen.d.ts +12 -0
  85. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingQuestionAndAnswer.d.ts +12 -0
  86. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingSecondScreen.d.ts +3 -0
  87. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/TeacherScreen.d.ts +7 -0
  88. package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherTab.d.ts +8 -0
  89. package/dist/containers/Surveys/apiClient/survey.d.ts +2 -0
  90. package/dist/containers/Surveys/apiClient/surveyService.d.ts +15 -0
  91. package/dist/containers/Surveys/components/ActionNeededSurvey.d.ts +3 -0
  92. package/dist/containers/Surveys/components/AllStudentSurvey.d.ts +3 -0
  93. package/dist/containers/Surveys/components/CardItemMobile/CardSurveyMobile.d.ts +4 -0
  94. package/dist/containers/Surveys/components/CompletedStudentSurvey.d.ts +3 -0
  95. package/dist/containers/Surveys/components/CreateSurvey.d.ts +3 -0
  96. package/dist/containers/Surveys/components/ExternalSurveyList.d.ts +3 -0
  97. package/dist/containers/Surveys/components/ListSurveyDetail.d.ts +3 -0
  98. package/dist/containers/Surveys/components/ListSurveys.d.ts +3 -0
  99. package/dist/containers/Surveys/components/MissedStudentSurvey.d.ts +3 -0
  100. package/dist/containers/Surveys/components/PendingStudentSurvey.d.ts +3 -0
  101. package/dist/containers/Surveys/components/PendingSurvey.d.ts +3 -0
  102. package/dist/containers/Surveys/components/Questions/AdditionalQuestionModel.d.ts +4 -0
  103. package/dist/containers/Surveys/components/RepliedSurvey.d.ts +3 -0
  104. package/dist/containers/Surveys/components/StepComponents/ConfirmPublishSurvey.d.ts +4 -0
  105. package/dist/containers/Surveys/components/StepComponents/ConfirmShareSurvey.d.ts +4 -0
  106. package/dist/containers/Surveys/components/StepComponents/CreateSurveyComponent.d.ts +4 -0
  107. package/dist/containers/Surveys/components/StepComponents/ListFavoriteSurvey.d.ts +4 -0
  108. package/dist/containers/Surveys/components/StepComponents/ModelSelectQuestion.d.ts +4 -0
  109. package/dist/containers/Surveys/components/StepComponents/ModelSelectSurveyTemplate.d.ts +4 -0
  110. package/dist/containers/Surveys/components/StepComponents/ModelSendSurvey.d.ts +4 -0
  111. package/dist/containers/Surveys/components/StepComponents/ReviewSurveyDetail.d.ts +4 -0
  112. package/dist/containers/Surveys/components/StepComponents/TableSelectStudent.d.ts +4 -0
  113. package/dist/containers/Surveys/components/SurveyDetail.d.ts +3 -0
  114. package/dist/containers/Surveys/components/SurveyStudentCompleted.d.ts +3 -0
  115. package/dist/containers/Surveys/components/SurveyStudentMissed.d.ts +3 -0
  116. package/dist/containers/Surveys/components/SurveyStudentPending.d.ts +3 -0
  117. package/dist/containers/Surveys/constants/constant.d.ts +65 -0
  118. package/dist/containers/Surveys/constants/questionModelType.d.ts +27 -0
  119. package/dist/containers/Surveys/constants/tableColumn.d.ts +110 -0
  120. package/dist/containers/Surveys/constants/typeCardItem.d.ts +16 -0
  121. package/dist/containers/Surveys/constants/types.d.ts +308 -0
  122. package/dist/containers/Surveys/hook/useActionNeededSurvey.d.ts +9 -0
  123. package/dist/containers/Surveys/hook/useAdditionalQuestion.d.ts +24 -0
  124. package/dist/containers/Surveys/hook/useAllSurvey.d.ts +10 -0
  125. package/dist/containers/Surveys/hook/useCreateSurvey.d.ts +77 -0
  126. package/dist/containers/Surveys/hook/useExternalSurvey.d.ts +21 -0
  127. package/dist/containers/Surveys/hook/useExternalSurveyList.d.ts +11 -0
  128. package/dist/containers/Surveys/hook/useFormCreateSurvey.d.ts +14 -0
  129. package/dist/containers/Surveys/hook/useListFavoriteSurvey.d.ts +10 -0
  130. package/dist/containers/Surveys/hook/useListSurvey.d.ts +28 -0
  131. package/dist/containers/Surveys/hook/useListSurveyDetail.d.ts +20 -0
  132. package/dist/containers/Surveys/hook/usePendingSurvey.d.ts +10 -0
  133. package/dist/containers/Surveys/hook/useRepliedSurvey.d.ts +9 -0
  134. package/dist/containers/Surveys/hook/useSelectQuestion.d.ts +26 -0
  135. package/dist/containers/Surveys/hook/useSelectStudent.d.ts +15 -0
  136. package/dist/containers/Surveys/hook/useStudentSurvey.d.ts +16 -0
  137. package/dist/containers/Surveys/hook/useSurveyDetail.d.ts +10 -0
  138. package/dist/containers/Surveys/hook/useSurveyViewStudent.d.ts +4 -0
  139. package/dist/containers/Surveys/styles/makeStyles.d.ts +3 -0
  140. package/dist/containers/Surveys/views/SurveyDetail.d.ts +3 -0
  141. package/dist/containers/Surveys/views/SurveyStudentList.d.ts +3 -0
  142. package/dist/containers/Surveys/views/ViewSurveyStudent.d.ts +3 -0
  143. package/dist/hooks/useUploadFile.d.ts +4 -0
  144. package/dist/index.css +38 -5
  145. package/dist/index.js +363 -876
  146. package/dist/index.js.map +1 -1
  147. package/dist/index.modern.js +363 -876
  148. package/dist/index.modern.js.map +1 -1
  149. package/dist/services/File.d.ts +1 -0
  150. package/dist/services/MyStudent.d.ts +1 -1
  151. package/dist/services/SurveyService.d.ts +11 -0
  152. package/package.json +1 -1
  153. 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,7 @@
1
+ /// <reference types="react" />
2
+ interface type_props {
3
+ title: string;
4
+ handleEdit?: Function;
5
+ }
6
+ declare const CardNameButton: ({ title, handleEdit }: type_props) => JSX.Element;
7
+ export default CardNameButton;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface cardProps {
3
+ title: string;
4
+ value: number;
5
+ }
6
+ declare const CardTotal: ({ title, value }: cardProps) => JSX.Element;
7
+ export default CardTotal;
@@ -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,6 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ time: string;
4
+ }
5
+ declare const ConvertTime: ({ time }: Props) => JSX.Element;
6
+ export default ConvertTime;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabNote: (props: any) => JSX.Element;
3
+ export default CustomTabNote;
@@ -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,2 @@
1
+ export declare const apiSelectQuestionAll: () => Promise<import("axios").AxiosResponse<any>>;
2
+ export declare const postQuestion: (id: number, data: any) => void;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { ItemConduct } from "../../constant/types";
3
+ interface Props {
4
+ listItem: ItemConduct[];
5
+ }
6
+ declare const ConductItem: FC<Props>;
7
+ export default ConductItem;
@@ -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,6 @@
1
+ /// <reference types="react" />
2
+ interface INoteProps {
3
+ isTeacherNote: boolean;
4
+ }
5
+ declare const Note: (props: INoteProps) => JSX.Element;
6
+ export default Note;
@@ -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 SessionResultNote: () => JSX.Element;
3
+ export default SessionResultNote;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ declare type profileData = {
3
+ informationUser: any;
4
+ partnerData: any;
5
+ };
6
+ declare const _default: React.ForwardRefExoticComponent<profileData & React.RefAttributes<unknown>>;
7
+ export default _default;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const RadiaBarChart: () => JSX.Element;
3
+ export default RadiaBarChart;
@@ -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,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -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,2 @@
1
+ /// <reference types="react" />
2
+ export declare function useIsMounted(): import("react").MutableRefObject<boolean>;
@@ -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,5 @@
1
+ declare const useProfileDialog: () => {
2
+ partnerData: any;
3
+ getPartnerProfileSelector: (id: string) => Promise<void>;
4
+ };
5
+ export default useProfileDialog;
@@ -0,0 +1,2 @@
1
+ export declare const getAllSelectQuestion: (dispatch: any) => Promise<any>;
2
+ export declare const postQuestionServies: (dispatch: any, id: number, data: any) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => Record<"title" | "body" | "tabs" | "tabLabel" | "tabLabelActiveWhite" | "tabLabelActive", string>;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const PreviewSurvey: FC;
3
+ export default PreviewSurvey;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SessionResultComponent: FC;
3
+ export default SessionResultComponent;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SurveyIndex: FC;
3
+ export default SurveyIndex;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SurveyResult: FC;
3
+ export default SurveyResult;
@@ -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,7 @@
1
+ import { FC } from "react";
2
+ import { ItemConduct } from "../../constant/types";
3
+ interface Props {
4
+ listItem: ItemConduct[];
5
+ }
6
+ declare const ConductItem: FC<Props>;
7
+ export default ConductItem;
@@ -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;