mario-core 1.2.7 → 1.2.8-es-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/assets/Images.d.ts +1 -0
- 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 +6 -1
- package/dist/containers/Gallery/constants/gallery.types.d.ts +1 -1
- package/dist/containers/Gallery/hooks/{galleryList.d.ts → useGalleryList.d.ts} +10 -3
- 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 +19 -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 +722 -178
- package/dist/index.d.ts +33 -5
- package/dist/index.js +29865 -3047
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29802 -3047
- 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/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 +2 -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 +14 -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 +15 -5
- 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
package/dist/assets/Images.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const CustomSelector: ({ defaultValue, options, isDisabled, ...rest }: any) => JSX.Element;
|
|
2
|
+
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, className, ...rest }: any) => JSX.Element;
|
|
3
3
|
export default CustomSelector;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Attachment = {
|
|
3
|
+
id?: number;
|
|
4
|
+
name: string;
|
|
5
|
+
key: string;
|
|
6
|
+
};
|
|
1
7
|
declare type EmailTemplateDetail = {
|
|
2
8
|
id?: number;
|
|
3
9
|
subject: string;
|
|
4
10
|
categoryId: number;
|
|
5
11
|
body: string;
|
|
12
|
+
attachments: Attachment[];
|
|
6
13
|
};
|
|
7
14
|
declare const useEmailTemplateDetail: (id?: number | undefined) => {
|
|
8
15
|
emailTemplateDetail: EmailTemplateDetail;
|
|
@@ -10,5 +17,12 @@ declare const useEmailTemplateDetail: (id?: number | undefined) => {
|
|
|
10
17
|
addParams: (params: any) => void;
|
|
11
18
|
backToList: () => void;
|
|
12
19
|
confirmData: (data: any) => Promise<void>;
|
|
20
|
+
edited: boolean;
|
|
21
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
22
|
+
setEditedTrue: () => Promise<void>;
|
|
23
|
+
onAttachFile: () => void;
|
|
24
|
+
updateAttachment: () => void;
|
|
25
|
+
fileUpload: any;
|
|
26
|
+
removeAttachment: (inputId: string, fileName: string) => void;
|
|
13
27
|
};
|
|
14
28
|
export default useEmailTemplateDetail;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Filter } from "../../../types/Filter";
|
|
2
1
|
declare const useEmailTemplateList: () => {
|
|
3
2
|
emailTemplateList: any;
|
|
4
3
|
totalItems: any;
|
|
5
|
-
filters: Filter;
|
|
4
|
+
filters: import("../../..").Filter;
|
|
6
5
|
changeFilters: (updatedFilters: any) => void;
|
|
7
6
|
getData: () => Promise<void>;
|
|
8
7
|
removeData: (id: number) => void;
|
|
@@ -9,5 +9,10 @@ declare const useFaqDetail: () => {
|
|
|
9
9
|
faqDetail: FaqDetail;
|
|
10
10
|
confirmData: (values: any, cb: any) => Promise<void>;
|
|
11
11
|
initValue: FaqDetail;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
edited: boolean;
|
|
14
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
+
setEditedTrue: () => Promise<void>;
|
|
16
|
+
setEditedFalse: () => Promise<void>;
|
|
12
17
|
};
|
|
13
18
|
export default useFaqDetail;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Filter } from "../../../types/Filter";
|
|
2
1
|
declare const useFaqList: () => {
|
|
3
2
|
faqList: any;
|
|
4
3
|
totalItems: any;
|
|
5
|
-
filters: Filter;
|
|
4
|
+
filters: import("../../..").Filter;
|
|
6
5
|
changeFilters: (updatedFilters: any) => void;
|
|
7
6
|
getData: () => Promise<void>;
|
|
8
7
|
removeData: (id: number) => void;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
targetMedia?: S3Object;
|
|
6
|
-
selectTargetMedia: Function;
|
|
7
|
-
openFolder: Function;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
height: string;
|
|
4
|
+
isLibrary?: boolean;
|
|
8
5
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
6
|
+
declare const MediaList: FC<Props>;
|
|
7
|
+
export default MediaList;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { S3Object } from "../constants/gallery.types";
|
|
3
3
|
interface MediaNavInterface {
|
|
4
|
+
isLibrary?: boolean;
|
|
5
|
+
step: number;
|
|
6
|
+
breadcumb: string;
|
|
4
7
|
currentPrefix: string;
|
|
5
8
|
targetMedia: S3Object;
|
|
6
9
|
handleSelectFile: Function;
|
|
@@ -8,7 +11,9 @@ interface MediaNavInterface {
|
|
|
8
11
|
handleRenameFile: Function;
|
|
9
12
|
handleGoBack: () => void;
|
|
10
13
|
handleDownloadMedia: () => void;
|
|
11
|
-
|
|
14
|
+
handleDeleteMediaOrFolder: () => void;
|
|
15
|
+
showErrorAlert: (message: string) => void;
|
|
16
|
+
className?: string;
|
|
12
17
|
}
|
|
13
18
|
declare const _default: React.NamedExoticComponent<MediaNavInterface>;
|
|
14
19
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare type S3Object = {
|
|
2
2
|
name?: string;
|
|
3
3
|
key?: string;
|
|
4
|
-
thumbnail?: string;
|
|
5
4
|
extension?: string;
|
|
6
5
|
isFolder?: boolean;
|
|
7
6
|
};
|
|
@@ -18,4 +17,5 @@ export declare type FilterType = {
|
|
|
18
17
|
prefix?: string;
|
|
19
18
|
fromDate?: number;
|
|
20
19
|
toDate?: number;
|
|
20
|
+
isLibrary?: boolean;
|
|
21
21
|
};
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FilterType } from "../constants/gallery.types";
|
|
3
|
-
import { S3Object } from "
|
|
3
|
+
import { S3Object } from "../constants/gallery.types";
|
|
4
4
|
interface FormDataMediaType {
|
|
5
5
|
file: File;
|
|
6
6
|
key?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface RouterType {
|
|
9
|
+
link: string;
|
|
10
|
+
step: number;
|
|
11
|
+
}
|
|
12
|
+
declare const useGalleryList: (isLibrary?: boolean) => {
|
|
9
13
|
mediaList: any;
|
|
10
14
|
filters: FilterType;
|
|
11
15
|
totalItems: any;
|
|
12
16
|
targetMedia: S3Object;
|
|
17
|
+
router: RouterType;
|
|
18
|
+
breadcrumb: string;
|
|
13
19
|
getData: () => Promise<void>;
|
|
14
20
|
changeFilters: (updatedFilters: FilterType) => void;
|
|
15
21
|
handleSelectFile: import("react").Dispatch<import("react").SetStateAction<FormDataMediaType | undefined>>;
|
|
@@ -17,8 +23,9 @@ declare const useGalleryList: () => {
|
|
|
17
23
|
handleSelectMedia: (media: S3Object) => void;
|
|
18
24
|
handleRenameFile: (name: string) => Promise<void>;
|
|
19
25
|
handleDownloadMedia: () => void;
|
|
20
|
-
|
|
26
|
+
handleDeleteMediaOrFolder: () => Promise<void>;
|
|
21
27
|
handleCreateFolder: (prefix: string, folderName: string) => Promise<void>;
|
|
22
28
|
handleGoBack: () => void;
|
|
29
|
+
showErrorAlert: (message: string) => void;
|
|
23
30
|
};
|
|
24
31
|
export default useGalleryList;
|
|
@@ -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,27 @@
|
|
|
1
|
+
export declare enum TypeLogin {
|
|
2
|
+
Google = 0,
|
|
3
|
+
ClassLink = 1,
|
|
4
|
+
MicrosoftSSO = 2
|
|
5
|
+
}
|
|
6
|
+
export interface IInformationUser {
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
fullName: string;
|
|
10
|
+
imageUrl: string | null;
|
|
11
|
+
email: string;
|
|
12
|
+
accessToken: string;
|
|
13
|
+
googleId: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum LoginType {
|
|
16
|
+
Default = 0,
|
|
17
|
+
Google = 1,
|
|
18
|
+
Impersonate = 2
|
|
19
|
+
}
|
|
20
|
+
export interface ISchool {
|
|
21
|
+
schoolName: string;
|
|
22
|
+
schoolLogo: string;
|
|
23
|
+
schoolId: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IDashboard {
|
|
26
|
+
version?: string;
|
|
27
|
+
}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare type ForgotPasswordInfo = {
|
|
2
3
|
email: string;
|
|
4
|
+
captcha: string;
|
|
3
5
|
};
|
|
4
6
|
declare const useForgotPassword: () => {
|
|
5
7
|
defaultInfo: ForgotPasswordInfo;
|
|
6
8
|
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
9
|
+
checkResetTokenRequest: (token: string) => Promise<void>;
|
|
10
|
+
validLink: boolean;
|
|
7
11
|
resetPasswordRequest: (data: any) => Promise<void>;
|
|
8
12
|
openLogin: boolean;
|
|
9
13
|
toggle: () => void;
|
|
14
|
+
isShowNewPassword: boolean;
|
|
15
|
+
setIsShowNewPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
16
|
+
isShowReTypePassword: boolean;
|
|
17
|
+
setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
18
|
+
clickHandler: () => Promise<any>;
|
|
19
|
+
handleVerify: () => void;
|
|
10
20
|
};
|
|
11
21
|
export default useForgotPassword;
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ISchool, TypeLogin } from "../constant/types";
|
|
1
3
|
declare type LoginInfo = {
|
|
2
4
|
email: string;
|
|
3
5
|
password: string;
|
|
6
|
+
captcha: string;
|
|
7
|
+
rememberMe: boolean;
|
|
8
|
+
isSessionUserBrowser?: boolean;
|
|
4
9
|
};
|
|
5
10
|
declare const useLogin: () => {
|
|
6
11
|
defaultInfo: LoginInfo;
|
|
7
12
|
userLogin: (data: any) => Promise<void>;
|
|
8
13
|
openLogin: boolean;
|
|
9
14
|
toggle: () => void;
|
|
15
|
+
isShowPassword: boolean;
|
|
16
|
+
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler: any) => Promise<void>;
|
|
18
|
+
isLoginGoogle: boolean;
|
|
19
|
+
infoUser: any;
|
|
20
|
+
setInfoUser: import("react").Dispatch<any>;
|
|
21
|
+
submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
|
|
22
|
+
setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
23
|
+
googleClientId: string;
|
|
24
|
+
googleRecaptchaId: string;
|
|
25
|
+
school: ISchool;
|
|
26
|
+
fnLoginSSO: (clickHandler?: any) => Promise<void>;
|
|
27
|
+
handleLoginWidthClever: () => void;
|
|
28
|
+
extensionEmail: string;
|
|
10
29
|
};
|
|
11
30
|
export default useLogin;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
defaultValue?: any;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
openModal: boolean;
|
|
6
|
+
onSubmit: any;
|
|
7
|
+
token: string;
|
|
8
|
+
email: string;
|
|
9
|
+
setOpenModal: any;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
|
|
12
|
+
export default _default;
|
|
@@ -10,5 +10,8 @@ declare const useNotificationList: () => {
|
|
|
10
10
|
};
|
|
11
11
|
changeFilters: (objectValue: any) => void;
|
|
12
12
|
updateNotification: (id: any, isRead: any) => void;
|
|
13
|
+
viewNotification: (notification: any) => void;
|
|
14
|
+
updateAll: () => Promise<void>;
|
|
15
|
+
toggleUpdateAllStatus: boolean;
|
|
13
16
|
};
|
|
14
17
|
export default useNotificationList;
|
|
@@ -11,5 +11,10 @@ declare const useSkillDetail: () => {
|
|
|
11
11
|
skillDetail: SkillDetail;
|
|
12
12
|
confirmData: (values: any, cb: any) => Promise<void>;
|
|
13
13
|
initValue: SkillDetail;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
edited: boolean;
|
|
16
|
+
setEdited: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
setEditedTrue: () => Promise<void>;
|
|
18
|
+
setEditedFalse: () => Promise<void>;
|
|
14
19
|
};
|
|
15
20
|
export default useSkillDetail;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Filter } from "../../../types/Filter";
|
|
2
1
|
declare const useSkillList: () => {
|
|
3
2
|
skillList: any;
|
|
4
3
|
totalItems: any;
|
|
5
|
-
filters: Filter;
|
|
4
|
+
filters: import("../../..").Filter;
|
|
6
5
|
changeFilters: (updatedFilters: any) => void;
|
|
7
6
|
getData: () => Promise<void>;
|
|
8
7
|
removeData: (id: number) => void;
|
|
8
|
+
classFontSize: string;
|
|
9
9
|
};
|
|
10
10
|
export default useSkillList;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PopoverProps } from "reactstrap";
|
|
3
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../configs/type";
|
|
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,17 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SearchBy, UserColumn, UserFilter, UserOrder } from "../configs/type";
|
|
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
|
+
}
|
|
16
|
+
declare const HeaderCell: FC<Props>;
|
|
17
|
+
export default HeaderCell;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { UserColumn, UserFilter } from "../configs/type";
|
|
3
|
+
interface Props {
|
|
4
|
+
headers: UserColumn[];
|
|
5
|
+
filters: UserFilter;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
onChangeFilters?: (filter: UserFilter) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const TableHeader: FC<Props>;
|
|
10
|
+
export default TableHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const changePasswordSchema: import("yup/lib/object").OptionalObjectSchema<{
|
|
2
|
+
oldPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
3
|
+
newPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
4
|
+
confirmedNewPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
5
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
6
|
+
oldPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
7
|
+
newPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
8
|
+
confirmedNewPassword: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
9
|
+
}>>;
|
|
10
|
+
export default changePasswordSchema;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StudentFilter, UserColumn, UserFilter, UserOrder } from "./type";
|
|
2
|
+
export declare const DEFAULT_PAGE_SIZE: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const DEFAULT_STUDENT_FILTER: StudentFilter;
|
|
7
|
+
export declare const UserColumns: UserColumn[];
|
|
8
|
+
export declare const DEFAULT_FILTER_POPOVER: UserFilter;
|
|
9
|
+
export declare const DEFAULT_FILTER: UserFilter;
|
|
10
|
+
export declare const userOrders: {
|
|
11
|
+
0: string;
|
|
12
|
+
1: string;
|
|
13
|
+
2: string;
|
|
14
|
+
3: string;
|
|
15
|
+
4: string;
|
|
16
|
+
5: string;
|
|
17
|
+
6: string;
|
|
18
|
+
};
|