sevago-library 1.3.5 → 1.3.6

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # sevago-library
2
2
 
3
+ ## 1.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: update app group classifications and improve UI elements
8
+
3
9
  ## 1.3.5
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -54,12 +54,12 @@ var SizeProps = /* @__PURE__ */ ((SizeProps2) => {
54
54
  var AppGroup = /* @__PURE__ */ ((AppGroup2) => {
55
55
  AppGroup2["ALL"] = "All";
56
56
  AppGroup2["HRM"] = "HRM";
57
- AppGroup2["MANUFACTURING"] = "Sản xuất";
58
- AppGroup2["WORKFLOW_ENGINE"] = "Workflow Engine";
59
- AppGroup2["PLATFORM_AND_INFO"] = "Platform & Info";
60
- AppGroup2["B2B"] = "B2B";
61
- AppGroup2["OTHER"] = "Khác";
62
- AppGroup2["CLIENT"] = "Web";
57
+ AppGroup2["WORKFLOW_ENGINE"] = "WORKFLOW ENGINE";
58
+ AppGroup2["PLATFORM_AND_INFO"] = "PLATFORM & INFO";
59
+ AppGroup2["MANUFACTURING"] = "Vận Hành Sản xuất";
60
+ AppGroup2["B2B"] = "Bán hàng & Sản Phẩm";
61
+ AppGroup2["OTHER"] = "OTHER";
62
+ AppGroup2["CLIENT"] = "WEB";
63
63
  return AppGroup2;
64
64
  })(AppGroup || {});
65
65
  const GROUP_ICONS = {
@@ -72,27 +72,27 @@ const GROUP_ICONS = {
72
72
  /* HRM */
73
73
  ]: "person",
74
74
  [
75
- "Sản xuất"
75
+ "Vận Hành Sản xuất"
76
76
  /* MANUFACTURING */
77
77
  ]: "precision_manufacturing",
78
78
  [
79
- "Workflow Engine"
79
+ "WORKFLOW ENGINE"
80
80
  /* WORKFLOW_ENGINE */
81
81
  ]: "settings",
82
82
  [
83
- "Platform & Info"
83
+ "PLATFORM & INFO"
84
84
  /* PLATFORM_AND_INFO */
85
85
  ]: "folder_info",
86
86
  [
87
- "B2B"
87
+ "Bán hàng & Sản Phẩm"
88
88
  /* B2B */
89
89
  ]: "business_center",
90
90
  [
91
- "Khác"
91
+ "OTHER"
92
92
  /* OTHER */
93
93
  ]: "category",
94
94
  [
95
- "Web"
95
+ "WEB"
96
96
  /* CLIENT */
97
97
  ]: "language"
98
98
  };
@@ -240,7 +240,7 @@ const APP_OBJ = {
240
240
  group: AppGroup.OTHER,
241
241
  color: APP_GROUP_COLOR[AppGroup.OTHER]
242
242
  },
243
- // HRM
243
+ // HRM //4168
244
244
  E_HIRING: {
245
245
  path: {
246
246
  local: "http://localhost:12003/e-hiring",
@@ -278,7 +278,7 @@ const APP_OBJ = {
278
278
  production_vps: "https://admin.office.sevago.com.vn/org"
279
279
  },
280
280
  icon: ICONS.iconOfficeOrg,
281
- content: "Tổ chức",
281
+ content: "Sơ Đồ Tổ chức",
282
282
  title: "Sevago Organization",
283
283
  group: AppGroup.HRM,
284
284
  color: APP_GROUP_COLOR[AppGroup.HRM]
@@ -295,7 +295,7 @@ const APP_OBJ = {
295
295
  icon: ICONS.iconOfficeChat,
296
296
  content: "Chat nhóm",
297
297
  title: "Sevago Mesage",
298
- group: AppGroup.PLATFORM_AND_INFO,
298
+ group: AppGroup.WORKFLOW_ENGINE,
299
299
  color: APP_GROUP_COLOR[AppGroup.PLATFORM_AND_INFO]
300
300
  },
301
301
  TRAINING: {
@@ -437,7 +437,7 @@ const APP_OBJ = {
437
437
  icon: ICONS.iconFormulaPrice,
438
438
  content: "Tính giá",
439
439
  title: "Sevago Cost",
440
- group: AppGroup.B2B,
440
+ group: AppGroup.MANUFACTURING,
441
441
  color: APP_GROUP_COLOR[AppGroup.B2B]
442
442
  },
443
443
  E_CATALOGUE: {
@@ -506,7 +506,7 @@ const APP_OBJ = {
506
506
  icon: ICONS.iconPayrollTimekeepingMealMealManagement,
507
507
  content: "Đặt cơm",
508
508
  title: "Sevago Meal",
509
- group: AppGroup.HRM,
509
+ group: AppGroup.PLATFORM_AND_INFO,
510
510
  color: APP_GROUP_COLOR[AppGroup.HRM]
511
511
  },
512
512
  LEAVE: {
@@ -519,7 +519,7 @@ const APP_OBJ = {
519
519
  },
520
520
  icon: ICONS.iconDefault,
521
521
  content: "Nghỉ phép",
522
- group: AppGroup.HRM,
522
+ group: AppGroup.OTHER,
523
523
  color: APP_GROUP_COLOR[AppGroup.HRM]
524
524
  },
525
525
  // MANUFACTURING
@@ -636,7 +636,7 @@ const APP_OBJ = {
636
636
  icon: ICONS.iconProductManagement,
637
637
  content: "Quản lý sản phẩm",
638
638
  title: "Sevago Product",
639
- group: AppGroup.MANUFACTURING,
639
+ group: AppGroup.B2B,
640
640
  color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
641
641
  },
642
642
  QUALITY_MANAGEMENT: {
@@ -648,7 +648,7 @@ const APP_OBJ = {
648
648
  production_vps: ""
649
649
  },
650
650
  icon: ICONS.iconQualityManagement,
651
- content: "Quản lý chất lượng & Thành phẩm",
651
+ content: "Quản lý chất lượng",
652
652
  title: "Sevago Quality",
653
653
  group: AppGroup.MANUFACTURING,
654
654
  color: APP_GROUP_COLOR[AppGroup.MANUFACTURING]
@@ -77346,8 +77346,8 @@ const AppGridItem = ({
77346
77346
  }) => {
77347
77347
  return /* @__PURE__ */ jsxRuntime.jsxs(StackAlignCenterJustCenter, { sx: { gap: PADDING_GAP_ITEM_SMALL }, children: [
77348
77348
  showIconApps && /* @__PURE__ */ jsxRuntime.jsx(ImageElement, { sx: { width: iconSize, height: iconSize }, url: app.icon, sizeType: "SQUARE" }),
77349
- showTitleApps && /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.xs.semiBold }, children: app.title }),
77350
- showNameApps && /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textLg.regular }, children: app.content })
77349
+ showTitleApps && /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textMd.semiBold }, children: app.title }),
77350
+ showNameApps && /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { color: titleColor, textAlign: "center", ...TYPOGRAPHY.textMd.regular }, children: app.content })
77351
77351
  ] });
77352
77352
  };
77353
77353
  const AppGrid = ({
@@ -77376,16 +77376,7 @@ const AppGrid = ({
77376
77376
  const placeholderHeight = isShowAppHidden ? iconSize + 36.5 : 0;
77377
77377
  return /* @__PURE__ */ jsxRuntime.jsxs(StackAlignCenter, { sx: { width: "100%", gap: 3 }, children: [
77378
77378
  /* @__PURE__ */ jsxRuntime.jsxs(StackRowAlignCenter, { sx: { width: "100%", gap: 3 }, children: [
77379
- showPagination && /* @__PURE__ */ jsxRuntime.jsx(
77380
- IconElement,
77381
- {
77382
- icon: "arrow_back",
77383
- size: "large",
77384
- onClick: () => setPage((p) => Math.max(0, p - 1)),
77385
- disabled: apps.length < pageSize2 || page !== totalPages - 1,
77386
- sx: { color: `${GRAY[300]} !important` }
77387
- }
77388
- ),
77379
+ /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}),
77389
77380
  /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { sx: { display: "grid", gridTemplateColumns: `repeat(${columns}, 1fr)`, width: "100%" }, children: [
77390
77381
  visibleApps.map((app, index) => {
77391
77382
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -77422,17 +77413,7 @@ const AppGrid = ({
77422
77413
  },
77423
77414
  `placeholder-${fillerIndex}`
77424
77415
  ))
77425
- ] }),
77426
- showPagination && /* @__PURE__ */ jsxRuntime.jsx(
77427
- IconElement,
77428
- {
77429
- icon: "arrow_forward",
77430
- size: "large",
77431
- onClick: () => setPage((p) => Math.min(totalPages - 1, p + 1)),
77432
- disabled: apps.length < pageSize2 || page === totalPages - 1,
77433
- sx: { color: `${GRAY[300]} !important` }
77434
- }
77435
- )
77416
+ ] })
77436
77417
  ] }),
77437
77418
  showPagination && totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsx(
77438
77419
  StackRowAlignCenter,
@@ -78423,7 +78404,7 @@ const SystemMonitorScreen = ({
78423
78404
  apps: appsByGroup,
78424
78405
  columns: 5,
78425
78406
  rows: 2,
78426
- iconSize: 64,
78407
+ iconSize: 120,
78427
78408
  iconRadius: 7,
78428
78409
  onClickApp,
78429
78410
  isShowAppHidden: true