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