mario-education 2.4.54-admin → 2.4.55-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.
@@ -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
- markerClick: function markerClick(_e, _chart, options) {
26150
- var _listStudentWithId$fi;
26151
-
26152
- var currentStudentId = (_listStudentWithId$fi = listStudentWithId.find(function (i) {
26153
- var _options$w, _options$w$globals;
26154
-
26155
- return i.studentName.toLowerCase().trim() == (options === null || options === void 0 ? void 0 : (_options$w = options.w) === null || _options$w === void 0 ? void 0 : (_options$w$globals = _options$w.globals) === null || _options$w$globals === void 0 ? void 0 : _options$w$globals.seriesZ[options === null || options === void 0 ? void 0 : options.dataPointIndex][options === null || options === void 0 ? void 0 : options.dataPointIndex].toLowerCase().trim());
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
- setActiveColumnOneToOne([true].concat(dataConvertedOneToOne.map(function (_i) {
27224
- return false;
27225
- }).splice(0, dataConvertedOneToOne.length - 2)));
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
  }));