@finema/finework-layer 0.2.95 → 0.2.97

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.
@@ -57,7 +57,7 @@
57
57
  },
58
58
  {
59
59
  label: '12',
60
- value: '<b>123123</b>',
60
+ value: '<p>123123</p>',
61
61
  type: 'wysiwyg',
62
62
  },
63
63
  ]"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.97](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.96...0.2.97) (2025-12-25)
4
+
5
+ ### Bug Fixes
6
+
7
+ * inter IUser ([3c4c855](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/3c4c855e69bfde7d55cbd59b8fcfd4a35147e2c0))
8
+
9
+ ## [0.2.96](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.95...0.2.96) (2025-12-24)
10
+
11
+ ### Bug Fixes
12
+
13
+ * infoitemlist prop fontbold ([0002318](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/00023189dc7f3f06836299607f432356a20554c4))
14
+ * infolist ([20badaa](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/20badaaf3ea41c2ee381d398f6342df74101b666))
15
+
3
16
  ## [0.2.95](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.94...0.2.95) (2025-12-24)
4
17
 
5
18
  ### Bug Fixes
@@ -29,6 +29,7 @@
29
29
  {
30
30
  'mb-1 block text-sm text-gray-500': !inline,
31
31
  'mr-2 text-gray-500': inline,
32
+ 'font-bold !text-black': item.label && titleBold,
32
33
  },
33
34
  ]"
34
35
  >
@@ -100,16 +101,16 @@
100
101
  v-else-if="!shouldTruncateText(item) && item.type === TYPE_INFO_ITEM.WYSIWYG"
101
102
  :class="[
102
103
  {
103
- 'font-bold': item.label,
104
+ 'font-bold': item.label && !titleBold,
104
105
  },
105
106
  ]"
106
- v-html="getTextFromHTML(getValue(item))"
107
+ v-html="getValue(item)"
107
108
  />
108
109
  <span
109
110
  v-else-if="!shouldTruncateText(item)"
110
111
  :class="[
111
112
  {
112
- 'font-bold': item.label,
113
+ 'font-bold': item.label && !titleBold,
113
114
  },
114
115
  ]"
115
116
  >
@@ -149,18 +150,11 @@ defineProps<{
149
150
  vertical?: boolean
150
151
  inline?: boolean
151
152
  customClass?: string
152
-
153
+ titleBold?: boolean
153
154
  }>()
154
155
 
155
156
  const expandedItems = reactive<Record<string, boolean>>({})
156
157
 
157
- const getTextFromHTML = (html: string) => {
158
- const parser = new DOMParser()
159
- const doc = parser.parseFromString(html, 'text/html')
160
-
161
- return doc.body.textContent
162
- }
163
-
164
158
  const shouldTruncateText = (item: any): boolean => {
165
159
  return item.max && item.value && item.value.length > item.max
166
160
  }
@@ -27,21 +27,59 @@ export interface ITeam {
27
27
 
28
28
  export interface IUser {
29
29
  id: string
30
+ employee_id: string
31
+ employee_type: string
32
+ employee_status: string
33
+ head_employee_id: string
34
+ head_user: IUser
35
+ head_user_id: string
30
36
  email: string
31
37
  full_name: string
32
38
  display_name: string
33
39
  position: string
34
40
  team: ITeam
41
+ sig: string
35
42
  team_code: string
36
43
  avatar_url: string
37
44
  company: string
38
- sig: string
45
+ company_branch: string
39
46
  access_level: IUserAccessLevel
40
47
  is_active: boolean
41
48
  joined_date: string
49
+ working_start_at: string
50
+ working_end_at: string
51
+ azure_id: string
42
52
  slack_id: string
43
53
  created_at: string
44
54
  updated_at: string
55
+ updated_by?: IUser
56
+ created_by: IUser
57
+ profile: IUserProfile
58
+ }
59
+
60
+ export interface IUserProfile {
61
+ id: string
62
+ created_at: string
63
+ updated_at: string
64
+ user_id: string
65
+ title: string
66
+ first_name: string
67
+ last_name: string
68
+ title_en: string
69
+ first_name_en: string
70
+ last_name_en: string
71
+ gender: string
72
+ birth_date: string
73
+ blood_type: string
74
+ marital_status: string
75
+ military_status: string
76
+ personal_email: string
77
+ emergency_person: string
78
+ emergency_relation: string
79
+ emergency_phone: string
80
+ phone: string
81
+ created_by_id: IUser
82
+ updated_by_id: IUser
45
83
  }
46
84
 
47
85
  export enum UserModule {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.95",
4
+ "version": "0.2.97",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",