mario-core 2.9.166-level → 2.9.168-level
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/containers/User/components/TeacherSelector.d.ts +3 -0
- package/dist/containers/User/constants/constants.d.ts +2 -1
- package/dist/containers/User/constants/types.d.ts +79 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +14 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
- package/dist/containers/User/views/UserContainer.d.ts +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1070 -191
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1071 -193
- package/dist/index.modern.js.map +1 -1
- package/dist/services/userService.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserColumn, UserFilter, UserOrder } from "./types";
|
|
1
|
+
import { StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
|
|
2
2
|
export declare const userOrders: {
|
|
3
3
|
0: string;
|
|
4
4
|
1: string;
|
|
@@ -15,5 +15,6 @@ export declare const DEFAULT_PAGE_SIZE: {
|
|
|
15
15
|
value: number;
|
|
16
16
|
};
|
|
17
17
|
export declare const DEFAULT_FILTER: UserFilter;
|
|
18
|
+
export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
18
19
|
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
19
20
|
export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
@@ -38,6 +38,14 @@ export declare type UserFilter = {
|
|
|
38
38
|
searchBy?: SearchBy;
|
|
39
39
|
searchByStrings?: string[];
|
|
40
40
|
};
|
|
41
|
+
export declare type StudentFilter = {
|
|
42
|
+
currentPage?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
searchString?: string;
|
|
45
|
+
isAssigned?: boolean;
|
|
46
|
+
sortBy?: UserOrder;
|
|
47
|
+
orderBy?: string;
|
|
48
|
+
};
|
|
41
49
|
export declare type UserFilterField = {
|
|
42
50
|
currentPage?: number;
|
|
43
51
|
pageSize?: number;
|
|
@@ -54,6 +62,71 @@ export declare type UserColumn = {
|
|
|
54
62
|
getOption?: (user: any, t?: any) => FilterOption;
|
|
55
63
|
options?: FilterOption[];
|
|
56
64
|
};
|
|
65
|
+
export declare type StudentAssign = {
|
|
66
|
+
studentId: number;
|
|
67
|
+
teacherUserId: string;
|
|
68
|
+
id: string;
|
|
69
|
+
email: string;
|
|
70
|
+
fullName: string;
|
|
71
|
+
gradeLevel: string;
|
|
72
|
+
phoneNumber: string;
|
|
73
|
+
isActive?: boolean;
|
|
74
|
+
dateOfBirth?: string;
|
|
75
|
+
profileImageFileName: string;
|
|
76
|
+
quote: string;
|
|
77
|
+
assistantName: string;
|
|
78
|
+
assistantEmail: string;
|
|
79
|
+
counselorName: string;
|
|
80
|
+
counselorEmail: string;
|
|
81
|
+
secondaryTeacherName: string;
|
|
82
|
+
secondaryTeacherEmail: string;
|
|
83
|
+
mainTeacherName: string;
|
|
84
|
+
mainTeacherEmail: string;
|
|
85
|
+
mainTeacherId?: number;
|
|
86
|
+
};
|
|
87
|
+
export declare type Counselor = {
|
|
88
|
+
id: string;
|
|
89
|
+
counselorId: number;
|
|
90
|
+
firstName: string;
|
|
91
|
+
lastName: string;
|
|
92
|
+
fullName: string;
|
|
93
|
+
email: string;
|
|
94
|
+
};
|
|
95
|
+
export declare type Assistant = {
|
|
96
|
+
id: string;
|
|
97
|
+
assistantId: number;
|
|
98
|
+
firstName: string;
|
|
99
|
+
lastName: string;
|
|
100
|
+
fullName: string;
|
|
101
|
+
email: string;
|
|
102
|
+
};
|
|
103
|
+
export declare type SecondaryTeacher = {
|
|
104
|
+
id: string;
|
|
105
|
+
secondaryTeacherId: number;
|
|
106
|
+
firstName: string;
|
|
107
|
+
lastName: string;
|
|
108
|
+
fullName: string;
|
|
109
|
+
email: string;
|
|
110
|
+
};
|
|
111
|
+
export declare type Teacher = {
|
|
112
|
+
id: string;
|
|
113
|
+
email: string;
|
|
114
|
+
};
|
|
115
|
+
export interface IOptions {
|
|
116
|
+
label: string;
|
|
117
|
+
value: string;
|
|
118
|
+
}
|
|
119
|
+
export declare type AssignStudentDto = {
|
|
120
|
+
id: string;
|
|
121
|
+
mainTeacherUserId?: string;
|
|
122
|
+
mainTeacherEmail?: string;
|
|
123
|
+
assistantUserId?: string;
|
|
124
|
+
assistantEmail?: string;
|
|
125
|
+
counselorUserId?: string;
|
|
126
|
+
counselorEmail?: string;
|
|
127
|
+
secondaryTeacherUserId?: string;
|
|
128
|
+
secondaryTeacherEmail?: string;
|
|
129
|
+
};
|
|
57
130
|
export declare type FilterOption = {
|
|
58
131
|
label: string;
|
|
59
132
|
value: string;
|
|
@@ -76,3 +149,9 @@ export declare enum SearchBy {
|
|
|
76
149
|
RosterUser = 4,
|
|
77
150
|
Status = 5
|
|
78
151
|
}
|
|
152
|
+
export declare enum TeacherType {
|
|
153
|
+
Teacher = 0,
|
|
154
|
+
Assistant = 1,
|
|
155
|
+
Counselor = 2,
|
|
156
|
+
SecondaryTeacher = 3
|
|
157
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const useAssignStudent: (teacherSelected?: object | undefined, assistantSelected?: object | undefined, counselorSelected?: object | undefined, secondaryTeacherSelected?: object | undefined, callback?: Function | undefined) => {
|
|
2
|
+
handleAssignSingleStudent: (id: string) => void;
|
|
3
|
+
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
4
|
+
};
|
|
5
|
+
export default useAssignStudent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StudentAssign, StudentFilter, UserOrder } from "../constants/types";
|
|
2
|
+
declare const useAssignStudentList: () => {
|
|
3
|
+
handelSort: (sortBy: UserOrder) => void;
|
|
4
|
+
handleRetrievedData: () => void;
|
|
5
|
+
totalItem: number;
|
|
6
|
+
userList: StudentAssign[];
|
|
7
|
+
filters: StudentFilter;
|
|
8
|
+
changeFilters: (updatedFilters: any) => void;
|
|
9
|
+
handleSelectAll: () => void;
|
|
10
|
+
handleClickCheck: (e: any) => void;
|
|
11
|
+
isCheckAll: boolean;
|
|
12
|
+
isCheck: any;
|
|
13
|
+
};
|
|
14
|
+
export default useAssignStudentList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useAssistantList: () => {
|
|
4
|
+
selectedAssistants: object | undefined;
|
|
5
|
+
assistantOptions: IOptions[];
|
|
6
|
+
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useAssistantList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useCounselorList: () => {
|
|
4
|
+
selectedCounselors: object | undefined;
|
|
5
|
+
counselorOptions: IOptions[];
|
|
6
|
+
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useCounselorList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useSecondaryTeacherList: () => {
|
|
4
|
+
selectedSecondaryTeachers: object | undefined;
|
|
5
|
+
secondaryTeacherOptions: IOptions[];
|
|
6
|
+
handleSelectSecondaryTeacher: (secondaryTeacherId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useSecondaryTeacherList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../constants/types";
|
|
3
|
+
declare const useTeacherList: () => {
|
|
4
|
+
selectedTeachers: object | undefined;
|
|
5
|
+
teacherOptions: IOptions[];
|
|
6
|
+
handleSelectTeacher: (teacherId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useTeacherList;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import EmailTemplateDetail from "./containers/EmailTemplate/views/EmailTemplateD
|
|
|
10
10
|
import FaqList from "./containers/Faq/views/FaqList";
|
|
11
11
|
import SkillList from "./containers/Skill/views/SkillList";
|
|
12
12
|
import UserList from "./containers/User/views/UserList";
|
|
13
|
+
import UserContainer from "./containers/User/views/UserContainer";
|
|
13
14
|
import UserDetail from "./containers/User/views/UserDetail";
|
|
14
15
|
import Loading from "./components/Loading/Loading";
|
|
15
16
|
import ScrollToTop from "./components/Scroll/ScrollToTop";
|
|
@@ -110,4 +111,4 @@ import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage } f
|
|
|
110
111
|
import useFilters from "./hooks/useFilters";
|
|
111
112
|
import amplitude from "amplitude-js";
|
|
112
113
|
declare const amplitudeClient: amplitude.AmplitudeClient;
|
|
113
|
-
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, 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, 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, EMOTIONS, TAB_COLORS, 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 };
|
|
114
|
+
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, 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, 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, EMOTIONS, TAB_COLORS, 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 };
|