sevago-library 1.3.5 → 1.3.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.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +30 -47
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -47
- package/dist/index.esm.js.map +1 -1
- package/dist/src/common/const/apps.const.d.ts +6 -6
- package/dist/src/common/enums/other.enum.d.ts +6 -6
- package/dist/src/components/sidebar/system-monitor-sidebar.part.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -36,12 +36,12 @@ var SizeProps = /* @__PURE__ */ ((SizeProps2) => {
|
|
|
36
36
|
var AppGroup = /* @__PURE__ */ ((AppGroup2) => {
|
|
37
37
|
AppGroup2["ALL"] = "All";
|
|
38
38
|
AppGroup2["HRM"] = "HRM";
|
|
39
|
-
AppGroup2["
|
|
40
|
-
AppGroup2["
|
|
41
|
-
AppGroup2["
|
|
42
|
-
AppGroup2["B2B"] = "
|
|
43
|
-
AppGroup2["OTHER"] = "
|
|
44
|
-
AppGroup2["CLIENT"] = "
|
|
39
|
+
AppGroup2["WORKFLOW_ENGINE"] = "WORKFLOW ENGINE";
|
|
40
|
+
AppGroup2["PLATFORM_AND_INFO"] = "PLATFORM & INFO";
|
|
41
|
+
AppGroup2["MANUFACTURING"] = "Vận Hành Sản xuất";
|
|
42
|
+
AppGroup2["B2B"] = "Bán hàng & Sản Phẩm";
|
|
43
|
+
AppGroup2["OTHER"] = "OTHER";
|
|
44
|
+
AppGroup2["CLIENT"] = "WEB";
|
|
45
45
|
return AppGroup2;
|
|
46
46
|
})(AppGroup || {});
|
|
47
47
|
const GROUP_ICONS = {
|
|
@@ -54,27 +54,27 @@ const GROUP_ICONS = {
|
|
|
54
54
|
/* HRM */
|
|
55
55
|
]: "person",
|
|
56
56
|
[
|
|
57
|
-
"Sản xuất"
|
|
57
|
+
"Vận Hành Sản xuất"
|
|
58
58
|
/* MANUFACTURING */
|
|
59
59
|
]: "precision_manufacturing",
|
|
60
60
|
[
|
|
61
|
-
"
|
|
61
|
+
"WORKFLOW ENGINE"
|
|
62
62
|
/* WORKFLOW_ENGINE */
|
|
63
63
|
]: "settings",
|
|
64
64
|
[
|
|
65
|
-
"
|
|
65
|
+
"PLATFORM & INFO"
|
|
66
66
|
/* PLATFORM_AND_INFO */
|
|
67
67
|
]: "folder_info",
|
|
68
68
|
[
|
|
69
|
-
"
|
|
69
|
+
"Bán hàng & Sản Phẩm"
|
|
70
70
|
/* B2B */
|
|
71
71
|
]: "business_center",
|
|
72
72
|
[
|
|
73
|
-
"
|
|
73
|
+
"OTHER"
|
|
74
74
|
/* OTHER */
|
|
75
75
|
]: "category",
|
|
76
76
|
[
|
|
77
|
-
"
|
|
77
|
+
"WEB"
|
|
78
78
|
/* CLIENT */
|
|
79
79
|
]: "language"
|
|
80
80
|
};
|
|
@@ -222,7 +222,7 @@ const APP_OBJ = {
|
|
|
222
222
|
group: AppGroup.OTHER,
|
|
223
223
|
color: APP_GROUP_COLOR[AppGroup.OTHER]
|
|
224
224
|
},
|
|
225
|
-
// HRM
|
|
225
|
+
// HRM //4168
|
|
226
226
|
E_HIRING: {
|
|
227
227
|
path: {
|
|
228
228
|
local: "http://localhost:12003/e-hiring",
|
|
@@ -260,7 +260,7 @@ const APP_OBJ = {
|
|
|
260
260
|
production_vps: "https://admin.office.sevago.com.vn/org"
|
|
261
261
|
},
|
|
262
262
|
icon: ICONS.iconOfficeOrg,
|
|
263
|
-
content: "Tổ chức",
|
|
263
|
+
content: "Sơ Đồ Tổ chức",
|
|
264
264
|
title: "Sevago Organization",
|
|
265
265
|
group: AppGroup.HRM,
|
|
266
266
|
color: APP_GROUP_COLOR[AppGroup.HRM]
|
|
@@ -277,7 +277,7 @@ const APP_OBJ = {
|
|
|
277
277
|
icon: ICONS.iconOfficeChat,
|
|
278
278
|
content: "Chat nhóm",
|
|
279
279
|
title: "Sevago Mesage",
|
|
280
|
-
group: AppGroup.
|
|
280
|
+
group: AppGroup.WORKFLOW_ENGINE,
|
|
281
281
|
color: APP_GROUP_COLOR[AppGroup.PLATFORM_AND_INFO]
|
|
282
282
|
},
|
|
283
283
|
TRAINING: {
|
|
@@ -419,7 +419,7 @@ const APP_OBJ = {
|
|
|
419
419
|
icon: ICONS.iconFormulaPrice,
|
|
420
420
|
content: "Tính giá",
|
|
421
421
|
title: "Sevago Cost",
|
|
422
|
-
group: AppGroup.
|
|
422
|
+
group: AppGroup.MANUFACTURING,
|
|
423
423
|
color: APP_GROUP_COLOR[AppGroup.B2B]
|
|
424
424
|
},
|
|
425
425
|
E_CATALOGUE: {
|
|
@@ -488,7 +488,7 @@ const APP_OBJ = {
|
|
|
488
488
|
icon: ICONS.iconPayrollTimekeepingMealMealManagement,
|
|
489
489
|
content: "Đặt cơm",
|
|
490
490
|
title: "Sevago Meal",
|
|
491
|
-
group: AppGroup.
|
|
491
|
+
group: AppGroup.PLATFORM_AND_INFO,
|
|
492
492
|
color: APP_GROUP_COLOR[AppGroup.HRM]
|
|
493
493
|
},
|
|
494
494
|
LEAVE: {
|
|
@@ -501,7 +501,7 @@ const APP_OBJ = {
|
|
|
501
501
|
},
|
|
502
502
|
icon: ICONS.iconDefault,
|
|
503
503
|
content: "Nghỉ phép",
|
|
504
|
-
group: AppGroup.
|
|
504
|
+
group: AppGroup.OTHER,
|
|
505
505
|
color: APP_GROUP_COLOR[AppGroup.HRM]
|
|
506
506
|
},
|
|
507
507
|
// MANUFACTURING
|
|
@@ -618,7 +618,7 @@ const APP_OBJ = {
|
|
|
618
618
|
icon: ICONS.iconProductManagement,
|
|
619
619
|
content: "Quản lý sản phẩm",
|
|
620
620
|
title: "Sevago Product",
|
|
621
|
-
group: AppGroup.
|
|
621
|
+
group: AppGroup.B2B,
|
|
622
622
|
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
623
623
|
},
|
|
624
624
|
QUALITY_MANAGEMENT: {
|
|
@@ -630,7 +630,7 @@ const APP_OBJ = {
|
|
|
630
630
|
production_vps: ""
|
|
631
631
|
},
|
|
632
632
|
icon: ICONS.iconQualityManagement,
|
|
633
|
-
content: "Quản lý chất lượng
|
|
633
|
+
content: "Quản lý chất lượng",
|
|
634
634
|
title: "Sevago Quality",
|
|
635
635
|
group: AppGroup.MANUFACTURING,
|
|
636
636
|
color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
|
|
@@ -77326,10 +77326,10 @@ const AppGridItem = ({
|
|
|
77326
77326
|
showTitleApps = true,
|
|
77327
77327
|
direction = "column"
|
|
77328
77328
|
}) => {
|
|
77329
|
-
return /* @__PURE__ */ jsxs(
|
|
77329
|
+
return /* @__PURE__ */ jsxs(StackRowAlignCenterJustCenter, { sx: { flexDirection: direction, gap: PADDING_GAP_ITEM }, children: [
|
|
77330
77330
|
showIconApps && /* @__PURE__ */ jsx(ImageElement, { sx: { width: iconSize, height: iconSize }, url: app.icon, sizeType: "SQUARE" }),
|
|
77331
|
-
showTitleApps && /* @__PURE__ */ jsx(Typography$1, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.
|
|
77332
|
-
showNameApps && /* @__PURE__ */ jsx(Typography$1, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.
|
|
77331
|
+
showTitleApps && /* @__PURE__ */ jsx(Typography$1, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textMd.semiBold }, children: app.title }),
|
|
77332
|
+
showNameApps && /* @__PURE__ */ jsx(Typography$1, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textMd.regular }, children: app.content })
|
|
77333
77333
|
] });
|
|
77334
77334
|
};
|
|
77335
77335
|
const AppGrid = ({
|
|
@@ -77358,16 +77358,7 @@ const AppGrid = ({
|
|
|
77358
77358
|
const placeholderHeight = isShowAppHidden ? iconSize + 36.5 : 0;
|
|
77359
77359
|
return /* @__PURE__ */ jsxs(StackAlignCenter, { sx: { width: "100%", gap: 3 }, children: [
|
|
77360
77360
|
/* @__PURE__ */ jsxs(StackRowAlignCenter, { sx: { width: "100%", gap: 3 }, children: [
|
|
77361
|
-
|
|
77362
|
-
IconElement,
|
|
77363
|
-
{
|
|
77364
|
-
icon: "arrow_back",
|
|
77365
|
-
size: "large",
|
|
77366
|
-
onClick: () => setPage((p) => Math.max(0, p - 1)),
|
|
77367
|
-
disabled: apps.length < pageSize2 || page !== totalPages - 1,
|
|
77368
|
-
sx: { color: `${GRAY[300]} !important` }
|
|
77369
|
-
}
|
|
77370
|
-
),
|
|
77361
|
+
/* @__PURE__ */ jsx(Fragment, {}),
|
|
77371
77362
|
/* @__PURE__ */ jsxs(Stack, { sx: { display: "grid", gridTemplateColumns: `repeat(${columns}, 1fr)`, width: "100%" }, children: [
|
|
77372
77363
|
visibleApps.map((app, index) => {
|
|
77373
77364
|
return /* @__PURE__ */ jsx(
|
|
@@ -77404,17 +77395,7 @@ const AppGrid = ({
|
|
|
77404
77395
|
},
|
|
77405
77396
|
`placeholder-${fillerIndex}`
|
|
77406
77397
|
))
|
|
77407
|
-
] })
|
|
77408
|
-
showPagination && /* @__PURE__ */ jsx(
|
|
77409
|
-
IconElement,
|
|
77410
|
-
{
|
|
77411
|
-
icon: "arrow_forward",
|
|
77412
|
-
size: "large",
|
|
77413
|
-
onClick: () => setPage((p) => Math.min(totalPages - 1, p + 1)),
|
|
77414
|
-
disabled: apps.length < pageSize2 || page === totalPages - 1,
|
|
77415
|
-
sx: { color: `${GRAY[300]} !important` }
|
|
77416
|
-
}
|
|
77417
|
-
)
|
|
77398
|
+
] })
|
|
77418
77399
|
] }),
|
|
77419
77400
|
showPagination && totalPages > 1 && /* @__PURE__ */ jsx(
|
|
77420
77401
|
StackRowAlignCenter,
|
|
@@ -78266,6 +78247,7 @@ const SystemMonitorSidebarPart = ({
|
|
|
78266
78247
|
onClickApp,
|
|
78267
78248
|
showNameApps,
|
|
78268
78249
|
showIconApps,
|
|
78250
|
+
showTitleApps,
|
|
78269
78251
|
direction = "row",
|
|
78270
78252
|
isLongSubDomain = false
|
|
78271
78253
|
}) => {
|
|
@@ -78279,10 +78261,11 @@ const SystemMonitorSidebarPart = ({
|
|
|
78279
78261
|
AppGridItem,
|
|
78280
78262
|
{
|
|
78281
78263
|
app,
|
|
78282
|
-
iconSize:
|
|
78264
|
+
iconSize: 45,
|
|
78283
78265
|
iconRadius: 3,
|
|
78284
78266
|
showNameApps,
|
|
78285
78267
|
showIconApps,
|
|
78268
|
+
showTitleApps,
|
|
78286
78269
|
direction
|
|
78287
78270
|
}
|
|
78288
78271
|
),
|
|
@@ -78404,8 +78387,8 @@ const SystemMonitorScreen = ({
|
|
|
78404
78387
|
{
|
|
78405
78388
|
apps: appsByGroup,
|
|
78406
78389
|
columns: 5,
|
|
78407
|
-
rows:
|
|
78408
|
-
iconSize:
|
|
78390
|
+
rows: 3,
|
|
78391
|
+
iconSize: 120,
|
|
78409
78392
|
iconRadius: 7,
|
|
78410
78393
|
onClickApp,
|
|
78411
78394
|
isShowAppHidden: true
|