@finema/finework-layer 1.0.24 → 1.0.26

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.26](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.25...1.0.26) (2026-03-27)
4
+
5
+ ### Bug Fixes
6
+
7
+ * update navigation routes for Request and Request Admin in PortalApp ([29fdda5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/29fdda5e319f6cd290da76b3a706ef73e0fa31b3))
8
+
9
+ ## [1.0.25](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.24...1.0.25) (2026-03-27)
10
+
11
+ ### Bug Fixes
12
+
13
+ * update naming and status for Request and Request Admin in PortalApp ([a584944](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/a58494411ee4dc8de6bfd6c5e7eaec20c9185625))
14
+
3
15
  ## [1.0.24](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.23...1.0.24) (2026-03-26)
4
16
 
5
17
  ### Bug Fixes
@@ -328,12 +328,12 @@ const dailyApps = computed(() => [
328
328
  status: StatusPortal.ACTIVE,
329
329
  },
330
330
  {
331
- name: 'Requests',
331
+ name: 'Request',
332
332
  logo: '/admin/request.png',
333
- label: 'Requests',
333
+ label: 'Request',
334
334
  description: 'ระบบขอ ลา เบิก อนุมัติรายการต่างๆ',
335
- to: '/',
336
- status: StatusPortal.DEVELOPING,
335
+ to: routes.request.myRequest.to,
336
+ status: StatusPortal.ACTIVE,
337
337
  },
338
338
  ])
339
339
 
@@ -509,7 +509,7 @@ const peopleApps = computed(() => [
509
509
  },
510
510
  ]
511
511
  : []),
512
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
512
+ ...(auth.hasPermission(UserModule.RESOURCE, Permission.USER, Permission.ADMIN, Permission.SUPER)
513
513
  ? [
514
514
  {
515
515
  name: 'Resource',
@@ -517,19 +517,19 @@ const peopleApps = computed(() => [
517
517
  label: 'Resource',
518
518
  description: 'ระบบจัดการทรัพยากรบุคคล',
519
519
  to: '/',
520
- status: StatusPortal.DEVELOPING,
520
+ status: StatusPortal.ACTIVE,
521
521
  },
522
522
  ]
523
523
  : []),
524
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
524
+ ...(auth.hasPermission(UserModule.REQUEST, Permission.USER, Permission.ADMIN, Permission.SUPER)
525
525
  ? [
526
526
  {
527
- name: 'Requests Admin',
527
+ name: 'Request Admin',
528
528
  logo: '/admin/request-admin.svg',
529
- label: 'Requests Admin',
529
+ label: 'Request Admin',
530
530
  description: 'ระบบจัดการคำขออนุมัติต่างๆ',
531
- to: '/',
532
- status: StatusPortal.DEVELOPING,
531
+ to: routes.requestAdmin.dashboard.to,
532
+ status: StatusPortal.ACTIVE,
533
533
  },
534
534
  ]
535
535
  : []),
@@ -537,7 +537,7 @@ const peopleApps = computed(() => [
537
537
  ])
538
538
 
539
539
  const legalApps = computed(() => [
540
- ...(auth.hasPermission(UserModule.CONTRACT, Permission.USER, Permission.ADMIN)
540
+ ...(auth.hasPermission(UserModule.CONTRACT, Permission.USER, Permission.ADMIN, Permission.SUPER)
541
541
  ? [
542
542
  {
543
543
  name: 'Contract',
@@ -159,5 +159,23 @@ export const routes = {
159
159
  },
160
160
  },
161
161
  },
162
+ request: {
163
+ myRequest: {
164
+ requests: {
165
+ label: 'My Requests',
166
+ to: '/request',
167
+ icon: 'ph:clipboard',
168
+ permissions: ['request:USER'],
169
+ },
170
+ },
171
+ },
172
+ requestAdmin: {
173
+ dashboard: {
174
+ label: 'แดชบอร์ด',
175
+ to: '/request-admin',
176
+ icon: 'ph:grid-four',
177
+ permissions: ['request:USER', 'request:ADMIN', 'request:SUPER'],
178
+ },
179
+ },
162
180
 
163
181
  } 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.24",
4
+ "version": "1.0.26",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",