sevago-sso-fe 1.0.4 → 1.0.7

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.
Files changed (160) hide show
  1. package/README.md +18 -19
  2. package/dist/App.d.ts +1 -0
  3. package/dist/apis/auth/auth.api.d.ts +9 -0
  4. package/dist/apis/auth/auth.enum.d.ts +16 -0
  5. package/dist/apis/auth/auth.interface.d.ts +50 -0
  6. package/dist/apis/auth/index.d.ts +5 -0
  7. package/dist/apis/index.d.ts +4 -0
  8. package/dist/apis/notification/index.d.ts +6 -0
  9. package/dist/apis/notification/notification.api.d.ts +12 -0
  10. package/dist/apis/notification/notification.entities.d.ts +17 -0
  11. package/dist/apis/notification/notification.enum.d.ts +26 -0
  12. package/dist/apis/notification/notification.interface.d.ts +33 -0
  13. package/dist/apis/org-unit/index.d.ts +2 -0
  14. package/dist/apis/org-unit/org-unit.entities.d.ts +41 -0
  15. package/dist/apis/org-unit/org-unit.enum.d.ts +11 -0
  16. package/dist/apis/user/index.d.ts +6 -0
  17. package/dist/apis/user/user.api.d.ts +17 -0
  18. package/dist/apis/user/user.entities.d.ts +161 -0
  19. package/dist/apis/user/user.enum.d.ts +304 -0
  20. package/dist/apis/user/user.interface.d.ts +81 -0
  21. package/dist/assets/icon/icon-left.d.ts +3 -0
  22. package/dist/assets/icon/icon-right.d.ts +3 -0
  23. package/dist/common/config/axios.config.d.ts +1 -0
  24. package/dist/common/config/firebase.config.d.ts +3 -0
  25. package/dist/common/config/index.d.ts +3 -0
  26. package/dist/common/config/socket.config.d.ts +19 -0
  27. package/dist/common/constant/apps.constant.d.ts +2 -0
  28. package/dist/common/constant/index.d.ts +7 -0
  29. package/dist/common/constant/mode.constant.d.ts +266 -0
  30. package/dist/common/constant/opacity.constant.d.ts +103 -0
  31. package/dist/common/constant/reg-exp.constant.d.ts +1 -0
  32. package/dist/common/constant/style.constant.d.ts +113 -0
  33. package/dist/common/constant/tree.constant.d.ts +12 -0
  34. package/dist/common/constant/typography.constant.d.ts +457 -0
  35. package/dist/common/enums/app-category.enum.d.ts +22 -0
  36. package/dist/common/enums/country.enum.d.ts +7 -0
  37. package/dist/common/enums/file-type.enum.d.ts +4 -0
  38. package/dist/common/enums/index.d.ts +6 -0
  39. package/dist/common/enums/mode.enum.d.ts +4 -0
  40. package/dist/common/enums/order-type.enum.d.ts +4 -0
  41. package/dist/common/enums/payment-method.enum.d.ts +7 -0
  42. package/dist/common/index.d.ts +5 -0
  43. package/dist/common/interfaces/base-item.interface.d.ts +8 -0
  44. package/dist/common/interfaces/change-event-custom.interface.d.ts +6 -0
  45. package/dist/common/interfaces/error.interface.d.ts +5 -0
  46. package/dist/common/interfaces/index.d.ts +6 -0
  47. package/dist/common/interfaces/page-options.interface.d.ts +15 -0
  48. package/dist/common/interfaces/res-list.interface.d.ts +7 -0
  49. package/dist/common/interfaces/route.interface.d.ts +12 -0
  50. package/dist/common/utils/find-current-access.helper.d.ts +1 -0
  51. package/dist/common/utils/index.d.ts +6 -0
  52. package/dist/common/utils/other/app.utils.d.ts +2 -0
  53. package/dist/common/utils/other/get-limit-line-css.utils.d.ts +2 -0
  54. package/dist/common/utils/other/index.d.ts +2 -0
  55. package/dist/common/utils/string.utils.d.ts +10 -0
  56. package/dist/common/utils/time.utils.d.ts +13 -0
  57. package/dist/components/app-grid/app-grid.component.d.ts +19 -0
  58. package/dist/components/app-grid/index.d.ts +1 -0
  59. package/dist/components/avatar/avatar-enum.enum.d.ts +10 -0
  60. package/dist/components/avatar/avatar-user-info.element.d.ts +15 -0
  61. package/dist/components/avatar/avatar.element.d.ts +9 -0
  62. package/dist/components/avatar/index.d.ts +3 -0
  63. package/dist/components/avatar-user/avatar-user.component.d.ts +4 -0
  64. package/dist/components/avatar-user/index.d.ts +1 -0
  65. package/dist/components/bell/bell.component.d.ts +4 -0
  66. package/dist/components/bell/index.d.ts +1 -0
  67. package/dist/components/elements/button/button.element.d.ts +10 -0
  68. package/dist/components/elements/button/index.d.ts +1 -0
  69. package/dist/components/elements/icon/icon-button.element.d.ts +10 -0
  70. package/dist/components/elements/icon/icon-content.element.d.ts +15 -0
  71. package/dist/components/elements/icon/icon.element.d.ts +11 -0
  72. package/dist/components/elements/icon/index.d.ts +3 -0
  73. package/dist/components/elements/image/image-content-caption.component.d.ts +14 -0
  74. package/dist/components/elements/image/image-name-time.component.d.ts +9 -0
  75. package/dist/components/elements/image/image.element.d.ts +12 -0
  76. package/dist/components/elements/image/image.enum.d.ts +5 -0
  77. package/dist/components/elements/image/index.d.ts +4 -0
  78. package/dist/components/elements/index.d.ts +7 -0
  79. package/dist/components/elements/radio/index.d.ts +2 -0
  80. package/dist/components/elements/radio/radio-group.element.d.ts +16 -0
  81. package/dist/components/elements/radio/radio.element.d.ts +7 -0
  82. package/dist/components/elements/text-field/index.d.ts +2 -0
  83. package/dist/components/elements/text-field/text-field-label.element.d.ts +9 -0
  84. package/dist/components/elements/text-field/text-field.element.d.ts +13 -0
  85. package/dist/components/elements/tooltip/index.d.ts +1 -0
  86. package/dist/components/elements/tooltip/tooltip-on-click.element.d.ts +7 -0
  87. package/dist/components/elements/typography/index.d.ts +1 -0
  88. package/dist/components/elements/typography/typography-content-caption.component.d.ts +10 -0
  89. package/dist/components/empty/empty.component.d.ts +4 -0
  90. package/dist/components/empty/index.d.ts +1 -0
  91. package/dist/components/index.d.ts +11 -0
  92. package/dist/components/loading/index.d.ts +1 -0
  93. package/dist/components/loading/loading.component.d.ts +8 -0
  94. package/dist/components/logo/index.d.ts +1 -0
  95. package/dist/components/logo/logo.component.d.ts +10 -0
  96. package/dist/components/motion/index.d.ts +1 -0
  97. package/dist/components/motion/motion-box.component.d.ts +14 -0
  98. package/dist/components/styles/index.d.ts +2 -0
  99. package/dist/components/styles/stack.style.d.ts +19 -0
  100. package/dist/components/styles/typography.style.d.ts +1 -0
  101. package/dist/components/time-ago/index.d.ts +2 -0
  102. package/dist/components/time-ago/time-ago-content.component.d.ts +7 -0
  103. package/dist/components/time-ago/time-ago.component.d.ts +6 -0
  104. package/dist/hooks/index.d.ts +5 -0
  105. package/dist/hooks/use-apps.hook.d.ts +11 -0
  106. package/dist/hooks/use-snackbar.hook.d.ts +19 -0
  107. package/dist/hooks/use-tag-selector.hook.d.ts +25 -0
  108. package/dist/hooks/use-update-current-access.hook.d.ts +1 -0
  109. package/dist/hooks/use-version-check.hook.d.ts +3 -0
  110. package/dist/index.cjs.js +32315 -0
  111. package/dist/index.cjs.js.map +1 -0
  112. package/dist/index.d.ts +10 -0
  113. package/dist/index.esm.js +32299 -0
  114. package/dist/index.esm.js.map +1 -0
  115. package/dist/layouts/auth.layout.d.ts +5 -0
  116. package/dist/layouts/dashboard.layout.d.ts +5 -0
  117. package/dist/layouts/default.layout.d.ts +5 -0
  118. package/dist/layouts/index.d.ts +3 -0
  119. package/dist/main.d.ts +0 -0
  120. package/dist/pages/auth/auth.constant.d.ts +35 -0
  121. package/dist/pages/auth/auth.enum.d.ts +6 -0
  122. package/dist/pages/auth/auth.interface.d.ts +7 -0
  123. package/dist/pages/auth/auth.page.d.ts +4 -0
  124. package/dist/pages/auth/index.d.ts +5 -0
  125. package/dist/pages/auth/parts/index.d.ts +1 -0
  126. package/dist/pages/auth/parts/otp/index.d.ts +1 -0
  127. package/dist/pages/auth/parts/otp/otp.part.d.ts +6 -0
  128. package/dist/pages/dashboard/dashboard.page.d.ts +5 -0
  129. package/dist/pages/dashboard/index.d.ts +3 -0
  130. package/dist/pages/dashboard/parts/index.d.ts +1 -0
  131. package/dist/pages/dashboard/parts/monitor.part.d.ts +2 -0
  132. package/dist/pages/dashboard/screen/index.d.ts +1 -0
  133. package/dist/pages/dashboard/screen/system-monitor/index.d.ts +1 -0
  134. package/dist/pages/dashboard/screen/system-monitor/system-monitor.screen.d.ts +2 -0
  135. package/dist/pages/error/error.page.d.ts +4 -0
  136. package/dist/pages/index.d.ts +6 -0
  137. package/dist/pages/not-found/not-found.page.d.ts +4 -0
  138. package/dist/redux/account/account.action.d.ts +22 -0
  139. package/dist/redux/account/account.interface.d.ts +13 -0
  140. package/dist/redux/account/account.slice.d.ts +4 -0
  141. package/dist/redux/account/index.d.ts +5 -0
  142. package/dist/redux/index.d.ts +5 -0
  143. package/dist/redux/slices/index.d.ts +1 -0
  144. package/dist/redux/slices/remaining-weight.slice.d.ts +7 -0
  145. package/dist/redux/store.interface.d.ts +11 -0
  146. package/dist/redux/store.redux.d.ts +15 -0
  147. package/dist/redux/system/index.d.ts +2 -0
  148. package/dist/redux/system/system.action.d.ts +2 -0
  149. package/dist/redux/system/system.interface.d.ts +4 -0
  150. package/dist/redux/system/system.slice.d.ts +4 -0
  151. package/dist/router/index.d.ts +4 -0
  152. package/dist/router/render.route.d.ts +3 -0
  153. package/dist/router/route.constant.d.ts +278 -0
  154. package/dist/router/route.enum.d.ts +4 -0
  155. package/dist/router/route.routes.d.ts +2 -0
  156. package/dist/scripts/generate.script.d.ts +0 -0
  157. package/package.json +5 -5
  158. package/dist/assets/index-Ck8Rqlmw.css +0 -1
  159. package/dist/assets/index-RCni0Nq0.js +0 -1183
  160. package/dist/index.html +0 -21
@@ -0,0 +1,5 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export interface AuthLayoutProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const AuthLayout: React.FC<AuthLayoutProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export interface DashboardLayoutProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const DashboardLayout: React.FC<DashboardLayoutProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export interface DefaultLayoutProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const DefaultLayout: React.FC<DefaultLayoutProps>;
@@ -0,0 +1,3 @@
1
+ export { AuthLayout } from './auth.layout';
2
+ export { DashboardLayout } from './dashboard.layout';
3
+ export { DefaultLayout } from './default.layout';
package/dist/main.d.ts ADDED
File without changes
@@ -0,0 +1,35 @@
1
+ import { AuthProcess } from './auth.enum';
2
+ import * as Yup from 'yup';
3
+ export declare const validationSchema: (authProcess: AuthProcess) => Yup.ObjectSchema<{
4
+ emailOrPhone: string | undefined;
5
+ password: string | undefined;
6
+ phone: string | undefined;
7
+ otp: string | undefined;
8
+ }, Yup.AnyObject, {
9
+ emailOrPhone: undefined;
10
+ password: undefined;
11
+ phone: undefined;
12
+ otp: undefined;
13
+ }, "">;
14
+ export declare const BUTTON_BACK_ICON_CONTENT: {
15
+ LOGIN: {
16
+ button: string;
17
+ backContent: string;
18
+ backIcon: string;
19
+ };
20
+ FORGOT_PASSWORD: {
21
+ button: string;
22
+ backContent: string;
23
+ backIcon: string;
24
+ };
25
+ VERIFY_OTP: {
26
+ button: string;
27
+ backContent: string;
28
+ backIcon: string;
29
+ };
30
+ RESET_PASSWORD: {
31
+ button: string;
32
+ backContent: string;
33
+ backIcon: string;
34
+ };
35
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum AuthProcess {
2
+ LOGIN = "LOGIN",
3
+ FORGOT_PASSWORD = "FORGOT_PASSWORD",
4
+ VERIFY_OTP = "VERIFY_OTP",
5
+ RESET_PASSWORD = "RESET_PASSWORD"
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface AuthDto {
2
+ emailOrPhone: string;
3
+ password: string;
4
+ phone: string;
5
+ token: string;
6
+ otp: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export interface AuthPageProps {
3
+ }
4
+ export declare const AuthPage: React.FC<AuthPageProps>;
@@ -0,0 +1,5 @@
1
+ export { AuthPage } from './auth.page';
2
+ export * from './auth.constant';
3
+ export * from './auth.enum';
4
+ export * from './auth.interface';
5
+ export * from './parts';
@@ -0,0 +1 @@
1
+ export * from './otp';
@@ -0,0 +1 @@
1
+ export { OtpPart } from './otp.part';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { AuthProcess } from '../../auth.enum';
3
+ export interface OtpPartProps {
4
+ setAuthProcess: React.Dispatch<React.SetStateAction<AuthProcess>>;
5
+ }
6
+ export declare const OtpPart: React.FC<OtpPartProps>;
@@ -0,0 +1,5 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export interface DashboardPageProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const DashboardPage: React.FC<DashboardPageProps>;
@@ -0,0 +1,3 @@
1
+ export { DashboardPage } from './dashboard.page';
2
+ export * from './parts';
3
+ export * from './screen';
@@ -0,0 +1 @@
1
+ export { MonitorPart } from './monitor.part';
@@ -0,0 +1,2 @@
1
+ export declare const MonitorPart: React.FC<any>;
2
+ export default MonitorPart;
@@ -0,0 +1 @@
1
+ export * from './system-monitor';
@@ -0,0 +1 @@
1
+ export { SystemMonitorScreen } from './system-monitor.screen';
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const SystemMonitorScreen: React.FC;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export interface ErrorPageProps {
3
+ }
4
+ export declare const ErrorPage: React.FC<ErrorPageProps>;
@@ -0,0 +1,6 @@
1
+ export { AuthPage } from './auth/auth.page';
2
+ export { DashboardPage } from './dashboard/dashboard.page';
3
+ export { ErrorPage } from './error/error.page';
4
+ export { NotFoundPage } from './not-found/not-found.page';
5
+ export * from './auth';
6
+ export * from './dashboard';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export interface NotFoundPageProps {
3
+ }
4
+ export declare const NotFoundPage: React.FC<NotFoundPageProps>;
@@ -0,0 +1,22 @@
1
+ import { LoginDto, LogoutDto, RefreshTokenDto, ResetPasswordDto, SubscribeUnsubscribeTopicDto } from '../../apis/auth/auth.interface';
2
+ import { UpdateAccountDto } from '../../apis/user/user.interface';
3
+ export declare const login: import('@reduxjs/toolkit').AsyncThunk<import('../../apis').ResponseAuth, LoginDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
4
+ export declare const logout: import('@reduxjs/toolkit').AsyncThunk<import('axios').AxiosResponse<any, any, {}>, LogoutDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
5
+ export declare const resetPassword: import('@reduxjs/toolkit').AsyncThunk<import('../../apis').ResponseAuth, ResetPasswordDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
6
+ export declare const refreshToken: import('@reduxjs/toolkit').AsyncThunk<Omit<import('../../apis').ResponseAuth, "user">, RefreshTokenDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
7
+ export declare const subscribeTopic: import('@reduxjs/toolkit').AsyncThunk<{
8
+ fcmToken: string;
9
+ }, SubscribeUnsubscribeTopicDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
10
+ export declare const unsubscribeTopic: import('@reduxjs/toolkit').AsyncThunk<import('axios').AxiosResponse<any, any, {}>, SubscribeUnsubscribeTopicDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
11
+ export declare const changeNotificationCount: import('@reduxjs/toolkit').AsyncThunk<number, number, import('@reduxjs/toolkit').AsyncThunkConfig>;
12
+ export declare const changeSidebarCount: import('@reduxjs/toolkit').AsyncThunk<{
13
+ sidebarPath: string;
14
+ count: number;
15
+ }, {
16
+ sidebarPath: string;
17
+ count: number;
18
+ }, import('@reduxjs/toolkit').AsyncThunkConfig>;
19
+ export declare const updateAccount: import('@reduxjs/toolkit').AsyncThunk<import('../../apis').User, UpdateAccountDto, import('@reduxjs/toolkit').AsyncThunkConfig>;
20
+ export declare const getAccount: import('@reduxjs/toolkit').AsyncThunk<import('../../apis').User, string, import('@reduxjs/toolkit').AsyncThunkConfig>;
21
+ export declare const updatePositionOrgUnit: import('@reduxjs/toolkit').AsyncThunk<string, string, import('@reduxjs/toolkit').AsyncThunkConfig>;
22
+ export declare const updateCurrentAccess: import('@reduxjs/toolkit').AsyncThunk<string, string, import('@reduxjs/toolkit').AsyncThunkConfig>;
@@ -0,0 +1,13 @@
1
+ import { User } from '../../apis/user/user.entities';
2
+ export type CURRENT_ACCESS = "recruitment" | "project" | "propose" | "company-staff";
3
+ export interface GlobalAccountState {
4
+ isLogin: boolean;
5
+ user: User | null;
6
+ accessToken: string;
7
+ refreshToken: string;
8
+ fcmToken: string;
9
+ notificationCount: number;
10
+ userUnitPositionId: string;
11
+ sidebarCountObj: Record<string, number>;
12
+ current_access?: CURRENT_ACCESS | undefined;
13
+ }
@@ -0,0 +1,4 @@
1
+ import { GlobalAccountState } from './account.interface';
2
+ export declare const initialStateAccount: GlobalAccountState;
3
+ export declare const slice: import('@reduxjs/toolkit').Slice<GlobalAccountState, {}, "account", "account", import('@reduxjs/toolkit').SliceSelectors<GlobalAccountState>>;
4
+ export declare const reducerAccount: import('redux').Reducer<GlobalAccountState>;
@@ -0,0 +1,5 @@
1
+ export * from './account.action';
2
+ export * from './account.interface';
3
+ export * from './account.slice';
4
+ import * as accountActions from "./account.action";
5
+ export declare const ACTION_ACCOUNT: typeof accountActions;
@@ -0,0 +1,5 @@
1
+ export type { GlobalReduxState } from './store.interface';
2
+ export { persistor, store } from './store.redux';
3
+ export * from './slices';
4
+ export * from './account';
5
+ export * from './system';
@@ -0,0 +1 @@
1
+ export * from './remaining-weight.slice';
@@ -0,0 +1,7 @@
1
+ export interface RemainingWeightState {
2
+ weight: number;
3
+ }
4
+ export declare const initialStateRemainingWeight: RemainingWeightState;
5
+ export declare const setRemainingWeight: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "remainingWeight/setRemainingWeight">, updateRemainingWeight: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "remainingWeight/updateRemainingWeight">, resetRemainingWeight: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"remainingWeight/resetRemainingWeight">;
6
+ declare const _default: import('redux').Reducer<RemainingWeightState>;
7
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { GlobalAccountState } from './account/account.interface';
2
+ import { GlobalSystemState } from './system/system.interface';
3
+ interface RemainingWeightState {
4
+ weight: number;
5
+ }
6
+ export interface GlobalReduxState {
7
+ account: GlobalAccountState;
8
+ system: GlobalSystemState;
9
+ remainingWeight: RemainingWeightState;
10
+ }
11
+ export {};
@@ -0,0 +1,15 @@
1
+ export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
2
+ system: import('./system').GlobalSystemState;
3
+ account: import('./account').GlobalAccountState;
4
+ remainingWeight: import('./slices/remaining-weight.slice').RemainingWeightState;
5
+ } & import('redux-persist/es/persistReducer').PersistPartial, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
6
+ dispatch: import('redux-thunk').ThunkDispatch<{
7
+ system: import('./system').GlobalSystemState;
8
+ account: import('./account').GlobalAccountState;
9
+ remainingWeight: import('./slices/remaining-weight.slice').RemainingWeightState;
10
+ } & import('redux-persist/es/persistReducer').PersistPartial, undefined, import('redux').UnknownAction>;
11
+ }>, import('redux').StoreEnhancer]>>;
12
+ type AppDispatch = typeof store.dispatch;
13
+ export declare const useAppDispatch: () => AppDispatch;
14
+ export declare const persistor: import('redux-persist').Persistor;
15
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './system.action';
2
+ export * from './system.interface';
@@ -0,0 +1,2 @@
1
+ import { Mode } from '../../common/enums/mode.enum';
2
+ export declare const changeMode: import('@reduxjs/toolkit').AsyncThunk<Mode, Mode, import('@reduxjs/toolkit').AsyncThunkConfig>;
@@ -0,0 +1,4 @@
1
+ import { Mode } from '../../common/enums/mode.enum';
2
+ export interface GlobalSystemState {
3
+ mode: Mode;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { GlobalSystemState } from './system.interface';
2
+ export declare const initialStateSystem: GlobalSystemState;
3
+ export declare const slice: import('@reduxjs/toolkit').Slice<GlobalSystemState, {}, "system", "system", import('@reduxjs/toolkit').SliceSelectors<GlobalSystemState>>;
4
+ export declare const reducerSystem: import('redux').Reducer<GlobalSystemState>;
@@ -0,0 +1,4 @@
1
+ export { renderRoutes } from './render.route';
2
+ export { ALLOW_USER_TYPES, BOOKING_SCREEN, DASHBOARD_SCREEN, DASHBOARD_BASE, PREFIX_WORKFLOW_ENGINE, PAGE, WORKFLOW_ENGINE_SCREEN, WORKFLOW_TRACKING_SCREEN, } from './route.constant';
3
+ export { RouteType } from './route.enum';
4
+ export { routes } from './route.routes';
@@ -0,0 +1,3 @@
1
+ import { Route } from '../common/interfaces/route.interface';
2
+ import { GlobalAccountState } from '../redux/account/account.interface';
3
+ export declare const renderRoutes: (routes: Route[], account: GlobalAccountState) => import("react/jsx-runtime").JSX.Element[];
@@ -0,0 +1,278 @@
1
+ import { UserType } from '../apis/user/user.enum';
2
+ import { RouteConstant } from '../common/interfaces/route.interface';
3
+ import { RouteType } from './route.enum';
4
+ export declare const DASHBOARD_BASE = "/dashboard";
5
+ export declare const PREFIX_WORKFLOW_ENGINE = "/workflow";
6
+ export declare const ALLOW_USER_TYPES: UserType[];
7
+ export declare const PAGE: Record<string, RouteConstant>;
8
+ export declare const DASHBOARD_SCREEN: {
9
+ DASHBOARD: {
10
+ path: string;
11
+ type: RouteType;
12
+ allowUserTypes: UserType[];
13
+ };
14
+ PROJECT_DASHBOARD: {
15
+ path: string;
16
+ type: RouteType;
17
+ allowUserTypes: UserType[];
18
+ };
19
+ JOB_DASHBOARD: {
20
+ path: string;
21
+ type: RouteType;
22
+ allowUserTypes: UserType[];
23
+ };
24
+ PROJECT_TASK_PROCESS: {
25
+ path: string;
26
+ type: RouteType;
27
+ allowUserTypes: UserType[];
28
+ };
29
+ JOB: {
30
+ path: string;
31
+ type: RouteType;
32
+ allowUserTypes: UserType[];
33
+ };
34
+ JOB_RECRUITMENT: {
35
+ path: string;
36
+ type: RouteType;
37
+ allowUserTypes: UserType[];
38
+ };
39
+ JOB_RECRUITMENT_DETAIL: {
40
+ path: string;
41
+ type: RouteType;
42
+ allowUserTypes: UserType[];
43
+ };
44
+ JOB_DETAIL: {
45
+ path: string;
46
+ type: RouteType;
47
+ allowUserTypes: UserType[];
48
+ };
49
+ JOB_TITLE: {
50
+ path: string;
51
+ type: RouteType;
52
+ allowUserTypes: UserType[];
53
+ };
54
+ JOB_BANNER: {
55
+ path: string;
56
+ type: RouteType;
57
+ allowUserTypes: UserType[];
58
+ };
59
+ JOB_SOCIAL: {
60
+ path: string;
61
+ type: RouteType;
62
+ allowUserTypes: UserType[];
63
+ };
64
+ JOB_RECRUITMENT_HISTORY: {
65
+ path: string;
66
+ type: RouteType;
67
+ allowUserTypes: UserType[];
68
+ };
69
+ INDUSTRY: {
70
+ path: string;
71
+ type: RouteType;
72
+ allowUserTypes: UserType[];
73
+ };
74
+ EMAIL_TEMPLATE: {
75
+ path: string;
76
+ type: RouteType;
77
+ allowUserTypes: UserType[];
78
+ };
79
+ FAQ: {
80
+ path: string;
81
+ type: RouteType;
82
+ allowUserTypes: UserType[];
83
+ };
84
+ SALARY: {
85
+ path: string;
86
+ type: RouteType;
87
+ allowUserTypes: UserType[];
88
+ };
89
+ APPLICATION: {
90
+ path: string;
91
+ type: RouteType;
92
+ allowUserTypes: UserType[];
93
+ };
94
+ APPLICATION_OPERATOR: {
95
+ path: string;
96
+ type: RouteType;
97
+ allowUserTypes: UserType[];
98
+ };
99
+ PROJECT_TASK: {
100
+ path: string;
101
+ type: RouteType;
102
+ allowUserTypes: UserType[];
103
+ };
104
+ CREATE_PROJECT: {
105
+ path: string;
106
+ type: RouteType;
107
+ allowUserTypes: UserType[];
108
+ };
109
+ DETAIL_PROJECT: {
110
+ path: string;
111
+ type: RouteType;
112
+ allowUserTypes: UserType[];
113
+ };
114
+ CREATE_TASK: {
115
+ path: string;
116
+ type: RouteType;
117
+ allowUserTypes: UserType[];
118
+ };
119
+ ALL_PROJECT_OF_DIVISION: {
120
+ path: string;
121
+ type: RouteType;
122
+ allowUserTypes: UserType[];
123
+ };
124
+ ORG_UNIT_TREE: {
125
+ path: string;
126
+ type: RouteType;
127
+ allowUserTypes: UserType[];
128
+ };
129
+ ORG_UNIT_RESTORE: {
130
+ path: string;
131
+ type: RouteType;
132
+ allowUserTypes: UserType[];
133
+ };
134
+ ORG_STRUCTURE: {
135
+ path: string;
136
+ type: RouteType;
137
+ allowUserTypes: UserType[];
138
+ };
139
+ POSITION_TREE: {
140
+ path: string;
141
+ type: RouteType;
142
+ allowUserTypes: UserType[];
143
+ };
144
+ POSITION_RESTORE: {
145
+ path: string;
146
+ type: RouteType;
147
+ allowUserTypes: UserType[];
148
+ };
149
+ USER: {
150
+ path: string;
151
+ type: RouteType;
152
+ allowUserTypes: UserType[];
153
+ };
154
+ USER_RESTORE: {
155
+ path: string;
156
+ type: RouteType;
157
+ allowUserTypes: UserType[];
158
+ };
159
+ ACCOUNT: {
160
+ path: string;
161
+ type: RouteType;
162
+ allowUserTypes: UserType[];
163
+ };
164
+ NOTIFICATION: {
165
+ path: string;
166
+ type: RouteType;
167
+ allowUserTypes: UserType[];
168
+ };
169
+ CHECK_IN: {
170
+ path: string;
171
+ type: RouteType;
172
+ allowUserTypes: UserType[];
173
+ };
174
+ PAYROLL: {
175
+ path: string;
176
+ type: RouteType;
177
+ allowUserTypes: UserType[];
178
+ };
179
+ TRAINING: {
180
+ path: string;
181
+ type: RouteType;
182
+ allowUserTypes: UserType[];
183
+ };
184
+ INSIDE: {
185
+ path: string;
186
+ type: RouteType;
187
+ allowUserTypes: UserType[];
188
+ };
189
+ PROPOSAL_SELECTOR: {
190
+ path: string;
191
+ type: RouteType;
192
+ allowUserTypes: UserType[];
193
+ };
194
+ PROPOSAL_WORKFLOW_PROJECT: {
195
+ path: string;
196
+ type: RouteType;
197
+ allowUserTypes: UserType[];
198
+ };
199
+ PROPOSAL_WORKFLOW_JOB: {
200
+ path: string;
201
+ type: RouteType;
202
+ allowUserTypes: UserType[];
203
+ };
204
+ PROPOSAL_WORKFLOW_USER: {
205
+ path: string;
206
+ type: RouteType;
207
+ allowUserTypes: UserType[];
208
+ };
209
+ CHAT: {
210
+ path: string;
211
+ type: RouteType;
212
+ allowUserTypes: UserType[];
213
+ };
214
+ };
215
+ export declare const BOOKING_SCREEN: {
216
+ MEETING_SETTING: {
217
+ path: string;
218
+ };
219
+ };
220
+ export declare const WORKFLOW_ENGINE_SCREEN: {
221
+ PROPOSAL_JOB_RECRUITMENT: {
222
+ path: string;
223
+ type: RouteType;
224
+ allowUserTypes: UserType[];
225
+ };
226
+ PROPOSAL_WORKFLOW: {
227
+ path: string;
228
+ type: RouteType;
229
+ allowUserTypes: UserType[];
230
+ };
231
+ PROPOSAL_PROJECT_TASK: {
232
+ path: string;
233
+ type: RouteType;
234
+ allowUserTypes: UserType[];
235
+ };
236
+ PROPOSAL_USER_TRANSFER: {
237
+ path: string;
238
+ type: RouteType;
239
+ allowUserTypes: UserType[];
240
+ };
241
+ PROPOSAL_USER_APPOINTMENT: {
242
+ path: string;
243
+ type: RouteType;
244
+ allowUserTypes: UserType[];
245
+ };
246
+ PROPOSAL_USER_EXEMPTION: {
247
+ path: string;
248
+ type: RouteType;
249
+ allowUserTypes: UserType[];
250
+ };
251
+ PROPOSAL_USER_WORKFLOW_APPOINTMENT: {
252
+ path: string;
253
+ type: RouteType;
254
+ allowUserTypes: UserType[];
255
+ };
256
+ PROPOSAL_USER_WORKFLOW_TRANSFER: {
257
+ path: string;
258
+ type: RouteType;
259
+ allowUserTypes: UserType[];
260
+ };
261
+ PROPOSAL_USER_WORKFLOW_DEMOTION: {
262
+ path: string;
263
+ type: RouteType;
264
+ allowUserTypes: UserType[];
265
+ };
266
+ };
267
+ export declare const WORKFLOW_TRACKING_SCREEN: {
268
+ MY_TASK: {
269
+ path: string;
270
+ type: RouteType;
271
+ allowUserTypes: UserType[];
272
+ };
273
+ MY_WORK: {
274
+ path: string;
275
+ type: RouteType;
276
+ allowUserTypes: UserType[];
277
+ };
278
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum RouteType {
2
+ PUBLIC = "PUBLIC",
3
+ PROTECTED = "PROTECTED"
4
+ }
@@ -0,0 +1,2 @@
1
+ import { Route } from '../common/interfaces/route.interface';
2
+ export declare const routes: Route[];
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-sso-fe",
3
- "version": "1.0.4",
3
+ "version": "1.0.7",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "dev": "vite",
14
- "build": "tsc && vite build",
14
+ "build": "vite build --mode library",
15
15
  "prepare": "npm run build",
16
16
  "build:lib": "vite build --mode library",
17
17
  "lint": "eslint .",
@@ -29,12 +29,12 @@
29
29
  "license": "MIT",
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": "git+https://github.com/sevago/sso-fe.git"
32
+ "url": "git+https://github.com/dev1-gmail2025/sevago-sso-fe"
33
33
  },
34
34
  "bugs": {
35
- "url": "https://github.com/sevago/sso-fe/issues"
35
+ "url": "https://github.com/dev1-gmail2025/sevago-sso-fe"
36
36
  },
37
- "homepage": "https://github.com/sevago/sso-fe#readme",
37
+ "homepage": "https://github.com/dev1-gmail2025/sevago-sso-fe",
38
38
  "peerDependencies": {
39
39
  "@emotion/react": ">=11",
40
40
  "@emotion/styled": ">=11",
@@ -1 +0,0 @@
1
- :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{--scrollbar-size: 2px;--scrollbar-track: transparent;--scrollbar-thumb: #c1c1c1;--scrollbar-thumb-hover: #9e9e9e}@media (prefers-color-scheme: dark){:root{--scrollbar-thumb: #5a5a5a;--scrollbar-thumb-hover: #787878}}html{overflow-y:scroll;scrollbar-gutter:stable}*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}*::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}*::-webkit-scrollbar-track{background:var(--scrollbar-track)}*::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:9999px;transition:background-color .3s ease}*::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover)}*::-webkit-scrollbar-button{display:none;width:0;height:0}:is(textarea,.MuiInputBase-inputMultiline){overflow:auto}.scroll-x{overflow-x:auto}.scroll-x::-webkit-scrollbar{height:var(--scrollbar-size)!important}.MuiMultiSectionDigitalClock-root,.MuiClock-root{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}.MuiMultiSectionDigitalClock-root::-webkit-scrollbar,.MuiClock-root::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}.MuiMultiSectionDigitalClock-root::-webkit-scrollbar-thumb,.MuiClock-root::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:4px}@font-face{font-family:Inter;src:url(/fonts/Inter-Variable.ttf) format("truetype");font-weight:100 900;font-style:normal;font-display:swap}ul,p{margin:0}input:-webkit-autofill,input:-webkit-autofill:focus{transition:background-color 99999s,color 99999s}input[data-autocompleted]{background:transparent!important}@keyframes loading-gradient-row-table{0%{background-position:0% 50%}to{background-position:100% 50%}}@keyframes zoom-from-right{0%{transform:scale(0);transform-origin:top right;opacity:0}to{transform:scale(1);transform-origin:top right;opacity:1}}.boc-edit-form{width:500px!important}.boc-chart-menu{display:flex!important;background-color:#fff;border-radius:24px!important;min-width:auto!important}.boc-light .boc-chart-menu [data-item]{background-color:#fff;border:none!important;cursor:pointer}.boc-light .boc-chart-menu [data-item][data-item]:hover{background-color:#07554b!important}.boc-chart-menu [data-item]:first-child{border-top-left-radius:24px!important;border-bottom-left-radius:24px;border-top-right-radius:0!important}.boc-chart-menu [data-item]:last-child{border-top-right-radius:24px;border-bottom-right-radius:24px!important;border-bottom-left-radius:0!important}.boc-edit-form-header{background-color:#07554b!important}.tree-node-menu{display:none;animation:zoom-from-right .2s ease-out forwards}.tree-node-icon-menu:hover>.tree-node-menu{display:flex}.tree-node-menu-item:hover{background-color:#eaeaea}.node-button-foreign-object{transform:translateY(9px)}path.link{stroke:#b3b3b3!important;stroke-width:1px!important}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:relative!important;z-index:0!important;box-shadow:none!important}.ck .ck-sticky-panel__placeholder{height:0!important}.custom-node{position:relative;min-width:120px;min-height:80px;max-width:300px}.custom-node .react-flow__handle{width:12px;height:12px;background:#3b82f6;border:2px solid #fff}.react-flow__node{box-shadow:0 2px 6px #0000001f;border-radius:10px;font-size:12px}.dndflow{display:flex;flex-grow:1;height:100%}.dndflow .reactflow-wrapper{flex-grow:1;height:100%}.dndflow aside{border-right:1px solid #eee;padding:15px 10px;font-size:12px;background:#fcfcfc;width:20%;max-width:250px}.dndflow aside .description{margin-bottom:10px}.dndflow .ghostnode{position:fixed;pointer-events:none;width:100px}.dndflow .dndnode:active{cursor:grabbing}