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.
- package/dist/components/Alerts/SandboxAlert.d.ts +3 -0
- package/dist/components/Buttons/SyncButton.d.ts +8 -0
- package/dist/components/Inputs/PasswordInput.d.ts +1 -0
- package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
- package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
- package/dist/components/Selectors/constants/constant.d.ts +1 -1
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +34 -0
- package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
- package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
- package/dist/containers/Login/views/Dashboard.d.ts +2 -1
- package/dist/containers/Login/views/Login.d.ts +1 -0
- package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
- package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
- package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
- package/dist/containers/User/components/FilterPopover.d.ts +21 -0
- package/dist/containers/User/components/HeaderCell.d.ts +18 -0
- package/dist/containers/User/components/TableHeader.d.ts +11 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
- package/dist/containers/User/constants/constants.d.ts +21 -0
- package/dist/containers/User/constants/types.d.ts +177 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +15 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +15 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
- package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
- package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
- package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
- package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +16 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +17 -0
- package/dist/containers/User/hooks/useUserList.d.ts +6 -3
- package/dist/containers/User/hooks/userFilters.d.ts +8 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
- package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
- package/dist/containers/User/views/UserContainer.d.ts +3 -0
- package/dist/hooks/useLanguages.d.ts +10 -0
- package/dist/index.css +408 -77
- package/dist/index.d.ts +12 -6
- package/dist/index.js +43873 -4452
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +43863 -4455
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheHeader.d.ts +4 -1
- package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
- package/dist/redux/commons/action.d.ts +4 -0
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
- package/dist/rootReducer.d.ts +5 -0
- package/dist/services/accountService.d.ts +8 -2
- package/dist/services/emailTemplateService.d.ts +1 -0
- package/dist/services/schoolService.d.ts +2 -0
- package/dist/services/userService.d.ts +19 -1
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/Filter.d.ts +6 -0
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Payload.d.ts +2 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/dist/types/user.d.ts +3 -0
- package/dist/utils/constants.d.ts +12 -2
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/package.json +7 -4
- package/dist/containers/Login/constant/type.d.ts +0 -5
- package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
- 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("
|
|
4
|
+
filters: import("../constants/types").UserFilter;
|
|
5
5
|
queryName: string | null;
|
|
6
|
-
|
|
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
|
-
|
|
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,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;
|