mario-education 2.4.152-level → 2.4.153-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.css +2161 -2161
- package/dist/index.js +215 -127
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +215 -127
- package/dist/index.modern.js.map +1 -1
- package/package.json +98 -98
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchCounselor/hooks/useSwitchAssistant.d.ts +0 -18
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/components/SwitchCounselorModal.d.ts +0 -4
- package/dist/MarioFramework.Education/ClientApp/src/containers/SwitchSecondaryTeacher/hooks/useSwitchCounselor.d.ts +0 -18
- /package/dist/MarioFramework.Education/ClientApp/src/utils/{servicetype.interface.d.ts → serviceType.interface.d.ts} +0 -0
package/dist/index.modern.js
CHANGED
|
@@ -93,6 +93,35 @@ function _isSettledPact(thenable) {
|
|
|
93
93
|
return thenable instanceof _Pact && thenable.s & 1;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
// Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)
|
|
97
|
+
function _forTo(array, body, check) {
|
|
98
|
+
var i = -1, pact, reject;
|
|
99
|
+
function _cycle(result) {
|
|
100
|
+
try {
|
|
101
|
+
while (++i < array.length && (!check || !check())) {
|
|
102
|
+
result = body(i);
|
|
103
|
+
if (result && result.then) {
|
|
104
|
+
if (_isSettledPact(result)) {
|
|
105
|
+
result = result.v;
|
|
106
|
+
} else {
|
|
107
|
+
result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (pact) {
|
|
113
|
+
_settle(pact, 1, result);
|
|
114
|
+
} else {
|
|
115
|
+
pact = result;
|
|
116
|
+
}
|
|
117
|
+
} catch (e) {
|
|
118
|
+
_settle(pact || (pact = new _Pact()), 2, e);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
_cycle();
|
|
122
|
+
return pact;
|
|
123
|
+
}
|
|
124
|
+
|
|
96
125
|
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
97
126
|
|
|
98
127
|
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
@@ -5712,7 +5741,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5712
5741
|
|
|
5713
5742
|
var upload = useCallback(function (file) {
|
|
5714
5743
|
try {
|
|
5715
|
-
var
|
|
5744
|
+
var _temp11 = function _temp11() {
|
|
5716
5745
|
dispatch(setLoading(false));
|
|
5717
5746
|
var inputId = document.getElementById(id);
|
|
5718
5747
|
var input = document.getElementById('import-student');
|
|
@@ -5725,8 +5754,8 @@ var useCSVImport = function useCSVImport() {
|
|
|
5725
5754
|
if (!type || !file) return Promise.resolve();
|
|
5726
5755
|
dispatch(setLoading(true));
|
|
5727
5756
|
|
|
5728
|
-
var
|
|
5729
|
-
function
|
|
5757
|
+
var _temp12 = _catch(function () {
|
|
5758
|
+
function _temp8() {
|
|
5730
5759
|
dispatch(setAlert({
|
|
5731
5760
|
type: "success",
|
|
5732
5761
|
message: "Import CSV successfully"
|
|
@@ -5736,31 +5765,29 @@ var useCSVImport = function useCSVImport() {
|
|
|
5736
5765
|
var formData = new FormData();
|
|
5737
5766
|
formData.append("file", file, file.name);
|
|
5738
5767
|
|
|
5739
|
-
var
|
|
5740
|
-
if (
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5768
|
+
var _temp7 = function () {
|
|
5769
|
+
if (type == CSVType.Students) {
|
|
5770
|
+
return Promise.resolve(importStudentCSV(formData)).then(function () {});
|
|
5771
|
+
} else {
|
|
5772
|
+
var _temp13 = function () {
|
|
5773
|
+
if (isCheckDomainIBS) {
|
|
5774
|
+
var _temp14 = function () {
|
|
5775
|
+
if (type == CSVType.ClassReflection) {
|
|
5776
|
+
return Promise.resolve(importClassReflectionCSV(formData)).then(function () {});
|
|
5777
|
+
}
|
|
5778
|
+
}();
|
|
5750
5779
|
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
return Promise.resolve(
|
|
5780
|
+
if (_temp14 && _temp14.then) return _temp14.then(function () {});
|
|
5781
|
+
} else {
|
|
5782
|
+
return Promise.resolve(importCSV(formData, type.toString())).then(function () {});
|
|
5754
5783
|
}
|
|
5755
5784
|
}();
|
|
5756
5785
|
|
|
5757
|
-
|
|
5758
|
-
} else {
|
|
5759
|
-
return Promise.resolve(importCSV(formData, type.toString())).then(function () {});
|
|
5786
|
+
if (_temp13 && _temp13.then) return _temp13.then(function () {});
|
|
5760
5787
|
}
|
|
5761
5788
|
}();
|
|
5762
5789
|
|
|
5763
|
-
return
|
|
5790
|
+
return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
|
|
5764
5791
|
}, function (err) {
|
|
5765
5792
|
var _err$response, _err$response$data;
|
|
5766
5793
|
|
|
@@ -5770,7 +5797,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5770
5797
|
}));
|
|
5771
5798
|
});
|
|
5772
5799
|
|
|
5773
|
-
return Promise.resolve(
|
|
5800
|
+
return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12));
|
|
5774
5801
|
} catch (e) {
|
|
5775
5802
|
return Promise.reject(e);
|
|
5776
5803
|
}
|
|
@@ -5778,7 +5805,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5778
5805
|
|
|
5779
5806
|
var uploadByTeacherId = function uploadByTeacherId(file) {
|
|
5780
5807
|
try {
|
|
5781
|
-
var
|
|
5808
|
+
var _temp17 = function _temp17() {
|
|
5782
5809
|
dispatch(setLoading(false));
|
|
5783
5810
|
var input = document.getElementById('teacherSelector');
|
|
5784
5811
|
input && (input.value = "");
|
|
@@ -5795,7 +5822,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5795
5822
|
if (!type || !file) return Promise.resolve();
|
|
5796
5823
|
dispatch(setLoading(true));
|
|
5797
5824
|
|
|
5798
|
-
var
|
|
5825
|
+
var _temp18 = _catch(function () {
|
|
5799
5826
|
var formData = new FormData();
|
|
5800
5827
|
formData.append("file", file, file.name);
|
|
5801
5828
|
return Promise.resolve(importStudentByTeacher(defaultTeacher, formData)).then(function () {
|
|
@@ -5813,7 +5840,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5813
5840
|
}));
|
|
5814
5841
|
});
|
|
5815
5842
|
|
|
5816
|
-
return Promise.resolve(
|
|
5843
|
+
return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(_temp17) : _temp17(_temp18));
|
|
5817
5844
|
} catch (e) {
|
|
5818
5845
|
return Promise.reject(e);
|
|
5819
5846
|
}
|
|
@@ -5821,7 +5848,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5821
5848
|
|
|
5822
5849
|
var onConfirm = function onConfirm(values) {
|
|
5823
5850
|
try {
|
|
5824
|
-
var
|
|
5851
|
+
var _temp21 = function _temp21() {
|
|
5825
5852
|
dispatch(setLoading(false));
|
|
5826
5853
|
var input = document.getElementById(id);
|
|
5827
5854
|
input && (input.value = "");
|
|
@@ -5830,7 +5857,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5830
5857
|
if (!dataFile || !dataFile) return Promise.resolve();
|
|
5831
5858
|
dispatch(setLoading(true));
|
|
5832
5859
|
|
|
5833
|
-
var
|
|
5860
|
+
var _temp22 = _catch(function () {
|
|
5834
5861
|
var formData = new FormData();
|
|
5835
5862
|
formData.append("file", dataFile, dataFile.name);
|
|
5836
5863
|
formData.append("teacherName", values.teacherName);
|
|
@@ -5854,7 +5881,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
5854
5881
|
}));
|
|
5855
5882
|
});
|
|
5856
5883
|
|
|
5857
|
-
return Promise.resolve(
|
|
5884
|
+
return Promise.resolve(_temp22 && _temp22.then ? _temp22.then(_temp21) : _temp21(_temp22));
|
|
5858
5885
|
} catch (e) {
|
|
5859
5886
|
return Promise.reject(e);
|
|
5860
5887
|
}
|
|
@@ -5942,11 +5969,6 @@ var CSVImport = function CSVImport() {
|
|
|
5942
5969
|
buttons = _useCSVImport.buttons,
|
|
5943
5970
|
upload = _useCSVImport.upload,
|
|
5944
5971
|
isCheckDomainIBS = _useCSVImport.isCheckDomainIBS,
|
|
5945
|
-
onChangeTeacher = _useCSVImport.onChangeTeacher,
|
|
5946
|
-
setDataFileImportStudent = _useCSVImport.setDataFileImportStudent,
|
|
5947
|
-
defaultTeacher = _useCSVImport.defaultTeacher,
|
|
5948
|
-
fileName = _useCSVImport.fileName,
|
|
5949
|
-
onStudentSubmit = _useCSVImport.onStudentSubmit,
|
|
5950
5972
|
downloadTemplateStudentISB = _useCSVImport.downloadTemplateStudentISB;
|
|
5951
5973
|
|
|
5952
5974
|
var _useTranslation = useTranslation(),
|
|
@@ -6063,40 +6085,43 @@ var CSVImport = function CSVImport() {
|
|
|
6063
6085
|
});
|
|
6064
6086
|
})))));
|
|
6065
6087
|
}))) : React.createElement(React.Fragment, null, React.createElement(Row, null, React.createElement(Col, {
|
|
6066
|
-
md:
|
|
6067
|
-
className: "mb-
|
|
6068
|
-
}, React.createElement(
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6088
|
+
md: 12,
|
|
6089
|
+
className: "mb-2 text-left"
|
|
6090
|
+
}, React.createElement(Button, {
|
|
6091
|
+
role: "button",
|
|
6092
|
+
color: "primary",
|
|
6093
|
+
onClick: function onClick() {
|
|
6094
|
+
return downloadTemplateStudentISB();
|
|
6095
|
+
}
|
|
6096
|
+
}, React.createElement("p", {
|
|
6097
|
+
className: "d-flex align-items-center mb-0"
|
|
6098
|
+
}, t("download_template"), " ", React.createElement(AiOutlineDownload, {
|
|
6099
|
+
size: 20,
|
|
6100
|
+
className: "ml-2"
|
|
6101
|
+
})))), React.createElement(Col, {
|
|
6102
|
+
md: 6,
|
|
6103
|
+
className: "mb-2"
|
|
6104
|
+
}, React.createElement(Input, {
|
|
6105
|
+
id: "import-student",
|
|
6076
6106
|
className: "d-none",
|
|
6077
6107
|
type: "file",
|
|
6078
|
-
id: "teacherSelector",
|
|
6079
6108
|
onChange: function onChange(e) {
|
|
6080
|
-
return
|
|
6109
|
+
return upload(e.target.files[0]);
|
|
6081
6110
|
},
|
|
6082
6111
|
accept: "text/csv"
|
|
6112
|
+
}), React.createElement(RequiredLabel, {
|
|
6113
|
+
text: "Import student"
|
|
6083
6114
|
}), React.createElement(UploadCSVButton, {
|
|
6084
|
-
key: "
|
|
6085
|
-
htmlFor:
|
|
6086
|
-
text: "
|
|
6115
|
+
key: "import-students",
|
|
6116
|
+
htmlFor: 'import-student',
|
|
6117
|
+
text: "Import students",
|
|
6087
6118
|
isDisabled: isLoading,
|
|
6088
|
-
backgroundColor: "#
|
|
6119
|
+
backgroundColor: "#0abde3",
|
|
6089
6120
|
onClick: function onClick() {
|
|
6090
|
-
|
|
6121
|
+
setType(CSVType.Students);
|
|
6091
6122
|
}
|
|
6092
|
-
})), React.createElement(
|
|
6093
|
-
|
|
6094
|
-
onClick: onStudentSubmit,
|
|
6095
|
-
className: "w-100 mt-3"
|
|
6096
|
-
}, "Import")), React.createElement(Col, {
|
|
6097
|
-
md: 3
|
|
6098
|
-
}), React.createElement(Col, {
|
|
6099
|
-
md: 3,
|
|
6123
|
+
})), React.createElement(Col, {
|
|
6124
|
+
md: 6,
|
|
6100
6125
|
className: "mb-3"
|
|
6101
6126
|
}, React.createElement(Input, {
|
|
6102
6127
|
className: "d-none",
|
|
@@ -6107,7 +6132,9 @@ var CSVImport = function CSVImport() {
|
|
|
6107
6132
|
},
|
|
6108
6133
|
accept: "text/csv"
|
|
6109
6134
|
}), buttons.map(function (button) {
|
|
6110
|
-
return React.createElement(
|
|
6135
|
+
return React.createElement(React.Fragment, null, React.createElement(RequiredLabel, {
|
|
6136
|
+
text: button.text
|
|
6137
|
+
}), React.createElement(UploadCSVButton, {
|
|
6111
6138
|
key: button.text,
|
|
6112
6139
|
htmlFor: id,
|
|
6113
6140
|
text: button.text,
|
|
@@ -6116,7 +6143,7 @@ var CSVImport = function CSVImport() {
|
|
|
6116
6143
|
onClick: function onClick() {
|
|
6117
6144
|
return setType(button.type);
|
|
6118
6145
|
}
|
|
6119
|
-
});
|
|
6146
|
+
}));
|
|
6120
6147
|
})))));
|
|
6121
6148
|
};
|
|
6122
6149
|
|
|
@@ -11124,7 +11151,7 @@ var INITIAL_CHOSEN_USER$1 = {
|
|
|
11124
11151
|
studentName: ""
|
|
11125
11152
|
};
|
|
11126
11153
|
|
|
11127
|
-
var TITLE$h = "Assign
|
|
11154
|
+
var TITLE$h = "Assign support teacher list";
|
|
11128
11155
|
|
|
11129
11156
|
var useAssignSecondaryTeacher = function useAssignSecondaryTeacher() {
|
|
11130
11157
|
var modal = useRef();
|
|
@@ -11257,7 +11284,7 @@ var useAssignSecondaryTeacher = function useAssignSecondaryTeacher() {
|
|
|
11257
11284
|
if (!secondaryTeacherChangeId) {
|
|
11258
11285
|
dispatch(setAlert({
|
|
11259
11286
|
type: "danger",
|
|
11260
|
-
message: "
|
|
11287
|
+
message: "Support Teacher have not been selected!"
|
|
11261
11288
|
}));
|
|
11262
11289
|
return Promise.resolve();
|
|
11263
11290
|
}
|
|
@@ -11265,7 +11292,7 @@ var useAssignSecondaryTeacher = function useAssignSecondaryTeacher() {
|
|
|
11265
11292
|
dispatch(setModal({
|
|
11266
11293
|
isOpen: true,
|
|
11267
11294
|
type: "warning",
|
|
11268
|
-
message: "Do you want to assign this
|
|
11295
|
+
message: "Do you want to assign this Support Teacher to student " + chosenUser.studentName + "?",
|
|
11269
11296
|
onConfirm: function () {
|
|
11270
11297
|
try {
|
|
11271
11298
|
var _temp9 = function _temp9() {
|
|
@@ -11278,7 +11305,7 @@ var useAssignSecondaryTeacher = function useAssignSecondaryTeacher() {
|
|
|
11278
11305
|
return Promise.resolve(assignSecondaryTeacherOfStudent(chosenUser.id, chosenUser.teacherId, secondaryTeacherChangeId)).then(function () {
|
|
11279
11306
|
dispatch(setAlert({
|
|
11280
11307
|
type: "success",
|
|
11281
|
-
message: "Assign
|
|
11308
|
+
message: "Assign Support Teacher successfully"
|
|
11282
11309
|
}));
|
|
11283
11310
|
openModal();
|
|
11284
11311
|
resetData();
|
|
@@ -11365,13 +11392,13 @@ var AssignSecondaryTeacherModal = function AssignSecondaryTeacherModal(_ref, ref
|
|
|
11365
11392
|
}, t("student_email")), React.createElement("p", null, chosenUser.emailStudent), !!chosenUser && React.createElement(CustomSelector, {
|
|
11366
11393
|
options: options,
|
|
11367
11394
|
value: valueDefault,
|
|
11368
|
-
placeholder: t("
|
|
11395
|
+
placeholder: t("select_support_teacher"),
|
|
11369
11396
|
onChange: function onChange(e) {
|
|
11370
11397
|
return setSecondaryTeacherChangeId((e === null || e === void 0 ? void 0 : e.value) || 0);
|
|
11371
11398
|
},
|
|
11372
11399
|
isClearable: true
|
|
11373
11400
|
}), !!isChecked && !secondaryTeacherChangeId && React.createElement(ErrorHandler, {
|
|
11374
|
-
text: "
|
|
11401
|
+
text: "Support Teacher is required"
|
|
11375
11402
|
}))));
|
|
11376
11403
|
};
|
|
11377
11404
|
|
|
@@ -11446,7 +11473,7 @@ var AssignSecondaryTeacherList = function AssignSecondaryTeacherList() {
|
|
|
11446
11473
|
onClick: function onClick() {
|
|
11447
11474
|
return choiceUser(record);
|
|
11448
11475
|
}
|
|
11449
|
-
}, t("
|
|
11476
|
+
}, t("assign_support_teacher"))));
|
|
11450
11477
|
})))) : React.createElement(EmptyDataAlert, {
|
|
11451
11478
|
label: "user"
|
|
11452
11479
|
})), React.createElement(Col, {
|
|
@@ -11466,7 +11493,7 @@ var AssignSecondaryTeacherList = function AssignSecondaryTeacherList() {
|
|
|
11466
11493
|
}
|
|
11467
11494
|
}))), React.createElement(AssignSecondaryTeacherModal$1, {
|
|
11468
11495
|
ref: modal,
|
|
11469
|
-
header: t("
|
|
11496
|
+
header: t("assign_support_teacher"),
|
|
11470
11497
|
chosenUser: chosenUser,
|
|
11471
11498
|
onAssign: handleAssign,
|
|
11472
11499
|
options: options,
|
|
@@ -11902,12 +11929,12 @@ var SwitchSecondaryTeacherModal = function SwitchSecondaryTeacherModal(_ref, ref
|
|
|
11902
11929
|
className: "font-weight-bold"
|
|
11903
11930
|
}, t("student_email")), React.createElement("p", null, userChoiced.emailStudent), React.createElement("p", {
|
|
11904
11931
|
className: "font-weight-bold"
|
|
11905
|
-
}, t("
|
|
11932
|
+
}, t("current_support_teacher_name")), React.createElement("p", null, userChoiced.secondaryTeacherName), React.createElement("p", {
|
|
11906
11933
|
className: "font-weight-bold"
|
|
11907
|
-
}, t("
|
|
11934
|
+
}, t("current_support_teacher_email")), React.createElement("p", null, userChoiced.emailSecondaryTeacher), !!userChoiced && React.createElement(CustomSelector, {
|
|
11908
11935
|
options: options,
|
|
11909
11936
|
value: valueDefault,
|
|
11910
|
-
placeholder: t("
|
|
11937
|
+
placeholder: t("select_support_teacher_change"),
|
|
11911
11938
|
onChange: function onChange(e) {
|
|
11912
11939
|
return setSecondaryTeacherChangeId(e.value);
|
|
11913
11940
|
}
|
|
@@ -11925,7 +11952,7 @@ var INITIAL_USER_CHOICE$3 = {
|
|
|
11925
11952
|
assistantName: ""
|
|
11926
11953
|
};
|
|
11927
11954
|
|
|
11928
|
-
var TITLE$j = "Switch
|
|
11955
|
+
var TITLE$j = "Switch support list";
|
|
11929
11956
|
|
|
11930
11957
|
var useSwitchSecondaryTeacher = function useSwitchSecondaryTeacher() {
|
|
11931
11958
|
var modal = useRef();
|
|
@@ -12040,7 +12067,7 @@ var useSwitchSecondaryTeacher = function useSwitchSecondaryTeacher() {
|
|
|
12040
12067
|
dispatch(setModal({
|
|
12041
12068
|
isOpen: true,
|
|
12042
12069
|
type: "warning",
|
|
12043
|
-
message: "Do you want to change
|
|
12070
|
+
message: "Do you want to change support teacher?",
|
|
12044
12071
|
onConfirm: function () {
|
|
12045
12072
|
try {
|
|
12046
12073
|
var _temp9 = function _temp9() {
|
|
@@ -12053,7 +12080,7 @@ var useSwitchSecondaryTeacher = function useSwitchSecondaryTeacher() {
|
|
|
12053
12080
|
return Promise.resolve(changeSecondaryTeacherOfStudent(studentId, secondaryTeacherId)).then(function () {
|
|
12054
12081
|
dispatch(setAlert({
|
|
12055
12082
|
type: "success",
|
|
12056
|
-
message: "Change
|
|
12083
|
+
message: "Change support teacher successfully"
|
|
12057
12084
|
}));
|
|
12058
12085
|
openModal();
|
|
12059
12086
|
resetData();
|
|
@@ -12088,7 +12115,7 @@ var useSwitchSecondaryTeacher = function useSwitchSecondaryTeacher() {
|
|
|
12088
12115
|
dispatch(setModal({
|
|
12089
12116
|
isOpen: true,
|
|
12090
12117
|
type: "warning",
|
|
12091
|
-
message: "Do you want to remove this
|
|
12118
|
+
message: "Do you want to remove this support teacher?",
|
|
12092
12119
|
onConfirm: function () {
|
|
12093
12120
|
try {
|
|
12094
12121
|
var _temp12 = _catch(function () {
|
|
@@ -12096,7 +12123,7 @@ var useSwitchSecondaryTeacher = function useSwitchSecondaryTeacher() {
|
|
|
12096
12123
|
getStudentSecondaryTeacherData();
|
|
12097
12124
|
dispatch(setAlert({
|
|
12098
12125
|
type: "success",
|
|
12099
|
-
message: "Remove
|
|
12126
|
+
message: "Remove support teacher successfully"
|
|
12100
12127
|
}));
|
|
12101
12128
|
});
|
|
12102
12129
|
}, function (err) {
|
|
@@ -12150,20 +12177,20 @@ var useSwitchSecondaryTeacher = function useSwitchSecondaryTeacher() {
|
|
|
12150
12177
|
var header$a = "list_students";
|
|
12151
12178
|
|
|
12152
12179
|
var SwitchSecondaryTeacherList = function SwitchSecondaryTeacherList() {
|
|
12153
|
-
var
|
|
12154
|
-
userList =
|
|
12155
|
-
totalItems =
|
|
12156
|
-
filters =
|
|
12157
|
-
changeFilters =
|
|
12158
|
-
modal =
|
|
12159
|
-
userChoiced =
|
|
12160
|
-
options =
|
|
12161
|
-
setSecondaryTeacherChangeId =
|
|
12162
|
-
secondaryTeacherChangeId =
|
|
12163
|
-
removeData =
|
|
12164
|
-
resetData =
|
|
12165
|
-
choiceUser =
|
|
12166
|
-
onDeleteSecondaryTeacher =
|
|
12180
|
+
var _uuseSwitchSecondaryT = useSwitchSecondaryTeacher(),
|
|
12181
|
+
userList = _uuseSwitchSecondaryT.userList,
|
|
12182
|
+
totalItems = _uuseSwitchSecondaryT.totalItems,
|
|
12183
|
+
filters = _uuseSwitchSecondaryT.filters,
|
|
12184
|
+
changeFilters = _uuseSwitchSecondaryT.changeFilters,
|
|
12185
|
+
modal = _uuseSwitchSecondaryT.modal,
|
|
12186
|
+
userChoiced = _uuseSwitchSecondaryT.userChoiced,
|
|
12187
|
+
options = _uuseSwitchSecondaryT.options,
|
|
12188
|
+
setSecondaryTeacherChangeId = _uuseSwitchSecondaryT.setSecondaryTeacherChangeId,
|
|
12189
|
+
secondaryTeacherChangeId = _uuseSwitchSecondaryT.secondaryTeacherChangeId,
|
|
12190
|
+
removeData = _uuseSwitchSecondaryT.removeData,
|
|
12191
|
+
resetData = _uuseSwitchSecondaryT.resetData,
|
|
12192
|
+
choiceUser = _uuseSwitchSecondaryT.choiceUser,
|
|
12193
|
+
onDeleteSecondaryTeacher = _uuseSwitchSecondaryT.onDeleteSecondaryTeacher;
|
|
12167
12194
|
|
|
12168
12195
|
var _useTranslation = useTranslation(),
|
|
12169
12196
|
t = _useTranslation.t;
|
|
@@ -12203,11 +12230,11 @@ var SwitchSecondaryTeacherList = function SwitchSecondaryTeacherList() {
|
|
|
12203
12230
|
className: "align-top"
|
|
12204
12231
|
}, t("student_email")), React.createElement("th", {
|
|
12205
12232
|
className: "align-top"
|
|
12206
|
-
}, t("
|
|
12233
|
+
}, t("current_support_teacher_name")), React.createElement("th", {
|
|
12207
12234
|
className: "align-top"
|
|
12208
|
-
}, t("
|
|
12235
|
+
}, t("current_support_teacher_email")), React.createElement("th", {
|
|
12209
12236
|
className: "align-top"
|
|
12210
|
-
}, t("
|
|
12237
|
+
}, t("remove_support_teacher")))), React.createElement("tbody", null, !!userList && userList.length > 0 && userList.map(function (record) {
|
|
12211
12238
|
return React.createElement("tr", {
|
|
12212
12239
|
key: record.id
|
|
12213
12240
|
}, React.createElement("td", {
|
|
@@ -12249,7 +12276,7 @@ var SwitchSecondaryTeacherList = function SwitchSecondaryTeacherList() {
|
|
|
12249
12276
|
}
|
|
12250
12277
|
}))), React.createElement(SwitchSecondaryTeacherModal$1, {
|
|
12251
12278
|
ref: modal,
|
|
12252
|
-
header: t("
|
|
12279
|
+
header: t("switch_support_teacher"),
|
|
12253
12280
|
userChoiced: userChoiced,
|
|
12254
12281
|
removeData: removeData,
|
|
12255
12282
|
options: options,
|
|
@@ -12329,11 +12356,11 @@ var tabs = [{
|
|
|
12329
12356
|
component: SwitchCounselorList
|
|
12330
12357
|
}, {
|
|
12331
12358
|
path: "/admin/set-up/assign-secondary-teacher",
|
|
12332
|
-
title: "Assign
|
|
12359
|
+
title: "Assign support teacher",
|
|
12333
12360
|
component: AssignSecondaryTeacherList
|
|
12334
12361
|
}, {
|
|
12335
12362
|
path: "/admin/set-up/switch-secondary-teacher",
|
|
12336
|
-
title: "Switch
|
|
12363
|
+
title: "Switch support teacher",
|
|
12337
12364
|
component: SwitchSecondaryTeacherList
|
|
12338
12365
|
}, {
|
|
12339
12366
|
path: "/admin/set-up/welcome-email-re-send",
|
|
@@ -28567,7 +28594,7 @@ var learningStrategyChartOptions = function learningStrategyChartOptions(labelNa
|
|
|
28567
28594
|
var average = function average(arr) {
|
|
28568
28595
|
return arr.reduce(function (a, b) {
|
|
28569
28596
|
return a + b;
|
|
28570
|
-
}, 0) / arr.length;
|
|
28597
|
+
}, 0) / arr.length || 0;
|
|
28571
28598
|
};
|
|
28572
28599
|
var getConvertMinuteToHour = function getConvertMinuteToHour(timeSecond) {
|
|
28573
28600
|
var hTime = "";
|
|
@@ -31030,23 +31057,23 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31030
31057
|
|
|
31031
31058
|
var generatePDF = function generatePDF() {
|
|
31032
31059
|
try {
|
|
31033
|
-
var
|
|
31060
|
+
var _temp30 = function _temp30() {
|
|
31034
31061
|
dispatch(setLoading(false));
|
|
31035
31062
|
};
|
|
31036
31063
|
|
|
31037
31064
|
dispatch(setLoading(true));
|
|
31038
31065
|
|
|
31039
|
-
var
|
|
31040
|
-
function
|
|
31041
|
-
function
|
|
31042
|
-
function
|
|
31043
|
-
function
|
|
31044
|
-
function
|
|
31045
|
-
function
|
|
31066
|
+
var _temp31 = _catch(function () {
|
|
31067
|
+
function _temp27() {
|
|
31068
|
+
function _temp25() {
|
|
31069
|
+
function _temp23() {
|
|
31070
|
+
function _temp21() {
|
|
31071
|
+
function _temp19() {
|
|
31072
|
+
function _temp17() {
|
|
31046
31073
|
doc.save("DashBoard.pdf");
|
|
31047
31074
|
}
|
|
31048
31075
|
|
|
31049
|
-
var
|
|
31076
|
+
var _temp16 = function () {
|
|
31050
31077
|
if (selectedToPDF.includes(topLearningStrategyName)) {
|
|
31051
31078
|
var chart = document.getElementById("learning_strategy");
|
|
31052
31079
|
return Promise.resolve(html2canvas(chart)).then(function (canvas) {
|
|
@@ -31058,10 +31085,10 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31058
31085
|
}
|
|
31059
31086
|
}();
|
|
31060
31087
|
|
|
31061
|
-
return
|
|
31088
|
+
return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
|
|
31062
31089
|
}
|
|
31063
31090
|
|
|
31064
|
-
var
|
|
31091
|
+
var _temp18 = function () {
|
|
31065
31092
|
if (selectedToPDF.includes(learningProcessName)) {
|
|
31066
31093
|
return Promise.resolve(createImageHeader()).then(function () {
|
|
31067
31094
|
doc.setFontSize(14);
|
|
@@ -31070,20 +31097,82 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31070
31097
|
line += 20;
|
|
31071
31098
|
var chart = document.getElementById("learning_progress");
|
|
31072
31099
|
return Promise.resolve(html2canvas(chart)).then(function (canvas) {
|
|
31100
|
+
function _temp15() {
|
|
31101
|
+
left = 20;
|
|
31102
|
+
doc.addImage(canvas.toDataURL("image/png"), 10, line + 70, 420, heightChart);
|
|
31103
|
+
doc.setFontSize(8);
|
|
31104
|
+
doc.addPage();
|
|
31105
|
+
line = 80;
|
|
31106
|
+
left = 20;
|
|
31107
|
+
}
|
|
31108
|
+
|
|
31109
|
+
var lineOptionPrecess = line;
|
|
31073
31110
|
doc.setFontSize(8);
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31111
|
+
var questions = seriesConference.map(function (r) {
|
|
31112
|
+
return r.name;
|
|
31113
|
+
});
|
|
31114
|
+
|
|
31115
|
+
var _temp14 = _forTo(monthsConference, function (index) {
|
|
31116
|
+
var _line = line;
|
|
31117
|
+
doc.setFontSize(12);
|
|
31118
|
+
doc.setFont("Helvetica", "normal", "bold");
|
|
31119
|
+
doc.text(monthsConference[index], left, _line);
|
|
31120
|
+
doc.setFontSize(8);
|
|
31121
|
+
|
|
31122
|
+
for (var indexResult = 0; indexResult < (seriesConference === null || seriesConference === void 0 ? void 0 : seriesConference.length); indexResult++) {
|
|
31123
|
+
var avg = seriesConference[indexResult].data[index];
|
|
31124
|
+
|
|
31125
|
+
if (avg != 0) {
|
|
31126
|
+
var questionText = questions[indexResult];
|
|
31127
|
+
|
|
31128
|
+
if (questionText != "") {
|
|
31129
|
+
doc.setDrawColor(0);
|
|
31130
|
+
doc.setFillColor(COLOR_CHART_AND_PERCENTS[indexResult]);
|
|
31131
|
+
doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
|
|
31132
|
+
doc.setFont("Helvetica", "normal", "bold");
|
|
31133
|
+
doc.text(questionText + ":", left + 8, _line + 10);
|
|
31134
|
+
doc.setFont("Helvetica", "normal", "normal");
|
|
31135
|
+
doc.text((avg === null || avg === void 0 ? void 0 : avg.toFixed(2)) + "%", left + (questionText === null || questionText === void 0 ? void 0 : questionText.length) * 2.5 + 20.5, _line + 10);
|
|
31136
|
+
}
|
|
31137
|
+
|
|
31138
|
+
_line += 10;
|
|
31139
|
+
|
|
31140
|
+
if (_line > lineOptionPrecess) {
|
|
31141
|
+
lineOptionPrecess = _line;
|
|
31142
|
+
}
|
|
31143
|
+
}
|
|
31144
|
+
}
|
|
31145
|
+
|
|
31146
|
+
left += 100;
|
|
31147
|
+
|
|
31148
|
+
if (left + 105 > WIDTH_PAPER) {
|
|
31149
|
+
left = 20;
|
|
31150
|
+
line = lineOptionPrecess + 25;
|
|
31151
|
+
}
|
|
31152
|
+
|
|
31153
|
+
var _temp13 = function () {
|
|
31154
|
+
if (line + 150 > HEIGHT_PAPER) {
|
|
31155
|
+
doc.addPage();
|
|
31156
|
+
return Promise.resolve(createImageHeader()).then(function () {
|
|
31157
|
+
line = 80;
|
|
31158
|
+
left = 20;
|
|
31159
|
+
});
|
|
31160
|
+
}
|
|
31161
|
+
}();
|
|
31162
|
+
|
|
31163
|
+
if (_temp13 && _temp13.then) return _temp13.then(function () {});
|
|
31164
|
+
});
|
|
31165
|
+
|
|
31166
|
+
return _temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14);
|
|
31078
31167
|
});
|
|
31079
31168
|
});
|
|
31080
31169
|
}
|
|
31081
31170
|
}();
|
|
31082
31171
|
|
|
31083
|
-
return
|
|
31172
|
+
return _temp18 && _temp18.then ? _temp18.then(_temp19) : _temp19(_temp18);
|
|
31084
31173
|
}
|
|
31085
31174
|
|
|
31086
|
-
var
|
|
31175
|
+
var _temp20 = function () {
|
|
31087
31176
|
if (selectedToPDF.includes(successIndicatorsName)) {
|
|
31088
31177
|
return Promise.resolve(createImageHeader()).then(function () {
|
|
31089
31178
|
doc.setFontSize(14);
|
|
@@ -31170,15 +31259,15 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31170
31259
|
}
|
|
31171
31260
|
}();
|
|
31172
31261
|
|
|
31173
|
-
return
|
|
31262
|
+
return _temp20 && _temp20.then ? _temp20.then(_temp21) : _temp21(_temp20);
|
|
31174
31263
|
}
|
|
31175
31264
|
|
|
31176
|
-
var
|
|
31265
|
+
var _temp22 = function () {
|
|
31177
31266
|
if (selectedToPDF.includes(preparednessChartName)) {
|
|
31178
31267
|
return Promise.resolve(createImageHeader()).then(function () {
|
|
31179
31268
|
doc.setFontSize(14);
|
|
31180
31269
|
doc.setFont("Helvetica", "normal", "bold");
|
|
31181
|
-
doc.text(
|
|
31270
|
+
doc.text("Readiness To Learn", left, line);
|
|
31182
31271
|
line += 20;
|
|
31183
31272
|
var chart = document.getElementById("preparedness");
|
|
31184
31273
|
return Promise.resolve(html2canvas(chart)).then(function (canvas) {
|
|
@@ -31260,10 +31349,10 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31260
31349
|
}
|
|
31261
31350
|
}();
|
|
31262
31351
|
|
|
31263
|
-
return
|
|
31352
|
+
return _temp22 && _temp22.then ? _temp22.then(_temp23) : _temp23(_temp22);
|
|
31264
31353
|
}
|
|
31265
31354
|
|
|
31266
|
-
var
|
|
31355
|
+
var _temp24 = function () {
|
|
31267
31356
|
if (selectedToPDF.includes(averageStudentStressName)) {
|
|
31268
31357
|
return Promise.resolve(createImageHeader()).then(function () {
|
|
31269
31358
|
doc.setFontSize(14);
|
|
@@ -31349,7 +31438,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31349
31438
|
}
|
|
31350
31439
|
}();
|
|
31351
31440
|
|
|
31352
|
-
return
|
|
31441
|
+
return _temp24 && _temp24.then ? _temp24.then(_temp25) : _temp25(_temp24);
|
|
31353
31442
|
}
|
|
31354
31443
|
|
|
31355
31444
|
var doc = new jsPDF({
|
|
@@ -31382,7 +31471,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31382
31471
|
var line = 85;
|
|
31383
31472
|
var left = 20;
|
|
31384
31473
|
|
|
31385
|
-
var
|
|
31474
|
+
var _temp26 = function () {
|
|
31386
31475
|
if (selectedToPDF.includes(averageStudentSafetyName)) {
|
|
31387
31476
|
return Promise.resolve(createImageHeader()).then(function () {
|
|
31388
31477
|
doc.setFontSize(14);
|
|
@@ -31470,7 +31559,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31470
31559
|
}
|
|
31471
31560
|
}();
|
|
31472
31561
|
|
|
31473
|
-
return
|
|
31562
|
+
return _temp26 && _temp26.then ? _temp26.then(_temp27) : _temp27(_temp26);
|
|
31474
31563
|
}, function (err) {
|
|
31475
31564
|
console.log(err);
|
|
31476
31565
|
dispatch(setAlert({
|
|
@@ -31479,7 +31568,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31479
31568
|
}));
|
|
31480
31569
|
});
|
|
31481
31570
|
|
|
31482
|
-
return Promise.resolve(
|
|
31571
|
+
return Promise.resolve(_temp31 && _temp31.then ? _temp31.then(_temp30) : _temp30(_temp31));
|
|
31483
31572
|
} catch (e) {
|
|
31484
31573
|
return Promise.reject(e);
|
|
31485
31574
|
}
|
|
@@ -31546,7 +31635,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31546
31635
|
months: monthsOneToOne,
|
|
31547
31636
|
dayOfWeek: dayOfWeekOneToOne,
|
|
31548
31637
|
timeOfDay: timeOfDay,
|
|
31549
|
-
colors: ["#73C8E5", "#
|
|
31638
|
+
colors: ["#73C8E5", "#FFB04F", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
|
|
31550
31639
|
})), React.createElement("div", {
|
|
31551
31640
|
id: "learning_progress",
|
|
31552
31641
|
style: {
|
|
@@ -31555,7 +31644,6 @@ var DashboardToPDF = function DashboardToPDF(props) {
|
|
|
31555
31644
|
}
|
|
31556
31645
|
}, React.createElement(GenerateChartData, {
|
|
31557
31646
|
colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
|
|
31558
|
-
name: "Learning Process",
|
|
31559
31647
|
typeChart: TYPECHART.AREA,
|
|
31560
31648
|
activeColumn: activeColumnConference,
|
|
31561
31649
|
series: seriesConference,
|
|
@@ -32152,7 +32240,7 @@ var Dashboard = function Dashboard() {
|
|
|
32152
32240
|
md: chartIsOpened[0] ? 7 : 12
|
|
32153
32241
|
}, React.createElement(GenerateChartData, {
|
|
32154
32242
|
colors: ["#169490", "#316CD9", "#FFB04F"],
|
|
32155
|
-
name:
|
|
32243
|
+
name: "Readiness To Learn",
|
|
32156
32244
|
typeChart: TYPECHART.AREA,
|
|
32157
32245
|
onActiveColumn: handleActiveColumnOneToOne,
|
|
32158
32246
|
activeColumn: activeColumnPreparedness,
|
|
@@ -32185,7 +32273,7 @@ var Dashboard = function Dashboard() {
|
|
|
32185
32273
|
months: monthsOneToOne,
|
|
32186
32274
|
dayOfWeek: dayOfWeekOneToOne,
|
|
32187
32275
|
timeOfDay: filter.optionDate,
|
|
32188
|
-
colors: ["#73C8E5", "#
|
|
32276
|
+
colors: ["#73C8E5", "#FFB04F", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
|
|
32189
32277
|
}))), React.createElement(BubbleChartCustom$1, {
|
|
32190
32278
|
data: readinessToLearning
|
|
32191
32279
|
}), React.createElement("div", {
|