mario-core 2.10.0-beta → 2.10.0-feedback

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
  2. package/dist/components/Buttons/DeleteButtonIcon.d.ts +1 -0
  3. package/dist/components/Buttons/SyncButton.d.ts +8 -0
  4. package/dist/components/Inputs/PasswordInput.d.ts +1 -0
  5. package/dist/components/Labels/RequiredLabel.d.ts +1 -0
  6. package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
  7. package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
  8. package/dist/components/Selectors/constants/constant.d.ts +1 -1
  9. package/dist/components/Tabs/TabsWithComponent.d.ts +10 -0
  10. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  11. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  12. package/dist/containers/Login/constant/types.d.ts +34 -0
  13. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  14. package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
  15. package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
  16. package/dist/containers/Login/views/Dashboard.d.ts +2 -1
  17. package/dist/containers/Login/views/Login.d.ts +1 -0
  18. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  19. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  20. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
  21. package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
  22. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
  23. package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
  24. package/dist/containers/User/components/DeleteBulkModel copy.d.ts +4 -0
  25. package/dist/containers/User/components/DeleteBulkModel.d.ts +4 -0
  26. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  27. package/dist/containers/User/components/HeaderCell.d.ts +19 -0
  28. package/dist/containers/User/components/RemoveAssistant.d.ts +4 -0
  29. package/dist/containers/User/components/RemoveCounselor.d.ts +4 -0
  30. package/dist/containers/User/components/RemoveSupportTeacher.d.ts +4 -0
  31. package/dist/containers/User/components/RemoveTeacher.d.ts +4 -0
  32. package/dist/containers/User/components/SwitchDataTeacherModel.d.ts +12 -0
  33. package/dist/containers/User/components/SwitchTeacherModal.d.ts +3 -0
  34. package/dist/containers/User/components/TableHeader.d.ts +15 -0
  35. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  36. package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
  37. package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
  38. package/dist/containers/User/configs/userSchema.d.ts +0 -2
  39. package/dist/containers/User/configs/utils.d.ts +8 -0
  40. package/dist/containers/User/constants/constants.d.ts +62 -0
  41. package/dist/containers/User/constants/types.d.ts +257 -0
  42. package/dist/containers/User/hooks/useAssignStudent.d.ts +45 -0
  43. package/dist/containers/User/hooks/useAssignStudentList.d.ts +36 -0
  44. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  45. package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
  46. package/dist/containers/User/hooks/useCSVImportTab.d.ts +46 -0
  47. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  48. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  49. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  50. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  51. package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
  52. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  53. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  54. package/dist/containers/User/hooks/useTableHeader.d.ts +20 -0
  55. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  56. package/dist/containers/User/hooks/useUserDeletedList.d.ts +37 -0
  57. package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
  58. package/dist/containers/User/hooks/useUserDetail.d.ts +18 -0
  59. package/dist/containers/User/hooks/useUserList.d.ts +9 -3
  60. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  61. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  62. package/dist/containers/User/views/CSVImport.d.ts +3 -0
  63. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  64. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  65. package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
  66. package/dist/hooks/useLanguages.d.ts +10 -0
  67. package/dist/index.css +468 -77
  68. package/dist/index.d.ts +13 -7
  69. package/dist/index.js +50000 -5162
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.modern.js +50002 -5178
  72. package/dist/index.modern.js.map +1 -1
  73. package/dist/layouts/TheHeader.d.ts +4 -1
  74. package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
  75. package/dist/redux/commons/action.d.ts +5 -0
  76. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  77. package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
  78. package/dist/rootReducer.d.ts +5 -0
  79. package/dist/services/accountService.d.ts +12 -2
  80. package/dist/services/csvImportService.d.ts +9 -0
  81. package/dist/services/csvService.d.ts +8 -0
  82. package/dist/services/emailTemplateService.d.ts +1 -0
  83. package/dist/services/schoolService.d.ts +2 -0
  84. package/dist/services/userService.d.ts +28 -1
  85. package/dist/types/Filter.d.ts +6 -0
  86. package/dist/types/Language.d.ts +8 -0
  87. package/dist/types/Payload.d.ts +2 -0
  88. package/dist/types/user.d.ts +3 -0
  89. package/dist/utils/constants.d.ts +17 -2
  90. package/dist/utils/getCookieValue.d.ts +2 -0
  91. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  92. package/package.json +105 -100
  93. package/dist/containers/Login/constant/type.d.ts +0 -5
  94. package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
  95. package/dist/utils/amplitude.d.ts +0 -1
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const SandboxAlert: FC;
3
+ export default SandboxAlert;
@@ -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;
@@ -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;
@@ -3,6 +3,7 @@ interface Props {
3
3
  isShowPassword: boolean;
4
4
  togglePasswordVisible: any;
5
5
  onChange: any;
6
+ placeholder?: string;
6
7
  }
7
8
  declare const PasswordInput: FC<Props>;
8
9
  export default PasswordInput;
@@ -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;
@@ -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;
@@ -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
  }
@@ -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) => JSX.Element;
10
+ export default TabsWithComponent;
@@ -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
+ };
@@ -0,0 +1,34 @@
1
+ export interface ICreatePassword {
2
+ password: string;
3
+ reEnterPassword: string;
4
+ email: string;
5
+ userId: string;
6
+ token: string;
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
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ICreatePassword } from "../constant/types";
3
+ declare const useCreatePassword: () => {
4
+ createPasswordRequest: (data: ICreatePassword) => Promise<void>;
5
+ isShowNewPassword: boolean;
6
+ setIsShowNewPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
+ isShowReTypePassword: boolean;
8
+ setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
+ clickHandler: () => Promise<any>;
10
+ handleVerify: () => void;
11
+ initialValues: ICreatePassword;
12
+ };
13
+ export default useCreatePassword;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ICreatePassword } from "../constant/types";
2
3
  declare type ForgotPasswordInfo = {
3
4
  email: string;
4
5
  captcha: string;
@@ -6,7 +7,7 @@ declare type ForgotPasswordInfo = {
6
7
  declare const useForgotPassword: () => {
7
8
  defaultInfo: ForgotPasswordInfo;
8
9
  forgotPasswordRequest: (data: any) => Promise<void>;
9
- checkResetTokenRequest: (token: string) => Promise<void>;
10
+ checkResetTokenRequest: (token: string, key: string) => Promise<void>;
10
11
  validLink: boolean;
11
12
  resetPasswordRequest: (data: any) => Promise<void>;
12
13
  openLogin: boolean;
@@ -17,5 +18,6 @@ declare const useForgotPassword: () => {
17
18
  setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
18
19
  clickHandler: () => Promise<any>;
19
20
  handleVerify: () => void;
21
+ initialValues: ICreatePassword;
20
22
  };
21
23
  export default useForgotPassword;
@@ -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,12 +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
+ googleRecaptchaId: string;
23
+ handleCancelModelAssign: () => void;
24
+ openModelAssign: boolean;
25
+ fnLoginSSO: (clickHandler?: any) => Promise<void>;
26
+ school: ISchool;
27
+ extensionEmail: string;
28
+ handleLoginWidthClever: () => void;
22
29
  };
23
30
  export default useLogin;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare const Dashboard: () => JSX.Element;
2
+ import { IDashboard } from "../constant/types";
3
+ declare const Dashboard: ({ version }: IDashboard) => JSX.Element;
3
4
  export default Dashboard;
@@ -4,6 +4,7 @@ interface loginProps {
4
4
  isForgotPassword?: boolean;
5
5
  isResetPassword?: boolean;
6
6
  isLoginTwoFactor?: boolean;
7
+ isCreatePassword?: boolean;
7
8
  }
8
9
  declare const Login: (props: loginProps) => JSX.Element;
9
10
  export default Login;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ data: string[];
4
+ duration?: number;
5
+ }
6
+ declare const BlockBackground: FC<Props>;
7
+ export default BlockBackground;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const BlockCreatePassword: () => JSX.Element;
3
+ export default BlockCreatePassword;
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const BlockForgetPassword: () => JSX.Element;
2
+ import { ISchool } from "../../constant/types";
3
+ interface Props {
4
+ school: ISchool;
5
+ }
6
+ declare const BlockForgetPassword: ({ school }: Props) => 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;
@@ -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;
@@ -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
+ /// <reference types="react" />
2
+ import { IDeleteBulkModel } from "../constants/types";
3
+ declare const DeleteBulkModel: ({ open, onClose, teachers, onChangeStaffRemove, switchStaffUsers, assistants, onRemoveBulkStaff, counselors, studentUserIds, secondaryTeachers }: IDeleteBulkModel) => JSX.Element;
4
+ export default DeleteBulkModel;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IDeleteBulkModel } from "../constants/types";
3
+ declare const DeleteBulkModel: ({ open, onClose, teachers, onChangeStaffRemove, switchStaffUsers, assistants, onRemoveBulkStaff, counselors, studentUserIds, secondaryTeachers }: IDeleteBulkModel) => JSX.Element;
4
+ export default DeleteBulkModel;
@@ -0,0 +1,21 @@
1
+ import { FC } from "react";
2
+ import { PopoverProps } from "reactstrap";
3
+ import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
4
+ interface Props extends PopoverProps {
5
+ filters?: UserFilter;
6
+ sortBy: UserOrder;
7
+ searchBy?: SearchBy;
8
+ users: string[];
9
+ defaultOptions?: FilterOption[];
10
+ selectedOptions?: string[];
11
+ searchKey: string;
12
+ onChangeSearchKey: (value: string) => void;
13
+ onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
14
+ onSearch?: (search: string, searchBy: SearchBy) => void;
15
+ onClose?: () => void;
16
+ onFilter?: () => void;
17
+ onChangeFilters?: (filter: UserFilter) => void;
18
+ getOption?: (user: any, t?: any) => FilterOption;
19
+ }
20
+ declare const FilterPopover: FC<Props>;
21
+ export default FilterPopover;
@@ -0,0 +1,19 @@
1
+ import { FC } from "react";
2
+ import { SearchBy, UserColumn, UserFilter, UserOrder } from "../constants/types";
3
+ interface Props {
4
+ data: UserColumn;
5
+ popoverId?: string;
6
+ filters?: UserFilter;
7
+ searchString?: string;
8
+ users: string[];
9
+ selectedOptions?: string[];
10
+ onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
11
+ onSearch?: (search: string, searchBy: SearchBy) => void;
12
+ onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
13
+ onClose?: () => void;
14
+ onChangeFilters?: (filter: UserFilter) => void;
15
+ isCenter?: boolean;
16
+ isActive?: boolean;
17
+ }
18
+ declare const HeaderCell: FC<Props>;
19
+ export default HeaderCell;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IRemoveAssistant } from "../constants/types";
3
+ declare const RemoveAssistant: ({ assistants, onChangeStaffRemove, switchStaffUsers }: IRemoveAssistant) => JSX.Element;
4
+ export default RemoveAssistant;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IRemoveCounselor } from "../constants/types";
3
+ declare const RemoveCounselor: ({ counselors, onChangeStaffRemove, switchStaffUsers }: IRemoveCounselor) => JSX.Element;
4
+ export default RemoveCounselor;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IRemoveSupportTeacher } from "../constants/types";
3
+ declare const RemoveSupportTeacher: ({ secondaryTeachers, onChangeStaffRemove, switchStaffUsers }: IRemoveSupportTeacher) => JSX.Element;
4
+ export default RemoveSupportTeacher;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IRemoveTeacher } from "../constants/types";
3
+ declare const RemoveTeacher: ({ teachers, onChangeStaffRemove, switchStaffUsers }: IRemoveTeacher) => 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;
@@ -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,15 @@
1
+ import { FC } from "react";
2
+ import { UserColumn, UserFilter } from "../constants/types";
3
+ interface Props {
4
+ headers: UserColumn[];
5
+ filters: UserFilter;
6
+ fullName?: string;
7
+ onChangeFilters?: (filter: UserFilter) => void;
8
+ isStudentFilter?: boolean;
9
+ teacherOptions?: any[];
10
+ assistantOptions?: any[];
11
+ counselorOptions?: any[];
12
+ secondaryTeacherOptions?: any[];
13
+ }
14
+ declare const TableHeader: FC<Props>;
15
+ export default TableHeader;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => JSX.Element;
3
+ export default TeacherSelector;
@@ -0,0 +1,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;
@@ -2,13 +2,11 @@ import * as yup from "yup";
2
2
  declare const userSchema: import("yup/lib/object").OptionalObjectSchema<{
3
3
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
4
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
5
  email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
7
6
  roles: yup.ArraySchema<yup.StringSchema<string | undefined, Record<string, any>, string | undefined>, Record<string, any>, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
8
7
  }, Record<string, any>, import("yup/lib/object").TypeOfShape<{
9
8
  firstName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
10
9
  lastName: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
11
- dateOfBirth: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
12
10
  email: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
13
11
  roles: yup.ArraySchema<yup.StringSchema<string | undefined, Record<string, any>, string | undefined>, Record<string, any>, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
14
12
  }>>;
@@ -0,0 +1,8 @@
1
+ import { StudentAssign, TeacherType } from "../constants/types";
2
+ declare type StaffItem = {
3
+ label: string;
4
+ value: string;
5
+ name: string;
6
+ };
7
+ export declare const extractStaffList: (students: StudentAssign[], type: TeacherType) => StaffItem[];
8
+ export {};
@@ -0,0 +1,62 @@
1
+ import { IOptions, IStaffAssign, StudentFilter, UserColumn, UserFilter, UserOrder } from "./types";
2
+ export declare const userOrders: {
3
+ 0: string;
4
+ 1: string;
5
+ 2: string;
6
+ 3: string;
7
+ 4: string;
8
+ 5: string;
9
+ 6: string;
10
+ 7: string;
11
+ 8: string;
12
+ 9: string;
13
+ 10: string;
14
+ 11: string;
15
+ 12: string;
16
+ };
17
+ export declare const UserColumns: UserColumn[];
18
+ export declare const DEFAULT_PAGE_SIZE: {
19
+ label: string;
20
+ value: number;
21
+ };
22
+ export declare const DEFAULT_FILTER: UserFilter;
23
+ export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
24
+ export declare const DEFAULT_FILTER_POPOVER: UserFilter;
25
+ export declare const CSV_PREFIX = "data:text/csv;charset=utf-8,";
26
+ export declare const initialStaffBulk: IStaffAssign;
27
+ export declare const initAssignStd: {
28
+ studentId: number;
29
+ id: string;
30
+ email: string;
31
+ fullName: string;
32
+ gradeLevel: string;
33
+ phoneNumber: string;
34
+ isActive: boolean;
35
+ dateOfBirth: string;
36
+ profileImageFileName: string;
37
+ quote: string;
38
+ assistantName: string;
39
+ assistantEmail: string;
40
+ assistantUserId: string;
41
+ counselors: never[];
42
+ secondaryTeacherName: string;
43
+ secondaryTeacherEmail: string;
44
+ secondaryTeacherUserId: string;
45
+ teachers: never[];
46
+ };
47
+ export declare const GRADE_DEFAULT: {
48
+ label: string;
49
+ value: string;
50
+ }[];
51
+ export declare const GRADE: string[];
52
+ export declare const gradeOptions: IOptions[];
53
+ export declare const initStaffDeleteBulk: {
54
+ assistantRemoveUserId: never[];
55
+ counselorRemoveUserIds: never[];
56
+ teacherRemoveUserIds: never[];
57
+ teacherSwitchDataUserId: string;
58
+ assistantSwitchDataUserId: string;
59
+ counselorSwitchDataUserId: string;
60
+ supportTeacherRemoveUserIds: never[];
61
+ supportTeacherSwitchDataUserId: string;
62
+ };