@appcorp/app-corp-vista 0.1.100 → 0.2.0

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.1.100",
3
+ "version": "0.2.0",
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 debitReceiptTemplateV1: Template;
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.debitReceiptTemplateV1 = void 0;
4
+ var common_1 = require("@pdfme/common");
5
+ exports.debitReceiptTemplateV1 = {
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', 'INTRO AMOUNT', 'AMOUNT'],
108
+ headWidthPercentages: [
109
+ 6,
110
+ 30,
111
+ 16,
112
+ 15,
113
+ 18,
114
+ 15,
115
+ ],
116
+ fontName: 'font_regular',
117
+ tableStyles: { borderWidth: 0, borderColor: '#000000' },
118
+ headStyles: {
119
+ fontName: 'font_bold',
120
+ fontSize: 10,
121
+ characterSpacing: 0,
122
+ alignment: 'left',
123
+ verticalAlignment: 'middle',
124
+ lineHeight: 1,
125
+ fontColor: '#2C3139',
126
+ borderColor: '#EFEFD1',
127
+ backgroundColor: '',
128
+ borderWidth: { top: 0, right: 0, bottom: 1, left: 0 },
129
+ padding: { top: 2, right: 2, bottom: 2, left: 2 },
130
+ },
131
+ bodyStyles: {
132
+ fontName: 'font_regular',
133
+ fontSize: 10,
134
+ characterSpacing: 0,
135
+ alignment: 'left',
136
+ verticalAlignment: 'middle',
137
+ lineHeight: 1,
138
+ fontColor: '#7c7e7d',
139
+ borderColor: '#ECF1F1',
140
+ backgroundColor: '#D3D3D3',
141
+ alternateBackgroundColor: '#FFFFFF',
142
+ borderWidth: { top: 0, right: 0, bottom: 0.75, left: 0 },
143
+ padding: { top: 2, right: 2, bottom: 2, left: 2 },
144
+ },
145
+ columnStyles: {
146
+ alignment: { 0: 'left', 1: 'left', 2: 'left', 3: 'left', 4: 'left', 5: 'right' },
147
+ },
148
+ readOnly: false,
149
+ content: '[]',
150
+ },
151
+ {
152
+ name: 'subTotalLabel',
153
+ type: 'text',
154
+ position: { x: 126.59, y: 110 },
155
+ content: '',
156
+ width: 25.42,
157
+ height: 8.61,
158
+ rotate: 0,
159
+ alignment: 'left',
160
+ verticalAlignment: 'middle',
161
+ fontSize: 10,
162
+ lineHeight: 1,
163
+ characterSpacing: 0,
164
+ fontColor: '#2C3139',
165
+ backgroundColor: '',
166
+ opacity: 1,
167
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
168
+ fontName: 'font_bold',
169
+ readOnly: false,
170
+ },
171
+ {
172
+ name: 'subTotalValue',
173
+ type: 'text',
174
+ content: '$500',
175
+ position: { x: 167.26, y: 110 },
176
+ width: 32.48,
177
+ height: 7.56,
178
+ rotate: 0,
179
+ alignment: 'right',
180
+ verticalAlignment: 'middle',
181
+ fontSize: 10,
182
+ lineHeight: 1,
183
+ characterSpacing: 0,
184
+ fontColor: '#2C3139',
185
+ backgroundColor: '',
186
+ opacity: 1,
187
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
188
+ fontName: 'font_regular',
189
+ readOnly: false,
190
+ },
191
+ {
192
+ name: 'subTotalDivider',
193
+ type: 'line',
194
+ position: { x: 127.09, y: 118 },
195
+ width: 71.91,
196
+ height: 1,
197
+ rotate: 0,
198
+ opacity: 1,
199
+ readOnly: true,
200
+ color: '#ECF1F1',
201
+ },
202
+ {
203
+ name: 'totalLabel',
204
+ type: 'text',
205
+ position: { x: 128.05, y: 123 },
206
+ content: '',
207
+ width: 22.01,
208
+ height: 10.2,
209
+ rotate: 0,
210
+ alignment: 'left',
211
+ verticalAlignment: 'middle',
212
+ fontSize: 14,
213
+ lineHeight: 1,
214
+ characterSpacing: 0,
215
+ fontColor: '#2C3139',
216
+ fontName: 'font_bold',
217
+ backgroundColor: '',
218
+ dynamicFontSize: { min: 6, max: 14, fit: 'vertical' },
219
+ opacity: 1,
220
+ readOnly: false,
221
+ },
222
+ {
223
+ name: 'totalValue',
224
+ type: 'text',
225
+ content: '',
226
+ position: { x: 167.26, y: 123 },
227
+ width: 32.48,
228
+ height: 9.94,
229
+ rotate: 0,
230
+ alignment: 'right',
231
+ verticalAlignment: 'middle',
232
+ fontSize: 14,
233
+ lineHeight: 1,
234
+ characterSpacing: 0,
235
+ fontColor: '#2C3139',
236
+ backgroundColor: '',
237
+ opacity: 1,
238
+ dynamicFontSize: { min: 6, max: 14, fit: 'vertical' },
239
+ fontName: 'font_regular',
240
+ readOnly: false,
241
+ },
242
+ {
243
+ name: 'marketingNote',
244
+ type: 'text',
245
+ position: { x: 177, y: 103 },
246
+ required: false,
247
+ content: '',
248
+ width: 60,
249
+ height: 8,
250
+ rotate: 90,
251
+ alignment: 'middle',
252
+ verticalAlignment: 'middle',
253
+ fontSize: 8,
254
+ lineHeight: 1,
255
+ characterSpacing: 0,
256
+ fontColor: '#909E98',
257
+ backgroundColor: '',
258
+ opacity: 1,
259
+ strikethrough: false,
260
+ underline: false,
261
+ dynamicFontSize: { min: 6, max: 8, fit: 'vertical' },
262
+ fontName: 'font_light',
263
+ readOnly: false,
264
+ },
265
+ {
266
+ name: 'companyValue',
267
+ type: 'text',
268
+ content: '',
269
+ position: { x: 10, y: 35 },
270
+ width: 84.95,
271
+ height: 17.67,
272
+ rotate: 0,
273
+ alignment: 'left',
274
+ verticalAlignment: 'top',
275
+ fontSize: 9,
276
+ lineHeight: 1.4,
277
+ characterSpacing: 0,
278
+ fontColor: '#909E98',
279
+ backgroundColor: '',
280
+ opacity: 1,
281
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
282
+ fontName: 'font_light',
283
+ readOnly: false,
284
+ },
285
+ {
286
+ name: 'companyLabel',
287
+ type: 'text',
288
+ position: { x: 10, y: 30 },
289
+ content: '',
290
+ width: 84.68,
291
+ height: 10,
292
+ rotate: 0,
293
+ alignment: 'left',
294
+ verticalAlignment: 'top',
295
+ fontSize: 10,
296
+ fontWeight: 400,
297
+ lineHeight: 1,
298
+ characterSpacing: 0,
299
+ fontColor: '#2C3139',
300
+ backgroundColor: '',
301
+ opacity: 1,
302
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
303
+ fontName: 'font_bold',
304
+ readOnly: false,
305
+ },
306
+ {
307
+ name: 'totalDivider',
308
+ type: 'line',
309
+ position: { x: 127.09, y: 133 },
310
+ width: 72.91,
311
+ height: 1.2,
312
+ rotate: 0,
313
+ opacity: 1,
314
+ readOnly: false,
315
+ color: '#EFEFD1',
316
+ },
317
+ ],
318
+ ],
319
+ };