mario-core 0.0.1-district → 1.0.0-arabic-layout
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/Selectors/constants/constant.d.ts +1 -1
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +24 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +1 -1
- package/dist/containers/Login/hooks/useLogin.d.ts +10 -4
- package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
- package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
- package/dist/containers/User/components/HeaderCell.d.ts +1 -0
- package/dist/containers/User/components/TableHeader.d.ts +1 -0
- package/dist/containers/User/constants/constants.d.ts +2 -1
- package/dist/containers/User/constants/types.d.ts +24 -4
- package/dist/containers/User/hooks/useAssignStudent.d.ts +11 -1
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +1 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +1 -1
- package/dist/containers/User/hooks/useCounselorList.d.ts +1 -1
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +1 -1
- package/dist/containers/User/hooks/useTableHeader.d.ts +1 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +2 -2
- package/dist/containers/User/hooks/useUserDetail.d.ts +5 -0
- package/dist/containers/User/hooks/useUserList.d.ts +1 -1
- package/dist/hooks/useClassFontSize.d.ts +4 -0
- package/dist/hooks/useLanguages.d.ts +10 -0
- package/dist/index.css +264 -60
- package/dist/index.d.ts +4 -2
- package/dist/index.js +21307 -2972
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +21305 -2974
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/commons/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
- package/dist/rootReducer.d.ts +5 -0
- package/dist/services/accountService.d.ts +5 -2
- package/dist/services/emailTemplateService.d.ts +1 -0
- package/dist/services/schoolService.d.ts +1 -0
- package/dist/services/userService.d.ts +2 -0
- package/dist/utils/constants.d.ts +3 -2
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/package.json +104 -101
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LogLevel } from "@azure/msal-browser";
|
|
2
|
+
/**
|
|
3
|
+
* Configuration object to be passed to MSAL instance on creation.
|
|
4
|
+
* For a full list of MSAL.js configuration parameters, visit:
|
|
5
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
|
|
6
|
+
*/
|
|
7
|
+
export declare const msalConfig: {
|
|
8
|
+
auth: {
|
|
9
|
+
clientId: string;
|
|
10
|
+
authority: string;
|
|
11
|
+
redirectUri: string;
|
|
12
|
+
};
|
|
13
|
+
cache: {
|
|
14
|
+
cacheLocation: string;
|
|
15
|
+
storeAuthStateInCookie: boolean;
|
|
16
|
+
};
|
|
17
|
+
system: {
|
|
18
|
+
loggerOptions: {
|
|
19
|
+
loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Scopes you add here will be prompted for user consent during sign-in.
|
|
25
|
+
* By default, MSAL.js will add OIDC scopes (openid, profile, email) to any login request.
|
|
26
|
+
* For more information about OIDC scopes, visit:
|
|
27
|
+
* https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes
|
|
28
|
+
*/
|
|
29
|
+
export declare const loginRequest: {
|
|
30
|
+
scopes: string[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Add here the scopes to request when obtaining an access token for MS Graph API. For more information, see:
|
|
34
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/resources-and-scopes.md
|
|
35
|
+
*/
|
|
36
|
+
export declare const graphConfig: {
|
|
37
|
+
graphMeEndpoint: string;
|
|
38
|
+
};
|
|
@@ -5,3 +5,27 @@ export interface ICreatePassword {
|
|
|
5
5
|
userId: string;
|
|
6
6
|
token: string;
|
|
7
7
|
}
|
|
8
|
+
export declare enum TypeLogin {
|
|
9
|
+
Google = 0,
|
|
10
|
+
ClassLink = 1,
|
|
11
|
+
MicrosoftSSO = 2
|
|
12
|
+
}
|
|
13
|
+
export interface IInformationUser {
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
imageUrl: string | null;
|
|
18
|
+
email: string;
|
|
19
|
+
accessToken: string;
|
|
20
|
+
googleId: string;
|
|
21
|
+
}
|
|
22
|
+
export declare enum LoginType {
|
|
23
|
+
Default = 0,
|
|
24
|
+
Google = 1,
|
|
25
|
+
Impersonate = 2
|
|
26
|
+
}
|
|
27
|
+
export interface ISchool {
|
|
28
|
+
schoolName: string;
|
|
29
|
+
schoolLogo: string;
|
|
30
|
+
schoolId: number;
|
|
31
|
+
}
|
|
@@ -7,7 +7,7 @@ declare type ForgotPasswordInfo = {
|
|
|
7
7
|
declare const useForgotPassword: () => {
|
|
8
8
|
defaultInfo: ForgotPasswordInfo;
|
|
9
9
|
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
10
|
-
checkResetTokenRequest: (token: string) => Promise<void>;
|
|
10
|
+
checkResetTokenRequest: (token: string, key: string) => Promise<void>;
|
|
11
11
|
validLink: boolean;
|
|
12
12
|
resetPasswordRequest: (data: any) => Promise<void>;
|
|
13
13
|
openLogin: boolean;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TypeLogin, ISchool } from "../constant/types";
|
|
2
3
|
declare type LoginInfo = {
|
|
3
4
|
email: string;
|
|
4
5
|
password: string;
|
|
5
6
|
captcha: string;
|
|
6
7
|
rememberMe: boolean;
|
|
8
|
+
isSessionUserBrowser?: boolean;
|
|
7
9
|
};
|
|
8
10
|
declare const useLogin: () => {
|
|
9
11
|
defaultInfo: LoginInfo;
|
|
@@ -12,13 +14,17 @@ declare const useLogin: () => {
|
|
|
12
14
|
toggle: () => void;
|
|
13
15
|
isShowPassword: boolean;
|
|
14
16
|
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
-
fnIsCheckLogin: (data: any, token: string, clickHandler
|
|
16
|
-
isLoginGoogle:
|
|
17
|
+
fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler?: any) => Promise<void>;
|
|
18
|
+
isLoginGoogle: any;
|
|
17
19
|
infoUser: any;
|
|
18
|
-
setInfoUser: import("react").Dispatch<any>;
|
|
19
20
|
submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
|
|
20
|
-
setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
21
21
|
googleClientId: string;
|
|
22
22
|
googleRecaptchaId: string;
|
|
23
|
+
handleCancelModelAssign: () => void;
|
|
24
|
+
openModelAssign: boolean;
|
|
25
|
+
fnLoginSSO: (clickHandler?: any) => Promise<void>;
|
|
26
|
+
school: ISchool;
|
|
27
|
+
extensionEmail: string;
|
|
28
|
+
handleLoginWidthClever: () => void;
|
|
23
29
|
};
|
|
24
30
|
export default useLogin;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { ISchool } from "../../constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
school: ISchool;
|
|
5
|
+
}
|
|
6
|
+
declare const BlockForgetPassword: ({ school }: Props) => JSX.Element;
|
|
3
7
|
export default BlockForgetPassword;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { ISchool } from "../../constant/types";
|
|
2
3
|
interface Props {
|
|
3
4
|
defaultInfo?: any;
|
|
4
5
|
userLogin?: any;
|
|
6
|
+
onCancelModelAssign: Function;
|
|
7
|
+
openModelAssign: boolean;
|
|
8
|
+
school: ISchool;
|
|
9
|
+
isShowPassword: boolean;
|
|
10
|
+
setIsShowPassword: Function;
|
|
11
|
+
fnIsCheckLogin: Function;
|
|
12
|
+
isLoginGoogle: boolean;
|
|
13
|
+
submitLogin: Function;
|
|
14
|
+
infoUser: any;
|
|
15
|
+
googleClientId: string;
|
|
16
|
+
fnLoginSSO: Function;
|
|
17
|
+
extensionEmail: string;
|
|
18
|
+
onLoginWidthClever: Function;
|
|
5
19
|
}
|
|
6
20
|
declare const BlockLogin: FC<Props>;
|
|
7
21
|
export default BlockLogin;
|
|
@@ -12,6 +12,7 @@ interface Props {
|
|
|
12
12
|
onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
15
|
+
isCenter?: boolean;
|
|
15
16
|
}
|
|
16
17
|
declare const HeaderCell: FC<Props>;
|
|
17
18
|
export default HeaderCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
1
|
+
import { IStaffAssign, StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
2
2
|
export declare const userOrders: {
|
|
3
3
|
0: string;
|
|
4
4
|
1: string;
|
|
@@ -18,3 +18,4 @@ export declare const DEFAULT_FILTER: UserFilter;
|
|
|
18
18
|
export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
19
19
|
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
20
20
|
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
21
|
+
export declare const initialStaffBulk: IStaffAssign;
|
|
@@ -13,6 +13,7 @@ export declare type User = {
|
|
|
13
13
|
fullName: string;
|
|
14
14
|
sourcedId: string;
|
|
15
15
|
rosterUser: RosterUser;
|
|
16
|
+
grade: string;
|
|
16
17
|
};
|
|
17
18
|
export declare type RosterUser = {
|
|
18
19
|
sourcedId: string;
|
|
@@ -53,18 +54,21 @@ export declare type UserFilterField = {
|
|
|
53
54
|
isDescending?: boolean;
|
|
54
55
|
searchBy?: SearchBy;
|
|
55
56
|
searchStringBy?: string;
|
|
57
|
+
isStudentFilter?: boolean;
|
|
56
58
|
};
|
|
57
59
|
export declare type UserColumn = {
|
|
60
|
+
isCenter?: boolean;
|
|
58
61
|
name: string;
|
|
59
62
|
sortBy?: UserOrder;
|
|
60
63
|
className?: string;
|
|
61
64
|
searchBy?: SearchBy;
|
|
62
65
|
getOption?: (user: any, t?: any) => FilterOption;
|
|
63
66
|
options?: FilterOption[];
|
|
67
|
+
onSelectAll?: Function;
|
|
68
|
+
isCheckAll?: boolean;
|
|
64
69
|
};
|
|
65
70
|
export declare type StudentAssign = {
|
|
66
71
|
studentId: number;
|
|
67
|
-
teacherUserId: string;
|
|
68
72
|
id: string;
|
|
69
73
|
email: string;
|
|
70
74
|
fullName: string;
|
|
@@ -80,10 +84,26 @@ export declare type StudentAssign = {
|
|
|
80
84
|
counselorEmail: string;
|
|
81
85
|
secondaryTeacherName: string;
|
|
82
86
|
secondaryTeacherEmail: string;
|
|
87
|
+
teachers: Array<ITeachers>;
|
|
88
|
+
};
|
|
89
|
+
export interface ITeachers {
|
|
90
|
+
teacherUserId: string;
|
|
83
91
|
mainTeacherName: string;
|
|
84
92
|
mainTeacherEmail: string;
|
|
85
93
|
mainTeacherId?: number;
|
|
86
|
-
}
|
|
94
|
+
}
|
|
95
|
+
export interface IStaffAssign {
|
|
96
|
+
teacher: {
|
|
97
|
+
id: string;
|
|
98
|
+
email: string;
|
|
99
|
+
}[];
|
|
100
|
+
assistantId: string;
|
|
101
|
+
assistantEmail: string;
|
|
102
|
+
counselorId: string;
|
|
103
|
+
counselorEmail: string;
|
|
104
|
+
secondaryTeacherId: string;
|
|
105
|
+
secondaryTeacherEmail: string;
|
|
106
|
+
}
|
|
87
107
|
export declare type Counselor = {
|
|
88
108
|
id: string;
|
|
89
109
|
counselorId: number;
|
|
@@ -118,8 +138,8 @@ export interface IOptions {
|
|
|
118
138
|
}
|
|
119
139
|
export declare type AssignStudentDto = {
|
|
120
140
|
id: string;
|
|
121
|
-
mainTeacherUserId?: string
|
|
122
|
-
mainTeacherEmail?: string
|
|
141
|
+
mainTeacherUserId?: Array<string>;
|
|
142
|
+
mainTeacherEmail?: Array<string>;
|
|
123
143
|
assistantUserId?: string;
|
|
124
144
|
assistantEmail?: string;
|
|
125
145
|
counselorUserId?: string;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { IStaffAssign } from "../constants/types";
|
|
2
|
+
declare const useAssignStudent: (teacherSelected?: any, assistantSelected?: object | undefined, counselorSelected?: object | undefined, secondaryTeacherSelected?: object | undefined, callback?: Function | undefined) => {
|
|
2
3
|
handleAssignSingleStudent: (id: string) => void;
|
|
3
4
|
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
5
|
+
openModelBulk: boolean;
|
|
6
|
+
handleToggleModel: (listUserIds?: string[] | undefined) => void;
|
|
7
|
+
handleChangeStaffBulk: (name: string, id: string) => void;
|
|
8
|
+
staffBulkAssign: IStaffAssign;
|
|
9
|
+
handleAssignStaffToStudents: (listUserIds: string[], isTeacherExit: boolean) => void;
|
|
10
|
+
handleToggleInactiveModal: (listUserIds?: string[] | undefined) => void;
|
|
11
|
+
openInactiveModal: boolean;
|
|
12
|
+
handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
|
|
13
|
+
handleChangeTeacherBulk: (value: any[]) => void;
|
|
4
14
|
};
|
|
5
15
|
export default useAssignStudent;
|
|
@@ -4,7 +4,7 @@ declare const useAssistantList: () => {
|
|
|
4
4
|
selectedAssistants: object | undefined;
|
|
5
5
|
assistantOptions: IOptions[];
|
|
6
6
|
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
8
|
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useAssistantList;
|
|
@@ -4,7 +4,7 @@ declare const useCounselorList: () => {
|
|
|
4
4
|
selectedCounselors: object | undefined;
|
|
5
5
|
counselorOptions: IOptions[];
|
|
6
6
|
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
8
|
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useCounselorList;
|
|
@@ -4,7 +4,7 @@ declare const useSecondaryTeacherList: () => {
|
|
|
4
4
|
selectedSecondaryTeachers: object | undefined;
|
|
5
5
|
secondaryTeacherOptions: IOptions[];
|
|
6
6
|
handleSelectSecondaryTeacher: (secondaryTeacherId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
8
|
setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useSecondaryTeacherList;
|
|
@@ -2,6 +2,7 @@ import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/t
|
|
|
2
2
|
interface Props {
|
|
3
3
|
filters: UserFilter;
|
|
4
4
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
5
|
+
isStudentFilter?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const useTableHeader: (props: Props) => {
|
|
7
8
|
popoverFilters: UserFilterField;
|
|
@@ -3,8 +3,8 @@ import { IOptions } from "../constants/types";
|
|
|
3
3
|
declare const useTeacherList: () => {
|
|
4
4
|
selectedTeachers: object | undefined;
|
|
5
5
|
teacherOptions: IOptions[];
|
|
6
|
-
handleSelectTeacher: (
|
|
7
|
-
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
|
|
6
|
+
handleSelectTeacher: (teacherIds: Array<string>, studentUserId: string) => void;
|
|
7
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string, isSelectTeacher?: boolean | undefined) => void;
|
|
8
8
|
setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useTeacherList;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
2
3
|
declare type UserDetail = {
|
|
3
4
|
id?: string;
|
|
4
5
|
firstName: string;
|
|
@@ -9,6 +10,7 @@ declare type UserDetail = {
|
|
|
9
10
|
isActive: boolean;
|
|
10
11
|
profileImageFileName: string;
|
|
11
12
|
sourcedId?: string;
|
|
13
|
+
teacherUserId?: string[];
|
|
12
14
|
};
|
|
13
15
|
declare const useUserDetail: (id?: string | undefined) => {
|
|
14
16
|
userDetail: UserDetail;
|
|
@@ -24,5 +26,8 @@ declare const useUserDetail: (id?: string | undefined) => {
|
|
|
24
26
|
currentRoles: string[];
|
|
25
27
|
handleDisableRoles: (currentRoles: string) => boolean;
|
|
26
28
|
handleResetPassword: (userId: string) => Promise<void>;
|
|
29
|
+
teacherOptions: IOptions[];
|
|
30
|
+
openModel: boolean;
|
|
31
|
+
handleToggleModel: () => void;
|
|
27
32
|
};
|
|
28
33
|
export default useUserDetail;
|
|
@@ -8,7 +8,7 @@ declare const useUserList: () => {
|
|
|
8
8
|
removeData: (id: string) => void;
|
|
9
9
|
changeFilters: (updatedFilters: any) => void;
|
|
10
10
|
reDirectDetailPage: (id?: number | undefined) => void;
|
|
11
|
-
|
|
11
|
+
switchUser: (id: string) => Promise<void>;
|
|
12
12
|
handleSyncRosterUsers: () => Promise<void>;
|
|
13
13
|
rosterUserInfo: (record: any) => string;
|
|
14
14
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useLanguages: () => {
|
|
3
|
+
languageList: any;
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
dropdownOpen: boolean;
|
|
6
|
+
currentLang: string;
|
|
7
|
+
changeLanguageApp: (lang: string) => Promise<void>;
|
|
8
|
+
setCurrentLang: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
9
|
+
};
|
|
10
|
+
export default useLanguages;
|