sevago-sso-fe 1.0.33 → 1.0.35
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/common/constant/apps.constant.d.ts +2 -2
- package/dist/common/constant/apps.data.d.ts +44 -0
- package/dist/common/enums/app-category.enum.d.ts +0 -18
- package/dist/common/utils/find-current-access.helper.d.ts +0 -1
- package/dist/common/utils/other/index.d.ts +0 -1
- package/dist/components/app-grid/app-grid.component.d.ts +3 -5
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/sidebar/system-monitor-sidebar.part.d.ts +3 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/use-apps.hook.d.ts +3 -4
- package/dist/index.cjs.js +1835 -3842
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2325 -4332
- package/dist/index.esm.js.map +1 -1
- package/dist/pages/auth/index.d.ts +0 -1
- package/dist/pages/dashboard/screen/system-monitor/system-monitor.screen.d.ts +4 -1
- package/dist/pages/dashboard/sidebar/sidebar.context.d.ts +3 -3
- package/dist/pages/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/common/utils/other/app.utils.d.ts +0 -2
- package/dist/pages/auth/auth.page.d.ts +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const SYSTEM_MODULES:
|
|
1
|
+
import { AppInfo } from './apps.data';
|
|
2
|
+
export declare const SYSTEM_MODULES: AppInfo[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare enum AppGroup {
|
|
2
|
+
ALL = "all",
|
|
3
|
+
HRM = "HRM",
|
|
4
|
+
WORKFLOW_ENGINE = "Workflow Engine",
|
|
5
|
+
PLATFORM_AND_INFO = "Platform & Info",
|
|
6
|
+
B2B = "B2B",
|
|
7
|
+
OTHER = "Kh\u00E1c",
|
|
8
|
+
CLIENT = "Web"
|
|
9
|
+
}
|
|
10
|
+
export declare enum App {
|
|
11
|
+
E_HIRING = "Tuy\u1EC3n d\u1EE5ng",
|
|
12
|
+
HR = "Nh\u00E2n s\u1EF1",
|
|
13
|
+
PAYROLL = "T\u00EDnh l\u01B0\u01A1ng",
|
|
14
|
+
ORG = "S\u01A1 \u0111\u1ED3 t\u1ED5 ch\u1EE9c",
|
|
15
|
+
CHECKIN = "Ch\u1EA5m c\u00F4ng",
|
|
16
|
+
PROJECT = "D\u1EF1 \u00E1n",
|
|
17
|
+
REQUEST = "\u0110\u1EC1 xu\u1EA5t",
|
|
18
|
+
PROCESS = "Quy tr\u00ECnh",
|
|
19
|
+
TRACKING = "Ti\u1EBFn tr\u00ECnh",
|
|
20
|
+
CHAT = "Chat",
|
|
21
|
+
TRAINING = "\u0110\u00E0o t\u1EA1o",
|
|
22
|
+
FORM = "Bi\u1EC3u m\u1EABu",
|
|
23
|
+
INSIDE = "Th\u00F4ng tin & CSNV",
|
|
24
|
+
BOOKING = "T\u00E0i nguy\u00EAn",
|
|
25
|
+
FORMULA_PRICE = "T\u00EDnh gi\u00E1",
|
|
26
|
+
E_CATALOGUE = "E-Catalogue",
|
|
27
|
+
LANDING_PAGE = "Landing page"
|
|
28
|
+
}
|
|
29
|
+
export interface AppInfo {
|
|
30
|
+
path: string;
|
|
31
|
+
content: string;
|
|
32
|
+
color: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
group: AppGroup;
|
|
35
|
+
}
|
|
36
|
+
export declare const APP_GROUP_COLOR: {
|
|
37
|
+
"Workflow Engine": string;
|
|
38
|
+
HRM: string;
|
|
39
|
+
"Platform & Info": string;
|
|
40
|
+
B2B: string;
|
|
41
|
+
Web: string;
|
|
42
|
+
Khác: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const APP_OBJ: Record<string, AppInfo>;
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import { UserType } from '../../apis/user/user.enum';
|
|
2
|
-
export declare enum AppCategory {
|
|
3
|
-
ALL = "all",
|
|
4
|
-
HRM = "hrm",
|
|
5
|
-
WORKFLOW = "workflow",
|
|
6
|
-
PLATFORM_INFO = "platform-info"
|
|
7
|
-
}
|
|
8
1
|
export declare enum AppType {
|
|
9
2
|
SUBMENU = "submenu",
|
|
10
3
|
EXPAND_MENU = "expand-menu"
|
|
11
4
|
}
|
|
12
|
-
export interface AppModule {
|
|
13
|
-
key: string;
|
|
14
|
-
title: string;
|
|
15
|
-
caption: string;
|
|
16
|
-
icon: string;
|
|
17
|
-
path?: string;
|
|
18
|
-
category: AppCategory;
|
|
19
|
-
allowUserTypes: UserType[];
|
|
20
|
-
type?: AppType;
|
|
21
|
-
children?: AppModule[];
|
|
22
|
-
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AppInfo } from '../../common/constant/apps.data';
|
|
3
3
|
export interface AppGridProps {
|
|
4
|
-
apps:
|
|
5
|
-
onClickItem?: (app:
|
|
4
|
+
apps: AppInfo[];
|
|
5
|
+
onClickItem?: (app: AppInfo) => void;
|
|
6
6
|
columns?: number;
|
|
7
7
|
rows?: number;
|
|
8
8
|
iconSize?: number;
|
|
@@ -10,9 +10,7 @@ export interface AppGridProps {
|
|
|
10
10
|
iconShadow?: string;
|
|
11
11
|
gap?: number | string;
|
|
12
12
|
titleVariant?: "subtitle1" | "body1" | "caption";
|
|
13
|
-
captionVariant?: "caption" | "body2";
|
|
14
13
|
titleColor?: string;
|
|
15
|
-
captionColor?: string;
|
|
16
14
|
selectedAppId?: string;
|
|
17
15
|
showPagination?: boolean;
|
|
18
16
|
}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './use-apps.hook';
|
|
2
|
-
export { useActiveSidebar,
|
|
2
|
+
export { useActiveSidebar, useApps, useIsSystemMonitor, useSidebarState, } from './use-apps.hook';
|
|
3
3
|
export { SnackbarProvider, SnackbarType, useSnackbar, } from './use-snackbar.hook';
|
|
4
4
|
export { useTagSelector } from './use-tag-selector.hook';
|
|
5
5
|
export { useUpdateCurrentAccess } from './use-update-current-access.hook';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useApps: (tab?:
|
|
1
|
+
import { AppGroup } from '../common/constant/apps.data';
|
|
2
|
+
export declare const useApps: (tab?: AppGroup) => import('../common/constant/apps.data').AppInfo[];
|
|
3
3
|
export declare const useIsSystemMonitor: () => boolean;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const useActiveSidebar: () => import('../common/enums/app-category.enum').AppModule | undefined;
|
|
4
|
+
export declare const useActiveSidebar: () => import('../common/constant/apps.data').AppInfo | undefined;
|
|
6
5
|
export declare const useSidebarState: () => {
|
|
7
6
|
isSidebarOpen: boolean;
|
|
8
7
|
openSidebar: () => void;
|