mario-core 2.9.383-feedback → 2.9.385-feedback
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 +39 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2077,6 +2077,8 @@ var you_havent_added_any_skills_yet = "You havent added any skills yet";
|
|
|
2077
2077
|
var what_s_on_your_mind = "What's on your mind?";
|
|
2078
2078
|
var these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above = "These are the last 5 comments from recent check-ins, filtered by the selected criteria above.";
|
|
2079
2079
|
var view_all_responses = "View All Responses";
|
|
2080
|
+
var are_not_ready_to_learn = "are not ready to learn";
|
|
2081
|
+
var students_who_are_not_ready_to_learn = "Students who are not ready to learn";
|
|
2080
2082
|
var lang_us = {
|
|
2081
2083
|
dashboard: dashboard,
|
|
2082
2084
|
user: user,
|
|
@@ -4161,7 +4163,9 @@ var lang_us = {
|
|
|
4161
4163
|
you_havent_added_any_skills_yet: you_havent_added_any_skills_yet,
|
|
4162
4164
|
what_s_on_your_mind: what_s_on_your_mind,
|
|
4163
4165
|
these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above: these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above,
|
|
4164
|
-
view_all_responses: view_all_responses
|
|
4166
|
+
view_all_responses: view_all_responses,
|
|
4167
|
+
are_not_ready_to_learn: are_not_ready_to_learn,
|
|
4168
|
+
students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn
|
|
4165
4169
|
};
|
|
4166
4170
|
|
|
4167
4171
|
var dashboard$1 = "Dashboard";
|
|
@@ -6202,6 +6206,8 @@ var you_havent_added_any_skills_yet$1 = "You havent added any skills yet";
|
|
|
6202
6206
|
var what_s_on_your_mind$1 = "What's on your mind?";
|
|
6203
6207
|
var these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$1 = "These are the last 5 comments from recent check-ins, filtered by the selected criteria above.";
|
|
6204
6208
|
var view_all_responses$1 = "View All Responses";
|
|
6209
|
+
var are_not_ready_to_learn$1 = "are not ready to learn";
|
|
6210
|
+
var students_who_are_not_ready_to_learn$1 = "Students who are not ready to learn";
|
|
6205
6211
|
var lang_uk = {
|
|
6206
6212
|
dashboard: dashboard$1,
|
|
6207
6213
|
user: user$1,
|
|
@@ -8286,7 +8292,9 @@ var lang_uk = {
|
|
|
8286
8292
|
you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$1,
|
|
8287
8293
|
what_s_on_your_mind: what_s_on_your_mind$1,
|
|
8288
8294
|
these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above: these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$1,
|
|
8289
|
-
view_all_responses: view_all_responses$1
|
|
8295
|
+
view_all_responses: view_all_responses$1,
|
|
8296
|
+
are_not_ready_to_learn: are_not_ready_to_learn$1,
|
|
8297
|
+
students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$1
|
|
8290
8298
|
};
|
|
8291
8299
|
|
|
8292
8300
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -10357,6 +10365,8 @@ var you_havent_added_any_skills_yet$2 = "You havent added any skills yet";
|
|
|
10357
10365
|
var what_s_on_your_mind$2 = "What's on your mind?";
|
|
10358
10366
|
var these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$2 = "These are the last 5 comments from recent check-ins, filtered by the selected criteria above.";
|
|
10359
10367
|
var view_all_responses$2 = "View All Responses";
|
|
10368
|
+
var are_not_ready_to_learn$2 = "are not ready to learn";
|
|
10369
|
+
var students_who_are_not_ready_to_learn$2 = "Students who are not ready to learn";
|
|
10360
10370
|
var lang_ar = {
|
|
10361
10371
|
dashboard: dashboard$2,
|
|
10362
10372
|
user: user$2,
|
|
@@ -12473,7 +12483,9 @@ var lang_ar = {
|
|
|
12473
12483
|
you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$2,
|
|
12474
12484
|
what_s_on_your_mind: what_s_on_your_mind$2,
|
|
12475
12485
|
these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above: these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$2,
|
|
12476
|
-
view_all_responses: view_all_responses$2
|
|
12486
|
+
view_all_responses: view_all_responses$2,
|
|
12487
|
+
are_not_ready_to_learn: are_not_ready_to_learn$2,
|
|
12488
|
+
students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$2
|
|
12477
12489
|
};
|
|
12478
12490
|
|
|
12479
12491
|
var dashboard$3 = "Cuadro de mandos";
|
|
@@ -14544,6 +14556,8 @@ var you_havent_added_any_skills_yet$3 = "You havent added any skills yet";
|
|
|
14544
14556
|
var what_s_on_your_mind$3 = "What's on your mind?";
|
|
14545
14557
|
var these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$3 = "These are the last 5 comments from recent check-ins, filtered by the selected criteria above.";
|
|
14546
14558
|
var view_all_responses$3 = "View All Responses";
|
|
14559
|
+
var are_not_ready_to_learn$3 = "are not ready to learn";
|
|
14560
|
+
var students_who_are_not_ready_to_learn$3 = "Students who are not ready to learn";
|
|
14547
14561
|
var lang_es = {
|
|
14548
14562
|
dashboard: dashboard$3,
|
|
14549
14563
|
user: user$3,
|
|
@@ -16660,7 +16674,9 @@ var lang_es = {
|
|
|
16660
16674
|
you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$3,
|
|
16661
16675
|
what_s_on_your_mind: what_s_on_your_mind$3,
|
|
16662
16676
|
these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above: these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$3,
|
|
16663
|
-
view_all_responses: view_all_responses$3
|
|
16677
|
+
view_all_responses: view_all_responses$3,
|
|
16678
|
+
are_not_ready_to_learn: are_not_ready_to_learn$3,
|
|
16679
|
+
students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$3
|
|
16664
16680
|
};
|
|
16665
16681
|
|
|
16666
16682
|
var dashboard$4 = "仪表板";
|
|
@@ -18731,6 +18747,8 @@ var you_havent_added_any_skills_yet$4 = "You havent added any skills yet";
|
|
|
18731
18747
|
var what_s_on_your_mind$4 = "What's on your mind?";
|
|
18732
18748
|
var these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$4 = "These are the last 5 comments from recent check-ins, filtered by the selected criteria above.";
|
|
18733
18749
|
var view_all_responses$4 = "View All Responses";
|
|
18750
|
+
var are_not_ready_to_learn$4 = "are not ready to learn";
|
|
18751
|
+
var students_who_are_not_ready_to_learn$4 = "Students who are not ready to learn";
|
|
18734
18752
|
var lang_zh = {
|
|
18735
18753
|
dashboard: dashboard$4,
|
|
18736
18754
|
user: user$4,
|
|
@@ -20847,7 +20865,9 @@ var lang_zh = {
|
|
|
20847
20865
|
you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$4,
|
|
20848
20866
|
what_s_on_your_mind: what_s_on_your_mind$4,
|
|
20849
20867
|
these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above: these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above$4,
|
|
20850
|
-
view_all_responses: view_all_responses$4
|
|
20868
|
+
view_all_responses: view_all_responses$4,
|
|
20869
|
+
are_not_ready_to_learn: are_not_ready_to_learn$4,
|
|
20870
|
+
students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$4
|
|
20851
20871
|
};
|
|
20852
20872
|
|
|
20853
20873
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -43347,7 +43367,9 @@ var useUserList = function useUserList() {
|
|
|
43347
43367
|
|
|
43348
43368
|
for (var _iterator = _createForOfIteratorHelperLoose(items), _step; !(_step = _iterator()).done;) {
|
|
43349
43369
|
var user = _step.value;
|
|
43350
|
-
user.roles = user.roles.
|
|
43370
|
+
user.roles = user.roles.map(function (r) {
|
|
43371
|
+
return r != ROLES.EDUTEACHER ? r : "EduTeacher";
|
|
43372
|
+
});
|
|
43351
43373
|
}
|
|
43352
43374
|
|
|
43353
43375
|
dispatch(setUserList({
|
|
@@ -44944,7 +44966,7 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
|
|
|
44944
44966
|
return Promise.resolve(assignStudentsApi(users)).then(function () {
|
|
44945
44967
|
dispatch(setAlert({
|
|
44946
44968
|
type: "success",
|
|
44947
|
-
message: "
|
|
44969
|
+
message: "Student assigned successfully"
|
|
44948
44970
|
}));
|
|
44949
44971
|
callback === null || callback === void 0 ? void 0 : callback();
|
|
44950
44972
|
});
|
|
@@ -45840,7 +45862,9 @@ var useUserDetail = function useUserDetail(id) {
|
|
|
45840
45862
|
|
|
45841
45863
|
setUserDetail(_extends({}, res.data, {
|
|
45842
45864
|
dateOfBirth: format(new Date(res.data.dateOfBirth), DATE_FORMAT),
|
|
45843
|
-
roles: res.data.roles.
|
|
45865
|
+
roles: res.data.roles.map(function (r) {
|
|
45866
|
+
return r != "EduTeacher" ? r : ROLES.EDUTEACHER;
|
|
45867
|
+
})
|
|
45844
45868
|
}));
|
|
45845
45869
|
setCurrentRoles((_res$data$roles = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.roles) != null ? _res$data$roles : []);
|
|
45846
45870
|
document.title = (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.fullName;
|
|
@@ -46324,7 +46348,9 @@ var UserDetail = function UserDetail() {
|
|
|
46324
46348
|
validationSchema: userSchema,
|
|
46325
46349
|
onSubmit: function onSubmit(values) {
|
|
46326
46350
|
confirmData(_extends({}, values, {
|
|
46327
|
-
roles: values.roles.
|
|
46351
|
+
roles: values.roles.map(function (r) {
|
|
46352
|
+
return r != ROLES.EDUTEACHER ? r : "EduTeacher";
|
|
46353
|
+
})
|
|
46328
46354
|
}));
|
|
46329
46355
|
setEdited(false);
|
|
46330
46356
|
if (!!localStorage.getItem(window.location.href)) localStorage.removeItem(window.location.href);
|
|
@@ -46345,12 +46371,12 @@ var UserDetail = function UserDetail() {
|
|
|
46345
46371
|
return;
|
|
46346
46372
|
}
|
|
46347
46373
|
|
|
46348
|
-
if ([ROLES.STUDENT, ROLES.PARENT
|
|
46374
|
+
if ([ROLES.STUDENT, ROLES.PARENT].includes(role)) {
|
|
46349
46375
|
setFieldValue("roles", [role]);
|
|
46350
46376
|
return;
|
|
46351
46377
|
}
|
|
46352
46378
|
|
|
46353
|
-
if (values.roles.includes(ROLES.
|
|
46379
|
+
if (values.roles.includes(ROLES.STUDENT) && ROLES.STUDENT != role) {
|
|
46354
46380
|
setFieldValue("roles", [role]);
|
|
46355
46381
|
return;
|
|
46356
46382
|
}
|
|
@@ -46440,14 +46466,14 @@ var UserDetail = function UserDetail() {
|
|
|
46440
46466
|
label: role === "SecondaryTeacher" ? "SupportTeacher" : "" + role,
|
|
46441
46467
|
checked: values.roles.includes(role),
|
|
46442
46468
|
onChange: function onChange() {
|
|
46443
|
-
if (!!id && (userHasData.isHasTeacherData && role === "Teacher" || userHasData.isHasAssistantData && role === "Assistant" || userHasData.isHasCounselorData && role === "Counselor" || userHasData.isHasSecondaryTeacherData && role === "SecondaryTeacher" ||
|
|
46469
|
+
if (!!id && (userHasData.isHasTeacherData && role === "Teacher" || userHasData.isHasAssistantData && role === "Assistant" || userHasData.isHasCounselorData && role === "Counselor" || userHasData.isHasSecondaryTeacherData && role === "SecondaryTeacher" || role == "Student" && (userHasData.isHasAssistantData || userHasData.isHasCounselorData || userHasData.isHasSecondaryTeacherData || userHasData.isHasTeacherData))) {
|
|
46444
46470
|
alert("Please switch data before removing the role");
|
|
46445
46471
|
} else {
|
|
46446
46472
|
toggleRoles(role);
|
|
46447
46473
|
setEditedTrue();
|
|
46448
46474
|
}
|
|
46449
46475
|
},
|
|
46450
|
-
disabled: currentRoles.includes("Parent") || currentRoles.includes("Student") && !!id ? currentRoles.concat(["Student", "Parent"
|
|
46476
|
+
disabled: currentRoles.includes("Parent") || currentRoles.includes("Student") && !!id ? currentRoles.concat(["Student", "Parent"]).includes(role) || currentRoles.every(handleDisableRoles) : ["Parent"].includes(role)
|
|
46451
46477
|
}));
|
|
46452
46478
|
}))), touched.roles && errors.roles && React.createElement(ErrorHandler, {
|
|
46453
46479
|
text: errors.roles
|