mario-education 2.4.142-level → 2.4.144-level
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/Dashboard/hooks/useDashboard.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -1
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +40 -40
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ 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: (studentUserId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
|
+
export declare const getGrades: (studentUserId: string, academicYearId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
20
20
|
export declare const getBandScore: () => Promise<import("axios").AxiosResponse<any>>;
|
|
21
21
|
export declare const getLearningStrategiesTableApi: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
22
22
|
export declare const getTopMostSurveyUsed: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/index.js
CHANGED
|
@@ -28917,10 +28917,11 @@ var getStudentByGender = function getStudentByGender(filter) {
|
|
|
28917
28917
|
params: filter
|
|
28918
28918
|
});
|
|
28919
28919
|
};
|
|
28920
|
-
var getGrades = function getGrades(studentUserId) {
|
|
28920
|
+
var getGrades = function getGrades(studentUserId, academicYearId) {
|
|
28921
28921
|
return marioCore.api.get(REPORT_URL + "/grade-levels", {
|
|
28922
28922
|
params: {
|
|
28923
|
-
studentUserId: studentUserId
|
|
28923
|
+
studentUserId: studentUserId,
|
|
28924
|
+
academicYearId: academicYearId
|
|
28924
28925
|
}
|
|
28925
28926
|
});
|
|
28926
28927
|
};
|
|
@@ -29034,51 +29035,55 @@ var useDashboard = function useDashboard() {
|
|
|
29034
29035
|
genderOfStudent = _useState14[0],
|
|
29035
29036
|
setGenderOfStudent = _useState14[1];
|
|
29036
29037
|
|
|
29038
|
+
var _useState15 = React.useState(GRAGE_DEFAULT),
|
|
29039
|
+
gradeList = _useState15[0],
|
|
29040
|
+
setGradeList = _useState15[1];
|
|
29041
|
+
|
|
29037
29042
|
var handleChangeFilters = function handleChangeFilters(event) {
|
|
29038
29043
|
var _extends2;
|
|
29039
29044
|
|
|
29040
29045
|
setFilter(_extends({}, filter, (_extends2 = {}, _extends2[event.target.name] = event.target.value, _extends2)));
|
|
29041
29046
|
};
|
|
29042
29047
|
|
|
29043
|
-
var _useState15 = React.useState([]),
|
|
29044
|
-
stressData = _useState15[0],
|
|
29045
|
-
setStressData = _useState15[1];
|
|
29046
|
-
|
|
29047
29048
|
var _useState16 = React.useState([]),
|
|
29048
|
-
|
|
29049
|
-
|
|
29049
|
+
stressData = _useState16[0],
|
|
29050
|
+
setStressData = _useState16[1];
|
|
29050
29051
|
|
|
29051
29052
|
var _useState17 = React.useState([]),
|
|
29052
|
-
|
|
29053
|
-
|
|
29053
|
+
safetyData = _useState17[0],
|
|
29054
|
+
setSafetyData = _useState17[1];
|
|
29054
29055
|
|
|
29055
29056
|
var _useState18 = React.useState([]),
|
|
29056
|
-
|
|
29057
|
-
|
|
29057
|
+
preparednessData = _useState18[0],
|
|
29058
|
+
setPreparednessData = _useState18[1];
|
|
29058
29059
|
|
|
29059
29060
|
var _useState19 = React.useState([]),
|
|
29060
|
-
|
|
29061
|
-
|
|
29061
|
+
successIndicatorsData = _useState19[0],
|
|
29062
|
+
setSuccessIndicatorsData = _useState19[1];
|
|
29062
29063
|
|
|
29063
29064
|
var _useState20 = React.useState([]),
|
|
29064
|
-
|
|
29065
|
-
|
|
29065
|
+
avgQuestionLastMonth = _useState20[0],
|
|
29066
|
+
setAvgQuestionLastMonth = _useState20[1];
|
|
29066
29067
|
|
|
29067
29068
|
var _useState21 = React.useState([]),
|
|
29068
|
-
|
|
29069
|
-
|
|
29069
|
+
activeColumnSuccessIndicators = _useState21[0],
|
|
29070
|
+
setActiveColumnSuccessIndicators = _useState21[1];
|
|
29070
29071
|
|
|
29071
29072
|
var _useState22 = React.useState([]),
|
|
29072
|
-
|
|
29073
|
-
|
|
29073
|
+
activeColumnPreparedness = _useState22[0],
|
|
29074
|
+
setActiveColumnPreparedness = _useState22[1];
|
|
29074
29075
|
|
|
29075
29076
|
var _useState23 = React.useState([]),
|
|
29076
|
-
|
|
29077
|
-
|
|
29077
|
+
dataConvertedOneToOne = _useState23[0],
|
|
29078
|
+
setDataConvertedOneToOne = _useState23[1];
|
|
29078
29079
|
|
|
29079
29080
|
var _useState24 = React.useState([]),
|
|
29080
|
-
|
|
29081
|
-
|
|
29081
|
+
monthsOneToOne = _useState24[0],
|
|
29082
|
+
setMonthsOneToOne = _useState24[1];
|
|
29083
|
+
|
|
29084
|
+
var _useState25 = React.useState([]),
|
|
29085
|
+
dayOfWeekOneToOne = _useState25[0],
|
|
29086
|
+
setDayOfWeekOneToOne = _useState25[1];
|
|
29082
29087
|
|
|
29083
29088
|
var handleSetDataChartOneToOne = function handleSetDataChartOneToOne(data) {
|
|
29084
29089
|
var _data$overviewQuestio;
|
|
@@ -29206,6 +29211,7 @@ var useDashboard = function useDashboard() {
|
|
|
29206
29211
|
return;
|
|
29207
29212
|
}
|
|
29208
29213
|
|
|
29214
|
+
console.log("run out");
|
|
29209
29215
|
setGenderOfStudent("");
|
|
29210
29216
|
setStudentDefault(undefined);
|
|
29211
29217
|
setFilter(_extends({}, filter, {
|
|
@@ -29217,20 +29223,11 @@ var useDashboard = function useDashboard() {
|
|
|
29217
29223
|
return;
|
|
29218
29224
|
};
|
|
29219
29225
|
|
|
29220
|
-
var handleSaveGradeFilter = function handleSaveGradeFilter(grades) {
|
|
29221
|
-
setFilter(_extends({}, filter, {
|
|
29222
|
-
grade: grades
|
|
29223
|
-
}));
|
|
29224
|
-
};
|
|
29225
|
-
|
|
29226
29226
|
var onChangeFilters = function onChangeFilters(filterSelect) {
|
|
29227
29227
|
setFilter(_extends({}, filter, filterSelect));
|
|
29228
29228
|
};
|
|
29229
29229
|
|
|
29230
29230
|
var handleChangeAcademicYearFilters = function handleChangeAcademicYearFilters(option) {
|
|
29231
|
-
console.log({
|
|
29232
|
-
option: option
|
|
29233
|
-
});
|
|
29234
29231
|
setFilter(_extends({}, filter, {
|
|
29235
29232
|
startDate: option === null || option === void 0 ? void 0 : option.startTime,
|
|
29236
29233
|
endDate: option === null || option === void 0 ? void 0 : option.endTime
|
|
@@ -29246,7 +29243,7 @@ var useDashboard = function useDashboard() {
|
|
|
29246
29243
|
dispatch(marioCore.setLoading(true));
|
|
29247
29244
|
|
|
29248
29245
|
var _temp6 = _catch(function () {
|
|
29249
|
-
return Promise.resolve(apiCaller(studentUserId)).then(function (res) {
|
|
29246
|
+
return Promise.resolve(apiCaller(studentUserId, filter.academicYearId)).then(function (res) {
|
|
29250
29247
|
res && setData(res.data);
|
|
29251
29248
|
});
|
|
29252
29249
|
}, function (err) {
|
|
@@ -29280,9 +29277,9 @@ var useDashboard = function useDashboard() {
|
|
|
29280
29277
|
getData();
|
|
29281
29278
|
}, [filter]);
|
|
29282
29279
|
React.useEffect(function () {
|
|
29283
|
-
!!filter.studentUserId && callApiByStudentUserId(getGrades,
|
|
29280
|
+
!!filter.studentUserId && callApiByStudentUserId(getGrades, setGradeList, filter.studentUserId, []);
|
|
29284
29281
|
callApi(getBandScore, setBandScore, []);
|
|
29285
|
-
}, [filter.studentUserId]);
|
|
29282
|
+
}, [filter.studentUserId, filter.academicYearId]);
|
|
29286
29283
|
React.useEffect(function () {
|
|
29287
29284
|
callApi(getAllAcademicYearApi, setAcademicYear, [], "academicyear");
|
|
29288
29285
|
}, []);
|
|
@@ -29323,7 +29320,8 @@ var useDashboard = function useDashboard() {
|
|
|
29323
29320
|
seriesLearningProgress: seriesLearningProgress,
|
|
29324
29321
|
monthsLearningProgress: monthsLearningProgress,
|
|
29325
29322
|
dayOfWeekLearningProgress: dayOfWeekLearningProgress,
|
|
29326
|
-
avgQuestionLastMonth: avgQuestionLastMonth
|
|
29323
|
+
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
29324
|
+
gradeList: gradeList
|
|
29327
29325
|
};
|
|
29328
29326
|
};
|
|
29329
29327
|
|
|
@@ -29353,7 +29351,8 @@ var useChartDatas = function useChartDatas() {
|
|
|
29353
29351
|
seriesLearningProgress = _useDashboard.seriesLearningProgress,
|
|
29354
29352
|
monthsLearningProgress = _useDashboard.monthsLearningProgress,
|
|
29355
29353
|
dayOfWeekLearningProgress = _useDashboard.dayOfWeekLearningProgress,
|
|
29356
|
-
avgQuestionLastMonth = _useDashboard.avgQuestionLastMonth
|
|
29354
|
+
avgQuestionLastMonth = _useDashboard.avgQuestionLastMonth,
|
|
29355
|
+
gradeList = _useDashboard.gradeList;
|
|
29357
29356
|
|
|
29358
29357
|
var _useState = React.useState([]),
|
|
29359
29358
|
selectedToPrint = _useState[0],
|
|
@@ -29418,7 +29417,7 @@ var useChartDatas = function useChartDatas() {
|
|
|
29418
29417
|
option: [{
|
|
29419
29418
|
value: -1,
|
|
29420
29419
|
label: "All"
|
|
29421
|
-
}].concat(gradeOptions(
|
|
29420
|
+
}].concat(gradeOptions(gradeList, filter.studentUserId))
|
|
29422
29421
|
}, {
|
|
29423
29422
|
name: FILTER_NAME.BandScore,
|
|
29424
29423
|
icon: "/images/star-icon.svg",
|
|
@@ -29757,7 +29756,8 @@ var SelectFilter = function SelectFilter(_ref) {
|
|
|
29757
29756
|
!!onChangeFilters && onChangeFilters(_extends({}, filter, {
|
|
29758
29757
|
startDate: moment(option === null || option === void 0 ? void 0 : option.startTime).startOf("day").valueOf(),
|
|
29759
29758
|
endDate: moment(option === null || option === void 0 ? void 0 : option.endTime).endOf("day").valueOf(),
|
|
29760
|
-
academicYearId: option === null || option === void 0 ? void 0 : option.value
|
|
29759
|
+
academicYearId: option === null || option === void 0 ? void 0 : option.value,
|
|
29760
|
+
grade: []
|
|
29761
29761
|
}));
|
|
29762
29762
|
};
|
|
29763
29763
|
|