mario-teacher-student-client 2.2.6-beta → 2.2.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/ConductSurvey/components/HeaderSurvey.d.ts +1 -0
- package/dist/containers/ConductSurvey/hooks/useConductSurvey.d.ts +1 -0
- package/dist/containers/ExternalSurvey/api/externalService.d.ts +2 -1
- package/dist/containers/ExternalSurvey/constant/types.d.ts +4 -0
- package/dist/containers/ExternalSurvey/hooks/useExternalSurvey.d.ts +2 -0
- package/dist/containers/Surveys/components/StepComponents/CreateSurveyComponent.d.ts +1 -1
- package/dist/containers/Surveys/components/StepComponents/ModelSelectQuestion.d.ts +1 -1
- package/dist/containers/Surveys/components/StepComponents/ModelSelectSurveyTemplate.d.ts +1 -1
- package/dist/containers/Surveys/constants/types.d.ts +3 -2
- package/dist/containers/Surveys/hook/useCreateSurvey.d.ts +7 -7
- package/dist/containers/Surveys/hook/useExternalSurveyList.d.ts +1 -1
- package/dist/containers/Surveys/hook/useFormCreateSurvey.d.ts +19 -0
- package/dist/containers/Surveys/hook/useSelectQuestion.d.ts +26 -0
- package/dist/containers/Surveys/hook/useSelectStudent.d.ts +15 -0
- package/dist/index.css +5 -0
- package/dist/index.js +445 -297
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +445 -297
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { BODY_TYPE_EXTERNAL } from "../constant/types";
|
|
1
2
|
export declare const shareSurvey: (data: any) => void;
|
|
2
3
|
export declare const getAllEduTeacher: () => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
-
export declare const startExternalSurvey: (
|
|
4
|
+
export declare const startExternalSurvey: (body: BODY_TYPE_EXTERNAL) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
5
|
export declare const updateItemQuestionAnswer: (isAdditional: boolean, body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
6
|
export declare const finishExternalSurvey: (externalSurveyId: number, email: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -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 }: CREATE_SURVEY_PROPS) => JSX.Element;
|
|
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 }: CREATE_SURVEY_PROPS) => JSX.Element;
|
|
4
4
|
export default CreateSurveyComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MODEL_SELECT_QUESTION } from "../../constants/types";
|
|
3
|
-
declare const ModelSelectQuestion: ({ open, handleClose, template, selectQuestion, handleSelectTemplate, handleSelectQuestion,
|
|
3
|
+
declare const ModelSelectQuestion: ({ open, handleClose, template, selectQuestion, handleSelectTemplate, handleSelectQuestion, handleCheckInsertQuestion, handleInsertAllQuestion }: MODEL_SELECT_QUESTION) => JSX.Element;
|
|
4
4
|
export default ModelSelectQuestion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SELECT_SURVEY_MODEL } from "../../constants/types";
|
|
3
|
-
declare const ModelSelectSurveyTemplate: ({ open, handleClose, listTemplate, handleInsertQuestion, handleSelectTemplate, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion,
|
|
3
|
+
declare const ModelSelectSurveyTemplate: ({ open, handleClose, listTemplate, handleInsertQuestion, handleSelectTemplate, contentModelQuestion, handleCloseModelEdit, handleChangeModelQuestion, handleSelectQuestion, handleCheckCountQuestionByType, handleCheckTypeQuestion, dataFormCreateSurvey, handleCheckInsertQuestion, handleCheckSelectTemplate, handleInsertAllQuestion }: SELECT_SURVEY_MODEL) => JSX.Element;
|
|
4
4
|
export default ModelSelectSurveyTemplate;
|
|
@@ -133,6 +133,7 @@ export interface CREATE_SURVEY_PROPS {
|
|
|
133
133
|
handleCheckCountQuestionByType: Function;
|
|
134
134
|
handleCheckInsertQuestion: Function;
|
|
135
135
|
handleCheckSelectTemplate: Function;
|
|
136
|
+
handleInsertAllQuestion: Function;
|
|
136
137
|
}
|
|
137
138
|
export interface QUESTION_TEMPLATE {
|
|
138
139
|
questionId: number;
|
|
@@ -172,12 +173,12 @@ export interface SELECT_SURVEY_MODEL {
|
|
|
172
173
|
handleCloseModelEdit: Function;
|
|
173
174
|
handleChangeModelQuestion: Function;
|
|
174
175
|
handleSelectQuestion: Function;
|
|
175
|
-
handleCheckSelectQuestion: Function;
|
|
176
176
|
handleCheckTypeQuestion: Function;
|
|
177
177
|
handleCheckCountQuestionByType: Function;
|
|
178
178
|
dataFormCreateSurvey: FORM_SURVEY;
|
|
179
179
|
handleCheckInsertQuestion: Function;
|
|
180
180
|
handleCheckSelectTemplate: Function;
|
|
181
|
+
handleInsertAllQuestion: Function;
|
|
181
182
|
}
|
|
182
183
|
export interface REVIEW_SURVEY_PROPS {
|
|
183
184
|
dataFormCreateSurvey: FORM_SURVEY;
|
|
@@ -196,8 +197,8 @@ export interface MODEL_SELECT_QUESTION {
|
|
|
196
197
|
selectQuestion?: QUESTION_TEMPLATE[];
|
|
197
198
|
handleSelectTemplate: Function;
|
|
198
199
|
handleSelectQuestion: Function;
|
|
199
|
-
handleCheckSelectQuestion: Function;
|
|
200
200
|
handleCheckInsertQuestion: Function;
|
|
201
|
+
handleInsertAllQuestion: Function;
|
|
201
202
|
}
|
|
202
203
|
export interface CONTENT_MODEL_QUESTION {
|
|
203
204
|
open: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CONTENT_MODEL_QUESTION, FILTER_STUDENT, FORM_SURVEY,
|
|
3
|
-
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
|
+
import { CONTENT_MODEL_QUESTION, FILTER_STUDENT, FORM_SURVEY, STUDENT_SURVEY_RESPONSE, TEMPLATE_SURVEY } from "../constants/types";
|
|
4
3
|
declare const useListSurveyDetail: () => {
|
|
5
4
|
filters: FILTER_STUDENT;
|
|
6
5
|
students: STUDENT_SURVEY_RESPONSE | undefined;
|
|
@@ -15,8 +14,8 @@ declare const useListSurveyDetail: () => {
|
|
|
15
14
|
handleSelectStudent: (studentIds: number[]) => void;
|
|
16
15
|
setDataFormCreateSurvey: import("react").Dispatch<import("react").SetStateAction<FORM_SURVEY>>;
|
|
17
16
|
onChangeValueForm: (event: any) => void;
|
|
18
|
-
handleChangeDate: (date: MaterialUiPickersDate
|
|
19
|
-
handleChangeInputSearch: (event:
|
|
17
|
+
handleChangeDate: (date: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
18
|
+
handleChangeInputSearch: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
20
19
|
handleChangeFavorite: () => void;
|
|
21
20
|
handleChangeGrade: (grade: string) => void;
|
|
22
21
|
handleSelectTemplate: (template: TEMPLATE_SURVEY) => void;
|
|
@@ -30,10 +29,10 @@ declare const useListSurveyDetail: () => {
|
|
|
30
29
|
handleCreateSurvey: () => Promise<void>;
|
|
31
30
|
handleCloseModelEdit: () => void;
|
|
32
31
|
setContentModelQuestion: import("react").Dispatch<import("react").SetStateAction<CONTENT_MODEL_QUESTION>>;
|
|
33
|
-
handleSelectQuestion: (question: QUESTION_TEMPLATE) => void;
|
|
34
|
-
handleCheckSelectQuestion: (template: TEMPLATE_SURVEY, question: QUESTION_TEMPLATE) => boolean;
|
|
32
|
+
handleSelectQuestion: (question: import("../constants/types").QUESTION_TEMPLATE) => void;
|
|
33
|
+
handleCheckSelectQuestion: (template: TEMPLATE_SURVEY, question: import("../constants/types").QUESTION_TEMPLATE) => boolean;
|
|
35
34
|
handleChangeModelQuestion: (template: TEMPLATE_SURVEY) => void;
|
|
36
|
-
handleSelectQuestionCollapse: (template: TEMPLATE_SURVEY, question: QUESTION_TEMPLATE) => void;
|
|
35
|
+
handleSelectQuestionCollapse: (template: TEMPLATE_SURVEY, question: import("../constants/types").QUESTION_TEMPLATE) => void;
|
|
37
36
|
handleCheckTypeQuestion: (template: TEMPLATE_SURVEY) => import("../constants/types").QuestionType[];
|
|
38
37
|
handleCheckCountQuestionByType: (template: TEMPLATE_SURVEY, type: string) => number;
|
|
39
38
|
handleChangePagePreview: () => void;
|
|
@@ -58,5 +57,6 @@ declare const useListSurveyDetail: () => {
|
|
|
58
57
|
handleDeleteEmail: (email: string) => void;
|
|
59
58
|
handleToggleModelConfirmShare: () => void;
|
|
60
59
|
openModelConfirmShare: boolean;
|
|
60
|
+
handleInsertAllQuestion: (questionTemplate: import("../constants/types").QUESTION_TEMPLATE[]) => void;
|
|
61
61
|
};
|
|
62
62
|
export default useListSurveyDetail;
|
|
@@ -6,6 +6,6 @@ declare const useExternalSurveyList: () => {
|
|
|
6
6
|
externalSurveys: EXTERNAL_SURVEY[];
|
|
7
7
|
handleSort: (e: string) => void;
|
|
8
8
|
handleChangeInputSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
-
|
|
9
|
+
goToExternalSurveyResult: (externalSurveyId: number) => void;
|
|
10
10
|
};
|
|
11
11
|
export default useExternalSurveyList;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
|
+
import { FORM_SURVEY } from "../constants/types";
|
|
3
|
+
interface PropsCustomHook {
|
|
4
|
+
dataFormCreateSurvey: FORM_SURVEY;
|
|
5
|
+
setDataFormCreateSurvey: Function;
|
|
6
|
+
setAdditionalText: Function;
|
|
7
|
+
additionalText: string;
|
|
8
|
+
}
|
|
9
|
+
declare const useFormCreateSurvey: ({ dataFormCreateSurvey, setDataFormCreateSurvey, additionalText, setAdditionalText }: PropsCustomHook) => {
|
|
10
|
+
handleToggleButtonHeader: () => boolean;
|
|
11
|
+
handleChangeFavorite: () => void;
|
|
12
|
+
handleCreateAddional: () => void;
|
|
13
|
+
onChangeValueForm: (event: any) => void;
|
|
14
|
+
handleChangeDate: (date: MaterialUiPickersDate | null) => void;
|
|
15
|
+
handleChangeAdditionalText: (event: any) => void;
|
|
16
|
+
handleRemoveQuestion: (questionText: string) => void;
|
|
17
|
+
handleNextStep: (step?: number | undefined) => void;
|
|
18
|
+
};
|
|
19
|
+
export default useFormCreateSurvey;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CONTENT_MODEL_QUESTION, FORM_SURVEY, QUESTION_TEMPLATE, TEMPLATE_SURVEY } from "../constants/types";
|
|
2
|
+
interface PropsCustomHook {
|
|
3
|
+
dataFormCreateSurvey: FORM_SURVEY;
|
|
4
|
+
templateSurvey: TEMPLATE_SURVEY[];
|
|
5
|
+
setDataFormCreateSurvey: Function;
|
|
6
|
+
contentModelQuestion: CONTENT_MODEL_QUESTION;
|
|
7
|
+
setContentModelQuestion: Function;
|
|
8
|
+
setOpenModelSelectTemplate: Function;
|
|
9
|
+
handleCloseModelEdit: Function;
|
|
10
|
+
openModelSelectTemplate: Boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const useSelectQuestion: ({ dataFormCreateSurvey, templateSurvey, setDataFormCreateSurvey, contentModelQuestion, setContentModelQuestion, setOpenModelSelectTemplate, handleCloseModelEdit, openModelSelectTemplate }: PropsCustomHook) => {
|
|
13
|
+
handleCheckSelectQuestion: (template: TEMPLATE_SURVEY, question: QUESTION_TEMPLATE) => boolean;
|
|
14
|
+
handleCheckCountQuestionByType: (template: TEMPLATE_SURVEY, type: string) => number;
|
|
15
|
+
handleSelectQuestionCollapse: (template: TEMPLATE_SURVEY, question: QUESTION_TEMPLATE) => void;
|
|
16
|
+
handleCheckInsertQuestion: (template: TEMPLATE_SURVEY, countSelectQuestion: number) => boolean;
|
|
17
|
+
handleSelectQuestion: (question: QUESTION_TEMPLATE) => void;
|
|
18
|
+
handleCheckTypeQuestion: (template: TEMPLATE_SURVEY) => import("../constants/types").QuestionType[];
|
|
19
|
+
handleCheckSelectTemplate: (template: TEMPLATE_SURVEY) => boolean;
|
|
20
|
+
handleInsertQuestion: () => void;
|
|
21
|
+
handleSelectTemplate: (template: TEMPLATE_SURVEY) => void;
|
|
22
|
+
handleChangeModelQuestion: (template: TEMPLATE_SURVEY) => void;
|
|
23
|
+
handleToggleModel: () => void;
|
|
24
|
+
handleInsertAllQuestion: (questionTemplate: QUESTION_TEMPLATE[]) => void;
|
|
25
|
+
};
|
|
26
|
+
export default useSelectQuestion;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FORM_SURVEY, STUDENT_SURVEY_RESPONSE } from "../constants/types";
|
|
2
|
+
interface PropsCustomHook {
|
|
3
|
+
changeFilters: Function;
|
|
4
|
+
inputSearch: any;
|
|
5
|
+
students?: STUDENT_SURVEY_RESPONSE;
|
|
6
|
+
dataFormCreateSurvey: FORM_SURVEY;
|
|
7
|
+
setDataFormCreateSurvey: Function;
|
|
8
|
+
}
|
|
9
|
+
declare const useSelectStudent: ({ changeFilters, inputSearch, students, dataFormCreateSurvey, setDataFormCreateSurvey }: PropsCustomHook) => {
|
|
10
|
+
resizeWidthTable: (percent: number) => number;
|
|
11
|
+
handleChangeGrade: (grade: string) => void;
|
|
12
|
+
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
handleSelectStudent: (studentIds: number[]) => void;
|
|
14
|
+
};
|
|
15
|
+
export default useSelectStudent;
|
package/dist/index.css
CHANGED
|
@@ -14997,6 +14997,11 @@ h4._3lNz0 {
|
|
|
14997
14997
|
color: #22543d;
|
|
14998
14998
|
width: 138px !important; }
|
|
14999
14999
|
|
|
15000
|
+
._3tbAL ._suoGk {
|
|
15001
|
+
background-color: #ffd9d7;
|
|
15002
|
+
color: #822727;
|
|
15003
|
+
width: 138px !important; }
|
|
15004
|
+
|
|
15000
15005
|
.__12h2 {
|
|
15001
15006
|
padding: 16px;
|
|
15002
15007
|
border-radius: 50px;
|