mario-core 2.9.62-beta → 2.9.64-beta

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
@@ -580,6 +580,7 @@ var set_deadline = "Set deadline";
580
580
  var duplicate_survey = "Duplicate Survey";
581
581
  var share_survey = "Share Survey";
582
582
  var new_survey = "New Survey";
583
+ var assign_counselor = "Assign Counselor";
583
584
  var lang_us = {
584
585
  dashboard: dashboard,
585
586
  user: user,
@@ -1133,7 +1134,8 @@ var lang_us = {
1133
1134
  set_deadline: set_deadline,
1134
1135
  duplicate_survey: duplicate_survey,
1135
1136
  share_survey: share_survey,
1136
- new_survey: new_survey
1137
+ new_survey: new_survey,
1138
+ assign_counselor: assign_counselor
1137
1139
  };
1138
1140
 
1139
1141
  var dashboard$1 = "Dashboard";
@@ -1312,7 +1314,7 @@ var use_for$1 = "Use for";
1312
1314
  var admin_training$1 = "Admin training";
1313
1315
  var teacher_training$1 = "Teacher training";
1314
1316
  var created_time$1 = "Create time";
1315
- var total_reflections$1 = "Total Reflections:";
1317
+ var total_reflections$1 = "Total Reflections";
1316
1318
  var student_training$1 = "Student training";
1317
1319
  var create_destination$1 = "Create Destination";
1318
1320
  var total_of_designation$1 = "Total of Designation";
@@ -1683,6 +1685,7 @@ var set_deadline$1 = "Set deadline";
1683
1685
  var duplicate_survey$1 = "Duplicate Survey";
1684
1686
  var share_survey$1 = "Share Survey";
1685
1687
  var new_survey$1 = "New Survey";
1688
+ var assign_counselor$1 = "Assign Counselor";
1686
1689
  var lang_uk = {
1687
1690
  dashboard: dashboard$1,
1688
1691
  user: user$1,
@@ -2236,7 +2239,8 @@ var lang_uk = {
2236
2239
  set_deadline: set_deadline$1,
2237
2240
  duplicate_survey: duplicate_survey$1,
2238
2241
  share_survey: share_survey$1,
2239
- new_survey: new_survey$1
2242
+ new_survey: new_survey$1,
2243
+ assign_counselor: assign_counselor$1
2240
2244
  };
2241
2245
 
2242
2246
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2520,7 +2524,7 @@ var STAR_OPTIONS = [{
2520
2524
  value: 5
2521
2525
  }];
2522
2526
  var ANSWER_EDITOR_HEIGHT = 150;
2523
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
2527
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2524
2528
  var CHAT_CHANNEL = "chat-channel";
2525
2529
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2526
2530
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2536,7 +2540,8 @@ var ROLES = {
2536
2540
  ASSISTANT: "Assistant",
2537
2541
  EDUTEACHER: "General ED teacher",
2538
2542
  STUDENT: "Student",
2539
- PARENT: "Parent"
2543
+ PARENT: "Parent",
2544
+ COUNSELOR: "Counselor"
2540
2545
  };
2541
2546
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2542
2547
 
@@ -2791,7 +2796,7 @@ var useLogin = function useLogin() {
2791
2796
  history.push(HOMEPAGE_DISTRICT);
2792
2797
  } else if (roles.includes("Admin")) {
2793
2798
  history.push(HOMEPAGE_ADMIN);
2794
- } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
2799
+ } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2795
2800
  history.push(HOMEPAGE_TEACHER);
2796
2801
  } else if (roles.includes("Student")) {
2797
2802
  history.push(HOMEPAGE_STUDENT);
@@ -7387,13 +7392,13 @@ var UserDetail = function UserDetail() {
7387
7392
  return;
7388
7393
  }
7389
7394
 
7390
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7395
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7391
7396
  setFieldValue("roles", [role]);
7392
7397
  return;
7393
7398
  }
7394
7399
 
7395
7400
  var teacherAssistantRoles = values.roles.filter(function (item) {
7396
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
7401
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7397
7402
  });
7398
7403
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7399
7404
  }, [values.roles]);
@@ -8049,7 +8054,7 @@ var useNotificationList = function useNotificationList() {
8049
8054
  };
8050
8055
 
8051
8056
  var viewNotification = function viewNotification(notification) {
8052
- var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
8057
+ var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _extraData$replace3, _extraData$replace3$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6;
8053
8058
 
8054
8059
  var source = notification.source,
8055
8060
  extraData = notification.extraData;
@@ -8064,23 +8069,23 @@ var useNotificationList = function useNotificationList() {
8064
8069
  break;
8065
8070
 
8066
8071
  case "Class Reflection":
8067
- window.open("/start-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
8072
+ window.open("/start-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace === void 0 ? void 0 : (_extraData$replace$sp = _extraData$replace.split(',')) === null || _extraData$replace$sp === void 0 ? void 0 : _extraData$replace$sp[1]));
8068
8073
  break;
8069
8074
 
8070
8075
  case "Class Reflection Completed":
8071
- window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
8076
+ window.open("/result-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace2 = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace2 === void 0 ? void 0 : (_extraData$replace2$s = _extraData$replace2.split(',')) === null || _extraData$replace2$s === void 0 ? void 0 : _extraData$replace2$s[1]));
8072
8077
  break;
8073
8078
 
8074
8079
  case "External Reflection Completed":
8075
- window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
8080
+ window.open("/result-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace3 = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace3 === void 0 ? void 0 : (_extraData$replace3$s = _extraData$replace3.split(',')) === null || _extraData$replace3$s === void 0 ? void 0 : _extraData$replace3$s[1]) + "/external");
8076
8081
  break;
8077
8082
 
8078
8083
  case "NewSessionCreated":
8079
- window.open("/start-question/" + ((_JSON$parse7 = JSON.parse(extraData)) === null || _JSON$parse7 === void 0 ? void 0 : _JSON$parse7[0]) + "/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[1]));
8084
+ window.open("/start-question/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
8080
8085
  break;
8081
8086
 
8082
8087
  case "NewSessionComplete":
8083
- window.open("/start-question/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[0]) + "/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[1]));
8088
+ window.open("/start-question/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[0]) + "/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]));
8084
8089
  break;
8085
8090
 
8086
8091
  case "ActionPointReminder":