mario-education 2.4.17-beta → 2.4.20-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/MarioFramework.Education/ClientApp/src/containers/Classes/components/StudentItemSelector.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Classes/components/TeacherItemSelector.d.ts +2 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/classService.d.ts +2 -2
- package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -1
- package/dist/index.css +10 -3
- package/dist/index.js +90 -33
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +90 -33
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ interface Props {
|
|
|
4
4
|
onChange: any;
|
|
5
5
|
externalStudentIds?: number[];
|
|
6
6
|
studentDefault?: Student;
|
|
7
|
+
teacherUserId?: string;
|
|
7
8
|
}
|
|
8
9
|
export interface Student {
|
|
9
10
|
studentId: number;
|
|
@@ -12,6 +13,8 @@ export interface Student {
|
|
|
12
13
|
id: string;
|
|
13
14
|
label?: string;
|
|
14
15
|
value?: string;
|
|
16
|
+
gender?: string;
|
|
17
|
+
mtss?: string;
|
|
15
18
|
}
|
|
16
19
|
declare const StudentItemSelector: FC<Props>;
|
|
17
20
|
export default StudentItemSelector;
|
|
@@ -2,10 +2,12 @@ import { FC } from "react";
|
|
|
2
2
|
interface Props {
|
|
3
3
|
defaultValue: number | null | undefined;
|
|
4
4
|
onChange: Function;
|
|
5
|
+
studentUserId: string;
|
|
5
6
|
}
|
|
6
7
|
export interface Option {
|
|
7
8
|
label: string;
|
|
8
9
|
value: number;
|
|
10
|
+
teacherUserId: string;
|
|
9
11
|
}
|
|
10
12
|
declare const TeacherItemSelector: FC<Props>;
|
|
11
13
|
export default TeacherItemSelector;
|
|
@@ -18,7 +18,7 @@ export declare const activityCircleItems: ({ like, love, interested, curious }:
|
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
20
|
}[];
|
|
21
|
-
export declare const gradeOptions: (grades: string[]) => IOptionSelector[];
|
|
21
|
+
export declare const gradeOptions: (grades: string[], studentUserId?: string | undefined) => IOptionSelector[];
|
|
22
22
|
export declare const genderOptions: {
|
|
23
23
|
value: LegalGenderType;
|
|
24
24
|
label: string;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts
CHANGED
|
@@ -25,5 +25,9 @@ declare const useDashboard: () => {
|
|
|
25
25
|
studentId: number;
|
|
26
26
|
setStudentId: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
27
27
|
onFilter: () => void;
|
|
28
|
+
studentUserId: string;
|
|
29
|
+
setStudentUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
30
|
+
teacherUserId: string;
|
|
31
|
+
setTeacherUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
28
32
|
};
|
|
29
33
|
export default useDashboard;
|
|
@@ -5,5 +5,5 @@ export declare const create: (data: any) => Promise<import("axios").AxiosRespons
|
|
|
5
5
|
export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
6
|
export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
7
|
export declare const getStudents: (classId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
8
|
-
export declare const getAllStudents: (searchString
|
|
9
|
-
export declare const getAllTeachers: () => Promise<import("axios").AxiosResponse<any>>;
|
|
8
|
+
export declare const getAllStudents: (searchString?: string | undefined, userId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
+
export declare const getAllTeachers: (studentUserId?: string | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -16,4 +16,4 @@ export declare const getActivityCircleItems: (filter: any) => Promise<import("ax
|
|
|
16
16
|
export declare const getStudentBySpecialNeed: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
17
17
|
export declare const getStudentByAge: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
18
18
|
export declare const getStudentByGender: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
|
-
export declare const getGrades: () => Promise<import("axios").AxiosResponse<any>>;
|
|
19
|
+
export declare const getGrades: (studentUserId: string) => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/index.css
CHANGED
|
@@ -293,8 +293,15 @@ h6._3zOGW {
|
|
|
293
293
|
|
|
294
294
|
._2PMoX {
|
|
295
295
|
height: auto;
|
|
296
|
-
width:
|
|
297
|
-
|
|
296
|
+
width: 100%;
|
|
297
|
+
-o-object-fit: scale-down;
|
|
298
|
+
object-fit: scale-down;
|
|
299
|
+
}
|
|
300
|
+
._2PMoX._3ZX0b {
|
|
301
|
+
height: 300px;
|
|
302
|
+
width: 100%;
|
|
303
|
+
-o-object-fit: scale-down;
|
|
304
|
+
object-fit: scale-down;
|
|
298
305
|
}
|
|
299
306
|
|
|
300
307
|
._2asi- ._muT01 ._35BzZ {
|
|
@@ -310,7 +317,7 @@ h6._3zOGW {
|
|
|
310
317
|
max-width: 60%;
|
|
311
318
|
}
|
|
312
319
|
._16MpB {
|
|
313
|
-
max-width:
|
|
320
|
+
max-width: 55%;
|
|
314
321
|
}
|
|
315
322
|
}
|
|
316
323
|
|
package/dist/index.js
CHANGED
|
@@ -77,15 +77,20 @@ var remove = function remove(id) {
|
|
|
77
77
|
var getStudents = function getStudents(classId) {
|
|
78
78
|
return marioCore.api.get(CLASS_URL + "/" + classId + "/students");
|
|
79
79
|
};
|
|
80
|
-
var getAllStudents = function getAllStudents(searchString) {
|
|
80
|
+
var getAllStudents = function getAllStudents(searchString, userId) {
|
|
81
81
|
return marioCore.api.get(STUDENT_URL + "/allstudents", {
|
|
82
82
|
params: {
|
|
83
|
-
searchString: searchString
|
|
83
|
+
searchString: searchString,
|
|
84
|
+
userId: userId
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
87
|
};
|
|
87
|
-
var getAllTeachers = function getAllTeachers() {
|
|
88
|
-
return marioCore.api.get(TEACHER_URL
|
|
88
|
+
var getAllTeachers = function getAllTeachers(studentUserId) {
|
|
89
|
+
return marioCore.api.get(TEACHER_URL, {
|
|
90
|
+
params: {
|
|
91
|
+
studentUserId: studentUserId
|
|
92
|
+
}
|
|
93
|
+
});
|
|
89
94
|
};
|
|
90
95
|
|
|
91
96
|
var StudentSelector = function StudentSelector(_ref) {
|
|
@@ -19061,8 +19066,12 @@ var getStudentByGender = function getStudentByGender(filter) {
|
|
|
19061
19066
|
params: filter
|
|
19062
19067
|
});
|
|
19063
19068
|
};
|
|
19064
|
-
var getGrades = function getGrades() {
|
|
19065
|
-
return marioCore.api.get(REPORT_URL + "/grade-levels"
|
|
19069
|
+
var getGrades = function getGrades(studentUserId) {
|
|
19070
|
+
return marioCore.api.get(REPORT_URL + "/grade-levels", {
|
|
19071
|
+
params: {
|
|
19072
|
+
studentUserId: studentUserId
|
|
19073
|
+
}
|
|
19074
|
+
});
|
|
19066
19075
|
};
|
|
19067
19076
|
|
|
19068
19077
|
var LegalGenderType;
|
|
@@ -19187,6 +19196,14 @@ var useDashboard = function useDashboard() {
|
|
|
19187
19196
|
topSkill = _useState19[0],
|
|
19188
19197
|
setTopSkill = _useState19[1];
|
|
19189
19198
|
|
|
19199
|
+
var _useState20 = React.useState(""),
|
|
19200
|
+
teacherUserId = _useState20[0],
|
|
19201
|
+
setTeacherUserId = _useState20[1];
|
|
19202
|
+
|
|
19203
|
+
var _useState21 = React.useState(""),
|
|
19204
|
+
studentUserId = _useState21[0],
|
|
19205
|
+
setStudentUserId = _useState21[1];
|
|
19206
|
+
|
|
19190
19207
|
var callApi = React.useCallback(function (apiCaller, setData, defaultData, type) {
|
|
19191
19208
|
try {
|
|
19192
19209
|
var _temp2 = _catch(function () {
|
|
@@ -19237,7 +19254,7 @@ var useDashboard = function useDashboard() {
|
|
|
19237
19254
|
return hTime;
|
|
19238
19255
|
};
|
|
19239
19256
|
|
|
19240
|
-
var
|
|
19257
|
+
var callApiByStudentUserId = function callApiByStudentUserId(apiCaller, setData, studentUserId, defaultData) {
|
|
19241
19258
|
try {
|
|
19242
19259
|
var _temp5 = function _temp5() {
|
|
19243
19260
|
dispatch(marioCore.setLoading(false));
|
|
@@ -19246,7 +19263,7 @@ var useDashboard = function useDashboard() {
|
|
|
19246
19263
|
dispatch(marioCore.setLoading(true));
|
|
19247
19264
|
|
|
19248
19265
|
var _temp6 = _catch(function () {
|
|
19249
|
-
return Promise.resolve(apiCaller()).then(function (res) {
|
|
19266
|
+
return Promise.resolve(apiCaller(studentUserId)).then(function (res) {
|
|
19250
19267
|
res && setData(res.data);
|
|
19251
19268
|
});
|
|
19252
19269
|
}, function (err) {
|
|
@@ -19285,8 +19302,8 @@ var useDashboard = function useDashboard() {
|
|
|
19285
19302
|
getData();
|
|
19286
19303
|
}, []);
|
|
19287
19304
|
React.useEffect(function () {
|
|
19288
|
-
|
|
19289
|
-
}, []);
|
|
19305
|
+
callApiByStudentUserId(getGrades, setGrades, studentUserId, []);
|
|
19306
|
+
}, [studentUserId]);
|
|
19290
19307
|
return {
|
|
19291
19308
|
setFilter: setFilter,
|
|
19292
19309
|
filter: filter,
|
|
@@ -19311,11 +19328,15 @@ var useDashboard = function useDashboard() {
|
|
|
19311
19328
|
setTeacherId: setTeacherId,
|
|
19312
19329
|
studentId: studentId,
|
|
19313
19330
|
setStudentId: setStudentId,
|
|
19314
|
-
onFilter: onFilter
|
|
19331
|
+
onFilter: onFilter,
|
|
19332
|
+
studentUserId: studentUserId,
|
|
19333
|
+
setStudentUserId: setStudentUserId,
|
|
19334
|
+
teacherUserId: teacherUserId,
|
|
19335
|
+
setTeacherUserId: setTeacherUserId
|
|
19315
19336
|
};
|
|
19316
19337
|
};
|
|
19317
19338
|
|
|
19318
|
-
var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk"};
|
|
19339
|
+
var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk"};
|
|
19319
19340
|
|
|
19320
19341
|
var DashboardCard = function DashboardCard(_ref) {
|
|
19321
19342
|
var label = _ref.label,
|
|
@@ -19409,8 +19430,11 @@ var activityCircleItems = function activityCircleItems(_ref2) {
|
|
|
19409
19430
|
height: 150
|
|
19410
19431
|
}];
|
|
19411
19432
|
};
|
|
19412
|
-
var gradeOptions = function gradeOptions(grades) {
|
|
19413
|
-
|
|
19433
|
+
var gradeOptions = function gradeOptions(grades, studentUserId) {
|
|
19434
|
+
var result = !studentUserId ? GRAGE_DEFAULT : GRAGE_DEFAULT.filter(function (val) {
|
|
19435
|
+
return grades.indexOf(val) != -1;
|
|
19436
|
+
});
|
|
19437
|
+
return result.map(function (grade, index) {
|
|
19414
19438
|
return {
|
|
19415
19439
|
label: grade,
|
|
19416
19440
|
value: index
|
|
@@ -20016,7 +20040,7 @@ var CustomBarChart = function CustomBarChart(_ref) {
|
|
|
20016
20040
|
offsetX: 20,
|
|
20017
20041
|
markers: {
|
|
20018
20042
|
width: 12,
|
|
20019
|
-
radius:
|
|
20043
|
+
radius: 3
|
|
20020
20044
|
}
|
|
20021
20045
|
},
|
|
20022
20046
|
stroke: {
|
|
@@ -20025,7 +20049,7 @@ var CustomBarChart = function CustomBarChart(_ref) {
|
|
|
20025
20049
|
markers: {
|
|
20026
20050
|
size: 5
|
|
20027
20051
|
},
|
|
20028
|
-
colors: ["#40D2CC", "#78B6E2", "#FFB04F", "#
|
|
20052
|
+
colors: ["#40D2CC", "#78B6E2", "#FFB04F", "#CE4A49", "#1CB7B1", "#4B92CE", "#F09422", "#A23333", "#0D9994", "#1D74C5", "#DD7B00"],
|
|
20029
20053
|
xaxis: {
|
|
20030
20054
|
categories: chatMonth
|
|
20031
20055
|
},
|
|
@@ -20144,7 +20168,7 @@ var StudentByGrade = function StudentByGrade(_ref) {
|
|
|
20144
20168
|
}) : React__default.createElement("div", {
|
|
20145
20169
|
className: "d-flex justify-content-center align-items-center"
|
|
20146
20170
|
}, React__default.createElement("img", {
|
|
20147
|
-
className: "" + styles$1["image-
|
|
20171
|
+
className: styles$1["image-no-data"] + " " + styles$1["image-grade"],
|
|
20148
20172
|
src: "images/grade.png"
|
|
20149
20173
|
})));
|
|
20150
20174
|
};
|
|
@@ -20400,7 +20424,8 @@ var CircleChart = function CircleChart(_ref) {
|
|
|
20400
20424
|
|
|
20401
20425
|
var TeacherItemSelector = function TeacherItemSelector(_ref) {
|
|
20402
20426
|
var defaultValue = _ref.defaultValue,
|
|
20403
|
-
onChange = _ref.onChange
|
|
20427
|
+
onChange = _ref.onChange,
|
|
20428
|
+
studentUserId = _ref.studentUserId;
|
|
20404
20429
|
|
|
20405
20430
|
var _useState = React.useState([]),
|
|
20406
20431
|
options = _useState[0],
|
|
@@ -20409,11 +20434,12 @@ var TeacherItemSelector = function TeacherItemSelector(_ref) {
|
|
|
20409
20434
|
var getData = React.useCallback(function () {
|
|
20410
20435
|
try {
|
|
20411
20436
|
var _temp2 = _catch(function () {
|
|
20412
|
-
return Promise.resolve(getAllTeachers()).then(function (res) {
|
|
20437
|
+
return Promise.resolve(getAllTeachers(studentUserId)).then(function (res) {
|
|
20413
20438
|
setOptions(res.data.map(function (item) {
|
|
20414
20439
|
return {
|
|
20415
20440
|
value: item.teacherId,
|
|
20416
|
-
label: item.name + " (" + item.email + ")"
|
|
20441
|
+
label: item.name + " (" + item.email + ")",
|
|
20442
|
+
teacherUserId: item.userId
|
|
20417
20443
|
};
|
|
20418
20444
|
}));
|
|
20419
20445
|
});
|
|
@@ -20427,10 +20453,10 @@ var TeacherItemSelector = function TeacherItemSelector(_ref) {
|
|
|
20427
20453
|
} catch (e) {
|
|
20428
20454
|
return Promise.reject(e);
|
|
20429
20455
|
}
|
|
20430
|
-
}, []);
|
|
20456
|
+
}, [studentUserId]);
|
|
20431
20457
|
React.useEffect(function () {
|
|
20432
20458
|
getData();
|
|
20433
|
-
}, []);
|
|
20459
|
+
}, [studentUserId]);
|
|
20434
20460
|
var value = defaultValue && options.filter(function (option) {
|
|
20435
20461
|
return option.value === defaultValue;
|
|
20436
20462
|
}) || null;
|
|
@@ -20504,7 +20530,8 @@ var StudentItemSelector = function StudentItemSelector(_ref) {
|
|
|
20504
20530
|
var value = _ref.value,
|
|
20505
20531
|
onChange = _ref.onChange,
|
|
20506
20532
|
externalStudentIds = _ref.externalStudentIds,
|
|
20507
|
-
studentDefault = _ref.studentDefault
|
|
20533
|
+
studentDefault = _ref.studentDefault,
|
|
20534
|
+
teacherUserId = _ref.teacherUserId;
|
|
20508
20535
|
var dispatch = reactRedux.useDispatch();
|
|
20509
20536
|
|
|
20510
20537
|
var _useState = React.useState([]),
|
|
@@ -20531,7 +20558,7 @@ var StudentItemSelector = function StudentItemSelector(_ref) {
|
|
|
20531
20558
|
var _temp5 = _catch(function () {
|
|
20532
20559
|
var _temp = function () {
|
|
20533
20560
|
if (!value) {
|
|
20534
|
-
return Promise.resolve(getAllStudents(searchString)).then(function (res) {
|
|
20561
|
+
return Promise.resolve(getAllStudents(searchString, teacherUserId)).then(function (res) {
|
|
20535
20562
|
setStudents(res.data);
|
|
20536
20563
|
});
|
|
20537
20564
|
}
|
|
@@ -20570,7 +20597,9 @@ var StudentItemSelector = function StudentItemSelector(_ref) {
|
|
|
20570
20597
|
studentId: student.studentId,
|
|
20571
20598
|
email: student.email,
|
|
20572
20599
|
fullName: student.fullName,
|
|
20573
|
-
id: student.id
|
|
20600
|
+
id: student.id,
|
|
20601
|
+
gender: student.gender,
|
|
20602
|
+
mtss: student.mtss
|
|
20574
20603
|
};
|
|
20575
20604
|
});
|
|
20576
20605
|
return React__default.createElement(marioCore.CustomSelector, {
|
|
@@ -20612,7 +20641,11 @@ var Dashboard = function Dashboard() {
|
|
|
20612
20641
|
setTeacherId = _useDashboard.setTeacherId,
|
|
20613
20642
|
studentId = _useDashboard.studentId,
|
|
20614
20643
|
setStudentId = _useDashboard.setStudentId,
|
|
20615
|
-
onFilter = _useDashboard.onFilter
|
|
20644
|
+
onFilter = _useDashboard.onFilter,
|
|
20645
|
+
studentUserId = _useDashboard.studentUserId,
|
|
20646
|
+
setStudentUserId = _useDashboard.setStudentUserId,
|
|
20647
|
+
teacherUserId = _useDashboard.teacherUserId,
|
|
20648
|
+
setTeacherUserId = _useDashboard.setTeacherUserId;
|
|
20616
20649
|
|
|
20617
20650
|
var user = reactRedux.useSelector(function (state) {
|
|
20618
20651
|
return state.common.user;
|
|
@@ -20622,11 +20655,19 @@ var Dashboard = function Dashboard() {
|
|
|
20622
20655
|
studentDefault = _useState[0],
|
|
20623
20656
|
setStudentDefault = _useState[1];
|
|
20624
20657
|
|
|
20658
|
+
var _useState2 = React.useState(""),
|
|
20659
|
+
genderOfStudent = _useState2[0],
|
|
20660
|
+
setGenderOfStudent = _useState2[1];
|
|
20661
|
+
|
|
20662
|
+
var _useState3 = React.useState(""),
|
|
20663
|
+
mtss = _useState3[0],
|
|
20664
|
+
setMtss = _useState3[1];
|
|
20665
|
+
|
|
20625
20666
|
var questionOneToOne = ["Well-being", "Growth", "Relations", "Productivity", "Academic", "Self-Efficacy", "Happiness", "Energy", "Focus"];
|
|
20626
20667
|
var questionClassReflection = ["Focus", "Energy", "Happiness", "Stress", "Productivity"];
|
|
20627
|
-
var questionConferences = ["Organization", "Self-Awareness", "Self-Directed Learning", "Self-Management", "Self-
|
|
20668
|
+
var questionConferences = ["Organization", "Self-Awareness", "Self-Directed Learning", "Self-Management", "Self-Advocacy", "Goal Progress"];
|
|
20628
20669
|
var listChartLeft = [{
|
|
20629
|
-
label: "
|
|
20670
|
+
label: "Learning strategies",
|
|
20630
20671
|
children: React__default.createElement(TopLearningStrategy, {
|
|
20631
20672
|
data: topLearningStrategies
|
|
20632
20673
|
})
|
|
@@ -20783,11 +20824,13 @@ var Dashboard = function Dashboard() {
|
|
|
20783
20824
|
setFilter(_extends({}, filter, {
|
|
20784
20825
|
teacherId: option ? option.value : undefined
|
|
20785
20826
|
}));
|
|
20827
|
+
setTeacherUserId(option.teacherUserId);
|
|
20786
20828
|
} else {
|
|
20787
20829
|
setTeacherId(0);
|
|
20788
20830
|
setFilter(_extends({}, filter, {
|
|
20789
20831
|
teacherId: undefined
|
|
20790
20832
|
}));
|
|
20833
|
+
setTeacherUserId("");
|
|
20791
20834
|
}
|
|
20792
20835
|
};
|
|
20793
20836
|
|
|
@@ -20801,8 +20844,11 @@ var Dashboard = function Dashboard() {
|
|
|
20801
20844
|
|
|
20802
20845
|
var handleFilterStudent = function handleFilterStudent(option) {
|
|
20803
20846
|
if (option != null) {
|
|
20847
|
+
setStudentUserId(option.id);
|
|
20804
20848
|
setTeacherId(0);
|
|
20805
20849
|
setStudentId(option.value);
|
|
20850
|
+
setGenderOfStudent(option.gender);
|
|
20851
|
+
setMtss(option.mtss);
|
|
20806
20852
|
setStudentDefault(option);
|
|
20807
20853
|
setFilter(_extends({}, filter, {
|
|
20808
20854
|
gender: [LegalGenderType.Male, LegalGenderType.Female],
|
|
@@ -20815,6 +20861,9 @@ var Dashboard = function Dashboard() {
|
|
|
20815
20861
|
}
|
|
20816
20862
|
|
|
20817
20863
|
setStudentId(0);
|
|
20864
|
+
setMtss("");
|
|
20865
|
+
setStudentUserId("");
|
|
20866
|
+
setGenderOfStudent("");
|
|
20818
20867
|
setStudentDefault(undefined);
|
|
20819
20868
|
setFilter(_extends({}, filter, {
|
|
20820
20869
|
gender: [LegalGenderType.Male, LegalGenderType.Female],
|
|
@@ -20879,30 +20928,38 @@ var Dashboard = function Dashboard() {
|
|
|
20879
20928
|
className: "" + styles$1["form-filter-left"]
|
|
20880
20929
|
}, React__default.createElement(TeacherItemSelector, {
|
|
20881
20930
|
onChange: handleFilterTeacher,
|
|
20882
|
-
defaultValue: teacherId
|
|
20931
|
+
defaultValue: teacherId,
|
|
20932
|
+
studentUserId: studentUserId
|
|
20883
20933
|
})), React__default.createElement("div", {
|
|
20884
20934
|
className: "" + styles$1["form-filter-left"]
|
|
20885
20935
|
}, React__default.createElement(StudentItemSelector, {
|
|
20886
20936
|
onChange: handleFilterStudent,
|
|
20887
20937
|
value: studentId,
|
|
20888
|
-
studentDefault: studentDefault
|
|
20938
|
+
studentDefault: studentDefault,
|
|
20939
|
+
teacherUserId: teacherUserId
|
|
20889
20940
|
})), React__default.createElement("div", {
|
|
20890
20941
|
className: "" + styles$1["form-filter-left"]
|
|
20891
20942
|
}, React__default.createElement(InputSelector, {
|
|
20892
|
-
options: genderOptions
|
|
20943
|
+
options: !genderOfStudent ? genderOptions : [{
|
|
20944
|
+
value: 1,
|
|
20945
|
+
label: genderOfStudent
|
|
20946
|
+
}],
|
|
20893
20947
|
onChange: handleFilterGender,
|
|
20894
20948
|
placeholder: "Select Gender"
|
|
20895
20949
|
})), React__default.createElement("div", {
|
|
20896
20950
|
className: "" + styles$1["form-filter-left"]
|
|
20897
20951
|
}, React__default.createElement(InputSelector, {
|
|
20898
|
-
options: gradeOptions(grades),
|
|
20952
|
+
options: gradeOptions(grades, studentUserId),
|
|
20899
20953
|
onChange: handleFilterGrades,
|
|
20900
20954
|
placeholder: "Select Grade",
|
|
20901
20955
|
isMultiSelect: true
|
|
20902
20956
|
})), React__default.createElement("div", {
|
|
20903
20957
|
className: "" + styles$1["form-filter-left"]
|
|
20904
20958
|
}, React__default.createElement(InputSelector, {
|
|
20905
|
-
options: mtssOptions
|
|
20959
|
+
options: !mtss ? mtssOptions : [{
|
|
20960
|
+
label: mtss,
|
|
20961
|
+
value: 1
|
|
20962
|
+
}],
|
|
20906
20963
|
onChange: handleFilterMtss,
|
|
20907
20964
|
placeholder: "Select MTSS"
|
|
20908
20965
|
})), React__default.createElement("div", {
|