mario-teacher-student-client 2.1.124-admin → 2.1.127-admin
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.css +9 -1
- package/dist/index.js +35 -25
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +35 -25
- package/dist/index.modern.js.map +1 -1
- package/dist/services/MyStudent.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -5122,7 +5122,7 @@ h2._1OAmb {
|
|
|
5122
5122
|
display: flex;
|
|
5123
5123
|
padding-bottom: 10px;
|
|
5124
5124
|
padding-right: 20px;
|
|
5125
|
-
justify-content:
|
|
5125
|
+
justify-content: space-between; }
|
|
5126
5126
|
|
|
5127
5127
|
._3d2hF ._zL0pN {
|
|
5128
5128
|
display: flex;
|
|
@@ -14402,6 +14402,14 @@ h4._3lNz0 {
|
|
|
14402
14402
|
._3u2Hp {
|
|
14403
14403
|
padding: 30px; }
|
|
14404
14404
|
|
|
14405
|
+
._3yRVo {
|
|
14406
|
+
font-size: 16px !important;
|
|
14407
|
+
font-weight: bold; }
|
|
14408
|
+
|
|
14409
|
+
._3M1fw {
|
|
14410
|
+
display: flex;
|
|
14411
|
+
align-items: center; }
|
|
14412
|
+
|
|
14405
14413
|
@font-face {
|
|
14406
14414
|
font-family: "Lato-Regular";
|
|
14407
14415
|
src: url("/fonts/Lato-Regular.ttf");
|
package/dist/index.js
CHANGED
|
@@ -3982,10 +3982,12 @@ var getInformationStudent = function getInformationStudent(studentId) {
|
|
|
3982
3982
|
}
|
|
3983
3983
|
});
|
|
3984
3984
|
};
|
|
3985
|
-
var getDashboardOverview = function getDashboardOverview(studentId) {
|
|
3985
|
+
var getDashboardOverview = function getDashboardOverview(studentId, startDate, endDate) {
|
|
3986
3986
|
return marioCore.api.get(STUDENT_URL + "/overview-dashboard", {
|
|
3987
3987
|
params: {
|
|
3988
|
-
studentId: studentId
|
|
3988
|
+
studentId: studentId,
|
|
3989
|
+
startDate: startDate,
|
|
3990
|
+
endDate: endDate
|
|
3989
3991
|
}
|
|
3990
3992
|
});
|
|
3991
3993
|
};
|
|
@@ -4130,10 +4132,10 @@ var checkIsStartedSession = function checkIsStartedSession(sessionId) {
|
|
|
4130
4132
|
}
|
|
4131
4133
|
});
|
|
4132
4134
|
};
|
|
4133
|
-
var checkIsConferenceStarted = function checkIsConferenceStarted(
|
|
4135
|
+
var checkIsConferenceStarted = function checkIsConferenceStarted(conferenceId) {
|
|
4134
4136
|
return marioCore.api.get(TEACHER_URL$1 + "/current/check-session-conference", {
|
|
4135
4137
|
params: {
|
|
4136
|
-
|
|
4138
|
+
conferenceId: conferenceId
|
|
4137
4139
|
}
|
|
4138
4140
|
});
|
|
4139
4141
|
};
|
|
@@ -18405,7 +18407,7 @@ var OverviewLeft = function OverviewLeft(props) {
|
|
|
18405
18407
|
|
|
18406
18408
|
var openEdit = function openEdit() {
|
|
18407
18409
|
var url = "/student-detail/profile/" + studentId + "/update";
|
|
18408
|
-
!isAdmin && history.push(url);
|
|
18410
|
+
!isEduTeacher && !isAdmin && history.push(url);
|
|
18409
18411
|
};
|
|
18410
18412
|
|
|
18411
18413
|
return React__default.createElement("div", {
|
|
@@ -20266,7 +20268,7 @@ var useOverview = function useOverview(studentId) {
|
|
|
20266
20268
|
dispatch(marioCore.setLoading(true));
|
|
20267
20269
|
|
|
20268
20270
|
var _temp8 = _catch(function () {
|
|
20269
|
-
return Promise.resolve(getDashboardOverview(studentId)).then(function (res) {
|
|
20271
|
+
return Promise.resolve(getDashboardOverview(studentId, filterDateChart.startDate || DEFAULT_START_DATE, filterDateChart.endDate || DEFAULT_END_DATE)).then(function (res) {
|
|
20270
20272
|
var body = {
|
|
20271
20273
|
totalConference: res.data.totalConference,
|
|
20272
20274
|
totalOneToOne: res.data.totalOneToOne,
|
|
@@ -20289,7 +20291,7 @@ var useOverview = function useOverview(studentId) {
|
|
|
20289
20291
|
} catch (e) {
|
|
20290
20292
|
return Promise.reject(e);
|
|
20291
20293
|
}
|
|
20292
|
-
}, [studentId]);
|
|
20294
|
+
}, [studentId, filterDateChart]);
|
|
20293
20295
|
var getInformationWellbeing = React.useCallback(function (type, startDate, endDate) {
|
|
20294
20296
|
try {
|
|
20295
20297
|
var _temp11 = function _temp11() {
|
|
@@ -20412,7 +20414,7 @@ var useOverview = function useOverview(studentId) {
|
|
|
20412
20414
|
getPartnerProfileSelector();
|
|
20413
20415
|
getInformationSession();
|
|
20414
20416
|
}
|
|
20415
|
-
}, []);
|
|
20417
|
+
}, [filterDateChart]);
|
|
20416
20418
|
return {
|
|
20417
20419
|
isAdmin: isAdmin,
|
|
20418
20420
|
partnerData: partnerData,
|
|
@@ -28925,13 +28927,14 @@ var useStyles$b = styles$N.makeStyles(function () {
|
|
|
28925
28927
|
};
|
|
28926
28928
|
});
|
|
28927
28929
|
var LearningStrategyDialog = function LearningStrategyDialog(props) {
|
|
28930
|
+
var _filters$endDate, _filters$startDate, _filters$startDate2;
|
|
28931
|
+
|
|
28928
28932
|
var handleClose = props.handleClose,
|
|
28929
28933
|
open = props.open,
|
|
28930
28934
|
getLearningStrategiesData = props.getLearningStrategiesData,
|
|
28931
28935
|
changeFilters = props.changeFilters,
|
|
28932
28936
|
learningStrategiesData = props.learningStrategiesData,
|
|
28933
|
-
filters = props.filters
|
|
28934
|
-
isPlp = props.isPlp;
|
|
28937
|
+
filters = props.filters;
|
|
28935
28938
|
var inputSearch = React.useRef(null);
|
|
28936
28939
|
var classes = useStyles$b();
|
|
28937
28940
|
|
|
@@ -28986,7 +28989,7 @@ var LearningStrategyDialog = function LearningStrategyDialog(props) {
|
|
|
28986
28989
|
};
|
|
28987
28990
|
|
|
28988
28991
|
React.useEffect(function () {
|
|
28989
|
-
|
|
28992
|
+
getLearningStrategiesData === null || getLearningStrategiesData === void 0 ? void 0 : getLearningStrategiesData();
|
|
28990
28993
|
}, [filters]);
|
|
28991
28994
|
return React__default.createElement(core.Dialog, {
|
|
28992
28995
|
onClose: function onClose() {
|
|
@@ -29028,9 +29031,10 @@ var LearningStrategyDialog = function LearningStrategyDialog(props) {
|
|
|
29028
29031
|
KeyboardButtonProps: {
|
|
29029
29032
|
"aria-label": "change date"
|
|
29030
29033
|
},
|
|
29031
|
-
maxDate: (filters === null || filters === void 0 ? void 0 : filters.endDate)
|
|
29034
|
+
maxDate: (_filters$endDate = filters === null || filters === void 0 ? void 0 : filters.endDate) != null ? _filters$endDate : undefined,
|
|
29035
|
+
minDate: (_filters$startDate = filters === null || filters === void 0 ? void 0 : filters.startDate) != null ? _filters$startDate : undefined
|
|
29032
29036
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
29033
|
-
minDate: (filters === null || filters === void 0 ? void 0 : filters.startDate)
|
|
29037
|
+
minDate: (_filters$startDate2 = filters === null || filters === void 0 ? void 0 : filters.startDate) != null ? _filters$startDate2 : undefined,
|
|
29034
29038
|
inputVariant: "outlined",
|
|
29035
29039
|
format: "Do MMM YYYY",
|
|
29036
29040
|
id: "time-picker",
|
|
@@ -29196,7 +29200,7 @@ var TopLearningStrategy = function TopLearningStrategy(_ref) {
|
|
|
29196
29200
|
className: "" + styles$9["block-header-name"]
|
|
29197
29201
|
}, React__default.createElement("p", {
|
|
29198
29202
|
className: "" + styles$9["title-chart"]
|
|
29199
|
-
}, "Top Learning Strategies"),
|
|
29203
|
+
}, "Top Learning Strategies"), React__default.createElement("div", {
|
|
29200
29204
|
className: "" + styles$9["expand-option"]
|
|
29201
29205
|
}, React__default.createElement(core.IconButton, {
|
|
29202
29206
|
onClick: handleClick,
|
|
@@ -29914,7 +29918,7 @@ var Overview = function Overview(props) {
|
|
|
29914
29918
|
}, React__default.createElement("div", {
|
|
29915
29919
|
className: "" + styles$7["date-time-box"]
|
|
29916
29920
|
}, React__default.createElement("div", {
|
|
29917
|
-
className:
|
|
29921
|
+
className: styles$7["date-time-start"] + " date-picker-overview"
|
|
29918
29922
|
}, React__default.createElement("p", {
|
|
29919
29923
|
className: "" + styles$7["text"]
|
|
29920
29924
|
}, "From"), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
@@ -29928,9 +29932,11 @@ var Overview = function Overview(props) {
|
|
|
29928
29932
|
},
|
|
29929
29933
|
KeyboardButtonProps: {
|
|
29930
29934
|
"aria-label": "change date"
|
|
29931
|
-
}
|
|
29935
|
+
},
|
|
29936
|
+
minDate: filterDateChart.startDate,
|
|
29937
|
+
maxDate: filterDateChart.endDate
|
|
29932
29938
|
})), React__default.createElement("div", {
|
|
29933
|
-
className:
|
|
29939
|
+
className: styles$7["date-time-end"] + " date-picker-overview"
|
|
29934
29940
|
}, React__default.createElement("p", {
|
|
29935
29941
|
className: "" + styles$7["text"]
|
|
29936
29942
|
}, "To"), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
@@ -31227,7 +31233,7 @@ var Conferences = function Conferences() {
|
|
|
31227
31233
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
31228
31234
|
var open = React.useCallback(function (row) {
|
|
31229
31235
|
var studentId = row.studentId;
|
|
31230
|
-
var url = !row.
|
|
31236
|
+
var url = !row.isTeacherDone ? "/start-conference/" + studentId + "/" + row.id + "/conferenceRubric" : "/result-conference/" + studentId + "/" + row.id + "/conferenceRubric";
|
|
31231
31237
|
history.push(url);
|
|
31232
31238
|
}, [isTeacher]);
|
|
31233
31239
|
return React__default.createElement(core.Grid, {
|
|
@@ -31417,7 +31423,7 @@ var Conferences = function Conferences() {
|
|
|
31417
31423
|
}, !!row.gradeLevel && (row === null || row === void 0 ? void 0 : row.gradeLevel)), React__default.createElement(core.TableCell, {
|
|
31418
31424
|
align: "left",
|
|
31419
31425
|
className: "" + styles$c["row_grade"]
|
|
31420
|
-
}, row !== null && row !== void 0 && row.
|
|
31426
|
+
}, row !== null && row !== void 0 && row.isTeacherDone ? React__default.createElement("div", {
|
|
31421
31427
|
className: styles$c["done"] + " " + styles$c["request"]
|
|
31422
31428
|
}, "Done") : React__default.createElement("div", {
|
|
31423
31429
|
className: styles$c["missed"] + " " + styles$c["request"]
|
|
@@ -31426,7 +31432,7 @@ var Conferences = function Conferences() {
|
|
|
31426
31432
|
className: "" + styles$c["row_type"]
|
|
31427
31433
|
}, React__default.createElement("div", {
|
|
31428
31434
|
className: styles$c["duration"] + " " + styles$c["request"]
|
|
31429
|
-
}, !!row.finalScore ? row === null || row === void 0 ? void 0 : row.finalScore : ""), !row.isEditConference && !row.
|
|
31435
|
+
}, !!row.finalScore ? row === null || row === void 0 ? void 0 : row.finalScore : ""), !row.isEditConference && !row.isTeacherDone && React__default.createElement(core.Button, {
|
|
31430
31436
|
variant: "contained",
|
|
31431
31437
|
color: "primary",
|
|
31432
31438
|
disableElevation: true,
|
|
@@ -40379,7 +40385,7 @@ var BookSessionConferences = function BookSessionConferences() {
|
|
|
40379
40385
|
};
|
|
40380
40386
|
|
|
40381
40387
|
React.useEffect(function () {
|
|
40382
|
-
document.title = "Book
|
|
40388
|
+
document.title = "Book conference";
|
|
40383
40389
|
});
|
|
40384
40390
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
40385
40391
|
return React__default.createElement(core.Grid, null, screenWidth > 600 ? React__default.createElement(core.Grid, {
|
|
@@ -40467,7 +40473,7 @@ var BookSessionConferences = function BookSessionConferences() {
|
|
|
40467
40473
|
fontSize: "18px",
|
|
40468
40474
|
fontWeight: 500
|
|
40469
40475
|
}
|
|
40470
|
-
}, "Book
|
|
40476
|
+
}, "Book Conference"), React__default.createElement(InsertInvitationIcon, null)))))), React__default.createElement(core.Grid, {
|
|
40471
40477
|
item: true,
|
|
40472
40478
|
xs: 1,
|
|
40473
40479
|
style: {
|
|
@@ -40649,7 +40655,7 @@ var BookSessionConferences = function BookSessionConferences() {
|
|
|
40649
40655
|
fontSize: "18px",
|
|
40650
40656
|
fontWeight: 500
|
|
40651
40657
|
}
|
|
40652
|
-
}, "BOOK
|
|
40658
|
+
}, "BOOK CONFERENCE"), React__default.createElement("i", {
|
|
40653
40659
|
className: "fas fa-calendar-day",
|
|
40654
40660
|
style: {
|
|
40655
40661
|
fontSize: 18
|
|
@@ -61812,7 +61818,7 @@ var useStudentList$2 = function useStudentList() {
|
|
|
61812
61818
|
};
|
|
61813
61819
|
};
|
|
61814
61820
|
|
|
61815
|
-
var styles$L = {"search-input":"_mB4S_","search-input-icon":"_2dOCb","inputInput":"_3LZHP","block-search":"_3ETqf","block-header":"_28w_g","header-content":"_MM65j","table-border":"_2l3wP","table-row":"_NhhUt","row_type":"_rp-5t","duration":"_3I1fi","request":"_2-rzs","avatar_user":"_1FxvF","table-cell":"_3flzL","list-student-desktop":"_2hSN6","list-student-mobile":"_1Uabb","item-right":"_3AfFZ","item":"_3pZDy","box-info":"_3osaq","item-name":"_cuqGm","box-edu":"_2r6Xx","box-container":"_3u2Hp"};
|
|
61821
|
+
var styles$L = {"search-input":"_mB4S_","search-input-icon":"_2dOCb","inputInput":"_3LZHP","block-search":"_3ETqf","block-header":"_28w_g","header-content":"_MM65j","table-border":"_2l3wP","table-row":"_NhhUt","row_type":"_rp-5t","duration":"_3I1fi","request":"_2-rzs","avatar_user":"_1FxvF","table-cell":"_3flzL","list-student-desktop":"_2hSN6","list-student-mobile":"_1Uabb","item-right":"_3AfFZ","item":"_3pZDy","box-info":"_3osaq","item-name":"_cuqGm","box-edu":"_2r6Xx","box-container":"_3u2Hp","student_name":"_3yRVo","box_name":"_3M1fw"};
|
|
61816
61822
|
|
|
61817
61823
|
var DEFAULT_USER_AVATAR$t = "/images/image-default.png";
|
|
61818
61824
|
var ListStudent = function ListStudent() {
|
|
@@ -61942,11 +61948,15 @@ var ListStudent = function ListStudent() {
|
|
|
61942
61948
|
scope: "row",
|
|
61943
61949
|
height: 80,
|
|
61944
61950
|
className: "" + styles$L["row_name"]
|
|
61951
|
+
}, React__default.createElement("div", {
|
|
61952
|
+
className: "" + styles$L["box_name"]
|
|
61945
61953
|
}, React__default.createElement("img", {
|
|
61946
61954
|
src: !!(row !== null && row !== void 0 && row.profileImageFileName) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : row.profileImageFileName) : DEFAULT_USER_AVATAR$t,
|
|
61947
61955
|
alt: "",
|
|
61948
61956
|
className: "" + styles$L["avatar_user"]
|
|
61949
|
-
}),
|
|
61957
|
+
}), React__default.createElement(core.Typography, {
|
|
61958
|
+
className: "" + styles$L["student_name"]
|
|
61959
|
+
}, row.fullName))), React__default.createElement(core.TableCell, {
|
|
61950
61960
|
component: "th",
|
|
61951
61961
|
scope: "row",
|
|
61952
61962
|
height: 80,
|