mario-teacher-student-client 2.0.5 → 2.0.8
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/Card/CardItem.d.ts +13 -0
- package/dist/components/Card/CardSwitch.d.ts +9 -0
- package/dist/components/Input/InputComponent.d.ts +8 -0
- package/dist/containers/AboutMyLearning/components/AboutMyLearning.d.ts +3 -0
- package/dist/containers/AboutMyLearning/components/AboutMyLearningList.d.ts +3 -0
- package/dist/containers/AboutMyLearning/constants/type.d.ts +7 -0
- package/dist/containers/AboutMyLearning/hook/useAboutMyLearning.d.ts +11 -0
- package/dist/containers/Accommodation/components/Accomondation.d.ts +3 -0
- package/dist/containers/Accommodation/components/AccomondationList.d.ts +3 -0
- package/dist/containers/Accommodation/constants/type.d.ts +6 -0
- package/dist/containers/Accommodation/hook/useAccommodation.d.ts +10 -0
- package/dist/containers/ConductOneToOne/hooks/useCountDown.d.ts +8 -0
- package/dist/containers/LearningPlan/views/LearningPlan.d.ts +3 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +4 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/TopLearningStrategies.d.ts +1 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/TopLearningStrategiesChart.d.ts +3 -0
- package/dist/containers/PersonalLearningPlan/PersonalInterests/apiClient/personalInterestApi.d.ts +6 -0
- package/dist/containers/PersonalLearningPlan/PersonalInterests/components/ListPersonalInterestHook.d.ts +36 -0
- package/dist/containers/PersonalLearningPlan/PersonalInterests/components/ListPersonalInterrest.d.ts +3 -0
- package/dist/containers/PersonalLearningPlan/PersonalInterests/services/personalInterestsService.d.ts +6 -0
- package/dist/containers/PersonalLearningPlan/components/PersonalLearningGoal/PersonalLearningGoal.d.ts +3 -0
- package/dist/containers/StrengthsAndChallenges/components/dialogs/CreateEditDialog.d.ts +3 -0
- package/dist/containers/StrengthsAndChallenges/hook/useStrengthsChallenges.d.ts +8 -0
- package/dist/containers/StrengthsAndChallenges/views/DetailStrengthsAndChallenges.d.ts +3 -0
- package/dist/containers/StrengthsAndChallenges/views/SummaryStrengthsAndChallenges.d.ts +3 -0
- package/dist/containers/ThingTeachersCanHelp/components/ThingTeachersCanHelp.d.ts +3 -0
- package/dist/containers/ThingTeachersCanHelp/components/ThingTeachersCanHelpList.d.ts +3 -0
- package/dist/containers/ThingTeachersCanHelp/constants/type.d.ts +5 -0
- package/dist/containers/ThingTeachersCanHelp/hook/useThingTeachersCanHelp.d.ts +11 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -9
- package/dist/index.modern.js.map +1 -1
- package/dist/services/AboutMyLearning.d.ts +7 -0
- package/dist/services/PersonalLearningPlan.d.ts +6 -0
- package/dist/services/StrengthsChallenges.d.ts +4 -0
- package/dist/services/ThingTeachersCanHelp.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
status?: string;
|
|
6
|
+
id?: number;
|
|
7
|
+
handleDelete: Function;
|
|
8
|
+
handleEdit: Function;
|
|
9
|
+
note?: boolean;
|
|
10
|
+
contentWidth?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const CardItem: ({ title, description, status, id, handleDelete, handleEdit, note, contentWidth }: Props) => JSX.Element;
|
|
13
|
+
export default CardItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const useAboutMyLearning: () => {
|
|
2
|
+
create: (data: any) => Promise<void>;
|
|
3
|
+
update: (id: number, data: any) => Promise<void>;
|
|
4
|
+
getById: (id: number) => Promise<void>;
|
|
5
|
+
deleteById: (id: number) => Promise<void>;
|
|
6
|
+
updateAllow: (data: any) => Promise<void>;
|
|
7
|
+
listData: any;
|
|
8
|
+
getOneData: any;
|
|
9
|
+
isAllowedEdit: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default useAboutMyLearning;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const useAccommodation: () => {
|
|
2
|
+
create: (data: any) => Promise<void>;
|
|
3
|
+
update: (id: number, data: any) => Promise<void>;
|
|
4
|
+
getById: (id: number, data: any) => Promise<void>;
|
|
5
|
+
deleteById: (id: number) => Promise<void>;
|
|
6
|
+
updateAllow: (data: any) => Promise<void>;
|
|
7
|
+
accommodationData: any;
|
|
8
|
+
isAllowedEdit: boolean;
|
|
9
|
+
};
|
|
10
|
+
export default useAccommodation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTopLearningStrategiesApi: (studentId: any) => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/containers/PersonalLearningPlan/PersonalInterests/apiClient/personalInterestApi.d.ts
CHANGED
|
@@ -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,36 @@
|
|
|
1
|
+
declare const usePersonalInterest: () => {
|
|
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;
|
|
35
|
+
};
|
|
36
|
+
export default usePersonalInterest;
|
|
@@ -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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const useStrengthsChallenges: () => {
|
|
2
|
+
strengthsChallengesData: any;
|
|
3
|
+
getStrengthChallenge: (studentId: any) => Promise<void>;
|
|
4
|
+
postStrengthChallenge: (formData: any) => Promise<void>;
|
|
5
|
+
putStrengthChallenge: (id: any, formData: any) => Promise<void>;
|
|
6
|
+
deleteStrengthChallenge: (id: any) => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export default useStrengthsChallenges;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const useThingTeachersCanHelp: () => {
|
|
2
|
+
create: (data: any) => Promise<void>;
|
|
3
|
+
update: (id: number, data: any) => Promise<void>;
|
|
4
|
+
getById: (id: number) => Promise<void>;
|
|
5
|
+
deleteById: (id: number) => Promise<void>;
|
|
6
|
+
updateAllow: (data: any) => Promise<void>;
|
|
7
|
+
listData: any;
|
|
8
|
+
getOneData: any;
|
|
9
|
+
isAllowedEdit: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default useThingTeachersCanHelp;
|
package/dist/index.js
CHANGED
|
@@ -8576,7 +8576,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
8576
8576
|
style: {
|
|
8577
8577
|
position: "absolute",
|
|
8578
8578
|
right: "0",
|
|
8579
|
-
bottom: "
|
|
8579
|
+
bottom: "50%"
|
|
8580
8580
|
}
|
|
8581
8581
|
}, React__default.createElement(NodeDraggable, {
|
|
8582
8582
|
handleClickOpen: handleClickOpen
|
|
@@ -13435,7 +13435,7 @@ var OneToOne = function OneToOne() {
|
|
|
13435
13435
|
marginLeft: "5px"
|
|
13436
13436
|
}
|
|
13437
13437
|
}) : ""))), 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;
|
|
13438
|
+
var _row$studentProfile, _row$studentProfile2, _row$studentProfile3, _row$studentProfile4, _row$studentProfile5;
|
|
13439
13439
|
|
|
13440
13440
|
var timeStart = marioCore.utcToLocalTime(row === null || row === void 0 ? void 0 : row.startTime, "Do MMMM yyyy - hh:mm A").toString();
|
|
13441
13441
|
var timeSplitArray = timeStart.split(" - ");
|
|
@@ -13457,7 +13457,7 @@ var OneToOne = function OneToOne() {
|
|
|
13457
13457
|
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
13458
|
alt: "",
|
|
13459
13459
|
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, {
|
|
13460
|
+
}), (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
13461
|
align: "left",
|
|
13462
13462
|
className: "" + styles$4["row_grade"]
|
|
13463
13463
|
}, !!row.gradeLevel ? row === null || row === void 0 ? void 0 : row.gradeLevel : ""), React__default.createElement(core.TableCell, {
|
|
@@ -13501,7 +13501,7 @@ var OneToOne = function OneToOne() {
|
|
|
13501
13501
|
}, React__default.createElement("div", {
|
|
13502
13502
|
className: "" + styles$4["list-title"]
|
|
13503
13503
|
}, "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$
|
|
13504
|
+
var _row$studentProfile6, _row$studentProfile7, _row$studentProfile8;
|
|
13505
13505
|
|
|
13506
13506
|
var timeStart = marioCore.utcToLocalTime(row.startTime, "Do MMMM yyyy - hh:mm A").toString();
|
|
13507
13507
|
var timeSplitArray = timeStart.split(" - ");
|
|
@@ -13510,7 +13510,7 @@ var OneToOne = function OneToOne() {
|
|
|
13510
13510
|
}, React__default.createElement("div", {
|
|
13511
13511
|
className: "" + styles$4["avatar"]
|
|
13512
13512
|
}, React__default.createElement("img", {
|
|
13513
|
-
src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$
|
|
13513
|
+
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
13514
|
alt: "",
|
|
13515
13515
|
className: "" + styles$4["avatar_user"]
|
|
13516
13516
|
})), React__default.createElement("div", {
|
|
@@ -13523,7 +13523,7 @@ var OneToOne = function OneToOne() {
|
|
|
13523
13523
|
className: "" + styles$4["time-Hours-Minute"]
|
|
13524
13524
|
}, " ", "-", " ", timeSplitArray[1]))), React__default.createElement("div", null, React__default.createElement("p", {
|
|
13525
13525
|
className: "" + styles$4["name"]
|
|
13526
|
-
}, row === null || row === void 0 ? void 0 : (_row$
|
|
13526
|
+
}, 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
13527
|
className: "" + styles$4["classes"]
|
|
13528
13528
|
}, !!row.gradeLevel && row.gradeLevel), React__default.createElement("div", {
|
|
13529
13529
|
style: {
|
|
@@ -17688,7 +17688,7 @@ var ConferenceRubric = function ConferenceRubric() {
|
|
|
17688
17688
|
style: {
|
|
17689
17689
|
position: "absolute",
|
|
17690
17690
|
right: "0",
|
|
17691
|
-
bottom: "
|
|
17691
|
+
bottom: "50%"
|
|
17692
17692
|
}
|
|
17693
17693
|
}, React__default.createElement(NodeDraggable, {
|
|
17694
17694
|
handleClickOpen: handleClickOpen
|
|
@@ -21975,7 +21975,7 @@ function NotificationsPage() {
|
|
|
21975
21975
|
}
|
|
21976
21976
|
}, React__default.createElement("p", {
|
|
21977
21977
|
className: classes.textNotifications
|
|
21978
|
-
}, "Send notification when a", roles.includes('Teacher') ? "student" : "teacher", " quick start a session/conference"), React__default.createElement(core.Switch, {
|
|
21978
|
+
}, "Send notification when a ", roles.includes('Teacher') ? "student" : "teacher", " quick start a session/conference"), React__default.createElement(core.Switch, {
|
|
21979
21979
|
color: "primary",
|
|
21980
21980
|
name: "IsReceiveNotificationBookedSession",
|
|
21981
21981
|
onChange: onChangeDataSettingPage,
|
|
@@ -21991,7 +21991,7 @@ function NotificationsPage() {
|
|
|
21991
21991
|
}
|
|
21992
21992
|
}, React__default.createElement("p", {
|
|
21993
21993
|
className: classes.textNotifications
|
|
21994
|
-
}, "Send notification when a", roles.includes('Teacher') ? "student" : "teacher", " books a session/conference"), React__default.createElement(core.Switch, {
|
|
21994
|
+
}, "Send notification when a ", roles.includes('Teacher') ? "student" : "teacher", " books a session/conference"), React__default.createElement(core.Switch, {
|
|
21995
21995
|
color: "primary",
|
|
21996
21996
|
name: "IsReceiveNotificationPrebookedSession",
|
|
21997
21997
|
onChange: onChangeDataSettingPage,
|