@finema/finework-layer 0.2.136 → 0.2.138
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 +12 -0
- package/app/app.config.ts +8 -0
- package/app/components/InfoItemList.vue +8 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.138](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.137...0.2.138) (2026-02-16)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add pinned variants to table styles and update @finema/core dependency ([4c643d7](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/4c643d742168ce1493044da0d504599bc5ba969d))
|
|
8
|
+
|
|
9
|
+
## [0.2.137](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.136...0.2.137) (2026-02-11)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* infoitemlist type image ([de07039](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/de07039c52f30cba02699155eff027cd2d8bee44))
|
|
14
|
+
|
|
3
15
|
## [0.2.136](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.135...0.2.136) (2026-02-11)
|
|
4
16
|
|
|
5
17
|
### Features
|
package/app/app.config.ts
CHANGED
|
@@ -130,6 +130,14 @@ export default defineAppConfig({
|
|
|
130
130
|
th: 'text-[#222222] whitespace-nowrap border-r border-[#EAECF0] last:border-0 bg-[#F9FAFB]',
|
|
131
131
|
td: 'text-[#222222] border-r border-[#EAECF0] last:border-0',
|
|
132
132
|
},
|
|
133
|
+
variants: {
|
|
134
|
+
pinned: {
|
|
135
|
+
true: {
|
|
136
|
+
th: 'sticky bg-[#F9FAFB] data-[pinned=left]:left-0 data-[pinned=right]:right-0 z-[100] ',
|
|
137
|
+
td: 'sticky bg-white data-[pinned=left]:left-0 data-[pinned=right]:right-0 ',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
133
141
|
},
|
|
134
142
|
button: {
|
|
135
143
|
compoundVariants: [
|
|
@@ -95,6 +95,12 @@
|
|
|
95
95
|
:label="item.label"
|
|
96
96
|
class="pointer-events-none"
|
|
97
97
|
/>
|
|
98
|
+
<img
|
|
99
|
+
v-else-if="item.type === TYPE_INFO_ITEM.IMAGE && item.value"
|
|
100
|
+
:src="typeof item.value === 'string' ? item.value : item.value?.url"
|
|
101
|
+
:alt="item.label"
|
|
102
|
+
class="max-w-md rounded-lg object-cover"
|
|
103
|
+
/>
|
|
98
104
|
<span
|
|
99
105
|
v-else-if="!shouldTruncateText(item) && item.type === TYPE_INFO_ITEM.HTML"
|
|
100
106
|
:class="[
|
|
@@ -105,7 +111,7 @@
|
|
|
105
111
|
v-html="getValue(item)"
|
|
106
112
|
/>
|
|
107
113
|
<NuxtLink
|
|
108
|
-
v-if="item.type === TYPE_INFO_ITEM.LINK && item.linkProps"
|
|
114
|
+
v-else-if="item.type === TYPE_INFO_ITEM.LINK && item.linkProps"
|
|
109
115
|
v-bind="item.linkProps"
|
|
110
116
|
:class="[
|
|
111
117
|
'text-primary hover:underline',
|
|
@@ -146,6 +152,7 @@ enum TYPE_INFO_ITEM {
|
|
|
146
152
|
BOOLEAN = 'boolean',
|
|
147
153
|
HTML = 'html',
|
|
148
154
|
LINK = 'link',
|
|
155
|
+
IMAGE = 'image',
|
|
149
156
|
}
|
|
150
157
|
|
|
151
158
|
defineProps<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finema/finework-layer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.138",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "nuxi dev .playground -o",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vue": "latest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@finema/core": "^3.
|
|
33
|
+
"@finema/core": "^3.12.0"
|
|
34
34
|
},
|
|
35
35
|
"lint-staged": {
|
|
36
36
|
"*": "eslint"
|