mario-core 1.0.2 → 1.0.3-base-upgrade
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/assets/Images.d.ts +9 -0
- package/dist/components/Alerts/CommonAlert.d.ts +3 -0
- 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/CloseButton.d.ts +8 -0
- package/dist/components/Buttons/DeleteButtonIcon.d.ts +2 -1
- package/dist/components/Buttons/LoginNavButton.d.ts +8 -0
- package/dist/components/Buttons/SyncButton.d.ts +8 -0
- package/dist/components/Buttons/ToggleButton.d.ts +10 -0
- package/dist/components/Buttons/UploadFileButton.d.ts +13 -0
- package/dist/components/Image/UploadImage.d.ts +3 -0
- package/dist/components/Inputs/FileInput.d.ts +8 -0
- package/dist/components/Inputs/PasswordInput.d.ts +9 -0
- package/dist/components/Inputs/SearchBoxContainer.d.ts +10 -0
- 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 -0
- package/dist/components/Pagination/CustomPagination.d.ts +2 -2
- package/dist/components/Scroll/ScrollToTop.d.ts +3 -0
- package/dist/components/Selectors/AcademicClassSelector.d.ts +3 -0
- 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 +3 -0
- 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 +3 -0
- 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 +3 -0
- package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
- package/dist/configs/editorConfig.d.ts +6 -6
- package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -0
- package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +7 -0
- package/dist/containers/EmailTemplate/components/MailParam.d.ts +1 -0
- package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +11 -9
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +16 -2
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +3 -2
- package/dist/containers/Gallery/components/Filter.d.ts +8 -0
- package/dist/containers/Gallery/components/Media.d.ts +8 -0
- package/dist/containers/Gallery/components/MediaDetail.d.ts +7 -0
- package/dist/containers/Gallery/components/MediaList.d.ts +7 -0
- package/dist/containers/Gallery/components/MediaNav.d.ts +18 -0
- package/dist/containers/Gallery/constants/gallery.types.d.ts +21 -0
- package/dist/containers/Gallery/extensions/helpers.d.ts +4 -0
- package/dist/containers/Gallery/hooks/useGalleryList.d.ts +31 -0
- package/dist/containers/Gallery/views/GalleryList.d.ts +6 -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 +23 -0
- package/dist/containers/Login/hooks/useLogin.d.ts +21 -0
- package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -0
- package/dist/containers/Login/views/Dashboard.d.ts +4 -0
- package/dist/containers/Login/views/Login.d.ts +9 -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 +7 -0
- package/dist/containers/Login/views/block/BlockLogin.d.ts +21 -0
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +3 -0
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +11 -0
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +3 -0
- package/dist/containers/Login/views/block/CloseBlock.d.ts +6 -0
- package/dist/containers/Login/views/block/ContentHomePage.d.ts +5 -0
- package/dist/containers/Login/views/block/IconContent.d.ts +7 -0
- package/dist/containers/Login/views/block/QuoteContent.d.ts +3 -0
- package/dist/containers/Notifications/components/NotificationButton.d.ts +5 -0
- package/dist/containers/Notifications/components/NotificationStatusSelector.d.ts +7 -0
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +17 -0
- package/dist/containers/Notifications/hooks/useUnreadNotification.d.ts +4 -0
- package/dist/containers/Notifications/views/NotificationList.d.ts +3 -0
- package/dist/containers/Skill/components/SkillSelector.d.ts +3 -0
- package/dist/containers/Skill/hooks/useSkillDetail.d.ts +8 -1
- package/dist/containers/Skill/hooks/useSkillList.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 +11 -0
- package/dist/containers/User/configs/userSchema.d.ts +13 -0
- 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 +42 -0
- package/dist/containers/User/hooks/useUserList.d.ts +11 -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 +3 -0
- package/dist/containers/User/views/UserList.d.ts +2 -2
- package/dist/hooks/useFilters.d.ts +8 -0
- package/dist/hooks/useLanguages.d.ts +10 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.css +1236 -3
- package/dist/index.d.ts +77 -6
- package/dist/index.js +34974 -1984
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +34477 -1611
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheContent.d.ts +1 -1
- package/dist/redux/assessments/action.d.ts +1 -0
- package/dist/redux/assessments/reducer.d.ts +13 -0
- package/dist/redux/assignment/action.d.ts +1 -0
- package/dist/{commons → redux/assignment}/reducer.d.ts +3 -1
- package/dist/redux/assistants/action.d.ts +1 -0
- package/dist/redux/assistants/reducer.d.ts +4 -0
- package/dist/redux/badges/action.d.ts +1 -1
- package/dist/redux/badges/reducer.d.ts +3 -1
- package/dist/redux/bandScores/action.d.ts +1 -0
- package/dist/redux/bandScores/reducer.d.ts +4 -0
- package/dist/redux/certificate/action.d.ts +1 -0
- package/dist/redux/certificate/reducer.d.ts +4 -0
- package/dist/redux/classes/action.d.ts +1 -1
- package/dist/redux/classes/reducer.d.ts +3 -1
- package/dist/redux/commons/action.d.ts +19 -0
- package/dist/redux/commons/reducer.d.ts +3 -1
- package/dist/redux/conferenceRubrics/action.d.ts +1 -0
- package/dist/redux/conferenceRubrics/reducer.d.ts +4 -0
- package/dist/redux/customAlert/action.d.ts +1 -0
- package/dist/redux/customAlert/reducer.d.ts +4 -0
- package/dist/redux/dashboard/action.d.ts +5 -0
- package/dist/redux/dashboard/reducer.d.ts +4 -0
- package/dist/redux/dataPlayer/action.d.ts +2 -0
- package/dist/redux/dataPlayer/reducer.d.ts +4 -0
- package/dist/redux/emailTemplates/action.d.ts +1 -1
- package/dist/redux/emailTemplates/reducer.d.ts +3 -1
- package/dist/redux/faqs/action.d.ts +1 -1
- package/dist/redux/faqs/reducer.d.ts +3 -1
- package/dist/redux/feedback/action.d.ts +1 -0
- package/dist/redux/feedback/reducer.d.ts +4 -0
- package/dist/redux/gallery/action.d.ts +2 -0
- package/dist/redux/gallery/reducer.d.ts +4 -0
- package/dist/redux/goalExamples/reducer.d.ts +3 -1
- package/dist/redux/improveMyClass/action.d.ts +1 -0
- package/dist/redux/improveMyClass/reducer.d.ts +4 -0
- package/dist/redux/learningStrategies/action.d.ts +1 -1
- package/dist/redux/learningStrategies/reducer.d.ts +3 -1
- package/dist/redux/learningSupportCategories/action.d.ts +1 -0
- package/dist/redux/learningSupportCategories/reducer.d.ts +4 -0
- package/dist/redux/mailCategories/action.d.ts +1 -0
- package/dist/redux/mailCategories/reducer.d.ts +4 -0
- package/dist/redux/navMobile/action.d.ts +1 -0
- package/dist/redux/navMobile/reducer.d.ts +4 -0
- package/dist/redux/notifications/action.d.ts +3 -0
- package/dist/redux/notifications/reducer.d.ts +4 -0
- package/dist/redux/questionBanks/action.d.ts +1 -1
- package/dist/redux/questionBanks/reducer.d.ts +3 -1
- package/dist/redux/questionByCategory/action.d.ts +8 -0
- package/dist/redux/questionByCategory/reducer.d.ts +4 -0
- package/dist/redux/questionCategory/action.d.ts +1 -0
- package/dist/redux/questionCategory/reducer.d.ts +4 -0
- package/dist/redux/reflectionForms/action.d.ts +1 -0
- package/dist/redux/reflectionForms/reducer.d.ts +4 -0
- package/dist/redux/reflectionResults/action.d.ts +1 -0
- package/dist/redux/reflectionResults/reducer.d.ts +4 -0
- package/dist/redux/schoolBlankDays/action.d.ts +1 -0
- package/dist/redux/schoolBlankDays/reducer.d.ts +4 -0
- package/dist/redux/semester/action.d.ts +1 -0
- package/dist/redux/semester/reducer.d.ts +4 -0
- package/dist/redux/sessionPlayers/action.d.ts +5 -0
- package/dist/redux/sessionPlayers/reducer.d.ts +4 -0
- package/dist/redux/sessionTemplateGeneralClasses/action.d.ts +1 -0
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +4 -0
- package/dist/redux/sessionTemplates/action.d.ts +1 -0
- package/dist/redux/sessionTemplates/reducer.d.ts +4 -0
- package/dist/redux/skills/action.d.ts +1 -1
- package/dist/redux/skills/reducer.d.ts +3 -1
- package/dist/redux/subjects/action.d.ts +1 -1
- package/dist/redux/subjects/reducer.d.ts +3 -1
- package/dist/redux/suggestionBanks/action.d.ts +1 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +3 -1
- package/dist/redux/teacher/myStudent/action.d.ts +1 -0
- package/dist/redux/teacher/myStudent/reducer.d.ts +4 -0
- package/dist/redux/tutorialScreen/action.d.ts +1 -0
- package/dist/redux/tutorialScreen/reducer.d.ts +13 -0
- package/dist/redux/users/action.d.ts +1 -0
- 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/action.d.ts +1 -0
- package/dist/redux/widget/reducer.d.ts +4 -0
- package/dist/rootReducer.d.ts +93 -2
- package/dist/services/accountService.d.ts +21 -3
- package/dist/services/api.d.ts +3 -2
- package/dist/services/classService.d.ts +1 -0
- 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 -0
- package/dist/services/galleryService.d.ts +2 -0
- package/dist/services/mailCategoryService.d.ts +1 -0
- package/dist/services/notificationService.d.ts +7 -0
- package/dist/services/questionCategoryService.d.ts +3 -0
- package/dist/services/schoolService.d.ts +2 -0
- package/dist/services/skillService.d.ts +5 -5
- package/dist/services/suggestionCategoryService.d.ts +1 -0
- package/dist/services/userService.d.ts +37 -6
- package/dist/types/ConversationMember.d.ts +5 -0
- package/dist/types/Dashboard.d.ts +5 -0
- package/dist/types/Filter.d.ts +8 -0
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Message.d.ts +13 -0
- package/dist/types/Notification.d.ts +8 -0
- package/dist/types/Payload.d.ts +17 -0
- package/dist/types/user.d.ts +3 -0
- package/dist/utils/constants.d.ts +48 -2
- package/dist/utils/debounce.d.ts +2 -0
- package/dist/utils/domHelpers.d.ts +2 -0
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getFileUrl.d.ts +2 -0
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/dist/utils/getTextFromHTML.d.ts +2 -0
- package/dist/utils/utcToLocalTime.d.ts +1 -1
- package/package.json +56 -53
- package/README.md +0 -30
- package/dist/commons/action.d.ts +0 -2
- package/dist/containers/Classes/views/ClassList.d.ts +0 -3
- package/dist/containers/EmailTemplateDetail.d.ts +0 -3
- package/dist/containers/EmailTemplateList.d.ts +0 -3
- package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -13
- package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -9
- package/dist/containers/Faq/views/FaqList.d.ts +0 -3
- package/dist/containers/Login.d.ts +0 -3
- package/dist/containers/User.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/types/ClassDetail.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -1
- package/dist/views/TheContent.d.ts +0 -3
- package/dist/views/TheFooter.d.ts +0 -3
- package/dist/views/TheHeader.d.ts +0 -3
- package/dist/views/TheHeaderDropdown.d.ts +0 -3
- package/dist/views/TheLayout.d.ts +0 -3
- package/dist/views/TheSidebar.d.ts +0 -3
- /package/dist/containers/{Classes/components/ClassDetailModal.d.ts → Gallery/components/ActionModal.d.ts} +0 -0
- /package/dist/containers/{Faq/components/FaqDetailModal.d.ts → User/components/SwitchTeacherModal.d.ts} +0 -0
|
@@ -1,9 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypeLogin, ISchool } from "../constant/types";
|
|
1
3
|
declare type LoginInfo = {
|
|
2
4
|
email: string;
|
|
3
5
|
password: string;
|
|
6
|
+
captcha: string;
|
|
7
|
+
rememberMe: boolean;
|
|
8
|
+
isSessionUserBrowser?: boolean;
|
|
4
9
|
};
|
|
5
10
|
declare const useLogin: () => {
|
|
6
11
|
defaultInfo: LoginInfo;
|
|
7
12
|
userLogin: (data: any) => Promise<void>;
|
|
13
|
+
openLogin: boolean;
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
isShowPassword: boolean;
|
|
16
|
+
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler?: any) => Promise<void>;
|
|
18
|
+
isLoginGoogle: any;
|
|
19
|
+
infoUser: any;
|
|
20
|
+
submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
|
|
21
|
+
googleClientId: string;
|
|
22
|
+
googleRecaptchaId: string;
|
|
23
|
+
handleCancelModelAssign: () => void;
|
|
24
|
+
openModelAssign: boolean;
|
|
25
|
+
fnLoginSSO: (clickHandler?: any) => Promise<void>;
|
|
26
|
+
school: ISchool;
|
|
27
|
+
extensionEmail: string;
|
|
28
|
+
handleLoginWidthClever: () => void;
|
|
8
29
|
};
|
|
9
30
|
export default useLogin;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface loginProps {
|
|
3
|
+
isLogin?: boolean;
|
|
4
|
+
isForgotPassword?: boolean;
|
|
5
|
+
isResetPassword?: boolean;
|
|
6
|
+
isLoginTwoFactor?: boolean;
|
|
7
|
+
isCreatePassword?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Login: (props: loginProps) => React.JSX.Element;
|
|
3
10
|
export default Login;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ISchool } from "../../constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
defaultInfo?: any;
|
|
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;
|
|
19
|
+
}
|
|
20
|
+
declare const BlockLogin: FC<Props>;
|
|
21
|
+
export default BlockLogin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
defaultValue?: any;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
openModal: boolean;
|
|
6
|
+
onSubmit: any;
|
|
7
|
+
token: string;
|
|
8
|
+
email: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const useNotificationList: () => {
|
|
2
|
+
notificationList: any;
|
|
3
|
+
totalItems: any;
|
|
4
|
+
unReadNotification: any;
|
|
5
|
+
filters: {
|
|
6
|
+
currentPage: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
searchString: string;
|
|
9
|
+
isRead: boolean;
|
|
10
|
+
};
|
|
11
|
+
changeFilters: (objectValue: any) => void;
|
|
12
|
+
updateNotification: (id: number, isRead: boolean) => void;
|
|
13
|
+
viewNotification: (notification: any) => void;
|
|
14
|
+
updateAll: () => Promise<void>;
|
|
15
|
+
toggleUpdateAllStatus: boolean;
|
|
16
|
+
};
|
|
17
|
+
export default useNotificationList;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare type SkillDetail = {
|
|
3
3
|
name: string;
|
|
4
|
-
|
|
4
|
+
description: string;
|
|
5
|
+
path: string;
|
|
6
|
+
parentSkillId?: number | null;
|
|
5
7
|
};
|
|
6
8
|
declare const useSkillDetail: () => {
|
|
7
9
|
id: number;
|
|
@@ -9,5 +11,10 @@ declare const useSkillDetail: () => {
|
|
|
9
11
|
skillDetail: SkillDetail;
|
|
10
12
|
confirmData: (values: any, cb: any) => Promise<void>;
|
|
11
13
|
initValue: SkillDetail;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
edited: boolean;
|
|
16
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
setEditedTrue: () => Promise<void>;
|
|
18
|
+
setEditedFalse: () => Promise<void>;
|
|
12
19
|
};
|
|
13
20
|
export default useSkillDetail;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Filter } from "../../../types/Filter";
|
|
2
1
|
declare const useSkillList: () => {
|
|
3
2
|
skillList: any;
|
|
4
|
-
|
|
3
|
+
totalItems: any;
|
|
4
|
+
filters: import("../../..").Filter;
|
|
5
5
|
changeFilters: (updatedFilters: any) => void;
|
|
6
6
|
getData: () => Promise<void>;
|
|
7
7
|
removeData: (id: number) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IStaffAssign, StudentAssign } from '../constants/types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
openDetailModal: boolean;
|
|
5
|
+
onClose: Function;
|
|
6
|
+
selectedUser: StudentAssign;
|
|
7
|
+
staffBulkAssign: IStaffAssign;
|
|
8
|
+
teacherOptions: any[];
|
|
9
|
+
assistantOptions: any[];
|
|
10
|
+
counselorOptions: any[];
|
|
11
|
+
secondaryTeacherOptions: any[];
|
|
12
|
+
handleChangeTeacherBulk: Function;
|
|
13
|
+
handleChangeCounselorBulk: Function;
|
|
14
|
+
handleChangeStaffBulk: Function;
|
|
15
|
+
handleEditAssignForStudents: Function;
|
|
16
|
+
toggleCollapse: (index: number) => void;
|
|
17
|
+
activeIndex: number;
|
|
18
|
+
}
|
|
19
|
+
declare const AssignStudentModal: FC<IProps>;
|
|
20
|
+
export default AssignStudentModal;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDeleteBulkModel } from "../constants/types";
|
|
3
|
+
declare const DeleteBulkModel: ({ open, onClose, teachers, onChangeStaffRemove, switchStaffUsers, assistants, onRemoveBulkStaff, counselors, studentUserIds, secondaryTeachers }: IDeleteBulkModel) => React.JSX.Element;
|
|
4
|
+
export default DeleteBulkModel;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDeleteBulkModel } from "../constants/types";
|
|
3
|
+
declare const DeleteBulkModel: ({ open, onClose, teachers, onChangeStaffRemove, switchStaffUsers, assistants, onRemoveBulkStaff, counselors, studentUserIds, secondaryTeachers }: IDeleteBulkModel) => React.JSX.Element;
|
|
4
|
+
export default DeleteBulkModel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PopoverProps } from "reactstrap";
|
|
3
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
|
|
4
|
+
interface Props extends PopoverProps {
|
|
5
|
+
filters?: UserFilter;
|
|
6
|
+
sortBy: UserOrder;
|
|
7
|
+
searchBy?: SearchBy;
|
|
8
|
+
users: string[];
|
|
9
|
+
defaultOptions?: FilterOption[];
|
|
10
|
+
selectedOptions?: string[];
|
|
11
|
+
searchKey: string;
|
|
12
|
+
onChangeSearchKey: (value: string) => void;
|
|
13
|
+
onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
|
|
14
|
+
onSearch?: (search: string, searchBy: SearchBy) => void;
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
onFilter?: () => void;
|
|
17
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
18
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
19
|
+
}
|
|
20
|
+
declare const FilterPopover: FC<Props>;
|
|
21
|
+
export default FilterPopover;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SearchBy, UserColumn, UserFilter, UserOrder } from "../constants/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
data: UserColumn;
|
|
5
|
+
popoverId?: string;
|
|
6
|
+
filters?: UserFilter;
|
|
7
|
+
searchString?: string;
|
|
8
|
+
users: string[];
|
|
9
|
+
selectedOptions?: string[];
|
|
10
|
+
onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
|
|
11
|
+
onSearch?: (search: string, searchBy: SearchBy) => void;
|
|
12
|
+
onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
15
|
+
isCenter?: boolean;
|
|
16
|
+
isActive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const HeaderCell: FC<Props>;
|
|
19
|
+
export default HeaderCell;
|
|
@@ -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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}, "">;
|
|
11
|
+
export default changePasswordSchema;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
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
|
+
}, "">;
|
|
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;
|