@appcorp/app-corp-vista 0.3.84 → 0.3.86

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.
@@ -76,7 +76,7 @@ var componentMap = (_a = {},
76
76
  _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.IMAGE] = function (images) { return (react_1.default.createElement("td", { className: exports.dataClasses },
77
77
  react_1.default.createElement(react_photo_view_1.PhotoProvider, null,
78
78
  react_1.default.createElement("div", { className: "flex flex-row gap-2 flex-wrap" }, images.map(function (item, index) { return (react_1.default.createElement(react_photo_view_1.PhotoView, { key: index, src: item },
79
- react_1.default.createElement("img", { src: item, alt: "image", height: 70, width: 70, className: "rounded-lg" }))); }))))); },
79
+ react_1.default.createElement("img", { alt: "image", className: "rounded-lg", height: 70, src: item, width: 70 }))); }))))); },
80
80
  _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.OBJECT] = function (val) { return (react_1.default.createElement("td", { className: exports.dataClasses },
81
81
  react_1.default.createElement(vista_table_cell_v1_1.VistaTableCellV1, { label: val }))); },
82
82
  _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.MULTIPLE_TEXT_LINES] = function (val) { return (react_1.default.createElement("td", { className: exports.dataClasses }, val.map(function (v) {
@@ -137,9 +137,11 @@ var VistaTableBodyV1 = function (_a) {
137
137
  if (expression) {
138
138
  if (Array.isArray(expression)) {
139
139
  computedValue = key.map(function (k, index) {
140
- return expression[index]
141
- ? expression[index](row[k], row)
142
- : row[k];
140
+ // Apply expression if it exists at this index, otherwise use raw value
141
+ if (expression[index]) {
142
+ return expression[index](row[k], row);
143
+ }
144
+ return row[k];
143
145
  });
144
146
  }
145
147
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.3.84",
3
+ "version": "0.3.86",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
6
6
  "build:next": "next build",
@@ -13,7 +13,7 @@ exports.imageGridTemplateV4 = {
13
13
  type: 'image',
14
14
  content: '',
15
15
  position: { x: 10, y: 10 },
16
- width: 47.5,
16
+ width: 40,
17
17
  height: 51.4,
18
18
  rotate: 0,
19
19
  opacity: 1,
@@ -24,8 +24,8 @@ exports.imageGridTemplateV4 = {
24
24
  name: 'img2',
25
25
  type: 'image',
26
26
  content: '',
27
- position: { x: 62.5, y: 10 },
28
- width: 47.5,
27
+ position: { x: 60, y: 10 },
28
+ width: 40,
29
29
  height: 51.4,
30
30
  rotate: 0,
31
31
  opacity: 1,
@@ -36,8 +36,8 @@ exports.imageGridTemplateV4 = {
36
36
  name: 'img3',
37
37
  type: 'image',
38
38
  content: '',
39
- position: { x: 115, y: 10 },
40
- width: 47.5,
39
+ position: { x: 110, y: 10 },
40
+ width: 40,
41
41
  height: 51.4,
42
42
  rotate: 0,
43
43
  opacity: 1,
@@ -48,8 +48,8 @@ exports.imageGridTemplateV4 = {
48
48
  name: 'img4',
49
49
  type: 'image',
50
50
  content: '',
51
- position: { x: 167.5, y: 10 },
52
- width: 47.5,
51
+ position: { x: 160, y: 10 },
52
+ width: 40,
53
53
  height: 51.4,
54
54
  rotate: 0,
55
55
  opacity: 1,
@@ -62,7 +62,7 @@ exports.imageGridTemplateV4 = {
62
62
  type: 'image',
63
63
  content: '',
64
64
  position: { x: 10, y: 66.4 },
65
- width: 47.5,
65
+ width: 40,
66
66
  height: 51.4,
67
67
  rotate: 0,
68
68
  opacity: 1,
@@ -73,8 +73,8 @@ exports.imageGridTemplateV4 = {
73
73
  name: 'img6',
74
74
  type: 'image',
75
75
  content: '',
76
- position: { x: 62.5, y: 66.4 },
77
- width: 47.5,
76
+ position: { x: 60, y: 66.4 },
77
+ width: 40,
78
78
  height: 51.4,
79
79
  rotate: 0,
80
80
  opacity: 1,
@@ -85,8 +85,8 @@ exports.imageGridTemplateV4 = {
85
85
  name: 'img7',
86
86
  type: 'image',
87
87
  content: '',
88
- position: { x: 115, y: 66.4 },
89
- width: 47.5,
88
+ position: { x: 110, y: 66.4 },
89
+ width: 40,
90
90
  height: 51.4,
91
91
  rotate: 0,
92
92
  opacity: 1,
@@ -97,8 +97,8 @@ exports.imageGridTemplateV4 = {
97
97
  name: 'img8',
98
98
  type: 'image',
99
99
  content: '',
100
- position: { x: 167.5, y: 66.4 },
101
- width: 47.5,
100
+ position: { x: 160, y: 66.4 },
101
+ width: 40,
102
102
  height: 51.4,
103
103
  rotate: 0,
104
104
  opacity: 1,
@@ -111,7 +111,7 @@ exports.imageGridTemplateV4 = {
111
111
  type: 'image',
112
112
  content: '',
113
113
  position: { x: 10, y: 122.8 },
114
- width: 47.5,
114
+ width: 40,
115
115
  height: 51.4,
116
116
  rotate: 0,
117
117
  opacity: 1,
@@ -122,8 +122,8 @@ exports.imageGridTemplateV4 = {
122
122
  name: 'img10',
123
123
  type: 'image',
124
124
  content: '',
125
- position: { x: 62.5, y: 122.8 },
126
- width: 47.5,
125
+ position: { x: 60, y: 122.8 },
126
+ width: 40,
127
127
  height: 51.4,
128
128
  rotate: 0,
129
129
  opacity: 1,
@@ -134,8 +134,8 @@ exports.imageGridTemplateV4 = {
134
134
  name: 'img11',
135
135
  type: 'image',
136
136
  content: '',
137
- position: { x: 115, y: 122.8 },
138
- width: 47.5,
137
+ position: { x: 110, y: 122.8 },
138
+ width: 40,
139
139
  height: 51.4,
140
140
  rotate: 0,
141
141
  opacity: 1,
@@ -146,8 +146,8 @@ exports.imageGridTemplateV4 = {
146
146
  name: 'img12',
147
147
  type: 'image',
148
148
  content: '',
149
- position: { x: 167.5, y: 122.8 },
150
- width: 47.5,
149
+ position: { x: 160, y: 122.8 },
150
+ width: 40,
151
151
  height: 51.4,
152
152
  rotate: 0,
153
153
  opacity: 1,
@@ -160,7 +160,7 @@ exports.imageGridTemplateV4 = {
160
160
  type: 'image',
161
161
  content: '',
162
162
  position: { x: 10, y: 179.2 },
163
- width: 47.5,
163
+ width: 40,
164
164
  height: 51.4,
165
165
  rotate: 0,
166
166
  opacity: 1,
@@ -171,8 +171,8 @@ exports.imageGridTemplateV4 = {
171
171
  name: 'img14',
172
172
  type: 'image',
173
173
  content: '',
174
- position: { x: 62.5, y: 179.2 },
175
- width: 47.5,
174
+ position: { x: 60, y: 179.2 },
175
+ width: 40,
176
176
  height: 51.4,
177
177
  rotate: 0,
178
178
  opacity: 1,
@@ -183,8 +183,8 @@ exports.imageGridTemplateV4 = {
183
183
  name: 'img15',
184
184
  type: 'image',
185
185
  content: '',
186
- position: { x: 115, y: 179.2 },
187
- width: 47.5,
186
+ position: { x: 110, y: 179.2 },
187
+ width: 40,
188
188
  height: 51.4,
189
189
  rotate: 0,
190
190
  opacity: 1,
@@ -195,8 +195,8 @@ exports.imageGridTemplateV4 = {
195
195
  name: 'img16',
196
196
  type: 'image',
197
197
  content: '',
198
- position: { x: 167.5, y: 179.2 },
199
- width: 47.5,
198
+ position: { x: 160, y: 179.2 },
199
+ width: 40,
200
200
  height: 51.4,
201
201
  rotate: 0,
202
202
  opacity: 1,
@@ -209,7 +209,7 @@ exports.imageGridTemplateV4 = {
209
209
  type: 'image',
210
210
  content: '',
211
211
  position: { x: 10, y: 235.6 },
212
- width: 47.5,
212
+ width: 40,
213
213
  height: 51.4,
214
214
  rotate: 0,
215
215
  opacity: 1,
@@ -220,8 +220,8 @@ exports.imageGridTemplateV4 = {
220
220
  name: 'img18',
221
221
  type: 'image',
222
222
  content: '',
223
- position: { x: 62.5, y: 235.6 },
224
- width: 47.5,
223
+ position: { x: 60, y: 235.6 },
224
+ width: 40,
225
225
  height: 51.4,
226
226
  rotate: 0,
227
227
  opacity: 1,
@@ -232,8 +232,8 @@ exports.imageGridTemplateV4 = {
232
232
  name: 'img19',
233
233
  type: 'image',
234
234
  content: '',
235
- position: { x: 115, y: 235.6 },
236
- width: 47.5,
235
+ position: { x: 110, y: 235.6 },
236
+ width: 40,
237
237
  height: 51.4,
238
238
  rotate: 0,
239
239
  opacity: 1,
@@ -244,8 +244,8 @@ exports.imageGridTemplateV4 = {
244
244
  name: 'img20',
245
245
  type: 'image',
246
246
  content: '',
247
- position: { x: 167.5, y: 235.6 },
248
- width: 47.5,
247
+ position: { x: 160, y: 235.6 },
248
+ width: 40,
249
249
  height: 51.4,
250
250
  rotate: 0,
251
251
  opacity: 1,