@finema/finework-layer 1.0.26 → 1.0.28

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.28](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.27...1.0.28) (2026-04-01)
4
+
5
+ ### Bug Fixes
6
+
7
+ * update sidebar width and padding, modify request and resource app statuses in PortalApp ([a8a0c8b](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/a8a0c8b55e61a3cff72854fed3f4e7cf56632a25))
8
+
9
+ ## [1.0.27](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.26...1.0.27) (2026-03-31)
10
+
11
+ ### Bug Fixes
12
+
13
+ * update resource route and permissions in PortalApp and useAuth ([256b442](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/256b4428f9817f2d50c435048349d9054ac929a6))
14
+
3
15
  ## [1.0.26](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.25...1.0.26) (2026-03-27)
4
16
 
5
17
  ### Bug Fixes
@@ -12,7 +12,7 @@
12
12
  'flex h-[72px] items-center max-sm:pr-5',
13
13
  {
14
14
  'justify-center': isCollapsed,
15
- 'w-[260px] justify-between pl-5': !isCollapsed,
15
+ 'w-[280px] justify-between pl-5': !isCollapsed,
16
16
  },
17
17
  ]"
18
18
  >
@@ -46,7 +46,7 @@
46
46
  />
47
47
  </div>
48
48
 
49
- <div class="flex-1 overflow-y-auto border-r border-gray-200 p-4">
49
+ <div class="flex-1 overflow-y-auto border-r border-gray-200 px-2 py-4">
50
50
  <div
51
51
  v-if="isGroup"
52
52
  class="space-y-5"
@@ -332,8 +332,8 @@ const dailyApps = computed(() => [
332
332
  logo: '/admin/request.png',
333
333
  label: 'Request',
334
334
  description: 'ระบบขอ ลา เบิก อนุมัติรายการต่างๆ',
335
- to: routes.request.myRequest.to,
336
- status: StatusPortal.ACTIVE,
335
+ to: routes.request.myRequest.requests.to,
336
+ status: StatusPortal.DEVELOPING,
337
337
  },
338
338
  ])
339
339
 
@@ -485,6 +485,18 @@ const peopleApps = computed(() => [
485
485
  },
486
486
  ]
487
487
  : []),
488
+ ...(auth.hasPermission(UserModule.RESOURCE, Permission.USER, Permission.ADMIN, Permission.SUPER)
489
+ ? [
490
+ {
491
+ name: 'Resource',
492
+ logo: '/admin/resource.svg',
493
+ label: 'Resource',
494
+ description: 'ระบบจัดการทรัพยากรบุคคล',
495
+ to: routes.resource.talentSearchAndCvBuilder.to,
496
+ status: StatusPortal.ACTIVE,
497
+ },
498
+ ]
499
+ : []),
488
500
  ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
489
501
  ? [
490
502
  {
@@ -509,19 +521,7 @@ const peopleApps = computed(() => [
509
521
  },
510
522
  ]
511
523
  : []),
512
- ...(auth.hasPermission(UserModule.RESOURCE, Permission.USER, Permission.ADMIN, Permission.SUPER)
513
- ? [
514
- {
515
- name: 'Resource',
516
- logo: '/admin/resource.svg',
517
- label: 'Resource',
518
- description: 'ระบบจัดการทรัพยากรบุคคล',
519
- to: '/',
520
- status: StatusPortal.ACTIVE,
521
- },
522
- ]
523
- : []),
524
- ...(auth.hasPermission(UserModule.REQUEST, Permission.USER, Permission.ADMIN, Permission.SUPER)
524
+ ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
525
525
  ? [
526
526
  {
527
527
  name: 'Request Admin',
@@ -529,7 +529,7 @@ const peopleApps = computed(() => [
529
529
  label: 'Request Admin',
530
530
  description: 'ระบบจัดการคำขออนุมัติต่างๆ',
531
531
  to: routes.requestAdmin.dashboard.to,
532
- status: StatusPortal.ACTIVE,
532
+ status: StatusPortal.DEVELOPING,
533
533
  },
534
534
  ]
535
535
  : []),
@@ -97,9 +97,8 @@ export enum UserModule {
97
97
  EMPLOYEE = 'employee',
98
98
  ASSET = 'asset',
99
99
  RECRUIT = 'recruit',
100
- BIDBOND = 'bidbond',
100
+ GUARANTEE = 'guarantee',
101
101
  EFACTORING = 'efactoring',
102
- PURCHASE = 'purchase',
103
102
  RESOURCE = 'resource',
104
103
  }
105
104
 
@@ -119,9 +118,8 @@ export interface IUserAccessLevel {
119
118
  employee: Permission
120
119
  asset: Permission
121
120
  recruit: Permission
122
- bidbond: Permission
121
+ guarantee: Permission
123
122
  efactoring: Permission
124
- purchase: Permission
125
123
  resource: Permission
126
124
  }
127
125
 
@@ -177,5 +177,13 @@ export const routes = {
177
177
  permissions: ['request:USER', 'request:ADMIN', 'request:SUPER'],
178
178
  },
179
179
  },
180
+ resource: {
181
+ talentSearchAndCvBuilder: {
182
+ label: 'Talent Search & CV Builder',
183
+ to: '/resource/talent-search',
184
+ icon: 'ph:certificate',
185
+ permissions: ['resource:USER', 'resource:ADMIN', 'resource:SUPER'],
186
+ },
187
+ },
180
188
 
181
189
  } as const
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",