mario-core 0.0.1-district → 1.0.0-alpha

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 (163) hide show
  1. package/dist/components/Alerts/EmptyDataAlert.d.ts +2 -2
  2. package/dist/components/Buttons/AddButton.d.ts +1 -1
  3. package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
  4. package/dist/components/Image/UploadImage.d.ts +2 -2
  5. package/dist/components/Inputs/FileInput.d.ts +2 -2
  6. package/dist/components/Inputs/SearchBoxContainer.d.ts +2 -2
  7. package/dist/components/Labels/RequiredLabel.d.ts +1 -0
  8. package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -2
  9. package/dist/components/Modals/NotificationModal.d.ts +2 -2
  10. package/dist/components/Others/QuitPrompt.d.ts +5 -2
  11. package/dist/components/Pagination/CustomPagination.d.ts +2 -2
  12. package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
  13. package/dist/components/Selectors/CategorySelector.d.ts +2 -2
  14. package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
  15. package/dist/components/Selectors/CustomSelector.d.ts +2 -2
  16. package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
  17. package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
  18. package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
  19. package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
  20. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
  21. package/dist/components/Selectors/constants/constant.d.ts +1 -1
  22. package/dist/components/Tabs/CustomTab.d.ts +2 -2
  23. package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
  24. package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +11 -11
  25. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  26. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  27. package/dist/containers/Login/constant/types.d.ts +27 -0
  28. package/dist/containers/Login/hooks/useForgotPassword.d.ts +1 -1
  29. package/dist/containers/Login/hooks/useLogin.d.ts +10 -4
  30. package/dist/containers/Login/views/Dashboard.d.ts +3 -2
  31. package/dist/containers/Login/views/Login.d.ts +2 -2
  32. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +2 -2
  33. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +6 -2
  34. package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
  35. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
  36. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
  37. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
  38. package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
  39. package/dist/containers/Notifications/hooks/useNotificationList.d.ts +1 -1
  40. package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
  41. package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
  42. package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
  43. package/dist/containers/User/components/DeleteBulkModel copy.d.ts +4 -0
  44. package/dist/containers/User/components/DeleteBulkModel.d.ts +4 -0
  45. package/dist/containers/User/components/HeaderCell.d.ts +2 -0
  46. package/dist/containers/User/components/RemoveAssistant.d.ts +4 -0
  47. package/dist/containers/User/components/RemoveCounselor.d.ts +4 -0
  48. package/dist/containers/User/components/RemoveSupportTeacher.d.ts +4 -0
  49. package/dist/containers/User/components/RemoveTeacher.d.ts +4 -0
  50. package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
  51. package/dist/containers/User/components/TableHeader.d.ts +5 -0
  52. package/dist/containers/User/components/TeacherSelector.d.ts +2 -2
  53. package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
  54. package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
  55. package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -9
  56. package/dist/containers/User/configs/userSchema.d.ts +11 -13
  57. package/dist/containers/User/configs/utils.d.ts +8 -0
  58. package/dist/containers/User/constants/constants.d.ts +44 -1
  59. package/dist/containers/User/constants/types.d.ts +118 -10
  60. package/dist/containers/User/hooks/useAssignStudent.d.ts +41 -1
  61. package/dist/containers/User/hooks/useAssignStudentList.d.ts +23 -1
  62. package/dist/containers/User/hooks/useAssistantList.d.ts +1 -1
  63. package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
  64. package/dist/containers/User/hooks/useCSVImportTab.d.ts +46 -0
  65. package/dist/containers/User/hooks/useCounselorList.d.ts +1 -1
  66. package/dist/containers/User/hooks/useFilterPopover.d.ts +2 -2
  67. package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
  68. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +1 -1
  69. package/dist/containers/User/hooks/useTableHeader.d.ts +5 -0
  70. package/dist/containers/User/hooks/useTeacherList.d.ts +2 -2
  71. package/dist/containers/User/hooks/useUserDeletedList.d.ts +22 -0
  72. package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
  73. package/dist/containers/User/hooks/useUserDetail.d.ts +14 -0
  74. package/dist/containers/User/hooks/useUserList.d.ts +4 -1
  75. package/dist/containers/User/views/AssignStudentList.d.ts +2 -2
  76. package/dist/containers/User/views/CSVImport.d.ts +3 -0
  77. package/dist/containers/User/views/UserContainer.d.ts +2 -2
  78. package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
  79. package/dist/containers/User/views/UserDetail.d.ts +2 -2
  80. package/dist/containers/User/views/UserList.d.ts +2 -2
  81. package/dist/hooks/useLanguages.d.ts +10 -0
  82. package/dist/index.css +822 -329
  83. package/dist/index.d.ts +8 -9
  84. package/dist/index.js +28507 -24183
  85. package/dist/index.js.map +1 -1
  86. package/dist/index.modern.js +28508 -24184
  87. package/dist/index.modern.js.map +1 -1
  88. package/dist/layouts/TheContent.d.ts +1 -1
  89. package/dist/redux/assessments/reducer.d.ts +9 -1
  90. package/dist/redux/assignment/reducer.d.ts +3 -1
  91. package/dist/redux/assistants/reducer.d.ts +3 -1
  92. package/dist/redux/badges/reducer.d.ts +3 -1
  93. package/dist/redux/bandScores/reducer.d.ts +3 -1
  94. package/dist/redux/certificate/reducer.d.ts +3 -1
  95. package/dist/redux/classes/reducer.d.ts +3 -1
  96. package/dist/redux/commons/action.d.ts +3 -0
  97. package/dist/redux/commons/reducer.d.ts +3 -1
  98. package/dist/redux/conferenceRubrics/reducer.d.ts +3 -1
  99. package/dist/redux/customAlert/reducer.d.ts +3 -1
  100. package/dist/redux/dashboard/reducer.d.ts +3 -1
  101. package/dist/redux/dataPlayer/reducer.d.ts +3 -1
  102. package/dist/redux/emailTemplates/reducer.d.ts +3 -1
  103. package/dist/redux/faqs/reducer.d.ts +3 -1
  104. package/dist/redux/feedback/reducer.d.ts +3 -1
  105. package/dist/redux/gallery/reducer.d.ts +3 -1
  106. package/dist/redux/goalExamples/reducer.d.ts +3 -1
  107. package/dist/redux/improveMyClass/reducer.d.ts +3 -1
  108. package/dist/redux/learningStrategies/reducer.d.ts +3 -1
  109. package/dist/redux/learningSupportCategories/reducer.d.ts +3 -1
  110. package/dist/redux/mailCategories/reducer.d.ts +3 -1
  111. package/dist/redux/navMobile/reducer.d.ts +3 -1
  112. package/dist/redux/notifications/reducer.d.ts +3 -1
  113. package/dist/redux/questionBanks/reducer.d.ts +3 -1
  114. package/dist/redux/questionByCategory/reducer.d.ts +3 -1
  115. package/dist/redux/questionCategory/reducer.d.ts +3 -1
  116. package/dist/redux/reflectionForms/reducer.d.ts +3 -1
  117. package/dist/redux/reflectionResults/reducer.d.ts +3 -1
  118. package/dist/redux/schoolBlankDays/reducer.d.ts +3 -1
  119. package/dist/redux/semester/reducer.d.ts +3 -1
  120. package/dist/redux/sessionPlayers/reducer.d.ts +3 -1
  121. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +3 -1
  122. package/dist/redux/sessionTemplates/reducer.d.ts +3 -1
  123. package/dist/redux/skills/reducer.d.ts +3 -1
  124. package/dist/redux/subjects/reducer.d.ts +3 -1
  125. package/dist/redux/suggestionBanks/reducer.d.ts +3 -1
  126. package/dist/redux/teacher/myStudent/reducer.d.ts +3 -1
  127. package/dist/redux/tutorialScreen/reducer.d.ts +9 -1
  128. package/dist/redux/users/reducer.d.ts +3 -1
  129. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  130. package/dist/redux/weeklyQuests/reducer.d.ts +16 -0
  131. package/dist/redux/widget/reducer.d.ts +3 -1
  132. package/dist/rootReducer.d.ts +59 -2
  133. package/dist/services/accountService.d.ts +20 -14
  134. package/dist/services/classService.d.ts +1 -1
  135. package/dist/services/csvImportService.d.ts +9 -0
  136. package/dist/services/csvService.d.ts +8 -0
  137. package/dist/services/emailTemplateService.d.ts +6 -5
  138. package/dist/services/fileServices.d.ts +13 -13
  139. package/dist/services/galleryService.d.ts +1 -1
  140. package/dist/services/mailCategoryService.d.ts +1 -1
  141. package/dist/services/notificationService.d.ts +7 -7
  142. package/dist/services/questionCategoryService.d.ts +2 -2
  143. package/dist/services/schoolService.d.ts +2 -1
  144. package/dist/services/skillService.d.ts +5 -5
  145. package/dist/services/suggestionCategoryService.d.ts +1 -1
  146. package/dist/services/userService.d.ts +34 -22
  147. package/dist/types/Payload.d.ts +1 -0
  148. package/dist/utils/constants.d.ts +9 -2
  149. package/dist/utils/getCookieValue.d.ts +2 -0
  150. package/package.json +93 -101
  151. package/dist/components/Alerts/ReactNotification.d.ts +0 -4
  152. package/dist/components/Modals/ModelSelectRole.d.ts +0 -7
  153. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -18
  154. package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -9
  155. package/dist/containers/Faq/views/FaqList.d.ts +0 -3
  156. package/dist/layouts/TheFooter.d.ts +0 -3
  157. package/dist/layouts/TheHeader.d.ts +0 -6
  158. package/dist/layouts/TheHeaderDropdown.d.ts +0 -6
  159. package/dist/layouts/TheLanguageDropdown.d.ts +0 -3
  160. package/dist/layouts/TheLayout.d.ts +0 -4
  161. package/dist/layouts/TheSidebar.d.ts +0 -3
  162. package/dist/services/faqService.d.ts +0 -6
  163. /package/dist/containers/{Faq/components/FaqDetailModal.d.ts → User/components/SwitchTeacherModal.d.ts} +0 -0
@@ -1,15 +1,13 @@
1
1
  import * as yup from "yup";
2
- declare const userSchema: import("yup/lib/object").OptionalObjectSchema<{
3
- firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
- lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
- dateOfBirth: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
6
- email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
7
- roles: yup.ArraySchema<yup.StringSchema<string | undefined, Record<string, any>, string | undefined>, Record<string, any>, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
8
- }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
9
- firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
10
- lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
11
- dateOfBirth: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
12
- email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
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;
@@ -0,0 +1,8 @@
1
+ import { StudentAssign, TeacherType } from "../constants/types";
2
+ declare type StaffItem = {
3
+ label: string;
4
+ value: string;
5
+ name: string;
6
+ };
7
+ export declare const extractStaffList: (students: StudentAssign[], type: TeacherType) => StaffItem[];
8
+ export {};
@@ -1,4 +1,4 @@
1
- import { 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: {
@@ -18,3 +23,41 @@ export declare const DEFAULT_FILTER: UserFilter;
18
23
  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,";
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;
@@ -13,6 +13,12 @@ export declare type User = {
13
13
  fullName: string;
14
14
  sourcedId: string;
15
15
  rosterUser: RosterUser;
16
+ grade: string;
17
+ teachers: string;
18
+ assistants: string;
19
+ counselors: string;
20
+ eduTeachers: string;
21
+ supportTeachers: string;
16
22
  };
17
23
  export declare type RosterUser = {
18
24
  sourcedId: string;
@@ -37,6 +43,7 @@ export declare type UserFilter = {
37
43
  sortBy?: UserOrder;
38
44
  searchBy?: SearchBy;
39
45
  searchByStrings?: string[];
46
+ isStudent?: string[];
40
47
  };
41
48
  export declare type StudentFilter = {
42
49
  currentPage?: number;
@@ -53,18 +60,22 @@ export declare type UserFilterField = {
53
60
  isDescending?: boolean;
54
61
  searchBy?: SearchBy;
55
62
  searchStringBy?: string;
63
+ isStudentFilter?: boolean;
64
+ byStudent?: boolean;
56
65
  };
57
66
  export declare type UserColumn = {
67
+ isCenter?: boolean;
58
68
  name: string;
59
69
  sortBy?: UserOrder;
60
70
  className?: string;
61
71
  searchBy?: SearchBy;
62
72
  getOption?: (user: any, t?: any) => FilterOption;
63
73
  options?: FilterOption[];
74
+ onSelectAll?: Function;
75
+ isCheckAll?: boolean;
64
76
  };
65
77
  export declare type StudentAssign = {
66
78
  studentId: number;
67
- teacherUserId: string;
68
79
  id: string;
69
80
  email: string;
70
81
  fullName: string;
@@ -76,14 +87,40 @@ export declare type StudentAssign = {
76
87
  quote: string;
77
88
  assistantName: string;
78
89
  assistantEmail: string;
79
- counselorName: string;
80
- counselorEmail: string;
90
+ assistantUserId: string;
91
+ counselors: Array<ICounselor>;
81
92
  secondaryTeacherName: string;
82
93
  secondaryTeacherEmail: string;
94
+ secondaryTeacherUserId: string;
95
+ teachers: Array<ITeachers>;
96
+ };
97
+ export interface ITeachers {
98
+ teacherUserId: string;
83
99
  mainTeacherName: string;
84
100
  mainTeacherEmail: string;
85
101
  mainTeacherId?: number;
86
- };
102
+ }
103
+ export interface ICounselor {
104
+ counselorUserId: string;
105
+ counselorName: string;
106
+ counselorEmail: string;
107
+ studentId?: number;
108
+ }
109
+ export interface IStaffAssign {
110
+ teacher: {
111
+ id: string;
112
+ email: string;
113
+ }[];
114
+ assistantId: string;
115
+ assistantEmail: string;
116
+ counselors: {
117
+ id: string;
118
+ email: string;
119
+ }[];
120
+ secondaryTeacherId: string;
121
+ secondaryTeacherEmail: string;
122
+ gradeLevel?: string;
123
+ }
87
124
  export declare type Counselor = {
88
125
  id: string;
89
126
  counselorId: number;
@@ -118,14 +155,16 @@ export interface IOptions {
118
155
  }
119
156
  export declare type AssignStudentDto = {
120
157
  id: string;
121
- mainTeacherUserId?: string;
122
- mainTeacherEmail?: string;
158
+ mainTeacherUserId?: Array<string>;
159
+ mainTeacherEmail?: Array<string>;
123
160
  assistantUserId?: string;
124
161
  assistantEmail?: string;
125
- counselorUserId?: string;
126
- counselorEmail?: string;
162
+ counselorUserIds?: Array<string>;
163
+ counselorEmails?: Array<string>;
127
164
  secondaryTeacherUserId?: string;
128
165
  secondaryTeacherEmail?: string;
166
+ removeTeacherUserIds?: string[];
167
+ teacherSwitchUserId?: string;
129
168
  };
130
169
  export declare type FilterOption = {
131
170
  label: string;
@@ -139,7 +178,12 @@ export declare enum UserOrder {
139
178
  Role = 4,
140
179
  Status = 5,
141
180
  CreatedAt = 6,
142
- RosterUser = 7
181
+ RosterUser = 7,
182
+ Grade = 8,
183
+ Teacher = 9,
184
+ Assistant = 10,
185
+ Counselor = 11,
186
+ SecondaryTeacher = 12
143
187
  }
144
188
  export declare enum SearchBy {
145
189
  Id = 0,
@@ -147,7 +191,12 @@ export declare enum SearchBy {
147
191
  Email = 2,
148
192
  Role = 3,
149
193
  RosterUser = 4,
150
- Status = 5
194
+ Status = 5,
195
+ Grade = 6,
196
+ Teacher = 7,
197
+ Assistant = 8,
198
+ Counselor = 9,
199
+ SecondaryTeacher = 10
151
200
  }
152
201
  export declare enum TeacherType {
153
202
  Teacher = 0,
@@ -155,3 +204,62 @@ export declare enum TeacherType {
155
204
  Counselor = 2,
156
205
  SecondaryTeacher = 3
157
206
  }
207
+ export declare type SwitchTeacherGroup = {
208
+ studentId: number;
209
+ teacher: string;
210
+ teacherChange: string;
211
+ };
212
+ export declare type SwitchAssistantGroup = {
213
+ studentId: number;
214
+ assistantUserId: string;
215
+ };
216
+ export interface IDeleteBulkModel {
217
+ open: boolean;
218
+ onClose: () => void;
219
+ teachers: Option[];
220
+ onChangeStaffRemove: Function;
221
+ switchStaffUsers: ISwitchStaffUser;
222
+ counselors: Option[];
223
+ assistants: Option[];
224
+ secondaryTeachers: Option[];
225
+ onRemoveBulkStaff: Function;
226
+ studentUserIds?: string[];
227
+ }
228
+ export interface IRemoveTeacher {
229
+ teachers: Option[];
230
+ onChangeStaffRemove: Function;
231
+ switchStaffUsers: ISwitchStaffUser;
232
+ }
233
+ export interface IRemoveAssistant {
234
+ assistants: Option[];
235
+ onChangeStaffRemove: Function;
236
+ switchStaffUsers: ISwitchStaffUser;
237
+ }
238
+ export interface IRemoveCounselor {
239
+ counselors: Option[];
240
+ onChangeStaffRemove: Function;
241
+ switchStaffUsers: ISwitchStaffUser;
242
+ }
243
+ export interface IRemoveSupportTeacher {
244
+ secondaryTeachers: Option[];
245
+ onChangeStaffRemove: Function;
246
+ switchStaffUsers: ISwitchStaffUser;
247
+ }
248
+ export interface ISwitchStaffUser {
249
+ teacherRemoveUserIds: string[];
250
+ teacherSwitchDataUserId: string;
251
+ assistantRemoveUserId: string[];
252
+ assistantSwitchDataUserId: string;
253
+ counselorRemoveUserIds: string[];
254
+ counselorSwitchDataUserId: string;
255
+ supportTeacherRemoveUserIds: string[];
256
+ supportTeacherSwitchDataUserId: string;
257
+ }
258
+ export declare type USER_CHOICE = {
259
+ id: string;
260
+ firstName: string;
261
+ lastName: string;
262
+ email: string;
263
+ fullName: string;
264
+ roles: string[];
265
+ };
@@ -1,5 +1,45 @@
1
- declare const useAssignStudent: (teacherSelected?: object | undefined, assistantSelected?: object | undefined, counselorSelected?: object | undefined, secondaryTeacherSelected?: object | undefined, callback?: Function | undefined) => {
1
+ /// <reference types="react" />
2
+ import { IStaffAssign, ISwitchStaffUser, StudentAssign, TeacherType } from "../constants/types";
3
+ declare const useAssignStudent: (teacherSelected?: any, assistantSelected?: Record<string, any> | undefined, counselorSelected?: Record<string, any> | undefined, secondaryTeacherSelected?: Record<string, any> | undefined, callback?: Function | undefined, selectedUser?: StudentAssign | undefined, getDataUserList?: any, userSelected?: StudentAssign[] | undefined) => {
2
4
  handleAssignSingleStudent: (id: string) => void;
3
5
  handleAssignMultiStudent: (listUserIds: string[]) => void;
6
+ openModelBulk: boolean;
7
+ handleToggleModel: (listUserIds?: string[] | undefined) => void;
8
+ handleChangeStaffBulk: (name: string, value: any) => void;
9
+ staffBulkAssign: IStaffAssign;
10
+ onAssignStaffToStudents: (listUserIds: string[]) => Promise<void>;
11
+ handleToggleInactiveModal: (listUserIds?: string[] | undefined) => void;
12
+ openInactiveModal: boolean;
13
+ handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
14
+ handleChangeTeacherBulk: (value: any[]) => void;
15
+ handleEditAssignForStudents: (teacherUserId?: string | undefined) => Promise<void>;
16
+ handleToggleSwitchModel: (listUser: StudentAssign[], modal: TeacherType, options: any[]) => void;
17
+ openSwitchModal: boolean;
18
+ optionsSwitch: any[];
19
+ modalType: TeacherType;
20
+ textModal: any;
21
+ teacherSwitchList: any[];
22
+ onCloseSwitchModal: () => void;
23
+ handleUpdateSwitch: () => void;
24
+ setTeacherChangeUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
25
+ setTeacherSelectForChangeUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
26
+ teacherSelectForChangeUserId: string;
27
+ openDetailModal: boolean;
28
+ setOpenDetailModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
29
+ toggleCollapse: (index: number) => void;
30
+ activeIndex: number;
31
+ handleChangeCounselorBulk: (value: any[]) => void;
32
+ onClose: () => void;
33
+ removeTeacherUserIds: string[];
34
+ onSelectRemoveTeacher: (userId: string) => void;
35
+ openModelSwitchDataTeacher: boolean;
36
+ onToggleModelSwitchDataTeacher: () => void;
37
+ teacherSwitchUserId: string;
38
+ setTeacherSwitchUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
39
+ onToggleModelDeleteBulk: (listUserIds?: string[] | undefined) => void;
40
+ openModelDeleteBulk: boolean;
41
+ handelChangeStaffRemove: (updatedFilters: any) => void;
42
+ switchStaffUsers: ISwitchStaffUser;
43
+ handleRemoveBulkStaff: (studentUserIds: string[]) => Promise<void>;
4
44
  };
5
45
  export default useAssignStudent;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StudentAssign, StudentFilter, UserOrder } from "../constants/types";
2
3
  declare const useAssignStudentList: () => {
3
4
  handelSort: (sortBy: UserOrder) => void;
@@ -7,8 +8,29 @@ declare const useAssignStudentList: () => {
7
8
  filters: StudentFilter;
8
9
  changeFilters: (updatedFilters: any) => void;
9
10
  handleSelectAll: () => void;
10
- handleClickCheck: (e: any) => void;
11
+ handleClickCheck: (e: React.ChangeEvent<HTMLInputElement>) => void;
11
12
  isCheckAll: boolean;
12
13
  isCheck: any;
14
+ fullName: string;
15
+ selectedUser: StudentAssign;
16
+ setSelectedUser: import("react").Dispatch<import("react").SetStateAction<StudentAssign>>;
17
+ userSelected: StudentAssign[];
18
+ getDataUserList: () => Promise<void>;
19
+ studentTeacherSelected: {
20
+ value: string;
21
+ label: string;
22
+ }[];
23
+ studentCounselorSelected: {
24
+ value: string;
25
+ label: string;
26
+ }[];
27
+ studentAssistantSelected: {
28
+ value: string;
29
+ label: string;
30
+ }[];
31
+ studentSecondaryTeacherSelected: {
32
+ value: string;
33
+ label: string;
34
+ }[];
13
35
  };
14
36
  export default useAssignStudentList;
@@ -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;
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ declare enum CSVType {
3
+ Students = "students",
4
+ Subjects = "subjects",
5
+ Grades = "grades",
6
+ Attendances = "attendances",
7
+ ClassReflection = "classReflection",
8
+ Others = "others",
9
+ AllUser = "allUser"
10
+ }
11
+ export interface Option {
12
+ label: string;
13
+ value: number;
14
+ }
15
+ declare const useCSVImport: () => {
16
+ isLoading: any;
17
+ id: string;
18
+ setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
19
+ upload: (file: any) => Promise<void>;
20
+ initImportReflection: any;
21
+ setInitImportReflection: import("react").Dispatch<any>;
22
+ onConfirm: (values: any) => Promise<void>;
23
+ CSVType: typeof CSVType;
24
+ dataFile: any;
25
+ setDataFile: import("react").Dispatch<any>;
26
+ setArrStudent: import("react").Dispatch<any>;
27
+ arrStudent: any;
28
+ isCheckDomainIBS: boolean;
29
+ onChangeTeacher: (teacher: Option) => void;
30
+ uploadByTeacherId: (file: any) => Promise<void>;
31
+ setDataFileImportStudent: (dataFile: any) => void;
32
+ onUpLoadStudentFile: () => void;
33
+ defaultTeacher: number;
34
+ fileName: string;
35
+ onStudentSubmit: () => void;
36
+ downloadTemplateUser: () => Promise<void>;
37
+ };
38
+ export default useCSVImport;
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ declare enum CSVType {
3
+ Students = "students",
4
+ Subjects = "subjects",
5
+ Grades = "grades",
6
+ Attendances = "attendances",
7
+ ClassReflection = "classReflection",
8
+ Others = "others",
9
+ AllUser = "allUser"
10
+ }
11
+ interface CSVImportButton {
12
+ text: string;
13
+ backgroundColor: string;
14
+ type: CSVType;
15
+ }
16
+ export interface Option {
17
+ label: string;
18
+ value: number;
19
+ }
20
+ declare const useCSVImportTab: () => {
21
+ isLoading: any;
22
+ buttons: CSVImportButton[];
23
+ id: string;
24
+ setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
25
+ upload: (file: any) => Promise<void>;
26
+ initImportReflection: any;
27
+ setInitImportReflection: import("react").Dispatch<any>;
28
+ onConfirm: (values: any) => Promise<void>;
29
+ CSVType: typeof CSVType;
30
+ dataFile: any;
31
+ setDataFile: import("react").Dispatch<any>;
32
+ setArrStudent: import("react").Dispatch<any>;
33
+ arrStudent: any;
34
+ isCheckDomainIBS: boolean;
35
+ onChangeTeacher: (teacher: Option) => void;
36
+ uploadByTeacherId: (file: any) => Promise<void>;
37
+ setDataFileImportStudent: (dataFile: any) => void;
38
+ onUpLoadStudentFile: () => void;
39
+ defaultTeacher: number;
40
+ fileName: string;
41
+ onStudentSubmit: () => void;
42
+ downloadTemplateUser: () => Promise<void>;
43
+ errorsValidate: string[];
44
+ setErrorsValidate: import("react").Dispatch<import("react").SetStateAction<string[]>>;
45
+ };
46
+ export default useCSVImportTab;
@@ -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;
@@ -18,9 +18,9 @@ interface Props extends PopoverProps {
18
18
  getOption?: (user: any, t?: any) => FilterOption;
19
19
  }
20
20
  declare const useFilterPopover: (props: Props) => {
21
- ref: import("react").RefObject<HTMLDivElement>;
21
+ ref: import("react").RefObject<HTMLDivElement | null>;
22
22
  options: FilterOption[];
23
- inputRef: import("react").MutableRefObject<any>;
23
+ inputRef: import("react").RefObject<any>;
24
24
  sOptions: any[] | undefined;
25
25
  isAscending: boolean;
26
26
  isDescending: boolean;
@@ -0,0 +1,5 @@
1
+ declare const useResendMail: () => {
2
+ handleSendMultiUsers: (listUserIds: any) => void;
3
+ handleSendSingleUser: (userId: string) => void;
4
+ };
5
+ export default useResendMail;
@@ -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,11 @@ 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;
6
+ teacherOptions?: any[];
7
+ assistantOptions?: any[];
8
+ counselorOptions?: any[];
9
+ secondaryTeacherOptions?: any[];
5
10
  }
6
11
  declare const useTableHeader: (props: Props) => {
7
12
  popoverFilters: UserFilterField;
@@ -3,8 +3,8 @@ import { IOptions } from "../constants/types";
3
3
  declare const useTeacherList: () => {
4
4
  selectedTeachers: object | undefined;
5
5
  teacherOptions: IOptions[];
6
- handleSelectTeacher: (teacherId: string, studentUserId: string) => void;
7
- handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => void;
6
+ handleSelectTeacher: (teacherIds: Array<string>, 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;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { USER_CHOICE } from "../constants/types";
3
+ declare const useUserDeletedList: () => {
4
+ userList: USER_CHOICE[];
5
+ totalItems: number;
6
+ filters: import("../../..").Filter;
7
+ getData: () => Promise<void>;
8
+ removeData: (id: string) => void;
9
+ changeFilters: (updatedFilters: any) => void;
10
+ modal: import("react").RefObject<any>;
11
+ openModal: () => void;
12
+ userChoiced: USER_CHOICE;
13
+ setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
14
+ options: {
15
+ label: string;
16
+ value: any;
17
+ }[];
18
+ teacherChangeId: string;
19
+ setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
20
+ resetData: () => void;
21
+ };
22
+ export default useUserDeletedList;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { USER_CHOICE } from "../constants/types";
3
+ declare const useUserDeletedModal: () => {
4
+ userChoiced: USER_CHOICE;
5
+ setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
6
+ teacherList: never[];
7
+ options: {
8
+ label: string;
9
+ value: any;
10
+ }[];
11
+ setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
12
+ teacherChangeId: string;
13
+ };
14
+ export default useUserDeletedModal;
@@ -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,15 @@ declare type UserDetail = {
9
10
  isActive: boolean;
10
11
  profileImageFileName: string;
11
12
  sourcedId?: string;
13
+ teacherUserId?: string[];
14
+ gradeLevel?: string;
15
+ };
16
+ declare type IUerRoleDataCheck = {
17
+ isHasTeacherData: boolean;
18
+ isHasEduTeacherData: boolean;
19
+ isHasAssistantData: boolean;
20
+ isHasCounselorData: boolean;
21
+ isHasSecondaryTeacherData: boolean;
12
22
  };
13
23
  declare const useUserDetail: (id?: string | undefined) => {
14
24
  userDetail: UserDetail;
@@ -24,5 +34,9 @@ declare const useUserDetail: (id?: string | undefined) => {
24
34
  currentRoles: string[];
25
35
  handleDisableRoles: (currentRoles: string) => boolean;
26
36
  handleResetPassword: (userId: string) => Promise<void>;
37
+ teacherOptions: IOptions[];
38
+ openModel: boolean;
39
+ handleToggleModel: () => void;
40
+ userHasData: IUerRoleDataCheck;
27
41
  };
28
42
  export default useUserDetail;
@@ -8,8 +8,11 @@ declare const useUserList: () => {
8
8
  removeData: (id: string) => void;
9
9
  changeFilters: (updatedFilters: any) => void;
10
10
  reDirectDetailPage: (id?: number | undefined) => void;
11
- swicthUser: (id: string) => Promise<void>;
11
+ switchUser: (id: string) => Promise<void>;
12
12
  handleSyncRosterUsers: () => Promise<void>;
13
13
  rosterUserInfo: (record: any) => string;
14
+ userIds: string[];
15
+ onSelectAllUser: () => Promise<void>;
16
+ onSelectUser: (userId: string) => void;
14
17
  };
15
18
  export default useUserList;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const AssignStudentList: () => JSX.Element;
1
+ import React from "react";
2
+ declare const AssignStudentList: () => React.JSX.Element;
3
3
  export default AssignStudentList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const CSVImport: FC;
3
+ export default CSVImport;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UserContainer: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UserContainer: () => React.JSX.Element;
3
3
  export default UserContainer;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const UserDeleteList: () => React.JSX.Element;
3
+ export default UserDeleteList;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UserDetail: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UserDetail: () => React.JSX.Element;
3
3
  export default UserDetail;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UserList: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UserList: () => React.JSX.Element;
3
3
  export default UserList;