mario-core 0.0.1-es → 1.0.0-alpha
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/Alerts/EmptyDataAlert.d.ts +2 -2
- package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
- package/dist/components/Buttons/AddButton.d.ts +1 -1
- package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
- package/dist/components/Buttons/SyncButton.d.ts +8 -0
- package/dist/components/Image/UploadImage.d.ts +2 -2
- package/dist/components/Inputs/FileInput.d.ts +2 -2
- package/dist/components/Inputs/PasswordInput.d.ts +1 -0
- package/dist/components/Inputs/SearchBoxContainer.d.ts +2 -2
- package/dist/components/Labels/RequiredLabel.d.ts +1 -0
- package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
- package/dist/components/Modals/NotificationModal.d.ts +2 -2
- package/dist/components/Others/QuitPrompt.d.ts +5 -2
- package/dist/components/Pagination/CustomPagination.d.ts +2 -2
- package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
- package/dist/components/Selectors/CategorySelector.d.ts +3 -0
- package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
- package/dist/components/Selectors/CustomSelector.d.ts +2 -2
- package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
- package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
- package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
- package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
- package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
- package/dist/components/Selectors/constants/constant.d.ts +10 -0
- package/dist/components/Selectors/hooks/useCategorySelector.d.ts +5 -0
- package/dist/components/Tabs/CustomTab.d.ts +2 -2
- package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
- package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +11 -11
- 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 +34 -0
- package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
- package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
- package/dist/containers/Login/views/Dashboard.d.ts +3 -2
- package/dist/containers/Login/views/Login.d.ts +3 -2
- package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +6 -2
- package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
- package/dist/containers/Login/views/block/IconContent.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -5
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +1 -1
- package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
- package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
- package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
- package/dist/containers/User/components/DeleteBulkModel copy.d.ts +4 -0
- package/dist/containers/User/components/DeleteBulkModel.d.ts +4 -0
- package/dist/containers/User/components/FilterPopover.d.ts +21 -0
- package/dist/containers/User/components/HeaderCell.d.ts +19 -0
- package/dist/containers/User/components/RemoveAssistant.d.ts +4 -0
- package/dist/containers/User/components/RemoveCounselor.d.ts +4 -0
- package/dist/containers/User/components/RemoveSupportTeacher.d.ts +4 -0
- package/dist/containers/User/components/RemoveTeacher.d.ts +4 -0
- package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
- package/dist/containers/User/components/TableHeader.d.ts +15 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
- package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
- package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
- package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -9
- package/dist/containers/User/configs/userSchema.d.ts +11 -13
- package/dist/containers/User/configs/utils.d.ts +8 -0
- package/dist/containers/User/constants/constants.d.ts +63 -0
- package/dist/containers/User/constants/types.d.ts +265 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +45 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +36 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
- package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
- package/dist/containers/User/hooks/useCSVImportTab.d.ts +46 -0
- package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
- package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
- package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
- package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
- package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +20 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useUserDeletedList.d.ts +22 -0
- package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +18 -0
- package/dist/containers/User/hooks/useUserList.d.ts +9 -2
- package/dist/containers/User/hooks/userFilters.d.ts +8 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
- package/dist/containers/User/views/CSVImport.d.ts +3 -0
- package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
- package/dist/containers/User/views/UserContainer.d.ts +3 -0
- package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
- package/dist/containers/User/views/UserDetail.d.ts +2 -2
- package/dist/containers/User/views/UserList.d.ts +2 -2
- package/dist/hooks/useLanguages.d.ts +10 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.css +977 -316
- package/dist/index.d.ts +16 -10
- package/dist/index.js +30853 -3386
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +30836 -3395
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheContent.d.ts +1 -1
- package/dist/redux/assessments/reducer.d.ts +9 -1
- package/dist/redux/assignment/reducer.d.ts +3 -1
- package/dist/redux/assistants/reducer.d.ts +3 -1
- package/dist/redux/badges/reducer.d.ts +3 -1
- package/dist/redux/bandScores/reducer.d.ts +3 -1
- package/dist/redux/certificate/reducer.d.ts +3 -1
- package/dist/redux/classes/reducer.d.ts +3 -1
- package/dist/redux/commons/action.d.ts +5 -0
- package/dist/redux/commons/reducer.d.ts +3 -1
- package/dist/redux/conferenceRubrics/reducer.d.ts +3 -1
- package/dist/redux/customAlert/reducer.d.ts +3 -1
- package/dist/redux/dashboard/reducer.d.ts +3 -1
- package/dist/redux/dataPlayer/reducer.d.ts +3 -1
- package/dist/redux/emailTemplates/reducer.d.ts +3 -1
- package/dist/redux/faqs/reducer.d.ts +3 -1
- package/dist/redux/feedback/reducer.d.ts +3 -1
- package/dist/redux/gallery/reducer.d.ts +3 -1
- package/dist/redux/goalExamples/reducer.d.ts +3 -1
- package/dist/redux/improveMyClass/reducer.d.ts +3 -1
- package/dist/redux/learningStrategies/reducer.d.ts +3 -1
- package/dist/redux/learningSupportCategories/reducer.d.ts +3 -1
- package/dist/redux/mailCategories/reducer.d.ts +3 -1
- package/dist/redux/navMobile/reducer.d.ts +3 -1
- package/dist/redux/notifications/reducer.d.ts +3 -1
- package/dist/redux/questionBanks/reducer.d.ts +3 -1
- package/dist/redux/questionByCategory/reducer.d.ts +3 -1
- package/dist/redux/questionCategory/reducer.d.ts +3 -1
- package/dist/redux/reflectionForms/reducer.d.ts +3 -1
- package/dist/redux/reflectionResults/reducer.d.ts +3 -1
- package/dist/redux/schoolBlankDays/reducer.d.ts +3 -1
- package/dist/redux/semester/reducer.d.ts +3 -1
- package/dist/redux/sessionPlayers/reducer.d.ts +3 -1
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +3 -1
- package/dist/redux/sessionTemplates/reducer.d.ts +3 -1
- package/dist/redux/skills/reducer.d.ts +3 -1
- package/dist/redux/subjects/reducer.d.ts +3 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +3 -1
- package/dist/redux/teacher/myStudent/reducer.d.ts +3 -1
- package/dist/redux/tutorialScreen/reducer.d.ts +9 -1
- package/dist/redux/users/reducer.d.ts +3 -1
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +16 -0
- package/dist/redux/widget/reducer.d.ts +3 -1
- package/dist/rootReducer.d.ts +59 -2
- package/dist/services/accountService.d.ts +21 -12
- package/dist/services/classService.d.ts +1 -1
- package/dist/services/csvImportService.d.ts +9 -0
- package/dist/services/csvService.d.ts +8 -0
- package/dist/services/emailTemplateService.d.ts +6 -5
- package/dist/services/fileServices.d.ts +13 -13
- package/dist/services/galleryService.d.ts +1 -1
- package/dist/services/mailCategoryService.d.ts +1 -1
- package/dist/services/notificationService.d.ts +7 -7
- package/dist/services/questionCategoryService.d.ts +3 -1
- package/dist/services/schoolService.d.ts +2 -0
- package/dist/services/skillService.d.ts +5 -5
- package/dist/services/suggestionCategoryService.d.ts +1 -1
- package/dist/services/userService.d.ts +37 -9
- package/dist/types/Filter.d.ts +6 -0
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Payload.d.ts +3 -0
- package/dist/types/user.d.ts +3 -0
- package/dist/utils/constants.d.ts +26 -2
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/package.json +93 -97
- package/dist/components/Alerts/ReactNotification.d.ts +0 -4
- package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -18
- package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -9
- package/dist/containers/Faq/views/FaqList.d.ts +0 -3
- package/dist/layouts/TheFooter.d.ts +0 -3
- package/dist/layouts/TheHeader.d.ts +0 -3
- package/dist/layouts/TheHeaderDropdown.d.ts +0 -3
- package/dist/layouts/TheLayout.d.ts +0 -3
- package/dist/layouts/TheSidebar.d.ts +0 -3
- package/dist/services/faqService.d.ts +0 -6
- /package/dist/containers/{Faq/components/FaqDetailModal.d.ts → User/components/SwitchTeacherModal.d.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ITeachers } from "../constants/types";
|
|
3
|
+
interface IProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: Function;
|
|
6
|
+
teachers: ITeachers[];
|
|
7
|
+
onConfirm: Function;
|
|
8
|
+
teacherSwitchUserId: string;
|
|
9
|
+
setTeacherSwitchUserId: Function;
|
|
10
|
+
}
|
|
11
|
+
declare const SwitchDataTeacherModel: FC<IProps>;
|
|
12
|
+
export default SwitchDataTeacherModel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { UserColumn, UserFilter } from "../constants/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
headers: UserColumn[];
|
|
5
|
+
filters: UserFilter;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
8
|
+
isStudentFilter?: boolean;
|
|
9
|
+
teacherOptions?: any[];
|
|
10
|
+
assistantOptions?: any[];
|
|
11
|
+
counselorOptions?: any[];
|
|
12
|
+
secondaryTeacherOptions?: any[];
|
|
13
|
+
}
|
|
14
|
+
declare const TableHeader: FC<Props>;
|
|
15
|
+
export default TableHeader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
htmlFor: string;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
text: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
onClick: Function;
|
|
8
|
+
isClassReflection?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const UploadCSVButton: FC<Props>;
|
|
11
|
+
export default UploadCSVButton;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
declare const changePasswordSchema: yup.ObjectSchema<{
|
|
3
|
+
oldPassword: string;
|
|
4
|
+
newPassword: string;
|
|
5
|
+
confirmedNewPassword: string;
|
|
6
|
+
}, yup.AnyObject, {
|
|
7
|
+
oldPassword: undefined;
|
|
8
|
+
newPassword: undefined;
|
|
9
|
+
confirmedNewPassword: undefined;
|
|
10
|
+
}, "">;
|
|
10
11
|
export default changePasswordSchema;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as yup from "yup";
|
|
2
|
-
declare const userSchema:
|
|
3
|
-
firstName:
|
|
4
|
-
lastName:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
roles: yup.ArraySchema<yup.StringSchema<string | undefined, Record<string, any>, string | undefined>, Record<string, any>, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
14
|
-
}>>;
|
|
2
|
+
declare const userSchema: yup.ObjectSchema<{
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
roles: (string | undefined)[] | undefined;
|
|
7
|
+
}, yup.AnyObject, {
|
|
8
|
+
firstName: undefined;
|
|
9
|
+
lastName: undefined;
|
|
10
|
+
email: undefined;
|
|
11
|
+
roles: "";
|
|
12
|
+
}, "">;
|
|
15
13
|
export default userSchema;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IOptions, IStaffAssign, StudentFilter, USER_CHOICE, UserColumn, UserFilter, UserOrder } from "./types";
|
|
2
|
+
export declare const userOrders: {
|
|
3
|
+
0: string;
|
|
4
|
+
1: string;
|
|
5
|
+
2: string;
|
|
6
|
+
3: string;
|
|
7
|
+
4: string;
|
|
8
|
+
5: string;
|
|
9
|
+
6: string;
|
|
10
|
+
7: string;
|
|
11
|
+
8: string;
|
|
12
|
+
9: string;
|
|
13
|
+
10: string;
|
|
14
|
+
11: string;
|
|
15
|
+
12: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const UserColumns: UserColumn[];
|
|
18
|
+
export declare const DEFAULT_PAGE_SIZE: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: number;
|
|
21
|
+
};
|
|
22
|
+
export declare const DEFAULT_FILTER: UserFilter;
|
|
23
|
+
export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
24
|
+
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
25
|
+
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
26
|
+
export declare const initialStaffBulk: IStaffAssign;
|
|
27
|
+
export declare const initAssignStd: {
|
|
28
|
+
studentId: number;
|
|
29
|
+
id: string;
|
|
30
|
+
email: string;
|
|
31
|
+
fullName: string;
|
|
32
|
+
gradeLevel: string;
|
|
33
|
+
phoneNumber: string;
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
dateOfBirth: string;
|
|
36
|
+
profileImageFileName: string;
|
|
37
|
+
quote: string;
|
|
38
|
+
assistantName: string;
|
|
39
|
+
assistantEmail: string;
|
|
40
|
+
assistantUserId: string;
|
|
41
|
+
counselors: never[];
|
|
42
|
+
secondaryTeacherName: string;
|
|
43
|
+
secondaryTeacherEmail: string;
|
|
44
|
+
secondaryTeacherUserId: string;
|
|
45
|
+
teachers: never[];
|
|
46
|
+
};
|
|
47
|
+
export declare const GRADE_DEFAULT: {
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
}[];
|
|
51
|
+
export declare const GRADE: string[];
|
|
52
|
+
export declare const gradeOptions: IOptions[];
|
|
53
|
+
export declare const initStaffDeleteBulk: {
|
|
54
|
+
assistantRemoveUserId: never[];
|
|
55
|
+
counselorRemoveUserIds: never[];
|
|
56
|
+
teacherRemoveUserIds: never[];
|
|
57
|
+
teacherSwitchDataUserId: string;
|
|
58
|
+
assistantSwitchDataUserId: string;
|
|
59
|
+
counselorSwitchDataUserId: string;
|
|
60
|
+
supportTeacherRemoveUserIds: never[];
|
|
61
|
+
supportTeacherSwitchDataUserId: string;
|
|
62
|
+
};
|
|
63
|
+
export declare const initialUserChoice: USER_CHOICE;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
export declare type User = {
|
|
2
|
+
id: string;
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
firstInitial: string;
|
|
6
|
+
email: string;
|
|
7
|
+
phoneNumber: string;
|
|
8
|
+
roles: string[];
|
|
9
|
+
dateOfBirth: string;
|
|
10
|
+
createTime: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
profileImageFileName: string;
|
|
13
|
+
fullName: string;
|
|
14
|
+
sourcedId: string;
|
|
15
|
+
rosterUser: RosterUser;
|
|
16
|
+
grade: string;
|
|
17
|
+
teachers: string;
|
|
18
|
+
assistants: string;
|
|
19
|
+
counselors: string;
|
|
20
|
+
eduTeachers: string;
|
|
21
|
+
supportTeachers: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type RosterUser = {
|
|
24
|
+
sourcedId: string;
|
|
25
|
+
username: string;
|
|
26
|
+
status: string;
|
|
27
|
+
givenName: string;
|
|
28
|
+
middleName: string;
|
|
29
|
+
familyName: string;
|
|
30
|
+
email: string;
|
|
31
|
+
grades: string;
|
|
32
|
+
role: string;
|
|
33
|
+
};
|
|
34
|
+
export declare type Option = {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
export declare type UserFilter = {
|
|
39
|
+
currentPage?: number;
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
searchString?: string;
|
|
42
|
+
isDescending?: boolean;
|
|
43
|
+
sortBy?: UserOrder;
|
|
44
|
+
searchBy?: SearchBy;
|
|
45
|
+
searchByStrings?: string[];
|
|
46
|
+
isStudent?: string[];
|
|
47
|
+
};
|
|
48
|
+
export declare type StudentFilter = {
|
|
49
|
+
currentPage?: number;
|
|
50
|
+
pageSize?: number;
|
|
51
|
+
searchString?: string;
|
|
52
|
+
isAssigned?: boolean;
|
|
53
|
+
sortBy?: UserOrder;
|
|
54
|
+
orderBy?: string;
|
|
55
|
+
};
|
|
56
|
+
export declare type UserFilterField = {
|
|
57
|
+
currentPage?: number;
|
|
58
|
+
pageSize?: number;
|
|
59
|
+
searchString?: string;
|
|
60
|
+
isDescending?: boolean;
|
|
61
|
+
searchBy?: SearchBy;
|
|
62
|
+
searchStringBy?: string;
|
|
63
|
+
isStudentFilter?: boolean;
|
|
64
|
+
byStudent?: boolean;
|
|
65
|
+
};
|
|
66
|
+
export declare type UserColumn = {
|
|
67
|
+
isCenter?: boolean;
|
|
68
|
+
name: string;
|
|
69
|
+
sortBy?: UserOrder;
|
|
70
|
+
className?: string;
|
|
71
|
+
searchBy?: SearchBy;
|
|
72
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
73
|
+
options?: FilterOption[];
|
|
74
|
+
onSelectAll?: Function;
|
|
75
|
+
isCheckAll?: boolean;
|
|
76
|
+
};
|
|
77
|
+
export declare type StudentAssign = {
|
|
78
|
+
studentId: number;
|
|
79
|
+
id: string;
|
|
80
|
+
email: string;
|
|
81
|
+
fullName: string;
|
|
82
|
+
gradeLevel: string;
|
|
83
|
+
phoneNumber: string;
|
|
84
|
+
isActive?: boolean;
|
|
85
|
+
dateOfBirth?: string;
|
|
86
|
+
profileImageFileName: string;
|
|
87
|
+
quote: string;
|
|
88
|
+
assistantName: string;
|
|
89
|
+
assistantEmail: string;
|
|
90
|
+
assistantUserId: string;
|
|
91
|
+
counselors: Array<ICounselor>;
|
|
92
|
+
secondaryTeacherName: string;
|
|
93
|
+
secondaryTeacherEmail: string;
|
|
94
|
+
secondaryTeacherUserId: string;
|
|
95
|
+
teachers: Array<ITeachers>;
|
|
96
|
+
};
|
|
97
|
+
export interface ITeachers {
|
|
98
|
+
teacherUserId: string;
|
|
99
|
+
mainTeacherName: string;
|
|
100
|
+
mainTeacherEmail: string;
|
|
101
|
+
mainTeacherId?: number;
|
|
102
|
+
}
|
|
103
|
+
export interface ICounselor {
|
|
104
|
+
counselorUserId: string;
|
|
105
|
+
counselorName: string;
|
|
106
|
+
counselorEmail: string;
|
|
107
|
+
studentId?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface IStaffAssign {
|
|
110
|
+
teacher: {
|
|
111
|
+
id: string;
|
|
112
|
+
email: string;
|
|
113
|
+
}[];
|
|
114
|
+
assistantId: string;
|
|
115
|
+
assistantEmail: string;
|
|
116
|
+
counselors: {
|
|
117
|
+
id: string;
|
|
118
|
+
email: string;
|
|
119
|
+
}[];
|
|
120
|
+
secondaryTeacherId: string;
|
|
121
|
+
secondaryTeacherEmail: string;
|
|
122
|
+
gradeLevel?: string;
|
|
123
|
+
}
|
|
124
|
+
export declare type Counselor = {
|
|
125
|
+
id: string;
|
|
126
|
+
counselorId: number;
|
|
127
|
+
firstName: string;
|
|
128
|
+
lastName: string;
|
|
129
|
+
fullName: string;
|
|
130
|
+
email: string;
|
|
131
|
+
};
|
|
132
|
+
export declare type Assistant = {
|
|
133
|
+
id: string;
|
|
134
|
+
assistantId: number;
|
|
135
|
+
firstName: string;
|
|
136
|
+
lastName: string;
|
|
137
|
+
fullName: string;
|
|
138
|
+
email: string;
|
|
139
|
+
};
|
|
140
|
+
export declare type SecondaryTeacher = {
|
|
141
|
+
id: string;
|
|
142
|
+
secondaryTeacherId: number;
|
|
143
|
+
firstName: string;
|
|
144
|
+
lastName: string;
|
|
145
|
+
fullName: string;
|
|
146
|
+
email: string;
|
|
147
|
+
};
|
|
148
|
+
export declare type Teacher = {
|
|
149
|
+
id: string;
|
|
150
|
+
email: string;
|
|
151
|
+
};
|
|
152
|
+
export interface IOptions {
|
|
153
|
+
label: string;
|
|
154
|
+
value: string;
|
|
155
|
+
}
|
|
156
|
+
export declare type AssignStudentDto = {
|
|
157
|
+
id: string;
|
|
158
|
+
mainTeacherUserId?: Array<string>;
|
|
159
|
+
mainTeacherEmail?: Array<string>;
|
|
160
|
+
assistantUserId?: string;
|
|
161
|
+
assistantEmail?: string;
|
|
162
|
+
counselorUserIds?: Array<string>;
|
|
163
|
+
counselorEmails?: Array<string>;
|
|
164
|
+
secondaryTeacherUserId?: string;
|
|
165
|
+
secondaryTeacherEmail?: string;
|
|
166
|
+
removeTeacherUserIds?: string[];
|
|
167
|
+
teacherSwitchUserId?: string;
|
|
168
|
+
};
|
|
169
|
+
export declare type FilterOption = {
|
|
170
|
+
label: string;
|
|
171
|
+
value: string;
|
|
172
|
+
};
|
|
173
|
+
export declare enum UserOrder {
|
|
174
|
+
Id = 0,
|
|
175
|
+
Name = 1,
|
|
176
|
+
Email = 2,
|
|
177
|
+
Age = 3,
|
|
178
|
+
Role = 4,
|
|
179
|
+
Status = 5,
|
|
180
|
+
CreatedAt = 6,
|
|
181
|
+
RosterUser = 7,
|
|
182
|
+
Grade = 8,
|
|
183
|
+
Teacher = 9,
|
|
184
|
+
Assistant = 10,
|
|
185
|
+
Counselor = 11,
|
|
186
|
+
SecondaryTeacher = 12
|
|
187
|
+
}
|
|
188
|
+
export declare enum SearchBy {
|
|
189
|
+
Id = 0,
|
|
190
|
+
Name = 1,
|
|
191
|
+
Email = 2,
|
|
192
|
+
Role = 3,
|
|
193
|
+
RosterUser = 4,
|
|
194
|
+
Status = 5,
|
|
195
|
+
Grade = 6,
|
|
196
|
+
Teacher = 7,
|
|
197
|
+
Assistant = 8,
|
|
198
|
+
Counselor = 9,
|
|
199
|
+
SecondaryTeacher = 10
|
|
200
|
+
}
|
|
201
|
+
export declare enum TeacherType {
|
|
202
|
+
Teacher = 0,
|
|
203
|
+
Assistant = 1,
|
|
204
|
+
Counselor = 2,
|
|
205
|
+
SecondaryTeacher = 3
|
|
206
|
+
}
|
|
207
|
+
export declare type SwitchTeacherGroup = {
|
|
208
|
+
studentId: number;
|
|
209
|
+
teacher: string;
|
|
210
|
+
teacherChange: string;
|
|
211
|
+
};
|
|
212
|
+
export declare type SwitchAssistantGroup = {
|
|
213
|
+
studentId: number;
|
|
214
|
+
assistantUserId: string;
|
|
215
|
+
};
|
|
216
|
+
export interface IDeleteBulkModel {
|
|
217
|
+
open: boolean;
|
|
218
|
+
onClose: () => void;
|
|
219
|
+
teachers: Option[];
|
|
220
|
+
onChangeStaffRemove: Function;
|
|
221
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
222
|
+
counselors: Option[];
|
|
223
|
+
assistants: Option[];
|
|
224
|
+
secondaryTeachers: Option[];
|
|
225
|
+
onRemoveBulkStaff: Function;
|
|
226
|
+
studentUserIds?: string[];
|
|
227
|
+
}
|
|
228
|
+
export interface IRemoveTeacher {
|
|
229
|
+
teachers: Option[];
|
|
230
|
+
onChangeStaffRemove: Function;
|
|
231
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
232
|
+
}
|
|
233
|
+
export interface IRemoveAssistant {
|
|
234
|
+
assistants: Option[];
|
|
235
|
+
onChangeStaffRemove: Function;
|
|
236
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
237
|
+
}
|
|
238
|
+
export interface IRemoveCounselor {
|
|
239
|
+
counselors: Option[];
|
|
240
|
+
onChangeStaffRemove: Function;
|
|
241
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
242
|
+
}
|
|
243
|
+
export interface IRemoveSupportTeacher {
|
|
244
|
+
secondaryTeachers: Option[];
|
|
245
|
+
onChangeStaffRemove: Function;
|
|
246
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
247
|
+
}
|
|
248
|
+
export interface ISwitchStaffUser {
|
|
249
|
+
teacherRemoveUserIds: string[];
|
|
250
|
+
teacherSwitchDataUserId: string;
|
|
251
|
+
assistantRemoveUserId: string[];
|
|
252
|
+
assistantSwitchDataUserId: string;
|
|
253
|
+
counselorRemoveUserIds: string[];
|
|
254
|
+
counselorSwitchDataUserId: string;
|
|
255
|
+
supportTeacherRemoveUserIds: string[];
|
|
256
|
+
supportTeacherSwitchDataUserId: string;
|
|
257
|
+
}
|
|
258
|
+
export declare type USER_CHOICE = {
|
|
259
|
+
id: string;
|
|
260
|
+
firstName: string;
|
|
261
|
+
lastName: string;
|
|
262
|
+
email: string;
|
|
263
|
+
fullName: string;
|
|
264
|
+
roles: string[];
|
|
265
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IStaffAssign, ISwitchStaffUser, StudentAssign, TeacherType } from "../constants/types";
|
|
3
|
+
declare const useAssignStudent: (teacherSelected?: any, assistantSelected?: Record<string, any> | undefined, counselorSelected?: Record<string, any> | undefined, secondaryTeacherSelected?: Record<string, any> | undefined, callback?: Function | undefined, selectedUser?: StudentAssign | undefined, getDataUserList?: any, userSelected?: StudentAssign[] | undefined) => {
|
|
4
|
+
handleAssignSingleStudent: (id: string) => void;
|
|
5
|
+
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
6
|
+
openModelBulk: boolean;
|
|
7
|
+
handleToggleModel: (listUserIds?: string[] | undefined) => void;
|
|
8
|
+
handleChangeStaffBulk: (name: string, value: any) => void;
|
|
9
|
+
staffBulkAssign: IStaffAssign;
|
|
10
|
+
onAssignStaffToStudents: (listUserIds: string[]) => Promise<void>;
|
|
11
|
+
handleToggleInactiveModal: (listUserIds?: string[] | undefined) => void;
|
|
12
|
+
openInactiveModal: boolean;
|
|
13
|
+
handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
|
|
14
|
+
handleChangeTeacherBulk: (value: any[]) => void;
|
|
15
|
+
handleEditAssignForStudents: (teacherUserId?: string | undefined) => Promise<void>;
|
|
16
|
+
handleToggleSwitchModel: (listUser: StudentAssign[], modal: TeacherType, options: any[]) => void;
|
|
17
|
+
openSwitchModal: boolean;
|
|
18
|
+
optionsSwitch: any[];
|
|
19
|
+
modalType: TeacherType;
|
|
20
|
+
textModal: any;
|
|
21
|
+
teacherSwitchList: any[];
|
|
22
|
+
onCloseSwitchModal: () => void;
|
|
23
|
+
handleUpdateSwitch: () => void;
|
|
24
|
+
setTeacherChangeUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
25
|
+
setTeacherSelectForChangeUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
26
|
+
teacherSelectForChangeUserId: string;
|
|
27
|
+
openDetailModal: boolean;
|
|
28
|
+
setOpenDetailModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
29
|
+
toggleCollapse: (index: number) => void;
|
|
30
|
+
activeIndex: number;
|
|
31
|
+
handleChangeCounselorBulk: (value: any[]) => void;
|
|
32
|
+
onClose: () => void;
|
|
33
|
+
removeTeacherUserIds: string[];
|
|
34
|
+
onSelectRemoveTeacher: (userId: string) => void;
|
|
35
|
+
openModelSwitchDataTeacher: boolean;
|
|
36
|
+
onToggleModelSwitchDataTeacher: () => void;
|
|
37
|
+
teacherSwitchUserId: string;
|
|
38
|
+
setTeacherSwitchUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
39
|
+
onToggleModelDeleteBulk: (listUserIds?: string[] | undefined) => void;
|
|
40
|
+
openModelDeleteBulk: boolean;
|
|
41
|
+
handelChangeStaffRemove: (updatedFilters: any) => void;
|
|
42
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
43
|
+
handleRemoveBulkStaff: (studentUserIds: string[]) => Promise<void>;
|
|
44
|
+
};
|
|
45
|
+
export default useAssignStudent;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StudentAssign, StudentFilter, UserOrder } from "../constants/types";
|
|
3
|
+
declare const useAssignStudentList: () => {
|
|
4
|
+
handelSort: (sortBy: UserOrder) => void;
|
|
5
|
+
handleRetrievedData: () => void;
|
|
6
|
+
totalItem: number;
|
|
7
|
+
userList: StudentAssign[];
|
|
8
|
+
filters: StudentFilter;
|
|
9
|
+
changeFilters: (updatedFilters: any) => void;
|
|
10
|
+
handleSelectAll: () => void;
|
|
11
|
+
handleClickCheck: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
isCheckAll: boolean;
|
|
13
|
+
isCheck: any;
|
|
14
|
+
fullName: string;
|
|
15
|
+
selectedUser: StudentAssign;
|
|
16
|
+
setSelectedUser: import("react").Dispatch<import("react").SetStateAction<StudentAssign>>;
|
|
17
|
+
userSelected: StudentAssign[];
|
|
18
|
+
getDataUserList: () => Promise<void>;
|
|
19
|
+
studentTeacherSelected: {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
studentCounselorSelected: {
|
|
24
|
+
value: string;
|
|
25
|
+
label: string;
|
|
26
|
+
}[];
|
|
27
|
+
studentAssistantSelected: {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
studentSecondaryTeacherSelected: {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
export default useAssignStudentList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useAssistantList: () => {
|
|
4
|
+
selectedAssistants: object | undefined;
|
|
5
|
+
assistantOptions: IOptions[];
|
|
6
|
+
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
|
+
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useAssistantList;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare enum CSVType {
|
|
3
|
+
Students = "students",
|
|
4
|
+
Subjects = "subjects",
|
|
5
|
+
Grades = "grades",
|
|
6
|
+
Attendances = "attendances",
|
|
7
|
+
ClassReflection = "classReflection",
|
|
8
|
+
Others = "others",
|
|
9
|
+
AllUser = "allUser"
|
|
10
|
+
}
|
|
11
|
+
export interface Option {
|
|
12
|
+
label: string;
|
|
13
|
+
value: number;
|
|
14
|
+
}
|
|
15
|
+
declare const useCSVImport: () => {
|
|
16
|
+
isLoading: any;
|
|
17
|
+
id: string;
|
|
18
|
+
setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
|
|
19
|
+
upload: (file: any) => Promise<void>;
|
|
20
|
+
initImportReflection: any;
|
|
21
|
+
setInitImportReflection: import("react").Dispatch<any>;
|
|
22
|
+
onConfirm: (values: any) => Promise<void>;
|
|
23
|
+
CSVType: typeof CSVType;
|
|
24
|
+
dataFile: any;
|
|
25
|
+
setDataFile: import("react").Dispatch<any>;
|
|
26
|
+
setArrStudent: import("react").Dispatch<any>;
|
|
27
|
+
arrStudent: any;
|
|
28
|
+
isCheckDomainIBS: boolean;
|
|
29
|
+
onChangeTeacher: (teacher: Option) => void;
|
|
30
|
+
uploadByTeacherId: (file: any) => Promise<void>;
|
|
31
|
+
setDataFileImportStudent: (dataFile: any) => void;
|
|
32
|
+
onUpLoadStudentFile: () => void;
|
|
33
|
+
defaultTeacher: number;
|
|
34
|
+
fileName: string;
|
|
35
|
+
onStudentSubmit: () => void;
|
|
36
|
+
downloadTemplateUser: () => Promise<void>;
|
|
37
|
+
};
|
|
38
|
+
export default useCSVImport;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare enum CSVType {
|
|
3
|
+
Students = "students",
|
|
4
|
+
Subjects = "subjects",
|
|
5
|
+
Grades = "grades",
|
|
6
|
+
Attendances = "attendances",
|
|
7
|
+
ClassReflection = "classReflection",
|
|
8
|
+
Others = "others",
|
|
9
|
+
AllUser = "allUser"
|
|
10
|
+
}
|
|
11
|
+
interface CSVImportButton {
|
|
12
|
+
text: string;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
type: CSVType;
|
|
15
|
+
}
|
|
16
|
+
export interface Option {
|
|
17
|
+
label: string;
|
|
18
|
+
value: number;
|
|
19
|
+
}
|
|
20
|
+
declare const useCSVImportTab: () => {
|
|
21
|
+
isLoading: any;
|
|
22
|
+
buttons: CSVImportButton[];
|
|
23
|
+
id: string;
|
|
24
|
+
setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
|
|
25
|
+
upload: (file: any) => Promise<void>;
|
|
26
|
+
initImportReflection: any;
|
|
27
|
+
setInitImportReflection: import("react").Dispatch<any>;
|
|
28
|
+
onConfirm: (values: any) => Promise<void>;
|
|
29
|
+
CSVType: typeof CSVType;
|
|
30
|
+
dataFile: any;
|
|
31
|
+
setDataFile: import("react").Dispatch<any>;
|
|
32
|
+
setArrStudent: import("react").Dispatch<any>;
|
|
33
|
+
arrStudent: any;
|
|
34
|
+
isCheckDomainIBS: boolean;
|
|
35
|
+
onChangeTeacher: (teacher: Option) => void;
|
|
36
|
+
uploadByTeacherId: (file: any) => Promise<void>;
|
|
37
|
+
setDataFileImportStudent: (dataFile: any) => void;
|
|
38
|
+
onUpLoadStudentFile: () => void;
|
|
39
|
+
defaultTeacher: number;
|
|
40
|
+
fileName: string;
|
|
41
|
+
onStudentSubmit: () => void;
|
|
42
|
+
downloadTemplateUser: () => Promise<void>;
|
|
43
|
+
errorsValidate: string[];
|
|
44
|
+
setErrorsValidate: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
45
|
+
};
|
|
46
|
+
export default useCSVImportTab;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useCounselorList: () => {
|
|
4
|
+
selectedCounselors: object | undefined;
|
|
5
|
+
counselorOptions: IOptions[];
|
|
6
|
+
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
|
+
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useCounselorList;
|