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