mario-teacher-student-client 2.1.94-admin → 2.1.95-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 +40 -34
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +40 -34
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18733,7 +18733,7 @@ var useChartOneToOne = function useChartOneToOne(studentId) {
|
|
|
18733
18733
|
legend: {
|
|
18734
18734
|
position: "top",
|
|
18735
18735
|
horizontalAlign: "center",
|
|
18736
|
-
fontSize:
|
|
18736
|
+
fontSize: "13px",
|
|
18737
18737
|
offsetY: 5,
|
|
18738
18738
|
markers: {
|
|
18739
18739
|
height: 16,
|
|
@@ -18771,7 +18771,7 @@ var useChartOneToOne = function useChartOneToOne(studentId) {
|
|
|
18771
18771
|
max: 100
|
|
18772
18772
|
}
|
|
18773
18773
|
};
|
|
18774
|
-
var questionOneToOne = ["
|
|
18774
|
+
var questionOneToOne = ["Well-being", "Growth", "Relations", "Productivity", "Academic", "Self-efficacy", "Focus", "Energy", "Happiness"];
|
|
18775
18775
|
|
|
18776
18776
|
var _useState7 = React.useState([]),
|
|
18777
18777
|
seriesOneToOne = _useState7[0],
|
|
@@ -18801,27 +18801,29 @@ var useChartOneToOne = function useChartOneToOne(studentId) {
|
|
|
18801
18801
|
};
|
|
18802
18802
|
}) || [];
|
|
18803
18803
|
var listMonth = [];
|
|
18804
|
-
!!
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
r.data.push(null);
|
|
18810
|
-
});
|
|
18811
|
-
} else {
|
|
18812
|
-
var _data$avgOfStudentCho;
|
|
18804
|
+
var afterData = !!currentData && currentData.length > 0 && currentData.map(function (record) {
|
|
18805
|
+
var dataItem = !!res && res.map(function (item) {
|
|
18806
|
+
listMonth.push(item.month);
|
|
18807
|
+
var objectItem = item.resultQuestion.find(function (i) {
|
|
18808
|
+
var _i$questionText, _i$questionText$repla;
|
|
18813
18809
|
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
var _data$questionText, _data$questionText$re;
|
|
18810
|
+
return (_i$questionText = i.questionText) === null || _i$questionText === void 0 ? void 0 : (_i$questionText$repla = _i$questionText.replace("-", "")) === null || _i$questionText$repla === void 0 ? void 0 : _i$questionText$repla.toLocaleLowerCase().includes(record.name.replace("-", "").toLocaleLowerCase());
|
|
18811
|
+
});
|
|
18817
18812
|
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
|
|
18813
|
+
if (objectItem != null) {
|
|
18814
|
+
var _objectItem$avgOfStud;
|
|
18815
|
+
|
|
18816
|
+
return objectItem === null || objectItem === void 0 ? void 0 : (_objectItem$avgOfStud = objectItem.avgOfStudentChoice) === null || _objectItem$avgOfStud === void 0 ? void 0 : _objectItem$avgOfStud.toFixed(2);
|
|
18817
|
+
} else {
|
|
18818
|
+
return null;
|
|
18821
18819
|
}
|
|
18822
18820
|
});
|
|
18821
|
+
return {
|
|
18822
|
+
name: record.name,
|
|
18823
|
+
data: dataItem
|
|
18824
|
+
};
|
|
18823
18825
|
});
|
|
18824
|
-
setSeriesOneToOne(
|
|
18826
|
+
setSeriesOneToOne(afterData);
|
|
18825
18827
|
setChartMonthOneToOne([].concat(listMonth));
|
|
18826
18828
|
});
|
|
18827
18829
|
} catch (e) {
|
|
@@ -19229,25 +19231,29 @@ var useChartConference = function useChartConference(studentId) {
|
|
|
19229
19231
|
};
|
|
19230
19232
|
}) || [];
|
|
19231
19233
|
var listMonth = [];
|
|
19232
|
-
!!
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
r.data.push(null);
|
|
19238
|
-
});
|
|
19239
|
-
} else {
|
|
19240
|
-
var result = (data.avgOfStudentChoice * 100).toFixed(2);
|
|
19241
|
-
currentData.map(function (r, index) {
|
|
19242
|
-
var _data$questionText, _data$questionText$re;
|
|
19234
|
+
var afterData = !!currentData && currentData.length > 0 && currentData.map(function (record) {
|
|
19235
|
+
var dataItem = !!res && res.map(function (item) {
|
|
19236
|
+
listMonth.push(item.month);
|
|
19237
|
+
var objectItem = item.resultQuestion.find(function (i) {
|
|
19238
|
+
var _i$questionText, _i$questionText$repla;
|
|
19243
19239
|
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19240
|
+
return (_i$questionText = i.questionText) === null || _i$questionText === void 0 ? void 0 : (_i$questionText$repla = _i$questionText.replace("-", "")) === null || _i$questionText$repla === void 0 ? void 0 : _i$questionText$repla.toLocaleLowerCase().includes(record.name.replace("-", "").toLocaleLowerCase());
|
|
19241
|
+
});
|
|
19242
|
+
|
|
19243
|
+
if (objectItem != null) {
|
|
19244
|
+
var _objectItem$avgOfStud;
|
|
19245
|
+
|
|
19246
|
+
return objectItem === null || objectItem === void 0 ? void 0 : (_objectItem$avgOfStud = objectItem.avgOfStudentChoice) === null || _objectItem$avgOfStud === void 0 ? void 0 : _objectItem$avgOfStud.toFixed(2);
|
|
19247
|
+
} else {
|
|
19248
|
+
return null;
|
|
19247
19249
|
}
|
|
19248
19250
|
});
|
|
19251
|
+
return {
|
|
19252
|
+
name: record.name,
|
|
19253
|
+
data: dataItem
|
|
19254
|
+
};
|
|
19249
19255
|
});
|
|
19250
|
-
setSeries(
|
|
19256
|
+
setSeries(afterData);
|
|
19251
19257
|
setChartMonthConference([].concat(listMonth));
|
|
19252
19258
|
});
|
|
19253
19259
|
} catch (e) {
|
|
@@ -58113,7 +58119,7 @@ var AddClassReflection = function AddClassReflection() {
|
|
|
58113
58119
|
}, "Send to Teacher"), isTeacher && React__default.createElement(StyledTableCell, {
|
|
58114
58120
|
align: "center",
|
|
58115
58121
|
className: styles$E["header-title"]
|
|
58116
|
-
}, "Send"))), React__default.createElement(TableBody, null, rowClassReflection.map(function (row) {
|
|
58122
|
+
}, "Send Now"))), React__default.createElement(TableBody, null, rowClassReflection.map(function (row) {
|
|
58117
58123
|
return React__default.createElement(StyledTableRow, {
|
|
58118
58124
|
key: row.id
|
|
58119
58125
|
}, React__default.createElement(StyledTableCell, {
|