mario-core 0.0.1-district

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 (257) hide show
  1. package/dist/assets/Images.d.ts +14 -0
  2. package/dist/components/Alerts/CommonAlert.d.ts +3 -0
  3. package/dist/components/Alerts/EmptyDataAlert.d.ts +8 -0
  4. package/dist/components/Alerts/ErrorHandler.d.ts +6 -0
  5. package/dist/components/Alerts/ReactNotification.d.ts +4 -0
  6. package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
  7. package/dist/components/Buttons/AddButton.d.ts +7 -0
  8. package/dist/components/Buttons/AddButtonIcon.d.ts +6 -0
  9. package/dist/components/Buttons/CloseButton.d.ts +8 -0
  10. package/dist/components/Buttons/DeleteButtonIcon.d.ts +6 -0
  11. package/dist/components/Buttons/DetailActionButtons.d.ts +8 -0
  12. package/dist/components/Buttons/EditButtonIcon.d.ts +6 -0
  13. package/dist/components/Buttons/LinkEditButton.d.ts +7 -0
  14. package/dist/components/Buttons/LoginNavButton.d.ts +8 -0
  15. package/dist/components/Buttons/SyncButton.d.ts +8 -0
  16. package/dist/components/Buttons/ToggleButton.d.ts +10 -0
  17. package/dist/components/Buttons/UploadFileButton.d.ts +13 -0
  18. package/dist/components/Headers/CommonHeader.d.ts +7 -0
  19. package/dist/components/Image/UploadImage.d.ts +3 -0
  20. package/dist/components/Inputs/FileInput.d.ts +8 -0
  21. package/dist/components/Inputs/PasswordInput.d.ts +9 -0
  22. package/dist/components/Inputs/SearchBox.d.ts +10 -0
  23. package/dist/components/Inputs/SearchBoxContainer.d.ts +10 -0
  24. package/dist/components/Labels/RequiredLabel.d.ts +6 -0
  25. package/dist/components/Loading/Loading.d.ts +3 -0
  26. package/dist/components/Modals/CommonModal.d.ts +3 -0
  27. package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
  28. package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
  29. package/dist/components/Modals/NotificationModal.d.ts +3 -0
  30. package/dist/components/Others/QuitPrompt.d.ts +2 -0
  31. package/dist/components/Pagination/CustomPagination.d.ts +3 -0
  32. package/dist/components/Scroll/ScrollToTop.d.ts +3 -0
  33. package/dist/components/Selectors/AcademicClassSelector.d.ts +3 -0
  34. package/dist/components/Selectors/CategorySelector.d.ts +3 -0
  35. package/dist/components/Selectors/CreatableSelector.d.ts +3 -0
  36. package/dist/components/Selectors/CustomSelector.d.ts +3 -0
  37. package/dist/components/Selectors/MailCategorySelectors.d.ts +3 -0
  38. package/dist/components/Selectors/QuestionCategorySelector.d.ts +3 -0
  39. package/dist/components/Selectors/QuestionTypeSelector.d.ts +3 -0
  40. package/dist/components/Selectors/StarRatingSelector.d.ts +3 -0
  41. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +3 -0
  42. package/dist/components/Selectors/constants/constant.d.ts +10 -0
  43. package/dist/components/Selectors/hooks/useCategorySelector.d.ts +5 -0
  44. package/dist/components/Tabs/CustomTab.d.ts +3 -0
  45. package/dist/configs/editorConfig.d.ts +7 -0
  46. package/dist/containers/Commons/NotFound.d.ts +3 -0
  47. package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -0
  48. package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +7 -0
  49. package/dist/containers/EmailTemplate/components/MailParam.d.ts +7 -0
  50. package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +13 -0
  51. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +28 -0
  52. package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +11 -0
  53. package/dist/containers/EmailTemplate/views/EmailTemplateDetail.d.ts +3 -0
  54. package/dist/containers/EmailTemplate/views/EmailTemplateList.d.ts +3 -0
  55. package/dist/containers/Faq/components/FaqDetailModal.d.ts +3 -0
  56. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +18 -0
  57. package/dist/containers/Faq/hooks/useFaqList.d.ts +9 -0
  58. package/dist/containers/Faq/views/FaqList.d.ts +3 -0
  59. package/dist/containers/Gallery/components/ActionModal.d.ts +3 -0
  60. package/dist/containers/Gallery/components/Filter.d.ts +8 -0
  61. package/dist/containers/Gallery/components/Media.d.ts +8 -0
  62. package/dist/containers/Gallery/components/MediaDetail.d.ts +7 -0
  63. package/dist/containers/Gallery/components/MediaList.d.ts +7 -0
  64. package/dist/containers/Gallery/components/MediaNav.d.ts +18 -0
  65. package/dist/containers/Gallery/constants/gallery.types.d.ts +21 -0
  66. package/dist/containers/Gallery/extensions/helpers.d.ts +4 -0
  67. package/dist/containers/Gallery/hooks/useGalleryList.d.ts +31 -0
  68. package/dist/containers/Gallery/views/GalleryList.d.ts +6 -0
  69. package/dist/containers/Login/constant/types.d.ts +7 -0
  70. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  71. package/dist/containers/Login/hooks/useForgotPassword.d.ts +23 -0
  72. package/dist/containers/Login/hooks/useLogin.d.ts +24 -0
  73. package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -0
  74. package/dist/containers/Login/views/Dashboard.d.ts +3 -0
  75. package/dist/containers/Login/views/Login.d.ts +10 -0
  76. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  77. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  78. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +3 -0
  79. package/dist/containers/Login/views/block/BlockLogin.d.ts +7 -0
  80. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +3 -0
  81. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +12 -0
  82. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +3 -0
  83. package/dist/containers/Login/views/block/CloseBlock.d.ts +6 -0
  84. package/dist/containers/Login/views/block/ContentHomePage.d.ts +5 -0
  85. package/dist/containers/Login/views/block/IconContent.d.ts +7 -0
  86. package/dist/containers/Login/views/block/QuoteContent.d.ts +3 -0
  87. package/dist/containers/Notifications/components/NotificationButton.d.ts +5 -0
  88. package/dist/containers/Notifications/components/NotificationStatusSelector.d.ts +7 -0
  89. package/dist/containers/Notifications/hooks/useNotificationList.d.ts +17 -0
  90. package/dist/containers/Notifications/hooks/useUnreadNotification.d.ts +4 -0
  91. package/dist/containers/Notifications/views/NotificationList.d.ts +3 -0
  92. package/dist/containers/Skill/components/SkillDetailModal.d.ts +3 -0
  93. package/dist/containers/Skill/components/SkillSelector.d.ts +3 -0
  94. package/dist/containers/Skill/hooks/useSkillDetail.d.ts +20 -0
  95. package/dist/containers/Skill/hooks/useSkillList.d.ts +9 -0
  96. package/dist/containers/Skill/views/SkillList.d.ts +3 -0
  97. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  98. package/dist/containers/User/components/HeaderCell.d.ts +17 -0
  99. package/dist/containers/User/components/TableHeader.d.ts +10 -0
  100. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  101. package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -0
  102. package/dist/containers/User/configs/userSchema.d.ts +15 -0
  103. package/dist/containers/User/constants/constants.d.ts +20 -0
  104. package/dist/containers/User/constants/types.d.ts +157 -0
  105. package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -0
  106. package/dist/containers/User/hooks/useAssignStudentList.d.ts +14 -0
  107. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  108. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  109. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  110. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  111. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  112. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  113. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  114. package/dist/containers/User/hooks/useTableHeader.d.ts +15 -0
  115. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  116. package/dist/containers/User/hooks/useUserDetail.d.ts +28 -0
  117. package/dist/containers/User/hooks/useUserList.d.ts +15 -0
  118. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  119. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  120. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  121. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  122. package/dist/containers/User/views/UserDetail.d.ts +3 -0
  123. package/dist/containers/User/views/UserList.d.ts +3 -0
  124. package/dist/hooks/useFilters.d.ts +8 -0
  125. package/dist/i18n.d.ts +2 -0
  126. package/dist/index.css +747 -0
  127. package/dist/index.d.ts +115 -0
  128. package/dist/index.js +31380 -0
  129. package/dist/index.js.map +1 -0
  130. package/dist/index.modern.js +31208 -0
  131. package/dist/index.modern.js.map +1 -0
  132. package/dist/index.test.d.ts +1 -0
  133. package/dist/layouts/TheContent.d.ts +3 -0
  134. package/dist/layouts/TheFooter.d.ts +3 -0
  135. package/dist/layouts/TheHeader.d.ts +6 -0
  136. package/dist/layouts/TheHeaderDropdown.d.ts +6 -0
  137. package/dist/layouts/TheLanguageDropdown.d.ts +3 -0
  138. package/dist/layouts/TheLayout.d.ts +4 -0
  139. package/dist/layouts/TheSidebar.d.ts +3 -0
  140. package/dist/redux/assessments/action.d.ts +1 -0
  141. package/dist/redux/assessments/reducer.d.ts +5 -0
  142. package/dist/redux/assignment/action.d.ts +1 -0
  143. package/dist/redux/assignment/reducer.d.ts +2 -0
  144. package/dist/redux/assistants/action.d.ts +1 -0
  145. package/dist/redux/assistants/reducer.d.ts +2 -0
  146. package/dist/redux/badges/action.d.ts +1 -0
  147. package/dist/redux/badges/reducer.d.ts +2 -0
  148. package/dist/redux/bandScores/action.d.ts +1 -0
  149. package/dist/redux/bandScores/reducer.d.ts +2 -0
  150. package/dist/redux/certificate/action.d.ts +1 -0
  151. package/dist/redux/certificate/reducer.d.ts +2 -0
  152. package/dist/redux/classes/action.d.ts +1 -0
  153. package/dist/redux/classes/reducer.d.ts +2 -0
  154. package/dist/redux/commons/action.d.ts +19 -0
  155. package/dist/redux/commons/reducer.d.ts +2 -0
  156. package/dist/redux/conferenceRubrics/action.d.ts +1 -0
  157. package/dist/redux/conferenceRubrics/reducer.d.ts +2 -0
  158. package/dist/redux/customAlert/action.d.ts +1 -0
  159. package/dist/redux/customAlert/reducer.d.ts +2 -0
  160. package/dist/redux/dashboard/action.d.ts +5 -0
  161. package/dist/redux/dashboard/reducer.d.ts +2 -0
  162. package/dist/redux/dataPlayer/action.d.ts +2 -0
  163. package/dist/redux/dataPlayer/reducer.d.ts +2 -0
  164. package/dist/redux/emailTemplates/action.d.ts +1 -0
  165. package/dist/redux/emailTemplates/reducer.d.ts +2 -0
  166. package/dist/redux/faqs/action.d.ts +1 -0
  167. package/dist/redux/faqs/reducer.d.ts +2 -0
  168. package/dist/redux/feedback/action.d.ts +1 -0
  169. package/dist/redux/feedback/reducer.d.ts +2 -0
  170. package/dist/redux/gallery/action.d.ts +2 -0
  171. package/dist/redux/gallery/reducer.d.ts +2 -0
  172. package/dist/redux/goalExamples/action.d.ts +1 -0
  173. package/dist/redux/goalExamples/reducer.d.ts +2 -0
  174. package/dist/redux/improveMyClass/action.d.ts +1 -0
  175. package/dist/redux/improveMyClass/reducer.d.ts +2 -0
  176. package/dist/redux/learningStrategies/action.d.ts +1 -0
  177. package/dist/redux/learningStrategies/reducer.d.ts +2 -0
  178. package/dist/redux/learningSupportCategories/action.d.ts +1 -0
  179. package/dist/redux/learningSupportCategories/reducer.d.ts +2 -0
  180. package/dist/redux/mailCategories/action.d.ts +1 -0
  181. package/dist/redux/mailCategories/reducer.d.ts +2 -0
  182. package/dist/redux/navMobile/action.d.ts +1 -0
  183. package/dist/redux/navMobile/reducer.d.ts +2 -0
  184. package/dist/redux/notifications/action.d.ts +3 -0
  185. package/dist/redux/notifications/reducer.d.ts +2 -0
  186. package/dist/redux/questionBanks/action.d.ts +1 -0
  187. package/dist/redux/questionBanks/reducer.d.ts +2 -0
  188. package/dist/redux/questionByCategory/action.d.ts +8 -0
  189. package/dist/redux/questionByCategory/reducer.d.ts +2 -0
  190. package/dist/redux/questionCategory/action.d.ts +1 -0
  191. package/dist/redux/questionCategory/reducer.d.ts +2 -0
  192. package/dist/redux/reflectionForms/action.d.ts +1 -0
  193. package/dist/redux/reflectionForms/reducer.d.ts +2 -0
  194. package/dist/redux/reflectionResults/action.d.ts +1 -0
  195. package/dist/redux/reflectionResults/reducer.d.ts +2 -0
  196. package/dist/redux/schoolBlankDays/action.d.ts +1 -0
  197. package/dist/redux/schoolBlankDays/reducer.d.ts +2 -0
  198. package/dist/redux/semester/action.d.ts +1 -0
  199. package/dist/redux/semester/reducer.d.ts +2 -0
  200. package/dist/redux/sessionPlayers/action.d.ts +5 -0
  201. package/dist/redux/sessionPlayers/reducer.d.ts +2 -0
  202. package/dist/redux/sessionTemplateGeneralClasses/action.d.ts +1 -0
  203. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +2 -0
  204. package/dist/redux/sessionTemplates/action.d.ts +1 -0
  205. package/dist/redux/sessionTemplates/reducer.d.ts +2 -0
  206. package/dist/redux/skills/action.d.ts +1 -0
  207. package/dist/redux/skills/reducer.d.ts +2 -0
  208. package/dist/redux/subjects/action.d.ts +1 -0
  209. package/dist/redux/subjects/reducer.d.ts +2 -0
  210. package/dist/redux/suggestionBanks/action.d.ts +1 -0
  211. package/dist/redux/suggestionBanks/reducer.d.ts +2 -0
  212. package/dist/redux/teacher/myStudent/action.d.ts +1 -0
  213. package/dist/redux/teacher/myStudent/reducer.d.ts +2 -0
  214. package/dist/redux/tutorialScreen/action.d.ts +1 -0
  215. package/dist/redux/tutorialScreen/reducer.d.ts +5 -0
  216. package/dist/redux/users/action.d.ts +2 -0
  217. package/dist/redux/users/reducer.d.ts +2 -0
  218. package/dist/redux/widget/action.d.ts +1 -0
  219. package/dist/redux/widget/reducer.d.ts +2 -0
  220. package/dist/rootReducer.d.ts +49 -0
  221. package/dist/services/accountService.d.ts +15 -0
  222. package/dist/services/api.d.ts +3 -0
  223. package/dist/services/classService.d.ts +1 -0
  224. package/dist/services/emailTemplateService.d.ts +6 -0
  225. package/dist/services/faqService.d.ts +6 -0
  226. package/dist/services/fileServices.d.ts +13 -0
  227. package/dist/services/galleryService.d.ts +2 -0
  228. package/dist/services/mailCategoryService.d.ts +1 -0
  229. package/dist/services/notificationService.d.ts +7 -0
  230. package/dist/services/questionCategoryService.d.ts +3 -0
  231. package/dist/services/schoolService.d.ts +1 -0
  232. package/dist/services/skillService.d.ts +6 -0
  233. package/dist/services/suggestionCategoryService.d.ts +1 -0
  234. package/dist/services/userService.d.ts +25 -0
  235. package/dist/store.d.ts +3 -0
  236. package/dist/types/Conversation.d.ts +8 -0
  237. package/dist/types/ConversationMember.d.ts +5 -0
  238. package/dist/types/Dashboard.d.ts +5 -0
  239. package/dist/types/Filter.d.ts +16 -0
  240. package/dist/types/Language.d.ts +8 -0
  241. package/dist/types/Message.d.ts +13 -0
  242. package/dist/types/Notification.d.ts +8 -0
  243. package/dist/types/Payload.d.ts +16 -0
  244. package/dist/types/user.d.ts +3 -0
  245. package/dist/utils/canAccessRoute.d.ts +2 -0
  246. package/dist/utils/constants.d.ts +80 -0
  247. package/dist/utils/debounce.d.ts +2 -0
  248. package/dist/utils/domHelpers.d.ts +2 -0
  249. package/dist/utils/encodeParams.d.ts +2 -0
  250. package/dist/utils/firstCheckToken.d.ts +2 -0
  251. package/dist/utils/generateRandomString.d.ts +2 -0
  252. package/dist/utils/getAccessToken.d.ts +2 -0
  253. package/dist/utils/getFileUrl.d.ts +2 -0
  254. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  255. package/dist/utils/getTextFromHTML.d.ts +2 -0
  256. package/dist/utils/utcToLocalTime.d.ts +2 -0
  257. package/package.json +101 -0
@@ -0,0 +1,14 @@
1
+ declare const Images: {
2
+ USER_CONVERSATION_AVATAR: string;
3
+ GROUP_CONVERSATION_AVATAR: string;
4
+ LOGO: string;
5
+ LOGO_HEADER: string;
6
+ LOGO_MINIMIZED: string;
7
+ DOCS_IMAGE: string;
8
+ AUDIO_IMAGE: string;
9
+ PHOTO_IMAGE: string;
10
+ VIDEO_IMAGE: string;
11
+ FOLDER_IMAGE: string;
12
+ UNKNOW_IMAGE: string;
13
+ };
14
+ export default Images;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const CommonAlert: FC;
3
+ export default CommonAlert;
@@ -0,0 +1,8 @@
1
+ import { CSSProperties, FC } from "react";
2
+ interface Props {
3
+ label: string;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ }
7
+ declare const EmptyDataAlert: FC<Props>;
8
+ export default EmptyDataAlert;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ }
5
+ declare const ErrorHandler: FC<Props>;
6
+ export default ErrorHandler;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "react-notifications-component/dist/theme.css";
3
+ declare const _default: () => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SandboxAlert: FC;
3
+ export default SandboxAlert;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ text?: string;
4
+ onClick?(): void;
5
+ }
6
+ declare const AddButton: FC<Props>;
7
+ export default AddButton;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onClick: () => any;
4
+ }
5
+ declare const AddButtonIcon: FC<Props>;
6
+ export default AddButtonIcon;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ defaultInfo?: any;
4
+ userLogin?: any;
5
+ toggle?: any;
6
+ }
7
+ declare const CloseButton: FC<Props>;
8
+ export default CloseButton;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onClick?: () => any;
4
+ }
5
+ declare const DeleteButtonIcon: FC<Props>;
6
+ export default DeleteButtonIcon;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ confirmText: string;
4
+ onConfirm: () => any;
5
+ onCancel: () => any;
6
+ }
7
+ declare const DetailActionButtons: FC<Props>;
8
+ export default DetailActionButtons;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onClick: () => any;
4
+ }
5
+ declare const EditButtonIcon: FC<Props>;
6
+ export default EditButtonIcon;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ label: string;
4
+ onClick: () => any;
5
+ }
6
+ declare const LinkEditButton: FC<Props>;
7
+ export default LinkEditButton;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ link?: string;
4
+ text?: string;
5
+ toggle?: any;
6
+ }
7
+ declare const LoginNavButton: FC<Props>;
8
+ export default LoginNavButton;
@@ -0,0 +1,8 @@
1
+ import React, { FC } from "react";
2
+ interface Props {
3
+ onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
4
+ className?: string;
5
+ text: string;
6
+ }
7
+ declare const SyncButtonIcon: FC<Props>;
8
+ export default SyncButtonIcon;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ textLeft: string;
4
+ textRight: string;
5
+ isLeft: boolean;
6
+ clickLeft: any;
7
+ clickRight: any;
8
+ }
9
+ declare const ToggleButton: FC<Props>;
10
+ export default ToggleButton;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ fileName?: string;
4
+ maxWidth?: string;
5
+ maxHeight?: string;
6
+ setFile: any;
7
+ onAddImage?: any;
8
+ canDelete?: boolean;
9
+ onDelete?: () => void;
10
+ isCheckFeedBack?: boolean;
11
+ }
12
+ declare const UploadFileButton: FC<Props>;
13
+ export default UploadFileButton;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ header: string;
4
+ rootHeader?: string;
5
+ }
6
+ declare const CommonHeader: FC<Props>;
7
+ export default CommonHeader;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const UploadImage: () => JSX.Element;
3
+ export default UploadImage;
@@ -0,0 +1,8 @@
1
+ import React, { FC } from "react";
2
+ interface Props {
3
+ icon: React.ReactNode;
4
+ accept?: string | undefined;
5
+ callback: (fileName: string, filePath: string, fileType: string) => void;
6
+ }
7
+ declare const InputFile: FC<Props>;
8
+ export default InputFile;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ isShowPassword: boolean;
4
+ togglePasswordVisible: any;
5
+ onChange: any;
6
+ placeholder?: string;
7
+ }
8
+ declare const PasswordInput: FC<Props>;
9
+ export default PasswordInput;
@@ -0,0 +1,10 @@
1
+ import React, { CSSProperties } from "react";
2
+ interface Props {
3
+ initValue: string;
4
+ onSearch: (searchString?: string) => any;
5
+ placeholder?: string;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ }
9
+ declare const _default: React.NamedExoticComponent<Props>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ onClick: () => void;
5
+ initValue: string;
6
+ onSearch: (searchString?: string) => void;
7
+ placeholder: string;
8
+ }
9
+ declare const SearchBoxContainer: FC<Props>;
10
+ export default SearchBoxContainer;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface Props {
3
+ text: string;
4
+ }
5
+ declare const _default: React.NamedExoticComponent<Props>;
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const Loading: FC;
3
+ export default Loading;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface IModelSelectRole {
3
+ open: boolean;
4
+ onToggleModel: Function;
5
+ }
6
+ declare const ModelSelectRole: ({ open, onToggleModel }: IModelSelectRole) => JSX.Element;
7
+ export default ModelSelectRole;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const NotificationLogoutModal: () => JSX.Element;
3
+ export default NotificationLogoutModal;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const NotificationModal: () => JSX.Element;
3
+ export default NotificationModal;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function QuitPrompt(props: any): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomPagination: (props: any) => JSX.Element;
3
+ export default CustomPagination;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const ScrollToTop: FC;
3
+ export default ScrollToTop;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AcademicClassSelector: (props: any) => JSX.Element;
3
+ export default AcademicClassSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CategorySelector: ({ value, ...rest }: any) => JSX.Element;
3
+ export default CategorySelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CreatableSelector: (props: any) => JSX.Element;
3
+ export default CreatableSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => JSX.Element;
3
+ export default CustomSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const MailCategorySelector: (props: any) => JSX.Element;
3
+ export default MailCategorySelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const QuestionCategorySelector: (props: any) => JSX.Element;
3
+ export default QuestionCategorySelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const QuestionTypeSelector: (props: any) => JSX.Element;
3
+ export default QuestionTypeSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StarRatingSelector: (props: any) => JSX.Element;
3
+ export default StarRatingSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SuggestionCategorySelector: (props: any) => JSX.Element;
3
+ export default SuggestionCategorySelector;
@@ -0,0 +1,10 @@
1
+ export interface CategoryOption {
2
+ id: number;
3
+ name: string;
4
+ level?: number;
5
+ value: number;
6
+ label: string;
7
+ parentCategoryId?: number;
8
+ numberOfchidren?: number;
9
+ isDisabled?: boolean;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { CategoryOption } from "../constants/constant";
2
+ declare const useCategorySelector: () => {
3
+ categories: CategoryOption[];
4
+ };
5
+ export default useCategorySelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const CustomTabs: (props: any) => JSX.Element;
3
+ export default CustomTabs;
@@ -0,0 +1,7 @@
1
+ declare const editorConfig: {
2
+ email: any;
3
+ question: any;
4
+ answer: any;
5
+ tutorial: any;
6
+ };
7
+ export default editorConfig;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const NotFound: FC;
3
+ export default NotFound;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SchoolList: FC;
3
+ export default SchoolList;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ label: string;
4
+ onRemove: any;
5
+ }
6
+ declare const AttachmentFile: FC<Props>;
7
+ export default AttachmentFile;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onClick: any;
4
+ isResetPasswordTemplate: any;
5
+ }
6
+ declare const MailSubject: FC<Props>;
7
+ export default MailSubject;
@@ -0,0 +1,13 @@
1
+ import * as yup from "yup";
2
+ declare const schema: import("yup/lib/object").OptionalObjectSchema<{
3
+ subject: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
+ categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
5
+ comment: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
6
+ body: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
7
+ }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
8
+ subject: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
9
+ categoryId: import("yup/lib/number").RequiredNumberSchema<number | undefined, Record<string, any>>;
10
+ comment: yup.StringSchema<string | undefined, Record<string, any>, string | undefined>;
11
+ body: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
12
+ }>>;
13
+ export default schema;
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ declare type Attachment = {
3
+ id?: number;
4
+ name: string;
5
+ key: string;
6
+ };
7
+ declare type EmailTemplateDetail = {
8
+ id?: number;
9
+ subject: string;
10
+ categoryId: number;
11
+ body: string;
12
+ attachments: Attachment[];
13
+ };
14
+ declare const useEmailTemplateDetail: (id?: number | undefined) => {
15
+ emailTemplateDetail: EmailTemplateDetail;
16
+ setEditorRef: (node: any) => any;
17
+ addParams: (params: any) => void;
18
+ backToList: () => void;
19
+ confirmData: (data: any) => Promise<void>;
20
+ edited: boolean;
21
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
22
+ setEditedTrue: () => Promise<void>;
23
+ onAttachFile: () => void;
24
+ updateAttachment: () => void;
25
+ fileUpload: any;
26
+ removeAttachment: (inputId: string, fileName: string) => void;
27
+ };
28
+ export default useEmailTemplateDetail;
@@ -0,0 +1,11 @@
1
+ declare const useEmailTemplateList: () => {
2
+ emailTemplateList: any;
3
+ totalItems: any;
4
+ filters: import("../../..").Filter;
5
+ changeFilters: (updatedFilters: any) => void;
6
+ getData: () => Promise<void>;
7
+ removeData: (id: number) => void;
8
+ goToDetail: (id?: number | undefined) => void;
9
+ mailCategoryList: any;
10
+ };
11
+ export default useEmailTemplateList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const EmailTemplateDetail: FC;
3
+ export default EmailTemplateDetail;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const EmailTemplateList: FC;
3
+ export default EmailTemplateList;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ declare type FaqDetail = {
3
+ question: string;
4
+ answer: string;
5
+ };
6
+ declare const useFaqDetail: () => {
7
+ id: number;
8
+ setId: import("react").Dispatch<import("react").SetStateAction<number>>;
9
+ faqDetail: FaqDetail;
10
+ confirmData: (values: any, cb: any) => Promise<void>;
11
+ initValue: FaqDetail;
12
+ reset: () => void;
13
+ edited: boolean;
14
+ setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
+ setEditedTrue: () => Promise<void>;
16
+ setEditedFalse: () => Promise<void>;
17
+ };
18
+ export default useFaqDetail;
@@ -0,0 +1,9 @@
1
+ declare const useFaqList: () => {
2
+ faqList: 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 useFaqList;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const FaqList: FC;
3
+ export default FaqList;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { FilterType } from "../constants/gallery.types";
3
+ interface FilterInterface {
4
+ changeFilters: (filter: FilterType) => void;
5
+ filters: FilterType;
6
+ }
7
+ declare const Filter: FC<FilterInterface>;
8
+ export default Filter;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { S3Object } from '../constants/gallery.types';
3
+ interface MediaInterface {
4
+ media: S3Object;
5
+ isTarget: boolean;
6
+ }
7
+ declare const _default: React.NamedExoticComponent<MediaInterface>;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { S3Object } from "../constants/gallery.types";
3
+ interface MediaDetailInterface {
4
+ targetMedia: S3Object;
5
+ }
6
+ declare const _default: React.NamedExoticComponent<MediaDetailInterface>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ height: string;
4
+ isLibrary?: boolean;
5
+ }
6
+ declare const MediaList: FC<Props>;
7
+ export default MediaList;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { S3Object } from "../constants/gallery.types";
3
+ interface MediaNavInterface {
4
+ isLibrary?: boolean;
5
+ step: number;
6
+ breadcumb: string;
7
+ currentPrefix: string;
8
+ targetMedia: S3Object;
9
+ handleSelectFile: Function;
10
+ handleCreateFolder: Function;
11
+ handleRenameFile: Function;
12
+ handleGoBack: () => void;
13
+ handleDownloadMedia: () => void;
14
+ handleDeleteMediaOrFolder: () => void;
15
+ showErrorAlert: (message: string) => void;
16
+ }
17
+ declare const _default: React.NamedExoticComponent<MediaNavInterface>;
18
+ export default _default;
@@ -0,0 +1,21 @@
1
+ export declare type S3Object = {
2
+ name?: string;
3
+ key?: string;
4
+ extension?: string;
5
+ isFolder?: boolean;
6
+ };
7
+ export declare enum MediaType {
8
+ IMAGE = 0,
9
+ VIDEO = 1,
10
+ AUDIO = 2,
11
+ DOC = 3,
12
+ UNKNOW = 4
13
+ }
14
+ export declare type FilterType = {
15
+ searchString?: string;
16
+ types?: MediaType[];
17
+ prefix?: string;
18
+ fromDate?: number;
19
+ toDate?: number;
20
+ isLibrary?: boolean;
21
+ };
@@ -0,0 +1,4 @@
1
+ import { MediaType, S3Object } from '../constants/gallery.types';
2
+ export declare const getTypeByExtension: (extension: string | undefined) => MediaType;
3
+ export declare const getMediaThumbnail: (media: S3Object) => string;
4
+ export declare const getMediaImage: (media: S3Object) => string;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { FilterType } from "../constants/gallery.types";
3
+ import { S3Object } from "../constants/gallery.types";
4
+ interface FormDataMediaType {
5
+ file: File;
6
+ key?: string;
7
+ }
8
+ interface RouterType {
9
+ link: string;
10
+ step: number;
11
+ }
12
+ declare const useGalleryList: (isLibrary?: boolean) => {
13
+ mediaList: any;
14
+ filters: FilterType;
15
+ totalItems: any;
16
+ targetMedia: S3Object;
17
+ router: RouterType;
18
+ breadcrumb: string;
19
+ getData: () => Promise<void>;
20
+ changeFilters: (updatedFilters: FilterType) => void;
21
+ handleSelectFile: import("react").Dispatch<import("react").SetStateAction<FormDataMediaType | undefined>>;
22
+ handleOpenFolder: (media: S3Object) => void;
23
+ handleSelectMedia: (media: S3Object) => void;
24
+ handleRenameFile: (name: string) => Promise<void>;
25
+ handleDownloadMedia: () => void;
26
+ handleDeleteMediaOrFolder: () => Promise<void>;
27
+ handleCreateFolder: (prefix: string, folderName: string) => Promise<void>;
28
+ handleGoBack: () => void;
29
+ showErrorAlert: (message: string) => void;
30
+ };
31
+ export default useGalleryList;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ isLibrary?: boolean;
4
+ }
5
+ declare const GalleryList: FC<Props>;
6
+ export default GalleryList;
@@ -0,0 +1,7 @@
1
+ export interface ICreatePassword {
2
+ password: string;
3
+ reEnterPassword: string;
4
+ email: string;
5
+ userId: string;
6
+ token: string;
7
+ }