sevago-sso-fe 1.0.15 → 1.0.16

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/index.cjs.js CHANGED
@@ -29327,7 +29327,7 @@ const TypographyFilter = material.styled(material.Typography)(({ theme }) => ({
29327
29327
  textWrap: "nowrap",
29328
29328
  padding: `0px ${STYLE.PADDING_GAP_LAYOUT}`
29329
29329
  }));
29330
- const SidebarPart = ({}) => {
29330
+ const SidebarPart$1 = ({}) => {
29331
29331
  const activeSidebar = useActiveSidebar();
29332
29332
  const { isSidebarOpen, openSidebar, closeSidebar } = useSidebarState();
29333
29333
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -29942,7 +29942,7 @@ const DashboardLayout = ({
29942
29942
  width: "100%"
29943
29943
  },
29944
29944
  children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { p: 0, gap: 0, children: [
29945
- /* @__PURE__ */ jsxRuntime.jsx(SidebarPart, {}),
29945
+ /* @__PURE__ */ jsxRuntime.jsx(SidebarPart$1, {}),
29946
29946
  /* @__PURE__ */ jsxRuntime.jsxs(StackRow, { children: [
29947
29947
  !isChatScreen && /* @__PURE__ */ jsxRuntime.jsx(SidebarLeftPart, { autoCollapse: isChatScreen }),
29948
29948
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -34979,6 +34979,390 @@ const routes = [
34979
34979
  ]
34980
34980
  }
34981
34981
  ];
34982
+ const DASHBOARD_HR_SIDEBAR = [
34983
+ {
34984
+ key: "job-dashboard",
34985
+ title: "Dashboard",
34986
+ caption: "Dashboard",
34987
+ icon: "group_add",
34988
+ path: PAGE.DASHBOARD.path + DASHBOARD_SCREEN.JOB_DASHBOARD.path,
34989
+ category: AppCategory.HRM,
34990
+ allowUserTypes: DASHBOARD_SCREEN.JOB_DASHBOARD.allowUserTypes
34991
+ },
34992
+ {
34993
+ key: "job-list",
34994
+ title: "Tin tuyển dụng",
34995
+ caption: "Tin tuyển dụng",
34996
+ icon: "assignment",
34997
+ path: DASHBOARD_SCREEN.JOB.path,
34998
+ category: AppCategory.HRM,
34999
+ allowUserTypes: DASHBOARD_SCREEN.JOB.allowUserTypes
35000
+ },
35001
+ {
35002
+ key: "job-recruitment",
35003
+ title: "Danh sách đề xuất",
35004
+ caption: "Danh sách đề xuất",
35005
+ icon: "assignment_add",
35006
+ path: PAGE.DASHBOARD.path + DASHBOARD_SCREEN.JOB_RECRUITMENT.path,
35007
+ category: AppCategory.HRM,
35008
+ allowUserTypes: DASHBOARD_SCREEN.JOB_RECRUITMENT.allowUserTypes
35009
+ },
35010
+ {
35011
+ key: "application-office",
35012
+ title: "HSUV Văn Phòng",
35013
+ caption: "HSUV Văn Phòng",
35014
+ icon: "keyboard",
35015
+ path: DASHBOARD_SCREEN.APPLICATION.path,
35016
+ category: AppCategory.HRM,
35017
+ allowUserTypes: DASHBOARD_SCREEN.APPLICATION.allowUserTypes
35018
+ },
35019
+ {
35020
+ key: "application-operator",
35021
+ title: "Hồ sơ Thợ Kim Hoàn",
35022
+ caption: "Hồ sơ Thợ Kim Hoàn",
35023
+ icon: "factory",
35024
+ path: DASHBOARD_SCREEN.APPLICATION_OPERATOR.path,
35025
+ category: AppCategory.HRM,
35026
+ allowUserTypes: DASHBOARD_SCREEN.APPLICATION_OPERATOR.allowUserTypes
35027
+ },
35028
+ {
35029
+ key: "job-social",
35030
+ title: "Mạng xã hội",
35031
+ caption: "Mạng xã hội",
35032
+ icon: "globe_asia",
35033
+ path: DASHBOARD_SCREEN.JOB_SOCIAL.path,
35034
+ category: AppCategory.HRM,
35035
+ allowUserTypes: DASHBOARD_SCREEN.JOB_SOCIAL.allowUserTypes
35036
+ },
35037
+ {
35038
+ key: "job-management",
35039
+ title: "Thiết lập",
35040
+ caption: "Thiết lập",
35041
+ icon: "settings",
35042
+ category: AppCategory.HRM,
35043
+ allowUserTypes: ALLOW_USER_TYPES,
35044
+ type: AppType.EXPAND_MENU,
35045
+ children: [
35046
+ {
35047
+ key: "job-categories",
35048
+ title: "DANH MỤC",
35049
+ caption: "DANH MỤC",
35050
+ icon: "mobile_layout",
35051
+ category: AppCategory.HRM,
35052
+ allowUserTypes: ALLOW_USER_TYPES,
35053
+ children: [
35054
+ {
35055
+ key: "job-title",
35056
+ title: "Chức danh",
35057
+ caption: "Chức danh",
35058
+ icon: "photo_camera_front",
35059
+ path: DASHBOARD_SCREEN.JOB_TITLE.path,
35060
+ category: AppCategory.HRM,
35061
+ allowUserTypes: DASHBOARD_SCREEN.JOB_TITLE.allowUserTypes
35062
+ },
35063
+ {
35064
+ key: "industry",
35065
+ title: "Ngành nghề",
35066
+ caption: "Ngành nghề",
35067
+ icon: "tv_options_input_settings",
35068
+ path: DASHBOARD_SCREEN.INDUSTRY.path,
35069
+ category: AppCategory.HRM,
35070
+ allowUserTypes: DASHBOARD_SCREEN.INDUSTRY.allowUserTypes
35071
+ },
35072
+ {
35073
+ key: "salary",
35074
+ title: "Khung lương",
35075
+ caption: "Khung lương",
35076
+ icon: "attach_money",
35077
+ path: DASHBOARD_SCREEN.SALARY.path,
35078
+ category: AppCategory.HRM,
35079
+ allowUserTypes: DASHBOARD_SCREEN.SALARY.allowUserTypes
35080
+ },
35081
+ {
35082
+ key: "email-template",
35083
+ title: "Mẫu email",
35084
+ caption: "Mẫu email",
35085
+ icon: "Email",
35086
+ path: DASHBOARD_SCREEN.EMAIL_TEMPLATE.path,
35087
+ category: AppCategory.HRM,
35088
+ allowUserTypes: DASHBOARD_SCREEN.EMAIL_TEMPLATE.allowUserTypes
35089
+ },
35090
+ {
35091
+ key: "job-recruitment-history",
35092
+ title: "Lịch sử yêu cầu",
35093
+ caption: "Lịch sử yêu cầu",
35094
+ icon: "history",
35095
+ path: DASHBOARD_SCREEN.JOB_RECRUITMENT_HISTORY.path,
35096
+ category: AppCategory.HRM,
35097
+ allowUserTypes: DASHBOARD_SCREEN.JOB_RECRUITMENT_HISTORY.allowUserTypes
35098
+ }
35099
+ ]
35100
+ },
35101
+ {
35102
+ key: "job-website",
35103
+ title: "Website",
35104
+ caption: "Website",
35105
+ icon: "language",
35106
+ category: AppCategory.HRM,
35107
+ allowUserTypes: DASHBOARD_SCREEN.JOB_BANNER.allowUserTypes,
35108
+ children: [
35109
+ {
35110
+ key: "job-banner",
35111
+ title: "Banner",
35112
+ caption: "Banner",
35113
+ icon: "panorama",
35114
+ path: DASHBOARD_SCREEN.JOB_BANNER.path,
35115
+ category: AppCategory.HRM,
35116
+ allowUserTypes: DASHBOARD_SCREEN.JOB_BANNER.allowUserTypes
35117
+ },
35118
+ {
35119
+ key: "faq",
35120
+ title: "Câu hỏi",
35121
+ caption: "Câu hỏi",
35122
+ icon: "HelpOutline",
35123
+ path: DASHBOARD_SCREEN.FAQ.path,
35124
+ category: AppCategory.HRM,
35125
+ allowUserTypes: DASHBOARD_SCREEN.FAQ.allowUserTypes
35126
+ }
35127
+ ]
35128
+ }
35129
+ ]
35130
+ }
35131
+ ];
35132
+ const DASHBOARD_HRM_SIDEBAR = [
35133
+ {
35134
+ key: "user-management",
35135
+ title: "Nhân sự",
35136
+ caption: "Nhân sự",
35137
+ icon: "PersonOutlined",
35138
+ path: PAGE.DASHBOARD.path + DASHBOARD_SCREEN.USER.path,
35139
+ category: AppCategory.HRM,
35140
+ allowUserTypes: DASHBOARD_SCREEN.USER.allowUserTypes
35141
+ },
35142
+ {
35143
+ key: "user-management-restore",
35144
+ title: "Thiết lập",
35145
+ caption: "Thiết lập",
35146
+ icon: "settings",
35147
+ category: AppCategory.HRM,
35148
+ allowUserTypes: DASHBOARD_SCREEN.SALARY.allowUserTypes,
35149
+ type: AppType.EXPAND_MENU,
35150
+ children: [
35151
+ {
35152
+ key: "user-categories",
35153
+ title: "DANH MỤC",
35154
+ caption: "DANH MỤC",
35155
+ icon: "mobile_layout",
35156
+ category: AppCategory.HRM,
35157
+ allowUserTypes: DASHBOARD_SCREEN.SALARY.allowUserTypes,
35158
+ children: [
35159
+ {
35160
+ key: "user-restore",
35161
+ title: "Khôi phục dữ liệu",
35162
+ caption: "Khôi phục dữ liệu",
35163
+ icon: "restore",
35164
+ path: DASHBOARD_SCREEN.USER_RESTORE.path,
35165
+ category: AppCategory.HRM,
35166
+ allowUserTypes: DASHBOARD_SCREEN.USER_RESTORE.allowUserTypes
35167
+ }
35168
+ ]
35169
+ }
35170
+ ]
35171
+ }
35172
+ ];
35173
+ const DASHBOARD_TREE_SYSTEM_SIDEBAR = [
35174
+ {
35175
+ key: "org-structure",
35176
+ title: "Sơ đồ tổ chức",
35177
+ caption: "Sơ đồ tổ chức",
35178
+ icon: "graph_3",
35179
+ path: PAGE.DASHBOARD.path + DASHBOARD_SCREEN.ORG_STRUCTURE.path,
35180
+ category: AppCategory.HRM,
35181
+ allowUserTypes: DASHBOARD_SCREEN.ORG_STRUCTURE.allowUserTypes
35182
+ },
35183
+ {
35184
+ key: "org-unit",
35185
+ title: "Sơ đồ phòng ban",
35186
+ caption: "Sơ đồ phòng ban",
35187
+ icon: "graph_1",
35188
+ path: DASHBOARD_SCREEN.ORG_UNIT_TREE.path,
35189
+ category: AppCategory.HRM,
35190
+ allowUserTypes: DASHBOARD_SCREEN.ORG_UNIT_TREE.allowUserTypes
35191
+ },
35192
+ {
35193
+ key: "position",
35194
+ title: "Sơ đồ chức vụ",
35195
+ caption: "Sơ đồ chức vụ",
35196
+ icon: "graph_2",
35197
+ path: DASHBOARD_SCREEN.POSITION_TREE.path,
35198
+ category: AppCategory.HRM,
35199
+ allowUserTypes: DASHBOARD_SCREEN.POSITION_TREE.allowUserTypes
35200
+ },
35201
+ {
35202
+ key: "user-title",
35203
+ title: "Danh sách chức danh",
35204
+ caption: "Danh sách chức danh",
35205
+ icon: "group",
35206
+ category: AppCategory.HRM,
35207
+ allowUserTypes: DASHBOARD_SCREEN.POSITION_TREE.allowUserTypes,
35208
+ type: AppType.EXPAND_MENU,
35209
+ children: [
35210
+ {
35211
+ key: "user-titles-restore",
35212
+ title: "DANH MỤC",
35213
+ caption: "DANH MỤC",
35214
+ icon: "mobile_layout",
35215
+ category: AppCategory.HRM,
35216
+ allowUserTypes: DASHBOARD_SCREEN.POSITION_TREE.allowUserTypes,
35217
+ children: [
35218
+ {
35219
+ key: "user-titles",
35220
+ title: "Thiết lập chức danh",
35221
+ caption: "Thiết lập chức danh",
35222
+ icon: "restore",
35223
+ path: DASHBOARD_SCREEN.USER_TITLE.path,
35224
+ category: AppCategory.HRM,
35225
+ allowUserTypes: DASHBOARD_SCREEN.USER_TITLE.allowUserTypes
35226
+ },
35227
+ {
35228
+ key: "user-permissions",
35229
+ title: "Thiết lập phân quyền",
35230
+ caption: "Thiết lập phân quyền",
35231
+ icon: "restore",
35232
+ path: DASHBOARD_SCREEN.USER_UP_PERMISSIONS.path,
35233
+ category: AppCategory.HRM,
35234
+ allowUserTypes: DASHBOARD_SCREEN.USER_UP_PERMISSIONS.allowUserTypes
35235
+ }
35236
+ ]
35237
+ }
35238
+ ]
35239
+ },
35240
+ {
35241
+ key: "management-restore1",
35242
+ title: "Thiết lập",
35243
+ caption: "Thiết lập",
35244
+ icon: "settings",
35245
+ category: AppCategory.HRM,
35246
+ allowUserTypes: DASHBOARD_SCREEN.POSITION_TREE.allowUserTypes,
35247
+ type: AppType.EXPAND_MENU,
35248
+ children: [
35249
+ {
35250
+ key: "org-management-restore",
35251
+ title: "DANH MỤC",
35252
+ caption: "DANH MỤC",
35253
+ icon: "mobile_layout",
35254
+ category: AppCategory.HRM,
35255
+ allowUserTypes: DASHBOARD_SCREEN.POSITION_TREE.allowUserTypes,
35256
+ children: [
35257
+ {
35258
+ key: "org-unit-restore",
35259
+ title: "Khôi phục phòng ban",
35260
+ caption: "Khôi phục phòng ban",
35261
+ icon: "restore",
35262
+ path: DASHBOARD_SCREEN.ORG_UNIT_RESTORE.path,
35263
+ category: AppCategory.HRM,
35264
+ allowUserTypes: DASHBOARD_SCREEN.ORG_UNIT_RESTORE.allowUserTypes
35265
+ },
35266
+ {
35267
+ key: "position-restore",
35268
+ title: "Khôi phục chức vụ",
35269
+ caption: "Khôi phục chức vụ",
35270
+ icon: "restore",
35271
+ path: DASHBOARD_SCREEN.POSITION_RESTORE.path,
35272
+ category: AppCategory.HRM,
35273
+ allowUserTypes: DASHBOARD_SCREEN.POSITION_RESTORE.allowUserTypes
35274
+ }
35275
+ ]
35276
+ }
35277
+ ]
35278
+ }
35279
+ ];
35280
+ const SidebarPart = ({}) => {
35281
+ const activeSidebar = useActiveSidebar();
35282
+ const { isSidebarOpen, openSidebar, closeSidebar } = useSidebarState();
35283
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
35284
+ /* @__PURE__ */ jsxRuntime.jsxs(
35285
+ StackRowJustBetween,
35286
+ {
35287
+ sx: {
35288
+ position: "sticky",
35289
+ top: 0,
35290
+ zIndex: 10,
35291
+ background: "white",
35292
+ padding: STYLE.PADDING_LAYOUT_HEADER,
35293
+ height: STYLE.HEIGHT_HEADER,
35294
+ borderBottom: `1px solid ${STYLE.BORDER_COLOR_LAYOUT}`
35295
+ },
35296
+ children: [
35297
+ /* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { children: [
35298
+ /* @__PURE__ */ jsxRuntime.jsx(
35299
+ ImageElement,
35300
+ {
35301
+ url: "/images/icon-apps-sidebar.svg",
35302
+ onClick: openSidebar,
35303
+ sizeType: ImageSizeType.SQUARE,
35304
+ sx: {
35305
+ width: MAP_SIZE.medium.width,
35306
+ height: MAP_SIZE.medium.height
35307
+ }
35308
+ }
35309
+ ),
35310
+ activeSidebar && /* @__PURE__ */ jsxRuntime.jsxs(
35311
+ material.Stack,
35312
+ {
35313
+ sx: {
35314
+ display: "flex",
35315
+ flexDirection: "row",
35316
+ alignItems: "center",
35317
+ justifyContent: "center",
35318
+ gap: 1
35319
+ },
35320
+ children: [
35321
+ /* @__PURE__ */ jsxRuntime.jsx(
35322
+ material.Box,
35323
+ {
35324
+ sx: {
35325
+ width: MAP_SIZE.large.width,
35326
+ height: MAP_SIZE.large.height,
35327
+ borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
35328
+ display: "flex",
35329
+ alignItems: "center",
35330
+ justifyContent: "center",
35331
+ background: getAppColor(activeSidebar.category)
35332
+ },
35333
+ children: /* @__PURE__ */ jsxRuntime.jsx(
35334
+ ImageElement,
35335
+ {
35336
+ url: activeSidebar.icon,
35337
+ sizeType: ImageSizeType.SQUARE,
35338
+ size: "small",
35339
+ sx: {
35340
+ width: MAP_SIZE.small.width,
35341
+ height: MAP_SIZE.small.height
35342
+ }
35343
+ }
35344
+ )
35345
+ }
35346
+ ),
35347
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "subtitle2", children: [
35348
+ activeSidebar.title,
35349
+ " - ",
35350
+ activeSidebar.caption
35351
+ ] })
35352
+ ]
35353
+ }
35354
+ )
35355
+ ] }),
35356
+ /* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { children: [
35357
+ /* @__PURE__ */ jsxRuntime.jsx(BellComponent, {}),
35358
+ /* @__PURE__ */ jsxRuntime.jsx(AvatarUserComponent, {})
35359
+ ] })
35360
+ ]
35361
+ }
35362
+ ),
35363
+ /* @__PURE__ */ jsxRuntime.jsx(AppsSidebar, { isOpen: isSidebarOpen, onClose: closeSidebar })
35364
+ ] });
35365
+ };
34982
35366
  exports.ALLOW_USER_TYPES = ALLOW_USER_TYPES;
34983
35367
  exports.ANIMATION_TIME = ANIMATION_TIME;
34984
35368
  exports.AppCategory = AppCategory;
@@ -35008,12 +35392,16 @@ exports.BorderLinearProgress = BorderLinearProgress;
35008
35392
  exports.ButtonElement = ButtonElement;
35009
35393
  exports.Country = Country;
35010
35394
  exports.DASHBOARD_BASE = DASHBOARD_BASE;
35395
+ exports.DASHBOARD_HRM_SIDEBAR = DASHBOARD_HRM_SIDEBAR;
35396
+ exports.DASHBOARD_HR_SIDEBAR = DASHBOARD_HR_SIDEBAR;
35011
35397
  exports.DASHBOARD_SCREEN = DASHBOARD_SCREEN;
35398
+ exports.DASHBOARD_TREE_SYSTEM_SIDEBAR = DASHBOARD_TREE_SYSTEM_SIDEBAR;
35012
35399
  exports.DashboardLayout = DashboardLayout;
35013
35400
  exports.DashboardPage = DashboardPage;
35014
35401
  exports.DefaultLayout = DefaultLayout;
35015
35402
  exports.EmptyComponent = EmptyComponent;
35016
35403
  exports.ErrorPage = ErrorPage;
35404
+ exports.ExpandMenuItem = ExpandMenuItem;
35017
35405
  exports.FONT_SIZE_ICON = FONT_SIZE_ICON;
35018
35406
  exports.FONT_SIZE_LOADING = FONT_SIZE_LOADING;
35019
35407
  exports.FileTypeEnum = FileTypeEnum;
@@ -35032,6 +35420,7 @@ exports.LogoComponent = LogoComponent;
35032
35420
  exports.LogoutType = LogoutType;
35033
35421
  exports.MAP_SIZE = MAP_SIZE;
35034
35422
  exports.MODE = MODE;
35423
+ exports.MenuItem = MenuItem;
35035
35424
  exports.Mode = Mode;
35036
35425
  exports.MonitorPart = MonitorPart;
35037
35426
  exports.MotionBox = MotionBox;
@@ -35062,6 +35451,10 @@ exports.SCALE_VALUE = SCALE_VALUE;
35062
35451
  exports.STYLE = STYLE;
35063
35452
  exports.SYSTEM_MODULES = SYSTEM_MODULES;
35064
35453
  exports.SidebarContext = SidebarContext;
35454
+ exports.SidebarLeftPart = SidebarLeftPart;
35455
+ exports.SidebarMenu = SidebarMenu;
35456
+ exports.SidebarMenuExpand = SidebarMenuExpand;
35457
+ exports.SidebarPart = SidebarPart;
35065
35458
  exports.SidebarProvider = SidebarProvider;
35066
35459
  exports.SmallIcon = SmallIcon;
35067
35460
  exports.SnackbarProvider = SnackbarProvider;
@@ -35088,6 +35481,7 @@ exports.StackWrap = StackWrap;
35088
35481
  exports.StatusAvatar = StatusAvatar;
35089
35482
  exports.StyledTableCell = StyledTableCell;
35090
35483
  exports.SubManagerStatus = SubManagerStatus;
35484
+ exports.SubmenuList = SubmenuList;
35091
35485
  exports.SystemMonitorScreen = SystemMonitorScreen;
35092
35486
  exports.TEXT_FIELD = TEXT_FIELD;
35093
35487
  exports.TRANSITION_TIME = TRANSITION_TIME;
@@ -35170,6 +35564,7 @@ exports.light = light$1;
35170
35564
  exports.lightenColor = lightenColor;
35171
35565
  exports.login = login$1;
35172
35566
  exports.logout = logout$1;
35567
+ exports.menuItemStyles = menuItemStyles;
35173
35568
  exports.messaging = messaging;
35174
35569
  exports.notificationApi = notificationApi;
35175
35570
  exports.persistor = persistor;