mario-core 2.10.0-beta → 2.10.1-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 (73) 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/FilterPopover.d.ts +21 -0
  22. package/dist/containers/User/components/HeaderCell.d.ts +18 -0
  23. package/dist/containers/User/components/TableHeader.d.ts +11 -0
  24. package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
  25. package/dist/containers/User/constants/constants.d.ts +21 -0
  26. package/dist/containers/User/constants/types.d.ts +177 -0
  27. package/dist/containers/User/hooks/useAssignStudent.d.ts +15 -0
  28. package/dist/containers/User/hooks/useAssignStudentList.d.ts +15 -0
  29. package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
  30. package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
  31. package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
  32. package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
  33. package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
  34. package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
  35. package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
  36. package/dist/containers/User/hooks/useTableHeader.d.ts +16 -0
  37. package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
  38. package/dist/containers/User/hooks/useUserDetail.d.ts +17 -0
  39. package/dist/containers/User/hooks/useUserList.d.ts +6 -3
  40. package/dist/containers/User/hooks/userFilters.d.ts +8 -0
  41. package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
  42. package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
  43. package/dist/containers/User/views/UserContainer.d.ts +3 -0
  44. package/dist/hooks/useLanguages.d.ts +10 -0
  45. package/dist/index.css +408 -77
  46. package/dist/index.d.ts +12 -6
  47. package/dist/index.js +43873 -4452
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.modern.js +43863 -4455
  50. package/dist/index.modern.js.map +1 -1
  51. package/dist/layouts/TheHeader.d.ts +4 -1
  52. package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
  53. package/dist/redux/commons/action.d.ts +4 -0
  54. package/dist/redux/weeklyQuests/action.d.ts +2 -0
  55. package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
  56. package/dist/rootReducer.d.ts +5 -0
  57. package/dist/services/accountService.d.ts +8 -2
  58. package/dist/services/emailTemplateService.d.ts +1 -0
  59. package/dist/services/schoolService.d.ts +2 -0
  60. package/dist/services/userService.d.ts +19 -1
  61. package/dist/services/weeklyQuestService.d.ts +1 -0
  62. package/dist/types/Filter.d.ts +6 -0
  63. package/dist/types/Language.d.ts +8 -0
  64. package/dist/types/Payload.d.ts +2 -0
  65. package/dist/types/WeeklyQuest.d.ts +37 -0
  66. package/dist/types/user.d.ts +3 -0
  67. package/dist/utils/constants.d.ts +12 -2
  68. package/dist/utils/getCookieValue.d.ts +2 -0
  69. package/dist/utils/getStaticFileUrl.d.ts +2 -0
  70. package/package.json +7 -4
  71. package/dist/containers/Login/constant/type.d.ts +0 -5
  72. package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
  73. package/dist/utils/amplitude.d.ts +0 -1
@@ -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;
@@ -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,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;