@finema/finework-layer 1.0.33 → 1.0.35

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.35](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.34...1.0.35) (2026-04-09)
4
+
5
+ ### Bug Fixes
6
+
7
+ * timeformnow prefix ([92fcac4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/92fcac4a316603b9358514b686bcc024ee596807))
8
+
9
+ ## [1.0.34](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.33...1.0.34) (2026-04-09)
10
+
3
11
  ## [1.0.33](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.32...1.0.33) (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')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.33",
4
+ "version": "1.0.35",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",