mario-teacher-student-client 2.0.8 → 2.0.11
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/containers/MyStudent/hooks/useStudentConference.d.ts +1 -1
- package/dist/containers/MyStudent/hooks/useStudentOneToOne.d.ts +1 -1
- package/dist/containers/PersonalLearningPlan/hook/personalInterestApi.d.ts +6 -0
- package/dist/containers/PersonalLearningPlan/hook/personalInterestsService.d.ts +6 -0
- package/dist/containers/PersonalLearningPlan/hook/usePersonalInterest.d.ts +33 -2
- package/dist/index.js +32 -27
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Circle/Circle.d.ts +0 -11
- package/dist/components/Circle/ItemCircle.d.ts +0 -7
- package/dist/components/Header/HeaderLearningPlan.d.ts +0 -11
- package/dist/components/Header/HeaderSurvey.d.ts +0 -11
- package/dist/components/Input/TextAreaComponent.d.ts +0 -8
- package/dist/containers/ConductOneToOne/hooks/useCountDown.d.ts +0 -8
- package/dist/containers/FriendCircle/components/ModalGoalFriend.d.ts +0 -3
- package/dist/containers/FriendCircle/constants/types.d.ts +0 -101
- package/dist/containers/FriendCircle/hooks/useListDetail.d.ts +0 -20
- package/dist/containers/FriendCircle/hooks/useListFriend.d.ts +0 -8
- package/dist/containers/FriendCircle/views/FriendCircle.d.ts +0 -3
- package/dist/containers/FriendCircle/views/FriendCircleLearning.d.ts +0 -3
- package/dist/containers/FriendCircle/views/ListFriendCircle.d.ts +0 -3
- package/dist/containers/MyOneToOne/components/dialog/SimpleDialog.d.ts +0 -3
- package/dist/containers/MyStudent/components/Accommodation/Accomondation.d.ts +0 -3
- package/dist/containers/MyStudent/components/Accommodation/AccomondationList.d.ts +0 -3
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +0 -4
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/TopLearningStrategies.d.ts +0 -1
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/TopLearningStrategiesChart.d.ts +0 -3
- package/dist/containers/MyStudent/hooks/useAccommodation.d.ts +0 -8
- package/dist/containers/MySurvey/constants/types.d.ts +0 -41
- package/dist/containers/MySurvey/hooks/useStudentList.d.ts +0 -9
- package/dist/containers/MySurvey/views/CreateSurvey.d.ts +0 -3
- package/dist/containers/MySurvey/views/Mysurvey.d.ts +0 -3
- package/dist/containers/MySurvey/views/StudentSurvey.d.ts +0 -3
- package/dist/services/myFriendGoalService.d.ts +0 -5
|
@@ -11,6 +11,6 @@ declare const useStudentConference: () => {
|
|
|
11
11
|
sessionData: any;
|
|
12
12
|
filter: FILTER_SESSION;
|
|
13
13
|
changeFilters: (updatedFilters: any) => void;
|
|
14
|
-
getStudentConference: (
|
|
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: (
|
|
16
|
+
getStudentOneToOne: () => Promise<void>;
|
|
17
17
|
};
|
|
18
18
|
export default useStudentOneToOne;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const createDataPersonalInterestApi: (body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const uploadFilePersonalInterestApi: (body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const getDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const editDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const updateDataPersonalInterestApi: (id: number, body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
export declare const deleteDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const createDataPersonalInterest: (dispatch: any, data: any) => Promise<void>;
|
|
2
|
+
export declare const getDataPersonalInterest: (dispatch: any, id: number) => Promise<any>;
|
|
3
|
+
export declare const upDateDataPersonalInterest: (dispatch: any, idupdate: number, dataUpload: any) => Promise<void>;
|
|
4
|
+
export declare const deleteataPersonalInterest: (dispatch: any, iddelete: number) => Promise<void>;
|
|
5
|
+
export declare const uploadFilePersonalInterest: (dispatch: any, file: string) => Promise<any>;
|
|
6
|
+
export declare const editDataPersonalInterest: (dispatch: any, id: number) => Promise<any>;
|
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
declare const usePersonalInterest: () => {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
upDateData: () => Promise<void>;
|
|
3
|
+
editData: (id: number) => Promise<void>;
|
|
4
|
+
sendDataCreate: () => Promise<void>;
|
|
5
|
+
deleteDataItem: () => Promise<void>;
|
|
6
|
+
handleClose: () => void;
|
|
7
|
+
handleCloseEdit: () => void;
|
|
8
|
+
handUpload: (e: any) => void;
|
|
9
|
+
handleCloseDelete: () => void;
|
|
10
|
+
dataList: any;
|
|
11
|
+
handUploadEdit: (e: any) => void;
|
|
12
|
+
openModal: boolean;
|
|
13
|
+
openModalDelete: boolean;
|
|
14
|
+
openModalEdit: boolean;
|
|
15
|
+
targetImage: any;
|
|
16
|
+
fileUploadEdit: string;
|
|
17
|
+
fileAvatarEdit: string;
|
|
18
|
+
deleteData: (id: number) => void;
|
|
19
|
+
handOpenModal: () => void;
|
|
20
|
+
handCloseModalEdit: () => void;
|
|
21
|
+
handCloseModalDelete: () => void;
|
|
22
|
+
value: string;
|
|
23
|
+
fileAvatar: string;
|
|
24
|
+
valueAddActivity: string;
|
|
25
|
+
onChangeSetData: (e: any) => void;
|
|
26
|
+
onChangeSetDataNote: (e: any) => void;
|
|
27
|
+
dataEdit: {
|
|
28
|
+
id: string;
|
|
29
|
+
Title: string;
|
|
30
|
+
Note: string;
|
|
31
|
+
studentId: string;
|
|
32
|
+
};
|
|
33
|
+
onChangeSetDataEdit: (e: any) => void;
|
|
34
|
+
onChangeSetDataEditNote: (e: any) => void;
|
|
4
35
|
};
|
|
5
36
|
export default usePersonalInterest;
|
package/dist/index.js
CHANGED
|
@@ -157,7 +157,7 @@ var drawerWidth = 280;
|
|
|
157
157
|
var headerHeightDesktop = 64;
|
|
158
158
|
var headerHeightMobile = 55;
|
|
159
159
|
var headerHeightScroll = 0;
|
|
160
|
-
var LOGO = "/images/logo-new.
|
|
160
|
+
var LOGO = "/images/logo-new.svg";
|
|
161
161
|
|
|
162
162
|
var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
163
163
|
var _currentUrl$split, _clsx;
|
|
@@ -301,9 +301,15 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
301
301
|
}, {
|
|
302
302
|
name: "My Conferences",
|
|
303
303
|
icon: urlActive === "my-conferences" ? React__default.createElement("img", {
|
|
304
|
-
|
|
304
|
+
style: {
|
|
305
|
+
imageRendering: "pixelated"
|
|
306
|
+
},
|
|
307
|
+
src: "/images/teacher-white.svg"
|
|
305
308
|
}) : React__default.createElement("img", {
|
|
306
|
-
|
|
309
|
+
style: {
|
|
310
|
+
imageRendering: "pixelated"
|
|
311
|
+
},
|
|
312
|
+
src: hoverConferences ? "/images/teacher-white.svg" : "/images/teacher.svg"
|
|
307
313
|
})
|
|
308
314
|
}, {
|
|
309
315
|
name: "Settings",
|
|
@@ -335,7 +341,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
335
341
|
className: classes.sectionDesktop
|
|
336
342
|
}, React__default.createElement("a", {
|
|
337
343
|
className: classes.textPrivacy,
|
|
338
|
-
href:
|
|
344
|
+
href: "https://marioframework.com/mario-for-me-privacy-policy/",
|
|
339
345
|
target: "blank"
|
|
340
346
|
}, "Privacy Policy"), React__default.createElement(IconButton, {
|
|
341
347
|
"aria-label": "show 17 new notifications",
|
|
@@ -393,7 +399,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
393
399
|
onClick: function onClick() {
|
|
394
400
|
return history.push(navigation.to);
|
|
395
401
|
},
|
|
396
|
-
className: classes.drawerItem + " " + (urlActive !=
|
|
402
|
+
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 : "")
|
|
397
403
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find = ICON_NAV.find(function (nav) {
|
|
398
404
|
return nav.name == navigation.name;
|
|
399
405
|
})) === null || _ICON_NAV$find === void 0 ? void 0 : _ICON_NAV$find.icon), React__default.createElement(core.ListItemText, null, React__default.createElement("span", {
|
|
@@ -417,7 +423,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
417
423
|
toggleSideBar();
|
|
418
424
|
history.push(navigation.to);
|
|
419
425
|
},
|
|
420
|
-
className: classes.drawerItem + " " + (urlActive !=
|
|
426
|
+
className: classes.drawerItem + " " + (urlActive != "" && (navigation.to.includes(urlActive) || navigation.to.includes("my-student") && urlActive == "student-detail") ? classes.drawerActive : "")
|
|
421
427
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find2 = ICON_NAV.find(function (nav) {
|
|
422
428
|
return nav.name == navigation.name;
|
|
423
429
|
})) === null || _ICON_NAV$find2 === void 0 ? void 0 : _ICON_NAV$find2.icon), React__default.createElement(core.ListItemText, {
|
|
@@ -461,18 +467,18 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
461
467
|
display: "none"
|
|
462
468
|
}, _drawer),
|
|
463
469
|
textPrivacy: (_textPrivacy = {
|
|
464
|
-
display:
|
|
465
|
-
alignItems:
|
|
466
|
-
color:
|
|
467
|
-
textDecoration:
|
|
468
|
-
marginRight:
|
|
470
|
+
display: "flex",
|
|
471
|
+
alignItems: "center",
|
|
472
|
+
color: "#fff",
|
|
473
|
+
textDecoration: "none",
|
|
474
|
+
marginRight: "12px",
|
|
469
475
|
"&:hover": {
|
|
470
|
-
color:
|
|
471
|
-
textDecoration:
|
|
476
|
+
color: "#fff",
|
|
477
|
+
textDecoration: "none",
|
|
472
478
|
fontWeight: 700
|
|
473
479
|
}
|
|
474
480
|
}, _textPrivacy[theme.breakpoints.down(415)] = {
|
|
475
|
-
marginRight:
|
|
481
|
+
marginRight: "0px"
|
|
476
482
|
}, _textPrivacy),
|
|
477
483
|
drawerItem: {
|
|
478
484
|
height: "70px",
|
|
@@ -8242,12 +8248,7 @@ var SimpleDialog$2 = function SimpleDialog(props) {
|
|
|
8242
8248
|
}));
|
|
8243
8249
|
};
|
|
8244
8250
|
|
|
8245
|
-
|
|
8246
|
-
if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
|
|
8247
|
-
return true;
|
|
8248
|
-
}
|
|
8249
|
-
|
|
8250
|
-
var SimpleDialog$3 = React__default.memo(SimpleDialog$2, areEqual$1);
|
|
8251
|
+
var SimpleDialog$3 = React__default.memo(SimpleDialog$2);
|
|
8251
8252
|
|
|
8252
8253
|
function NodeDraggable(props) {
|
|
8253
8254
|
var _useState = React.useState({
|
|
@@ -12876,7 +12877,7 @@ var Overview = function Overview(props) {
|
|
|
12876
12877
|
return t.month;
|
|
12877
12878
|
}),
|
|
12878
12879
|
chartData: informationWellbeing === null || informationWellbeing === void 0 ? void 0 : informationWellbeing.overviewQuestionChoice.map(function (t) {
|
|
12879
|
-
return t.avgOfStudentChoice /
|
|
12880
|
+
return t.avgOfStudentChoice / 10;
|
|
12880
12881
|
})
|
|
12881
12882
|
}
|
|
12882
12883
|
};
|
|
@@ -13116,6 +13117,8 @@ var useStudentOneToOne = function useStudentOneToOne() {
|
|
|
13116
13117
|
sessionData = _useState[0],
|
|
13117
13118
|
setSessionData = _useState[1];
|
|
13118
13119
|
|
|
13120
|
+
var studentId = location.pathname.replace(/[^0-9]/g, "");
|
|
13121
|
+
|
|
13119
13122
|
var _useState2 = React.useState({
|
|
13120
13123
|
startDate: moment().subtract(30, 'days').valueOf(),
|
|
13121
13124
|
endDate: moment().add(7, "days").valueOf(),
|
|
@@ -13132,7 +13135,7 @@ var useStudentOneToOne = function useStudentOneToOne() {
|
|
|
13132
13135
|
return setFilter(_extends({}, filter, updatedFilters));
|
|
13133
13136
|
};
|
|
13134
13137
|
|
|
13135
|
-
var getStudentOneToOne = function getStudentOneToOne(
|
|
13138
|
+
var getStudentOneToOne = function getStudentOneToOne() {
|
|
13136
13139
|
try {
|
|
13137
13140
|
var _temp3 = function _temp3() {
|
|
13138
13141
|
dispatch(marioCore.setLoading(false));
|
|
@@ -13162,7 +13165,7 @@ var useStudentOneToOne = function useStudentOneToOne() {
|
|
|
13162
13165
|
};
|
|
13163
13166
|
|
|
13164
13167
|
React.useEffect(function () {
|
|
13165
|
-
getStudentOneToOne(
|
|
13168
|
+
getStudentOneToOne();
|
|
13166
13169
|
}, [filter]);
|
|
13167
13170
|
return {
|
|
13168
13171
|
sessionData: sessionData,
|
|
@@ -13569,6 +13572,8 @@ var useStudentConference = function useStudentConference() {
|
|
|
13569
13572
|
sessionData = _useState[0],
|
|
13570
13573
|
setSessionData = _useState[1];
|
|
13571
13574
|
|
|
13575
|
+
var studentId = location.pathname.replace(/[^0-9]/g, "");
|
|
13576
|
+
|
|
13572
13577
|
var _useState2 = React.useState({
|
|
13573
13578
|
startDate: moment().subtract(30, 'days').valueOf(),
|
|
13574
13579
|
endDate: moment().add(7, "days").valueOf(),
|
|
@@ -13585,7 +13590,7 @@ var useStudentConference = function useStudentConference() {
|
|
|
13585
13590
|
return setFilter(_extends({}, filter, updatedFilters));
|
|
13586
13591
|
};
|
|
13587
13592
|
|
|
13588
|
-
var getStudentConference = function getStudentConference(
|
|
13593
|
+
var getStudentConference = function getStudentConference() {
|
|
13589
13594
|
try {
|
|
13590
13595
|
var _temp3 = function _temp3() {
|
|
13591
13596
|
dispatch(marioCore.setLoading(false));
|
|
@@ -13615,7 +13620,7 @@ var useStudentConference = function useStudentConference() {
|
|
|
13615
13620
|
};
|
|
13616
13621
|
|
|
13617
13622
|
React.useEffect(function () {
|
|
13618
|
-
getStudentConference(
|
|
13623
|
+
getStudentConference();
|
|
13619
13624
|
}, [filter]);
|
|
13620
13625
|
return {
|
|
13621
13626
|
sessionData: sessionData,
|
|
@@ -17406,12 +17411,12 @@ var SimpleDialog$4 = function SimpleDialog(props) {
|
|
|
17406
17411
|
}));
|
|
17407
17412
|
};
|
|
17408
17413
|
|
|
17409
|
-
function areEqual$
|
|
17414
|
+
function areEqual$1(prevProps, nextProps) {
|
|
17410
17415
|
if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
|
|
17411
17416
|
return true;
|
|
17412
17417
|
}
|
|
17413
17418
|
|
|
17414
|
-
var SimpleDialog$5 = React__default.memo(SimpleDialog$4, areEqual$
|
|
17419
|
+
var SimpleDialog$5 = React__default.memo(SimpleDialog$4, areEqual$1);
|
|
17415
17420
|
|
|
17416
17421
|
var QuestionType$1;
|
|
17417
17422
|
|