@appcorp/app-corp-vista 0.2.22 → 0.2.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
6
6
  "build:next": "next build",
@@ -0,0 +1,2 @@
1
+ import { Template } from '@pdfme/common';
2
+ export declare const creditReceiptTemplateV1: Template;
@@ -0,0 +1,321 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.creditReceiptTemplateV1 = void 0;
4
+ var common_1 = require("@pdfme/common");
5
+ exports.creditReceiptTemplateV1 = {
6
+ basePdf: common_1.BLANK_A4_PDF,
7
+ schemas: [
8
+ [
9
+ {
10
+ name: 'logo',
11
+ type: 'image',
12
+ position: { x: 10, y: 10 },
13
+ content: '',
14
+ width: 20.86,
15
+ height: 17,
16
+ required: false,
17
+ readOnly: false,
18
+ },
19
+ {
20
+ name: 'heading',
21
+ type: 'text',
22
+ position: { x: 130, y: 10 },
23
+ content: '',
24
+ width: 69.87,
25
+ height: 18.98,
26
+ rotate: 0,
27
+ alignment: 'right',
28
+ verticalAlignment: 'middle',
29
+ fontSize: 25,
30
+ lineHeight: 1,
31
+ characterSpacing: 0,
32
+ fontColor: '#E5CD8B',
33
+ backgroundColor: '',
34
+ opacity: 1,
35
+ dynamicFontSize: { min: 6, max: 30, fit: 'vertical' },
36
+ fontName: 'font_light',
37
+ readOnly: false,
38
+ },
39
+ {
40
+ name: 'clientLabel',
41
+ type: 'text',
42
+ position: { x: 10, y: 60 },
43
+ content: '',
44
+ width: 84.68,
45
+ height: 10,
46
+ rotate: 0,
47
+ alignment: 'left',
48
+ verticalAlignment: 'top',
49
+ fontSize: 10,
50
+ fontWeight: 400,
51
+ lineHeight: 1,
52
+ characterSpacing: 0,
53
+ fontColor: '#2C3139',
54
+ backgroundColor: '',
55
+ opacity: 1,
56
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
57
+ fontName: 'font_bold',
58
+ readOnly: false,
59
+ },
60
+ {
61
+ name: 'clientValue',
62
+ type: 'text',
63
+ content: '',
64
+ position: { x: 10, y: 65 },
65
+ width: 84.95,
66
+ height: 17.67,
67
+ rotate: 0,
68
+ alignment: 'left',
69
+ verticalAlignment: 'top',
70
+ fontSize: 9,
71
+ lineHeight: 1.4,
72
+ characterSpacing: 0,
73
+ fontColor: '#909E98',
74
+ backgroundColor: '',
75
+ opacity: 1,
76
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
77
+ fontName: 'font_light',
78
+ readOnly: false,
79
+ },
80
+ {
81
+ name: 'refNo',
82
+ type: 'text',
83
+ content: '',
84
+ position: { x: 130, y: 29.72 },
85
+ width: 70.13,
86
+ height: 36.43,
87
+ rotate: 0,
88
+ alignment: 'right',
89
+ verticalAlignment: 'right',
90
+ fontSize: 9,
91
+ lineHeight: 1,
92
+ characterSpacing: 0,
93
+ fontColor: '#2C3139',
94
+ backgroundColor: '',
95
+ opacity: 1,
96
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
97
+ fontName: 'font_bold',
98
+ readOnly: false,
99
+ },
100
+ {
101
+ name: 'items',
102
+ type: 'table',
103
+ position: { x: 10, y: 90 },
104
+ width: 190,
105
+ height: 13.528,
106
+ showHead: true,
107
+ head: ['NO.', 'CHAT SESSION ID', 'TYPE', 'DATE', 'AMOUNT EARNED', 'FEE', 'COMMISSION', 'TOTAL'],
108
+ headWidthPercentages: [
109
+ 6,
110
+ 15,
111
+ 16,
112
+ 15,
113
+ 18,
114
+ 15,
115
+ 7,
116
+ 7,
117
+ ],
118
+ fontName: 'font_regular',
119
+ tableStyles: { borderWidth: 0, borderColor: '#000000' },
120
+ headStyles: {
121
+ fontName: 'font_bold',
122
+ fontSize: 10,
123
+ characterSpacing: 0,
124
+ alignment: 'left',
125
+ verticalAlignment: 'middle',
126
+ lineHeight: 1,
127
+ fontColor: '#2C3139',
128
+ borderColor: '#EFEFD1',
129
+ backgroundColor: '',
130
+ borderWidth: { top: 0, right: 0, bottom: 1, left: 0 },
131
+ padding: { top: 2, right: 2, bottom: 2, left: 2 },
132
+ },
133
+ bodyStyles: {
134
+ fontName: 'font_regular',
135
+ fontSize: 10,
136
+ characterSpacing: 0,
137
+ alignment: 'left',
138
+ verticalAlignment: 'middle',
139
+ lineHeight: 1,
140
+ fontColor: '#7c7e7d',
141
+ borderColor: '#ECF1F1',
142
+ backgroundColor: '#D3D3D3',
143
+ alternateBackgroundColor: '#FFFFFF',
144
+ borderWidth: { top: 0, right: 0, bottom: 0.75, left: 0 },
145
+ padding: { top: 2, right: 2, bottom: 2, left: 2 },
146
+ },
147
+ columnStyles: {
148
+ alignment: { 0: 'left', 1: 'left', 2: 'left', 3: 'left', 4: 'left', 5: 'right' },
149
+ },
150
+ readOnly: false,
151
+ content: '[]',
152
+ },
153
+ {
154
+ name: 'subTotalLabel',
155
+ type: 'text',
156
+ position: { x: 126.59, y: 110 },
157
+ content: '',
158
+ width: 25.42,
159
+ height: 8.61,
160
+ rotate: 0,
161
+ alignment: 'left',
162
+ verticalAlignment: 'middle',
163
+ fontSize: 10,
164
+ lineHeight: 1,
165
+ characterSpacing: 0,
166
+ fontColor: '#2C3139',
167
+ backgroundColor: '',
168
+ opacity: 1,
169
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
170
+ fontName: 'font_bold',
171
+ readOnly: false,
172
+ },
173
+ {
174
+ name: 'subTotalValue',
175
+ type: 'text',
176
+ content: '$500',
177
+ position: { x: 167.26, y: 110 },
178
+ width: 32.48,
179
+ height: 7.56,
180
+ rotate: 0,
181
+ alignment: 'right',
182
+ verticalAlignment: 'middle',
183
+ fontSize: 10,
184
+ lineHeight: 1,
185
+ characterSpacing: 0,
186
+ fontColor: '#2C3139',
187
+ backgroundColor: '',
188
+ opacity: 1,
189
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
190
+ fontName: 'font_regular',
191
+ readOnly: false,
192
+ },
193
+ {
194
+ name: 'subTotalDivider',
195
+ type: 'line',
196
+ position: { x: 127.09, y: 118 },
197
+ width: 71.91,
198
+ height: 1,
199
+ rotate: 0,
200
+ opacity: 1,
201
+ readOnly: true,
202
+ color: '#ECF1F1',
203
+ },
204
+ {
205
+ name: 'totalLabel',
206
+ type: 'text',
207
+ position: { x: 128.05, y: 123 },
208
+ content: '',
209
+ width: 22.01,
210
+ height: 10.2,
211
+ rotate: 0,
212
+ alignment: 'left',
213
+ verticalAlignment: 'middle',
214
+ fontSize: 14,
215
+ lineHeight: 1,
216
+ characterSpacing: 0,
217
+ fontColor: '#2C3139',
218
+ fontName: 'font_bold',
219
+ backgroundColor: '',
220
+ dynamicFontSize: { min: 6, max: 14, fit: 'vertical' },
221
+ opacity: 1,
222
+ readOnly: false,
223
+ },
224
+ {
225
+ name: 'totalValue',
226
+ type: 'text',
227
+ content: '',
228
+ position: { x: 167.26, y: 123 },
229
+ width: 32.48,
230
+ height: 9.94,
231
+ rotate: 0,
232
+ alignment: 'right',
233
+ verticalAlignment: 'middle',
234
+ fontSize: 14,
235
+ lineHeight: 1,
236
+ characterSpacing: 0,
237
+ fontColor: '#2C3139',
238
+ backgroundColor: '',
239
+ opacity: 1,
240
+ dynamicFontSize: { min: 6, max: 14, fit: 'vertical' },
241
+ fontName: 'font_regular',
242
+ readOnly: false,
243
+ },
244
+ {
245
+ name: 'marketingNote',
246
+ type: 'text',
247
+ position: { x: 177, y: 103 },
248
+ required: false,
249
+ content: '',
250
+ width: 60,
251
+ height: 8,
252
+ rotate: 90,
253
+ alignment: 'middle',
254
+ verticalAlignment: 'middle',
255
+ fontSize: 8,
256
+ lineHeight: 1,
257
+ characterSpacing: 0,
258
+ fontColor: '#909E98',
259
+ backgroundColor: '',
260
+ opacity: 1,
261
+ strikethrough: false,
262
+ underline: false,
263
+ dynamicFontSize: { min: 6, max: 8, fit: 'vertical' },
264
+ fontName: 'font_light',
265
+ readOnly: false,
266
+ },
267
+ {
268
+ name: 'companyValue',
269
+ type: 'text',
270
+ content: '',
271
+ position: { x: 10, y: 35 },
272
+ width: 84.95,
273
+ height: 17.67,
274
+ rotate: 0,
275
+ alignment: 'left',
276
+ verticalAlignment: 'top',
277
+ fontSize: 9,
278
+ lineHeight: 1.4,
279
+ characterSpacing: 0,
280
+ fontColor: '#909E98',
281
+ backgroundColor: '',
282
+ opacity: 1,
283
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
284
+ fontName: 'font_light',
285
+ readOnly: false,
286
+ },
287
+ {
288
+ name: 'companyLabel',
289
+ type: 'text',
290
+ position: { x: 10, y: 30 },
291
+ content: '',
292
+ width: 84.68,
293
+ height: 10,
294
+ rotate: 0,
295
+ alignment: 'left',
296
+ verticalAlignment: 'top',
297
+ fontSize: 10,
298
+ fontWeight: 400,
299
+ lineHeight: 1,
300
+ characterSpacing: 0,
301
+ fontColor: '#2C3139',
302
+ backgroundColor: '',
303
+ opacity: 1,
304
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
305
+ fontName: 'font_bold',
306
+ readOnly: false,
307
+ },
308
+ {
309
+ name: 'totalDivider',
310
+ type: 'line',
311
+ position: { x: 127.09, y: 133 },
312
+ width: 72.91,
313
+ height: 1.2,
314
+ rotate: 0,
315
+ opacity: 1,
316
+ readOnly: false,
317
+ color: '#EFEFD1',
318
+ },
319
+ ],
320
+ ],
321
+ };