mario-core 2.9.381-feedback → 2.9.384-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 +17 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -78,8 +78,8 @@ var tooltip_content_conference_chart = "The composite representation of individu
|
|
|
78
78
|
var tooltip_content_safety_chart = "The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time.";
|
|
79
79
|
var tooltip_content_student_by_age_chart = "The specific representation of students by gender and grade level at your school.";
|
|
80
80
|
var tooltip_content_students_by_designation = "The composite representation of students by individual grades in your school with specific designations.";
|
|
81
|
-
var total_1_to_1 = "Total 1-1s";
|
|
82
|
-
var total_check_in = "Total Check
|
|
81
|
+
var total_1_to_1 = "Total 1-to-1s";
|
|
82
|
+
var total_check_in = "Total Check-ins";
|
|
83
83
|
var total_check_ins = "Total Check Ins";
|
|
84
84
|
var total_1_to_1_time = "Total 1-to-1 Time";
|
|
85
85
|
var total_conferences = "Total Conferences";
|
|
@@ -4203,8 +4203,8 @@ var tooltip_content_conference_chart$1 = "The composite representation of indivi
|
|
|
4203
4203
|
var tooltip_content_safety_chart$1 = "The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time.";
|
|
4204
4204
|
var tooltip_content_student_by_age_chart$1 = "The specific representation of students by gender and grade level at your school.";
|
|
4205
4205
|
var tooltip_content_students_by_designation$1 = "The composite representation of students by individual grades in your school with specific designations.";
|
|
4206
|
-
var total_1_to_1$1 = "Total 1-1s";
|
|
4207
|
-
var total_check_in$1 = "Total Check
|
|
4206
|
+
var total_1_to_1$1 = "Total 1-to-1s";
|
|
4207
|
+
var total_check_in$1 = "Total Check-ins";
|
|
4208
4208
|
var total_check_ins$1 = "Total Check Ins";
|
|
4209
4209
|
var total_1_to_1_time$1 = "Total 1-to-1 Time";
|
|
4210
4210
|
var total_conferences$1 = "Total Conferences";
|
|
@@ -43347,7 +43347,9 @@ var useUserList = function useUserList() {
|
|
|
43347
43347
|
|
|
43348
43348
|
for (var _iterator = _createForOfIteratorHelperLoose(items), _step; !(_step = _iterator()).done;) {
|
|
43349
43349
|
var user = _step.value;
|
|
43350
|
-
user.roles = user.roles.
|
|
43350
|
+
user.roles = user.roles.map(function (r) {
|
|
43351
|
+
return r != ROLES.EDUTEACHER ? r : "EduTeacher";
|
|
43352
|
+
});
|
|
43351
43353
|
}
|
|
43352
43354
|
|
|
43353
43355
|
dispatch(setUserList({
|
|
@@ -45840,7 +45842,9 @@ var useUserDetail = function useUserDetail(id) {
|
|
|
45840
45842
|
|
|
45841
45843
|
setUserDetail(_extends({}, res.data, {
|
|
45842
45844
|
dateOfBirth: format(new Date(res.data.dateOfBirth), DATE_FORMAT),
|
|
45843
|
-
roles: res.data.roles.
|
|
45845
|
+
roles: res.data.roles.map(function (r) {
|
|
45846
|
+
return r != "EduTeacher" ? r : ROLES.EDUTEACHER;
|
|
45847
|
+
})
|
|
45844
45848
|
}));
|
|
45845
45849
|
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
45850
|
document.title = (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.fullName;
|
|
@@ -46324,7 +46328,9 @@ var UserDetail = function UserDetail() {
|
|
|
46324
46328
|
validationSchema: userSchema,
|
|
46325
46329
|
onSubmit: function onSubmit(values) {
|
|
46326
46330
|
confirmData(_extends({}, values, {
|
|
46327
|
-
roles: values.roles.
|
|
46331
|
+
roles: values.roles.map(function (r) {
|
|
46332
|
+
return r != ROLES.EDUTEACHER ? r : "EduTeacher";
|
|
46333
|
+
})
|
|
46328
46334
|
}));
|
|
46329
46335
|
setEdited(false);
|
|
46330
46336
|
if (!!localStorage.getItem(window.location.href)) localStorage.removeItem(window.location.href);
|
|
@@ -46345,12 +46351,12 @@ var UserDetail = function UserDetail() {
|
|
|
46345
46351
|
return;
|
|
46346
46352
|
}
|
|
46347
46353
|
|
|
46348
|
-
if ([ROLES.STUDENT, ROLES.PARENT
|
|
46354
|
+
if ([ROLES.STUDENT, ROLES.PARENT].includes(role)) {
|
|
46349
46355
|
setFieldValue("roles", [role]);
|
|
46350
46356
|
return;
|
|
46351
46357
|
}
|
|
46352
46358
|
|
|
46353
|
-
if (values.roles.includes(ROLES.
|
|
46359
|
+
if (values.roles.includes(ROLES.STUDENT) && ROLES.STUDENT != role) {
|
|
46354
46360
|
setFieldValue("roles", [role]);
|
|
46355
46361
|
return;
|
|
46356
46362
|
}
|
|
@@ -46440,14 +46446,14 @@ var UserDetail = function UserDetail() {
|
|
|
46440
46446
|
label: role === "SecondaryTeacher" ? "SupportTeacher" : "" + role,
|
|
46441
46447
|
checked: values.roles.includes(role),
|
|
46442
46448
|
onChange: function onChange() {
|
|
46443
|
-
if (!!id && (userHasData.isHasTeacherData && role === "Teacher" || userHasData.isHasAssistantData && role === "Assistant" || userHasData.isHasCounselorData && role === "Counselor" || userHasData.isHasSecondaryTeacherData && role === "SecondaryTeacher" ||
|
|
46449
|
+
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
46450
|
alert("Please switch data before removing the role");
|
|
46445
46451
|
} else {
|
|
46446
46452
|
toggleRoles(role);
|
|
46447
46453
|
setEditedTrue();
|
|
46448
46454
|
}
|
|
46449
46455
|
},
|
|
46450
|
-
disabled: currentRoles.includes("Parent") || currentRoles.includes("Student") && !!id ? currentRoles.concat(["Student", "Parent"
|
|
46456
|
+
disabled: currentRoles.includes("Parent") || currentRoles.includes("Student") && !!id ? currentRoles.concat(["Student", "Parent"]).includes(role) || currentRoles.every(handleDisableRoles) : ["Parent"].includes(role)
|
|
46451
46457
|
}));
|
|
46452
46458
|
}))), touched.roles && errors.roles && React.createElement(ErrorHandler, {
|
|
46453
46459
|
text: errors.roles
|