sevago-sso-fe 1.0.92 → 1.0.101

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.esm.js CHANGED
@@ -368,6 +368,71 @@ const APP_OBJ = {
368
368
  "Khác"
369
369
  /* OTHER */
370
370
  ]
371
+ },
372
+ // HRM
373
+ TIMEKEEPING: {
374
+ path: {
375
+ local: "http://localhost:3000/dashboard/simple-dashboard",
376
+ develop: "https://dev.hrm-client.sevago.local/dashboard/simple-dashboard",
377
+ staging: "",
378
+ production: "",
379
+ production_vps: ""
380
+ },
381
+ icon: sevagoIcon,
382
+ content: "Chấm công",
383
+ group: "HRM",
384
+ color: APP_GROUP_COLOR[
385
+ "HRM"
386
+ /* HRM */
387
+ ]
388
+ },
389
+ SALARY_CALCULATION: {
390
+ path: {
391
+ local: "http://localhost:3000/dashboard/payroll-period",
392
+ develop: "https://dev.hrm-client.sevago.local/dashboard/payroll-period",
393
+ staging: "",
394
+ production: "",
395
+ production_vps: ""
396
+ },
397
+ icon: sevagoIcon,
398
+ content: "Tính lương",
399
+ group: "HRM",
400
+ color: APP_GROUP_COLOR[
401
+ "HRM"
402
+ /* HRM */
403
+ ]
404
+ },
405
+ ORDER_MEAL: {
406
+ path: {
407
+ local: "http://localhost:3000/dashboard/meal-dashboard",
408
+ develop: "https://dev.hrm-client.sevago.local/dashboard/meal-dashboard",
409
+ staging: "",
410
+ production: "",
411
+ production_vps: ""
412
+ },
413
+ icon: sevagoIcon,
414
+ content: "Đặt cơm",
415
+ group: "HRM",
416
+ color: APP_GROUP_COLOR[
417
+ "HRM"
418
+ /* HRM */
419
+ ]
420
+ },
421
+ LEAVE_POLICY: {
422
+ path: {
423
+ local: "http://localhost:3000/dashboard/maternity-leave",
424
+ develop: "https://dev.hrm-client.sevago.local/dashboard/maternity-leave",
425
+ staging: "",
426
+ production: "",
427
+ production_vps: ""
428
+ },
429
+ icon: sevagoIcon,
430
+ content: "Chế độ nghỉ phép",
431
+ group: "HRM",
432
+ color: APP_GROUP_COLOR[
433
+ "HRM"
434
+ /* HRM */
435
+ ]
371
436
  }
372
437
  };
373
438
  const SIZE_LARGE = 32;
@@ -7086,9 +7151,12 @@ const LinkWrapProductRow = styled$3(LinkElement)(({ theme }) => ({
7086
7151
  gap: PADDING_GAP_ITEM,
7087
7152
  backgroundColor: theme.palette.background.default
7088
7153
  }));
7089
- const lightenColor = (hex, percent) => {
7154
+ const lightenColor = (hex, percent = 0) => {
7155
+ if (!hex || !/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(hex)) {
7156
+ return COLOR_CONSTANT.white;
7157
+ }
7090
7158
  let r, g, b;
7091
- if (hex?.length === 7) {
7159
+ if (hex.length === 7) {
7092
7160
  r = parseInt(hex.slice(1, 3), 16);
7093
7161
  g = parseInt(hex.slice(3, 5), 16);
7094
7162
  b = parseInt(hex.slice(5, 7), 16);