mario-core 2.10.2-beta → 2.10.2-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 (81) hide show
  1. package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
  2. package/dist/components/Buttons/SyncButton.d.ts +8 -0
  3. package/dist/components/Inputs/PasswordInput.d.ts +1 -0
  4. package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
  5. package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
  6. package/dist/components/Selectors/constants/constant.d.ts +1 -1
  7. package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
  8. package/dist/containers/Login/constant/authConfig.d.ts +38 -0
  9. package/dist/containers/Login/constant/types.d.ts +34 -0
  10. package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
  11. package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
  12. package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
  13. package/dist/containers/Login/views/Dashboard.d.ts +2 -1
  14. package/dist/containers/Login/views/Login.d.ts +1 -0
  15. package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
  16. package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
  17. package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
  18. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
  19. package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
  20. package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
  21. package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
  22. package/dist/containers/User/components/FilterPopover.d.ts +21 -0
  23. package/dist/containers/User/components/HeaderCell.d.ts +18 -0
  24. package/dist/containers/User/components/SwitchTeacherModal.d.ts +3 -0
  25. package/dist/containers/User/components/TableHeader.d.ts +11 -0
  26. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  27. package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
  28. package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
  29. package/dist/containers/User/configs/utils.d.ts +8 -0
  30. package/dist/containers/User/constants/constants.d.ts +21 -0
  31. package/dist/containers/User/constants/types.d.ts +177 -0
  32. package/dist/containers/User/hooks/useAssignStudent.d.ts +15 -0
  33. package/dist/containers/User/hooks/useAssignStudentList.d.ts +15 -0
  34. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  35. package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
  36. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  37. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  38. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  39. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  40. package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
  41. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  42. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  43. package/dist/containers/User/hooks/useTableHeader.d.ts +16 -0
  44. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  45. package/dist/containers/User/hooks/useUserDeletedList.d.ts +37 -0
  46. package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
  47. package/dist/containers/User/hooks/useUserDetail.d.ts +17 -0
  48. package/dist/containers/User/hooks/useUserList.d.ts +6 -3
  49. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  50. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  51. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  52. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  53. package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
  54. package/dist/hooks/useLanguages.d.ts +10 -0
  55. package/dist/index.css +408 -77
  56. package/dist/index.d.ts +12 -6
  57. package/dist/index.js +43906 -4457
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.modern.js +43901 -4465
  60. package/dist/index.modern.js.map +1 -1
  61. package/dist/layouts/TheHeader.d.ts +4 -1
  62. package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
  63. package/dist/redux/commons/action.d.ts +4 -0
  64. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  65. package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
  66. package/dist/rootReducer.d.ts +5 -0
  67. package/dist/services/accountService.d.ts +8 -2
  68. package/dist/services/csvImportService.d.ts +7 -0
  69. package/dist/services/emailTemplateService.d.ts +1 -0
  70. package/dist/services/schoolService.d.ts +2 -0
  71. package/dist/services/userService.d.ts +19 -1
  72. package/dist/services/weeklyQuestService.d.ts +1 -0
  73. package/dist/types/Filter.d.ts +6 -0
  74. package/dist/types/Language.d.ts +8 -0
  75. package/dist/types/Payload.d.ts +2 -0
  76. package/dist/types/WeeklyQuest.d.ts +37 -0
  77. package/dist/types/user.d.ts +3 -0
  78. package/dist/utils/constants.d.ts +11 -2
  79. package/dist/utils/getCookieValue.d.ts +2 -0
  80. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  81. package/package.json +7 -4
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ declare enum CSVType {
3
+ Students = "students",
4
+ Subjects = "subjects",
5
+ Grades = "grades",
6
+ Attendances = "attendances",
7
+ ClassReflection = "classReflection",
8
+ Others = "others",
9
+ AllUser = "allUser"
10
+ }
11
+ export interface Option {
12
+ label: string;
13
+ value: number;
14
+ }
15
+ declare const useCSVImport: () => {
16
+ isLoading: any;
17
+ id: string;
18
+ setType: import("react").Dispatch<import("react").SetStateAction<CSVType | null>>;
19
+ upload: (file: any) => Promise<void>;
20
+ initImportReflection: any;
21
+ setInitImportReflection: import("react").Dispatch<any>;
22
+ onConfirm: (values: any) => Promise<void>;
23
+ CSVType: typeof CSVType;
24
+ dataFile: any;
25
+ setDataFile: import("react").Dispatch<any>;
26
+ setArrStudent: import("react").Dispatch<any>;
27
+ arrStudent: any;
28
+ isCheckDomainIBS: boolean;
29
+ onChangeTeacher: (teacher: Option) => void;
30
+ uploadByTeacherId: (file: any) => Promise<void>;
31
+ setDataFileImportStudent: (dataFile: any) => void;
32
+ onUpLoadStudentFile: () => void;
33
+ defaultTeacher: number;
34
+ fileName: string;
35
+ onStudentSubmit: () => void;
36
+ downloadTemplateUser: () => Promise<void>;
37
+ };
38
+ export default useCSVImport;
@@ -0,0 +1,2 @@
1
+ declare const useClickOutside: (wrapperRef: any, onClickOutside?: (() => void) | undefined) => void;
2
+ export default useClickOutside;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { IOptions } from "../constants/types";
3
+ declare const useCounselorList: () => {
4
+ selectedCounselors: object | undefined;
5
+ counselorOptions: IOptions[];
6
+ handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
7
+ handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
8
+ setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
10
+ export default useCounselorList;
@@ -0,0 +1,5 @@
1
+ import { UserFilter } from "../constants/types";
2
+ declare const useExportUsersCsv: () => {
3
+ exportUsers: (filters: UserFilter) => Promise<void>;
4
+ };
5
+ export default useExportUsersCsv;
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { FilterOption, SearchBy, UserFilter, UserOrder } from "../constants/types";
3
+ import { PopoverProps } from "reactstrap";
4
+ interface Props extends PopoverProps {
5
+ filters?: UserFilter;
6
+ sortBy: UserOrder;
7
+ searchBy?: SearchBy;
8
+ users: string[];
9
+ defaultOptions?: FilterOption[];
10
+ selectedOptions?: string[];
11
+ searchKey: string;
12
+ onChangeSearchKey: (value: string) => void;
13
+ onOptionsChange?: (value?: string[], searchBy?: SearchBy) => void;
14
+ onSearch?: (search: string, searchBy: SearchBy) => void;
15
+ onClose?: () => void;
16
+ onFilter?: () => void;
17
+ onChangeFilters?: (filter: UserFilter) => void;
18
+ getOption?: (user: any, t?: any) => FilterOption;
19
+ }
20
+ declare const useFilterPopover: (props: Props) => {
21
+ ref: import("react").RefObject<HTMLDivElement>;
22
+ options: FilterOption[];
23
+ inputRef: import("react").MutableRefObject<any>;
24
+ sOptions: any[] | undefined;
25
+ isAscending: boolean;
26
+ isDescending: boolean;
27
+ filteredOptions: FilterOption[];
28
+ searchKey: string;
29
+ handleSearch: () => void;
30
+ handleApplyFilter: () => void;
31
+ handleOptionSelected: (e?: any) => void;
32
+ handleOptionSelectedAll: (e?: any) => void;
33
+ handleSortDesc: () => void;
34
+ handleSortAsc: () => void;
35
+ handleChangeSearchKey: (e: React.ChangeEvent<HTMLInputElement>) => void;
36
+ };
37
+ export default useFilterPopover;
@@ -0,0 +1,5 @@
1
+ declare const useResendMail: () => {
2
+ handleSendMultiUsers: (listUserIds: any) => void;
3
+ handleSendSingleUser: (userId: string) => void;
4
+ };
5
+ export default useResendMail;
@@ -0,0 +1,8 @@
1
+ import { Option } from "../constants/types";
2
+ declare const useRosterUserSelector: (roles: string[], value?: string | undefined) => {
3
+ users: Option[];
4
+ isLoading: boolean;
5
+ user: Option | undefined;
6
+ handleInputChange: (value: string) => void;
7
+ };
8
+ export default useRosterUserSelector;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { IOptions } from "../constants/types";
3
+ declare const useSecondaryTeacherList: () => {
4
+ selectedSecondaryTeachers: object | undefined;
5
+ secondaryTeacherOptions: IOptions[];
6
+ handleSelectSecondaryTeacher: (secondaryTeacherId: string, studentUserId: string) => void;
7
+ handleCreateSecondaryTeacherOption: (newSecondaryTeacher: IOptions, studentUserId: string, isSelect?: boolean | undefined) => void;
8
+ setSelectedSecondaryTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
10
+ export default useSecondaryTeacherList;
@@ -0,0 +1,16 @@
1
+ import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../constants/types";
2
+ interface Props {
3
+ filters: UserFilter;
4
+ onChangeFilters?: (filter: UserFilter) => void;
5
+ isStudentFilter?: boolean;
6
+ }
7
+ declare const useTableHeader: (props: Props) => {
8
+ popoverFilters: UserFilterField;
9
+ popoverId: string | undefined;
10
+ users: string[];
11
+ handleFilterIcon: (id: string, searchBy?: SearchBy | undefined, searchStringBy?: string | undefined, sortBy?: UserOrder | undefined) => void;
12
+ handleCloseFilter: () => void;
13
+ handleSearch: (search: string, searchBy?: SearchBy | undefined) => void;
14
+ handleChangeFilters: (value?: string[] | undefined, searchBy?: SearchBy | undefined) => void;
15
+ };
16
+ export default useTableHeader;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { IOptions } from "../constants/types";
3
+ declare const useTeacherList: () => {
4
+ selectedTeachers: object | undefined;
5
+ teacherOptions: IOptions[];
6
+ handleSelectTeacher: (teacherIds: Array<string>, studentUserId: string) => void;
7
+ handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string, isSelectTeacher?: boolean | undefined) => void;
8
+ setSelectedTeachers: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
9
+ };
10
+ export default useTeacherList;
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ export declare type USER_CHOICE = {
3
+ id: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ fullName: string;
8
+ roles: string[];
9
+ };
10
+ export declare const initialUserChoice: {
11
+ id: string;
12
+ firstName: string;
13
+ lastName: string;
14
+ email: string;
15
+ fullName: string;
16
+ roles: never[];
17
+ };
18
+ declare const useUserDeletedList: () => {
19
+ userList: USER_CHOICE[];
20
+ totalItems: number;
21
+ filters: import("../../..").Filter;
22
+ getData: () => Promise<void>;
23
+ removeData: (id: string) => void;
24
+ changeFilters: (updatedFilters: any) => void;
25
+ modal: import("react").MutableRefObject<any>;
26
+ openModal: () => void;
27
+ userChoiced: USER_CHOICE;
28
+ setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
29
+ options: {
30
+ label: string;
31
+ value: any;
32
+ }[];
33
+ teacherChangeId: string;
34
+ setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
35
+ resetData: () => void;
36
+ };
37
+ export default useUserDeletedList;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { USER_CHOICE } from "./useUserDeletedList";
3
+ declare const useUserDeletedModal: () => {
4
+ userChoiced: USER_CHOICE;
5
+ setUserChoiced: import("react").Dispatch<import("react").SetStateAction<USER_CHOICE>>;
6
+ teacherList: never[];
7
+ options: {
8
+ label: string;
9
+ value: any;
10
+ }[];
11
+ setTeacherChangeId: import("react").Dispatch<import("react").SetStateAction<string>>;
12
+ teacherChangeId: string;
13
+ };
14
+ export default useUserDeletedModal;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { IOptions } from "../constants/types";
2
3
  declare type UserDetail = {
3
4
  id?: string;
4
5
  firstName: string;
@@ -8,6 +9,15 @@ declare type UserDetail = {
8
9
  roles: string[];
9
10
  isActive: boolean;
10
11
  profileImageFileName: string;
12
+ sourcedId?: string;
13
+ teacherUserId?: string[];
14
+ };
15
+ declare type IUerRoleDataCheck = {
16
+ isHasTeacherData: boolean;
17
+ isHasEduTeacherData: boolean;
18
+ isHasAssistantData: boolean;
19
+ isHasCounselorData: boolean;
20
+ isHasSecondaryTeacherData: boolean;
11
21
  };
12
22
  declare const useUserDetail: (id?: string | undefined) => {
13
23
  userDetail: UserDetail;
@@ -20,5 +30,12 @@ declare const useUserDetail: (id?: string | undefined) => {
20
30
  setEditedTrue: () => Promise<void>;
21
31
  confirmChangePassword: (data: any) => Promise<void>;
22
32
  forgotPasswordRequest: (data: any) => Promise<void>;
33
+ currentRoles: string[];
34
+ handleDisableRoles: (currentRoles: string) => boolean;
35
+ handleResetPassword: (userId: string) => Promise<void>;
36
+ teacherOptions: IOptions[];
37
+ openModel: boolean;
38
+ handleToggleModel: () => void;
39
+ userHasData: IUerRoleDataCheck;
23
40
  };
24
41
  export default useUserDetail;
@@ -1,12 +1,15 @@
1
1
  declare const useUserList: () => {
2
2
  userList: any;
3
3
  totalItems: any;
4
- filters: import("../../..").Filter;
4
+ filters: import("../constants/types").UserFilter;
5
5
  queryName: string | null;
6
- getData: (fullName?: string | undefined) => Promise<void>;
6
+ fullName: string;
7
+ getData: () => Promise<void>;
7
8
  removeData: (id: string) => void;
8
9
  changeFilters: (updatedFilters: any) => void;
9
10
  reDirectDetailPage: (id?: number | undefined) => void;
10
- swicthUser: (id: string) => Promise<void>;
11
+ switchUser: (id: string) => Promise<void>;
12
+ handleSyncRosterUsers: () => Promise<void>;
13
+ rosterUserInfo: (record: any) => string;
11
14
  };
12
15
  export default useUserList;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { UserFilter } from "../constants/types";
3
+ declare const useFilters: () => {
4
+ filters: UserFilter;
5
+ setFilters: import("react").Dispatch<import("react").SetStateAction<UserFilter>>;
6
+ changeFilters: (updatedFilters: any) => void;
7
+ };
8
+ export default useFilters;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AssignStudentList: () => JSX.Element;
3
+ export default AssignStudentList;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ onChange: (e: any) => void;
4
+ value?: string;
5
+ roles: string[];
6
+ }
7
+ declare const RosterUserSelector: FC<Props>;
8
+ export default RosterUserSelector;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const UserContainer: () => JSX.Element;
3
+ export default UserContainer;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const UserDeleteList: () => JSX.Element;
3
+ export default UserDeleteList;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const useLanguages: () => {
3
+ languageList: any;
4
+ toggle: () => void;
5
+ dropdownOpen: boolean;
6
+ currentLang: string;
7
+ changeLanguageApp: (lang: string) => Promise<void>;
8
+ setCurrentLang: import("react").Dispatch<import("react").SetStateAction<string>>;
9
+ };
10
+ export default useLanguages;