mario-core 2.10.6-beta → 2.10.6-release

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 (95) hide show
  1. package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
  2. package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
  3. package/dist/components/Buttons/SyncButton.d.ts +8 -0
  4. package/dist/components/Inputs/PasswordInput.d.ts +1 -0
  5. package/dist/components/Labels/RequiredLabel.d.ts +1 -0
  6. package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
  7. package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
  8. package/dist/components/Selectors/constants/constant.d.ts +1 -1
  9. package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
  10. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  11. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  12. package/dist/containers/Login/constant/types.d.ts +34 -0
  13. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  14. package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
  15. package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
  16. package/dist/containers/Login/views/Dashboard.d.ts +2 -1
  17. package/dist/containers/Login/views/Login.d.ts +1 -0
  18. package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
  19. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  20. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  21. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
  22. package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
  23. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
  24. package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
  25. package/dist/containers/User/components/DeleteBulkModel copy.d.ts +4 -0
  26. package/dist/containers/User/components/DeleteBulkModel.d.ts +4 -0
  27. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  28. package/dist/containers/User/components/HeaderCell.d.ts +19 -0
  29. package/dist/containers/User/components/RemoveAssistant.d.ts +4 -0
  30. package/dist/containers/User/components/RemoveCounselor.d.ts +4 -0
  31. package/dist/containers/User/components/RemoveSupportTeacher.d.ts +4 -0
  32. package/dist/containers/User/components/RemoveTeacher.d.ts +4 -0
  33. package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
  34. package/dist/containers/User/components/SwitchTeacherModal.d.ts +3 -0
  35. package/dist/containers/User/components/TableHeader.d.ts +15 -0
  36. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  37. package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
  38. package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
  39. package/dist/containers/User/configs/userSchema.d.ts +0 -2
  40. package/dist/containers/User/configs/utils.d.ts +8 -0
  41. package/dist/containers/User/constants/constants.d.ts +62 -0
  42. package/dist/containers/User/constants/types.d.ts +257 -0
  43. package/dist/containers/User/hooks/useAssignStudent.d.ts +45 -0
  44. package/dist/containers/User/hooks/useAssignStudentList.d.ts +36 -0
  45. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  46. package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
  47. package/dist/containers/User/hooks/useCSVImportTab.d.ts +44 -0
  48. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  49. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  50. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  51. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  52. package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
  53. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  54. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  55. package/dist/containers/User/hooks/useTableHeader.d.ts +20 -0
  56. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  57. package/dist/containers/User/hooks/useUserDeletedList.d.ts +37 -0
  58. package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
  59. package/dist/containers/User/hooks/useUserDetail.d.ts +18 -0
  60. package/dist/containers/User/hooks/useUserList.d.ts +9 -3
  61. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  62. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  63. package/dist/containers/User/views/CSVImport.d.ts +3 -0
  64. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  65. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  66. package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
  67. package/dist/hooks/useLanguages.d.ts +10 -0
  68. package/dist/index.css +468 -77
  69. package/dist/index.d.ts +12 -6
  70. package/dist/index.js +48526 -4476
  71. package/dist/index.js.map +1 -1
  72. package/dist/index.modern.js +48520 -4483
  73. package/dist/index.modern.js.map +1 -1
  74. package/dist/layouts/TheHeader.d.ts +4 -1
  75. package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
  76. package/dist/redux/commons/action.d.ts +4 -0
  77. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  78. package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
  79. package/dist/rootReducer.d.ts +5 -0
  80. package/dist/services/accountService.d.ts +11 -2
  81. package/dist/services/csvImportService.d.ts +7 -0
  82. package/dist/services/csvService.d.ts +7 -0
  83. package/dist/services/emailTemplateService.d.ts +1 -0
  84. package/dist/services/schoolService.d.ts +2 -0
  85. package/dist/services/userService.d.ts +28 -1
  86. package/dist/services/weeklyQuestService.d.ts +1 -0
  87. package/dist/types/Filter.d.ts +6 -0
  88. package/dist/types/Language.d.ts +8 -0
  89. package/dist/types/Payload.d.ts +1 -0
  90. package/dist/types/WeeklyQuest.d.ts +37 -0
  91. package/dist/types/user.d.ts +3 -0
  92. package/dist/utils/constants.d.ts +10 -1
  93. package/dist/utils/getCookieValue.d.ts +2 -0
  94. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  95. package/package.json +9 -4
@@ -0,0 +1,257 @@
1
+ export declare type User = {
2
+ id: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ firstInitial: string;
6
+ email: string;
7
+ phoneNumber: string;
8
+ roles: string[];
9
+ dateOfBirth: string;
10
+ createTime: string;
11
+ isActive: boolean;
12
+ profileImageFileName: string;
13
+ fullName: string;
14
+ sourcedId: string;
15
+ rosterUser: RosterUser;
16
+ grade: string;
17
+ teachers: string;
18
+ assistants: string;
19
+ counselors: string;
20
+ eduTeachers: string;
21
+ supportTeachers: string;
22
+ };
23
+ export declare type RosterUser = {
24
+ sourcedId: string;
25
+ username: string;
26
+ status: string;
27
+ givenName: string;
28
+ middleName: string;
29
+ familyName: string;
30
+ email: string;
31
+ grades: string;
32
+ role: string;
33
+ };
34
+ export declare type Option = {
35
+ label: string;
36
+ value: string;
37
+ };
38
+ export declare type UserFilter = {
39
+ currentPage?: number;
40
+ pageSize?: number;
41
+ searchString?: string;
42
+ isDescending?: boolean;
43
+ sortBy?: UserOrder;
44
+ searchBy?: SearchBy;
45
+ searchByStrings?: string[];
46
+ isStudent?: string[];
47
+ };
48
+ export declare type StudentFilter = {
49
+ currentPage?: number;
50
+ pageSize?: number;
51
+ searchString?: string;
52
+ isAssigned?: boolean;
53
+ sortBy?: UserOrder;
54
+ orderBy?: string;
55
+ };
56
+ export declare type UserFilterField = {
57
+ currentPage?: number;
58
+ pageSize?: number;
59
+ searchString?: string;
60
+ isDescending?: boolean;
61
+ searchBy?: SearchBy;
62
+ searchStringBy?: string;
63
+ isStudentFilter?: boolean;
64
+ byStudent?: boolean;
65
+ };
66
+ export declare type UserColumn = {
67
+ isCenter?: boolean;
68
+ name: string;
69
+ sortBy?: UserOrder;
70
+ className?: string;
71
+ searchBy?: SearchBy;
72
+ getOption?: (user: any, t?: any) => FilterOption;
73
+ options?: FilterOption[];
74
+ onSelectAll?: Function;
75
+ isCheckAll?: boolean;
76
+ };
77
+ export declare type StudentAssign = {
78
+ studentId: number;
79
+ id: string;
80
+ email: string;
81
+ fullName: string;
82
+ gradeLevel: string;
83
+ phoneNumber: string;
84
+ isActive?: boolean;
85
+ dateOfBirth?: string;
86
+ profileImageFileName: string;
87
+ quote: string;
88
+ assistantName: string;
89
+ assistantEmail: string;
90
+ assistantUserId: string;
91
+ counselors: Array<ICounselor>;
92
+ secondaryTeacherName: string;
93
+ secondaryTeacherEmail: string;
94
+ secondaryTeacherUserId: string;
95
+ teachers: Array<ITeachers>;
96
+ };
97
+ export interface ITeachers {
98
+ teacherUserId: string;
99
+ mainTeacherName: string;
100
+ mainTeacherEmail: string;
101
+ mainTeacherId?: number;
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
+ }
124
+ export declare type Counselor = {
125
+ id: string;
126
+ counselorId: number;
127
+ firstName: string;
128
+ lastName: string;
129
+ fullName: string;
130
+ email: string;
131
+ };
132
+ export declare type Assistant = {
133
+ id: string;
134
+ assistantId: number;
135
+ firstName: string;
136
+ lastName: string;
137
+ fullName: string;
138
+ email: string;
139
+ };
140
+ export declare type SecondaryTeacher = {
141
+ id: string;
142
+ secondaryTeacherId: number;
143
+ firstName: string;
144
+ lastName: string;
145
+ fullName: string;
146
+ email: string;
147
+ };
148
+ export declare type Teacher = {
149
+ id: string;
150
+ email: string;
151
+ };
152
+ export interface IOptions {
153
+ label: string;
154
+ value: string;
155
+ }
156
+ export declare type AssignStudentDto = {
157
+ id: string;
158
+ mainTeacherUserId?: Array<string>;
159
+ mainTeacherEmail?: Array<string>;
160
+ assistantUserId?: string;
161
+ assistantEmail?: string;
162
+ counselorUserIds?: Array<string>;
163
+ counselorEmails?: Array<string>;
164
+ secondaryTeacherUserId?: string;
165
+ secondaryTeacherEmail?: string;
166
+ removeTeacherUserIds?: string[];
167
+ teacherSwitchUserId?: string;
168
+ };
169
+ export declare type FilterOption = {
170
+ label: string;
171
+ value: string;
172
+ };
173
+ export declare enum UserOrder {
174
+ Id = 0,
175
+ Name = 1,
176
+ Email = 2,
177
+ Age = 3,
178
+ Role = 4,
179
+ Status = 5,
180
+ CreatedAt = 6,
181
+ RosterUser = 7,
182
+ Grade = 8,
183
+ Teacher = 9,
184
+ Assistant = 10,
185
+ Counselor = 11,
186
+ SecondaryTeacher = 12
187
+ }
188
+ export declare enum SearchBy {
189
+ Id = 0,
190
+ Name = 1,
191
+ Email = 2,
192
+ Role = 3,
193
+ RosterUser = 4,
194
+ Status = 5,
195
+ Grade = 6,
196
+ Teacher = 7,
197
+ Assistant = 8,
198
+ Counselor = 9,
199
+ SecondaryTeacher = 10
200
+ }
201
+ export declare enum TeacherType {
202
+ Teacher = 0,
203
+ Assistant = 1,
204
+ Counselor = 2,
205
+ SecondaryTeacher = 3
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
+ }
@@ -0,0 +1,45 @@
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) => {
4
+ handleAssignSingleStudent: (id: string) => void;
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>;
44
+ };
45
+ export default useAssignStudent;
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ import { StudentAssign, StudentFilter, UserOrder } from "../constants/types";
3
+ declare const useAssignStudentList: () => {
4
+ handelSort: (sortBy: UserOrder) => void;
5
+ handleRetrievedData: () => void;
6
+ totalItem: number;
7
+ userList: StudentAssign[];
8
+ filters: StudentFilter;
9
+ changeFilters: (updatedFilters: any) => void;
10
+ handleSelectAll: () => void;
11
+ handleClickCheck: (e: React.ChangeEvent<HTMLInputElement>) => void;
12
+ isCheckAll: boolean;
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
+ }[];
35
+ };
36
+ 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, isSelect?: boolean | undefined) => void;
8
+ setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
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,44 @@
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
+ };
44
+ export default useCSVImportTab;
@@ -0,0 +1,2 @@
1
+ declare const useClickOutside: (wrapperRef: any, onClickOutside?: (() => void) | undefined) => void;
2
+ export default useClickOutside;
@@ -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, isSelect?: boolean | undefined) => void;
8
+ setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
10
+ export default useCounselorList;
@@ -0,0 +1,5 @@
1
+ import { UserFilter } from "../constants/types";
2
+ declare const useExportUsersCsv: () => {
3
+ exportUsers: (filters: UserFilter) => Promise<void>;
4
+ };
5
+ export default useExportUsersCsv;
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
3
+ import { PopoverProps } from "reactstrap";
4
+ interface Props extends PopoverProps {
5
+ filters?: UserFilter;
6
+ sortBy: UserOrder;
7
+ searchBy?: SearchBy;
8
+ users: string[];
9
+ defaultOptions?: FilterOption[];
10
+ selectedOptions?: string[];
11
+ searchKey: string;
12
+ onChangeSearchKey: (value: string) => void;
13
+ onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
14
+ onSearch?: (search: string, searchBy: SearchBy) => void;
15
+ onClose?: () => void;
16
+ onFilter?: () => void;
17
+ onChangeFilters?: (filter: UserFilter) => void;
18
+ getOption?: (user: any, t?: any) => FilterOption;
19
+ }
20
+ declare const useFilterPopover: (props: Props) => {
21
+ ref: import("react").RefObject<HTMLDivElement>;
22
+ options: FilterOption[];
23
+ inputRef: import("react").MutableRefObject<any>;
24
+ sOptions: any[] | undefined;
25
+ isAscending: boolean;
26
+ isDescending: boolean;
27
+ filteredOptions: FilterOption[];
28
+ searchKey: string;
29
+ handleSearch: () => void;
30
+ handleApplyFilter: () => void;
31
+ handleOptionSelected: (e?: any) => void;
32
+ handleOptionSelectedAll: (e?: any) => void;
33
+ handleSortDesc: () => void;
34
+ handleSortAsc: () => void;
35
+ handleChangeSearchKey: (e: React.ChangeEvent<HTMLInputElement>) => void;
36
+ };
37
+ export default useFilterPopover;
@@ -0,0 +1,5 @@
1
+ declare const useResendMail: () => {
2
+ handleSendMultiUsers: (listUserIds: any) => void;
3
+ handleSendSingleUser: (userId: string) => void;
4
+ };
5
+ export default useResendMail;
@@ -0,0 +1,8 @@
1
+ import { Option } from "../constants/types";
2
+ declare const useRosterUserSelector: (roles: string[], value?: string | undefined) => {
3
+ users: Option[];
4
+ isLoading: boolean;
5
+ user: Option | undefined;
6
+ handleInputChange: (value: string) => void;
7
+ };
8
+ export default useRosterUserSelector;
@@ -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, isSelect?: boolean | undefined) => void;
8
+ setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
10
+ export default useSecondaryTeacherList;
@@ -0,0 +1,20 @@
1
+ import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/types";
2
+ interface Props {
3
+ filters: UserFilter;
4
+ onChangeFilters?: (filter: UserFilter) => void;
5
+ isStudentFilter?: boolean;
6
+ teacherOptions?: any[];
7
+ assistantOptions?: any[];
8
+ counselorOptions?: any[];
9
+ secondaryTeacherOptions?: any[];
10
+ }
11
+ declare const useTableHeader: (props: Props) => {
12
+ popoverFilters: UserFilterField;
13
+ popoverId: string | undefined;
14
+ users: string[];
15
+ handleFilterIcon: (id: string, searchBy?: SearchBy | undefined, searchStringBy?: string | undefined, sortBy?: UserOrder | undefined) => void;
16
+ handleCloseFilter: () => void;
17
+ handleSearch: (search: string, searchBy?: SearchBy | undefined) => void;
18
+ handleChangeFilters: (value?: string[] | undefined, searchBy?: SearchBy | undefined) => void;
19
+ };
20
+ export default useTableHeader;
@@ -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: (teacherIds: Array<string>, studentUserId: string) => void;
7
+ handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string, isSelectTeacher?: boolean | undefined) => void;
8
+ setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
10
+ export default useTeacherList;
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ export declare type USER_CHOICE = {
3
+ id: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ fullName: string;
8
+ roles: string[];
9
+ };
10
+ export declare const initialUserChoice: {
11
+ id: string;
12
+ firstName: string;
13
+ lastName: string;
14
+ email: string;
15
+ fullName: string;
16
+ roles: never[];
17
+ };
18
+ declare const useUserDeletedList: () => {
19
+ userList: USER_CHOICE[];
20
+ totalItems: number;
21
+ filters: import("../../..").Filter;
22
+ getData: () => Promise<void>;
23
+ removeData: (id: string) => void;
24
+ changeFilters: (updatedFilters: any) => void;
25
+ modal: import("react").MutableRefObject<any>;
26
+ openModal: () => void;
27
+ userChoiced: USER_CHOICE;
28
+ setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
29
+ options: {
30
+ label: string;
31
+ value: any;
32
+ }[];
33
+ teacherChangeId: string;
34
+ setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
35
+ resetData: () => void;
36
+ };
37
+ export default useUserDeletedList;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { USER_CHOICE } from "./useUserDeletedList";
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;
@@ -8,6 +9,16 @@ declare type UserDetail = {
8
9
  roles: string[];
9
10
  isActive: boolean;
10
11
  profileImageFileName: string;
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;
11
22
  };
12
23
  declare const useUserDetail: (id?: string | undefined) => {
13
24
  userDetail: UserDetail;
@@ -20,5 +31,12 @@ declare const useUserDetail: (id?: string | undefined) => {
20
31
  setEditedTrue: () => Promise<void>;
21
32
  confirmChangePassword: (data: any) => Promise<void>;
22
33
  forgotPasswordRequest: (data: any) => Promise<void>;
34
+ currentRoles: string[];
35
+ handleDisableRoles: (currentRoles: string) => boolean;
36
+ handleResetPassword: (userId: string) => Promise<void>;
37
+ teacherOptions: IOptions[];
38
+ openModel: boolean;
39
+ handleToggleModel: () => void;
40
+ userHasData: IUerRoleDataCheck;
23
41
  };
24
42
  export default useUserDetail;
@@ -1,12 +1,18 @@
1
1
  declare const useUserList: () => {
2
2
  userList: any;
3
3
  totalItems: any;
4
- filters: import("../../..").Filter;
4
+ filters: import("../constants/types").UserFilter;
5
5
  queryName: string | null;
6
- getData: (fullName?: string | undefined) => Promise<void>;
6
+ fullName: string;
7
+ getData: () => Promise<void>;
7
8
  removeData: (id: string) => void;
8
9
  changeFilters: (updatedFilters: any) => void;
9
10
  reDirectDetailPage: (id?: number | undefined) => void;
10
- swicthUser: (id: string) => Promise<void>;
11
+ switchUser: (id: string) => Promise<void>;
12
+ handleSyncRosterUsers: () => Promise<void>;
13
+ rosterUserInfo: (record: any) => string;
14
+ userIds: string[];
15
+ onSelectAllUser: () => Promise<void>;
16
+ onSelectUser: (userId: string) => void;
11
17
  };
12
18
  export default useUserList;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { UserFilter } from "../constants/types";
3
+ declare const useFilters: () => {
4
+ filters: UserFilter;
5
+ setFilters: import("react").Dispatch<import("react").SetStateAction<UserFilter>>;
6
+ changeFilters: (updatedFilters: any) => void;
7
+ };
8
+ export default useFilters;