mario-core 2.9.189-release → 2.9.190-plp
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Selectors/constants/constant.d.ts +1 -1
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +1 -1
- package/dist/containers/User/components/HeaderCell.d.ts +1 -0
- package/dist/containers/User/components/TableHeader.d.ts +1 -0
- package/dist/containers/User/constants/constants.d.ts +2 -1
- package/dist/containers/User/constants/types.d.ts +15 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +6 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +1 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +1 -1
- package/dist/containers/User/hooks/useCounselorList.d.ts +1 -1
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +1 -1
- package/dist/containers/User/hooks/useTableHeader.d.ts +1 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +1 -1
- package/dist/containers/User/hooks/useUserDetail.d.ts +5 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8721 -418
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8720 -419
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +5 -0
- package/dist/rootReducer.d.ts +4 -0
- package/dist/services/accountService.d.ts +2 -1
- package/dist/services/userService.d.ts +1 -0
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/package.json +101 -101
|
@@ -7,7 +7,7 @@ declare type ForgotPasswordInfo = {
|
|
|
7
7
|
declare const useForgotPassword: () => {
|
|
8
8
|
defaultInfo: ForgotPasswordInfo;
|
|
9
9
|
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
10
|
-
checkResetTokenRequest: (token: string) => Promise<void>;
|
|
10
|
+
checkResetTokenRequest: (token: string, key: string) => Promise<void>;
|
|
11
11
|
validLink: boolean;
|
|
12
12
|
resetPasswordRequest: (data: any) => Promise<void>;
|
|
13
13
|
openLogin: boolean;
|
|
@@ -12,6 +12,7 @@ interface Props {
|
|
|
12
12
|
onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
15
|
+
isCenter?: boolean;
|
|
15
16
|
}
|
|
16
17
|
declare const HeaderCell: FC<Props>;
|
|
17
18
|
export default HeaderCell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
1
|
+
import { IStaffAssign, StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
2
2
|
export declare const userOrders: {
|
|
3
3
|
0: string;
|
|
4
4
|
1: string;
|
|
@@ -18,3 +18,4 @@ export declare const DEFAULT_FILTER: UserFilter;
|
|
|
18
18
|
export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
19
19
|
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
20
20
|
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
21
|
+
export declare const initialStaffBulk: IStaffAssign;
|
|
@@ -13,6 +13,7 @@ export declare type User = {
|
|
|
13
13
|
fullName: string;
|
|
14
14
|
sourcedId: string;
|
|
15
15
|
rosterUser: RosterUser;
|
|
16
|
+
grade: string;
|
|
16
17
|
};
|
|
17
18
|
export declare type RosterUser = {
|
|
18
19
|
sourcedId: string;
|
|
@@ -53,14 +54,18 @@ export declare type UserFilterField = {
|
|
|
53
54
|
isDescending?: boolean;
|
|
54
55
|
searchBy?: SearchBy;
|
|
55
56
|
searchStringBy?: string;
|
|
57
|
+
isStudentFilter?: boolean;
|
|
56
58
|
};
|
|
57
59
|
export declare type UserColumn = {
|
|
60
|
+
isCenter?: boolean;
|
|
58
61
|
name: string;
|
|
59
62
|
sortBy?: UserOrder;
|
|
60
63
|
className?: string;
|
|
61
64
|
searchBy?: SearchBy;
|
|
62
65
|
getOption?: (user: any, t?: any) => FilterOption;
|
|
63
66
|
options?: FilterOption[];
|
|
67
|
+
onSelectAll?: Function;
|
|
68
|
+
isCheckAll?: boolean;
|
|
64
69
|
};
|
|
65
70
|
export declare type StudentAssign = {
|
|
66
71
|
studentId: number;
|
|
@@ -84,6 +89,16 @@ export declare type StudentAssign = {
|
|
|
84
89
|
mainTeacherEmail: string;
|
|
85
90
|
mainTeacherId?: number;
|
|
86
91
|
};
|
|
92
|
+
export interface IStaffAssign {
|
|
93
|
+
teacherId: string;
|
|
94
|
+
teacherEmail: string;
|
|
95
|
+
assistantId: string;
|
|
96
|
+
assistantEmail: string;
|
|
97
|
+
counselorId: string;
|
|
98
|
+
counselorEmail: string;
|
|
99
|
+
secondaryTeacherId: string;
|
|
100
|
+
secondaryTeacherEmail: string;
|
|
101
|
+
}
|
|
87
102
|
export declare type Counselor = {
|
|
88
103
|
id: string;
|
|
89
104
|
counselorId: number;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { IStaffAssign } from "../constants/types";
|
|
1
2
|
declare const useAssignStudent: (teacherSelected?: object | undefined, assistantSelected?: object | undefined, counselorSelected?: object | undefined, secondaryTeacherSelected?: object | undefined, callback?: Function | undefined) => {
|
|
2
3
|
handleAssignSingleStudent: (id: string) => void;
|
|
3
4
|
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
5
|
+
openModelBulk: boolean;
|
|
6
|
+
handleToggleModel: () => void;
|
|
7
|
+
handleChangeStaffBulk: (name: string, id: string) => void;
|
|
8
|
+
staffBulkAssign: IStaffAssign;
|
|
9
|
+
handleAssignStaffToStudents: (listUserIds: string[]) => void;
|
|
4
10
|
};
|
|
5
11
|
export default useAssignStudent;
|
|
@@ -4,7 +4,7 @@ declare const useAssistantList: () => {
|
|
|
4
4
|
selectedAssistants: object | undefined;
|
|
5
5
|
assistantOptions: IOptions[];
|
|
6
6
|
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
8
|
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useAssistantList;
|
|
@@ -4,7 +4,7 @@ declare const useCounselorList: () => {
|
|
|
4
4
|
selectedCounselors: object | undefined;
|
|
5
5
|
counselorOptions: IOptions[];
|
|
6
6
|
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
8
|
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useCounselorList;
|
|
@@ -4,7 +4,7 @@ declare const useSecondaryTeacherList: () => {
|
|
|
4
4
|
selectedSecondaryTeachers: object | undefined;
|
|
5
5
|
secondaryTeacherOptions: IOptions[];
|
|
6
6
|
handleSelectSecondaryTeacher: (secondaryTeacherId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
|
|
8
8
|
setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useSecondaryTeacherList;
|
|
@@ -2,6 +2,7 @@ import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/t
|
|
|
2
2
|
interface Props {
|
|
3
3
|
filters: UserFilter;
|
|
4
4
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
5
|
+
isStudentFilter?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const useTableHeader: (props: Props) => {
|
|
7
8
|
popoverFilters: UserFilterField;
|
|
@@ -4,7 +4,7 @@ declare const useTeacherList: () => {
|
|
|
4
4
|
selectedTeachers: object | undefined;
|
|
5
5
|
teacherOptions: IOptions[];
|
|
6
6
|
handleSelectTeacher: (teacherId: string, studentUserId: string) => void;
|
|
7
|
-
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
|
|
7
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string, isSelectTeacher?: boolean | undefined) => void;
|
|
8
8
|
setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
9
|
};
|
|
10
10
|
export default useTeacherList;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
2
3
|
declare type UserDetail = {
|
|
3
4
|
id?: string;
|
|
4
5
|
firstName: string;
|
|
@@ -9,6 +10,7 @@ declare type UserDetail = {
|
|
|
9
10
|
isActive: boolean;
|
|
10
11
|
profileImageFileName: string;
|
|
11
12
|
sourcedId?: string;
|
|
13
|
+
teacherUserId?: string;
|
|
12
14
|
};
|
|
13
15
|
declare const useUserDetail: (id?: string | undefined) => {
|
|
14
16
|
userDetail: UserDetail;
|
|
@@ -24,5 +26,8 @@ declare const useUserDetail: (id?: string | undefined) => {
|
|
|
24
26
|
currentRoles: string[];
|
|
25
27
|
handleDisableRoles: (currentRoles: string) => boolean;
|
|
26
28
|
handleResetPassword: (userId: string) => Promise<void>;
|
|
29
|
+
teacherOptions: IOptions[];
|
|
30
|
+
openModel: boolean;
|
|
31
|
+
handleToggleModel: () => void;
|
|
27
32
|
};
|
|
28
33
|
export default useUserDetail;
|
package/dist/index.d.ts
CHANGED
|
@@ -111,5 +111,6 @@ import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
|
|
|
111
111
|
import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode } from "./redux/commons/action";
|
|
112
112
|
import useFilters from "./hooks/useFilters";
|
|
113
113
|
import amplitude from "amplitude-js";
|
|
114
|
+
import { setWeeklyQuestList, setOpenModelCongratulation } from "./redux/weeklyQuests/action";
|
|
114
115
|
declare const amplitudeClient: amplitude.AmplitudeClient;
|
|
115
|
-
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl };
|
|
116
|
+
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setWeeklyQuestList, setOpenModelCongratulation, setSandboxMode, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl };
|