mario-education 2.4.519-feedback → 2.4.521-feedback
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/selector/CustomFilterComponent.d.ts +5 -1
- package/dist/components/selector/CustomFilterMobile.d.ts +5 -1
- package/dist/containers/SurveyDashboard/apiClient/surveyService.d.ts +4 -4
- package/dist/containers/SurveyDashboard/configs/types.d.ts +9 -0
- package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +2 -0
- package/dist/containers/SurveyDashboard/hooks/useSurveyDetail.d.ts +9 -1
- package/dist/index.js +318 -60
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +318 -60
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ interface FILTER {
|
|
|
5
5
|
isFavorite?: boolean;
|
|
6
6
|
studentId?: number;
|
|
7
7
|
flag?: string;
|
|
8
|
+
optionDate?: string;
|
|
8
9
|
}
|
|
9
10
|
interface STUDENT {
|
|
10
11
|
email: string;
|
|
@@ -35,7 +36,10 @@ interface PROPS_FILTER {
|
|
|
35
36
|
academicOption?: any;
|
|
36
37
|
handleChangeAcademicYear?: Function;
|
|
37
38
|
valueAcademicYear?: object;
|
|
39
|
+
onChangeGrade?: Function;
|
|
38
40
|
handleDownloadCsv?: any;
|
|
41
|
+
onChangeOptionDate?: Function;
|
|
42
|
+
renderOption?: string;
|
|
39
43
|
}
|
|
40
|
-
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv }: PROPS_FILTER) => JSX.Element;
|
|
44
|
+
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent, toggleKeyCustom, handleToggleCustom, toggleContentCustom, optionCustomSelect, handleChangeCustomSelect, surveyOptions, handleChangeSurveyOption, academicOption, handleChangeAcademicYear, valueAcademicYear, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption }: PROPS_FILTER) => JSX.Element;
|
|
41
45
|
export default CustomFilterComponent;
|
|
@@ -2,6 +2,7 @@ interface FILTER {
|
|
|
2
2
|
startDate?: number | null;
|
|
3
3
|
endDate?: number | null;
|
|
4
4
|
isFavorite?: boolean;
|
|
5
|
+
optionDate?: string;
|
|
5
6
|
}
|
|
6
7
|
interface PROPS_FILTER {
|
|
7
8
|
filters?: FILTER;
|
|
@@ -23,6 +24,9 @@ interface PROPS_FILTER {
|
|
|
23
24
|
toggleContentCustom?: string;
|
|
24
25
|
handleToggleCustom?: Function;
|
|
25
26
|
handleDownloadCsv?: any;
|
|
27
|
+
onChangeGrade?: Function;
|
|
28
|
+
onChangeOptionDate?: Function;
|
|
29
|
+
renderOption?: string;
|
|
26
30
|
}
|
|
27
|
-
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar, optionCustomSelect, handleChangeCustomSelect, toggleKeyCustom, toggleContentCustom, handleToggleCustom, handleDownloadCsv }: PROPS_FILTER) => JSX.Element;
|
|
31
|
+
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar, optionCustomSelect, handleChangeCustomSelect, toggleKeyCustom, toggleContentCustom, handleToggleCustom, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption }: PROPS_FILTER) => JSX.Element;
|
|
28
32
|
export default CustomFilterMobile;
|
|
@@ -25,9 +25,9 @@ export declare const getDashboardFlagSurvey: (filters: FILTER_OVERVIEW_SURVEY) =
|
|
|
25
25
|
export declare const getDashboardTemplateSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
|
|
26
26
|
export declare const getSurveysExport: (filter: FILTER_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
|
|
27
27
|
export declare const getStudentSurveysExport: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
28
|
-
export declare const getRatingsOfQuestions: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
29
|
-
export declare const getTotalByQuestion: (surveyId: number,
|
|
30
|
-
export declare const getResponsesDistribution: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
28
|
+
export declare const getRatingsOfQuestions: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
29
|
+
export declare const getTotalByQuestion: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
30
|
+
export declare const getResponsesDistribution: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
31
31
|
export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
32
32
|
export declare const getRatingLabelSurvey: (isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
33
|
-
export declare const getAnswerChart: (surveyId: number,
|
|
33
|
+
export declare const getAnswerChart: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -330,6 +330,15 @@ export interface FILTER_SURVEY {
|
|
|
330
330
|
isSchedule?: boolean;
|
|
331
331
|
flag?: string;
|
|
332
332
|
isMyFavorite?: boolean;
|
|
333
|
+
grade?: string;
|
|
334
|
+
optionDate?: string;
|
|
335
|
+
}
|
|
336
|
+
export interface FILTER_SURVEY_DETAIL {
|
|
337
|
+
searchString?: string;
|
|
338
|
+
startDate?: number | null;
|
|
339
|
+
endDate?: number | null;
|
|
340
|
+
grade?: string;
|
|
341
|
+
optionDate?: string;
|
|
333
342
|
}
|
|
334
343
|
export interface SURVEY_RESPONSE {
|
|
335
344
|
currentPage: number;
|
|
@@ -47,5 +47,7 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
|
|
|
47
47
|
goToTemplateSurvey: () => void;
|
|
48
48
|
goToDashboardSurvey: () => void;
|
|
49
49
|
goToSurveyList: () => void;
|
|
50
|
+
handleChangeGrade: (grade: string) => void;
|
|
51
|
+
onChangeOptionDate: (option: string) => void;
|
|
50
52
|
};
|
|
51
53
|
export default useListSurvey;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DETAIL, IBarChartQuestion, IQuestionDto, IQuestionResponse, IStudentDetail, IStudentQuestionResponse, STUDENT_SURVEY_DETAIL } from "../configs/types";
|
|
2
|
+
import { DETAIL, FILTER_SURVEY_DETAIL, IBarChartQuestion, IQuestionDto, IQuestionResponse, IStudentDetail, IStudentQuestionResponse, STUDENT_SURVEY_DETAIL } from "../configs/types";
|
|
3
3
|
import { IReadinessToLearning } from "../../MyStudent/components/NewOverview/Chat/types/types";
|
|
4
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
4
5
|
declare const useSurveyDetail: () => {
|
|
5
6
|
detailSurvey: DETAIL | null | undefined;
|
|
6
7
|
onHandleGoBack: () => void;
|
|
@@ -56,5 +57,12 @@ declare const useSurveyDetail: () => {
|
|
|
56
57
|
categoryDropdownOptions: string[];
|
|
57
58
|
categoryDropdownChose: string;
|
|
58
59
|
setCategoryDropdownChose: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
60
|
+
filters: FILTER_SURVEY_DETAIL;
|
|
61
|
+
handleChangeEndDate: (date: MaterialUiPickersDate | null) => void;
|
|
62
|
+
handleChangeStartDate: (date: MaterialUiPickersDate | null) => void;
|
|
63
|
+
handleChangeGrade: (grade: string) => void;
|
|
64
|
+
onChangeOptionDate: (option: string) => void;
|
|
65
|
+
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
66
|
+
inputSearch: import("react").MutableRefObject<any>;
|
|
59
67
|
};
|
|
60
68
|
export default useSurveyDetail;
|