mario-education 2.4.565-feedback → 2.4.566-feedback
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/Loading/LoadLanguage.d.ts +3 -0
- package/dist/components/icons/DoneCheckInIcon.d.ts +4 -0
- package/dist/components/layouts/hooks/useHeaderSideBar.d.ts +0 -1
- package/dist/containers/MyProfile/configs/constants.d.ts +26 -0
- package/dist/containers/MyProfile/configs/teacherProfileSchema.d.ts +10 -0
- package/dist/containers/MyProfile/hooks/useChangePassword.d.ts +6 -0
- package/dist/containers/MyProfile/hooks/useProfile.d.ts +16 -0
- package/dist/containers/MyProfile/views/ChangePassword.d.ts +2 -0
- package/dist/containers/MyProfile/views/MyProfile.d.ts +3 -0
- package/dist/containers/MyProfile/views/Profile.d.ts +9 -0
- package/dist/containers/UserManagement/configs/constants.d.ts +44 -0
- package/dist/containers/UserManagement/configs/profileSchema.d.ts +13 -0
- package/dist/containers/UserManagement/hooks/useChangePassword.d.ts +6 -0
- package/dist/containers/UserManagement/hooks/useUserDetail.d.ts +44 -0
- package/dist/containers/UserManagement/views/ChangePassword.d.ts +2 -0
- package/dist/containers/UserManagement/views/Profile.d.ts +14 -0
- package/dist/containers/UserManagement/views/UserProfileManagement.d.ts +3 -0
- package/dist/index.css +11517 -10519
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1847 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1828 -23
- package/dist/index.modern.js.map +1 -1
- package/dist/services/MyProfile.d.ts +6 -0
- package/dist/services/userManagementService.d.ts +8 -0
- package/package.json +110 -109
|
@@ -26,7 +26,6 @@ declare const useHeaderSideBar: (_navigations: any) => {
|
|
|
26
26
|
onChangeFont: (fontSize: number) => void;
|
|
27
27
|
handleClose: () => void;
|
|
28
28
|
renderNavigationItem: (navigation: any, isSubItem?: boolean | undefined) => JSX.Element;
|
|
29
|
-
goToSettings: () => void;
|
|
30
29
|
t: import("i18next").TFunction;
|
|
31
30
|
isEnableMarioAi: any;
|
|
32
31
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface IButtonControl {
|
|
2
|
+
value: TypeControl;
|
|
3
|
+
label: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
isControl: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare enum TypeControl {
|
|
8
|
+
Info = "info",
|
|
9
|
+
ChangePassword = "changePassword",
|
|
10
|
+
Signout = "signout"
|
|
11
|
+
}
|
|
12
|
+
export declare const buttonsControl: IButtonControl[];
|
|
13
|
+
export declare const gender: string[];
|
|
14
|
+
export declare const rolesSelect: string[];
|
|
15
|
+
export declare const InitialData: {
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string;
|
|
18
|
+
legalGender: string;
|
|
19
|
+
dateOfBirth: string;
|
|
20
|
+
teacherRole: string;
|
|
21
|
+
email: string;
|
|
22
|
+
country: string;
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
address: string;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
2
|
+
firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
3
|
+
lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
|
+
email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
5
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
6
|
+
firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
7
|
+
lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
8
|
+
email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
9
|
+
}>>;
|
|
10
|
+
export default schema;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypeControl } from "../configs/constants";
|
|
3
|
+
declare const useProfile: () => {
|
|
4
|
+
dataProfile: any;
|
|
5
|
+
updateProfile: (data: any) => Promise<void>;
|
|
6
|
+
activeTab: TypeControl;
|
|
7
|
+
setActiveTab: import("react").Dispatch<import("react").SetStateAction<TypeControl>>;
|
|
8
|
+
handleImageChange: (e: any) => void;
|
|
9
|
+
handleDeleteAvatar: () => Promise<void>;
|
|
10
|
+
imageUse: any;
|
|
11
|
+
imagePreviewUrl: any;
|
|
12
|
+
currentUser: any;
|
|
13
|
+
goBack: () => void;
|
|
14
|
+
signout: () => void;
|
|
15
|
+
};
|
|
16
|
+
export default useProfile;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import 'react-phone-number-input/style.css';
|
|
2
|
+
interface IProps {
|
|
3
|
+
dataProfile: any;
|
|
4
|
+
updateProfile: any;
|
|
5
|
+
currentUser: any;
|
|
6
|
+
goBack: any;
|
|
7
|
+
}
|
|
8
|
+
declare const Profile: ({ dataProfile, updateProfile, currentUser, goBack }: IProps) => JSX.Element;
|
|
9
|
+
export default Profile;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
interface IButtonControl {
|
|
2
|
+
value: TypeControl;
|
|
3
|
+
label: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
isControl: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare enum TypeControl {
|
|
8
|
+
Info = "info",
|
|
9
|
+
ForgotPassword = "forgotPassword",
|
|
10
|
+
DownloadUserData = "downloadUserData",
|
|
11
|
+
ChangePassword = "changePassword"
|
|
12
|
+
}
|
|
13
|
+
export declare const buttonsControl: IButtonControl[];
|
|
14
|
+
export interface IOptions {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
export declare type Teacher = {
|
|
19
|
+
id: string;
|
|
20
|
+
email: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const rolesSelect: string[];
|
|
23
|
+
export declare const ROLES: {
|
|
24
|
+
ADMIN: string;
|
|
25
|
+
TEACHER: string;
|
|
26
|
+
ASSISTANT: string;
|
|
27
|
+
EDUTEACHER: string;
|
|
28
|
+
STUDENT: string;
|
|
29
|
+
PARENT: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const InitialData: {
|
|
32
|
+
firstName: string;
|
|
33
|
+
lastName: string;
|
|
34
|
+
dateOfBirth: string;
|
|
35
|
+
roles: never[];
|
|
36
|
+
email: string;
|
|
37
|
+
isActive: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const statusCheck: {
|
|
40
|
+
value: boolean;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|
|
43
|
+
export declare const gradeLevels: string[];
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
declare const schema: import("yup/lib/object").OptionalObjectSchema<{
|
|
3
|
+
firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
|
+
lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
5
|
+
email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
6
|
+
roles: yup.ArraySchema<yup.StringSchema<string | undefined, Record<string, any>, string | undefined>, Record<string, any>, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
7
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
8
|
+
firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
9
|
+
lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
10
|
+
email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
11
|
+
roles: yup.ArraySchema<yup.StringSchema<string | undefined, Record<string, any>, string | undefined>, Record<string, any>, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
12
|
+
}>>;
|
|
13
|
+
export default schema;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions, TypeControl } from "../configs/constants";
|
|
3
|
+
declare type UserDetail = {
|
|
4
|
+
id?: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
dateOfBirth?: string;
|
|
9
|
+
roles: string[];
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
profileImageFileName: string;
|
|
12
|
+
teacherUserId: string[];
|
|
13
|
+
gradeLevel?: string;
|
|
14
|
+
currentGradeLevel?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const useUserDetail: (id?: string | undefined) => {
|
|
17
|
+
userDetail: UserDetail;
|
|
18
|
+
backToList: (user?: string | undefined) => void;
|
|
19
|
+
confirmData: (data: any) => Promise<void>;
|
|
20
|
+
file: any;
|
|
21
|
+
setFile: import("react").Dispatch<any>;
|
|
22
|
+
edited: boolean;
|
|
23
|
+
currentRoles: string[];
|
|
24
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
25
|
+
setEditedTrue: () => Promise<void>;
|
|
26
|
+
confirmChangePassword: (data: any) => Promise<void>;
|
|
27
|
+
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
28
|
+
handleDisableRoles: (currentRoles: string) => boolean;
|
|
29
|
+
classFontSize: string;
|
|
30
|
+
teacherOptions: IOptions[];
|
|
31
|
+
handleToggleModel: () => void;
|
|
32
|
+
openModel: boolean;
|
|
33
|
+
user: any;
|
|
34
|
+
activeTab: TypeControl;
|
|
35
|
+
setActiveTab: import("react").Dispatch<import("react").SetStateAction<TypeControl>>;
|
|
36
|
+
imageSrc: any;
|
|
37
|
+
imageUse: string;
|
|
38
|
+
handleImageChange: (e: any) => void;
|
|
39
|
+
handleDeleteAvatar: () => Promise<void>;
|
|
40
|
+
getFile: () => void;
|
|
41
|
+
checkHasTeacher: boolean;
|
|
42
|
+
setCheckHasTeacher: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
43
|
+
};
|
|
44
|
+
export default useUserDetail;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import 'react-phone-number-input/style.css';
|
|
2
|
+
interface IProps {
|
|
3
|
+
userDetail: any;
|
|
4
|
+
confirmData: any;
|
|
5
|
+
teacherOptions: any;
|
|
6
|
+
id?: string;
|
|
7
|
+
goBack: any;
|
|
8
|
+
handleDisableRoles: (role: string) => boolean;
|
|
9
|
+
currentRoles: string[];
|
|
10
|
+
checkHasTeacher: boolean;
|
|
11
|
+
setCheckHasTeacher: (value: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const Profile: ({ userDetail, confirmData, goBack, teacherOptions, id, handleDisableRoles, currentRoles, checkHasTeacher, setCheckHasTeacher }: IProps) => JSX.Element;
|
|
14
|
+
export default Profile;
|