sixseconds-modules 1.1.8 → 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 -1
- package/dist/assets/svg/index.d.ts +0 -24
- package/dist/components/header/appMenus.d.ts +9 -0
- package/dist/components/header/index.d.ts +7 -2
- package/dist/components/header/notification.d.ts +9 -1
- package/dist/components/header/type.d.ts +3 -0
- package/dist/components/header/userProfile.d.ts +2 -1
- package/dist/constants/common.d.ts +20 -0
- package/dist/constants/env.d.ts +1 -0
- package/dist/constants/routes.d.ts +6 -0
- package/dist/index.cjs.js +5285 -627
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5108 -450
- package/dist/index.es.js.map +1 -1
- package/dist/utils/common.d.ts +8 -0
- package/dist/utils/date.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +10 -4
- package/dist/api/transform/transformUser.d.ts +0 -5
- package/dist/components/header/profile.d.ts +0 -1
- package/dist/hooks/useRtk.d.ts +0 -4
- package/dist/states/index.d.ts +0 -15
- package/dist/states/reducers/user.d.ts +0 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const transformNotifications: (itm: any) => any;
|
|
2
|
+
export declare const transformUser: (userData: any) => {
|
|
3
|
+
name: any;
|
|
4
|
+
email: any;
|
|
5
|
+
user_profile: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const transformMenuBuilderData: (itm: any) => {
|
|
8
|
+
label: any;
|
|
9
|
+
value: any;
|
|
10
|
+
target: any;
|
|
11
|
+
id: any;
|
|
12
|
+
order: any;
|
|
13
|
+
children: any;
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type ServerError = {
|
|
2
|
+
message: string
|
|
3
|
+
data: any
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type SuccessResult<T> = {
|
|
7
|
+
remote: Extract<RemoteDataStatus, "success">
|
|
8
|
+
status?: number
|
|
9
|
+
data: T
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ErrorResult = {
|
|
13
|
+
remote: Extract<RemoteDataStatus, "failure">
|
|
14
|
+
error: ServerError
|
|
15
|
+
status?: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type RemoteDataStatus = "success" | "failure"
|
package/dist/api/user.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export declare function getDropDownMenuAPI(params: any): Promise<import('./types/base').ErrorResult | {
|
|
2
|
+
remote: "success";
|
|
3
|
+
data: any;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function notificationApi(data: any): Promise<import('./types/base').ErrorResult | {
|
|
6
|
+
remote: "success";
|
|
7
|
+
data: any;
|
|
8
|
+
}>;
|
|
@@ -17,12 +17,6 @@ declare const SVG: {
|
|
|
17
17
|
desc?: string;
|
|
18
18
|
descId?: string;
|
|
19
19
|
}>;
|
|
20
|
-
Setting: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
21
|
-
title?: string;
|
|
22
|
-
titleId?: string;
|
|
23
|
-
desc?: string;
|
|
24
|
-
descId?: string;
|
|
25
|
-
}>;
|
|
26
20
|
CheckedPerson: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
21
|
title?: string;
|
|
28
22
|
titleId?: string;
|
|
@@ -707,18 +701,6 @@ declare const SVG: {
|
|
|
707
701
|
desc?: string;
|
|
708
702
|
descId?: string;
|
|
709
703
|
}>;
|
|
710
|
-
SettingMenu: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
711
|
-
title?: string;
|
|
712
|
-
titleId?: string;
|
|
713
|
-
desc?: string;
|
|
714
|
-
descId?: string;
|
|
715
|
-
}>;
|
|
716
|
-
TranslateIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
717
|
-
title?: string;
|
|
718
|
-
titleId?: string;
|
|
719
|
-
desc?: string;
|
|
720
|
-
descId?: string;
|
|
721
|
-
}>;
|
|
722
704
|
KeyIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
723
705
|
title?: string;
|
|
724
706
|
titleId?: string;
|
|
@@ -731,12 +713,6 @@ declare const SVG: {
|
|
|
731
713
|
desc?: string;
|
|
732
714
|
descId?: string;
|
|
733
715
|
}>;
|
|
734
|
-
TranslationIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
735
|
-
title?: string;
|
|
736
|
-
titleId?: string;
|
|
737
|
-
desc?: string;
|
|
738
|
-
descId?: string;
|
|
739
|
-
}>;
|
|
740
716
|
DashboardIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
741
717
|
title?: string;
|
|
742
718
|
titleId?: string;
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
1
2
|
import { t } from '../../types';
|
|
2
3
|
interface SubHeaderProps {
|
|
3
4
|
isDesktopCollapsed?: boolean;
|
|
@@ -10,9 +11,13 @@ interface SubHeaderProps {
|
|
|
10
11
|
updateInterfaceLang?: any;
|
|
11
12
|
selectedInterFaceLang?: any;
|
|
12
13
|
logoutHandler?: any;
|
|
13
|
-
|
|
14
|
+
logo?: any;
|
|
14
15
|
isMenu?: boolean;
|
|
16
|
+
isNotification?: boolean;
|
|
17
|
+
extraMenuOptions?: any;
|
|
18
|
+
isAccessAppMenu?: boolean;
|
|
15
19
|
t?: t;
|
|
20
|
+
sx?: SxProps;
|
|
16
21
|
}
|
|
17
|
-
export declare const Header: ({ frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler,
|
|
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;
|
|
18
23
|
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
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;
|
|
@@ -4,6 +4,7 @@ interface IProps {
|
|
|
4
4
|
userData: any;
|
|
5
5
|
initialState: IState;
|
|
6
6
|
setInitialState?: SetStateAction<IState>;
|
|
7
|
+
extraMenuOptions?: any;
|
|
7
8
|
}
|
|
8
|
-
declare const UserProfile: ({ userData, setInitialState }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const UserProfile: ({ userData, setInitialState, extraMenuOptions }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default UserProfile;
|
|
@@ -6,6 +6,10 @@ export declare const SERVER_STATUS_CODE: Readonly<{
|
|
|
6
6
|
serverError: 500;
|
|
7
7
|
success: 200;
|
|
8
8
|
}>;
|
|
9
|
+
export declare const SERVER_STATUS: Readonly<{
|
|
10
|
+
success: "success";
|
|
11
|
+
failure: "failure";
|
|
12
|
+
}>;
|
|
9
13
|
export declare const APP_NAMES: Readonly<{
|
|
10
14
|
events: "Events";
|
|
11
15
|
tools: "Tools";
|
|
@@ -55,3 +59,19 @@ export declare const RTK_ERROR_CODES: Readonly<{
|
|
|
55
59
|
timeOutError: "TIMEOUT_ERROR";
|
|
56
60
|
customError: "CUSTOM_ERROR";
|
|
57
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
|
+
}>;
|
package/dist/constants/env.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
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
|
+
};
|
|
2
8
|
export declare const SSO_ROUTES: (APP_NAME?: (typeof APP_NAMES)[keyof typeof APP_NAMES]) => {
|
|
3
9
|
languages: string;
|
|
4
10
|
translations: string;
|