mario-teacher-student-client 1.9.2 → 1.9.6
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/components/Input/InputComponent.d.ts +8 -0
- package/dist/components/Input/TextAreaComponent.d.ts +8 -0
- package/dist/containers/LearningPlan/views/LearningPlan.d.ts +3 -0
- package/dist/index.css +11 -4
- package/dist/index.js +113 -92
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +113 -92
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: row;
|
|
64
64
|
align-items: center; }
|
|
65
|
+
._1bTW5 ._2T6Ym {
|
|
66
|
+
margin-right: 10px; }
|
|
65
67
|
._1bTW5 ._1gs0Z {
|
|
66
68
|
font-size: 14px;
|
|
67
69
|
font-weight: bold;
|
|
@@ -2664,10 +2666,14 @@ h2._1OAmb {
|
|
|
2664
2666
|
position: absolute;
|
|
2665
2667
|
align-items: center;
|
|
2666
2668
|
top: 19px;
|
|
2667
|
-
left:
|
|
2669
|
+
left: 22%; }
|
|
2668
2670
|
._1clLN ._1RV8f {
|
|
2669
2671
|
display: flex;
|
|
2670
|
-
align-items: center;
|
|
2672
|
+
align-items: center;
|
|
2673
|
+
margin-top: -7px; }
|
|
2674
|
+
@media only screen and (max-width: 1600px) {
|
|
2675
|
+
._1clLN ._1RV8f {
|
|
2676
|
+
margin-left: -9px; } }
|
|
2671
2677
|
._1clLN ._1RV8f span {
|
|
2672
2678
|
font-weight: bold;
|
|
2673
2679
|
font-size: 14px;
|
|
@@ -2851,7 +2857,7 @@ h2._1OAmb {
|
|
|
2851
2857
|
._2-3s2 ._3xdp_ {
|
|
2852
2858
|
display: inline;
|
|
2853
2859
|
float: left;
|
|
2854
|
-
margin-top:
|
|
2860
|
+
margin-top: 6px; }
|
|
2855
2861
|
|
|
2856
2862
|
._1m4nA:nth-of-type(odd) {
|
|
2857
2863
|
background-color: #f9f9f9; }
|
|
@@ -4610,7 +4616,8 @@ h2._1KpSK {
|
|
|
4610
4616
|
._1WNMT ._3BU0L {
|
|
4611
4617
|
display: flex;
|
|
4612
4618
|
align-items: center;
|
|
4613
|
-
margin-right: 25px;
|
|
4619
|
+
margin-right: 25px;
|
|
4620
|
+
margin-left: 18px; }
|
|
4614
4621
|
._1WNMT ._3BU0L ._1N_R5 {
|
|
4615
4622
|
margin-right: 10px;
|
|
4616
4623
|
margin-top: -4px; }
|
package/dist/index.js
CHANGED
|
@@ -102,7 +102,7 @@ var getStudentSimpleProfile = function getStudentSimpleProfile() {
|
|
|
102
102
|
return marioCore.api.get("" + STUDENT_PROFILE);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
var styles = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","form-title":"_qDlsm","title":"_g-p72","description":"_2U60d","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg"};
|
|
105
|
+
var styles = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","form-title":"_qDlsm","title":"_g-p72","description":"_2U60d","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg"};
|
|
106
106
|
|
|
107
107
|
function toVal(mix) {
|
|
108
108
|
var k, y, str='';
|
|
@@ -155,6 +155,7 @@ var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
|
155
155
|
var drawerWidth = 240;
|
|
156
156
|
var headerHeightDesktop = 64;
|
|
157
157
|
var headerHeightMobile = 55;
|
|
158
|
+
var headerHeightScroll = 0;
|
|
158
159
|
var LOGO = "/images/logo-new.png";
|
|
159
160
|
var ICON_NAV = [{
|
|
160
161
|
name: "Home",
|
|
@@ -322,7 +323,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
322
323
|
className: classes.sectionDesktop
|
|
323
324
|
}, React__default.createElement("a", {
|
|
324
325
|
className: classes.textPrivacy,
|
|
325
|
-
href: 'https://marioframework.com/privacy-policy',
|
|
326
|
+
href: 'https://marioframework.com/mario-for-me-privacy-policy/',
|
|
326
327
|
target: "blank"
|
|
327
328
|
}, "Privacy Policy"), React__default.createElement(IconButton, {
|
|
328
329
|
"aria-label": "show 17 new notifications",
|
|
@@ -368,13 +369,15 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
368
369
|
}, !!navigations && navigations.map(function (navigation) {
|
|
369
370
|
var _ICON_NAV$find;
|
|
370
371
|
|
|
372
|
+
console.log(navigation.to);
|
|
373
|
+
console.log(urlActive);
|
|
371
374
|
return React__default.createElement(core.ListItem, {
|
|
372
375
|
button: true,
|
|
373
376
|
key: navigation === null || navigation === void 0 ? void 0 : navigation.name,
|
|
374
377
|
onClick: function onClick() {
|
|
375
378
|
return history.push(navigation.to);
|
|
376
379
|
},
|
|
377
|
-
className: classes.drawerItem + " " + (urlActive != '' && (navigation.to.includes(urlActive) || navigation.to.includes('my-student') && urlActive == 'student-detail') ? classes.drawerActive : "")
|
|
380
|
+
className: classes.drawerItem + " " + (urlActive != '' && (navigation.to.includes(urlActive) || navigation.to.includes('my-student') && urlActive == 'student-detail' || navigation.to.includes('my-one-to-one') && urlActive == 'start-question' || navigation.to.includes('my-conferences') && urlActive == 'start-conference') ? classes.drawerActive : "")
|
|
378
381
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find = ICON_NAV.find(function (nav) {
|
|
379
382
|
return nav.name == navigation.name;
|
|
380
383
|
})) === null || _ICON_NAV$find === void 0 ? void 0 : _ICON_NAV$find.icon), React__default.createElement(core.ListItemText, null, React__default.createElement("span", {
|
|
@@ -409,7 +412,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
409
412
|
}, children));
|
|
410
413
|
};
|
|
411
414
|
var useStyles = styles$b.makeStyles(function (theme) {
|
|
412
|
-
var _drawer, _drawerPaper, _drawerPaperMobile, _content, _contentShift;
|
|
415
|
+
var _drawer, _textPrivacy, _drawerPaper, _drawerPaperMobile, _content, _contentShift;
|
|
413
416
|
|
|
414
417
|
return {
|
|
415
418
|
grow: {
|
|
@@ -441,7 +444,7 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
441
444
|
}, _drawer[theme.breakpoints.down(600)] = {
|
|
442
445
|
display: "none"
|
|
443
446
|
}, _drawer),
|
|
444
|
-
textPrivacy: {
|
|
447
|
+
textPrivacy: (_textPrivacy = {
|
|
445
448
|
display: 'flex',
|
|
446
449
|
alignItems: 'center',
|
|
447
450
|
color: '#fff',
|
|
@@ -451,7 +454,9 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
451
454
|
color: '#fff',
|
|
452
455
|
textDecoration: 'none'
|
|
453
456
|
}
|
|
454
|
-
},
|
|
457
|
+
}, _textPrivacy[theme.breakpoints.down(415)] = {
|
|
458
|
+
marginRight: '0px'
|
|
459
|
+
}, _textPrivacy),
|
|
455
460
|
drawerItem: {
|
|
456
461
|
height: "70px",
|
|
457
462
|
display: "flex",
|
|
@@ -480,11 +485,15 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
480
485
|
zIndex: 900
|
|
481
486
|
}, _drawerPaper[theme.breakpoints.down(600)] = {
|
|
482
487
|
paddingTop: headerHeightMobile
|
|
488
|
+
}, _drawerPaper[theme.breakpoints.down(415)] = {
|
|
489
|
+
paddingTop: headerHeightScroll
|
|
483
490
|
}, _drawerPaper),
|
|
484
491
|
drawerPaperMobile: (_drawerPaperMobile = {
|
|
485
492
|
paddingTop: headerHeightDesktop
|
|
486
493
|
}, _drawerPaperMobile[theme.breakpoints.down(600)] = {
|
|
487
494
|
paddingTop: headerHeightMobile
|
|
495
|
+
}, _drawerPaperMobile[theme.breakpoints.down(415)] = {
|
|
496
|
+
paddingTop: headerHeightScroll
|
|
488
497
|
}, _drawerPaperMobile),
|
|
489
498
|
drawerActive: {
|
|
490
499
|
background: "#156DA1",
|
|
@@ -2239,10 +2248,6 @@ var UpComing = function UpComing() {
|
|
|
2239
2248
|
showDate = _useState[0],
|
|
2240
2249
|
setShowDate = _useState[1];
|
|
2241
2250
|
|
|
2242
|
-
var _useState2 = React.useState(new Date()),
|
|
2243
|
-
disableDate = _useState2[0],
|
|
2244
|
-
setDisableDate = _useState2[1];
|
|
2245
|
-
|
|
2246
2251
|
var handleShowDate = function handleShowDate() {
|
|
2247
2252
|
setShowDate(!showDate);
|
|
2248
2253
|
};
|
|
@@ -2253,7 +2258,6 @@ var UpComing = function UpComing() {
|
|
|
2253
2258
|
startDate: date.valueOf(),
|
|
2254
2259
|
currentPage: 1
|
|
2255
2260
|
});
|
|
2256
|
-
setDisableDate(new Date(date.valueOf()));
|
|
2257
2261
|
};
|
|
2258
2262
|
|
|
2259
2263
|
var handleChangeEndDate = function handleChangeEndDate(date) {
|
|
@@ -2295,9 +2299,9 @@ var UpComing = function UpComing() {
|
|
|
2295
2299
|
setOpenMobile(false);
|
|
2296
2300
|
};
|
|
2297
2301
|
|
|
2298
|
-
var
|
|
2299
|
-
studentId =
|
|
2300
|
-
setStudentId =
|
|
2302
|
+
var _useState2 = React.useState(0),
|
|
2303
|
+
studentId = _useState2[0],
|
|
2304
|
+
setStudentId = _useState2[1];
|
|
2301
2305
|
|
|
2302
2306
|
var onClickStartQuestion = React.useCallback(function () {
|
|
2303
2307
|
changRouteQuestion(studentId);
|
|
@@ -2331,9 +2335,10 @@ var UpComing = function UpComing() {
|
|
|
2331
2335
|
},
|
|
2332
2336
|
KeyboardButtonProps: {
|
|
2333
2337
|
"aria-label": "change date"
|
|
2334
|
-
}
|
|
2338
|
+
},
|
|
2339
|
+
maxDate: filters.endDate
|
|
2335
2340
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
2336
|
-
minDate:
|
|
2341
|
+
minDate: filters.startDate,
|
|
2337
2342
|
inputVariant: "outlined",
|
|
2338
2343
|
format: "Do MMM YYYY",
|
|
2339
2344
|
id: "time-picker",
|
|
@@ -2400,9 +2405,10 @@ var UpComing = function UpComing() {
|
|
|
2400
2405
|
},
|
|
2401
2406
|
KeyboardButtonProps: {
|
|
2402
2407
|
"aria-label": "change date"
|
|
2403
|
-
}
|
|
2408
|
+
},
|
|
2409
|
+
maxDate: filters.endDate
|
|
2404
2410
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
2405
|
-
minDate:
|
|
2411
|
+
minDate: filters.startDate,
|
|
2406
2412
|
inputVariant: "outlined",
|
|
2407
2413
|
format: "Do MMM YYYY",
|
|
2408
2414
|
id: "time-picker",
|
|
@@ -2802,10 +2808,6 @@ var SessionCompleted = function SessionCompleted() {
|
|
|
2802
2808
|
selectFavourite = _useSessionCompleted.selectFavourite,
|
|
2803
2809
|
changRouteQuestion = _useSessionCompleted.changRouteQuestion;
|
|
2804
2810
|
|
|
2805
|
-
var _useState = React.useState(new Date()),
|
|
2806
|
-
disableDate = _useState[0],
|
|
2807
|
-
setDisableDate = _useState[1];
|
|
2808
|
-
|
|
2809
2811
|
var roles = reactRedux.useSelector(function (state) {
|
|
2810
2812
|
var _state$common, _state$common$user;
|
|
2811
2813
|
|
|
@@ -2882,7 +2884,6 @@ var SessionCompleted = function SessionCompleted() {
|
|
|
2882
2884
|
startDate: date.valueOf(),
|
|
2883
2885
|
currentPage: 1
|
|
2884
2886
|
});
|
|
2885
|
-
setDisableDate(new Date(date.valueOf()));
|
|
2886
2887
|
};
|
|
2887
2888
|
|
|
2888
2889
|
var handleChangeEndDate = function handleChangeEndDate(date) {
|
|
@@ -2899,17 +2900,17 @@ var SessionCompleted = function SessionCompleted() {
|
|
|
2899
2900
|
});
|
|
2900
2901
|
};
|
|
2901
2902
|
|
|
2902
|
-
var
|
|
2903
|
-
showDate =
|
|
2904
|
-
setShowDate =
|
|
2903
|
+
var _useState = React.useState(false),
|
|
2904
|
+
showDate = _useState[0],
|
|
2905
|
+
setShowDate = _useState[1];
|
|
2905
2906
|
|
|
2906
2907
|
var handleShowDate = function handleShowDate() {
|
|
2907
2908
|
setShowDate(!showDate);
|
|
2908
2909
|
};
|
|
2909
2910
|
|
|
2910
|
-
var
|
|
2911
|
-
anchorEl =
|
|
2912
|
-
setAnchorEl =
|
|
2911
|
+
var _useState2 = React.useState(false),
|
|
2912
|
+
anchorEl = _useState2[0],
|
|
2913
|
+
setAnchorEl = _useState2[1];
|
|
2913
2914
|
|
|
2914
2915
|
var handleShowBtnFavourite = function handleShowBtnFavourite(event) {
|
|
2915
2916
|
setAnchorEl(event.currentTarget);
|
|
@@ -2940,9 +2941,9 @@ var SessionCompleted = function SessionCompleted() {
|
|
|
2940
2941
|
setOpenMobile(false);
|
|
2941
2942
|
};
|
|
2942
2943
|
|
|
2943
|
-
var
|
|
2944
|
-
studentId =
|
|
2945
|
-
setStudentId =
|
|
2944
|
+
var _useState3 = React.useState(0),
|
|
2945
|
+
studentId = _useState3[0],
|
|
2946
|
+
setStudentId = _useState3[1];
|
|
2946
2947
|
|
|
2947
2948
|
var onClickStartQuestion = React.useCallback(function () {
|
|
2948
2949
|
changRouteQuestion(studentId);
|
|
@@ -2976,9 +2977,10 @@ var SessionCompleted = function SessionCompleted() {
|
|
|
2976
2977
|
},
|
|
2977
2978
|
KeyboardButtonProps: {
|
|
2978
2979
|
"aria-label": "change date"
|
|
2979
|
-
}
|
|
2980
|
+
},
|
|
2981
|
+
maxDate: filters.endDate
|
|
2980
2982
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
2981
|
-
minDate:
|
|
2983
|
+
minDate: filters.startDate,
|
|
2982
2984
|
inputVariant: "outlined",
|
|
2983
2985
|
format: "Do MMM YYYY",
|
|
2984
2986
|
id: "time-picker",
|
|
@@ -3060,9 +3062,10 @@ var SessionCompleted = function SessionCompleted() {
|
|
|
3060
3062
|
},
|
|
3061
3063
|
KeyboardButtonProps: {
|
|
3062
3064
|
"aria-label": "change date"
|
|
3063
|
-
}
|
|
3065
|
+
},
|
|
3066
|
+
maxDate: filters.endDate
|
|
3064
3067
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
3065
|
-
minDate:
|
|
3068
|
+
minDate: filters.startDate,
|
|
3066
3069
|
inputVariant: "outlined",
|
|
3067
3070
|
format: "Do MMM YYYY",
|
|
3068
3071
|
id: "time-picker",
|
|
@@ -4275,7 +4278,8 @@ var UpComing$1 = function UpComing() {
|
|
|
4275
4278
|
},
|
|
4276
4279
|
KeyboardButtonProps: {
|
|
4277
4280
|
"aria-label": "change date"
|
|
4278
|
-
}
|
|
4281
|
+
},
|
|
4282
|
+
maxDate: filters.endDate
|
|
4279
4283
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
4280
4284
|
inputVariant: "outlined",
|
|
4281
4285
|
format: "Do MMM YYYY",
|
|
@@ -4288,7 +4292,8 @@ var UpComing$1 = function UpComing() {
|
|
|
4288
4292
|
},
|
|
4289
4293
|
KeyboardButtonProps: {
|
|
4290
4294
|
"aria-label": "change date"
|
|
4291
|
-
}
|
|
4295
|
+
},
|
|
4296
|
+
minDate: filters.startDate
|
|
4292
4297
|
})), React__default.createElement(core.Grid, {
|
|
4293
4298
|
className: "" + styles$1["btn-favorite"]
|
|
4294
4299
|
})), React__default.createElement("div", {
|
|
@@ -4340,8 +4345,10 @@ var UpComing$1 = function UpComing() {
|
|
|
4340
4345
|
},
|
|
4341
4346
|
KeyboardButtonProps: {
|
|
4342
4347
|
"aria-label": "change date"
|
|
4343
|
-
}
|
|
4348
|
+
},
|
|
4349
|
+
maxDate: filters.endDate
|
|
4344
4350
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
4351
|
+
minDate: filters.startDate,
|
|
4345
4352
|
inputVariant: "outlined",
|
|
4346
4353
|
format: "Do MMM YYYY",
|
|
4347
4354
|
id: "time-picker",
|
|
@@ -4823,8 +4830,10 @@ var SessionCompleted$1 = function SessionCompleted() {
|
|
|
4823
4830
|
},
|
|
4824
4831
|
KeyboardButtonProps: {
|
|
4825
4832
|
"aria-label": "change date"
|
|
4826
|
-
}
|
|
4833
|
+
},
|
|
4834
|
+
maxDate: filters.endDate
|
|
4827
4835
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
4836
|
+
minDate: filters.startDate,
|
|
4828
4837
|
inputVariant: "outlined",
|
|
4829
4838
|
format: "Do MMM YYYY",
|
|
4830
4839
|
id: "time-picker",
|
|
@@ -4890,7 +4899,8 @@ var SessionCompleted$1 = function SessionCompleted() {
|
|
|
4890
4899
|
},
|
|
4891
4900
|
KeyboardButtonProps: {
|
|
4892
4901
|
"aria-label": "change date"
|
|
4893
|
-
}
|
|
4902
|
+
},
|
|
4903
|
+
maxDate: filters.endDate
|
|
4894
4904
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
4895
4905
|
inputVariant: "outlined",
|
|
4896
4906
|
format: "Do MMM YYYY",
|
|
@@ -4903,7 +4913,8 @@ var SessionCompleted$1 = function SessionCompleted() {
|
|
|
4903
4913
|
},
|
|
4904
4914
|
KeyboardButtonProps: {
|
|
4905
4915
|
"aria-label": "change date"
|
|
4906
|
-
}
|
|
4916
|
+
},
|
|
4917
|
+
minDate: filters.startDate
|
|
4907
4918
|
}))))), screenWidth > 600 ? React__default.createElement(React__default.Fragment, null, React__default.createElement(core.TableContainer, {
|
|
4908
4919
|
style: {
|
|
4909
4920
|
marginTop: 20
|
|
@@ -5678,7 +5689,7 @@ var SliderComponent = function SliderComponent(_ref) {
|
|
|
5678
5689
|
return React__default.createElement("div", {
|
|
5679
5690
|
className: styles["box-slider"]
|
|
5680
5691
|
}, React__default.createElement("p", {
|
|
5681
|
-
className: styles["slider-text"]
|
|
5692
|
+
className: styles["slider-text"] + " " + styles["margin-right"]
|
|
5682
5693
|
}, minText), React__default.createElement(PrettoSlider, {
|
|
5683
5694
|
valueLabelDisplay: "auto",
|
|
5684
5695
|
"aria-label": "pretto slider",
|
|
@@ -7512,7 +7523,6 @@ var SelectQuestionNodes = function SelectQuestionNodes(props) {
|
|
|
7512
7523
|
}
|
|
7513
7524
|
}, React__default.createElement(lab.Autocomplete, {
|
|
7514
7525
|
className: "" + stylesOto["select-category"],
|
|
7515
|
-
freeSolo: true,
|
|
7516
7526
|
id: "free-solo-2-demo",
|
|
7517
7527
|
disableClearable: true,
|
|
7518
7528
|
options: categories,
|
|
@@ -7535,12 +7545,6 @@ var SelectQuestionNodes = function SelectQuestionNodes(props) {
|
|
|
7535
7545
|
})
|
|
7536
7546
|
}));
|
|
7537
7547
|
}
|
|
7538
|
-
}), React__default.createElement(ArrowDropDownIcon, {
|
|
7539
|
-
style: {
|
|
7540
|
-
position: "absolute",
|
|
7541
|
-
right: "10px",
|
|
7542
|
-
top: "35px"
|
|
7543
|
-
}
|
|
7544
7548
|
}))), React__default.createElement("div", null, React__default.createElement("div", {
|
|
7545
7549
|
className: "" + stylesOto["section-header"]
|
|
7546
7550
|
}, "Select question"), React__default.createElement("div", {
|
|
@@ -12479,7 +12483,7 @@ var Overview = function Overview(props) {
|
|
|
12479
12483
|
} else {
|
|
12480
12484
|
dispatch(marioCore.setAlert({
|
|
12481
12485
|
type: "danger",
|
|
12482
|
-
message: "
|
|
12486
|
+
message: "Invalid date range"
|
|
12483
12487
|
}));
|
|
12484
12488
|
}
|
|
12485
12489
|
};
|
|
@@ -12498,7 +12502,7 @@ var Overview = function Overview(props) {
|
|
|
12498
12502
|
} else {
|
|
12499
12503
|
dispatch(marioCore.setAlert({
|
|
12500
12504
|
type: "danger",
|
|
12501
|
-
message: "
|
|
12505
|
+
message: "Invalid date range"
|
|
12502
12506
|
}));
|
|
12503
12507
|
}
|
|
12504
12508
|
};
|
|
@@ -12855,7 +12859,8 @@ var OneToOne = function OneToOne() {
|
|
|
12855
12859
|
},
|
|
12856
12860
|
KeyboardButtonProps: {
|
|
12857
12861
|
"aria-label": "change date"
|
|
12858
|
-
}
|
|
12862
|
+
},
|
|
12863
|
+
maxDate: filter.endDate
|
|
12859
12864
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
12860
12865
|
inputVariant: "outlined",
|
|
12861
12866
|
format: "Do MMM YYYY",
|
|
@@ -12868,7 +12873,8 @@ var OneToOne = function OneToOne() {
|
|
|
12868
12873
|
},
|
|
12869
12874
|
KeyboardButtonProps: {
|
|
12870
12875
|
"aria-label": "change date"
|
|
12871
|
-
}
|
|
12876
|
+
},
|
|
12877
|
+
minDate: filter.startDate
|
|
12872
12878
|
})))), screenWidth > 600 ? React__default.createElement(React__default.Fragment, null, React__default.createElement(core.TableContainer, {
|
|
12873
12879
|
style: {
|
|
12874
12880
|
marginTop: 20
|
|
@@ -12987,7 +12993,7 @@ var OneToOne = function OneToOne() {
|
|
|
12987
12993
|
marginLeft: "5px"
|
|
12988
12994
|
}
|
|
12989
12995
|
}) : ""))), 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) {
|
|
12990
|
-
var _row$studentProfile;
|
|
12996
|
+
var _row$studentProfile, _row$studentProfile2;
|
|
12991
12997
|
|
|
12992
12998
|
var timeStart = marioCore.utcToLocalTime(row === null || row === void 0 ? void 0 : row.startTime, "Do MMMM yyyy - hh:mm A").toString();
|
|
12993
12999
|
var timeSplitArray = timeStart.split(" - ");
|
|
@@ -13006,7 +13012,7 @@ var OneToOne = function OneToOne() {
|
|
|
13006
13012
|
align: "left",
|
|
13007
13013
|
className: "" + styles$4["row_name"]
|
|
13008
13014
|
}, React__default.createElement("img", {
|
|
13009
|
-
src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$
|
|
13015
|
+
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,
|
|
13010
13016
|
alt: "",
|
|
13011
13017
|
className: "" + styles$4["avatar_user"]
|
|
13012
13018
|
}), (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, {
|
|
@@ -13053,7 +13059,7 @@ var OneToOne = function OneToOne() {
|
|
|
13053
13059
|
}, React__default.createElement("div", {
|
|
13054
13060
|
className: "" + styles$4["list-title"]
|
|
13055
13061
|
}, "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) {
|
|
13056
|
-
var _row$
|
|
13062
|
+
var _row$studentProfile3, _row$studentProfile4;
|
|
13057
13063
|
|
|
13058
13064
|
var timeStart = marioCore.utcToLocalTime(row.startTime, "Do MMMM yyyy - hh:mm A").toString();
|
|
13059
13065
|
var timeSplitArray = timeStart.split(" - ");
|
|
@@ -13062,7 +13068,7 @@ var OneToOne = function OneToOne() {
|
|
|
13062
13068
|
}, React__default.createElement("div", {
|
|
13063
13069
|
className: "" + styles$4["avatar"]
|
|
13064
13070
|
}, React__default.createElement("img", {
|
|
13065
|
-
src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$
|
|
13071
|
+
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,
|
|
13066
13072
|
alt: "",
|
|
13067
13073
|
className: "" + styles$4["avatar_user"]
|
|
13068
13074
|
})), React__default.createElement("div", {
|
|
@@ -13075,7 +13081,7 @@ var OneToOne = function OneToOne() {
|
|
|
13075
13081
|
className: "" + styles$4["time-Hours-Minute"]
|
|
13076
13082
|
}, " ", "-", " ", timeSplitArray[1]))), React__default.createElement("div", null, React__default.createElement("p", {
|
|
13077
13083
|
className: "" + styles$4["name"]
|
|
13078
|
-
}, row === null || row === void 0 ? void 0 : (_row$
|
|
13084
|
+
}, 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", {
|
|
13079
13085
|
className: "" + styles$4["classes"]
|
|
13080
13086
|
}, !!row.gradeLevel && row.gradeLevel), React__default.createElement("div", {
|
|
13081
13087
|
style: {
|
|
@@ -13306,7 +13312,8 @@ var Conferences = function Conferences() {
|
|
|
13306
13312
|
},
|
|
13307
13313
|
KeyboardButtonProps: {
|
|
13308
13314
|
"aria-label": "change date"
|
|
13309
|
-
}
|
|
13315
|
+
},
|
|
13316
|
+
maxDate: filter.endDate
|
|
13310
13317
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
13311
13318
|
inputVariant: "outlined",
|
|
13312
13319
|
format: "Do MMM YYYY",
|
|
@@ -13319,7 +13326,8 @@ var Conferences = function Conferences() {
|
|
|
13319
13326
|
},
|
|
13320
13327
|
KeyboardButtonProps: {
|
|
13321
13328
|
"aria-label": "change date"
|
|
13322
|
-
}
|
|
13329
|
+
},
|
|
13330
|
+
minDate: filter.startDate
|
|
13323
13331
|
})))), screenWidth > 600 ? React__default.createElement(React__default.Fragment, null, React__default.createElement(core.TableContainer, {
|
|
13324
13332
|
style: {
|
|
13325
13333
|
marginTop: 20
|
|
@@ -13883,7 +13891,7 @@ var ClassReflection = function ClassReflection() {
|
|
|
13883
13891
|
marginRight: "10px"
|
|
13884
13892
|
},
|
|
13885
13893
|
className: myStudent["reflection-avatar"] + " " + myStudent["avatar_user"],
|
|
13886
|
-
src: !!row.teacherAvatar ? row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13894
|
+
src: !!(row !== null && row !== void 0 && row.teacherAvatar) ? row === null || row === void 0 ? void 0 : row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13887
13895
|
}), row.teacherName)), React__default.createElement(core.TableCell, {
|
|
13888
13896
|
align: "left",
|
|
13889
13897
|
style: {
|
|
@@ -13943,7 +13951,7 @@ var ClassReflection = function ClassReflection() {
|
|
|
13943
13951
|
marginRight: "10px"
|
|
13944
13952
|
},
|
|
13945
13953
|
className: myStudent["reflection-avatar"] + " " + myStudent["avatar_user"],
|
|
13946
|
-
src: !!row.teacherAvatar ? row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13954
|
+
src: !!(row !== null && row !== void 0 && row.teacherAvatar) ? row === null || row === void 0 ? void 0 : row.teacherAvatar : DEFAULT_USER_AVATAR$9
|
|
13947
13955
|
}), React__default.createElement(core.Typography, {
|
|
13948
13956
|
className: "" + myStudent["reflection-name"]
|
|
13949
13957
|
}, row.teacherName)), React__default.createElement(core.Grid, {
|
|
@@ -14055,17 +14063,12 @@ var LearningPlan = function LearningPlan() {
|
|
|
14055
14063
|
filters = _useLearningPlanList.filters,
|
|
14056
14064
|
learningData = _useLearningPlanList.learningData;
|
|
14057
14065
|
|
|
14058
|
-
var _useState = React.useState(new Date()),
|
|
14059
|
-
disableDate = _useState[0],
|
|
14060
|
-
setDisableDate = _useState[1];
|
|
14061
|
-
|
|
14062
14066
|
var handleChangeStartDate = function handleChangeStartDate(date) {
|
|
14063
14067
|
if (!date) return;
|
|
14064
14068
|
changeFilters({
|
|
14065
14069
|
startDate: date.valueOf(),
|
|
14066
14070
|
currentPage: 1
|
|
14067
14071
|
});
|
|
14068
|
-
setDisableDate(new Date(date.valueOf()));
|
|
14069
14072
|
};
|
|
14070
14073
|
|
|
14071
14074
|
var handleChangeEndDate = function handleChangeEndDate(date) {
|
|
@@ -14150,9 +14153,10 @@ var LearningPlan = function LearningPlan() {
|
|
|
14150
14153
|
},
|
|
14151
14154
|
KeyboardButtonProps: {
|
|
14152
14155
|
"aria-label": "change date"
|
|
14153
|
-
}
|
|
14156
|
+
},
|
|
14157
|
+
maxDate: filters.endDate
|
|
14154
14158
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
14155
|
-
minDate:
|
|
14159
|
+
minDate: filters.startDate,
|
|
14156
14160
|
inputVariant: "outlined",
|
|
14157
14161
|
format: "Do MMM YYYY",
|
|
14158
14162
|
id: "time-picker",
|
|
@@ -21300,9 +21304,13 @@ var useSettingPage = function useSettingPage() {
|
|
|
21300
21304
|
|
|
21301
21305
|
var getSettingPage = function getSettingPage() {
|
|
21302
21306
|
try {
|
|
21307
|
+
var _temp3 = function _temp3() {
|
|
21308
|
+
dispatch(marioCore.setLoading(false));
|
|
21309
|
+
};
|
|
21310
|
+
|
|
21303
21311
|
dispatch(marioCore.setLoading(true));
|
|
21304
21312
|
|
|
21305
|
-
var
|
|
21313
|
+
var _temp4 = _catch(function () {
|
|
21306
21314
|
return Promise.resolve(getApiSettingPage()).then(function (res) {
|
|
21307
21315
|
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7;
|
|
21308
21316
|
|
|
@@ -21313,7 +21321,6 @@ var useSettingPage = function useSettingPage() {
|
|
|
21313
21321
|
IsReceiveNotificationBookedSession: (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.isReceiveNotificationBookedSession,
|
|
21314
21322
|
IsReceiveNotificationPrebookedSession: (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.isReceiveNotificationPrebookedSession
|
|
21315
21323
|
});
|
|
21316
|
-
dispatch(marioCore.setLoading(false));
|
|
21317
21324
|
});
|
|
21318
21325
|
}, function (err) {
|
|
21319
21326
|
var _err$response, _err$response$data;
|
|
@@ -21324,7 +21331,7 @@ var useSettingPage = function useSettingPage() {
|
|
|
21324
21331
|
}));
|
|
21325
21332
|
});
|
|
21326
21333
|
|
|
21327
|
-
return Promise.resolve(
|
|
21334
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
21328
21335
|
} catch (e) {
|
|
21329
21336
|
return Promise.reject(e);
|
|
21330
21337
|
}
|
|
@@ -21350,26 +21357,43 @@ var useSettingPage = function useSettingPage() {
|
|
|
21350
21357
|
|
|
21351
21358
|
var updateSettingPage = function updateSettingPage(data) {
|
|
21352
21359
|
try {
|
|
21353
|
-
|
|
21360
|
+
var timeStart = new Date(dataSetting.MuteNotificationStartTime).getTime();
|
|
21361
|
+
var timeEnd = new Date(dataSetting.MuteNotificationEndTime).getTime();
|
|
21354
21362
|
|
|
21355
|
-
var
|
|
21356
|
-
|
|
21357
|
-
dispatch(marioCore.setLoading(false));
|
|
21363
|
+
var _temp8 = function () {
|
|
21364
|
+
if (timeStart >= timeEnd) {
|
|
21358
21365
|
dispatch(marioCore.setAlert({
|
|
21359
|
-
type: "
|
|
21360
|
-
message: "
|
|
21366
|
+
type: "danger",
|
|
21367
|
+
message: "Invalid date range"
|
|
21361
21368
|
}));
|
|
21362
|
-
}
|
|
21363
|
-
|
|
21364
|
-
|
|
21369
|
+
} else {
|
|
21370
|
+
var _temp9 = function _temp9() {
|
|
21371
|
+
dispatch(marioCore.setLoading(false));
|
|
21372
|
+
};
|
|
21365
21373
|
|
|
21366
|
-
|
|
21367
|
-
type: "danger",
|
|
21368
|
-
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
21369
|
-
}));
|
|
21370
|
-
});
|
|
21374
|
+
dispatch(marioCore.setLoading(true));
|
|
21371
21375
|
|
|
21372
|
-
|
|
21376
|
+
var _temp10 = _catch(function () {
|
|
21377
|
+
return Promise.resolve(updateApiSettingPage(data)).then(function () {
|
|
21378
|
+
dispatch(marioCore.setAlert({
|
|
21379
|
+
type: "success",
|
|
21380
|
+
message: "Setting is updated successfully"
|
|
21381
|
+
}));
|
|
21382
|
+
});
|
|
21383
|
+
}, function (err) {
|
|
21384
|
+
var _err$response2, _err$response2$data;
|
|
21385
|
+
|
|
21386
|
+
dispatch(marioCore.setAlert({
|
|
21387
|
+
type: "danger",
|
|
21388
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
21389
|
+
}));
|
|
21390
|
+
});
|
|
21391
|
+
|
|
21392
|
+
return _temp10 && _temp10.then ? _temp10.then(_temp9) : _temp9(_temp10);
|
|
21393
|
+
}
|
|
21394
|
+
}();
|
|
21395
|
+
|
|
21396
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
21373
21397
|
} catch (e) {
|
|
21374
21398
|
return Promise.reject(e);
|
|
21375
21399
|
}
|
|
@@ -21410,7 +21434,7 @@ var useStyles$8 = styles$b.makeStyles(function (theme) {
|
|
|
21410
21434
|
marginTop: "10px"
|
|
21411
21435
|
},
|
|
21412
21436
|
Button: {
|
|
21413
|
-
marginTop: "
|
|
21437
|
+
marginTop: "30px"
|
|
21414
21438
|
}
|
|
21415
21439
|
});
|
|
21416
21440
|
});
|
|
@@ -21452,7 +21476,6 @@ function NotificationsPage() {
|
|
|
21452
21476
|
style: {
|
|
21453
21477
|
display: "flex",
|
|
21454
21478
|
justifyContent: "space-between",
|
|
21455
|
-
marginBottom: "15px",
|
|
21456
21479
|
alignItems: "center"
|
|
21457
21480
|
}
|
|
21458
21481
|
}, React__default.createElement("p", {
|
|
@@ -21469,7 +21492,6 @@ function NotificationsPage() {
|
|
|
21469
21492
|
style: {
|
|
21470
21493
|
display: "flex",
|
|
21471
21494
|
justifyContent: "space-between",
|
|
21472
|
-
marginBottom: "15px",
|
|
21473
21495
|
alignItems: "center"
|
|
21474
21496
|
}
|
|
21475
21497
|
}, React__default.createElement("p", {
|
|
@@ -21486,7 +21508,6 @@ function NotificationsPage() {
|
|
|
21486
21508
|
style: {
|
|
21487
21509
|
display: "flex",
|
|
21488
21510
|
justifyContent: "space-between",
|
|
21489
|
-
marginBottom: "15px",
|
|
21490
21511
|
alignItems: "center"
|
|
21491
21512
|
}
|
|
21492
21513
|
}, React__default.createElement("p", {
|