mario-education 2.4.48-admin → 2.4.52-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
|
@@ -26114,12 +26114,38 @@ var getConvertMinuteToHour = function getConvertMinuteToHour(timeSecond) {
|
|
|
26114
26114
|
|
|
26115
26115
|
return hTime;
|
|
26116
26116
|
};
|
|
26117
|
-
var readinesToLearnoptions = function readinesToLearnoptions(seriesName) {
|
|
26117
|
+
var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
|
|
26118
|
+
var history = useHistory();
|
|
26119
|
+
var listStudentWithId = [];
|
|
26120
|
+
data === null || data === void 0 ? void 0 : data.forEach(function (element) {
|
|
26121
|
+
var _element$studentPerce;
|
|
26122
|
+
|
|
26123
|
+
element === null || element === void 0 ? void 0 : (_element$studentPerce = element.studentPercentQuestion) === null || _element$studentPerce === void 0 ? void 0 : _element$studentPerce.forEach(function (item) {
|
|
26124
|
+
if (!(listStudentWithId !== null && listStudentWithId !== void 0 && listStudentWithId.map(function (i) {
|
|
26125
|
+
return i === null || i === void 0 ? void 0 : i.studentId;
|
|
26126
|
+
}).includes(item.studentId))) listStudentWithId.push({
|
|
26127
|
+
studentName: item.studentName,
|
|
26128
|
+
studentId: item.studentId
|
|
26129
|
+
});
|
|
26130
|
+
});
|
|
26131
|
+
});
|
|
26118
26132
|
return {
|
|
26119
26133
|
chart: {
|
|
26120
26134
|
height: 450,
|
|
26121
26135
|
toolbar: {
|
|
26122
26136
|
show: false
|
|
26137
|
+
},
|
|
26138
|
+
events: {
|
|
26139
|
+
markerClick: function markerClick(_e, _chart, options) {
|
|
26140
|
+
var _listStudentWithId$fi;
|
|
26141
|
+
|
|
26142
|
+
var currentStudentId = (_listStudentWithId$fi = listStudentWithId.find(function (i) {
|
|
26143
|
+
var _options$w, _options$w$globals;
|
|
26144
|
+
|
|
26145
|
+
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());
|
|
26146
|
+
})) === null || _listStudentWithId$fi === void 0 ? void 0 : _listStudentWithId$fi.studentId;
|
|
26147
|
+
history.push("/student-detail/overview/" + currentStudentId);
|
|
26148
|
+
}
|
|
26123
26149
|
}
|
|
26124
26150
|
},
|
|
26125
26151
|
dataLabels: {
|
|
@@ -26194,7 +26220,7 @@ var convertDataToSeriesBullderChart = function convertDataToSeriesBullderChart(d
|
|
|
26194
26220
|
return {
|
|
26195
26221
|
name: i.questionText.replace("<p>", "").replace("</p>", ""),
|
|
26196
26222
|
data: ((_i$studentPercentQues = i.studentPercentQuestion) === null || _i$studentPercentQues === void 0 ? void 0 : _i$studentPercentQues.map(function (question) {
|
|
26197
|
-
return [getRandomArbitrary((index + 1) * 1000 - 330, (index + 1) * 1000 + 330), question.percentQuestion, question.studentName];
|
|
26223
|
+
return [getRandomArbitrary((index + 1) * 1000 - 330, (index + 1) * 1000 + 330), question.percentQuestion, question.studentName, question.studentId];
|
|
26198
26224
|
})) || []
|
|
26199
26225
|
};
|
|
26200
26226
|
});
|
|
@@ -26389,7 +26415,7 @@ var optionBarChartAndArea = function optionBarChartAndArea(months, activeData, n
|
|
|
26389
26415
|
},
|
|
26390
26416
|
fill: {
|
|
26391
26417
|
opacity: newseries === null || newseries === void 0 ? void 0 : newseries.map(function (item) {
|
|
26392
|
-
if ((item === null || item === void 0 ? void 0 : item.type) ==
|
|
26418
|
+
if ((item === null || item === void 0 ? void 0 : item.type) == "area") {
|
|
26393
26419
|
return 0.2;
|
|
26394
26420
|
}
|
|
26395
26421
|
|
|
@@ -26406,7 +26432,7 @@ var optionBarChartAndArea = function optionBarChartAndArea(months, activeData, n
|
|
|
26406
26432
|
return activeData[index];
|
|
26407
26433
|
}),
|
|
26408
26434
|
width: newseries === null || newseries === void 0 ? void 0 : newseries.map(function (item) {
|
|
26409
|
-
if ((item === null || item === void 0 ? void 0 : item.type) ==
|
|
26435
|
+
if ((item === null || item === void 0 ? void 0 : item.type) == "area") {
|
|
26410
26436
|
return 2;
|
|
26411
26437
|
}
|
|
26412
26438
|
|
|
@@ -26579,7 +26605,7 @@ var BubbleChartCustom = function BubbleChartCustom(_ref) {
|
|
|
26579
26605
|
})), React.createElement("div", {
|
|
26580
26606
|
className: styles$1["chart-buddle"]
|
|
26581
26607
|
}, React.createElement("div", null, React.createElement(Chart, {
|
|
26582
|
-
options: readinesToLearnoptions(seriesName),
|
|
26608
|
+
options: readinesToLearnoptions(seriesName, data),
|
|
26583
26609
|
type: "scatter",
|
|
26584
26610
|
series: convertDataToSeriesBullderChart(data),
|
|
26585
26611
|
width: "100%",
|
|
@@ -27592,6 +27618,14 @@ var useChartDatas = function useChartDatas() {
|
|
|
27592
27618
|
name: FILTER_NAME.EndDate,
|
|
27593
27619
|
icon: "/images/calendar.svg",
|
|
27594
27620
|
handleChangeFilters: handleChangeFilters
|
|
27621
|
+
}, {
|
|
27622
|
+
name: FILTER_NAME.StartDate,
|
|
27623
|
+
icon: "/images/calendar.svg",
|
|
27624
|
+
handleChangeFilters: handleChangeFilters
|
|
27625
|
+
}, {
|
|
27626
|
+
name: FILTER_NAME.EndDate,
|
|
27627
|
+
icon: "/images/calendar.svg",
|
|
27628
|
+
handleChangeFilters: handleChangeFilters
|
|
27595
27629
|
}, {
|
|
27596
27630
|
name: FILTER_NAME.Gender,
|
|
27597
27631
|
icon: "/images/gender-icon.svg",
|