mario-education 2.4.178-level → 2.4.180-level
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 +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -31536,7 +31536,7 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
|
|
|
31536
31536
|
color: "#fff",
|
|
31537
31537
|
fontSize: "12px"
|
|
31538
31538
|
}
|
|
31539
|
-
},
|
|
31539
|
+
}, tooltipStudents.map(function (label, index) {
|
|
31540
31540
|
return React.createElement("div", {
|
|
31541
31541
|
key: index
|
|
31542
31542
|
}, React.createElement("span", {
|
|
@@ -32476,6 +32476,11 @@ var useExportSessionCsv = function useExportSessionCsv() {
|
|
|
32476
32476
|
var dispatch = useDispatch();
|
|
32477
32477
|
var domainName = window.location.hostname;
|
|
32478
32478
|
var isCheckDomainIskenya = domainName.includes('iskenya');
|
|
32479
|
+
var schoolName = useSelector(function (state) {
|
|
32480
|
+
var _state$common, _state$common$user;
|
|
32481
|
+
|
|
32482
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : (_state$common$user = _state$common.user) === null || _state$common$user === void 0 ? void 0 : _state$common$user.schoolName;
|
|
32483
|
+
}) || "";
|
|
32479
32484
|
|
|
32480
32485
|
var exportSessionsCsv = function exportSessionsCsv(filters) {
|
|
32481
32486
|
try {
|
|
@@ -32491,7 +32496,7 @@ var useExportSessionCsv = function useExportSessionCsv() {
|
|
|
32491
32496
|
var encodedUri = convertDataExportSession(data, filters.startDate, filters.endDate);
|
|
32492
32497
|
var link = document.createElement("a");
|
|
32493
32498
|
link.href = encodedUri;
|
|
32494
|
-
link.download =
|
|
32499
|
+
link.download = schoolName + "_CheckIns_Report.csv";
|
|
32495
32500
|
link.click();
|
|
32496
32501
|
});
|
|
32497
32502
|
}, function (err) {
|
|
@@ -32561,7 +32566,12 @@ var useExportSessionCsv = function useExportSessionCsv() {
|
|
|
32561
32566
|
};
|
|
32562
32567
|
|
|
32563
32568
|
var htmlToText = function htmlToText(html) {
|
|
32564
|
-
|
|
32569
|
+
var entities = [['amp', '&'], ['apos', '\''], ['#x27', '\''], ['#x2F', '/'], ['#39', '\''], ['#47', '/'], ['lt', '<'], ['gt', '>'], ['nbsp', ' '], ['quot', '"']];
|
|
32570
|
+
var result = html.replace(/<[^>]+>/g, '');
|
|
32571
|
+
entities.forEach(function (entity) {
|
|
32572
|
+
result = result.replace(new RegExp('&' + entity[0] + ';', 'g'), entity[1]);
|
|
32573
|
+
});
|
|
32574
|
+
return result;
|
|
32565
32575
|
};
|
|
32566
32576
|
|
|
32567
32577
|
var escapeCell = function escapeCell(value) {
|