mario-core 0.0.1-district → 1.0.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/components/Alerts/EmptyDataAlert.d.ts +2 -2
  2. package/dist/components/Buttons/AddButton.d.ts +1 -1
  3. package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
  4. package/dist/components/Image/UploadImage.d.ts +2 -2
  5. package/dist/components/Inputs/FileInput.d.ts +2 -2
  6. package/dist/components/Inputs/SearchBoxContainer.d.ts +2 -2
  7. package/dist/components/Labels/RequiredLabel.d.ts +1 -0
  8. package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -2
  9. package/dist/components/Modals/NotificationModal.d.ts +2 -2
  10. package/dist/components/Others/QuitPrompt.d.ts +5 -2
  11. package/dist/components/Pagination/CustomPagination.d.ts +2 -2
  12. package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
  13. package/dist/components/Selectors/CategorySelector.d.ts +2 -2
  14. package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
  15. package/dist/components/Selectors/CustomSelector.d.ts +2 -2
  16. package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
  17. package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
  18. package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
  19. package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
  20. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
  21. package/dist/components/Selectors/constants/constant.d.ts +1 -1
  22. package/dist/components/Tabs/CustomTab.d.ts +2 -2
  23. package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
  24. package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +11 -11
  25. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  26. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  27. package/dist/containers/Login/constant/types.d.ts +27 -0
  28. package/dist/containers/Login/hooks/useForgotPassword.d.ts +1 -1
  29. package/dist/containers/Login/hooks/useLogin.d.ts +10 -4
  30. package/dist/containers/Login/views/Dashboard.d.ts +3 -2
  31. package/dist/containers/Login/views/Login.d.ts +2 -2
  32. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +2 -2
  33. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +6 -2
  34. package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
  35. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
  36. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
  37. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
  38. package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
  39. package/dist/containers/Notifications/hooks/useNotificationList.d.ts +1 -1
  40. package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
  41. package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
  42. package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
  43. package/dist/containers/User/components/DeleteBulkModel copy.d.ts +4 -0
  44. package/dist/containers/User/components/DeleteBulkModel.d.ts +4 -0
  45. package/dist/containers/User/components/HeaderCell.d.ts +2 -0
  46. package/dist/containers/User/components/RemoveAssistant.d.ts +4 -0
  47. package/dist/containers/User/components/RemoveCounselor.d.ts +4 -0
  48. package/dist/containers/User/components/RemoveSupportTeacher.d.ts +4 -0
  49. package/dist/containers/User/components/RemoveTeacher.d.ts +4 -0
  50. package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
  51. package/dist/containers/User/components/TableHeader.d.ts +5 -0
  52. package/dist/containers/User/components/TeacherSelector.d.ts +2 -2
  53. package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
  54. package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
  55. package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -9
  56. package/dist/containers/User/configs/userSchema.d.ts +11 -13
  57. package/dist/containers/User/configs/utils.d.ts +8 -0
  58. package/dist/containers/User/constants/constants.d.ts +44 -1
  59. package/dist/containers/User/constants/types.d.ts +118 -10
  60. package/dist/containers/User/hooks/useAssignStudent.d.ts +41 -1
  61. package/dist/containers/User/hooks/useAssignStudentList.d.ts +23 -1
  62. package/dist/containers/User/hooks/useAssistantList.d.ts +1 -1
  63. package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
  64. package/dist/containers/User/hooks/useCSVImportTab.d.ts +46 -0
  65. package/dist/containers/User/hooks/useCounselorList.d.ts +1 -1
  66. package/dist/containers/User/hooks/useFilterPopover.d.ts +2 -2
  67. package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
  68. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +1 -1
  69. package/dist/containers/User/hooks/useTableHeader.d.ts +5 -0
  70. package/dist/containers/User/hooks/useTeacherList.d.ts +2 -2
  71. package/dist/containers/User/hooks/useUserDeletedList.d.ts +22 -0
  72. package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
  73. package/dist/containers/User/hooks/useUserDetail.d.ts +14 -0
  74. package/dist/containers/User/hooks/useUserList.d.ts +4 -1
  75. package/dist/containers/User/views/AssignStudentList.d.ts +2 -2
  76. package/dist/containers/User/views/CSVImport.d.ts +3 -0
  77. package/dist/containers/User/views/UserContainer.d.ts +2 -2
  78. package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
  79. package/dist/containers/User/views/UserDetail.d.ts +2 -2
  80. package/dist/containers/User/views/UserList.d.ts +2 -2
  81. package/dist/hooks/useLanguages.d.ts +10 -0
  82. package/dist/index.css +822 -329
  83. package/dist/index.d.ts +8 -9
  84. package/dist/index.js +28507 -24183
  85. package/dist/index.js.map +1 -1
  86. package/dist/index.modern.js +28508 -24184
  87. package/dist/index.modern.js.map +1 -1
  88. package/dist/layouts/TheContent.d.ts +1 -1
  89. package/dist/redux/assessments/reducer.d.ts +9 -1
  90. package/dist/redux/assignment/reducer.d.ts +3 -1
  91. package/dist/redux/assistants/reducer.d.ts +3 -1
  92. package/dist/redux/badges/reducer.d.ts +3 -1
  93. package/dist/redux/bandScores/reducer.d.ts +3 -1
  94. package/dist/redux/certificate/reducer.d.ts +3 -1
  95. package/dist/redux/classes/reducer.d.ts +3 -1
  96. package/dist/redux/commons/action.d.ts +3 -0
  97. package/dist/redux/commons/reducer.d.ts +3 -1
  98. package/dist/redux/conferenceRubrics/reducer.d.ts +3 -1
  99. package/dist/redux/customAlert/reducer.d.ts +3 -1
  100. package/dist/redux/dashboard/reducer.d.ts +3 -1
  101. package/dist/redux/dataPlayer/reducer.d.ts +3 -1
  102. package/dist/redux/emailTemplates/reducer.d.ts +3 -1
  103. package/dist/redux/faqs/reducer.d.ts +3 -1
  104. package/dist/redux/feedback/reducer.d.ts +3 -1
  105. package/dist/redux/gallery/reducer.d.ts +3 -1
  106. package/dist/redux/goalExamples/reducer.d.ts +3 -1
  107. package/dist/redux/improveMyClass/reducer.d.ts +3 -1
  108. package/dist/redux/learningStrategies/reducer.d.ts +3 -1
  109. package/dist/redux/learningSupportCategories/reducer.d.ts +3 -1
  110. package/dist/redux/mailCategories/reducer.d.ts +3 -1
  111. package/dist/redux/navMobile/reducer.d.ts +3 -1
  112. package/dist/redux/notifications/reducer.d.ts +3 -1
  113. package/dist/redux/questionBanks/reducer.d.ts +3 -1
  114. package/dist/redux/questionByCategory/reducer.d.ts +3 -1
  115. package/dist/redux/questionCategory/reducer.d.ts +3 -1
  116. package/dist/redux/reflectionForms/reducer.d.ts +3 -1
  117. package/dist/redux/reflectionResults/reducer.d.ts +3 -1
  118. package/dist/redux/schoolBlankDays/reducer.d.ts +3 -1
  119. package/dist/redux/semester/reducer.d.ts +3 -1
  120. package/dist/redux/sessionPlayers/reducer.d.ts +3 -1
  121. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +3 -1
  122. package/dist/redux/sessionTemplates/reducer.d.ts +3 -1
  123. package/dist/redux/skills/reducer.d.ts +3 -1
  124. package/dist/redux/subjects/reducer.d.ts +3 -1
  125. package/dist/redux/suggestionBanks/reducer.d.ts +3 -1
  126. package/dist/redux/teacher/myStudent/reducer.d.ts +3 -1
  127. package/dist/redux/tutorialScreen/reducer.d.ts +9 -1
  128. package/dist/redux/users/reducer.d.ts +3 -1
  129. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  130. package/dist/redux/weeklyQuests/reducer.d.ts +16 -0
  131. package/dist/redux/widget/reducer.d.ts +3 -1
  132. package/dist/rootReducer.d.ts +59 -2
  133. package/dist/services/accountService.d.ts +20 -14
  134. package/dist/services/classService.d.ts +1 -1
  135. package/dist/services/csvImportService.d.ts +9 -0
  136. package/dist/services/csvService.d.ts +8 -0
  137. package/dist/services/emailTemplateService.d.ts +6 -5
  138. package/dist/services/fileServices.d.ts +13 -13
  139. package/dist/services/galleryService.d.ts +1 -1
  140. package/dist/services/mailCategoryService.d.ts +1 -1
  141. package/dist/services/notificationService.d.ts +7 -7
  142. package/dist/services/questionCategoryService.d.ts +2 -2
  143. package/dist/services/schoolService.d.ts +2 -1
  144. package/dist/services/skillService.d.ts +5 -5
  145. package/dist/services/suggestionCategoryService.d.ts +1 -1
  146. package/dist/services/userService.d.ts +34 -22
  147. package/dist/types/Payload.d.ts +1 -0
  148. package/dist/utils/constants.d.ts +9 -2
  149. package/dist/utils/getCookieValue.d.ts +2 -0
  150. package/package.json +93 -101
  151. package/dist/components/Alerts/ReactNotification.d.ts +0 -4
  152. package/dist/components/Modals/ModelSelectRole.d.ts +0 -7
  153. package/dist/containers/Faq/hooks/useFaqDetail.d.ts +0 -18
  154. package/dist/containers/Faq/hooks/useFaqList.d.ts +0 -9
  155. package/dist/containers/Faq/views/FaqList.d.ts +0 -3
  156. package/dist/layouts/TheFooter.d.ts +0 -3
  157. package/dist/layouts/TheHeader.d.ts +0 -6
  158. package/dist/layouts/TheHeaderDropdown.d.ts +0 -6
  159. package/dist/layouts/TheLanguageDropdown.d.ts +0 -3
  160. package/dist/layouts/TheLayout.d.ts +0 -4
  161. package/dist/layouts/TheSidebar.d.ts +0 -3
  162. package/dist/services/faqService.d.ts +0 -6
  163. /package/dist/containers/{Faq/components/FaqDetailModal.d.ts → User/components/SwitchTeacherModal.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
- import { CSSProperties, FC } from "react";
1
+ import React, { CSSProperties } from "react";
2
2
  interface Props {
3
3
  label: string;
4
4
  className?: string;
5
5
  style?: CSSProperties;
6
6
  }
7
- declare const EmptyDataAlert: FC<Props>;
7
+ declare const EmptyDataAlert: ({ label, className, style }: Props) => React.JSX.Element;
8
8
  export default EmptyDataAlert;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from "react";
2
2
  interface Props {
3
3
  text?: string;
4
4
  onClick?(): void;
@@ -1,6 +1,7 @@
1
1
  import { FC } from "react";
2
2
  interface Props {
3
3
  onClick?: () => any;
4
+ className?: string;
4
5
  }
5
6
  declare const DeleteButtonIcon: FC<Props>;
6
7
  export default DeleteButtonIcon;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UploadImage: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UploadImage: () => React.JSX.Element;
3
3
  export default UploadImage;
@@ -1,8 +1,8 @@
1
- import React, { FC } from "react";
1
+ import React from "react";
2
2
  interface Props {
3
3
  icon: React.ReactNode;
4
4
  accept?: string | undefined;
5
5
  callback: (fileName: string, filePath: string, fileType: string) => void;
6
6
  }
7
- declare const InputFile: FC<Props>;
7
+ declare const InputFile: ({ icon, accept, callback }: Props) => React.JSX.Element;
8
8
  export default InputFile;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import React from "react";
2
2
  interface Props {
3
3
  text: string;
4
4
  onClick: () => void;
@@ -6,5 +6,5 @@ interface Props {
6
6
  onSearch: (searchString?: string) => void;
7
7
  placeholder: string;
8
8
  }
9
- declare const SearchBoxContainer: FC<Props>;
9
+ declare const SearchBoxContainer: ({ text, initValue, onClick, onSearch, placeholder }: Props) => React.JSX.Element;
10
10
  export default SearchBoxContainer;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  interface Props {
3
3
  text: string;
4
+ className?: string;
4
5
  }
5
6
  declare const _default: React.NamedExoticComponent<Props>;
6
7
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const NotificationLogoutModal: () => JSX.Element;
1
+ import React from "react";
2
+ declare const NotificationLogoutModal: () => React.JSX.Element;
3
3
  export default NotificationLogoutModal;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const NotificationModal: () => JSX.Element;
1
+ import React from "react";
2
+ declare const NotificationModal: () => React.JSX.Element;
3
3
  export default NotificationModal;
@@ -1,2 +1,5 @@
1
- /// <reference types="react" />
2
- export default function QuitPrompt(props: any): JSX.Element;
1
+ interface Props {
2
+ when: boolean;
3
+ }
4
+ export default function QuitPrompt({ when }: Props): null;
5
+ export {};
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CustomPagination: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomPagination: (props: any) => React.JSX.Element;
3
3
  export default CustomPagination;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const AcademicClassSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const AcademicClassSelector: (props: any) => React.JSX.Element;
3
3
  export default AcademicClassSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CategorySelector: ({ value, ...rest }: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CategorySelector: ({ value, ...rest }: any) => React.JSX.Element;
3
3
  export default CategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CreatableSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CreatableSelector: (props: any) => React.JSX.Element;
3
3
  export default CreatableSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => React.JSX.Element;
3
3
  export default CustomSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const MailCategorySelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const MailCategorySelector: (props: any) => React.JSX.Element;
3
3
  export default MailCategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const QuestionCategorySelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const QuestionCategorySelector: (props: any) => React.JSX.Element;
3
3
  export default QuestionCategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const QuestionTypeSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const QuestionTypeSelector: (props: any) => React.JSX.Element;
3
3
  export default QuestionTypeSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const StarRatingSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const StarRatingSelector: (props: any) => React.JSX.Element;
3
3
  export default StarRatingSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const SuggestionCategorySelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const SuggestionCategorySelector: (props: any) => React.JSX.Element;
3
3
  export default SuggestionCategorySelector;
@@ -4,7 +4,7 @@ export interface CategoryOption {
4
4
  level?: number;
5
5
  value: number;
6
6
  label: string;
7
- parentCategoryId?: number;
7
+ parentCategoryId?: Array<number>;
8
8
  numberOfchidren?: number;
9
9
  isDisabled?: boolean;
10
10
  }
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CustomTabs: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomTabs: (props: any) => React.JSX.Element;
3
3
  export default CustomTabs;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface ITab {
3
+ title: string;
4
+ component: React.ComponentType<any>;
5
+ }
6
+ interface Props {
7
+ tabs: ITab[];
8
+ }
9
+ declare const TabsWithComponent: ({ tabs }: Props) => React.JSX.Element;
10
+ export default TabsWithComponent;
@@ -1,13 +1,13 @@
1
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
- }>>;
2
+ declare const schema: yup.ObjectSchema<{
3
+ subject: string;
4
+ categoryId: number;
5
+ comment: string | undefined;
6
+ body: string;
7
+ }, yup.AnyObject, {
8
+ subject: undefined;
9
+ categoryId: undefined;
10
+ comment: undefined;
11
+ body: undefined;
12
+ }, "">;
13
13
  export default schema;
@@ -24,5 +24,6 @@ declare const useEmailTemplateDetail: (id?: number | undefined) => {
24
24
  updateAttachment: () => void;
25
25
  fileUpload: any;
26
26
  removeAttachment: (inputId: string, fileName: string) => void;
27
+ tinyMCEKey: string;
27
28
  };
28
29
  export default useEmailTemplateDetail;
@@ -0,0 +1,38 @@
1
+ import { LogLevel } from "@azure/msal-browser";
2
+ /**
3
+ * Configuration object to be passed to MSAL instance on creation.
4
+ * For a full list of MSAL.js configuration parameters, visit:
5
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
6
+ */
7
+ export declare const msalConfig: {
8
+ auth: {
9
+ clientId: string;
10
+ authority: string;
11
+ redirectUri: string;
12
+ };
13
+ cache: {
14
+ cacheLocation: string;
15
+ storeAuthStateInCookie: boolean;
16
+ };
17
+ system: {
18
+ loggerOptions: {
19
+ loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
20
+ };
21
+ };
22
+ };
23
+ /**
24
+ * Scopes you add here will be prompted for user consent during sign-in.
25
+ * By default, MSAL.js will add OIDC scopes (openid, profile, email) to any login request.
26
+ * For more information about OIDC scopes, visit:
27
+ * https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes
28
+ */
29
+ export declare const loginRequest: {
30
+ scopes: string[];
31
+ };
32
+ /**
33
+ * Add here the scopes to request when obtaining an access token for MS Graph API. For more information, see:
34
+ * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/resources-and-scopes.md
35
+ */
36
+ export declare const graphConfig: {
37
+ graphMeEndpoint: string;
38
+ };
@@ -5,3 +5,30 @@ export interface ICreatePassword {
5
5
  userId: string;
6
6
  token: string;
7
7
  }
8
+ export declare enum TypeLogin {
9
+ Google = 0,
10
+ ClassLink = 1,
11
+ MicrosoftSSO = 2
12
+ }
13
+ export interface IInformationUser {
14
+ firstName: string;
15
+ lastName: string;
16
+ fullName: string;
17
+ imageUrl: string | null;
18
+ email: string;
19
+ accessToken: string;
20
+ googleId: string;
21
+ }
22
+ export declare enum LoginType {
23
+ Default = 0,
24
+ Google = 1,
25
+ Impersonate = 2
26
+ }
27
+ export interface ISchool {
28
+ schoolName: string;
29
+ schoolLogo: string;
30
+ schoolId: number;
31
+ }
32
+ export interface IDashboard {
33
+ version?: string;
34
+ }
@@ -7,7 +7,7 @@ declare type ForgotPasswordInfo = {
7
7
  declare const useForgotPassword: () => {
8
8
  defaultInfo: ForgotPasswordInfo;
9
9
  forgotPasswordRequest: (data: any) => Promise<void>;
10
- checkResetTokenRequest: (token: string) => Promise<void>;
10
+ checkResetTokenRequest: (token: string, key: string) => Promise<void>;
11
11
  validLink: boolean;
12
12
  resetPasswordRequest: (data: any) => Promise<void>;
13
13
  openLogin: boolean;
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import { TypeLogin, ISchool } from "../constant/types";
2
3
  declare type LoginInfo = {
3
4
  email: string;
4
5
  password: string;
5
6
  captcha: string;
6
7
  rememberMe: boolean;
8
+ isSessionUserBrowser?: boolean;
7
9
  };
8
10
  declare const useLogin: () => {
9
11
  defaultInfo: LoginInfo;
@@ -12,13 +14,17 @@ declare const useLogin: () => {
12
14
  toggle: () => void;
13
15
  isShowPassword: boolean;
14
16
  setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
- fnIsCheckLogin: (data: any, token: string, clickHandler: any) => Promise<void>;
16
- isLoginGoogle: boolean;
17
+ fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler?: any) => Promise<void>;
18
+ isLoginGoogle: any;
17
19
  infoUser: any;
18
- setInfoUser: import("react").Dispatch<any>;
19
20
  submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
20
- setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
21
21
  googleClientId: string;
22
22
  googleRecaptchaId: string;
23
+ handleCancelModelAssign: () => void;
24
+ openModelAssign: boolean;
25
+ fnLoginSSO: (clickHandler?: any) => Promise<void>;
26
+ school: ISchool;
27
+ extensionEmail: string;
28
+ handleLoginWidthClever: () => void;
23
29
  };
24
30
  export default useLogin;
@@ -1,3 +1,4 @@
1
- /// <reference types="react" />
2
- declare const Dashboard: () => JSX.Element;
1
+ import React from "react";
2
+ import { IDashboard } from "../constant/types";
3
+ declare const Dashboard: ({ version }: IDashboard) => React.JSX.Element;
3
4
  export default Dashboard;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  interface loginProps {
3
3
  isLogin?: boolean;
4
4
  isForgotPassword?: boolean;
@@ -6,5 +6,5 @@ interface loginProps {
6
6
  isLoginTwoFactor?: boolean;
7
7
  isCreatePassword?: boolean;
8
8
  }
9
- declare const Login: (props: loginProps) => JSX.Element;
9
+ declare const Login: (props: loginProps) => React.JSX.Element;
10
10
  export default Login;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BlockCreatePassword: () => JSX.Element;
1
+ import React from "react";
2
+ declare const BlockCreatePassword: () => React.JSX.Element;
3
3
  export default BlockCreatePassword;
@@ -1,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const BlockForgetPassword: () => JSX.Element;
1
+ import React from "react";
2
+ import { ISchool } from "../../constant/types";
3
+ interface Props {
4
+ school: ISchool;
5
+ }
6
+ declare const BlockForgetPassword: ({ school }: Props) => React.JSX.Element;
3
7
  export default BlockForgetPassword;
@@ -1,7 +1,21 @@
1
1
  import { FC } from "react";
2
+ import { ISchool } from "../../constant/types";
2
3
  interface Props {
3
4
  defaultInfo?: any;
4
5
  userLogin?: any;
6
+ onCancelModelAssign: Function;
7
+ openModelAssign: boolean;
8
+ school: ISchool;
9
+ isShowPassword: boolean;
10
+ setIsShowPassword: Function;
11
+ fnIsCheckLogin: Function;
12
+ isLoginGoogle: boolean;
13
+ submitLogin: Function;
14
+ infoUser: any;
15
+ googleClientId: string;
16
+ fnLoginSSO: Function;
17
+ extensionEmail: string;
18
+ onLoginWidthClever: Function;
5
19
  }
6
20
  declare const BlockLogin: FC<Props>;
7
21
  export default BlockLogin;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BlockResetPassword: () => JSX.Element;
1
+ import React from "react";
2
+ declare const BlockResetPassword: () => React.JSX.Element;
3
3
  export default BlockResetPassword;
@@ -6,7 +6,6 @@ interface Props {
6
6
  onSubmit: any;
7
7
  token: string;
8
8
  email: string;
9
- setOpenModal: any;
10
9
  }
11
10
  declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
12
11
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BlockTwoFactorLogin: () => JSX.Element;
1
+ import React from "react";
2
+ declare const BlockTwoFactorLogin: () => React.JSX.Element;
3
3
  export default BlockTwoFactorLogin;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const QuoteContent: () => JSX.Element;
1
+ import React from "react";
2
+ declare const QuoteContent: () => React.JSX.Element;
3
3
  export default QuoteContent;
@@ -9,7 +9,7 @@ declare const useNotificationList: () => {
9
9
  isRead: boolean;
10
10
  };
11
11
  changeFilters: (objectValue: any) => void;
12
- updateNotification: (id: any, isRead: any) => void;
12
+ updateNotification: (id: number, isRead: boolean) => void;
13
13
  viewNotification: (notification: any) => void;
14
14
  updateAll: () => Promise<void>;
15
15
  toggleUpdateAllStatus: boolean;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const NotificationList: () => JSX.Element;
1
+ import React from "react";
2
+ declare const NotificationList: () => React.JSX.Element;
3
3
  export default NotificationList;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const SkillSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const SkillSelector: (props: any) => React.JSX.Element;
3
3
  export default SkillSelector;
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ import { IStaffAssign, StudentAssign } from '../constants/types';
3
+ interface IProps {
4
+ openDetailModal: boolean;
5
+ onClose: Function;
6
+ selectedUser: StudentAssign;
7
+ staffBulkAssign: IStaffAssign;
8
+ teacherOptions: any[];
9
+ assistantOptions: any[];
10
+ counselorOptions: any[];
11
+ secondaryTeacherOptions: any[];
12
+ handleChangeTeacherBulk: Function;
13
+ handleChangeCounselorBulk: Function;
14
+ handleChangeStaffBulk: Function;
15
+ handleEditAssignForStudents: Function;
16
+ toggleCollapse: (index: number) => void;
17
+ activeIndex: number;
18
+ }
19
+ declare const AssignStudentModal: FC<IProps>;
20
+ export default AssignStudentModal;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IDeleteBulkModel } from "../constants/types";
3
+ declare const DeleteBulkModel: ({ open, onClose, teachers, onChangeStaffRemove, switchStaffUsers, assistants, onRemoveBulkStaff, counselors, studentUserIds, secondaryTeachers }: IDeleteBulkModel) => React.JSX.Element;
4
+ export default DeleteBulkModel;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IDeleteBulkModel } from "../constants/types";
3
+ declare const DeleteBulkModel: ({ open, onClose, teachers, onChangeStaffRemove, switchStaffUsers, assistants, onRemoveBulkStaff, counselors, studentUserIds, secondaryTeachers }: IDeleteBulkModel) => React.JSX.Element;
4
+ export default DeleteBulkModel;
@@ -12,6 +12,8 @@ interface Props {
12
12
  onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
13
13
  onClose?: () => void;
14
14
  onChangeFilters?: (filter: UserFilter) => void;
15
+ isCenter?: boolean;
16
+ isActive?: boolean;
15
17
  }
16
18
  declare const HeaderCell: FC<Props>;
17
19
  export default HeaderCell;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IRemoveAssistant } from "../constants/types";
3
+ declare const RemoveAssistant: ({ assistants, onChangeStaffRemove, switchStaffUsers }: IRemoveAssistant) => React.JSX.Element;
4
+ export default RemoveAssistant;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IRemoveCounselor } from "../constants/types";
3
+ declare const RemoveCounselor: ({ counselors, onChangeStaffRemove, switchStaffUsers }: IRemoveCounselor) => React.JSX.Element;
4
+ export default RemoveCounselor;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IRemoveSupportTeacher } from "../constants/types";
3
+ declare const RemoveSupportTeacher: ({ secondaryTeachers, onChangeStaffRemove, switchStaffUsers }: IRemoveSupportTeacher) => React.JSX.Element;
4
+ export default RemoveSupportTeacher;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IRemoveTeacher } from "../constants/types";
3
+ declare const RemoveTeacher: ({ teachers, onChangeStaffRemove, switchStaffUsers }: IRemoveTeacher) => React.JSX.Element;
4
+ export default RemoveTeacher;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { ITeachers } from "../constants/types";
3
+ interface IProps {
4
+ open: boolean;
5
+ onClose: Function;
6
+ teachers: ITeachers[];
7
+ onConfirm: Function;
8
+ teacherSwitchUserId: string;
9
+ setTeacherSwitchUserId: Function;
10
+ }
11
+ declare const SwitchDataTeacherModel: FC<IProps>;
12
+ export default SwitchDataTeacherModel;
@@ -5,6 +5,11 @@ interface Props {
5
5
  filters: UserFilter;
6
6
  fullName?: string;
7
7
  onChangeFilters?: (filter: UserFilter) => void;
8
+ isStudentFilter?: boolean;
9
+ teacherOptions?: any[];
10
+ assistantOptions?: any[];
11
+ counselorOptions?: any[];
12
+ secondaryTeacherOptions?: any[];
8
13
  }
9
14
  declare const TableHeader: FC<Props>;
10
15
  export default TableHeader;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => React.JSX.Element;
3
3
  export default TeacherSelector;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ htmlFor: string;
4
+ isDisabled: boolean;
5
+ text: string;
6
+ backgroundColor: string;
7
+ onClick: Function;
8
+ isClassReflection?: boolean;
9
+ }
10
+ declare const UploadCSVButton: FC<Props>;
11
+ export default UploadCSVButton;
@@ -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;
@@ -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
- }>>;
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
+ }, "">;
10
11
  export default changePasswordSchema;