mario-education 2.4.54-admin → 2.4.56-admin
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/index.modern.js
CHANGED
|
@@ -26126,17 +26126,10 @@ var handleViewSeriesActive = function handleViewSeriesActive(active) {
|
|
|
26126
26126
|
|
|
26127
26127
|
var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
|
|
26128
26128
|
var history = useHistory();
|
|
26129
|
-
var listStudentWithId = [];
|
|
26130
26129
|
data === null || data === void 0 ? void 0 : data.forEach(function (element) {
|
|
26131
26130
|
var _element$studentPerce;
|
|
26132
26131
|
|
|
26133
26132
|
element === null || element === void 0 ? void 0 : (_element$studentPerce = element.studentPercentQuestion) === null || _element$studentPerce === void 0 ? void 0 : _element$studentPerce.forEach(function (item) {
|
|
26134
|
-
if (!(listStudentWithId !== null && listStudentWithId !== void 0 && listStudentWithId.map(function (i) {
|
|
26135
|
-
return i === null || i === void 0 ? void 0 : i.studentId;
|
|
26136
|
-
}).includes(item.studentId))) listStudentWithId.push({
|
|
26137
|
-
studentName: item.studentName,
|
|
26138
|
-
studentId: item.studentId
|
|
26139
|
-
});
|
|
26140
26133
|
});
|
|
26141
26134
|
});
|
|
26142
26135
|
return {
|
|
@@ -26146,15 +26139,13 @@ var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
|
|
|
26146
26139
|
show: false
|
|
26147
26140
|
},
|
|
26148
26141
|
events: {
|
|
26149
|
-
|
|
26150
|
-
var
|
|
26151
|
-
|
|
26152
|
-
var
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
|
|
26156
|
-
})) === null || _listStudentWithId$fi === void 0 ? void 0 : _listStudentWithId$fi.studentId;
|
|
26157
|
-
history.push("/student-detail/overview/" + currentStudentId);
|
|
26142
|
+
dataPointSelection: function dataPointSelection(_event, chartContext, config) {
|
|
26143
|
+
var studentName = chartContext.data.threeDSeries[config.dataPointIndex];
|
|
26144
|
+
var series = config.w.config.series[config.seriesIndex].data;
|
|
26145
|
+
var student = series.find(function (r) {
|
|
26146
|
+
return r.includes(studentName);
|
|
26147
|
+
});
|
|
26148
|
+
!!student && history.push("/student-detail/overview/" + student[student.length - 1]);
|
|
26158
26149
|
}
|
|
26159
26150
|
}
|
|
26160
26151
|
},
|
|
@@ -27220,9 +27211,14 @@ var useDashboard = function useDashboard() {
|
|
|
27220
27211
|
};
|
|
27221
27212
|
|
|
27222
27213
|
useEffect(function () {
|
|
27223
|
-
|
|
27224
|
-
return
|
|
27225
|
-
}).
|
|
27214
|
+
if (activeColumnOneToOne.filter(function (r) {
|
|
27215
|
+
return r === true;
|
|
27216
|
+
}).length == 0) {
|
|
27217
|
+
setActiveColumnOneToOne([true].concat(dataConvertedOneToOne.map(function (_i) {
|
|
27218
|
+
return false;
|
|
27219
|
+
}).splice(0, dataConvertedOneToOne.length - 2)));
|
|
27220
|
+
}
|
|
27221
|
+
|
|
27226
27222
|
setAvgOneToOne(newAvgOneToOne === null || newAvgOneToOne === void 0 ? void 0 : newAvgOneToOne.map(function (_, index) {
|
|
27227
27223
|
return activeColumnOneToOne[index] ? newAvgOneToOne[index] : 0;
|
|
27228
27224
|
}));
|
|
@@ -27263,12 +27259,17 @@ var useDashboard = function useDashboard() {
|
|
|
27263
27259
|
};
|
|
27264
27260
|
|
|
27265
27261
|
useEffect(function () {
|
|
27262
|
+
if (activeColumnClassReflection.filter(function (r) {
|
|
27263
|
+
return r === true;
|
|
27264
|
+
}).length == 0) {
|
|
27265
|
+
setActiveColumnClassReflection([true].concat(dataConvertedClassReflection.map(function (_i) {
|
|
27266
|
+
return false;
|
|
27267
|
+
}).splice(0, dataConvertedClassReflection.length - 2)));
|
|
27268
|
+
}
|
|
27269
|
+
|
|
27266
27270
|
setSeriesClassReflection(newSeriesClassReflection === null || newSeriesClassReflection === void 0 ? void 0 : newSeriesClassReflection.filter(function (_, idx) {
|
|
27267
27271
|
return activeColumnClassReflection[idx];
|
|
27268
27272
|
}));
|
|
27269
|
-
setActiveColumnClassReflection([true].concat(dataConvertedClassReflection.map(function (_i) {
|
|
27270
|
-
return false;
|
|
27271
|
-
}).splice(0, dataConvertedClassReflection.length - 2)));
|
|
27272
27273
|
setAvgClassReflection(newAvgClassReflection === null || newAvgClassReflection === void 0 ? void 0 : newAvgClassReflection.map(function (_, index) {
|
|
27273
27274
|
return activeColumnClassReflection[index] ? newAvgClassReflection[index] : 0;
|
|
27274
27275
|
}));
|
|
@@ -27306,12 +27307,17 @@ var useDashboard = function useDashboard() {
|
|
|
27306
27307
|
};
|
|
27307
27308
|
|
|
27308
27309
|
useEffect(function () {
|
|
27310
|
+
if (activeColumnConference.filter(function (r) {
|
|
27311
|
+
return r === true;
|
|
27312
|
+
}).length == 0) {
|
|
27313
|
+
setActiveColumnConference([true].concat(dataConvertedConference === null || dataConvertedConference === void 0 ? void 0 : dataConvertedConference.map(function (_i) {
|
|
27314
|
+
return false;
|
|
27315
|
+
}).splice(0, dataConvertedConference.length - 2)));
|
|
27316
|
+
}
|
|
27317
|
+
|
|
27309
27318
|
setSeriesConference(newSeriesConference === null || newSeriesConference === void 0 ? void 0 : newSeriesConference.filter(function (_, idx) {
|
|
27310
27319
|
return activeColumnConference[idx];
|
|
27311
27320
|
}));
|
|
27312
|
-
setActiveColumnConference([true].concat(dataConvertedConference === null || dataConvertedConference === void 0 ? void 0 : dataConvertedConference.map(function (_i) {
|
|
27313
|
-
return false;
|
|
27314
|
-
}).splice(0, dataConvertedConference.length - 2)));
|
|
27315
27321
|
setAvgConference(newAvgConference === null || newAvgConference === void 0 ? void 0 : newAvgConference.map(function (_, idx) {
|
|
27316
27322
|
return activeColumnConference[idx] ? newAvgConference[idx] : 0;
|
|
27317
27323
|
}));
|
|
@@ -27401,7 +27407,6 @@ var useDashboard = function useDashboard() {
|
|
|
27401
27407
|
setStudentDefault(option);
|
|
27402
27408
|
setFilter(_extends({}, filter, {
|
|
27403
27409
|
gender: [LegalGenderType.None, LegalGenderType.Male, LegalGenderType.Female],
|
|
27404
|
-
teacherId: undefined,
|
|
27405
27410
|
studentId: option ? option === null || option === void 0 ? void 0 : option.studentId : undefined,
|
|
27406
27411
|
studentUserId: option === null || option === void 0 ? void 0 : option.id
|
|
27407
27412
|
}));
|
|
@@ -27412,7 +27417,6 @@ var useDashboard = function useDashboard() {
|
|
|
27412
27417
|
setStudentDefault(undefined);
|
|
27413
27418
|
setFilter(_extends({}, filter, {
|
|
27414
27419
|
gender: [LegalGenderType.None, LegalGenderType.Male, LegalGenderType.Female],
|
|
27415
|
-
teacherId: undefined,
|
|
27416
27420
|
grade: [],
|
|
27417
27421
|
studentId: undefined,
|
|
27418
27422
|
studentUserId: ""
|