@finema/finework-layer 1.0.30 → 1.0.32
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.32](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.31...1.0.32) (2026-04-09)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* request active ([74ae5f3](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/74ae5f3916ed2038d742c716c55f4a347b8c483f))
|
|
8
|
+
|
|
9
|
+
## [1.0.31](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.30...1.0.31) (2026-04-07)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* infoitemList add subfix ([ebd2ed4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/ebd2ed426fe590826f3acd9ca932800250242c88))
|
|
14
|
+
|
|
3
15
|
## [1.0.30](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.29...1.0.30) (2026-04-03)
|
|
4
16
|
|
|
5
17
|
### Bug Fixes
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
v-if="shouldTruncateText(item)"
|
|
64
64
|
v-show="!expandedItems[item.label]"
|
|
65
65
|
>
|
|
66
|
-
{{ truncateText(item.value || '-', item.max || 0) }}
|
|
66
|
+
{{ truncateText(item.value || '-', item.max || 0) }}{{ item.subfix || '' }}
|
|
67
67
|
<button
|
|
68
68
|
class="
|
|
69
69
|
text-info-600 ml-1 cursor-pointer text-sm
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
v-if="shouldTruncateText(item)"
|
|
79
79
|
v-show="expandedItems[item.label]"
|
|
80
80
|
>
|
|
81
|
-
{{ item.value || '-' }}
|
|
81
|
+
{{ item.value || '-' }}{{ item.subfix || '' }}
|
|
82
82
|
<button
|
|
83
83
|
class="
|
|
84
84
|
text-info-600 ml-1 cursor-pointer text-sm
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
]"
|
|
123
123
|
>
|
|
124
|
-
{{ item.value || '-' }}
|
|
124
|
+
{{ item.value || '-' }}{{ item.subfix || '' }}
|
|
125
125
|
</NuxtLink>
|
|
126
126
|
<span
|
|
127
127
|
v-else-if="!shouldTruncateText(item)"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
},
|
|
132
132
|
]"
|
|
133
133
|
>
|
|
134
|
-
{{ getValue(item) }}
|
|
134
|
+
{{ getValue(item) }}{{ item.subfix || '' }}
|
|
135
135
|
</span>
|
|
136
136
|
</div>
|
|
137
137
|
</template>
|
|
@@ -168,6 +168,7 @@ const props = defineProps<{
|
|
|
168
168
|
class?: string
|
|
169
169
|
hide?: boolean
|
|
170
170
|
linkProps?: ComponentProps<typeof NuxtLink>
|
|
171
|
+
subfix?: string
|
|
171
172
|
}>
|
|
172
173
|
vertical?: boolean
|
|
173
174
|
inline?: boolean
|
|
@@ -333,7 +333,7 @@ const dailyApps = computed(() => [
|
|
|
333
333
|
label: 'Request',
|
|
334
334
|
description: 'ระบบขอ ลา เบิก อนุมัติรายการต่างๆ',
|
|
335
335
|
to: routes.request.myRequest.requests.to,
|
|
336
|
-
status: StatusPortal.
|
|
336
|
+
status: StatusPortal.ACTIVE,
|
|
337
337
|
},
|
|
338
338
|
])
|
|
339
339
|
|
|
@@ -521,15 +521,15 @@ const peopleApps = computed(() => [
|
|
|
521
521
|
},
|
|
522
522
|
]
|
|
523
523
|
: []),
|
|
524
|
-
...(auth.hasPermission(UserModule.
|
|
524
|
+
...(auth.hasPermission(UserModule.REQUEST, Permission.SUPER, Permission.ADMIN)
|
|
525
525
|
? [
|
|
526
526
|
{
|
|
527
527
|
name: 'Request Admin',
|
|
528
528
|
logo: '/admin/request-admin.svg',
|
|
529
529
|
label: 'Request Admin',
|
|
530
530
|
description: 'ระบบจัดการคำขออนุมัติต่างๆ',
|
|
531
|
-
to: routes.requestAdmin.
|
|
532
|
-
status: StatusPortal.
|
|
531
|
+
to: routes.requestAdmin.userRequest.users.to,
|
|
532
|
+
status: StatusPortal.ACTIVE,
|
|
533
533
|
},
|
|
534
534
|
]
|
|
535
535
|
: []),
|
package/app/constants/routes.ts
CHANGED
|
@@ -165,7 +165,7 @@ export const routes = {
|
|
|
165
165
|
label: 'My Requests',
|
|
166
166
|
to: '/request',
|
|
167
167
|
icon: 'ph:clipboard',
|
|
168
|
-
permissions: ['request:USER'],
|
|
168
|
+
permissions: ['request:USER', 'request:ADMIN', 'request:SUPER'],
|
|
169
169
|
},
|
|
170
170
|
},
|
|
171
171
|
},
|
|
@@ -174,7 +174,15 @@ export const routes = {
|
|
|
174
174
|
label: 'แดชบอร์ด',
|
|
175
175
|
to: '/request-admin',
|
|
176
176
|
icon: 'ph:grid-four',
|
|
177
|
-
permissions: ['request:
|
|
177
|
+
permissions: ['request:ADMIN', 'request:SUPER'],
|
|
178
|
+
},
|
|
179
|
+
userRequest: {
|
|
180
|
+
users: {
|
|
181
|
+
label: 'รายการคำขอพนักงาน',
|
|
182
|
+
to: '/request-admin/users',
|
|
183
|
+
icon: 'ph:clipboard',
|
|
184
|
+
permissions: ['request:ADMIN', 'request:SUPER'],
|
|
185
|
+
},
|
|
178
186
|
},
|
|
179
187
|
},
|
|
180
188
|
resource: {
|