mario-core 2.9.167-level → 2.9.167-survey

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.
Files changed (28) hide show
  1. package/dist/components/Inputs/PasswordInput.d.ts +1 -0
  2. package/dist/containers/Login/constant/types.d.ts +7 -0
  3. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  4. package/dist/containers/Login/hooks/useForgotPassword.d.ts +2 -0
  5. package/dist/containers/Login/views/Login.d.ts +1 -0
  6. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  7. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  8. package/dist/containers/User/constants/constants.d.ts +2 -1
  9. package/dist/containers/User/constants/types.d.ts +79 -0
  10. package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -0
  11. package/dist/containers/User/hooks/useAssignStudentList.d.ts +14 -0
  12. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  13. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  14. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  15. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  16. package/dist/containers/User/hooks/useUserDetail.d.ts +1 -0
  17. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  18. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  19. package/dist/index.css +34 -13
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +26669 -8319
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.modern.js +26723 -8374
  24. package/dist/index.modern.js.map +1 -1
  25. package/dist/services/accountService.d.ts +3 -0
  26. package/dist/services/userService.d.ts +9 -1
  27. package/dist/types/user.d.ts +3 -0
  28. package/package.json +1 -1
@@ -3,6 +3,7 @@ interface Props {
3
3
  isShowPassword: boolean;
4
4
  togglePasswordVisible: any;
5
5
  onChange: any;
6
+ placeholder?: string;
6
7
  }
7
8
  declare const PasswordInput: FC<Props>;
8
9
  export default PasswordInput;
@@ -0,0 +1,7 @@
1
+ export interface ICreatePassword {
2
+ password: string;
3
+ reEnterPassword: string;
4
+ email: string;
5
+ userId: string;
6
+ token: string;
7
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ICreatePassword } from "../constant/types";
3
+ declare const useCreatePassword: () => {
4
+ createPasswordRequest: (data: ICreatePassword) => Promise<void>;
5
+ isShowNewPassword: boolean;
6
+ setIsShowNewPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
+ isShowReTypePassword: boolean;
8
+ setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
+ clickHandler: () => Promise<any>;
10
+ handleVerify: () => void;
11
+ initialValues: ICreatePassword;
12
+ };
13
+ export default useCreatePassword;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ICreatePassword } from "../constant/types";
2
3
  declare type ForgotPasswordInfo = {
3
4
  email: string;
4
5
  captcha: string;
@@ -17,5 +18,6 @@ declare const useForgotPassword: () => {
17
18
  setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
18
19
  clickHandler: () => Promise<any>;
19
20
  handleVerify: () => void;
21
+ initialValues: ICreatePassword;
20
22
  };
21
23
  export default useForgotPassword;
@@ -4,6 +4,7 @@ interface loginProps {
4
4
  isForgotPassword?: boolean;
5
5
  isResetPassword?: boolean;
6
6
  isLoginTwoFactor?: boolean;
7
+ isCreatePassword?: boolean;
7
8
  }
8
9
  declare const Login: (props: loginProps) => JSX.Element;
9
10
  export default Login;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ data: string[];
4
+ duration?: number;
5
+ }
6
+ declare const BlockBackground: FC<Props>;
7
+ export default BlockBackground;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => JSX.Element;
3
+ export default TeacherSelector;
@@ -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;
@@ -23,5 +23,6 @@ declare const useUserDetail: (id?: string | undefined) => {
23
23
  forgotPasswordRequest: (data: any) => Promise<void>;
24
24
  currentRoles: string[];
25
25
  handleDisableRoles: (currentRoles: string) => boolean;
26
+ handleResetPassword: (userId: string) => Promise<void>;
26
27
  };
27
28
  export default useUserDetail;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignStudentList: () => JSX.Element;
3
+ export default AssignStudentList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const UserContainer: () => JSX.Element;
3
+ export default UserContainer;
package/dist/index.css CHANGED
@@ -244,6 +244,8 @@
244
244
  padding: 4px; }
245
245
  ._wWIyO ._39BJD {
246
246
  margin-bottom: 30px; }
247
+ ._wWIyO ._39BJD ._ozRAq:disabled {
248
+ background: #E5E5E5; }
247
249
  ._wWIyO input[type="checkbox"]._2K9b2 {
248
250
  margin-left: 0; }
249
251
  ._wWIyO ._11FZt {
@@ -256,6 +258,11 @@
256
258
  ._wWIyO ._3IL10:hover {
257
259
  background-color: #2196f3;
258
260
  color: #ffffff; }
261
+ ._wWIyO ._2VvIr {
262
+ border-radius: 50px; }
263
+ ._wWIyO ._2A0HF {
264
+ background: #316CD9;
265
+ color: #FFFFFF; }
259
266
  ._wWIyO ._3LXoI {
260
267
  position: absolute;
261
268
  margin-left: auto;
@@ -291,21 +298,33 @@
291
298
  margin-left: -30px;
292
299
  margin-right: -30px; }
293
300
 
294
- ._jOY7o {
295
- background-size: cover;
296
- opacity: 0;
297
- animation: _wnn2_ 20s step-start infinite 0s; }
298
-
299
- @keyframes _wnn2_ {
301
+ ._30npl {
302
+ width: 100%;
303
+ height: 100%;
304
+ z-index: 1; }
305
+ ._30npl img {
306
+ width: 100%;
307
+ height: 100%;
308
+ -o-object-fit: cover;
309
+ object-fit: cover;
310
+ -o-object-position: center;
311
+ object-position: center;
312
+ position: absolute;
313
+ z-index: 1;
314
+ top: 0;
315
+ left: 0; }
316
+ ._30npl img._3oAH- {
317
+ z-index: 3; }
318
+ ._30npl img._3oAH-._16rY4 {
319
+ animation: _26nbh 1s ease-in-out forwards; }
320
+ ._30npl img._3A7Vv {
321
+ z-index: 2; }
322
+
323
+ @keyframes _26nbh {
300
324
  0% {
301
- opacity: 0;
302
- background-image: url("/images/landing-page.jpg"); }
303
- 50% {
304
- opacity: 1;
305
- background-image: url("/images/landing-page2.jpg"); }
325
+ opacity: 0; }
306
326
  100% {
307
- opacity: 2;
308
- background-image: url("/images/landing-page3.jpg"); } }
327
+ opacity: 1; } }
309
328
 
310
329
  ._F-hjL {
311
330
  background-color: #336dda;
@@ -319,6 +338,8 @@
319
338
  background-color: #336dda;
320
339
  overflow: hidden; } }
321
340
  ._F-hjL ._149oA {
341
+ position: relative;
342
+ z-index: 2;
322
343
  background: rgba(0, 0, 0, 0.57);
323
344
  height: 100%;
324
345
  padding: 20px 100px; }
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 };