@finema/finework-layer 1.0.39 → 1.0.41

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.41](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.40...1.0.41) (2026-04-24)
4
+
5
+ ### Features
6
+
7
+ * evaluation and lg ([365f7fe](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/365f7fe00ed9c8fd48575d4d8bce96ef9a616be8))
8
+
9
+ ## [1.0.40](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.39...1.0.40) (2026-04-21)
10
+
11
+ ### Bug Fixes
12
+
13
+ * add label class infoitem ([4d666ed](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/4d666ed7b82825dd60d294d0ba099691e90c3d18))
14
+
3
15
  ## [1.0.39](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.38...1.0.39) (2026-04-10)
4
16
 
5
17
  ### Bug Fixes
@@ -32,6 +32,7 @@
32
32
  'font-bold text-black!': item.label && titleBold,
33
33
  'flex-shrink-0': inline,
34
34
  },
35
+ item.labelClass,
35
36
  ]"
36
37
  :style="inline && labelWidth ? { width: `${labelWidth}px` } : undefined"
37
38
  >
@@ -159,6 +160,7 @@ enum TYPE_INFO_ITEM {
159
160
  const props = defineProps<{
160
161
  items: Array<{
161
162
  label: string
163
+ labelClass?: string
162
164
  value?: any
163
165
  component?: any
164
166
  props?: Record<string, any>
@@ -421,15 +421,15 @@ const financeApps = computed(() => [
421
421
  },
422
422
  ]
423
423
  : []),
424
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
424
+ ...(auth.hasPermission(UserModule.LG, Permission.USER, Permission.ADMIN, Permission.SUPER)
425
425
  ? [
426
426
  {
427
427
  name: 'Guarantee',
428
428
  logo: '/admin/guarantee.png',
429
429
  label: 'งบค้ำประกัน',
430
430
  description: 'การเบิกเงินค้ำซองและค้ำสัญญา',
431
- to: '/',
432
- status: StatusPortal.DEVELOPING,
431
+ to: routes.lg.overview.to,
432
+ status: StatusPortal.ACTIVE,
433
433
  },
434
434
  ]
435
435
  : []),
@@ -509,15 +509,15 @@ const peopleApps = computed(() => [
509
509
  },
510
510
  ]
511
511
  : []),
512
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
512
+ ...(auth.hasPermission(UserModule.EVALUATION, Permission.USER, Permission.ADMIN, Permission.SUPER)
513
513
  ? [
514
514
  {
515
515
  name: 'Evaluation',
516
516
  logo: '/admin/evaluation.png',
517
517
  label: 'Evaluation',
518
518
  description: 'ระบบจัดการการประเมิน',
519
- to: '/',
520
- status: StatusPortal.DEVELOPING,
519
+ to: routes.evaluation.general.generals.to,
520
+ status: StatusPortal.ACTIVE,
521
521
  },
522
522
  ]
523
523
  : []),
@@ -97,7 +97,7 @@ export enum UserModule {
97
97
  EMPLOYEE = 'employee',
98
98
  ASSET = 'asset',
99
99
  RECRUIT = 'recruit',
100
- GUARANTEE = 'guarantee',
100
+ LG = 'lg',
101
101
  EFACTORING = 'efactoring',
102
102
  RESOURCE = 'resource',
103
103
  }
@@ -118,7 +118,7 @@ export interface IUserAccessLevel {
118
118
  employee: Permission
119
119
  asset: Permission
120
120
  recruit: Permission
121
- guarantee: Permission
121
+ lg: Permission
122
122
  efactoring: Permission
123
123
  resource: Permission
124
124
  }
@@ -193,5 +193,21 @@ export const routes = {
193
193
  permissions: ['resource:USER', 'resource:ADMIN', 'resource:SUPER'],
194
194
  },
195
195
  },
196
+ lg: {
197
+ overview: {
198
+ label: 'ภาพรวม',
199
+ to: '/lg/overview',
200
+ icon: 'ph:stack',
201
+ },
202
+ },
203
+ evaluation: {
204
+ general: {
205
+ generals: {
206
+ label: 'การประเมินทั่วไป',
207
+ to: '/evaluation/generals',
208
+ icon: 'bi:clipboard-check',
209
+ },
210
+ },
211
+ },
196
212
 
197
213
  } 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.39",
4
+ "version": "1.0.41",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",