mario-core 1.0.8 → 1.1.0-arabic-layout

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 (211) hide show
  1. package/dist/assets/Images.d.ts +9 -0
  2. package/dist/components/Alerts/CommonAlert.d.ts +3 -0
  3. package/dist/components/Alerts/ReactNotification.d.ts +4 -0
  4. package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
  5. package/dist/components/Buttons/CloseButton.d.ts +8 -0
  6. package/dist/components/Buttons/LoginNavButton.d.ts +8 -0
  7. package/dist/components/Buttons/SyncButton.d.ts +8 -0
  8. package/dist/components/Buttons/UploadFileButton.d.ts +13 -0
  9. package/dist/components/Inputs/PasswordInput.d.ts +9 -0
  10. package/dist/components/Inputs/SearchBoxContainer.d.ts +10 -0
  11. package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
  12. package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
  13. package/dist/components/Others/QuitPrompt.d.ts +2 -0
  14. package/dist/components/Scroll/ScrollToTop.d.ts +3 -0
  15. package/dist/components/Selectors/AcademicClassSelector.d.ts +3 -0
  16. package/dist/components/Selectors/CategorySelector.d.ts +3 -0
  17. package/dist/components/Selectors/CustomSelector.d.ts +1 -1
  18. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +3 -0
  19. package/dist/components/Selectors/constants/constant.d.ts +10 -0
  20. package/dist/components/Selectors/hooks/useCategorySelector.d.ts +5 -0
  21. package/dist/components/Tabs/CustomTab.d.ts +3 -0
  22. package/dist/configs/editorConfig.d.ts +6 -6
  23. package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -0
  24. package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +7 -0
  25. package/dist/containers/EmailTemplate/components/MailParam.d.ts +1 -0
  26. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +16 -2
  27. package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +3 -2
  28. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +5 -0
  29. package/dist/containers/Faq/hooks/useFaqList.d.ts +2 -2
  30. package/dist/containers/Gallery/components/Filter.d.ts +8 -0
  31. package/dist/containers/Gallery/components/Media.d.ts +8 -0
  32. package/dist/containers/Gallery/components/MediaDetail.d.ts +7 -0
  33. package/dist/containers/Gallery/components/MediaList.d.ts +7 -0
  34. package/dist/containers/Gallery/components/MediaNav.d.ts +18 -0
  35. package/dist/containers/Gallery/constants/gallery.types.d.ts +21 -0
  36. package/dist/containers/Gallery/extensions/helpers.d.ts +4 -0
  37. package/dist/containers/Gallery/hooks/useGalleryList.d.ts +31 -0
  38. package/dist/containers/Gallery/views/GalleryList.d.ts +6 -0
  39. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  40. package/dist/containers/Login/constant/types.d.ts +31 -0
  41. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  42. package/dist/containers/Login/hooks/useForgotPassword.d.ts +23 -0
  43. package/dist/containers/Login/hooks/useLogin.d.ts +21 -0
  44. package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -0
  45. package/dist/containers/Login/views/Dashboard.d.ts +3 -0
  46. package/dist/containers/Login/views/Login.d.ts +8 -1
  47. package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
  48. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  49. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  50. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +7 -0
  51. package/dist/containers/Login/views/block/BlockLogin.d.ts +21 -0
  52. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +3 -0
  53. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +11 -0
  54. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +3 -0
  55. package/dist/containers/Login/views/block/CloseBlock.d.ts +6 -0
  56. package/dist/containers/Login/views/block/ContentHomePage.d.ts +5 -0
  57. package/dist/containers/Login/views/block/IconContent.d.ts +7 -0
  58. package/dist/containers/Login/views/block/QuoteContent.d.ts +3 -0
  59. package/dist/containers/Notifications/components/NotificationButton.d.ts +5 -0
  60. package/dist/containers/Notifications/components/NotificationStatusSelector.d.ts +7 -0
  61. package/dist/containers/Notifications/hooks/useNotificationList.d.ts +17 -0
  62. package/dist/containers/Notifications/hooks/useUnreadNotification.d.ts +4 -0
  63. package/dist/containers/Notifications/views/NotificationList.d.ts +3 -0
  64. package/dist/containers/Skill/components/SkillSelector.d.ts +3 -0
  65. package/dist/containers/Skill/hooks/useSkillDetail.d.ts +8 -1
  66. package/dist/containers/Skill/hooks/useSkillList.d.ts +2 -2
  67. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  68. package/dist/containers/User/components/HeaderCell.d.ts +18 -0
  69. package/dist/containers/User/components/TableHeader.d.ts +11 -0
  70. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  71. package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -0
  72. package/dist/containers/User/configs/userSchema.d.ts +7 -0
  73. package/dist/containers/User/constants/constants.d.ts +21 -0
  74. package/dist/containers/User/constants/types.d.ts +177 -0
  75. package/dist/containers/User/hooks/useAssignStudent.d.ts +15 -0
  76. package/dist/containers/User/hooks/useAssignStudentList.d.ts +15 -0
  77. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  78. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  79. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  80. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  81. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  82. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  83. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  84. package/dist/containers/User/hooks/useTableHeader.d.ts +16 -0
  85. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  86. package/dist/containers/User/hooks/useUserDetail.d.ts +18 -1
  87. package/dist/containers/User/hooks/useUserList.d.ts +7 -2
  88. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  89. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  90. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  91. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  92. package/dist/hooks/useClassFontSize.d.ts +4 -0
  93. package/dist/hooks/useFilters.d.ts +8 -0
  94. package/dist/hooks/useLanguages.d.ts +10 -0
  95. package/dist/i18n.d.ts +2 -0
  96. package/dist/index.css +949 -5
  97. package/dist/index.d.ts +60 -6
  98. package/dist/index.js +48743 -2408
  99. package/dist/index.js.map +1 -1
  100. package/dist/index.modern.js +48653 -2418
  101. package/dist/index.modern.js.map +1 -1
  102. package/dist/layouts/TheHeader.d.ts +4 -1
  103. package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
  104. package/dist/layouts/TheLanguageDropdown.d.ts +3 -0
  105. package/dist/layouts/TheLayout.d.ts +1 -0
  106. package/dist/redux/assessments/reducer.d.ts +1 -0
  107. package/dist/redux/assignment/action.d.ts +1 -0
  108. package/dist/redux/assistants/action.d.ts +1 -0
  109. package/dist/redux/assistants/reducer.d.ts +2 -0
  110. package/dist/redux/badges/action.d.ts +1 -1
  111. package/dist/redux/bandScores/action.d.ts +1 -0
  112. package/dist/redux/bandScores/reducer.d.ts +2 -0
  113. package/dist/redux/certificate/action.d.ts +1 -0
  114. package/dist/redux/certificate/reducer.d.ts +2 -0
  115. package/dist/redux/classes/action.d.ts +1 -1
  116. package/dist/redux/commons/action.d.ts +18 -0
  117. package/dist/redux/conferenceRubrics/action.d.ts +1 -1
  118. package/dist/redux/customAlert/action.d.ts +1 -0
  119. package/dist/redux/customAlert/reducer.d.ts +2 -0
  120. package/dist/redux/dashboard/action.d.ts +5 -0
  121. package/dist/redux/dashboard/reducer.d.ts +2 -0
  122. package/dist/redux/dataPlayer/action.d.ts +2 -0
  123. package/dist/redux/dataPlayer/reducer.d.ts +2 -0
  124. package/dist/redux/emailTemplates/action.d.ts +1 -1
  125. package/dist/redux/faqs/action.d.ts +1 -1
  126. package/dist/redux/gallery/action.d.ts +2 -0
  127. package/dist/redux/gallery/reducer.d.ts +2 -0
  128. package/dist/redux/improveMyClass/action.d.ts +1 -0
  129. package/dist/redux/improveMyClass/reducer.d.ts +2 -0
  130. package/dist/redux/learningStrategies/action.d.ts +1 -1
  131. package/dist/redux/learningSupportCategories/action.d.ts +1 -0
  132. package/dist/redux/learningSupportCategories/reducer.d.ts +2 -0
  133. package/dist/redux/mailCategories/action.d.ts +1 -0
  134. package/dist/redux/mailCategories/reducer.d.ts +2 -0
  135. package/dist/redux/navMobile/action.d.ts +1 -0
  136. package/dist/redux/navMobile/reducer.d.ts +2 -0
  137. package/dist/redux/notifications/action.d.ts +3 -0
  138. package/dist/redux/notifications/reducer.d.ts +2 -0
  139. package/dist/redux/questionBanks/action.d.ts +1 -1
  140. package/dist/redux/questionCategory/action.d.ts +1 -0
  141. package/dist/redux/questionCategory/reducer.d.ts +2 -0
  142. package/dist/redux/reflectionForms/action.d.ts +1 -1
  143. package/dist/redux/reflectionResults/action.d.ts +1 -0
  144. package/dist/redux/reflectionResults/reducer.d.ts +2 -0
  145. package/dist/redux/schoolBlankDays/action.d.ts +1 -0
  146. package/dist/redux/schoolBlankDays/reducer.d.ts +2 -0
  147. package/dist/redux/semester/action.d.ts +1 -0
  148. package/dist/redux/semester/reducer.d.ts +2 -0
  149. package/dist/redux/sessionPlayers/action.d.ts +5 -0
  150. package/dist/redux/sessionPlayers/reducer.d.ts +2 -0
  151. package/dist/redux/sessionTemplateGeneralClasses/action.d.ts +1 -0
  152. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +2 -0
  153. package/dist/redux/sessionTemplates/action.d.ts +1 -0
  154. package/dist/redux/sessionTemplates/reducer.d.ts +2 -0
  155. package/dist/redux/skills/action.d.ts +1 -1
  156. package/dist/redux/subjects/action.d.ts +1 -1
  157. package/dist/redux/suggestionBanks/action.d.ts +1 -1
  158. package/dist/redux/teacher/myStudent/action.d.ts +1 -0
  159. package/dist/redux/teacher/myStudent/reducer.d.ts +2 -0
  160. package/dist/redux/tutorialScreen/action.d.ts +1 -0
  161. package/dist/redux/tutorialScreen/reducer.d.ts +5 -0
  162. package/dist/redux/users/action.d.ts +1 -0
  163. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  164. package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
  165. package/dist/redux/widget/action.d.ts +1 -0
  166. package/dist/redux/widget/reducer.d.ts +2 -0
  167. package/dist/rootReducer.d.ts +32 -0
  168. package/dist/services/accountService.d.ts +18 -3
  169. package/dist/services/api.d.ts +3 -2
  170. package/dist/services/classService.d.ts +1 -0
  171. package/dist/services/emailTemplateService.d.ts +6 -5
  172. package/dist/services/faqService.d.ts +5 -5
  173. package/dist/services/fileServices.d.ts +13 -1
  174. package/dist/services/galleryService.d.ts +2 -0
  175. package/dist/services/mailCategoryService.d.ts +1 -0
  176. package/dist/services/notificationService.d.ts +7 -0
  177. package/dist/services/questionCategoryService.d.ts +2 -1
  178. package/dist/services/schoolService.d.ts +2 -0
  179. package/dist/services/skillService.d.ts +5 -5
  180. package/dist/services/suggestionCategoryService.d.ts +1 -0
  181. package/dist/services/userService.d.ts +27 -6
  182. package/dist/types/Dashboard.d.ts +5 -0
  183. package/dist/types/Filter.d.ts +8 -0
  184. package/dist/types/Language.d.ts +8 -0
  185. package/dist/types/Notification.d.ts +8 -0
  186. package/dist/types/Payload.d.ts +16 -0
  187. package/dist/types/user.d.ts +3 -0
  188. package/dist/utils/constants.d.ts +40 -5
  189. package/dist/utils/getCookieValue.d.ts +2 -0
  190. package/dist/utils/getFileUrl.d.ts +2 -0
  191. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  192. package/dist/utils/getTextFromHTML.d.ts +2 -0
  193. package/dist/utils/utcToLocalTime.d.ts +1 -1
  194. package/package.json +18 -2
  195. package/README.md +0 -30
  196. package/dist/commons/action.d.ts +0 -2
  197. package/dist/containers/Classes/views/ClassList.d.ts +0 -3
  198. package/dist/containers/EmailTemplateDetail.d.ts +0 -3
  199. package/dist/containers/EmailTemplateList.d.ts +0 -3
  200. package/dist/containers/Login.d.ts +0 -3
  201. package/dist/containers/User.d.ts +0 -3
  202. package/dist/types/ClassDetail.d.ts +0 -3
  203. package/dist/utils/index.d.ts +0 -1
  204. package/dist/views/TheContent.d.ts +0 -3
  205. package/dist/views/TheFooter.d.ts +0 -3
  206. package/dist/views/TheHeader.d.ts +0 -3
  207. package/dist/views/TheHeaderDropdown.d.ts +0 -3
  208. package/dist/views/TheLayout.d.ts +0 -3
  209. package/dist/views/TheSidebar.d.ts +0 -3
  210. /package/dist/containers/{Classes/components/ClassDetailModal.d.ts → Gallery/components/ActionModal.d.ts} +0 -0
  211. /package/dist/{commons → redux/assignment}/reducer.d.ts +0 -0
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ to: string;
4
+ }
5
+ declare const CloseBlock: FC<Props>;
6
+ export default CloseBlock;
@@ -0,0 +1,5 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ }
4
+ declare const ContentHomePage: FC<Props>;
5
+ export default ContentHomePage;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ srcIcon: string;
4
+ content: string;
5
+ }
6
+ declare const IconContent: FC<Props>;
7
+ export default IconContent;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const QuoteContent: () => JSX.Element;
3
+ export default QuoteContent;
@@ -0,0 +1,5 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ }
4
+ declare const NotificationButton: FC<Props>;
5
+ export default NotificationButton;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface Props {
3
+ value: boolean;
4
+ onChange: any;
5
+ }
6
+ declare const _default: React.NamedExoticComponent<Props>;
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare const useNotificationList: () => {
2
+ notificationList: any;
3
+ totalItems: any;
4
+ unReadNotification: any;
5
+ filters: {
6
+ currentPage: number;
7
+ pageSize: number;
8
+ searchString: string;
9
+ isRead: boolean;
10
+ };
11
+ changeFilters: (objectValue: any) => void;
12
+ updateNotification: (id: any, isRead: any) => void;
13
+ viewNotification: (notification: any) => void;
14
+ updateAll: () => Promise<void>;
15
+ toggleUpdateAllStatus: boolean;
16
+ };
17
+ export default useNotificationList;
@@ -0,0 +1,4 @@
1
+ declare const useUnReadNotification: () => {
2
+ unReadNotification: any;
3
+ };
4
+ export default useUnReadNotification;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const NotificationList: () => JSX.Element;
3
+ export default NotificationList;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SkillSelector: (props: any) => JSX.Element;
3
+ export default SkillSelector;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  declare type SkillDetail = {
3
3
  name: string;
4
- comment: string;
4
+ description: string;
5
+ path: string;
6
+ parentSkillId?: number | null;
5
7
  };
6
8
  declare const useSkillDetail: () => {
7
9
  id: number;
@@ -9,5 +11,10 @@ declare const useSkillDetail: () => {
9
11
  skillDetail: SkillDetail;
10
12
  confirmData: (values: any, cb: any) => Promise<void>;
11
13
  initValue: SkillDetail;
14
+ reset: () => void;
15
+ edited: boolean;
16
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
+ setEditedTrue: () => Promise<void>;
18
+ setEditedFalse: () => Promise<void>;
12
19
  };
13
20
  export default useSkillDetail;
@@ -1,7 +1,7 @@
1
- import { Filter } from "../../../types/Filter";
2
1
  declare const useSkillList: () => {
3
2
  skillList: any;
4
- filters: Filter;
3
+ totalItems: any;
4
+ filters: import("../../..").Filter;
5
5
  changeFilters: (updatedFilters: any) => void;
6
6
  getData: () => Promise<void>;
7
7
  removeData: (id: number) => void;
@@ -0,0 +1,21 @@
1
+ import { FC } from "react";
2
+ import { PopoverProps } from "reactstrap";
3
+ import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
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 FilterPopover: FC<Props>;
21
+ export default FilterPopover;
@@ -0,0 +1,18 @@
1
+ import { FC } from "react";
2
+ import { SearchBy, UserColumn, UserFilter, UserOrder } from "../constants/types";
3
+ interface Props {
4
+ data: UserColumn;
5
+ popoverId?: string;
6
+ filters?: UserFilter;
7
+ searchString?: string;
8
+ users: string[];
9
+ selectedOptions?: string[];
10
+ onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
11
+ onSearch?: (search: string, searchBy: SearchBy) => void;
12
+ onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
13
+ onClose?: () => void;
14
+ onChangeFilters?: (filter: UserFilter) => void;
15
+ isCenter?: boolean;
16
+ }
17
+ declare const HeaderCell: FC<Props>;
18
+ export default HeaderCell;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { UserColumn, UserFilter } from "../constants/types";
3
+ interface Props {
4
+ headers: UserColumn[];
5
+ filters: UserFilter;
6
+ fullName?: string;
7
+ onChangeFilters?: (filter: UserFilter) => void;
8
+ isStudentFilter?: boolean;
9
+ }
10
+ declare const TableHeader: FC<Props>;
11
+ export default TableHeader;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => JSX.Element;
3
+ export default TeacherSelector;
@@ -0,0 +1,10 @@
1
+ declare const changePasswordSchema: import("yup/lib/object").OptionalObjectSchema<{
2
+ oldPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
3
+ newPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
+ confirmedNewPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
5
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
6
+ oldPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
7
+ newPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
8
+ confirmedNewPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
9
+ }>>;
10
+ export default changePasswordSchema;
@@ -1,8 +1,15 @@
1
+ import * as yup from "yup";
1
2
  declare const userSchema: import("yup/lib/object").OptionalObjectSchema<{
2
3
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
3
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>;
4
8
  }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
5
9
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
6
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>;
7
14
  }>>;
8
15
  export default userSchema;
@@ -0,0 +1,21 @@
1
+ import { IStaffAssign, StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
2
+ export declare const userOrders: {
3
+ 0: string;
4
+ 1: string;
5
+ 2: string;
6
+ 3: string;
7
+ 4: string;
8
+ 5: string;
9
+ 6: string;
10
+ 7: string;
11
+ };
12
+ export declare const UserColumns: UserColumn[];
13
+ export declare const DEFAULT_PAGE_SIZE: {
14
+ label: string;
15
+ value: number;
16
+ };
17
+ export declare const DEFAULT_FILTER: UserFilter;
18
+ export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
19
+ export declare const DEFAULT_FILTER_POPOVER: UserFilter;
20
+ export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
21
+ export declare const initialStaffBulk: IStaffAssign;
@@ -0,0 +1,177 @@
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
+ };
18
+ export declare type RosterUser = {
19
+ sourcedId: string;
20
+ username: string;
21
+ status: string;
22
+ givenName: string;
23
+ middleName: string;
24
+ familyName: string;
25
+ email: string;
26
+ grades: string;
27
+ role: string;
28
+ };
29
+ export declare type Option = {
30
+ label: string;
31
+ value: string;
32
+ };
33
+ export declare type UserFilter = {
34
+ currentPage?: number;
35
+ pageSize?: number;
36
+ searchString?: string;
37
+ isDescending?: boolean;
38
+ sortBy?: UserOrder;
39
+ searchBy?: SearchBy;
40
+ searchByStrings?: string[];
41
+ };
42
+ export declare type StudentFilter = {
43
+ currentPage?: number;
44
+ pageSize?: number;
45
+ searchString?: string;
46
+ isAssigned?: boolean;
47
+ sortBy?: UserOrder;
48
+ orderBy?: string;
49
+ };
50
+ export declare type UserFilterField = {
51
+ currentPage?: number;
52
+ pageSize?: number;
53
+ searchString?: string;
54
+ isDescending?: boolean;
55
+ searchBy?: SearchBy;
56
+ searchStringBy?: string;
57
+ isStudentFilter?: boolean;
58
+ };
59
+ export declare type UserColumn = {
60
+ isCenter?: boolean;
61
+ name: string;
62
+ sortBy?: UserOrder;
63
+ className?: string;
64
+ searchBy?: SearchBy;
65
+ getOption?: (user: any, t?: any) => FilterOption;
66
+ options?: FilterOption[];
67
+ onSelectAll?: Function;
68
+ isCheckAll?: boolean;
69
+ };
70
+ export declare type StudentAssign = {
71
+ studentId: number;
72
+ id: string;
73
+ email: string;
74
+ fullName: string;
75
+ gradeLevel: string;
76
+ phoneNumber: string;
77
+ isActive?: boolean;
78
+ dateOfBirth?: string;
79
+ profileImageFileName: string;
80
+ quote: string;
81
+ assistantName: string;
82
+ assistantEmail: string;
83
+ counselorName: string;
84
+ counselorEmail: string;
85
+ secondaryTeacherName: string;
86
+ secondaryTeacherEmail: string;
87
+ teachers: Array<ITeachers>;
88
+ };
89
+ export interface ITeachers {
90
+ teacherUserId: string;
91
+ mainTeacherName: string;
92
+ mainTeacherEmail: string;
93
+ mainTeacherId?: number;
94
+ }
95
+ export interface IStaffAssign {
96
+ teacher: {
97
+ id: string;
98
+ email: string;
99
+ }[];
100
+ assistantId: string;
101
+ assistantEmail: string;
102
+ counselorId: string;
103
+ counselorEmail: string;
104
+ secondaryTeacherId: string;
105
+ secondaryTeacherEmail: string;
106
+ }
107
+ export declare type Counselor = {
108
+ id: string;
109
+ counselorId: number;
110
+ firstName: string;
111
+ lastName: string;
112
+ fullName: string;
113
+ email: string;
114
+ };
115
+ export declare type Assistant = {
116
+ id: string;
117
+ assistantId: number;
118
+ firstName: string;
119
+ lastName: string;
120
+ fullName: string;
121
+ email: string;
122
+ };
123
+ export declare type SecondaryTeacher = {
124
+ id: string;
125
+ secondaryTeacherId: number;
126
+ firstName: string;
127
+ lastName: string;
128
+ fullName: string;
129
+ email: string;
130
+ };
131
+ export declare type Teacher = {
132
+ id: string;
133
+ email: string;
134
+ };
135
+ export interface IOptions {
136
+ label: string;
137
+ value: string;
138
+ }
139
+ export declare type AssignStudentDto = {
140
+ id: string;
141
+ mainTeacherUserId?: Array<string>;
142
+ mainTeacherEmail?: Array<string>;
143
+ assistantUserId?: string;
144
+ assistantEmail?: string;
145
+ counselorUserId?: string;
146
+ counselorEmail?: string;
147
+ secondaryTeacherUserId?: string;
148
+ secondaryTeacherEmail?: string;
149
+ };
150
+ export declare type FilterOption = {
151
+ label: string;
152
+ value: string;
153
+ };
154
+ export declare enum UserOrder {
155
+ Id = 0,
156
+ Name = 1,
157
+ Email = 2,
158
+ Age = 3,
159
+ Role = 4,
160
+ Status = 5,
161
+ CreatedAt = 6,
162
+ RosterUser = 7
163
+ }
164
+ export declare enum SearchBy {
165
+ Id = 0,
166
+ Name = 1,
167
+ Email = 2,
168
+ Role = 3,
169
+ RosterUser = 4,
170
+ Status = 5
171
+ }
172
+ export declare enum TeacherType {
173
+ Teacher = 0,
174
+ Assistant = 1,
175
+ Counselor = 2,
176
+ SecondaryTeacher = 3
177
+ }
@@ -0,0 +1,15 @@
1
+ import { IStaffAssign } from "../constants/types";
2
+ declare const useAssignStudent: (teacherSelected?: any, assistantSelected?: object | undefined, counselorSelected?: object | undefined, secondaryTeacherSelected?: object | undefined, callback?: Function | undefined) => {
3
+ handleAssignSingleStudent: (id: string) => void;
4
+ handleAssignMultiStudent: (listUserIds: string[]) => void;
5
+ openModelBulk: boolean;
6
+ handleToggleModel: (listUserIds?: string[] | undefined) => void;
7
+ handleChangeStaffBulk: (name: string, id: string) => void;
8
+ staffBulkAssign: IStaffAssign;
9
+ handleAssignStaffToStudents: (listUserIds: string[], isTeacherExit: boolean) => void;
10
+ handleToggleInactiveModal: (listUserIds?: string[] | undefined) => void;
11
+ openInactiveModal: boolean;
12
+ handleInactiveStudents: (listStudentIds: string[], callback: () => void) => Promise<void>;
13
+ handleChangeTeacherBulk: (value: any[]) => void;
14
+ };
15
+ export default useAssignStudent;
@@ -0,0 +1,15 @@
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
+ fullName: string;
14
+ };
15
+ 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,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,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,16 @@
1
+ import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/types";
2
+ interface Props {
3
+ filters: UserFilter;
4
+ onChangeFilters?: (filter: UserFilter) => void;
5
+ isStudentFilter?: boolean;
6
+ }
7
+ declare const useTableHeader: (props: Props) => {
8
+ popoverFilters: UserFilterField;
9
+ popoverId: string | undefined;
10
+ users: string[];
11
+ handleFilterIcon: (id: string, searchBy?: SearchBy | undefined, searchStringBy?: string | undefined, sortBy?: UserOrder | undefined) => void;
12
+ handleCloseFilter: () => void;
13
+ handleSearch: (search: string, searchBy?: SearchBy | undefined) => void;
14
+ handleChangeFilters: (value?: string[] | undefined, searchBy?: SearchBy | undefined) => void;
15
+ };
16
+ 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;
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { IOptions } from "../constants/types";
1
3
  declare type UserDetail = {
2
4
  id?: string;
3
5
  firstName: string;
@@ -7,10 +9,25 @@ declare type UserDetail = {
7
9
  roles: string[];
8
10
  isActive: boolean;
9
11
  profileImageFileName: string;
12
+ sourcedId?: string;
13
+ teacherUserId?: string[];
10
14
  };
11
15
  declare const useUserDetail: (id?: string | undefined) => {
12
16
  userDetail: UserDetail;
13
- backToList: () => void;
17
+ backToList: (user?: string | undefined) => void;
14
18
  confirmData: (data: any) => Promise<void>;
19
+ file: any;
20
+ setFile: import("react").Dispatch<any>;
21
+ edited: boolean;
22
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
23
+ setEditedTrue: () => Promise<void>;
24
+ confirmChangePassword: (data: any) => Promise<void>;
25
+ forgotPasswordRequest: (data: any) => Promise<void>;
26
+ currentRoles: string[];
27
+ handleDisableRoles: (currentRoles: string) => boolean;
28
+ handleResetPassword: (userId: string) => Promise<void>;
29
+ teacherOptions: IOptions[];
30
+ openModel: boolean;
31
+ handleToggleModel: () => void;
15
32
  };
16
33
  export default useUserDetail;
@@ -1,10 +1,15 @@
1
- import { Filter } from "../../../types/Filter";
2
1
  declare const useUserList: () => {
3
2
  userList: any;
4
- filters: Filter;
3
+ totalItems: any;
4
+ filters: import("../constants/types").UserFilter;
5
+ queryName: string | null;
6
+ fullName: string;
5
7
  getData: () => Promise<void>;
6
8
  removeData: (id: string) => void;
7
9
  changeFilters: (updatedFilters: any) => void;
8
10
  reDirectDetailPage: (id?: number | undefined) => void;
11
+ switchUser: (id: string) => Promise<void>;
12
+ handleSyncRosterUsers: () => Promise<void>;
13
+ rosterUserInfo: (record: any) => string;
9
14
  };
10
15
  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;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignStudentList: () => JSX.Element;
3
+ export default AssignStudentList;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onChange: (e: any) => void;
4
+ value?: string;
5
+ roles: string[];
6
+ }
7
+ declare const RosterUserSelector: FC<Props>;
8
+ export default RosterUserSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const UserContainer: () => JSX.Element;
3
+ export default UserContainer;
@@ -0,0 +1,4 @@
1
+ declare const useClassFontSize: () => {
2
+ classFontSize: string;
3
+ };
4
+ export default useClassFontSize;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Filter } from "../types/Filter";
3
+ declare const useFilters: () => {
4
+ filters: Filter;
5
+ setFilters: import("react").Dispatch<import("react").SetStateAction<Filter>>;
6
+ changeFilters: (updatedFilters: any) => void;
7
+ };
8
+ export default useFilters;