@appcorp/app-corp-vista 0.1.95 → 0.1.96

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.95",
3
+ "version": "0.1.96",
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",
@@ -38,6 +38,8 @@
38
38
  "@mdx-js/react": "^3.1.0",
39
39
  "@mdxeditor/editor": "^3.32.3",
40
40
  "@next/third-parties": "^15",
41
+ "@pdfme/common": "^5.4.0",
42
+ "@pdfme/generator": "^5.4.0",
41
43
  "@react-jvectormap/core": "^1.0.4",
42
44
  "@react-jvectormap/world": "^1.1.2",
43
45
  "@react-pakistan/react-icon-collection": "^3.5.0",
@@ -0,0 +1,2 @@
1
+ import { Template } from '@pdfme/common';
2
+ export declare const invoiceTemplateV1: Template;
@@ -0,0 +1,404 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceTemplateV1 = void 0;
4
+ var common_1 = require("@pdfme/common");
5
+ exports.invoiceTemplateV1 = {
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: 'dateLabel',
102
+ type: 'text',
103
+ position: { x: 150, y: 34 },
104
+ content: '',
105
+ width: 11,
106
+ height: 8,
107
+ rotate: 0,
108
+ alignment: 'center',
109
+ verticalAlignment: 'top',
110
+ fontSize: 9,
111
+ lineHeight: 1,
112
+ characterSpacing: 0,
113
+ fontColor: '#909E98',
114
+ backgroundColor: '',
115
+ opacity: 1,
116
+ dynamicFontSize: { min: 6, max: 9, fit: 'vertical' },
117
+ fontName: 'font_light',
118
+ readOnly: false,
119
+ },
120
+ {
121
+ name: 'dateValue',
122
+ type: 'text',
123
+ content: '',
124
+ position: { x: 160, y: 34 },
125
+ width: 40,
126
+ height: 8,
127
+ rotate: 0,
128
+ alignment: 'right',
129
+ verticalAlignment: 'top',
130
+ fontSize: 9,
131
+ lineHeight: 1,
132
+ characterSpacing: 0,
133
+ fontColor: '#909E98',
134
+ backgroundColor: '',
135
+ opacity: 1,
136
+ dynamicFontSize: { min: 6, max: 9, fit: 'vertical' },
137
+ fontName: 'font_light',
138
+ readOnly: false,
139
+ },
140
+ {
141
+ name: 'items',
142
+ type: 'table',
143
+ position: { x: 10, y: 90 },
144
+ width: 190,
145
+ height: 13.528,
146
+ showHead: true,
147
+ head: ['TENANT NAME', 'PROPERTY ADDRESS', 'DAYS', 'RENT', 'TOTAL'],
148
+ headWidthPercentages: [
149
+ 34,
150
+ 34,
151
+ 10,
152
+ 10,
153
+ 12,
154
+ ],
155
+ fontName: 'font_regular',
156
+ tableStyles: { borderWidth: 0, borderColor: '#000000' },
157
+ headStyles: {
158
+ fontName: 'font_bold',
159
+ fontSize: 10,
160
+ characterSpacing: 0,
161
+ alignment: 'left',
162
+ verticalAlignment: 'middle',
163
+ lineHeight: 1,
164
+ fontColor: '#2C3139',
165
+ borderColor: '#EFEFD1',
166
+ backgroundColor: '',
167
+ borderWidth: { top: 0, right: 0, bottom: 1, left: 0 },
168
+ padding: { top: 2, right: 2, bottom: 2, left: 2 },
169
+ },
170
+ bodyStyles: {
171
+ fontName: 'font_regular',
172
+ fontSize: 10,
173
+ characterSpacing: 0,
174
+ alignment: 'left',
175
+ verticalAlignment: 'middle',
176
+ lineHeight: 1,
177
+ fontColor: '#7c7e7d',
178
+ borderColor: '#ECF1F1',
179
+ backgroundColor: '#D3D3D3',
180
+ alternateBackgroundColor: '#FFFFFF',
181
+ borderWidth: { top: 0, right: 0, bottom: 0.75, left: 0 },
182
+ padding: { top: 2, right: 2, bottom: 2, left: 2 },
183
+ },
184
+ columnStyles: {
185
+ alignment: { 0: 'left', 1: 'left', 2: 'right', 3: 'right', 4: 'right' },
186
+ },
187
+ readOnly: false,
188
+ content: '[]',
189
+ },
190
+ {
191
+ name: 'subTotalLabel',
192
+ type: 'text',
193
+ position: { x: 126.59, y: 110 },
194
+ content: '',
195
+ width: 25.42,
196
+ height: 8.61,
197
+ rotate: 0,
198
+ alignment: 'left',
199
+ verticalAlignment: 'middle',
200
+ fontSize: 10,
201
+ lineHeight: 1,
202
+ characterSpacing: 0,
203
+ fontColor: '#2C3139',
204
+ backgroundColor: '',
205
+ opacity: 1,
206
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
207
+ fontName: 'font_bold',
208
+ readOnly: false,
209
+ },
210
+ {
211
+ name: 'subTotalValue',
212
+ type: 'text',
213
+ content: '$500',
214
+ position: { x: 173.79, y: 110 },
215
+ width: 26.21,
216
+ height: 7.56,
217
+ rotate: 0,
218
+ alignment: 'right',
219
+ verticalAlignment: 'middle',
220
+ fontSize: 10,
221
+ lineHeight: 1,
222
+ characterSpacing: 0,
223
+ fontColor: '#2C3139',
224
+ backgroundColor: '',
225
+ opacity: 1,
226
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
227
+ fontName: 'font_regular',
228
+ readOnly: false,
229
+ },
230
+ {
231
+ name: 'subTotalDivider',
232
+ type: 'line',
233
+ position: { x: 126.56, y: 118 },
234
+ width: 71.91,
235
+ height: 1,
236
+ rotate: 0,
237
+ opacity: 1,
238
+ readOnly: true,
239
+ color: '#ECF1F1',
240
+ },
241
+ {
242
+ name: 'totalLabel',
243
+ type: 'text',
244
+ position: { x: 128.05, y: 123 },
245
+ content: '',
246
+ width: 22.01,
247
+ height: 10.2,
248
+ rotate: 0,
249
+ alignment: 'left',
250
+ verticalAlignment: 'middle',
251
+ fontSize: 14,
252
+ lineHeight: 1,
253
+ characterSpacing: 0,
254
+ fontColor: '#2C3139',
255
+ fontName: 'font_bold',
256
+ backgroundColor: '',
257
+ dynamicFontSize: { min: 6, max: 14, fit: 'vertical' },
258
+ opacity: 1,
259
+ readOnly: false,
260
+ },
261
+ {
262
+ name: 'totalValue',
263
+ type: 'text',
264
+ content: '',
265
+ position: { x: 167.26, y: 123 },
266
+ width: 32.48,
267
+ height: 9.94,
268
+ rotate: 0,
269
+ alignment: 'right',
270
+ verticalAlignment: 'middle',
271
+ fontSize: 14,
272
+ lineHeight: 1,
273
+ characterSpacing: 0,
274
+ fontColor: '#2C3139',
275
+ backgroundColor: '',
276
+ opacity: 1,
277
+ dynamicFontSize: { min: 6, max: 14, fit: 'vertical' },
278
+ fontName: 'font_regular',
279
+ readOnly: false,
280
+ },
281
+ {
282
+ name: 'noteLabel',
283
+ type: 'text',
284
+ position: { x: 190, y: 40 },
285
+ required: false,
286
+ content: 'Note',
287
+ width: 10,
288
+ height: 6.56,
289
+ rotate: 0,
290
+ alignment: 'right',
291
+ verticalAlignment: 'top',
292
+ fontSize: 10,
293
+ lineHeight: 1,
294
+ characterSpacing: 0,
295
+ fontColor: '#2C3139',
296
+ backgroundColor: '',
297
+ opacity: 1,
298
+ strikethrough: false,
299
+ underline: false,
300
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
301
+ fontName: 'font_bold',
302
+ readOnly: false,
303
+ },
304
+ {
305
+ name: 'noteValue',
306
+ type: 'text',
307
+ position: { x: 120, y: 45 },
308
+ required: false,
309
+ content: '',
310
+ width: 80,
311
+ height: 9,
312
+ rotate: 0,
313
+ alignment: 'right',
314
+ verticalAlignment: 'top',
315
+ fontSize: 10,
316
+ lineHeight: 1,
317
+ characterSpacing: 0,
318
+ fontColor: '#909E98',
319
+ backgroundColor: '',
320
+ opacity: 1,
321
+ strikethrough: false,
322
+ underline: false,
323
+ dynamicFontSize: { min: 8, max: 10, fit: 'vertical' },
324
+ fontName: 'font_light',
325
+ readOnly: false,
326
+ },
327
+ {
328
+ name: 'marketingNote',
329
+ type: 'text',
330
+ position: { x: 177, y: 103 },
331
+ required: false,
332
+ content: '',
333
+ width: 60,
334
+ height: 8,
335
+ rotate: 90,
336
+ alignment: 'middle',
337
+ verticalAlignment: 'middle',
338
+ fontSize: 8,
339
+ lineHeight: 1,
340
+ characterSpacing: 0,
341
+ fontColor: '#909E98',
342
+ backgroundColor: '',
343
+ opacity: 1,
344
+ strikethrough: false,
345
+ underline: false,
346
+ dynamicFontSize: { min: 6, max: 8, fit: 'vertical' },
347
+ fontName: 'font_light',
348
+ readOnly: false,
349
+ },
350
+ {
351
+ name: 'companyValue',
352
+ type: 'text',
353
+ content: '',
354
+ position: { x: 10, y: 35 },
355
+ width: 84.95,
356
+ height: 17.67,
357
+ rotate: 0,
358
+ alignment: 'left',
359
+ verticalAlignment: 'top',
360
+ fontSize: 9,
361
+ lineHeight: 1.4,
362
+ characterSpacing: 0,
363
+ fontColor: '#909E98',
364
+ backgroundColor: '',
365
+ opacity: 1,
366
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
367
+ fontName: 'font_light',
368
+ readOnly: false,
369
+ },
370
+ {
371
+ name: 'companyLabel',
372
+ type: 'text',
373
+ position: { x: 10, y: 30 },
374
+ content: '',
375
+ width: 84.68,
376
+ height: 10,
377
+ rotate: 0,
378
+ alignment: 'left',
379
+ verticalAlignment: 'top',
380
+ fontSize: 10,
381
+ fontWeight: 400,
382
+ lineHeight: 1,
383
+ characterSpacing: 0,
384
+ fontColor: '#2C3139',
385
+ backgroundColor: '',
386
+ opacity: 1,
387
+ dynamicFontSize: { min: 6, max: 10, fit: 'vertical' },
388
+ fontName: 'font_bold',
389
+ readOnly: false,
390
+ },
391
+ {
392
+ name: 'totalLine',
393
+ type: 'line',
394
+ position: { x: 127.09, y: 133 },
395
+ width: 72.91,
396
+ height: 1.2,
397
+ rotate: 0,
398
+ opacity: 1,
399
+ readOnly: false,
400
+ color: '#EFEFD1',
401
+ },
402
+ ],
403
+ ],
404
+ };