mario-core 3.0.0-admin → 3.0.0-es-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 (250) hide show
  1. package/dist/assets/Images.d.ts +14 -14
  2. package/dist/components/Alerts/CommonAlert.d.ts +3 -3
  3. package/dist/components/Alerts/EmptyDataAlert.d.ts +8 -8
  4. package/dist/components/Alerts/ErrorHandler.d.ts +6 -6
  5. package/dist/components/Buttons/AddButton.d.ts +8 -7
  6. package/dist/components/Buttons/AddButtonIcon.d.ts +6 -6
  7. package/dist/components/Buttons/CloseButton.d.ts +8 -8
  8. package/dist/components/Buttons/DeleteButtonIcon.d.ts +6 -6
  9. package/dist/components/Buttons/DetailActionButtons.d.ts +9 -8
  10. package/dist/components/Buttons/EditButtonIcon.d.ts +6 -6
  11. package/dist/components/Buttons/LinkEditButton.d.ts +8 -7
  12. package/dist/components/Buttons/LoginNavButton.d.ts +8 -8
  13. package/dist/components/Buttons/ToggleButton.d.ts +10 -10
  14. package/dist/components/Buttons/UploadFileButton.d.ts +13 -13
  15. package/dist/components/Headers/CommonHeader.d.ts +7 -7
  16. package/dist/components/Image/UploadImage.d.ts +2 -3
  17. package/dist/components/Inputs/FileInput.d.ts +8 -8
  18. package/dist/components/Inputs/PasswordInput.d.ts +8 -8
  19. package/dist/components/Inputs/SearchBox.d.ts +10 -10
  20. package/dist/components/Inputs/SearchBoxContainer.d.ts +9 -10
  21. package/dist/components/Labels/RequiredLabel.d.ts +6 -6
  22. package/dist/components/Loading/Loading.d.ts +3 -3
  23. package/dist/components/Modals/CommonModal.d.ts +2 -3
  24. package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -0
  25. package/dist/components/Modals/NotificationModal.d.ts +2 -3
  26. package/dist/components/Others/QuitPrompt.d.ts +5 -2
  27. package/dist/components/Pagination/CustomPagination.d.ts +2 -3
  28. package/dist/components/Scroll/ScrollToTop.d.ts +3 -3
  29. package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -3
  30. package/dist/components/Selectors/CreatableSelector.d.ts +2 -3
  31. package/dist/components/Selectors/CustomSelector.d.ts +2 -3
  32. package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -3
  33. package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -3
  34. package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -3
  35. package/dist/components/Selectors/StarRatingSelector.d.ts +2 -3
  36. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -3
  37. package/dist/components/Tabs/CustomTab.d.ts +2 -3
  38. package/dist/configs/editorConfig.d.ts +7 -7
  39. package/dist/containers/Commons/NotFound.d.ts +3 -3
  40. package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -3
  41. package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +8 -7
  42. package/dist/containers/EmailTemplate/components/MailParam.d.ts +8 -7
  43. package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +13 -13
  44. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +27 -28
  45. package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +11 -11
  46. package/dist/containers/EmailTemplate/views/EmailTemplateDetail.d.ts +3 -3
  47. package/dist/containers/EmailTemplate/views/EmailTemplateList.d.ts +3 -3
  48. package/dist/containers/Faq/components/FaqDetailModal.d.ts +2 -3
  49. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +17 -18
  50. package/dist/containers/Faq/hooks/useFaqList.d.ts +9 -9
  51. package/dist/containers/Faq/views/FaqList.d.ts +3 -3
  52. package/dist/containers/Gallery/components/ActionModal.d.ts +2 -3
  53. package/dist/containers/Gallery/components/Filter.d.ts +9 -8
  54. package/dist/containers/Gallery/components/Media.d.ts +9 -8
  55. package/dist/containers/Gallery/components/MediaDetail.d.ts +7 -7
  56. package/dist/containers/Gallery/components/MediaList.d.ts +7 -7
  57. package/dist/containers/Gallery/components/MediaNav.d.ts +19 -18
  58. package/dist/containers/Gallery/constants/gallery.types.d.ts +21 -21
  59. package/dist/containers/Gallery/extensions/helpers.d.ts +4 -4
  60. package/dist/containers/Gallery/hooks/useGalleryList.d.ts +30 -31
  61. package/dist/containers/Gallery/views/GalleryList.d.ts +6 -6
  62. package/dist/containers/Login/components/GoogleLoginButton.d.ts +10 -0
  63. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  64. package/dist/containers/Login/constant/types.d.ts +27 -0
  65. package/dist/containers/Login/hooks/useForgotPassword.d.ts +20 -21
  66. package/dist/containers/Login/hooks/useLogin.d.ts +29 -23
  67. package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -4
  68. package/dist/containers/Login/views/Dashboard.d.ts +3 -3
  69. package/dist/containers/Login/views/Login.d.ts +8 -9
  70. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  71. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +6 -3
  72. package/dist/containers/Login/views/block/BlockLogin.d.ts +9 -7
  73. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -3
  74. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +11 -12
  75. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -3
  76. package/dist/containers/Login/views/block/CloseBlock.d.ts +6 -6
  77. package/dist/containers/Login/views/block/ContentHomePage.d.ts +5 -5
  78. package/dist/containers/Login/views/block/IconContent.d.ts +7 -7
  79. package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -6
  80. package/dist/containers/Notifications/components/NotificationButton.d.ts +5 -5
  81. package/dist/containers/Notifications/components/NotificationStatusSelector.d.ts +6 -7
  82. package/dist/containers/Notifications/hooks/useNotificationList.d.ts +17 -17
  83. package/dist/containers/Notifications/hooks/useUnreadNotification.d.ts +4 -4
  84. package/dist/containers/Notifications/views/NotificationList.d.ts +2 -3
  85. package/dist/containers/Skill/components/SkillDetailModal.d.ts +2 -3
  86. package/dist/containers/Skill/components/SkillSelector.d.ts +2 -3
  87. package/dist/containers/Skill/hooks/useSkillDetail.d.ts +19 -20
  88. package/dist/containers/Skill/hooks/useSkillList.d.ts +10 -9
  89. package/dist/containers/Skill/views/SkillList.d.ts +3 -3
  90. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  91. package/dist/containers/User/components/HeaderCell.d.ts +17 -0
  92. package/dist/containers/User/components/TableHeader.d.ts +10 -0
  93. package/dist/containers/User/components/TeacherSelector.d.ts +2 -0
  94. package/dist/containers/User/configs/changePasswordSchema.d.ts +11 -10
  95. package/dist/containers/User/configs/constants.d.ts +18 -0
  96. package/dist/containers/User/configs/type.d.ts +124 -0
  97. package/dist/containers/User/configs/userSchema.d.ts +15 -15
  98. package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -0
  99. package/dist/containers/User/hooks/useAssignStudentList.d.ts +15 -0
  100. package/dist/containers/User/hooks/useAssistantList.d.ts +9 -0
  101. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  102. package/dist/containers/User/hooks/useCounselorList.d.ts +9 -0
  103. package/dist/containers/User/hooks/useFilterPopover.d.ts +36 -0
  104. package/dist/containers/User/hooks/useTableHeader.d.ts +15 -0
  105. package/dist/containers/User/hooks/useTeacherList.d.ts +9 -0
  106. package/dist/containers/User/hooks/useUserDetail.d.ts +31 -24
  107. package/dist/containers/User/hooks/useUserList.d.ts +14 -11
  108. package/dist/containers/User/hooks/userFilters.d.ts +7 -0
  109. package/dist/containers/User/views/AssignStudentList.d.ts +2 -0
  110. package/dist/containers/User/views/UserContainer.d.ts +2 -0
  111. package/dist/containers/User/views/UserDetail.d.ts +2 -3
  112. package/dist/containers/User/views/UserList.d.ts +2 -3
  113. package/dist/hooks/useClassFontSize.d.ts +4 -0
  114. package/dist/hooks/useFilters.d.ts +7 -8
  115. package/dist/i18n.d.ts +2 -2
  116. package/dist/index.d.ts +111 -110
  117. package/dist/index.js +33 -10334
  118. package/dist/index.modern.js +25584 -9742
  119. package/dist/layouts/TheContent.d.ts +3 -3
  120. package/dist/mario-core.css +5 -0
  121. package/dist/redux/assessments/action.d.ts +1 -1
  122. package/dist/redux/assessments/reducer.d.ts +10 -5
  123. package/dist/redux/assignment/action.d.ts +1 -1
  124. package/dist/redux/assignment/reducer.d.ts +4 -2
  125. package/dist/redux/assistants/action.d.ts +1 -1
  126. package/dist/redux/assistants/reducer.d.ts +4 -2
  127. package/dist/redux/badges/action.d.ts +1 -1
  128. package/dist/redux/badges/reducer.d.ts +4 -2
  129. package/dist/redux/bandScores/action.d.ts +1 -1
  130. package/dist/redux/bandScores/reducer.d.ts +4 -2
  131. package/dist/redux/certificate/action.d.ts +1 -1
  132. package/dist/redux/certificate/reducer.d.ts +4 -2
  133. package/dist/redux/classes/action.d.ts +1 -1
  134. package/dist/redux/classes/reducer.d.ts +4 -2
  135. package/dist/redux/commons/action.d.ts +18 -18
  136. package/dist/redux/commons/reducer.d.ts +4 -2
  137. package/dist/redux/conferenceRubrics/action.d.ts +1 -1
  138. package/dist/redux/conferenceRubrics/reducer.d.ts +4 -2
  139. package/dist/redux/customAlert/action.d.ts +1 -1
  140. package/dist/redux/customAlert/reducer.d.ts +4 -2
  141. package/dist/redux/dashboard/action.d.ts +5 -5
  142. package/dist/redux/dashboard/reducer.d.ts +4 -2
  143. package/dist/redux/dataPlayer/action.d.ts +2 -2
  144. package/dist/redux/dataPlayer/reducer.d.ts +4 -2
  145. package/dist/redux/emailTemplates/action.d.ts +1 -1
  146. package/dist/redux/emailTemplates/reducer.d.ts +4 -2
  147. package/dist/redux/faqs/action.d.ts +1 -1
  148. package/dist/redux/faqs/reducer.d.ts +4 -2
  149. package/dist/redux/feedback/action.d.ts +1 -1
  150. package/dist/redux/feedback/reducer.d.ts +4 -2
  151. package/dist/redux/gallery/action.d.ts +2 -2
  152. package/dist/redux/gallery/reducer.d.ts +4 -2
  153. package/dist/redux/goalExamples/action.d.ts +1 -1
  154. package/dist/redux/goalExamples/reducer.d.ts +4 -2
  155. package/dist/redux/improveMyClass/action.d.ts +1 -1
  156. package/dist/redux/improveMyClass/reducer.d.ts +4 -2
  157. package/dist/redux/learningStrategies/action.d.ts +1 -1
  158. package/dist/redux/learningStrategies/reducer.d.ts +4 -2
  159. package/dist/redux/learningSupportCategories/action.d.ts +1 -1
  160. package/dist/redux/learningSupportCategories/reducer.d.ts +4 -2
  161. package/dist/redux/mailCategories/action.d.ts +1 -1
  162. package/dist/redux/mailCategories/reducer.d.ts +4 -2
  163. package/dist/redux/navMobile/action.d.ts +1 -1
  164. package/dist/redux/navMobile/reducer.d.ts +4 -2
  165. package/dist/redux/notifications/action.d.ts +3 -3
  166. package/dist/redux/notifications/reducer.d.ts +4 -2
  167. package/dist/redux/questionBanks/action.d.ts +1 -1
  168. package/dist/redux/questionBanks/reducer.d.ts +4 -2
  169. package/dist/redux/questionByCategory/action.d.ts +8 -8
  170. package/dist/redux/questionByCategory/reducer.d.ts +4 -2
  171. package/dist/redux/questionCategory/action.d.ts +1 -1
  172. package/dist/redux/questionCategory/reducer.d.ts +4 -2
  173. package/dist/redux/reflectionForms/action.d.ts +1 -1
  174. package/dist/redux/reflectionForms/reducer.d.ts +4 -2
  175. package/dist/redux/reflectionResults/action.d.ts +1 -1
  176. package/dist/redux/reflectionResults/reducer.d.ts +4 -2
  177. package/dist/redux/schoolBlankDays/action.d.ts +1 -1
  178. package/dist/redux/schoolBlankDays/reducer.d.ts +4 -2
  179. package/dist/redux/semester/action.d.ts +1 -1
  180. package/dist/redux/semester/reducer.d.ts +4 -2
  181. package/dist/redux/sessionPlayers/action.d.ts +5 -5
  182. package/dist/redux/sessionPlayers/reducer.d.ts +4 -2
  183. package/dist/redux/sessionTemplateGeneralClasses/action.d.ts +1 -1
  184. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +4 -2
  185. package/dist/redux/sessionTemplates/action.d.ts +1 -1
  186. package/dist/redux/sessionTemplates/reducer.d.ts +4 -2
  187. package/dist/redux/skills/action.d.ts +1 -1
  188. package/dist/redux/skills/reducer.d.ts +4 -2
  189. package/dist/redux/subjects/action.d.ts +1 -1
  190. package/dist/redux/subjects/reducer.d.ts +4 -2
  191. package/dist/redux/suggestionBanks/action.d.ts +1 -1
  192. package/dist/redux/suggestionBanks/reducer.d.ts +4 -2
  193. package/dist/redux/teacher/myStudent/action.d.ts +1 -1
  194. package/dist/redux/teacher/myStudent/reducer.d.ts +4 -2
  195. package/dist/redux/tutorialScreen/action.d.ts +1 -1
  196. package/dist/redux/tutorialScreen/reducer.d.ts +10 -5
  197. package/dist/redux/users/action.d.ts +2 -2
  198. package/dist/redux/users/reducer.d.ts +4 -2
  199. package/dist/redux/widget/action.d.ts +1 -1
  200. package/dist/redux/widget/reducer.d.ts +4 -2
  201. package/dist/rootReducer.d.ts +96 -49
  202. package/dist/services/accountService.d.ts +13 -12
  203. package/dist/services/api.d.ts +3 -3
  204. package/dist/services/classService.d.ts +1 -1
  205. package/dist/services/emailTemplateService.d.ts +6 -6
  206. package/dist/services/faqService.d.ts +6 -6
  207. package/dist/services/fileServices.d.ts +13 -13
  208. package/dist/services/galleryService.d.ts +2 -2
  209. package/dist/services/languageService.d.ts +1 -0
  210. package/dist/services/mailCategoryService.d.ts +1 -1
  211. package/dist/services/notificationService.d.ts +7 -7
  212. package/dist/services/questionCategoryService.d.ts +1 -1
  213. package/dist/services/schoolService.d.ts +1 -0
  214. package/dist/services/skillService.d.ts +6 -6
  215. package/dist/services/suggestionCategoryService.d.ts +1 -1
  216. package/dist/services/userService.d.ts +18 -9
  217. package/dist/store.d.ts +3 -3
  218. package/dist/types/Conversation.d.ts +8 -8
  219. package/dist/types/ConversationMember.d.ts +5 -5
  220. package/dist/types/Dashboard.d.ts +5 -5
  221. package/dist/types/Filter.d.ts +10 -10
  222. package/dist/types/Language.d.ts +8 -0
  223. package/dist/types/Message.d.ts +13 -13
  224. package/dist/types/Notification.d.ts +8 -8
  225. package/dist/utils/canAccessRoute.d.ts +2 -2
  226. package/dist/utils/constants.d.ts +77 -67
  227. package/dist/utils/debounce.d.ts +2 -2
  228. package/dist/utils/domHelpers.d.ts +2 -2
  229. package/dist/utils/encodeParams.d.ts +2 -2
  230. package/dist/utils/firstCheckToken.d.ts +2 -2
  231. package/dist/utils/generateRandomString.d.ts +2 -2
  232. package/dist/utils/getAccessToken.d.ts +2 -2
  233. package/dist/utils/getCookieValue.d.ts +2 -0
  234. package/dist/utils/getFileUrl.d.ts +2 -2
  235. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  236. package/dist/utils/getTextFromHTML.d.ts +2 -2
  237. package/dist/utils/utcToLocalTime.d.ts +2 -2
  238. package/package.json +89 -100
  239. package/dist/components/Alerts/ReactNotification.d.ts +0 -4
  240. package/dist/index.css +0 -618
  241. package/dist/index.js.map +0 -1
  242. package/dist/index.modern.js.map +0 -1
  243. package/dist/index.test.d.ts +0 -1
  244. package/dist/layouts/TheFooter.d.ts +0 -3
  245. package/dist/layouts/TheHeader.d.ts +0 -3
  246. package/dist/layouts/TheHeaderDropdown.d.ts +0 -3
  247. package/dist/layouts/TheLanguageDropdown.d.ts +0 -3
  248. package/dist/layouts/TheLayout.d.ts +0 -4
  249. package/dist/layouts/TheSidebar.d.ts +0 -3
  250. package/dist/types/Payload.d.ts +0 -15
@@ -1,3 +1,6 @@
1
- /// <reference types="react" />
2
- declare const BlockForgetPassword: () => JSX.Element;
3
- export default BlockForgetPassword;
1
+ import { ISchool } from "../../constant/types";
2
+ interface Props {
3
+ school: ISchool;
4
+ }
5
+ declare const BlockForgetPassword: ({ school }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default BlockForgetPassword;
@@ -1,7 +1,9 @@
1
- import { FC } from "react";
2
- interface Props {
3
- defaultInfo?: any;
4
- userLogin?: any;
5
- }
6
- declare const BlockLogin: FC<Props>;
7
- export default BlockLogin;
1
+ import { FC } from "react";
2
+ import { ISchool } from "../../constant/types";
3
+ interface Props {
4
+ defaultInfo?: any;
5
+ userLogin?: any;
6
+ school: ISchool;
7
+ }
8
+ declare const BlockLogin: FC<Props>;
9
+ export default BlockLogin;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const BlockResetPassword: () => JSX.Element;
3
- export default BlockResetPassword;
1
+ declare const BlockResetPassword: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BlockResetPassword;
@@ -1,12 +1,11 @@
1
- import React from "react";
2
- interface Props {
3
- defaultValue?: any;
4
- isDisabled?: boolean;
5
- openModal: boolean;
6
- onSubmit: any;
7
- token: string;
8
- email: string;
9
- setOpenModal: any;
10
- }
11
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
12
- export default _default;
1
+ interface Props {
2
+ defaultValue?: any;
3
+ isDisabled?: boolean;
4
+ openModal: boolean;
5
+ onSubmit: any;
6
+ token: string;
7
+ email: string;
8
+ setOpenModal: any;
9
+ }
10
+ declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
11
+ export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const BlockTwoFactorLogin: () => JSX.Element;
3
- export default BlockTwoFactorLogin;
1
+ declare const BlockTwoFactorLogin: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BlockTwoFactorLogin;
@@ -1,6 +1,6 @@
1
- import { FC } from "react";
2
- interface Props {
3
- to: string;
4
- }
5
- declare const CloseBlock: FC<Props>;
6
- export default CloseBlock;
1
+ import { FC } from "react";
2
+ interface Props {
3
+ to: string;
4
+ }
5
+ declare const CloseBlock: FC<Props>;
6
+ export default CloseBlock;
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- interface Props {
3
- }
4
- declare const ContentHomePage: FC<Props>;
5
- export default ContentHomePage;
1
+ import { FC } from "react";
2
+ interface Props {
3
+ }
4
+ declare const ContentHomePage: FC<Props>;
5
+ export default ContentHomePage;
@@ -1,7 +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;
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;
@@ -1,6 +1,2 @@
1
- import { FC } from "react";
2
- interface Props {
3
- descriptions?: string;
4
- }
5
- declare const QuoteContent: FC<Props>;
6
- export default QuoteContent;
1
+ declare const QuoteContent: () => import("react/jsx-runtime").JSX.Element;
2
+ export default QuoteContent;
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- interface Props {
3
- }
4
- declare const NotificationButton: FC<Props>;
5
- export default NotificationButton;
1
+ import { FC } from "react";
2
+ interface Props {
3
+ }
4
+ declare const NotificationButton: FC<Props>;
5
+ export default NotificationButton;
@@ -1,7 +1,6 @@
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;
1
+ interface Props {
2
+ value: boolean;
3
+ onChange: any;
4
+ }
5
+ declare const _default: import("react").NamedExoticComponent<Props>;
6
+ export default _default;
@@ -1,17 +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;
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: number, isRead: boolean) => void;
13
+ viewNotification: (notification: any) => void;
14
+ updateAll: () => Promise<void>;
15
+ toggleUpdateAllStatus: boolean;
16
+ };
17
+ export default useNotificationList;
@@ -1,4 +1,4 @@
1
- declare const useUnReadNotification: () => {
2
- unReadNotification: any;
3
- };
4
- export default useUnReadNotification;
1
+ declare const useUnReadNotification: () => {
2
+ unReadNotification: any;
3
+ };
4
+ export default useUnReadNotification;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const NotificationList: () => JSX.Element;
3
- export default NotificationList;
1
+ declare const NotificationList: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotificationList;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
- export default _default;
1
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
2
+ export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const SkillSelector: (props: any) => JSX.Element;
3
- export default SkillSelector;
1
+ declare const SkillSelector: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default SkillSelector;
@@ -1,20 +1,19 @@
1
- /// <reference types="react" />
2
- declare type SkillDetail = {
3
- name: string;
4
- description: string;
5
- path: string;
6
- parentSkillId?: number | null;
7
- };
8
- declare const useSkillDetail: () => {
9
- id: number;
10
- setId: import("react").Dispatch<import("react").SetStateAction<number>>;
11
- skillDetail: SkillDetail;
12
- confirmData: (values: any, cb: any) => Promise<void>;
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>;
19
- };
20
- export default useSkillDetail;
1
+ type SkillDetail = {
2
+ name: string;
3
+ description: string;
4
+ path: string;
5
+ parentSkillId?: number | null;
6
+ };
7
+ declare const useSkillDetail: () => {
8
+ id: number;
9
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
10
+ skillDetail: SkillDetail;
11
+ confirmData: (values: any, cb: any) => Promise<void>;
12
+ initValue: SkillDetail;
13
+ reset: () => void;
14
+ edited: boolean;
15
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
16
+ setEditedTrue: () => Promise<void>;
17
+ setEditedFalse: () => Promise<void>;
18
+ };
19
+ export default useSkillDetail;
@@ -1,9 +1,10 @@
1
- declare const useSkillList: () => {
2
- skillList: any;
3
- totalItems: any;
4
- filters: import("../../..").Filter;
5
- changeFilters: (updatedFilters: any) => void;
6
- getData: () => Promise<void>;
7
- removeData: (id: number) => void;
8
- };
9
- export default useSkillList;
1
+ declare const useSkillList: () => {
2
+ skillList: any;
3
+ totalItems: any;
4
+ filters: import("../../..").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ classFontSize: string;
9
+ };
10
+ export default useSkillList;
@@ -1,3 +1,3 @@
1
- import { FC } from "react";
2
- declare const SkillList: FC;
3
- export default SkillList;
1
+ import { FC } from "react";
2
+ declare const SkillList: FC;
3
+ export default SkillList;
@@ -0,0 +1,21 @@
1
+ import { FC } from "react";
2
+ import { PopoverProps } from "reactstrap";
3
+ import { FilterOption, SearchBy, UserFilter, UserOrder } from "../configs/type";
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,17 @@
1
+ import { FC } from "react";
2
+ import { SearchBy, UserColumn, UserFilter, UserOrder } from "../configs/type";
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
+ }
16
+ declare const HeaderCell: FC<Props>;
17
+ export default HeaderCell;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { UserColumn, UserFilter } from "../configs/type";
3
+ interface Props {
4
+ headers: UserColumn[];
5
+ filters: UserFilter;
6
+ fullName?: string;
7
+ onChangeFilters?: (filter: UserFilter) => void;
8
+ }
9
+ declare const TableHeader: FC<Props>;
10
+ export default TableHeader;
@@ -0,0 +1,2 @@
1
+ declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default TeacherSelector;
@@ -1,10 +1,11 @@
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
+ import * as yup from "yup";
2
+ declare const changePasswordSchema: yup.ObjectSchema<{
3
+ oldPassword: string;
4
+ newPassword: string;
5
+ confirmedNewPassword: string;
6
+ }, yup.AnyObject, {
7
+ oldPassword: undefined;
8
+ newPassword: undefined;
9
+ confirmedNewPassword: undefined;
10
+ }, "">;
11
+ export default changePasswordSchema;
@@ -0,0 +1,18 @@
1
+ import { StudentFilter, UserColumn, UserFilter } from "./type";
2
+ export declare const DEFAULT_PAGE_SIZE: {
3
+ label: string;
4
+ value: number;
5
+ };
6
+ export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
7
+ export declare const UserColumns: UserColumn[];
8
+ export declare const DEFAULT_FILTER_POPOVER: UserFilter;
9
+ export declare const DEFAULT_FILTER: UserFilter;
10
+ export declare const userOrders: {
11
+ 0: string;
12
+ 1: string;
13
+ 2: string;
14
+ 3: string;
15
+ 4: string;
16
+ 5: string;
17
+ 6: string;
18
+ };
@@ -0,0 +1,124 @@
1
+ export type StudentAssign = {
2
+ studentId: number;
3
+ teacherUserId: string;
4
+ id: string;
5
+ email: string;
6
+ fullName: string;
7
+ gradeLevel: string;
8
+ phoneNumber: string;
9
+ isActive?: boolean;
10
+ dateOfBirth?: string;
11
+ profileImageFileName: string;
12
+ quote: string;
13
+ assistantName: string;
14
+ assistantEmail: string;
15
+ counselorName: string;
16
+ counselorEmail: string;
17
+ secondaryTeacherName: string;
18
+ secondaryTeacherEmail: string;
19
+ mainTeacherName: string;
20
+ mainTeacherEmail: string;
21
+ mainTeacherId?: number;
22
+ };
23
+ export type Counselor = {
24
+ id: string;
25
+ counselorId: number;
26
+ firstName: string;
27
+ lastName: string;
28
+ fullName: string;
29
+ email: string;
30
+ };
31
+ export type Assistant = {
32
+ id: string;
33
+ assistantId: number;
34
+ firstName: string;
35
+ lastName: string;
36
+ fullName: string;
37
+ email: string;
38
+ };
39
+ export type SecondaryTeacher = {
40
+ id: string;
41
+ secondaryTeacherId: number;
42
+ firstName: string;
43
+ lastName: string;
44
+ fullName: string;
45
+ email: string;
46
+ };
47
+ export type Teacher = {
48
+ id: string;
49
+ email: string;
50
+ };
51
+ export interface IOptions {
52
+ label: string;
53
+ value: string;
54
+ }
55
+ export type AssignStudentDto = {
56
+ id: string;
57
+ mainTeacherUserId?: string;
58
+ mainTeacherEmail?: string;
59
+ assistantUserId?: string;
60
+ assistantEmail?: string;
61
+ counselorUserId?: string;
62
+ counselorEmail?: string;
63
+ secondaryTeacherUserId?: string;
64
+ secondaryTeacherEmail?: string;
65
+ };
66
+ export type FilterOption = {
67
+ label: string;
68
+ value: string;
69
+ };
70
+ export declare enum TeacherType {
71
+ Teacher = 0,
72
+ Assistant = 1,
73
+ Counselor = 2,
74
+ SecondaryTeacher = 3
75
+ }
76
+ export type StudentFilter = {
77
+ currentPage?: number;
78
+ pageSize?: number;
79
+ searchString?: string;
80
+ isAssigned?: boolean;
81
+ sortBy?: UserOrder;
82
+ orderBy?: string;
83
+ };
84
+ export declare enum UserOrder {
85
+ Id = 0,
86
+ Name = 1,
87
+ Email = 2,
88
+ Age = 3,
89
+ Role = 4,
90
+ Status = 5,
91
+ CreatedAt = 6
92
+ }
93
+ export declare enum SearchBy {
94
+ Id = 0,
95
+ Name = 1,
96
+ Email = 2,
97
+ Role = 3,
98
+ Status = 4
99
+ }
100
+ export type UserFilter = {
101
+ currentPage?: number;
102
+ pageSize?: number;
103
+ searchString?: string;
104
+ isDescending?: boolean;
105
+ sortBy?: UserOrder;
106
+ searchBy?: SearchBy;
107
+ searchByStrings?: string[];
108
+ };
109
+ export type UserColumn = {
110
+ name: string;
111
+ sortBy?: UserOrder;
112
+ className?: string;
113
+ searchBy?: SearchBy;
114
+ getOption?: (user: any, t?: any) => FilterOption;
115
+ options?: FilterOption[];
116
+ };
117
+ export type UserFilterField = {
118
+ currentPage?: number;
119
+ pageSize?: number;
120
+ searchString?: string;
121
+ isDescending?: boolean;
122
+ searchBy?: SearchBy;
123
+ searchStringBy?: string;
124
+ };
@@ -1,15 +1,15 @@
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
- }>>;
15
- export default userSchema;
1
+ import * as yup from "yup";
2
+ declare const userSchema: yup.ObjectSchema<{
3
+ firstName: string;
4
+ lastName: string;
5
+ dateOfBirth: string;
6
+ email: string;
7
+ roles: (string | undefined)[] | undefined;
8
+ }, yup.AnyObject, {
9
+ firstName: undefined;
10
+ lastName: undefined;
11
+ dateOfBirth: undefined;
12
+ email: undefined;
13
+ roles: "";
14
+ }, "">;
15
+ export default userSchema;
@@ -0,0 +1,5 @@
1
+ declare const useAssignStudent: (teacherSelected?: Record<string, any>, assistantSelected?: Record<string, any>, counselorSelected?: Record<string, any>, callback?: Function) => {
2
+ handleAssignSingleStudent: (id: string) => void;
3
+ handleAssignMultiStudent: (listUserIds: string[]) => void;
4
+ };
5
+ export default useAssignStudent;
@@ -0,0 +1,15 @@
1
+ import { StudentAssign, StudentFilter, UserOrder } from "../configs/type";
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
+ classFontSize: string;
14
+ };
15
+ export default useAssignStudentList;
@@ -0,0 +1,9 @@
1
+ import { IOptions } from "../configs/type";
2
+ declare const useAssistantList: () => {
3
+ selectedAssistants: object | undefined;
4
+ assistantOptions: IOptions[];
5
+ handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
6
+ handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
7
+ setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
8
+ };
9
+ export default useAssistantList;
@@ -0,0 +1,2 @@
1
+ declare const useClickOutside: (wrapperRef: any, onClickOutside?: () => void) => void;
2
+ export default useClickOutside;
@@ -0,0 +1,9 @@
1
+ import { IOptions } from "../configs/type";
2
+ declare const useCounselorList: () => {
3
+ selectedCounselors: object | undefined;
4
+ counselorOptions: IOptions[];
5
+ handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
6
+ handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
7
+ setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
8
+ };
9
+ export default useCounselorList;
@@ -0,0 +1,36 @@
1
+ import { FilterOption, SearchBy, UserFilter, UserOrder } from "../configs/type";
2
+ import { PopoverProps } from "reactstrap";
3
+ interface Props extends PopoverProps {
4
+ filters?: UserFilter;
5
+ sortBy: UserOrder;
6
+ searchBy?: SearchBy;
7
+ users: string[];
8
+ defaultOptions?: FilterOption[];
9
+ selectedOptions?: string[];
10
+ searchKey: string;
11
+ onChangeSearchKey: (value: string) => void;
12
+ onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
13
+ onSearch?: (search: string, searchBy: SearchBy) => void;
14
+ onClose?: () => void;
15
+ onFilter?: () => void;
16
+ onChangeFilters?: (filter: UserFilter) => void;
17
+ getOption?: (user: any, t?: any) => FilterOption;
18
+ }
19
+ declare const useFilterPopover: (props: Props) => {
20
+ ref: import("react").RefObject<HTMLDivElement>;
21
+ options: FilterOption[];
22
+ inputRef: import("react").MutableRefObject<any>;
23
+ sOptions: any[] | undefined;
24
+ isAscending: boolean;
25
+ isDescending: boolean;
26
+ filteredOptions: FilterOption[];
27
+ searchKey: string;
28
+ handleSearch: () => void;
29
+ handleApplyFilter: () => void;
30
+ handleOptionSelected: (e?: any) => void;
31
+ handleOptionSelectedAll: (e?: any) => void;
32
+ handleSortDesc: () => void;
33
+ handleSortAsc: () => void;
34
+ handleChangeSearchKey: (e: React.ChangeEvent<HTMLInputElement>) => void;
35
+ };
36
+ export default useFilterPopover;
@@ -0,0 +1,15 @@
1
+ import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../configs/type";
2
+ interface Props {
3
+ filters: UserFilter;
4
+ onChangeFilters?: (filter: UserFilter) => void;
5
+ }
6
+ declare const useTableHeader: (props: Props) => {
7
+ popoverFilters: UserFilterField;
8
+ popoverId: string | undefined;
9
+ users: string[];
10
+ handleFilterIcon: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
11
+ handleCloseFilter: () => void;
12
+ handleSearch: (search: string, searchBy?: SearchBy) => void;
13
+ handleChangeFilters: (value?: string[], searchBy?: SearchBy) => void;
14
+ };
15
+ export default useTableHeader;