@finema/finework-layer 1.0.32 → 1.0.34
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.34](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.33...1.0.34) (2026-04-09)
|
|
4
|
+
|
|
5
|
+
## [1.0.33](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.32...1.0.33) (2026-04-09)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* reqeust ([5621fc0](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/5621fc0a12a9bb3d936bfc37e4f3211abdc496a1))
|
|
10
|
+
|
|
3
11
|
## [1.0.32](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.31...1.0.32) (2026-04-09)
|
|
4
12
|
|
|
5
13
|
### Features
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:is="props.as || 'span'"
|
|
4
4
|
:title="TimeHelper.displayDateTime(props.value)"
|
|
5
5
|
>
|
|
6
|
-
{{ getValue }}
|
|
6
|
+
{{ prefix }} {{ getValue }} {{ suffix }}
|
|
7
7
|
</component>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
import { differenceInDays, differenceInHours, differenceInMinutes, differenceInMonths, differenceInWeeks, startOfDay, addDays } from 'date-fns'
|
|
12
12
|
|
|
13
13
|
const props = defineProps<{
|
|
14
|
+
prefix?: string
|
|
15
|
+
suffix?: string
|
|
14
16
|
value: string | Date
|
|
15
17
|
as?: string
|
|
16
18
|
}>()
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:is="props.as || 'span'"
|
|
4
4
|
:title="TimeHelper.displayDateTime(props.value)"
|
|
5
5
|
>
|
|
6
|
-
{{ getValue }}
|
|
6
|
+
{{ props.prefix }}{{ getValue }}{{ props.suffix }}
|
|
7
7
|
</component>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
@@ -11,10 +11,16 @@
|
|
|
11
11
|
import { formatDistanceToNow, differenceInDays } from 'date-fns'
|
|
12
12
|
import * as locales from 'date-fns/locale'
|
|
13
13
|
|
|
14
|
-
const props = defineProps<{
|
|
14
|
+
const props = withDefaults(defineProps<{
|
|
15
15
|
value: string | Date
|
|
16
16
|
as?: string
|
|
17
|
-
|
|
17
|
+
prefix?: string
|
|
18
|
+
suffix?: string
|
|
19
|
+
}>(), {
|
|
20
|
+
as: 'span',
|
|
21
|
+
prefix: '',
|
|
22
|
+
suffix: '',
|
|
23
|
+
})
|
|
18
24
|
|
|
19
25
|
const config = useAppConfig()
|
|
20
26
|
const localeInject = inject('locale')
|
|
@@ -156,6 +156,8 @@ const getImage = (item: INotificationItem): string | null => {
|
|
|
156
156
|
return `/admin/evaluation.png`
|
|
157
157
|
} else if (item.source_type?.startsWith('COSTSHEET')) {
|
|
158
158
|
return `/admin/cost-sheet.png`
|
|
159
|
+
} else if (item.source_type?.startsWith('REQUEST')) {
|
|
160
|
+
return `/admin/request.png`
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
return null
|