mario-teacher-student-client 2.0.6 → 2.0.9

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.
@@ -11,6 +11,6 @@ declare const useStudentConference: () => {
11
11
  sessionData: any;
12
12
  filter: FILTER_SESSION;
13
13
  changeFilters: (updatedFilters: any) => void;
14
- getStudentConference: (studentId: any) => Promise<void>;
14
+ getStudentConference: () => Promise<void>;
15
15
  };
16
16
  export default useStudentConference;
@@ -13,6 +13,6 @@ declare const useStudentOneToOne: () => {
13
13
  sessionData: any;
14
14
  filter: FILTER_SESSION;
15
15
  changeFilters: (updatedFilters: any) => void;
16
- getStudentOneToOne: (studentId: any) => Promise<void>;
16
+ getStudentOneToOne: () => Promise<void>;
17
17
  };
18
18
  export default useStudentOneToOne;
package/dist/index.js CHANGED
@@ -8201,8 +8201,8 @@ var DialogNodes = function DialogNodes(props) {
8201
8201
  };
8202
8202
 
8203
8203
  function areEqual(prevProps, nextProps) {
8204
- if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
8205
- return true;
8204
+ if (prevProps.checkOpenModal == nextProps.checkOpenModal) return true;
8205
+ return false;
8206
8206
  }
8207
8207
 
8208
8208
  var DialogNodes$1 = React__default.memo(DialogNodes, areEqual);
@@ -8243,8 +8243,8 @@ var SimpleDialog$2 = function SimpleDialog(props) {
8243
8243
  };
8244
8244
 
8245
8245
  function areEqual$1(prevProps, nextProps) {
8246
- if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
8247
- return true;
8246
+ if (prevProps.checkOpenModal == nextProps.checkOpenModal) return true;
8247
+ return false;
8248
8248
  }
8249
8249
 
8250
8250
  var SimpleDialog$3 = React__default.memo(SimpleDialog$2, areEqual$1);
@@ -8576,7 +8576,7 @@ var ConductIndex = function ConductIndex() {
8576
8576
  style: {
8577
8577
  position: "absolute",
8578
8578
  right: "0",
8579
- bottom: "4%"
8579
+ bottom: "50%"
8580
8580
  }
8581
8581
  }, React__default.createElement(NodeDraggable, {
8582
8582
  handleClickOpen: handleClickOpen
@@ -12876,7 +12876,7 @@ var Overview = function Overview(props) {
12876
12876
  return t.month;
12877
12877
  }),
12878
12878
  chartData: informationWellbeing === null || informationWellbeing === void 0 ? void 0 : informationWellbeing.overviewQuestionChoice.map(function (t) {
12879
- return t.avgOfStudentChoice / 20;
12879
+ return t.avgOfStudentChoice / 10;
12880
12880
  })
12881
12881
  }
12882
12882
  };
@@ -13116,6 +13116,8 @@ var useStudentOneToOne = function useStudentOneToOne() {
13116
13116
  sessionData = _useState[0],
13117
13117
  setSessionData = _useState[1];
13118
13118
 
13119
+ var studentId = location.pathname.replace(/[^0-9]/g, "");
13120
+
13119
13121
  var _useState2 = React.useState({
13120
13122
  startDate: moment().subtract(30, 'days').valueOf(),
13121
13123
  endDate: moment().add(7, "days").valueOf(),
@@ -13132,7 +13134,7 @@ var useStudentOneToOne = function useStudentOneToOne() {
13132
13134
  return setFilter(_extends({}, filter, updatedFilters));
13133
13135
  };
13134
13136
 
13135
- var getStudentOneToOne = function getStudentOneToOne(studentId) {
13137
+ var getStudentOneToOne = function getStudentOneToOne() {
13136
13138
  try {
13137
13139
  var _temp3 = function _temp3() {
13138
13140
  dispatch(marioCore.setLoading(false));
@@ -13162,7 +13164,7 @@ var useStudentOneToOne = function useStudentOneToOne() {
13162
13164
  };
13163
13165
 
13164
13166
  React.useEffect(function () {
13165
- getStudentOneToOne(sessionData === null || sessionData === void 0 ? void 0 : sessionData.studentId);
13167
+ getStudentOneToOne();
13166
13168
  }, [filter]);
13167
13169
  return {
13168
13170
  sessionData: sessionData,
@@ -13435,7 +13437,7 @@ var OneToOne = function OneToOne() {
13435
13437
  marginLeft: "5px"
13436
13438
  }
13437
13439
  }) : ""))), React__default.createElement(core.TableBody, null, !!sessionData && (sessionData === null || sessionData === void 0 ? void 0 : sessionData.items).length > 0 ? sessionData === null || sessionData === void 0 ? void 0 : (_sessionData$items = sessionData.items) === null || _sessionData$items === void 0 ? void 0 : _sessionData$items.map(function (row) {
13438
- var _row$studentProfile, _row$studentProfile2;
13440
+ var _row$studentProfile, _row$studentProfile2, _row$studentProfile3, _row$studentProfile4, _row$studentProfile5;
13439
13441
 
13440
13442
  var timeStart = marioCore.utcToLocalTime(row === null || row === void 0 ? void 0 : row.startTime, "Do MMMM yyyy - hh:mm A").toString();
13441
13443
  var timeSplitArray = timeStart.split(" - ");
@@ -13457,7 +13459,7 @@ var OneToOne = function OneToOne() {
13457
13459
  src: !!((_row$studentProfile = row.studentProfile) !== null && _row$studentProfile !== void 0 && _row$studentProfile.avatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile2 = row.studentProfile) === null || _row$studentProfile2 === void 0 ? void 0 : _row$studentProfile2.avatar) : DEFAULT_USER_AVATAR$7,
13458
13460
  alt: "",
13459
13461
  className: "" + styles$4["avatar_user"]
13460
- }), (row === null || row === void 0 ? void 0 : row.studentProfile.name).length > 12 ? (row === null || row === void 0 ? void 0 : row.studentProfile.name).slice(0, 12).concat("...") : row === null || row === void 0 ? void 0 : row.studentProfile.name), React__default.createElement(core.TableCell, {
13462
+ }), (row === null || row === void 0 ? void 0 : (_row$studentProfile3 = row.studentProfile) === null || _row$studentProfile3 === void 0 ? void 0 : _row$studentProfile3.name).length > 12 ? (row === null || row === void 0 ? void 0 : (_row$studentProfile4 = row.studentProfile) === null || _row$studentProfile4 === void 0 ? void 0 : _row$studentProfile4.name).slice(0, 12).concat("...") : row === null || row === void 0 ? void 0 : (_row$studentProfile5 = row.studentProfile) === null || _row$studentProfile5 === void 0 ? void 0 : _row$studentProfile5.name), React__default.createElement(core.TableCell, {
13461
13463
  align: "left",
13462
13464
  className: "" + styles$4["row_grade"]
13463
13465
  }, !!row.gradeLevel ? row === null || row === void 0 ? void 0 : row.gradeLevel : ""), React__default.createElement(core.TableCell, {
@@ -13501,7 +13503,7 @@ var OneToOne = function OneToOne() {
13501
13503
  }, React__default.createElement("div", {
13502
13504
  className: "" + styles$4["list-title"]
13503
13505
  }, "All"), !!sessionData && (sessionData === null || sessionData === void 0 ? void 0 : sessionData.items).length > 0 ? sessionData === null || sessionData === void 0 ? void 0 : (_sessionData$items2 = sessionData.items) === null || _sessionData$items2 === void 0 ? void 0 : _sessionData$items2.map(function (row) {
13504
- var _row$studentProfile3, _row$studentProfile4;
13506
+ var _row$studentProfile6, _row$studentProfile7, _row$studentProfile8;
13505
13507
 
13506
13508
  var timeStart = marioCore.utcToLocalTime(row.startTime, "Do MMMM yyyy - hh:mm A").toString();
13507
13509
  var timeSplitArray = timeStart.split(" - ");
@@ -13510,7 +13512,7 @@ var OneToOne = function OneToOne() {
13510
13512
  }, React__default.createElement("div", {
13511
13513
  className: "" + styles$4["avatar"]
13512
13514
  }, React__default.createElement("img", {
13513
- src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile3 = row.studentProfile) === null || _row$studentProfile3 === void 0 ? void 0 : _row$studentProfile3.avatar) : DEFAULT_USER_AVATAR$7,
13515
+ src: !!((_row$studentProfile6 = row.studentProfile) !== null && _row$studentProfile6 !== void 0 && _row$studentProfile6.avatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile7 = row.studentProfile) === null || _row$studentProfile7 === void 0 ? void 0 : _row$studentProfile7.avatar) : DEFAULT_USER_AVATAR$7,
13514
13516
  alt: "",
13515
13517
  className: "" + styles$4["avatar_user"]
13516
13518
  })), React__default.createElement("div", {
@@ -13523,7 +13525,7 @@ var OneToOne = function OneToOne() {
13523
13525
  className: "" + styles$4["time-Hours-Minute"]
13524
13526
  }, " ", "-", " ", timeSplitArray[1]))), React__default.createElement("div", null, React__default.createElement("p", {
13525
13527
  className: "" + styles$4["name"]
13526
- }, row === null || row === void 0 ? void 0 : (_row$studentProfile4 = row.studentProfile) === null || _row$studentProfile4 === void 0 ? void 0 : _row$studentProfile4.name), React__default.createElement("p", {
13528
+ }, row === null || row === void 0 ? void 0 : (_row$studentProfile8 = row.studentProfile) === null || _row$studentProfile8 === void 0 ? void 0 : _row$studentProfile8.name), React__default.createElement("p", {
13527
13529
  className: "" + styles$4["classes"]
13528
13530
  }, !!row.gradeLevel && row.gradeLevel), React__default.createElement("div", {
13529
13531
  style: {
@@ -13569,6 +13571,8 @@ var useStudentConference = function useStudentConference() {
13569
13571
  sessionData = _useState[0],
13570
13572
  setSessionData = _useState[1];
13571
13573
 
13574
+ var studentId = location.pathname.replace(/[^0-9]/g, "");
13575
+
13572
13576
  var _useState2 = React.useState({
13573
13577
  startDate: moment().subtract(30, 'days').valueOf(),
13574
13578
  endDate: moment().add(7, "days").valueOf(),
@@ -13585,7 +13589,7 @@ var useStudentConference = function useStudentConference() {
13585
13589
  return setFilter(_extends({}, filter, updatedFilters));
13586
13590
  };
13587
13591
 
13588
- var getStudentConference = function getStudentConference(studentId) {
13592
+ var getStudentConference = function getStudentConference() {
13589
13593
  try {
13590
13594
  var _temp3 = function _temp3() {
13591
13595
  dispatch(marioCore.setLoading(false));
@@ -13615,7 +13619,7 @@ var useStudentConference = function useStudentConference() {
13615
13619
  };
13616
13620
 
13617
13621
  React.useEffect(function () {
13618
- getStudentConference(sessionData === null || sessionData === void 0 ? void 0 : sessionData.studentId);
13622
+ getStudentConference();
13619
13623
  }, [filter]);
13620
13624
  return {
13621
13625
  sessionData: sessionData,
@@ -17688,7 +17692,7 @@ var ConferenceRubric = function ConferenceRubric() {
17688
17692
  style: {
17689
17693
  position: "absolute",
17690
17694
  right: "0",
17691
- bottom: "2%"
17695
+ bottom: "50%"
17692
17696
  }
17693
17697
  }, React__default.createElement(NodeDraggable, {
17694
17698
  handleClickOpen: handleClickOpen