mario-core 1.2.9 → 1.2.10-es-prod
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/Buttons/AddButton.d.ts +1 -0
- package/dist/components/Buttons/DetailActionButtons.d.ts +1 -0
- package/dist/components/Buttons/LinkEditButton.d.ts +1 -0
- package/dist/components/Buttons/UploadFileButton.d.ts +1 -0
- package/dist/components/Inputs/PasswordInput.d.ts +8 -0
- package/dist/components/Labels/RequiredLabel.d.ts +1 -0
- package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
- package/dist/components/Others/QuitPrompt.d.ts +2 -0
- package/dist/components/Scroll/ScrollToTop.d.ts +3 -0
- package/dist/components/Selectors/AcademicClassSelector.d.ts +3 -0
- package/dist/components/Selectors/CustomSelector.d.ts +1 -1
- package/dist/containers/DistrictSchools/views/SchoolList.d.ts +3 -0
- package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +8 -0
- package/dist/containers/EmailTemplate/components/MailParam.d.ts +2 -0
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +14 -0
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateList.d.ts +1 -2
- package/dist/containers/Faq/hooks/useFaqDetail.d.ts +5 -0
- package/dist/containers/Faq/hooks/useFaqList.d.ts +1 -2
- package/dist/containers/Gallery/components/Filter.d.ts +1 -0
- package/dist/containers/Gallery/components/Media.d.ts +1 -0
- package/dist/containers/Gallery/components/MediaList.d.ts +6 -9
- package/dist/containers/Gallery/components/MediaNav.d.ts +4 -0
- package/dist/containers/Gallery/constants/gallery.types.d.ts +1 -0
- package/dist/containers/Gallery/hooks/{galleryList.d.ts → useGalleryList.d.ts} +8 -2
- package/dist/containers/Gallery/views/GalleryList.d.ts +4 -1
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +27 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +10 -0
- package/dist/containers/Login/hooks/useLogin.d.ts +18 -0
- package/dist/containers/Login/hooks/useLoginTwoFactor.d.ts +4 -0
- 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/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
- package/dist/containers/Login/views/block/{blockLogin.d.ts → BlockLogin.d.ts} +2 -0
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +12 -0
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +3 -0
- package/dist/containers/Login/views/block/IconContent.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -6
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +3 -0
- package/dist/containers/Skill/hooks/useSkillDetail.d.ts +5 -0
- package/dist/containers/Skill/hooks/useSkillList.d.ts +2 -2
- package/dist/containers/User/components/FilterPopover.d.ts +21 -0
- package/dist/containers/User/components/HeaderCell.d.ts +17 -0
- package/dist/containers/User/components/TableHeader.d.ts +10 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
- package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -0
- package/dist/containers/User/configs/constants.d.ts +18 -0
- package/dist/containers/User/configs/type.d.ts +124 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +5 -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/useFilterPopover.d.ts +37 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +15 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +14 -1
- package/dist/containers/User/hooks/useUserList.d.ts +5 -2
- 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/UserContainer.d.ts +3 -0
- package/dist/hooks/useClassFontSize.d.ts +4 -0
- package/dist/hooks/useFilters.d.ts +8 -0
- package/dist/hooks/useLanguages.d.ts +10 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.css +716 -182
- package/dist/index.d.ts +32 -5
- package/dist/index.js +29646 -3023
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29794 -3233
- 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/layouts/TheLanguageDropdown.d.ts +3 -0
- package/dist/layouts/TheLayout.d.ts +1 -0
- package/dist/redux/bandScores/action.d.ts +1 -0
- package/dist/redux/certificate/action.d.ts +1 -0
- package/dist/redux/commons/action.d.ts +13 -0
- package/dist/redux/dashboard/action.d.ts +5 -0
- package/dist/redux/dashboard/reducer.d.ts +2 -0
- package/dist/redux/dataPlayer/action.d.ts +2 -0
- package/dist/redux/dataPlayer/reducer.d.ts +2 -0
- package/dist/redux/improveMyClass/action.d.ts +1 -0
- package/dist/redux/navMobile/action.d.ts +1 -0
- package/dist/redux/navMobile/reducer.d.ts +2 -0
- package/dist/redux/reflectionResults/action.d.ts +1 -0
- package/dist/redux/reflectionResults/reducer.d.ts +2 -0
- package/dist/redux/schoolBlankDays/action.d.ts +1 -0
- package/dist/redux/schoolBlankDays/reducer.d.ts +2 -0
- package/dist/redux/semester/action.d.ts +1 -0
- package/dist/redux/semester/reducer.d.ts +2 -0
- package/dist/redux/sessionPlayers/action.d.ts +5 -0
- package/dist/redux/sessionPlayers/reducer.d.ts +2 -0
- package/dist/redux/unreadNotification/action.d.ts +1 -0
- package/dist/redux/widget/action.d.ts +1 -0
- package/dist/redux/widget/reducer.d.ts +2 -0
- package/dist/rootReducer.d.ts +11 -0
- package/dist/services/accountService.d.ts +7 -0
- package/dist/services/classService.d.ts +1 -0
- package/dist/services/fileServices.d.ts +1 -0
- package/dist/services/languageService.d.ts +1 -0
- package/dist/services/notificationService.d.ts +1 -0
- package/dist/services/schoolService.d.ts +1 -0
- package/dist/services/userService.d.ts +12 -1
- package/dist/types/Dashboard.d.ts +5 -0
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Payload.d.ts +15 -0
- package/dist/utils/constants.d.ts +29 -4
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/package.json +14 -4
- package/README.md +0 -30
- package/dist/commons/action.d.ts +0 -2
- package/dist/components/Alerts/Alert.d.ts +0 -10
- package/dist/containers/Classes/components/ClassDetailModal.d.ts +0 -3
- package/dist/containers/Classes/views/ClassList.d.ts +0 -3
- package/dist/containers/EmailTemplateDetail.d.ts +0 -3
- package/dist/containers/EmailTemplateList.d.ts +0 -3
- package/dist/containers/Gallery/hooks/galleryDetail.d.ts +0 -13
- package/dist/containers/Login/views/block/blockForgetPass.d.ts +0 -7
- package/dist/containers/Login.d.ts +0 -3
- package/dist/containers/Notifications/components/NotificationList.d.ts +0 -11
- package/dist/containers/User.d.ts +0 -3
- package/dist/redux/assessmentStudent/action.d.ts +0 -1
- package/dist/redux/subjectCategories/action.d.ts +0 -1
- package/dist/types/ClassDetail.d.ts +0 -3
- package/dist/utils/alert.d.ts +0 -7
- package/dist/utils/index.d.ts +0 -1
- package/dist/views/TheContent.d.ts +0 -3
- package/dist/views/TheFooter.d.ts +0 -3
- package/dist/views/TheHeader.d.ts +0 -3
- package/dist/views/TheHeaderDropdown.d.ts +0 -3
- package/dist/views/TheLayout.d.ts +0 -3
- package/dist/views/TheSidebar.d.ts +0 -3
- /package/dist/{commons → redux/bandScores}/reducer.d.ts +0 -0
- /package/dist/redux/{assessmentStudent → certificate}/reducer.d.ts +0 -0
- /package/dist/redux/{subjectCategories → improveMyClass}/reducer.d.ts +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export declare type StudentAssign = {
|
|
2
|
+
studentId: number;
|
|
3
|
+
teacherUserId: string;
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
fullName: string;
|
|
7
|
+
gradeLevel: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
dateOfBirth?: string;
|
|
11
|
+
profileImageFileName: string;
|
|
12
|
+
quote: string;
|
|
13
|
+
assistantName: string;
|
|
14
|
+
assistantEmail: string;
|
|
15
|
+
counselorName: string;
|
|
16
|
+
counselorEmail: string;
|
|
17
|
+
secondaryTeacherName: string;
|
|
18
|
+
secondaryTeacherEmail: string;
|
|
19
|
+
mainTeacherName: string;
|
|
20
|
+
mainTeacherEmail: string;
|
|
21
|
+
mainTeacherId?: number;
|
|
22
|
+
};
|
|
23
|
+
export declare type Counselor = {
|
|
24
|
+
id: string;
|
|
25
|
+
counselorId: number;
|
|
26
|
+
firstName: string;
|
|
27
|
+
lastName: string;
|
|
28
|
+
fullName: string;
|
|
29
|
+
email: string;
|
|
30
|
+
};
|
|
31
|
+
export declare type Assistant = {
|
|
32
|
+
id: string;
|
|
33
|
+
assistantId: number;
|
|
34
|
+
firstName: string;
|
|
35
|
+
lastName: string;
|
|
36
|
+
fullName: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
export declare type SecondaryTeacher = {
|
|
40
|
+
id: string;
|
|
41
|
+
secondaryTeacherId: number;
|
|
42
|
+
firstName: string;
|
|
43
|
+
lastName: string;
|
|
44
|
+
fullName: string;
|
|
45
|
+
email: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type Teacher = {
|
|
48
|
+
id: string;
|
|
49
|
+
email: string;
|
|
50
|
+
};
|
|
51
|
+
export interface IOptions {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}
|
|
55
|
+
export declare type AssignStudentDto = {
|
|
56
|
+
id: string;
|
|
57
|
+
mainTeacherUserId?: string;
|
|
58
|
+
mainTeacherEmail?: string;
|
|
59
|
+
assistantUserId?: string;
|
|
60
|
+
assistantEmail?: string;
|
|
61
|
+
counselorUserId?: string;
|
|
62
|
+
counselorEmail?: string;
|
|
63
|
+
secondaryTeacherUserId?: string;
|
|
64
|
+
secondaryTeacherEmail?: string;
|
|
65
|
+
};
|
|
66
|
+
export declare type FilterOption = {
|
|
67
|
+
label: string;
|
|
68
|
+
value: string;
|
|
69
|
+
};
|
|
70
|
+
export declare enum TeacherType {
|
|
71
|
+
Teacher = 0,
|
|
72
|
+
Assistant = 1,
|
|
73
|
+
Counselor = 2,
|
|
74
|
+
SecondaryTeacher = 3
|
|
75
|
+
}
|
|
76
|
+
export declare type StudentFilter = {
|
|
77
|
+
currentPage?: number;
|
|
78
|
+
pageSize?: number;
|
|
79
|
+
searchString?: string;
|
|
80
|
+
isAssigned?: boolean;
|
|
81
|
+
sortBy?: UserOrder;
|
|
82
|
+
orderBy?: string;
|
|
83
|
+
};
|
|
84
|
+
export declare enum UserOrder {
|
|
85
|
+
Id = 0,
|
|
86
|
+
Name = 1,
|
|
87
|
+
Email = 2,
|
|
88
|
+
Age = 3,
|
|
89
|
+
Role = 4,
|
|
90
|
+
Status = 5,
|
|
91
|
+
CreatedAt = 6
|
|
92
|
+
}
|
|
93
|
+
export declare enum SearchBy {
|
|
94
|
+
Id = 0,
|
|
95
|
+
Name = 1,
|
|
96
|
+
Email = 2,
|
|
97
|
+
Role = 3,
|
|
98
|
+
Status = 4
|
|
99
|
+
}
|
|
100
|
+
export declare type UserFilter = {
|
|
101
|
+
currentPage?: number;
|
|
102
|
+
pageSize?: number;
|
|
103
|
+
searchString?: string;
|
|
104
|
+
isDescending?: boolean;
|
|
105
|
+
sortBy?: UserOrder;
|
|
106
|
+
searchBy?: SearchBy;
|
|
107
|
+
searchByStrings?: string[];
|
|
108
|
+
};
|
|
109
|
+
export declare type UserColumn = {
|
|
110
|
+
name: string;
|
|
111
|
+
sortBy?: UserOrder;
|
|
112
|
+
className?: string;
|
|
113
|
+
searchBy?: SearchBy;
|
|
114
|
+
getOption?: (user: any, t?: any) => FilterOption;
|
|
115
|
+
options?: FilterOption[];
|
|
116
|
+
};
|
|
117
|
+
export declare type UserFilterField = {
|
|
118
|
+
currentPage?: number;
|
|
119
|
+
pageSize?: number;
|
|
120
|
+
searchString?: string;
|
|
121
|
+
isDescending?: boolean;
|
|
122
|
+
searchBy?: SearchBy;
|
|
123
|
+
searchStringBy?: string;
|
|
124
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const useAssignStudent: (teacherSelected?: object | undefined, assistantSelected?: object | undefined, counselorSelected?: object | undefined, callback?: Function | undefined) => {
|
|
2
|
+
handleAssignSingleStudent: (id: string) => void;
|
|
3
|
+
handleAssignMultiStudent: (listUserIds: string[]) => void;
|
|
4
|
+
};
|
|
5
|
+
export default useAssignStudent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StudentAssign, StudentFilter, UserOrder } from "../configs/type";
|
|
2
|
+
declare const useAssignStudentList: () => {
|
|
3
|
+
handelSort: (sortBy: UserOrder) => void;
|
|
4
|
+
handleRetrievedData: () => void;
|
|
5
|
+
totalItem: number;
|
|
6
|
+
userList: StudentAssign[];
|
|
7
|
+
filters: StudentFilter;
|
|
8
|
+
changeFilters: (updatedFilters: any) => void;
|
|
9
|
+
handleSelectAll: () => void;
|
|
10
|
+
handleClickCheck: (e: any) => void;
|
|
11
|
+
isCheckAll: boolean;
|
|
12
|
+
isCheck: any;
|
|
13
|
+
classFontSize: string;
|
|
14
|
+
};
|
|
15
|
+
export default useAssignStudentList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../configs/type";
|
|
3
|
+
declare const useAssistantList: () => {
|
|
4
|
+
selectedAssistants: object | undefined;
|
|
5
|
+
assistantOptions: IOptions[];
|
|
6
|
+
handleSelectAssistant: (assistantId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateAssistantOption: (newAssistant: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedAssistants: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useAssistantList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../configs/type";
|
|
3
|
+
declare const useCounselorList: () => {
|
|
4
|
+
selectedCounselors: object | undefined;
|
|
5
|
+
counselorOptions: IOptions[];
|
|
6
|
+
handleSelectCounselor: (counselorId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateCounselorOption: (newCounselor: IOptions, studentUserId: string) => void;
|
|
8
|
+
setSelectedCounselors: import("react").Dispatch<import("react").SetStateAction<object | undefined>>;
|
|
9
|
+
};
|
|
10
|
+
export default useCounselorList;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../configs/type";
|
|
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,15 @@
|
|
|
1
|
+
import { SearchBy, UserFilter, UserFilterField, UserOrder } from "../configs/type";
|
|
2
|
+
interface Props {
|
|
3
|
+
filters: UserFilter;
|
|
4
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const useTableHeader: (props: Props) => {
|
|
7
|
+
popoverFilters: UserFilterField;
|
|
8
|
+
popoverId: string | undefined;
|
|
9
|
+
users: string[];
|
|
10
|
+
handleFilterIcon: (id: string, searchBy?: SearchBy | undefined, searchStringBy?: string | undefined, sortBy?: UserOrder | undefined) => void;
|
|
11
|
+
handleCloseFilter: () => void;
|
|
12
|
+
handleSearch: (search: string, searchBy?: SearchBy | undefined) => void;
|
|
13
|
+
handleChangeFilters: (value?: string[] | undefined, searchBy?: SearchBy | undefined) => void;
|
|
14
|
+
};
|
|
15
|
+
export default useTableHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IOptions } from "../configs/type";
|
|
3
|
+
declare const useTeacherList: () => {
|
|
4
|
+
selectedTeachers: object | undefined;
|
|
5
|
+
teacherOptions: IOptions[];
|
|
6
|
+
handleSelectTeacher: (teacherId: string, studentUserId: string) => void;
|
|
7
|
+
handleCreateTeacherOption: (newTeacher: IOptions, studentUserId: string) => 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 "../configs/type";
|
|
2
3
|
declare type UserDetail = {
|
|
3
4
|
id?: string;
|
|
4
5
|
firstName: string;
|
|
@@ -8,12 +9,24 @@ declare type UserDetail = {
|
|
|
8
9
|
roles: string[];
|
|
9
10
|
isActive: boolean;
|
|
10
11
|
profileImageFileName: string;
|
|
12
|
+
teacherUserId?: string[];
|
|
11
13
|
};
|
|
12
14
|
declare const useUserDetail: (id?: string | undefined) => {
|
|
13
15
|
userDetail: UserDetail;
|
|
14
|
-
backToList: () => void;
|
|
16
|
+
backToList: (user?: string | undefined) => void;
|
|
15
17
|
confirmData: (data: any) => Promise<void>;
|
|
16
18
|
file: any;
|
|
17
19
|
setFile: import("react").Dispatch<any>;
|
|
20
|
+
edited: boolean;
|
|
21
|
+
currentRoles: string[];
|
|
22
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
23
|
+
setEditedTrue: () => Promise<void>;
|
|
24
|
+
confirmChangePassword: (data: any) => Promise<void>;
|
|
25
|
+
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
26
|
+
handleDisableRoles: (currentRoles: string) => boolean;
|
|
27
|
+
classFontSize: string;
|
|
28
|
+
teacherOptions: IOptions[];
|
|
29
|
+
handleToggleModel: () => void;
|
|
30
|
+
openModel: boolean;
|
|
18
31
|
};
|
|
19
32
|
export default useUserDetail;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { Filter } from "../../../types/Filter";
|
|
2
1
|
declare const useUserList: () => {
|
|
2
|
+
fullName: string;
|
|
3
3
|
userList: any;
|
|
4
4
|
totalItems: any;
|
|
5
|
-
filters:
|
|
5
|
+
filters: import("../configs/type").UserFilter;
|
|
6
|
+
queryName: string | null;
|
|
6
7
|
getData: () => Promise<void>;
|
|
7
8
|
removeData: (id: string) => void;
|
|
8
9
|
changeFilters: (updatedFilters: any) => void;
|
|
9
10
|
reDirectDetailPage: (id?: number | undefined) => void;
|
|
11
|
+
switchUser: (id: string) => Promise<void>;
|
|
12
|
+
classFontSize: string;
|
|
10
13
|
};
|
|
11
14
|
export default useUserList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UserFilter } from "../configs/type";
|
|
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,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Filter } from "../types/Filter";
|
|
3
|
+
declare const useFilters: () => {
|
|
4
|
+
filters: Filter;
|
|
5
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<Filter>>;
|
|
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;
|
package/dist/i18n.d.ts
ADDED