@appcorp/app-corp-vista 0.3.85 → 0.3.87
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", {
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.psychicPayoutReportTemplateV1 = void 0;
|
|
4
|
+
exports.psychicPayoutReportTemplateV1 = {
|
|
5
|
+
schemas: [
|
|
6
|
+
[
|
|
7
|
+
{
|
|
8
|
+
name: 'logo',
|
|
9
|
+
type: 'image',
|
|
10
|
+
position: { x: 10, y: 10 },
|
|
11
|
+
content: '',
|
|
12
|
+
width: 20.86,
|
|
13
|
+
height: 17,
|
|
14
|
+
required: false,
|
|
15
|
+
readOnly: false,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'heading',
|
|
19
|
+
type: 'text',
|
|
20
|
+
position: { x: 130, y: 10 },
|
|
21
|
+
content: '',
|
|
22
|
+
width: 70,
|
|
23
|
+
height: 20,
|
|
24
|
+
rotate: 0,
|
|
25
|
+
alignment: 'right',
|
|
26
|
+
verticalAlignment: 'middle',
|
|
27
|
+
fontSize: 25,
|
|
28
|
+
lineHeight: 1,
|
|
29
|
+
characterSpacing: 0,
|
|
30
|
+
fontColor: '#E5CD8B',
|
|
31
|
+
backgroundColor: '',
|
|
32
|
+
opacity: 1,
|
|
33
|
+
dynamicFontSize: { min: 6, max: 30, fit: 'vertical' },
|
|
34
|
+
fontName: 'font_light',
|
|
35
|
+
readOnly: false,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'clientLabel',
|
|
39
|
+
type: 'text',
|
|
40
|
+
position: { x: 10, y: 60 },
|
|
41
|
+
content: '',
|
|
42
|
+
width: 84.68,
|
|
43
|
+
height: 10,
|
|
44
|
+
rotate: 0,
|
|
45
|
+
alignment: 'left',
|
|
46
|
+
verticalAlignment: 'top',
|
|
47
|
+
fontSize: 10,
|
|
48
|
+
fontWeight: 400,
|
|
49
|
+
lineHeight: 1,
|
|
50
|
+
characterSpacing: 0,
|
|
51
|
+
fontColor: '#2C3139',
|
|
52
|
+
backgroundColor: '',
|
|
53
|
+
opacity: 1,
|
|
54
|
+
dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
|
|
55
|
+
fontName: 'font_bold',
|
|
56
|
+
readOnly: false,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'clientValue',
|
|
60
|
+
type: 'text',
|
|
61
|
+
content: '',
|
|
62
|
+
position: { x: 10, y: 65 },
|
|
63
|
+
width: 84.95,
|
|
64
|
+
height: 17.67,
|
|
65
|
+
rotate: 0,
|
|
66
|
+
alignment: 'left',
|
|
67
|
+
verticalAlignment: 'top',
|
|
68
|
+
fontSize: 9,
|
|
69
|
+
lineHeight: 1.4,
|
|
70
|
+
characterSpacing: 0,
|
|
71
|
+
fontColor: '#909E98',
|
|
72
|
+
backgroundColor: '',
|
|
73
|
+
opacity: 1,
|
|
74
|
+
dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
|
|
75
|
+
fontName: 'font_light',
|
|
76
|
+
readOnly: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'items',
|
|
80
|
+
type: 'table',
|
|
81
|
+
position: { x: 10, y: 90 },
|
|
82
|
+
width: 190,
|
|
83
|
+
height: 15,
|
|
84
|
+
showHead: true,
|
|
85
|
+
head: [
|
|
86
|
+
'PSYCHIC',
|
|
87
|
+
'INTRO AMOUNT',
|
|
88
|
+
'AMOUNT',
|
|
89
|
+
'TOTAL AMOUNT',
|
|
90
|
+
'NUMBER OF SESSIONS',
|
|
91
|
+
],
|
|
92
|
+
headWidthPercentages: [26, 24, 24, 13, 13],
|
|
93
|
+
fontName: 'font_regular',
|
|
94
|
+
tableStyles: { borderWidth: 0, borderColor: '#000000' },
|
|
95
|
+
headStyles: {
|
|
96
|
+
fontName: 'font_bold',
|
|
97
|
+
fontSize: 10,
|
|
98
|
+
characterSpacing: 0,
|
|
99
|
+
alignment: 'left',
|
|
100
|
+
verticalAlignment: 'middle',
|
|
101
|
+
lineHeight: 1,
|
|
102
|
+
fontColor: '#2C3139',
|
|
103
|
+
borderColor: '#EFEFD1',
|
|
104
|
+
backgroundColor: '',
|
|
105
|
+
borderWidth: { top: 0, right: 0, bottom: 1, left: 0 },
|
|
106
|
+
padding: { top: 2, right: 2, bottom: 2, left: 2 },
|
|
107
|
+
},
|
|
108
|
+
bodyStyles: {
|
|
109
|
+
fontName: 'font_regular',
|
|
110
|
+
fontSize: 10,
|
|
111
|
+
characterSpacing: 0,
|
|
112
|
+
alignment: 'left',
|
|
113
|
+
verticalAlignment: 'middle',
|
|
114
|
+
lineHeight: 1,
|
|
115
|
+
fontColor: '#7c7e7d',
|
|
116
|
+
borderColor: '#ECF1F1',
|
|
117
|
+
backgroundColor: '#D3D3D3',
|
|
118
|
+
alternateBackgroundColor: '#FFFFFF',
|
|
119
|
+
borderWidth: { top: 0, right: 0, bottom: 0.75, left: 0 },
|
|
120
|
+
padding: { top: 2, right: 2, bottom: 2, left: 2 },
|
|
121
|
+
},
|
|
122
|
+
columnStyles: {
|
|
123
|
+
alignment: {
|
|
124
|
+
0: 'center',
|
|
125
|
+
1: 'center',
|
|
126
|
+
2: 'center',
|
|
127
|
+
3: 'center',
|
|
128
|
+
4: 'center',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
readOnly: false,
|
|
132
|
+
content: '[]',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'companyValue',
|
|
136
|
+
type: 'text',
|
|
137
|
+
content: '',
|
|
138
|
+
position: { x: 10, y: 35 },
|
|
139
|
+
width: 84.95,
|
|
140
|
+
height: 17.67,
|
|
141
|
+
rotate: 0,
|
|
142
|
+
alignment: 'left',
|
|
143
|
+
verticalAlignment: 'top',
|
|
144
|
+
fontSize: 9,
|
|
145
|
+
lineHeight: 1.4,
|
|
146
|
+
characterSpacing: 0,
|
|
147
|
+
fontColor: '#909E98',
|
|
148
|
+
backgroundColor: '',
|
|
149
|
+
opacity: 1,
|
|
150
|
+
dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
|
|
151
|
+
fontName: 'font_light',
|
|
152
|
+
readOnly: false,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'companyLabel',
|
|
156
|
+
type: 'text',
|
|
157
|
+
position: { x: 10, y: 30 },
|
|
158
|
+
content: '',
|
|
159
|
+
width: 84.68,
|
|
160
|
+
height: 10,
|
|
161
|
+
rotate: 0,
|
|
162
|
+
alignment: 'left',
|
|
163
|
+
verticalAlignment: 'top',
|
|
164
|
+
fontSize: 10,
|
|
165
|
+
fontWeight: 400,
|
|
166
|
+
lineHeight: 1,
|
|
167
|
+
characterSpacing: 0,
|
|
168
|
+
fontColor: '#2C3139',
|
|
169
|
+
backgroundColor: '',
|
|
170
|
+
opacity: 1,
|
|
171
|
+
dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
|
|
172
|
+
fontName: 'font_bold',
|
|
173
|
+
readOnly: false,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'date',
|
|
177
|
+
type: 'text',
|
|
178
|
+
content: '',
|
|
179
|
+
position: { x: 140, y: 35 },
|
|
180
|
+
width: 60,
|
|
181
|
+
height: 15,
|
|
182
|
+
rotate: 0,
|
|
183
|
+
alignment: 'right',
|
|
184
|
+
verticalAlignment: 'top',
|
|
185
|
+
fontSize: 7,
|
|
186
|
+
lineHeight: 1,
|
|
187
|
+
characterSpacing: 0,
|
|
188
|
+
fontColor: '#909E98',
|
|
189
|
+
backgroundColor: '',
|
|
190
|
+
opacity: 1,
|
|
191
|
+
dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
|
|
192
|
+
fontName: 'font_light',
|
|
193
|
+
readOnly: false,
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
],
|
|
197
|
+
basePdf: {
|
|
198
|
+
width: 210,
|
|
199
|
+
height: 297,
|
|
200
|
+
padding: [10, 10, 10, 10],
|
|
201
|
+
staticSchema: [
|
|
202
|
+
{
|
|
203
|
+
name: 'disclaimer',
|
|
204
|
+
type: 'text',
|
|
205
|
+
content: 'Disclaimer: This report reflects activity occurring on the Kismaa platform for informational purposes only. Advisors providing services through Kismaa operate as independent professionals and are not employees of Kismaa.',
|
|
206
|
+
position: { x: 10, y: 280 },
|
|
207
|
+
width: 190,
|
|
208
|
+
height: 15,
|
|
209
|
+
rotate: 0,
|
|
210
|
+
alignment: 'left',
|
|
211
|
+
verticalAlignment: 'top',
|
|
212
|
+
fontSize: 7,
|
|
213
|
+
lineHeight: 1,
|
|
214
|
+
characterSpacing: 0,
|
|
215
|
+
fontColor: '#909E98',
|
|
216
|
+
backgroundColor: '',
|
|
217
|
+
opacity: 1,
|
|
218
|
+
dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
|
|
219
|
+
fontName: 'font_light',
|
|
220
|
+
readOnly: false,
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
};
|