sixseconds-modules 1.2.1 → 1.2.2
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/api/index.d.ts +4 -0
- package/dist/api/transforms/user.d.ts +14 -0
- package/dist/api/types/base.d.ts +18 -0
- package/dist/api/user.d.ts +8 -0
- package/dist/assets/images/index.d.ts +4 -0
- package/dist/assets/svg/index.d.ts +741 -0
- package/dist/components/dialogs/dangerDialog.d.ts +11 -0
- package/dist/components/dialogs/index.d.ts +1 -0
- package/dist/components/elements/backArrow.d.ts +7 -0
- package/dist/components/elements/index.d.ts +2 -0
- package/dist/components/elements/logo.d.ts +6 -0
- package/dist/components/elements/warning.d.ts +6 -0
- package/dist/components/header/appMenus.d.ts +9 -0
- package/dist/components/header/dropDownMenu.d.ts +9 -0
- package/dist/components/header/index.d.ts +23 -0
- package/dist/components/header/language.d.ts +12 -0
- package/dist/components/header/notification.d.ts +9 -0
- package/dist/components/header/subheaderStyled.d.ts +2 -0
- package/dist/components/header/type.d.ts +20 -0
- package/dist/components/header/userProfile.d.ts +10 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/constants/apis.d.ts +4 -0
- package/dist/constants/common.d.ts +77 -0
- package/dist/constants/dates.d.ts +3 -0
- package/dist/constants/env.d.ts +9 -0
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/routes.d.ts +19 -0
- package/dist/constants/validation.d.ts +4 -0
- package/dist/index.cjs.js +5673 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +5657 -0
- package/dist/index.es.js.map +1 -0
- package/dist/main.d.ts +0 -0
- package/dist/types/custom.d.ts +24 -0
- package/dist/types/htmlElements.d.ts +6 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/reactTypes.d.ts +4 -0
- package/dist/utils/common.d.ts +13 -0
- package/dist/utils/date.d.ts +3 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/vite-env.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
setInitialState: any;
|
|
6
|
+
buttonTitle?: string;
|
|
7
|
+
handleClick: () => void;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const DangerDialog: ({ open, setInitialState, title, description, buttonTitle, isLoading, handleClick, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default DangerDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DangerDialog } from './dangerDialog';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SetStateAction } from '../../types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IState } from './type';
|
|
4
|
+
interface HeaderMenuProps {
|
|
5
|
+
menuItems: any;
|
|
6
|
+
setInitialState: SetStateAction<IState>;
|
|
7
|
+
}
|
|
8
|
+
declare const AppMenus: React.FC<HeaderMenuProps>;
|
|
9
|
+
export default AppMenus;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IState } from './type';
|
|
2
|
+
import { SetStateAction } from '../../types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
headerMenuArray: any[];
|
|
5
|
+
initialState: IState;
|
|
6
|
+
setInitialState?: SetStateAction<IState>;
|
|
7
|
+
}
|
|
8
|
+
declare const DropdownMenu: ({ headerMenuArray, initialState }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DropdownMenu;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { t } from '../../types';
|
|
3
|
+
interface SubHeaderProps {
|
|
4
|
+
isDesktopCollapsed?: boolean;
|
|
5
|
+
userData?: any;
|
|
6
|
+
interFaceLangList?: any;
|
|
7
|
+
endCustomComponents?: any;
|
|
8
|
+
frontCustomComponent?: any;
|
|
9
|
+
centerCustomComponents?: any;
|
|
10
|
+
toggleSiderMenu?: any;
|
|
11
|
+
updateInterfaceLang?: any;
|
|
12
|
+
selectedInterFaceLang?: any;
|
|
13
|
+
logoutHandler?: any;
|
|
14
|
+
logo?: any;
|
|
15
|
+
isMenu?: boolean;
|
|
16
|
+
isNotification?: boolean;
|
|
17
|
+
extraMenuOptions?: any;
|
|
18
|
+
isAccessAppMenu?: boolean;
|
|
19
|
+
t?: t;
|
|
20
|
+
sx?: SxProps;
|
|
21
|
+
}
|
|
22
|
+
export declare const Header: ({ frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, sx, }: SubHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SetStateAction } from '../../types';
|
|
2
|
+
import { IState } from './type';
|
|
3
|
+
interface IProps {
|
|
4
|
+
setState?: any;
|
|
5
|
+
interFaceLangList?: any;
|
|
6
|
+
userData?: any;
|
|
7
|
+
updateInterfaceLang?: any;
|
|
8
|
+
selectedInterFaceLang?: any;
|
|
9
|
+
setInitialState: SetStateAction<IState>;
|
|
10
|
+
}
|
|
11
|
+
export default function Language({ interFaceLangList, selectedInterFaceLang, setInitialState, }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SetStateAction } from '../../types';
|
|
2
|
+
import { IState } from './type';
|
|
3
|
+
interface IProps {
|
|
4
|
+
userData: any;
|
|
5
|
+
setInitialState: SetStateAction<IState>;
|
|
6
|
+
initialState: IState;
|
|
7
|
+
}
|
|
8
|
+
declare const Notification: ({ setInitialState, userData, initialState }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Notification;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const SubHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/material').AppBarOwnProps & Omit<import('@mui/material').PaperOwnProps, "color" | "position" | "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style" | "color" | "position" | "sx" | "classes" | "className" | "children" | "square" | "elevation" | "variant" | "enableColorOnDark"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
2
|
+
export default SubHeaderStyled;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IState {
|
|
2
|
+
languages: string[]
|
|
3
|
+
menuData: []
|
|
4
|
+
toggles: {
|
|
5
|
+
appMenus: boolean
|
|
6
|
+
notification: boolean
|
|
7
|
+
logout: boolean
|
|
8
|
+
lang: boolean
|
|
9
|
+
dropDownMenu: boolean
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface INotificationState {
|
|
14
|
+
notificationData: Notification[]
|
|
15
|
+
page: number
|
|
16
|
+
currentPage: number
|
|
17
|
+
lastPage: number
|
|
18
|
+
requestAcceptedDialog?: boolean
|
|
19
|
+
userRequest?: any
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IState } from './type';
|
|
2
|
+
import { SetStateAction } from '../../types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
userData: any;
|
|
5
|
+
initialState: IState;
|
|
6
|
+
setInitialState?: SetStateAction<IState>;
|
|
7
|
+
extraMenuOptions?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const UserProfile: ({ userData, setInitialState, extraMenuOptions }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default UserProfile;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const SERVER_STATUS_CODE: Readonly<{
|
|
2
|
+
notFound: 404;
|
|
3
|
+
badRequest: 400;
|
|
4
|
+
forbidden: 403;
|
|
5
|
+
authenticationDenied: 401;
|
|
6
|
+
serverError: 500;
|
|
7
|
+
success: 200;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const SERVER_STATUS: Readonly<{
|
|
10
|
+
success: "success";
|
|
11
|
+
failure: "failure";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const APP_NAMES: Readonly<{
|
|
14
|
+
events: "Events";
|
|
15
|
+
tools: "Tools";
|
|
16
|
+
certHome: "Cert Home";
|
|
17
|
+
cards: "Cards";
|
|
18
|
+
sso: "SSO Admin";
|
|
19
|
+
cardsHome: "Cards Home";
|
|
20
|
+
cardsAdmin: "Cards Admin";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const ALERT_MESSAGES: Readonly<{
|
|
23
|
+
dataNoFount: "Data not found";
|
|
24
|
+
searchNotFount: "Sorry, there are no matches. Try a new search?";
|
|
25
|
+
commonLoadingMessage: "Please wait...";
|
|
26
|
+
submittingSuccessMassage: "Detail Added Successfully";
|
|
27
|
+
allFieldsRequired: "Please fill all required fields";
|
|
28
|
+
NA: "N/A";
|
|
29
|
+
fallbackError: "Something went wrong, Please try again later!";
|
|
30
|
+
networkError: "Please check your internet connection!";
|
|
31
|
+
timeOutError: "Your connection taking too long to get data!";
|
|
32
|
+
}>;
|
|
33
|
+
export declare const ROLES: Readonly<{
|
|
34
|
+
master: "Master";
|
|
35
|
+
distributor: "Distributor";
|
|
36
|
+
coach: "Coach";
|
|
37
|
+
referent: "Referent";
|
|
38
|
+
}>;
|
|
39
|
+
export declare const REGEX: Readonly<{
|
|
40
|
+
email: RegExp;
|
|
41
|
+
mobile: RegExp;
|
|
42
|
+
website: RegExp;
|
|
43
|
+
password: RegExp;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const WEBSITE_LINKS: Readonly<{
|
|
46
|
+
helpDisk: "#";
|
|
47
|
+
instagram: "https://www.instagram.com/6secondseq/";
|
|
48
|
+
facebook: "https://www.facebook.com/sixseconds";
|
|
49
|
+
linkedin: "https://www.linkedin.com/company/six-seconds/";
|
|
50
|
+
youtube: "https://www.youtube.com/c/SixSeconds";
|
|
51
|
+
x: "https://x.com/6s_EQ";
|
|
52
|
+
termsOfService: "https://www.6seconds.org/about/terms-of-use/";
|
|
53
|
+
privacyPolicy: "https://www.6seconds.org/about/policies/privacy/";
|
|
54
|
+
certUrl: "https://cert.6seconds.org/";
|
|
55
|
+
}>;
|
|
56
|
+
export declare const RTK_ERROR_CODES: Readonly<{
|
|
57
|
+
fetchError: "FETCH_ERROR";
|
|
58
|
+
parsingError: "PARSING_ERROR";
|
|
59
|
+
timeOutError: "TIMEOUT_ERROR";
|
|
60
|
+
customError: "CUSTOM_ERROR";
|
|
61
|
+
}>;
|
|
62
|
+
export declare const APP_ACCESS: Readonly<{
|
|
63
|
+
events: "Events";
|
|
64
|
+
tools: "Tools";
|
|
65
|
+
certHome: "Cert Home";
|
|
66
|
+
cards: "Cards";
|
|
67
|
+
ssoAdmin: "SSO Admin";
|
|
68
|
+
cardsHome: "Cards Home";
|
|
69
|
+
cardsAdmin: "Cards Admin";
|
|
70
|
+
}>;
|
|
71
|
+
export declare const NOTIFICATIONS_TYPES: Readonly<{
|
|
72
|
+
project: "Project";
|
|
73
|
+
credit: "Credit";
|
|
74
|
+
report: "Report";
|
|
75
|
+
group: "Group";
|
|
76
|
+
system: "System";
|
|
77
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const env: Readonly<{
|
|
2
|
+
VITE_MODULES_SSO_FRONTEND_BASE_URL: string;
|
|
3
|
+
VITE_MODULES_TOOLS_FRONTEND_BASE_URL: string;
|
|
4
|
+
VITE_MODULES_EVENTS_FRONTEND_BASE_URL: string;
|
|
5
|
+
VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL: string;
|
|
6
|
+
VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL: string;
|
|
7
|
+
VITE_MODULES_CERT_FRONTEND_BASE_URL: string;
|
|
8
|
+
VITE_MODULES_SSO_BACKEND_BASE_URL: string;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { APP_NAMES } from './common';
|
|
2
|
+
export declare const TOOLS_ROUTES: {
|
|
3
|
+
creditList: string;
|
|
4
|
+
groupList: string;
|
|
5
|
+
projectList: string;
|
|
6
|
+
reportList: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SSO_ROUTES: (APP_NAME?: (typeof APP_NAMES)[keyof typeof APP_NAMES]) => {
|
|
9
|
+
languages: string;
|
|
10
|
+
translations: string;
|
|
11
|
+
editProfile: string;
|
|
12
|
+
email: string;
|
|
13
|
+
changePasswordDialog: string;
|
|
14
|
+
viewProfile: string;
|
|
15
|
+
unauthorized: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ROUTES: {
|
|
18
|
+
home: string;
|
|
19
|
+
};
|