mario-core 1.0.0-arabic-layout → 1.0.0-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/components/Alerts/EmptyDataAlert.d.ts +2 -2
- package/dist/components/Buttons/AddButton.d.ts +1 -1
- package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
- package/dist/components/Image/UploadImage.d.ts +2 -2
- package/dist/components/Inputs/FileInput.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/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/Login/constant/types.d.ts +3 -0
- package/dist/containers/Login/views/Dashboard.d.ts +3 -2
- package/dist/containers/Login/views/Login.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
- 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/HeaderCell.d.ts +1 -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 +4 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +2 -2
- 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 +43 -1
- package/dist/containers/User/constants/types.d.ts +96 -8
- package/dist/containers/User/hooks/useAssignStudent.d.ts +34 -4
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +22 -1
- 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/useResendMail.d.ts +5 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +4 -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 +9 -0
- package/dist/containers/User/hooks/useUserList.d.ts +3 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +2 -2
- package/dist/containers/User/views/CSVImport.d.ts +3 -0
- package/dist/containers/User/views/UserContainer.d.ts +2 -2
- 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/index.css +718 -429
- package/dist/index.d.ts +5 -8
- package/dist/index.js +11301 -25312
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11306 -25313
- 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 +1 -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/reducer.d.ts +11 -1
- package/dist/redux/widget/reducer.d.ts +3 -1
- package/dist/rootReducer.d.ts +54 -2
- package/dist/services/accountService.d.ts +20 -17
- 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 -6
- 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 +2 -2
- package/dist/services/schoolService.d.ts +2 -2
- package/dist/services/skillService.d.ts +5 -5
- package/dist/services/suggestionCategoryService.d.ts +1 -1
- package/dist/services/userService.d.ts +34 -24
- package/dist/types/Payload.d.ts +1 -0
- package/dist/utils/constants.d.ts +6 -0
- package/package.json +52 -65
- package/dist/components/Alerts/ReactNotification.d.ts +0 -4
- package/dist/components/Modals/ModelSelectRole.d.ts +0 -7
- 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/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +0 -8
- package/dist/hooks/useClassFontSize.d.ts +0 -4
- package/dist/layouts/TheFooter.d.ts +0 -3
- package/dist/layouts/TheHeader.d.ts +0 -6
- package/dist/layouts/TheHeaderDropdown.d.ts +0 -6
- 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/services/faqService.d.ts +0 -6
- /package/dist/containers/{Faq/components/FaqDetailModal.d.ts → User/components/SwitchTeacherModal.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSProperties
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
label: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
}
|
|
7
|
-
declare const EmptyDataAlert:
|
|
7
|
+
declare const EmptyDataAlert: ({ label, className, style }: Props) => React.JSX.Element;
|
|
8
8
|
export default EmptyDataAlert;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const UploadImage: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const UploadImage: () => React.JSX.Element;
|
|
3
3
|
export default UploadImage;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
icon: React.ReactNode;
|
|
4
4
|
accept?: string | undefined;
|
|
5
5
|
callback: (fileName: string, filePath: string, fileType: string) => void;
|
|
6
6
|
}
|
|
7
|
-
declare const InputFile:
|
|
7
|
+
declare const InputFile: ({ icon, accept, callback }: Props) => React.JSX.Element;
|
|
8
8
|
export default InputFile;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
text: string;
|
|
4
4
|
onClick: () => void;
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
onSearch: (searchString?: string) => void;
|
|
7
7
|
placeholder: string;
|
|
8
8
|
}
|
|
9
|
-
declare const SearchBoxContainer:
|
|
9
|
+
declare const SearchBoxContainer: ({ text, initValue, onClick, onSearch, placeholder }: Props) => React.JSX.Element;
|
|
10
10
|
export default SearchBoxContainer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationLogoutModal: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const NotificationLogoutModal: () => React.JSX.Element;
|
|
3
3
|
export default NotificationLogoutModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationModal: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const NotificationModal: () => React.JSX.Element;
|
|
3
3
|
export default NotificationModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomPagination: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomPagination: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CustomPagination;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const AcademicClassSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const AcademicClassSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default AcademicClassSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CategorySelector: ({ value, ...rest }: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CategorySelector: ({ value, ...rest }: any) => React.JSX.Element;
|
|
3
3
|
export default CategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CreatableSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CreatableSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CreatableSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => React.JSX.Element;
|
|
3
3
|
export default CustomSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const MailCategorySelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const MailCategorySelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default MailCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuestionCategorySelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QuestionCategorySelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default QuestionCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuestionTypeSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QuestionTypeSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default QuestionTypeSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const StarRatingSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const StarRatingSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default StarRatingSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SuggestionCategorySelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const SuggestionCategorySelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default SuggestionCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomTabs: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomTabs: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CustomTabs;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as yup from "yup";
|
|
2
|
-
declare const schema:
|
|
3
|
-
subject:
|
|
4
|
-
categoryId:
|
|
5
|
-
comment:
|
|
6
|
-
body:
|
|
7
|
-
},
|
|
8
|
-
subject:
|
|
9
|
-
categoryId:
|
|
10
|
-
comment:
|
|
11
|
-
body:
|
|
12
|
-
}
|
|
2
|
+
declare const schema: yup.ObjectSchema<{
|
|
3
|
+
subject: string;
|
|
4
|
+
categoryId: number;
|
|
5
|
+
comment: string | undefined;
|
|
6
|
+
body: string;
|
|
7
|
+
}, yup.AnyObject, {
|
|
8
|
+
subject: undefined;
|
|
9
|
+
categoryId: undefined;
|
|
10
|
+
comment: undefined;
|
|
11
|
+
body: undefined;
|
|
12
|
+
}, "">;
|
|
13
13
|
export default schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface loginProps {
|
|
3
3
|
isLogin?: boolean;
|
|
4
4
|
isForgotPassword?: boolean;
|
|
@@ -6,5 +6,5 @@ interface loginProps {
|
|
|
6
6
|
isLoginTwoFactor?: boolean;
|
|
7
7
|
isCreatePassword?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const Login: (props: loginProps) => JSX.Element;
|
|
9
|
+
declare const Login: (props: loginProps) => React.JSX.Element;
|
|
10
10
|
export default Login;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockCreatePassword: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const BlockCreatePassword: () => React.JSX.Element;
|
|
3
3
|
export default BlockCreatePassword;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ISchool } from "../../constant/types";
|
|
3
3
|
interface Props {
|
|
4
4
|
school: ISchool;
|
|
5
5
|
}
|
|
6
|
-
declare const BlockForgetPassword: ({ school }: Props) => JSX.Element;
|
|
6
|
+
declare const BlockForgetPassword: ({ school }: Props) => React.JSX.Element;
|
|
7
7
|
export default BlockForgetPassword;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockResetPassword: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const BlockResetPassword: () => React.JSX.Element;
|
|
3
3
|
export default BlockResetPassword;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockTwoFactorLogin: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const BlockTwoFactorLogin: () => React.JSX.Element;
|
|
3
3
|
export default BlockTwoFactorLogin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuoteContent: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QuoteContent: () => React.JSX.Element;
|
|
3
3
|
export default QuoteContent;
|
|
@@ -9,7 +9,7 @@ declare const useNotificationList: () => {
|
|
|
9
9
|
isRead: boolean;
|
|
10
10
|
};
|
|
11
11
|
changeFilters: (objectValue: any) => void;
|
|
12
|
-
updateNotification: (id:
|
|
12
|
+
updateNotification: (id: number, isRead: boolean) => void;
|
|
13
13
|
viewNotification: (notification: any) => void;
|
|
14
14
|
updateAll: () => Promise<void>;
|
|
15
15
|
toggleUpdateAllStatus: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationList: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const NotificationList: () => React.JSX.Element;
|
|
3
3
|
export default NotificationList;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SkillSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const SkillSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default SkillSelector;
|
|
@@ -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,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;
|
|
@@ -6,6 +6,10 @@ interface Props {
|
|
|
6
6
|
fullName?: string;
|
|
7
7
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
8
8
|
isStudentFilter?: boolean;
|
|
9
|
+
teacherOptions?: any[];
|
|
10
|
+
assistantOptions?: any[];
|
|
11
|
+
counselorOptions?: any[];
|
|
12
|
+
secondaryTeacherOptions?: any[];
|
|
9
13
|
}
|
|
10
14
|
declare const TableHeader: FC<Props>;
|
|
11
15
|
export default TableHeader;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => React.JSX.Element;
|
|
3
3
|
export default TeacherSelector;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStaffAssign, StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
1
|
+
import { IOptions, IStaffAssign, StudentFilter, USER_CHOICE, UserColumn, UserFilter, UserOrder } from "./types";
|
|
2
2
|
export declare const userOrders: {
|
|
3
3
|
0: string;
|
|
4
4
|
1: string;
|
|
@@ -8,6 +8,11 @@ export declare const userOrders: {
|
|
|
8
8
|
5: string;
|
|
9
9
|
6: string;
|
|
10
10
|
7: string;
|
|
11
|
+
8: string;
|
|
12
|
+
9: string;
|
|
13
|
+
10: string;
|
|
14
|
+
11: string;
|
|
15
|
+
12: string;
|
|
11
16
|
};
|
|
12
17
|
export declare const UserColumns: UserColumn[];
|
|
13
18
|
export declare const DEFAULT_PAGE_SIZE: {
|
|
@@ -19,3 +24,40 @@ export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
|
19
24
|
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
20
25
|
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
21
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;
|