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 CHANGED
@@ -2078,6 +2078,8 @@ var you_havent_added_any_skills_yet = "You havent added any skills yet";
2078
2078
  var what_s_on_your_mind = "What's on your mind?";
2079
2079
  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.";
2080
2080
  var view_all_responses = "View All Responses";
2081
+ var are_not_ready_to_learn = "are not ready to learn";
2082
+ var students_who_are_not_ready_to_learn = "Students who are not ready to learn";
2081
2083
  var lang_us = {
2082
2084
  dashboard: dashboard,
2083
2085
  user: user,
@@ -4162,7 +4164,9 @@ var lang_us = {
4162
4164
  you_havent_added_any_skills_yet: you_havent_added_any_skills_yet,
4163
4165
  what_s_on_your_mind: what_s_on_your_mind,
4164
4166
  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,
4165
- view_all_responses: view_all_responses
4167
+ view_all_responses: view_all_responses,
4168
+ are_not_ready_to_learn: are_not_ready_to_learn,
4169
+ students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn
4166
4170
  };
4167
4171
 
4168
4172
  var dashboard$1 = "Dashboard";
@@ -6203,6 +6207,8 @@ var you_havent_added_any_skills_yet$1 = "You havent added any skills yet";
6203
6207
  var what_s_on_your_mind$1 = "What's on your mind?";
6204
6208
  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.";
6205
6209
  var view_all_responses$1 = "View All Responses";
6210
+ var are_not_ready_to_learn$1 = "are not ready to learn";
6211
+ var students_who_are_not_ready_to_learn$1 = "Students who are not ready to learn";
6206
6212
  var lang_uk = {
6207
6213
  dashboard: dashboard$1,
6208
6214
  user: user$1,
@@ -8287,7 +8293,9 @@ var lang_uk = {
8287
8293
  you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$1,
8288
8294
  what_s_on_your_mind: what_s_on_your_mind$1,
8289
8295
  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,
8290
- view_all_responses: view_all_responses$1
8296
+ view_all_responses: view_all_responses$1,
8297
+ are_not_ready_to_learn: are_not_ready_to_learn$1,
8298
+ students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$1
8291
8299
  };
8292
8300
 
8293
8301
  var dashboard$2 = "لوحة المعلومات";
@@ -10358,6 +10366,8 @@ var you_havent_added_any_skills_yet$2 = "You havent added any skills yet";
10358
10366
  var what_s_on_your_mind$2 = "What's on your mind?";
10359
10367
  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.";
10360
10368
  var view_all_responses$2 = "View All Responses";
10369
+ var are_not_ready_to_learn$2 = "are not ready to learn";
10370
+ var students_who_are_not_ready_to_learn$2 = "Students who are not ready to learn";
10361
10371
  var lang_ar = {
10362
10372
  dashboard: dashboard$2,
10363
10373
  user: user$2,
@@ -12474,7 +12484,9 @@ var lang_ar = {
12474
12484
  you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$2,
12475
12485
  what_s_on_your_mind: what_s_on_your_mind$2,
12476
12486
  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,
12477
- view_all_responses: view_all_responses$2
12487
+ view_all_responses: view_all_responses$2,
12488
+ are_not_ready_to_learn: are_not_ready_to_learn$2,
12489
+ students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$2
12478
12490
  };
12479
12491
 
12480
12492
  var dashboard$3 = "Cuadro de mandos";
@@ -14545,6 +14557,8 @@ var you_havent_added_any_skills_yet$3 = "You havent added any skills yet";
14545
14557
  var what_s_on_your_mind$3 = "What's on your mind?";
14546
14558
  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.";
14547
14559
  var view_all_responses$3 = "View All Responses";
14560
+ var are_not_ready_to_learn$3 = "are not ready to learn";
14561
+ var students_who_are_not_ready_to_learn$3 = "Students who are not ready to learn";
14548
14562
  var lang_es = {
14549
14563
  dashboard: dashboard$3,
14550
14564
  user: user$3,
@@ -16661,7 +16675,9 @@ var lang_es = {
16661
16675
  you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$3,
16662
16676
  what_s_on_your_mind: what_s_on_your_mind$3,
16663
16677
  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,
16664
- view_all_responses: view_all_responses$3
16678
+ view_all_responses: view_all_responses$3,
16679
+ are_not_ready_to_learn: are_not_ready_to_learn$3,
16680
+ students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$3
16665
16681
  };
16666
16682
 
16667
16683
  var dashboard$4 = "仪表板";
@@ -18732,6 +18748,8 @@ var you_havent_added_any_skills_yet$4 = "You havent added any skills yet";
18732
18748
  var what_s_on_your_mind$4 = "What's on your mind?";
18733
18749
  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.";
18734
18750
  var view_all_responses$4 = "View All Responses";
18751
+ var are_not_ready_to_learn$4 = "are not ready to learn";
18752
+ var students_who_are_not_ready_to_learn$4 = "Students who are not ready to learn";
18735
18753
  var lang_zh = {
18736
18754
  dashboard: dashboard$4,
18737
18755
  user: user$4,
@@ -20848,7 +20866,9 @@ var lang_zh = {
20848
20866
  you_havent_added_any_skills_yet: you_havent_added_any_skills_yet$4,
20849
20867
  what_s_on_your_mind: what_s_on_your_mind$4,
20850
20868
  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,
20851
- view_all_responses: view_all_responses$4
20869
+ view_all_responses: view_all_responses$4,
20870
+ are_not_ready_to_learn: are_not_ready_to_learn$4,
20871
+ students_who_are_not_ready_to_learn: students_who_are_not_ready_to_learn$4
20852
20872
  };
20853
20873
 
20854
20874
  var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
@@ -43348,7 +43368,9 @@ var useUserList = function useUserList() {
43348
43368
 
43349
43369
  for (var _iterator = _createForOfIteratorHelperLoose(items), _step; !(_step = _iterator()).done;) {
43350
43370
  var user = _step.value;
43351
- user.roles = user.roles.includes("EduTeacher") ? [ROLES.EDUTEACHER] : user.roles;
43371
+ user.roles = user.roles.map(function (r) {
43372
+ return r != ROLES.EDUTEACHER ? r : "EduTeacher";
43373
+ });
43352
43374
  }
43353
43375
 
43354
43376
  dispatch(setUserList({
@@ -44945,7 +44967,7 @@ var useAssignStudent = function useAssignStudent(teacherSelected, assistantSelec
44945
44967
  return Promise.resolve(assignStudentsApi(users)).then(function () {
44946
44968
  dispatch(setAlert({
44947
44969
  type: "success",
44948
- message: "Create Successfully"
44970
+ message: "Student assigned successfully"
44949
44971
  }));
44950
44972
  callback === null || callback === void 0 ? void 0 : callback();
44951
44973
  });
@@ -45841,7 +45863,9 @@ var useUserDetail = function useUserDetail(id) {
45841
45863
 
45842
45864
  setUserDetail(_extends({}, res.data, {
45843
45865
  dateOfBirth: dateFns.format(new Date(res.data.dateOfBirth), DATE_FORMAT),
45844
- roles: res.data.roles.includes("EduTeacher") ? [ROLES.EDUTEACHER] : res.data.roles
45866
+ roles: res.data.roles.map(function (r) {
45867
+ return r != "EduTeacher" ? r : ROLES.EDUTEACHER;
45868
+ })
45845
45869
  }));
45846
45870
  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
45871
  document.title = (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.fullName;
@@ -46325,7 +46349,9 @@ var UserDetail = function UserDetail() {
46325
46349
  validationSchema: userSchema,
46326
46350
  onSubmit: function onSubmit(values) {
46327
46351
  confirmData(_extends({}, values, {
46328
- roles: values.roles.includes(ROLES.EDUTEACHER) ? ["EduTeacher"] : values.roles
46352
+ roles: values.roles.map(function (r) {
46353
+ return r != ROLES.EDUTEACHER ? r : "EduTeacher";
46354
+ })
46329
46355
  }));
46330
46356
  setEdited(false);
46331
46357
  if (!!localStorage.getItem(window.location.href)) localStorage.removeItem(window.location.href);
@@ -46346,12 +46372,12 @@ var UserDetail = function UserDetail() {
46346
46372
  return;
46347
46373
  }
46348
46374
 
46349
- if ([ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
46375
+ if ([ROLES.STUDENT, ROLES.PARENT].includes(role)) {
46350
46376
  setFieldValue("roles", [role]);
46351
46377
  return;
46352
46378
  }
46353
46379
 
46354
- if (values.roles.includes(ROLES.EDUTEACHER) && ROLES.EDUTEACHER != role || values.roles.includes(ROLES.STUDENT) && ROLES.STUDENT != role) {
46380
+ if (values.roles.includes(ROLES.STUDENT) && ROLES.STUDENT != role) {
46355
46381
  setFieldValue("roles", [role]);
46356
46382
  return;
46357
46383
  }
@@ -46441,14 +46467,14 @@ var UserDetail = function UserDetail() {
46441
46467
  label: role === "SecondaryTeacher" ? "SupportTeacher" : "" + role,
46442
46468
  checked: values.roles.includes(role),
46443
46469
  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))) {
46470
+ 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
46471
  alert("Please switch data before removing the role");
46446
46472
  } else {
46447
46473
  toggleRoles(role);
46448
46474
  setEditedTrue();
46449
46475
  }
46450
46476
  },
46451
- disabled: currentRoles.includes("Parent") || currentRoles.includes("Student") && !!id ? currentRoles.concat(["Student", "Parent", "General ED teacher"]).includes(role) || currentRoles.every(handleDisableRoles) : ["Parent"].includes(role)
46477
+ disabled: currentRoles.includes("Parent") || currentRoles.includes("Student") && !!id ? currentRoles.concat(["Student", "Parent"]).includes(role) || currentRoles.every(handleDisableRoles) : ["Parent"].includes(role)
46452
46478
  }));
46453
46479
  }))), touched.roles && errors.roles && React__default.createElement(ErrorHandler, {
46454
46480
  text: errors.roles