mario-education 2.4.523-feedback → 2.4.525-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/Select/SelectFilterSurvey.d.ts +4 -0
- package/dist/components/selector/CustomFilterComponent.d.ts +3 -1
- package/dist/components/selector/CustomFilterMobile.d.ts +15 -2
- package/dist/containers/SurveyDashboard/configs/constants.d.ts +3 -1
- package/dist/containers/SurveyDashboard/configs/types.d.ts +38 -2
- package/dist/containers/SurveyDashboard/hooks/useChartDatas.d.ts +3 -3
- package/dist/containers/SurveyDashboard/hooks/useListSurvey.d.ts +3 -1
- package/dist/containers/SurveyDashboard/hooks/useSurveyDetail.d.ts +7 -1
- package/dist/index.css +24 -2
- package/dist/index.js +1281 -267
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1281 -267
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "react-datepicker/dist/react-datepicker.css";
|
|
2
|
+
import { PROPS_FILTERS_COMPONENT_SURVEY } from "../../containers/SurveyDashboard/configs/types";
|
|
3
|
+
declare const SelectFilterSurvey: ({ studentUserId, studentId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters, btnStyle, filter, teacherUserId, changeCurrentTeacherUserId, labelBox, setLabelBox }: PROPS_FILTERS_COMPONENT_SURVEY) => JSX.Element;
|
|
4
|
+
export default SelectFilterSurvey;
|
|
@@ -40,6 +40,8 @@ interface PROPS_FILTER {
|
|
|
40
40
|
handleDownloadCsv?: any;
|
|
41
41
|
onChangeOptionDate?: Function;
|
|
42
42
|
renderOption?: string;
|
|
43
|
+
isSelectMulti?: boolean;
|
|
44
|
+
isDetailSurvey?: boolean;
|
|
43
45
|
}
|
|
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;
|
|
46
|
+
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, isSelectMulti, isDetailSurvey }: PROPS_FILTER) => JSX.Element;
|
|
45
47
|
export default CustomFilterComponent;
|
|
@@ -2,14 +2,23 @@ interface FILTER {
|
|
|
2
2
|
startDate?: number | null;
|
|
3
3
|
endDate?: number | null;
|
|
4
4
|
isFavorite?: boolean;
|
|
5
|
+
studentId?: number;
|
|
6
|
+
flag?: string;
|
|
5
7
|
optionDate?: string;
|
|
6
8
|
}
|
|
9
|
+
interface STUDENT {
|
|
10
|
+
email: string;
|
|
11
|
+
gradeLevel: string;
|
|
12
|
+
id: number;
|
|
13
|
+
studentName: string;
|
|
14
|
+
actionScore: number;
|
|
15
|
+
}
|
|
7
16
|
interface PROPS_FILTER {
|
|
8
17
|
filters?: FILTER;
|
|
9
18
|
handleChangeStartDate?: Function;
|
|
10
19
|
handleChangeEndDate?: Function;
|
|
11
20
|
handleChangeInputSearch: Function;
|
|
12
|
-
inputSearch
|
|
21
|
+
inputSearch?: any;
|
|
13
22
|
isShowSelectRight?: boolean;
|
|
14
23
|
handleChangeStatus?: Function;
|
|
15
24
|
placeholderSearch?: string;
|
|
@@ -27,6 +36,10 @@ interface PROPS_FILTER {
|
|
|
27
36
|
onChangeGrade?: Function;
|
|
28
37
|
onChangeOptionDate?: Function;
|
|
29
38
|
renderOption?: string;
|
|
39
|
+
isSelectMulti?: boolean;
|
|
40
|
+
studentList?: STUDENT[];
|
|
41
|
+
onSelectStudent?: Function;
|
|
42
|
+
isDetailSurvey?: boolean;
|
|
30
43
|
}
|
|
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;
|
|
44
|
+
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar, optionCustomSelect, handleChangeCustomSelect, toggleKeyCustom, toggleContentCustom, handleToggleCustom, handleDownloadCsv, onChangeGrade, onChangeOptionDate, renderOption, isSelectMulti, studentList, onSelectStudent, isDetailSurvey }: PROPS_FILTER) => JSX.Element;
|
|
32
45
|
export default CustomFilterMobile;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStudentByAge, ITopMostSurveyUsed, FlagTab, FilterStudentFlag } from "./types";
|
|
1
|
+
import { IStudentByAge, ITopMostSurveyUsed, FlagTab, FilterStudentFlag, GRADES_OPTION } from "./types";
|
|
2
2
|
import { IAnswer } from "./questionModelType";
|
|
3
3
|
export declare const colors: string[];
|
|
4
4
|
export declare const INITIAL_BEST_FRIENDS: {
|
|
@@ -20,6 +20,8 @@ export declare const LEARNING_STRATEGY_INIT: {
|
|
|
20
20
|
learningStrategies: never[];
|
|
21
21
|
};
|
|
22
22
|
export declare const GRAGE_DEFAULT: string[];
|
|
23
|
+
export declare const GRADE_DEFAULT_SURVEY: string[];
|
|
24
|
+
export declare const GRADE_SURVEY: GRADES_OPTION[];
|
|
23
25
|
export declare const INITIAl_COLUNM_CHART_AND_PERCENT: {
|
|
24
26
|
overviewQuestionChoice: never[];
|
|
25
27
|
type: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFilter, Student } from "../../../utils/type";
|
|
2
|
+
import { ISeries, IShowByLabelBox } from "../../Dashboard/configs/types";
|
|
2
3
|
import { QuestionSummarizeType } from "../../ExternalSurvey/constant/types";
|
|
3
4
|
import { QuestionType } from "./constants";
|
|
4
5
|
import { QUESTION_ADDITIONAL } from "./questionModelType";
|
|
@@ -331,8 +332,9 @@ export interface FILTER_SURVEY {
|
|
|
331
332
|
isSchedule?: boolean;
|
|
332
333
|
flag?: string;
|
|
333
334
|
isMyFavorite?: boolean;
|
|
334
|
-
grade?: string;
|
|
335
|
+
grade?: string[];
|
|
335
336
|
optionDate?: string;
|
|
337
|
+
studentId?: number;
|
|
336
338
|
}
|
|
337
339
|
export interface FILTER_SURVEY_DETAIL {
|
|
338
340
|
searchString?: string;
|
|
@@ -842,4 +844,38 @@ export interface IBarChartQuestion {
|
|
|
842
844
|
templateName: string;
|
|
843
845
|
studentAnswers: IStudentAnswers[];
|
|
844
846
|
}
|
|
847
|
+
export interface ILabelBoxSurvey {
|
|
848
|
+
calendar: ICalenDarLabelBox;
|
|
849
|
+
calendarTime?: ICalendarTimeLabelBox;
|
|
850
|
+
gender: IGenderLabelBox;
|
|
851
|
+
grade: [string];
|
|
852
|
+
bandScore: number;
|
|
853
|
+
favoriteSurvey?: number;
|
|
854
|
+
academicYearId: number;
|
|
855
|
+
showBy?: IShowByLabelBox;
|
|
856
|
+
}
|
|
857
|
+
export interface PROPS_FILTERS_COMPONENT_SURVEY {
|
|
858
|
+
teacherId?: number;
|
|
859
|
+
studentUserId?: string;
|
|
860
|
+
studentId?: number;
|
|
861
|
+
teacherUserId?: string;
|
|
862
|
+
studentDefault?: Student;
|
|
863
|
+
handleChangeLastYear?: Function;
|
|
864
|
+
filter?: DashboardFilter;
|
|
865
|
+
name: string;
|
|
866
|
+
icon: string;
|
|
867
|
+
handleChangeFilters: Function;
|
|
868
|
+
option?: any[];
|
|
869
|
+
defautl?: number;
|
|
870
|
+
onChangeFilters?: (filters: IFilter) => void;
|
|
871
|
+
academicYearId?: number;
|
|
872
|
+
btnStyle?: any;
|
|
873
|
+
changeCurrentTeacherUserId?: (userId: string) => void;
|
|
874
|
+
setLabelBox: Function;
|
|
875
|
+
labelBox: ILabelBoxSurvey;
|
|
876
|
+
}
|
|
877
|
+
export interface GRADES_OPTION {
|
|
878
|
+
label: string;
|
|
879
|
+
value: string;
|
|
880
|
+
}
|
|
845
881
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { PROPS_FILTERS_COMPONENT_SURVEY } from "../configs/types";
|
|
3
3
|
declare const useChartDatas: () => {
|
|
4
4
|
user: any;
|
|
5
5
|
filter: import("../configs/types").DashboardFilter;
|
|
6
|
-
LIST_FILTERS_LEFT:
|
|
7
|
-
LIST_FILTERS_RIGHT:
|
|
6
|
+
LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT_SURVEY[];
|
|
7
|
+
LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT_SURVEY[];
|
|
8
8
|
totalCardData: ({
|
|
9
9
|
icon: string;
|
|
10
10
|
title: string;
|
|
@@ -47,8 +47,10 @@ declare const useListSurvey: (pageSize?: number | undefined) => {
|
|
|
47
47
|
goToTemplateSurvey: () => void;
|
|
48
48
|
goToDashboardSurvey: () => void;
|
|
49
49
|
goToSurveyList: () => void;
|
|
50
|
-
handleChangeGrade: (grade: string) => void;
|
|
50
|
+
handleChangeGrade: (grade: string[]) => void;
|
|
51
51
|
onChangeOptionDate: (option: string) => void;
|
|
52
|
+
dataStudents: never[];
|
|
53
|
+
handleChangeStudent: (studentId: any) => void;
|
|
52
54
|
onEditSurvey: (id: number) => void;
|
|
53
55
|
handlePublishSurvey: (surveyId: any) => Promise<void>;
|
|
54
56
|
};
|
|
@@ -60,9 +60,15 @@ declare const useSurveyDetail: () => {
|
|
|
60
60
|
filters: FILTER_SURVEY_DETAIL;
|
|
61
61
|
handleChangeEndDate: (date: MaterialUiPickersDate | null) => void;
|
|
62
62
|
handleChangeStartDate: (date: MaterialUiPickersDate | null) => void;
|
|
63
|
-
handleChangeGrade: (grade: string) => void;
|
|
63
|
+
handleChangeGrade: (grade: string[]) => void;
|
|
64
64
|
onChangeOptionDate: (option: string) => void;
|
|
65
65
|
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
66
66
|
inputSearch: import("react").MutableRefObject<any>;
|
|
67
|
+
handleChangeStudent: (student: any) => void;
|
|
68
|
+
dataStudentSurvey: never[];
|
|
69
|
+
isShowFilter: boolean;
|
|
70
|
+
handleShowFilter: () => void;
|
|
71
|
+
isShowFilterCalendar: boolean;
|
|
72
|
+
handleShowFilterCalendar: () => void;
|
|
67
73
|
};
|
|
68
74
|
export default useSurveyDetail;
|
package/dist/index.css
CHANGED
|
@@ -167,13 +167,13 @@ tbody._b-AXV tr {
|
|
|
167
167
|
max-width: 218px;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
._1cx7c
|
|
170
|
+
._1cx7c>input {
|
|
171
171
|
border: none;
|
|
172
172
|
outline: none;
|
|
173
173
|
box-shadow: none;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
._1cx7c
|
|
176
|
+
._1cx7c>input:focus {
|
|
177
177
|
outline: none;
|
|
178
178
|
box-shadow: none;
|
|
179
179
|
}
|
|
@@ -1366,6 +1366,20 @@ tbody._b-AXV tr {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
|
|
1369
|
+
@media (max-width: 767px) {
|
|
1370
|
+
._3QFAQ {
|
|
1371
|
+
height: auto;
|
|
1372
|
+
flex-direction: column;
|
|
1373
|
+
border-radius: 8px;
|
|
1374
|
+
width: auto;
|
|
1375
|
+
border: none;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
._37Lm- {
|
|
1379
|
+
padding: 20px;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1369
1383
|
/* CSS */
|
|
1370
1384
|
._3m2ZU input::-webkit-calendar-picker-indicator {
|
|
1371
1385
|
display: none;
|
|
@@ -1416,6 +1430,7 @@ datalist option:focus {
|
|
|
1416
1430
|
height: 40px;
|
|
1417
1431
|
|
|
1418
1432
|
}
|
|
1433
|
+
|
|
1419
1434
|
._G7wNn {
|
|
1420
1435
|
font-size: 18px;
|
|
1421
1436
|
margin-right: 8px;
|
|
@@ -12980,6 +12995,13 @@ p._1YLGi {
|
|
|
12980
12995
|
border-radius: 12px;
|
|
12981
12996
|
height: 50px;
|
|
12982
12997
|
width: 100%; }
|
|
12998
|
+
@media (max-width: 767px) {
|
|
12999
|
+
._1SOsh {
|
|
13000
|
+
height: auto;
|
|
13001
|
+
flex-direction: column;
|
|
13002
|
+
padding: 8px;
|
|
13003
|
+
border-radius: 8px;
|
|
13004
|
+
width: auto; } }
|
|
12983
13005
|
._1SOsh ._Od6MC {
|
|
12984
13006
|
position: absolute;
|
|
12985
13007
|
left: 10px;
|