mario-core 3.0.8-admin → 3.0.8-es
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/Dashboard-DiUm-pc-.js +186 -0
- package/dist/Dashboard-HV1eiElu.cjs +1 -0
- package/dist/EmailTemplateDetail-D0D3bpWO.cjs +1 -0
- package/dist/EmailTemplateDetail-KvZuTCLF.js +411 -0
- package/dist/EmailTemplateList-B3YqSFaY.js +172 -0
- package/dist/EmailTemplateList-BAejgUUG.cjs +1 -0
- package/dist/FaqList-D5XugT5h.js +320 -0
- package/dist/FaqList-DpUzQ2vq.cjs +1 -0
- package/dist/GalleryList-B5QA3Rol.cjs +1 -0
- package/dist/GalleryList-CTo33BcT.js +53 -0
- package/dist/Login-CHAmP5ek.js +897 -0
- package/dist/Login-Cxbto5eM.cjs +1 -0
- package/dist/NotificationList-2Mf_NsOP.js +3631 -0
- package/dist/NotificationList-D1jMOBwH.cjs +8 -0
- package/dist/SchoolList-CClJ_UPT.cjs +1 -0
- package/dist/SchoolList-JmrmL2zE.js +5 -0
- package/dist/SkillList-BMyhRY78.js +406 -0
- package/dist/SkillList-DlMx_Evw.cjs +1 -0
- package/dist/TeacherSelector-B4zvSVhk.js +71 -0
- package/dist/TeacherSelector-DORi8RIb.cjs +1 -0
- package/dist/TheContent-BHmlooLu.cjs +1 -0
- package/dist/TheContent-V2T-Pqz8.js +38 -0
- package/dist/UserContainer-B-4oVOEp.cjs +1 -0
- package/dist/UserContainer-BaHMryYI.js +2337 -0
- package/dist/UserDetail-B-Mq_itT.cjs +1 -0
- package/dist/UserDetail-BBRiU97G.js +665 -0
- package/dist/assets/Images.d.ts +14 -14
- package/dist/components/Alerts/CommonAlert.d.ts +3 -3
- package/dist/components/Alerts/EmptyDataAlert.d.ts +8 -8
- package/dist/components/Alerts/ErrorHandler.d.ts +6 -6
- package/dist/components/Buttons/AddButton.d.ts +8 -7
- package/dist/components/Buttons/AddButtonIcon.d.ts +6 -6
- package/dist/components/Buttons/CloseButton.d.ts +8 -8
- package/dist/components/Buttons/DeleteButtonIcon.d.ts +6 -6
- package/dist/components/Buttons/DetailActionButtons.d.ts +9 -8
- package/dist/components/Buttons/EditButtonIcon.d.ts +6 -6
- package/dist/components/Buttons/LinkEditButton.d.ts +8 -7
- package/dist/components/Buttons/LoginNavButton.d.ts +8 -8
- package/dist/components/Buttons/ToggleButton.d.ts +10 -10
- package/dist/components/Buttons/UploadFileButton.d.ts +13 -13
- package/dist/components/Headers/CommonHeader.d.ts +7 -7
- package/dist/components/Image/UploadImage.d.ts +2 -3
- package/dist/components/Inputs/FileInput.d.ts +8 -8
- package/dist/components/Inputs/PasswordInput.d.ts +8 -8
- package/dist/components/Inputs/SearchBox.d.ts +10 -10
- package/dist/components/Inputs/SearchBoxContainer.d.ts +9 -10
- package/dist/components/Labels/RequiredLabel.d.ts +6 -6
- package/dist/components/Loading/Loading.d.ts +3 -3
- package/dist/components/Modals/CommonModal.d.ts +2 -3
- package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -0
- package/dist/components/Modals/NotificationModal.d.ts +2 -3
- package/dist/components/Others/QuitPrompt.d.ts +5 -2
- package/dist/components/Pagination/CustomPagination.d.ts +2 -3
- package/dist/components/Scroll/ScrollToTop.d.ts +3 -3
- package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -3
- package/dist/components/Selectors/CreatableSelector.d.ts +2 -3
- package/dist/components/Selectors/CustomSelector.d.ts +2 -3
- package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -3
- package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -3
- package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -3
- package/dist/components/Selectors/StarRatingSelector.d.ts +2 -3
- package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -3
- package/dist/components/Tabs/CustomTab.d.ts +2 -3
- package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
- package/dist/configs/editorConfig.d.ts +7 -7
- package/dist/containers/Commons/NotFound.d.ts +3 -3
- package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -3
- package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +8 -7
- package/dist/containers/EmailTemplate/components/MailParam.d.ts +8 -7
- package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +13 -13
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +27 -28
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +11 -11
- package/dist/containers/EmailTemplate/views/EmailTemplateDetail.d.ts +3 -3
- package/dist/containers/EmailTemplate/views/EmailTemplateList.d.ts +3 -3
- package/dist/containers/Faq/components/FaqDetailModal.d.ts +2 -3
- package/dist/containers/Faq/hooks/useFaqDetail.d.ts +17 -18
- package/dist/containers/Faq/hooks/useFaqList.d.ts +9 -9
- package/dist/containers/Faq/views/FaqList.d.ts +3 -3
- package/dist/containers/Gallery/components/ActionModal.d.ts +2 -3
- package/dist/containers/Gallery/components/Filter.d.ts +9 -8
- package/dist/containers/Gallery/components/Media.d.ts +9 -8
- package/dist/containers/Gallery/components/MediaDetail.d.ts +7 -7
- package/dist/containers/Gallery/components/MediaList.d.ts +7 -7
- package/dist/containers/Gallery/components/MediaNav.d.ts +19 -18
- package/dist/containers/Gallery/constants/gallery.types.d.ts +21 -21
- package/dist/containers/Gallery/extensions/helpers.d.ts +4 -4
- package/dist/containers/Gallery/hooks/useGalleryList.d.ts +30 -31
- package/dist/containers/Gallery/views/GalleryList.d.ts +6 -6
- package/dist/containers/Login/components/GoogleLoginButton.d.ts +10 -0
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +27 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +20 -21
- package/dist/containers/Login/hooks/useLogin.d.ts +26 -23
- package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -4
- package/dist/containers/Login/views/Dashboard.d.ts +3 -3
- package/dist/containers/Login/views/Login.d.ts +8 -9
- package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +6 -3
- package/dist/containers/Login/views/block/BlockLogin.d.ts +9 -7
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -3
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +11 -12
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -3
- package/dist/containers/Login/views/block/CloseBlock.d.ts +6 -6
- package/dist/containers/Login/views/block/ContentHomePage.d.ts +5 -5
- package/dist/containers/Login/views/block/IconContent.d.ts +7 -7
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -3
- package/dist/containers/Notifications/components/NotificationButton.d.ts +5 -5
- package/dist/containers/Notifications/components/NotificationStatusSelector.d.ts +6 -7
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +17 -17
- package/dist/containers/Notifications/hooks/useUnreadNotification.d.ts +4 -4
- package/dist/containers/Notifications/views/NotificationList.d.ts +2 -3
- package/dist/containers/Skill/components/SkillDetailModal.d.ts +2 -3
- package/dist/containers/Skill/components/SkillSelector.d.ts +2 -3
- package/dist/containers/Skill/hooks/useSkillDetail.d.ts +19 -20
- package/dist/containers/Skill/hooks/useSkillList.d.ts +10 -9
- package/dist/containers/Skill/views/SkillList.d.ts +3 -3
- package/dist/containers/User/components/AssignStudentModal.d.ts +19 -0
- package/dist/containers/User/components/DeleteBulkModel.d.ts +3 -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 +3 -0
- package/dist/containers/User/components/RemoveCounselor.d.ts +3 -0
- package/dist/containers/User/components/RemoveTeacher.d.ts +3 -0
- package/dist/containers/User/components/TableHeader.d.ts +14 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +2 -0
- package/dist/containers/User/configs/changePasswordSchema.d.ts +11 -10
- package/dist/containers/User/configs/constants.d.ts +62 -0
- package/dist/containers/User/configs/type.d.ts +210 -0
- package/dist/containers/User/configs/userSchema.d.ts +15 -15
- package/dist/containers/User/hooks/useAssignStudent.d.ts +33 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +33 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +9 -0
- package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +9 -0
- package/dist/containers/User/hooks/useFilterPopover.d.ts +36 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +19 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +9 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +31 -24
- package/dist/containers/User/hooks/useUserList.d.ts +14 -11
- package/dist/containers/User/hooks/userFilters.d.ts +7 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +2 -0
- package/dist/containers/User/views/UserContainer.d.ts +2 -0
- package/dist/containers/User/views/UserDetail.d.ts +2 -3
- package/dist/containers/User/views/UserList.d.ts +2 -3
- package/dist/hooks/useClassFontSize.d.ts +4 -0
- package/dist/hooks/useFilters.d.ts +7 -8
- package/dist/i18n.d.ts +2 -2
- package/dist/index-C95SWLrn.js +18163 -0
- package/dist/index-DixwqZ17.cjs +29 -0
- package/dist/index.d.ts +111 -110
- package/dist/index.esm-BckW25l9.cjs +1 -0
- package/dist/index.esm-hqKUWCW0.js +15 -0
- package/dist/index.js +1 -10373
- package/dist/index.modern.js +159 -10213
- package/dist/layouts/TheContent.d.ts +3 -3
- package/dist/mailCategoryService-BqDtPJRc.js +10 -0
- package/dist/mailCategoryService-DBMJOyls.cjs +1 -0
- package/dist/mario-core.css +5 -0
- package/dist/redux/assessments/action.d.ts +1 -1
- package/dist/redux/assessments/reducer.d.ts +10 -5
- package/dist/redux/assignment/action.d.ts +1 -1
- package/dist/redux/assignment/reducer.d.ts +4 -2
- package/dist/redux/assistants/action.d.ts +1 -1
- package/dist/redux/assistants/reducer.d.ts +4 -2
- package/dist/redux/badges/action.d.ts +1 -1
- package/dist/redux/badges/reducer.d.ts +4 -2
- package/dist/redux/bandScores/action.d.ts +1 -1
- package/dist/redux/bandScores/reducer.d.ts +4 -2
- package/dist/redux/certificate/action.d.ts +1 -1
- package/dist/redux/certificate/reducer.d.ts +4 -2
- package/dist/redux/classes/action.d.ts +1 -1
- package/dist/redux/classes/reducer.d.ts +4 -2
- package/dist/redux/commons/action.d.ts +18 -18
- package/dist/redux/commons/reducer.d.ts +4 -2
- package/dist/redux/conferenceRubrics/action.d.ts +1 -1
- package/dist/redux/conferenceRubrics/reducer.d.ts +4 -2
- package/dist/redux/customAlert/action.d.ts +1 -1
- package/dist/redux/customAlert/reducer.d.ts +4 -2
- package/dist/redux/dashboard/action.d.ts +5 -5
- package/dist/redux/dashboard/reducer.d.ts +4 -2
- package/dist/redux/dataPlayer/action.d.ts +2 -2
- package/dist/redux/dataPlayer/reducer.d.ts +4 -2
- package/dist/redux/emailTemplates/action.d.ts +1 -1
- package/dist/redux/emailTemplates/reducer.d.ts +4 -2
- package/dist/redux/faqs/action.d.ts +1 -1
- package/dist/redux/faqs/reducer.d.ts +4 -2
- package/dist/redux/feedback/action.d.ts +1 -1
- package/dist/redux/feedback/reducer.d.ts +4 -2
- package/dist/redux/gallery/action.d.ts +2 -2
- package/dist/redux/gallery/reducer.d.ts +4 -2
- package/dist/redux/goalExamples/action.d.ts +1 -1
- package/dist/redux/goalExamples/reducer.d.ts +4 -2
- package/dist/redux/improveMyClass/action.d.ts +1 -1
- package/dist/redux/improveMyClass/reducer.d.ts +4 -2
- package/dist/redux/learningStrategies/action.d.ts +1 -1
- package/dist/redux/learningStrategies/reducer.d.ts +4 -2
- package/dist/redux/learningSupportCategories/action.d.ts +1 -1
- package/dist/redux/learningSupportCategories/reducer.d.ts +4 -2
- package/dist/redux/mailCategories/action.d.ts +1 -1
- package/dist/redux/mailCategories/reducer.d.ts +4 -2
- package/dist/redux/navMobile/action.d.ts +1 -1
- package/dist/redux/navMobile/reducer.d.ts +4 -2
- package/dist/redux/notifications/action.d.ts +3 -3
- package/dist/redux/notifications/reducer.d.ts +4 -2
- package/dist/redux/questionBanks/action.d.ts +1 -1
- package/dist/redux/questionBanks/reducer.d.ts +4 -2
- package/dist/redux/questionByCategory/action.d.ts +8 -8
- package/dist/redux/questionByCategory/reducer.d.ts +4 -2
- package/dist/redux/questionCategory/action.d.ts +1 -1
- package/dist/redux/questionCategory/reducer.d.ts +4 -2
- package/dist/redux/reflectionForms/action.d.ts +1 -1
- package/dist/redux/reflectionForms/reducer.d.ts +4 -2
- package/dist/redux/reflectionResults/action.d.ts +1 -1
- package/dist/redux/reflectionResults/reducer.d.ts +4 -2
- package/dist/redux/schoolBlankDays/action.d.ts +1 -1
- package/dist/redux/schoolBlankDays/reducer.d.ts +4 -2
- package/dist/redux/semester/action.d.ts +1 -1
- package/dist/redux/semester/reducer.d.ts +4 -2
- package/dist/redux/sessionPlayers/action.d.ts +5 -5
- package/dist/redux/sessionPlayers/reducer.d.ts +4 -2
- package/dist/redux/sessionTemplateGeneralClasses/action.d.ts +1 -1
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +4 -2
- package/dist/redux/sessionTemplates/action.d.ts +1 -1
- package/dist/redux/sessionTemplates/reducer.d.ts +4 -2
- package/dist/redux/skills/action.d.ts +1 -1
- package/dist/redux/skills/reducer.d.ts +4 -2
- package/dist/redux/subjects/action.d.ts +1 -1
- package/dist/redux/subjects/reducer.d.ts +4 -2
- package/dist/redux/suggestionBanks/action.d.ts +1 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +4 -2
- package/dist/redux/teacher/myStudent/action.d.ts +1 -1
- package/dist/redux/teacher/myStudent/reducer.d.ts +4 -2
- package/dist/redux/tutorialScreen/action.d.ts +1 -1
- package/dist/redux/tutorialScreen/reducer.d.ts +10 -5
- package/dist/redux/users/action.d.ts +2 -2
- package/dist/redux/users/reducer.d.ts +4 -2
- package/dist/redux/widget/action.d.ts +1 -1
- package/dist/redux/widget/reducer.d.ts +4 -2
- package/dist/rootReducer.d.ts +96 -49
- package/dist/services/accountService.d.ts +13 -12
- package/dist/services/api.d.ts +3 -3
- package/dist/services/classService.d.ts +1 -1
- package/dist/services/emailTemplateService.d.ts +6 -6
- package/dist/services/faqService.d.ts +6 -6
- package/dist/services/fileServices.d.ts +13 -13
- package/dist/services/galleryService.d.ts +2 -2
- package/dist/services/languageService.d.ts +1 -0
- package/dist/services/mailCategoryService.d.ts +1 -1
- package/dist/services/notificationService.d.ts +7 -7
- package/dist/services/questionCategoryService.d.ts +1 -1
- package/dist/services/schoolService.d.ts +1 -0
- package/dist/services/skillService.d.ts +6 -6
- package/dist/services/suggestionCategoryService.d.ts +1 -1
- package/dist/services/userService.d.ts +21 -9
- package/dist/store.d.ts +3 -3
- package/dist/types/Conversation.d.ts +8 -8
- package/dist/types/ConversationMember.d.ts +5 -5
- package/dist/types/Dashboard.d.ts +5 -5
- package/dist/types/Filter.d.ts +10 -10
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Message.d.ts +13 -13
- package/dist/types/Notification.d.ts +8 -8
- package/dist/utils/canAccessRoute.d.ts +2 -2
- package/dist/utils/constants.d.ts +77 -67
- package/dist/utils/debounce.d.ts +2 -2
- package/dist/utils/domHelpers.d.ts +2 -2
- package/dist/utils/encodeParams.d.ts +2 -2
- package/dist/utils/firstCheckToken.d.ts +2 -2
- package/dist/utils/generateRandomString.d.ts +2 -2
- package/dist/utils/getAccessToken.d.ts +2 -2
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getFileUrl.d.ts +2 -2
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/dist/utils/getTextFromHTML.d.ts +2 -2
- package/dist/utils/utcToLocalTime.d.ts +2 -2
- package/package.json +68 -77
- package/dist/components/Alerts/ReactNotification.d.ts +0 -4
- package/dist/containers/Login/constant/type.d.ts +0 -5
- package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
- package/dist/index.css +0 -658
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js.map +0 -1
- package/dist/index.test.d.ts +0 -1
- 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/TheLanguageDropdown.d.ts +0 -3
- package/dist/layouts/TheLayout.d.ts +0 -4
- package/dist/layouts/TheSidebar.d.ts +0 -3
- package/dist/types/Payload.d.ts +0 -15
- package/dist/utils/amplitude.d.ts +0 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
export type StudentAssign = {
|
|
2
|
+
studentId: number;
|
|
3
|
+
teacherUserId: string;
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
fullName: string;
|
|
7
|
+
gradeLevel: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
dateOfBirth?: string;
|
|
11
|
+
profileImageFileName: string;
|
|
12
|
+
quote: string;
|
|
13
|
+
assistantName: string;
|
|
14
|
+
assistantEmail: string;
|
|
15
|
+
counselorName: string;
|
|
16
|
+
counselorEmail: string;
|
|
17
|
+
assistantUserId: string;
|
|
18
|
+
counselors: Array<ICounselor>;
|
|
19
|
+
secondaryTeacherName: string;
|
|
20
|
+
secondaryTeacherEmail: string;
|
|
21
|
+
secondaryTeacherUserId: string;
|
|
22
|
+
mainTeacherName: string;
|
|
23
|
+
mainTeacherEmail: string;
|
|
24
|
+
mainTeacherId?: number;
|
|
25
|
+
teachers: Array<ITeachers>;
|
|
26
|
+
};
|
|
27
|
+
export interface IStaffAssign {
|
|
28
|
+
teacher: {
|
|
29
|
+
id: string;
|
|
30
|
+
email: string;
|
|
31
|
+
}[];
|
|
32
|
+
assistantId: string;
|
|
33
|
+
assistantEmail: string;
|
|
34
|
+
counselors: {
|
|
35
|
+
id: string;
|
|
36
|
+
email: string;
|
|
37
|
+
}[];
|
|
38
|
+
secondaryTeacherId: string;
|
|
39
|
+
secondaryTeacherEmail: string;
|
|
40
|
+
gradeLevel?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ISwitchStaffUser {
|
|
43
|
+
teacherRemoveUserIds: string[];
|
|
44
|
+
teacherSwitchDataUserId: string;
|
|
45
|
+
assistantRemoveUserId: string[];
|
|
46
|
+
assistantSwitchDataUserId: string;
|
|
47
|
+
counselorRemoveUserIds: string[];
|
|
48
|
+
counselorSwitchDataUserId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ICounselor {
|
|
51
|
+
counselorUserId: string;
|
|
52
|
+
counselorName: string;
|
|
53
|
+
counselorEmail: string;
|
|
54
|
+
studentId?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface ITeachers {
|
|
57
|
+
teacherUserId: string;
|
|
58
|
+
mainTeacherName: string;
|
|
59
|
+
mainTeacherEmail: string;
|
|
60
|
+
mainTeacherId?: number;
|
|
61
|
+
}
|
|
62
|
+
export type Counselor = {
|
|
63
|
+
id: string;
|
|
64
|
+
counselorId: number;
|
|
65
|
+
firstName: string;
|
|
66
|
+
lastName: string;
|
|
67
|
+
fullName: string;
|
|
68
|
+
email: string;
|
|
69
|
+
};
|
|
70
|
+
export type Assistant = {
|
|
71
|
+
id: string;
|
|
72
|
+
assistantId: number;
|
|
73
|
+
firstName: string;
|
|
74
|
+
lastName: string;
|
|
75
|
+
fullName: string;
|
|
76
|
+
email: string;
|
|
77
|
+
};
|
|
78
|
+
export type SecondaryTeacher = {
|
|
79
|
+
id: string;
|
|
80
|
+
secondaryTeacherId: number;
|
|
81
|
+
firstName: string;
|
|
82
|
+
lastName: string;
|
|
83
|
+
fullName: string;
|
|
84
|
+
email: string;
|
|
85
|
+
};
|
|
86
|
+
export type Teacher = {
|
|
87
|
+
id: string;
|
|
88
|
+
email: string;
|
|
89
|
+
};
|
|
90
|
+
export interface IOptions {
|
|
91
|
+
label: string;
|
|
92
|
+
value: string;
|
|
93
|
+
}
|
|
94
|
+
export type AssignStudentDto = {
|
|
95
|
+
id: string;
|
|
96
|
+
mainTeacherUserId?: Array<string>;
|
|
97
|
+
mainTeacherEmail?: Array<string>;
|
|
98
|
+
assistantUserId?: string;
|
|
99
|
+
assistantEmail?: string;
|
|
100
|
+
counselorUserIds?: Array<string>;
|
|
101
|
+
counselorEmails?: Array<string>;
|
|
102
|
+
removeTeacherUserIds?: string[];
|
|
103
|
+
teacherSwitchUserId?: string;
|
|
104
|
+
};
|
|
105
|
+
export type FilterOption = {
|
|
106
|
+
label: string;
|
|
107
|
+
value: string;
|
|
108
|
+
};
|
|
109
|
+
export declare enum TeacherType {
|
|
110
|
+
Teacher = 0,
|
|
111
|
+
Assistant = 1,
|
|
112
|
+
Counselor = 2,
|
|
113
|
+
SecondaryTeacher = 3
|
|
114
|
+
}
|
|
115
|
+
export type StudentFilter = {
|
|
116
|
+
currentPage?: number;
|
|
117
|
+
pageSize?: number;
|
|
118
|
+
searchString?: string;
|
|
119
|
+
isAssigned?: boolean;
|
|
120
|
+
sortBy?: UserOrder;
|
|
121
|
+
orderBy?: string;
|
|
122
|
+
};
|
|
123
|
+
export declare enum UserOrder {
|
|
124
|
+
Id = 0,
|
|
125
|
+
Name = 1,
|
|
126
|
+
Email = 2,
|
|
127
|
+
Age = 3,
|
|
128
|
+
Role = 4,
|
|
129
|
+
Status = 5,
|
|
130
|
+
CreatedAt = 6,
|
|
131
|
+
Grade = 7,
|
|
132
|
+
Teacher = 8,
|
|
133
|
+
Assistant = 9,
|
|
134
|
+
Counselor = 10,
|
|
135
|
+
SecondaryTeacher = 11
|
|
136
|
+
}
|
|
137
|
+
export declare enum SearchBy {
|
|
138
|
+
Id = 0,
|
|
139
|
+
Name = 1,
|
|
140
|
+
Email = 2,
|
|
141
|
+
Role = 3,
|
|
142
|
+
Status = 4,
|
|
143
|
+
Grade = 5,
|
|
144
|
+
Teacher = 6,
|
|
145
|
+
Assistant = 7,
|
|
146
|
+
Counselor = 8,
|
|
147
|
+
SecondaryTeacher = 9
|
|
148
|
+
}
|
|
149
|
+
export type UserFilter = {
|
|
150
|
+
currentPage?: number;
|
|
151
|
+
pageSize?: number;
|
|
152
|
+
searchString?: string;
|
|
153
|
+
isDescending?: boolean;
|
|
154
|
+
sortBy?: UserOrder;
|
|
155
|
+
searchBy?: SearchBy;
|
|
156
|
+
searchByStrings?: string[];
|
|
157
|
+
};
|
|
158
|
+
export type UserColumn = {
|
|
159
|
+
name: string;
|
|
160
|
+
sortBy?: UserOrder;
|
|
161
|
+
className?: string;
|
|
162
|
+
searchBy?: SearchBy;
|
|
163
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
164
|
+
options?: FilterOption[];
|
|
165
|
+
isCenter?: boolean;
|
|
166
|
+
onSelectAll?: Function;
|
|
167
|
+
isCheckAll?: boolean;
|
|
168
|
+
};
|
|
169
|
+
export type UserFilterField = {
|
|
170
|
+
currentPage?: number;
|
|
171
|
+
pageSize?: number;
|
|
172
|
+
searchString?: string;
|
|
173
|
+
isDescending?: boolean;
|
|
174
|
+
searchBy?: SearchBy;
|
|
175
|
+
searchStringBy?: string;
|
|
176
|
+
isAssignStudentList?: boolean;
|
|
177
|
+
};
|
|
178
|
+
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
179
|
+
[key: string]: JsonValue;
|
|
180
|
+
};
|
|
181
|
+
export type Option = {
|
|
182
|
+
label: string;
|
|
183
|
+
value: string;
|
|
184
|
+
};
|
|
185
|
+
export interface IDeleteBulkModel {
|
|
186
|
+
open: boolean;
|
|
187
|
+
onClose: () => void;
|
|
188
|
+
teachers: Option[];
|
|
189
|
+
onChangeStaffRemove: Function;
|
|
190
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
191
|
+
counselors: Option[];
|
|
192
|
+
assistants: Option[];
|
|
193
|
+
onRemoveBulkStaff: Function;
|
|
194
|
+
studentUserIds?: string[];
|
|
195
|
+
}
|
|
196
|
+
export interface IRemoveTeacher {
|
|
197
|
+
teachers: Option[];
|
|
198
|
+
onChangeStaffRemove: Function;
|
|
199
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
200
|
+
}
|
|
201
|
+
export interface IRemoveAssistant {
|
|
202
|
+
assistants: Option[];
|
|
203
|
+
onChangeStaffRemove: Function;
|
|
204
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
205
|
+
}
|
|
206
|
+
export interface IRemoveCounselor {
|
|
207
|
+
counselors: Option[];
|
|
208
|
+
onChangeStaffRemove: Function;
|
|
209
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
210
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as yup from "yup";
|
|
2
|
-
declare const userSchema:
|
|
3
|
-
firstName:
|
|
4
|
-
lastName:
|
|
5
|
-
dateOfBirth:
|
|
6
|
-
email:
|
|
7
|
-
roles:
|
|
8
|
-
},
|
|
9
|
-
firstName:
|
|
10
|
-
lastName:
|
|
11
|
-
dateOfBirth:
|
|
12
|
-
email:
|
|
13
|
-
roles:
|
|
14
|
-
}
|
|
15
|
-
export default userSchema;
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
declare const userSchema: yup.ObjectSchema<{
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
dateOfBirth: string;
|
|
6
|
+
email: string;
|
|
7
|
+
roles: (string | undefined)[] | undefined;
|
|
8
|
+
}, yup.AnyObject, {
|
|
9
|
+
firstName: undefined;
|
|
10
|
+
lastName: undefined;
|
|
11
|
+
dateOfBirth: undefined;
|
|
12
|
+
email: undefined;
|
|
13
|
+
roles: "";
|
|
14
|
+
}, "">;
|
|
15
|
+
export default userSchema;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IStaffAssign, ISwitchStaffUser, StudentAssign } from "../configs/type";
|
|
2
|
+
declare const useAssignStudent: (teacherSelected?: Record<string, any>, assistantSelected?: Record<string, any>, counselorSelected?: Record<string, any>, callback?: Function, selectedUser?: StudentAssign, userSelected?: StudentAssign[], getDataUserList?: any) => {
|
|
3
|
+
handleAssignSingleStudent: (id: string) => void;
|
|
4
|
+
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
5
|
+
openDetailModal: boolean;
|
|
6
|
+
setOpenDetailModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
toggleCollapse: (index: number) => void;
|
|
9
|
+
activeIndex: number;
|
|
10
|
+
staffBulkAssign: IStaffAssign;
|
|
11
|
+
removeTeacherUserIds: string[];
|
|
12
|
+
handleChangeCounselorBulk: (value: any[]) => void;
|
|
13
|
+
handleChangeTeacherBulk: (value: any[]) => void;
|
|
14
|
+
handleEditAssignForStudents: (teacherUserId?: string) => Promise<void>;
|
|
15
|
+
handleChangeStaffBulk: (name: string, value: any) => void;
|
|
16
|
+
handleToggleModel: (listUserIds?: string[]) => void;
|
|
17
|
+
openModelBulk: boolean;
|
|
18
|
+
onAssignStaffToStudents: (listUserIds: string[]) => Promise<void>;
|
|
19
|
+
onToggleModelDeleteBulk: (listUserIds?: string[]) => void;
|
|
20
|
+
openModelDeleteBulk: boolean;
|
|
21
|
+
handleRemoveBulkStaff: (studentUserIds: string[]) => Promise<void>;
|
|
22
|
+
switchStaffUsers: ISwitchStaffUser;
|
|
23
|
+
setSwitchStaffUsers: import("react").Dispatch<import("react").SetStateAction<ISwitchStaffUser>>;
|
|
24
|
+
setTeacherSwitchUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
25
|
+
teacherSwitchUserId: string;
|
|
26
|
+
onToggleModelSwitchDataTeacher: () => void;
|
|
27
|
+
openModelSwitchDataTeacher: boolean;
|
|
28
|
+
handelChangeStaffRemove: (updatedFilters: any) => void;
|
|
29
|
+
handleToggleInactiveModal: (listUserIds?: string[]) => void;
|
|
30
|
+
openInactiveModal: boolean;
|
|
31
|
+
handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
|
|
32
|
+
};
|
|
33
|
+
export default useAssignStudent;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
|
+
import { StudentAssign, StudentFilter, UserOrder } from "../configs/type";
|
|
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: ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
isCheckAll: boolean;
|
|
13
|
+
isCheck: any;
|
|
14
|
+
classFontSize: string;
|
|
15
|
+
selectedUser: StudentAssign;
|
|
16
|
+
setSelectedUser: import("react").Dispatch<import("react").SetStateAction<StudentAssign>>;
|
|
17
|
+
userSelected: StudentAssign[];
|
|
18
|
+
studentTeacherSelected: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|
|
22
|
+
studentCounselorSelected: {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
studentAssistantSelected: {
|
|
27
|
+
value: string;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
openTooltip: string | null;
|
|
31
|
+
toggle: (id: string) => void;
|
|
32
|
+
};
|
|
33
|
+
export default useAssignStudentList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../configs/type";
|
|
2
|
+
declare const useAssistantList: () => {
|
|
3
|
+
selectedAssistants: object | undefined;
|
|
4
|
+
assistantOptions: IOptions[];
|
|
5
|
+
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
6
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
|
|
7
|
+
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useAssistantList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../configs/type";
|
|
2
|
+
declare const useCounselorList: () => {
|
|
3
|
+
selectedCounselors: object | undefined;
|
|
4
|
+
counselorOptions: IOptions[];
|
|
5
|
+
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
6
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
|
|
7
|
+
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useCounselorList;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../configs/type";
|
|
2
|
+
import { PopoverProps } from "reactstrap";
|
|
3
|
+
interface Props extends PopoverProps {
|
|
4
|
+
filters?: UserFilter;
|
|
5
|
+
sortBy: UserOrder;
|
|
6
|
+
searchBy?: SearchBy;
|
|
7
|
+
users: string[];
|
|
8
|
+
defaultOptions?: FilterOption[];
|
|
9
|
+
selectedOptions?: string[];
|
|
10
|
+
searchKey: string;
|
|
11
|
+
onChangeSearchKey: (value: string) => void;
|
|
12
|
+
onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
|
|
13
|
+
onSearch?: (search: string, searchBy: SearchBy) => void;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
onFilter?: () => void;
|
|
16
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
17
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
18
|
+
}
|
|
19
|
+
declare const useFilterPopover: (props: Props) => {
|
|
20
|
+
ref: import("react").RefObject<HTMLDivElement>;
|
|
21
|
+
options: FilterOption[];
|
|
22
|
+
inputRef: import("react").MutableRefObject<any>;
|
|
23
|
+
sOptions: any[] | undefined;
|
|
24
|
+
isAscending: boolean;
|
|
25
|
+
isDescending: boolean;
|
|
26
|
+
filteredOptions: FilterOption[];
|
|
27
|
+
searchKey: string;
|
|
28
|
+
handleSearch: () => void;
|
|
29
|
+
handleApplyFilter: () => void;
|
|
30
|
+
handleOptionSelected: (e?: any) => void;
|
|
31
|
+
handleOptionSelectedAll: (e?: any) => void;
|
|
32
|
+
handleSortDesc: () => void;
|
|
33
|
+
handleSortAsc: () => void;
|
|
34
|
+
handleChangeSearchKey: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
35
|
+
};
|
|
36
|
+
export default useFilterPopover;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../configs/type";
|
|
2
|
+
interface Props {
|
|
3
|
+
filters: UserFilter;
|
|
4
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
5
|
+
teacherOptions?: any[];
|
|
6
|
+
assistantOptions?: any[];
|
|
7
|
+
counselorOptions?: any[];
|
|
8
|
+
isStudentList?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const useTableHeader: (props: Props) => {
|
|
11
|
+
popoverFilters: UserFilterField;
|
|
12
|
+
popoverId: string | undefined;
|
|
13
|
+
users: string[];
|
|
14
|
+
handleFilterIcon: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
15
|
+
handleCloseFilter: () => void;
|
|
16
|
+
handleSearch: (search: string, searchBy?: SearchBy) => void;
|
|
17
|
+
handleChangeFilters: (value?: string[], searchBy?: SearchBy) => void;
|
|
18
|
+
};
|
|
19
|
+
export default useTableHeader;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOptions } from "../configs/type";
|
|
2
|
+
declare const useTeacherList: (hasSort?: boolean) => {
|
|
3
|
+
selectedTeachers: object | undefined;
|
|
4
|
+
teacherOptions: IOptions[];
|
|
5
|
+
handleSelectTeacher: (teacherIds: Array<string>, studentUserId: string) => void;
|
|
6
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
|
|
7
|
+
setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
8
|
+
};
|
|
9
|
+
export default useTeacherList;
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
id?: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
email?: string;
|
|
7
|
-
dateOfBirth?: string;
|
|
8
|
-
roles: string[];
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
profileImageFileName: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { IOptions } from "../configs/type";
|
|
2
|
+
type UserDetail = {
|
|
3
|
+
id?: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
dateOfBirth?: string;
|
|
8
|
+
roles: string[];
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
profileImageFileName: string;
|
|
11
|
+
teacherUserId?: string[];
|
|
12
|
+
};
|
|
13
|
+
declare const useUserDetail: (id?: string) => {
|
|
14
|
+
userDetail: UserDetail;
|
|
15
|
+
backToList: (user?: string) => void;
|
|
16
|
+
confirmData: (data: any) => Promise<void>;
|
|
17
|
+
file: any;
|
|
18
|
+
setFile: import("react").Dispatch<any>;
|
|
19
|
+
edited: boolean;
|
|
20
|
+
currentRoles: string[];
|
|
21
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
22
|
+
setEditedTrue: () => Promise<void>;
|
|
23
|
+
confirmChangePassword: (data: any) => Promise<void>;
|
|
24
|
+
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
25
|
+
handleDisableRoles: (currentRoles: string) => boolean;
|
|
26
|
+
classFontSize: string;
|
|
27
|
+
teacherOptions: IOptions[];
|
|
28
|
+
handleToggleModel: () => void;
|
|
29
|
+
openModel: boolean;
|
|
30
|
+
};
|
|
31
|
+
export default useUserDetail;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
declare const useUserList: () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
declare const useUserList: () => {
|
|
2
|
+
fullName: string;
|
|
3
|
+
userList: any;
|
|
4
|
+
totalItems: any;
|
|
5
|
+
filters: import("../configs/type").UserFilter;
|
|
6
|
+
queryName: string | null;
|
|
7
|
+
getData: () => Promise<void>;
|
|
8
|
+
removeData: (id: string) => void;
|
|
9
|
+
changeFilters: (updatedFilters: any) => void;
|
|
10
|
+
reDirectDetailPage: (id?: number) => void;
|
|
11
|
+
switchUser: (record: any) => Promise<void>;
|
|
12
|
+
classFontSize: string;
|
|
13
|
+
};
|
|
14
|
+
export default useUserList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UserFilter } from "../configs/type";
|
|
2
|
+
declare const useFilters: () => {
|
|
3
|
+
filters: UserFilter;
|
|
4
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<UserFilter>>;
|
|
5
|
+
changeFilters: (updatedFilters: any) => void;
|
|
6
|
+
};
|
|
7
|
+
export default useFilters;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default UserDetail;
|
|
1
|
+
declare const UserDetail: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default UserDetail;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default UserList;
|
|
1
|
+
declare const UserList: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default UserList;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default useFilters;
|
|
1
|
+
import { Filter } from "../types/Filter";
|
|
2
|
+
declare const useFilters: () => {
|
|
3
|
+
filters: Filter;
|
|
4
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<Filter>>;
|
|
5
|
+
changeFilters: (updatedFilters: any) => void;
|
|
6
|
+
};
|
|
7
|
+
export default useFilters;
|
package/dist/i18n.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import i18n from "i18next";
|
|
2
|
+
export default i18n;
|