@pdfme/common 3.1.5-dev.9 → 3.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/dist/cjs/src/schema.js
CHANGED
@@ -29,6 +29,9 @@ exports.Dict = zod_1.z.object({
|
|
29
29
|
bulkUpdateFieldName: zod_1.z.string(),
|
30
30
|
hexColorPrompt: zod_1.z.string(),
|
31
31
|
// -----------------used in schemas-----------------
|
32
|
+
'schemas.color': zod_1.z.string(),
|
33
|
+
'schemas.borderWidth': zod_1.z.string(),
|
34
|
+
'schemas.borderColor': zod_1.z.string(),
|
32
35
|
'schemas.textColor': zod_1.z.string(),
|
33
36
|
'schemas.bgColor': zod_1.z.string(),
|
34
37
|
'schemas.horizontal': zod_1.z.string(),
|
@@ -50,7 +53,6 @@ exports.Dict = zod_1.z.object({
|
|
50
53
|
'schemas.text.fit': zod_1.z.string(),
|
51
54
|
'schemas.text.dynamicFontSize': zod_1.z.string(),
|
52
55
|
'schemas.barcodes.barColor': zod_1.z.string(),
|
53
|
-
'schemas.line.color': zod_1.z.string(),
|
54
56
|
});
|
55
57
|
exports.Mode = zod_1.z.enum(['viewer', 'form', 'designer']);
|
56
58
|
exports.Size = zod_1.z.object({ height: zod_1.z.number(), width: zod_1.z.number() });
|
@@ -58,6 +60,7 @@ exports.Schema = zod_1.z
|
|
58
60
|
.object({
|
59
61
|
type: zod_1.z.string(),
|
60
62
|
readOnly: zod_1.z.boolean().optional(),
|
63
|
+
readOnlyValue: zod_1.z.string().optional(),
|
61
64
|
position: zod_1.z.object({ x: zod_1.z.number(), y: zod_1.z.number() }),
|
62
65
|
width: zod_1.z.number(),
|
63
66
|
height: zod_1.z.number(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAA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MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,WAAW,CAAC,CAAC;AAEvF,QAAA,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,iBAAiB;IAC/B,OAAO,EAAE,iBAAS,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,cAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAE3D,QAAA,aAAa,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
package/dist/esm/src/schema.js
CHANGED
@@ -26,6 +26,9 @@ export const Dict = z.object({
|
|
26
26
|
bulkUpdateFieldName: z.string(),
|
27
27
|
hexColorPrompt: z.string(),
|
28
28
|
// -----------------used in schemas-----------------
|
29
|
+
'schemas.color': z.string(),
|
30
|
+
'schemas.borderWidth': z.string(),
|
31
|
+
'schemas.borderColor': z.string(),
|
29
32
|
'schemas.textColor': z.string(),
|
30
33
|
'schemas.bgColor': z.string(),
|
31
34
|
'schemas.horizontal': z.string(),
|
@@ -47,7 +50,6 @@ export const Dict = z.object({
|
|
47
50
|
'schemas.text.fit': z.string(),
|
48
51
|
'schemas.text.dynamicFontSize': z.string(),
|
49
52
|
'schemas.barcodes.barColor': z.string(),
|
50
|
-
'schemas.line.color': z.string(),
|
51
53
|
});
|
52
54
|
export const Mode = z.enum(['viewer', 'form', 'designer']);
|
53
55
|
export const Size = z.object({ height: z.number(), width: z.number() });
|
@@ -55,6 +57,7 @@ export const Schema = z
|
|
55
57
|
.object({
|
56
58
|
type: z.string(),
|
57
59
|
readOnly: z.boolean().optional(),
|
60
|
+
readOnlyValue: z.string().optional(),
|
58
61
|
position: z.object({ x: z.number(), y: z.number() }),
|
59
62
|
width: z.number(),
|
60
63
|
height: z.number(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.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AC;IAC5C,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAA6B,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,WAAW,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,iBAAiB;IAC/B,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
@@ -23,6 +23,9 @@ export declare const Dict: z.ZodObject<{
|
|
23
23
|
commitBulkUpdateFieldName: z.ZodString;
|
24
24
|
bulkUpdateFieldName: z.ZodString;
|
25
25
|
hexColorPrompt: z.ZodString;
|
26
|
+
'schemas.color': z.ZodString;
|
27
|
+
'schemas.borderWidth': z.ZodString;
|
28
|
+
'schemas.borderColor': z.ZodString;
|
26
29
|
'schemas.textColor': z.ZodString;
|
27
30
|
'schemas.bgColor': z.ZodString;
|
28
31
|
'schemas.horizontal': z.ZodString;
|
@@ -44,7 +47,6 @@ export declare const Dict: z.ZodObject<{
|
|
44
47
|
'schemas.text.fit': z.ZodString;
|
45
48
|
'schemas.text.dynamicFontSize': z.ZodString;
|
46
49
|
'schemas.barcodes.barColor': z.ZodString;
|
47
|
-
'schemas.line.color': z.ZodString;
|
48
50
|
}, "strip", z.ZodTypeAny, {
|
49
51
|
cancel: string;
|
50
52
|
field: string;
|
@@ -68,6 +70,9 @@ export declare const Dict: z.ZodObject<{
|
|
68
70
|
commitBulkUpdateFieldName: string;
|
69
71
|
bulkUpdateFieldName: string;
|
70
72
|
hexColorPrompt: string;
|
73
|
+
'schemas.color': string;
|
74
|
+
'schemas.borderWidth': string;
|
75
|
+
'schemas.borderColor': string;
|
71
76
|
'schemas.textColor': string;
|
72
77
|
'schemas.bgColor': string;
|
73
78
|
'schemas.horizontal': string;
|
@@ -89,7 +94,6 @@ export declare const Dict: z.ZodObject<{
|
|
89
94
|
'schemas.text.fit': string;
|
90
95
|
'schemas.text.dynamicFontSize': string;
|
91
96
|
'schemas.barcodes.barColor': string;
|
92
|
-
'schemas.line.color': string;
|
93
97
|
}, {
|
94
98
|
cancel: string;
|
95
99
|
field: string;
|
@@ -113,6 +117,9 @@ export declare const Dict: z.ZodObject<{
|
|
113
117
|
commitBulkUpdateFieldName: string;
|
114
118
|
bulkUpdateFieldName: string;
|
115
119
|
hexColorPrompt: string;
|
120
|
+
'schemas.color': string;
|
121
|
+
'schemas.borderWidth': string;
|
122
|
+
'schemas.borderColor': string;
|
116
123
|
'schemas.textColor': string;
|
117
124
|
'schemas.bgColor': string;
|
118
125
|
'schemas.horizontal': string;
|
@@ -134,7 +141,6 @@ export declare const Dict: z.ZodObject<{
|
|
134
141
|
'schemas.text.fit': string;
|
135
142
|
'schemas.text.dynamicFontSize': string;
|
136
143
|
'schemas.barcodes.barColor': string;
|
137
|
-
'schemas.line.color': string;
|
138
144
|
}>;
|
139
145
|
export declare const Mode: z.ZodEnum<["viewer", "form", "designer"]>;
|
140
146
|
export declare const Size: z.ZodObject<{
|
@@ -150,6 +156,7 @@ export declare const Size: z.ZodObject<{
|
|
150
156
|
export declare const Schema: z.ZodObject<{
|
151
157
|
type: z.ZodString;
|
152
158
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
159
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
153
160
|
position: z.ZodObject<{
|
154
161
|
x: z.ZodNumber;
|
155
162
|
y: z.ZodNumber;
|
@@ -167,6 +174,7 @@ export declare const Schema: z.ZodObject<{
|
|
167
174
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
168
175
|
type: z.ZodString;
|
169
176
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
177
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
170
178
|
position: z.ZodObject<{
|
171
179
|
x: z.ZodNumber;
|
172
180
|
y: z.ZodNumber;
|
@@ -184,6 +192,7 @@ export declare const Schema: z.ZodObject<{
|
|
184
192
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
185
193
|
type: z.ZodString;
|
186
194
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
195
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
187
196
|
position: z.ZodObject<{
|
188
197
|
x: z.ZodNumber;
|
189
198
|
y: z.ZodNumber;
|
@@ -206,6 +215,7 @@ export declare const SchemaForUI: z.ZodObject<{
|
|
206
215
|
rotate: z.ZodOptional<z.ZodNumber>;
|
207
216
|
type: z.ZodString;
|
208
217
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
218
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
209
219
|
position: z.ZodObject<{
|
210
220
|
x: z.ZodNumber;
|
211
221
|
y: z.ZodNumber;
|
@@ -233,6 +243,7 @@ export declare const SchemaForUI: z.ZodObject<{
|
|
233
243
|
opacity?: number | undefined;
|
234
244
|
rotate?: number | undefined;
|
235
245
|
readOnly?: boolean | undefined;
|
246
|
+
readOnlyValue?: string | undefined;
|
236
247
|
}, {
|
237
248
|
width: number;
|
238
249
|
height: number;
|
@@ -247,6 +258,7 @@ export declare const SchemaForUI: z.ZodObject<{
|
|
247
258
|
opacity?: number | undefined;
|
248
259
|
rotate?: number | undefined;
|
249
260
|
readOnly?: boolean | undefined;
|
261
|
+
readOnlyValue?: string | undefined;
|
250
262
|
}>;
|
251
263
|
export declare const Font: z.ZodRecord<z.ZodString, z.ZodObject<{
|
252
264
|
data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
|
@@ -266,6 +278,7 @@ export declare const Template: z.ZodObject<{
|
|
266
278
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
267
279
|
type: z.ZodString;
|
268
280
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
281
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
269
282
|
position: z.ZodObject<{
|
270
283
|
x: z.ZodNumber;
|
271
284
|
y: z.ZodNumber;
|
@@ -283,6 +296,7 @@ export declare const Template: z.ZodObject<{
|
|
283
296
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
284
297
|
type: z.ZodString;
|
285
298
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
299
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
286
300
|
position: z.ZodObject<{
|
287
301
|
x: z.ZodNumber;
|
288
302
|
y: z.ZodNumber;
|
@@ -300,6 +314,7 @@ export declare const Template: z.ZodObject<{
|
|
300
314
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
301
315
|
type: z.ZodString;
|
302
316
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
317
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
303
318
|
position: z.ZodObject<{
|
304
319
|
x: z.ZodNumber;
|
305
320
|
y: z.ZodNumber;
|
@@ -322,6 +337,7 @@ export declare const Template: z.ZodObject<{
|
|
322
337
|
schemas: Record<string, z.objectOutputType<{
|
323
338
|
type: z.ZodString;
|
324
339
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
340
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
325
341
|
position: z.ZodObject<{
|
326
342
|
x: z.ZodNumber;
|
327
343
|
y: z.ZodNumber;
|
@@ -344,6 +360,7 @@ export declare const Template: z.ZodObject<{
|
|
344
360
|
schemas: Record<string, z.objectInputType<{
|
345
361
|
type: z.ZodString;
|
346
362
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
363
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
347
364
|
position: z.ZodObject<{
|
348
365
|
x: z.ZodNumber;
|
349
366
|
y: z.ZodNumber;
|
@@ -439,6 +456,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
439
456
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
440
457
|
type: z.ZodString;
|
441
458
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
459
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
442
460
|
position: z.ZodObject<{
|
443
461
|
x: z.ZodNumber;
|
444
462
|
y: z.ZodNumber;
|
@@ -456,6 +474,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
456
474
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
457
475
|
type: z.ZodString;
|
458
476
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
477
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
459
478
|
position: z.ZodObject<{
|
460
479
|
x: z.ZodNumber;
|
461
480
|
y: z.ZodNumber;
|
@@ -473,6 +492,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
473
492
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
474
493
|
type: z.ZodString;
|
475
494
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
495
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
476
496
|
position: z.ZodObject<{
|
477
497
|
x: z.ZodNumber;
|
478
498
|
y: z.ZodNumber;
|
@@ -495,6 +515,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
495
515
|
schemas: Record<string, z.objectOutputType<{
|
496
516
|
type: z.ZodString;
|
497
517
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
518
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
498
519
|
position: z.ZodObject<{
|
499
520
|
x: z.ZodNumber;
|
500
521
|
y: z.ZodNumber;
|
@@ -517,6 +538,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
517
538
|
schemas: Record<string, z.objectInputType<{
|
518
539
|
type: z.ZodString;
|
519
540
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
541
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
520
542
|
position: z.ZodObject<{
|
521
543
|
x: z.ZodNumber;
|
522
544
|
y: z.ZodNumber;
|
@@ -625,6 +647,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
625
647
|
schemas: Record<string, z.objectOutputType<{
|
626
648
|
type: z.ZodString;
|
627
649
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
650
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
628
651
|
position: z.ZodObject<{
|
629
652
|
x: z.ZodNumber;
|
630
653
|
y: z.ZodNumber;
|
@@ -679,6 +702,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
679
702
|
schemas: Record<string, z.objectInputType<{
|
680
703
|
type: z.ZodString;
|
681
704
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
705
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
682
706
|
position: z.ZodObject<{
|
683
707
|
x: z.ZodNumber;
|
684
708
|
y: z.ZodNumber;
|
@@ -786,6 +810,7 @@ export declare const UIProps: z.ZodObject<{
|
|
786
810
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
787
811
|
type: z.ZodString;
|
788
812
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
813
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
789
814
|
position: z.ZodObject<{
|
790
815
|
x: z.ZodNumber;
|
791
816
|
y: z.ZodNumber;
|
@@ -803,6 +828,7 @@ export declare const UIProps: z.ZodObject<{
|
|
803
828
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
804
829
|
type: z.ZodString;
|
805
830
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
831
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
806
832
|
position: z.ZodObject<{
|
807
833
|
x: z.ZodNumber;
|
808
834
|
y: z.ZodNumber;
|
@@ -820,6 +846,7 @@ export declare const UIProps: z.ZodObject<{
|
|
820
846
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
821
847
|
type: z.ZodString;
|
822
848
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
849
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
823
850
|
position: z.ZodObject<{
|
824
851
|
x: z.ZodNumber;
|
825
852
|
y: z.ZodNumber;
|
@@ -842,6 +869,7 @@ export declare const UIProps: z.ZodObject<{
|
|
842
869
|
schemas: Record<string, z.objectOutputType<{
|
843
870
|
type: z.ZodString;
|
844
871
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
872
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
845
873
|
position: z.ZodObject<{
|
846
874
|
x: z.ZodNumber;
|
847
875
|
y: z.ZodNumber;
|
@@ -864,6 +892,7 @@ export declare const UIProps: z.ZodObject<{
|
|
864
892
|
schemas: Record<string, z.objectInputType<{
|
865
893
|
type: z.ZodString;
|
866
894
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
895
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
867
896
|
position: z.ZodObject<{
|
868
897
|
x: z.ZodNumber;
|
869
898
|
y: z.ZodNumber;
|
@@ -954,6 +983,7 @@ export declare const UIProps: z.ZodObject<{
|
|
954
983
|
schemas: Record<string, z.objectOutputType<{
|
955
984
|
type: z.ZodString;
|
956
985
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
986
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
957
987
|
position: z.ZodObject<{
|
958
988
|
x: z.ZodNumber;
|
959
989
|
y: z.ZodNumber;
|
@@ -1002,6 +1032,7 @@ export declare const UIProps: z.ZodObject<{
|
|
1002
1032
|
schemas: Record<string, z.objectInputType<{
|
1003
1033
|
type: z.ZodString;
|
1004
1034
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1035
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1005
1036
|
position: z.ZodObject<{
|
1006
1037
|
x: z.ZodNumber;
|
1007
1038
|
y: z.ZodNumber;
|
@@ -1103,6 +1134,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1103
1134
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
1104
1135
|
type: z.ZodString;
|
1105
1136
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1137
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1106
1138
|
position: z.ZodObject<{
|
1107
1139
|
x: z.ZodNumber;
|
1108
1140
|
y: z.ZodNumber;
|
@@ -1120,6 +1152,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1120
1152
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
1121
1153
|
type: z.ZodString;
|
1122
1154
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1155
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1123
1156
|
position: z.ZodObject<{
|
1124
1157
|
x: z.ZodNumber;
|
1125
1158
|
y: z.ZodNumber;
|
@@ -1137,6 +1170,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1137
1170
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
1138
1171
|
type: z.ZodString;
|
1139
1172
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1173
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1140
1174
|
position: z.ZodObject<{
|
1141
1175
|
x: z.ZodNumber;
|
1142
1176
|
y: z.ZodNumber;
|
@@ -1159,6 +1193,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1159
1193
|
schemas: Record<string, z.objectOutputType<{
|
1160
1194
|
type: z.ZodString;
|
1161
1195
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1196
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1162
1197
|
position: z.ZodObject<{
|
1163
1198
|
x: z.ZodNumber;
|
1164
1199
|
y: z.ZodNumber;
|
@@ -1181,6 +1216,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1181
1216
|
schemas: Record<string, z.objectInputType<{
|
1182
1217
|
type: z.ZodString;
|
1183
1218
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1219
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1184
1220
|
position: z.ZodObject<{
|
1185
1221
|
x: z.ZodNumber;
|
1186
1222
|
y: z.ZodNumber;
|
@@ -1220,6 +1256,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1220
1256
|
schemas: Record<string, z.objectOutputType<{
|
1221
1257
|
type: z.ZodString;
|
1222
1258
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1259
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1223
1260
|
position: z.ZodObject<{
|
1224
1261
|
x: z.ZodNumber;
|
1225
1262
|
y: z.ZodNumber;
|
@@ -1269,6 +1306,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1269
1306
|
schemas: Record<string, z.objectInputType<{
|
1270
1307
|
type: z.ZodString;
|
1271
1308
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1309
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1272
1310
|
position: z.ZodObject<{
|
1273
1311
|
x: z.ZodNumber;
|
1274
1312
|
y: z.ZodNumber;
|
@@ -1371,6 +1409,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1371
1409
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
1372
1410
|
type: z.ZodString;
|
1373
1411
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1412
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1374
1413
|
position: z.ZodObject<{
|
1375
1414
|
x: z.ZodNumber;
|
1376
1415
|
y: z.ZodNumber;
|
@@ -1388,6 +1427,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1388
1427
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
1389
1428
|
type: z.ZodString;
|
1390
1429
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1430
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1391
1431
|
position: z.ZodObject<{
|
1392
1432
|
x: z.ZodNumber;
|
1393
1433
|
y: z.ZodNumber;
|
@@ -1405,6 +1445,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1405
1445
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
1406
1446
|
type: z.ZodString;
|
1407
1447
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1448
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1408
1449
|
position: z.ZodObject<{
|
1409
1450
|
x: z.ZodNumber;
|
1410
1451
|
y: z.ZodNumber;
|
@@ -1427,6 +1468,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1427
1468
|
schemas: Record<string, z.objectOutputType<{
|
1428
1469
|
type: z.ZodString;
|
1429
1470
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1471
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1430
1472
|
position: z.ZodObject<{
|
1431
1473
|
x: z.ZodNumber;
|
1432
1474
|
y: z.ZodNumber;
|
@@ -1449,6 +1491,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1449
1491
|
schemas: Record<string, z.objectInputType<{
|
1450
1492
|
type: z.ZodString;
|
1451
1493
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1494
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1452
1495
|
position: z.ZodObject<{
|
1453
1496
|
x: z.ZodNumber;
|
1454
1497
|
y: z.ZodNumber;
|
@@ -1487,6 +1530,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1487
1530
|
schemas: Record<string, z.objectOutputType<{
|
1488
1531
|
type: z.ZodString;
|
1489
1532
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1533
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1490
1534
|
position: z.ZodObject<{
|
1491
1535
|
x: z.ZodNumber;
|
1492
1536
|
y: z.ZodNumber;
|
@@ -1535,6 +1579,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1535
1579
|
schemas: Record<string, z.objectInputType<{
|
1536
1580
|
type: z.ZodString;
|
1537
1581
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1582
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1538
1583
|
position: z.ZodObject<{
|
1539
1584
|
x: z.ZodNumber;
|
1540
1585
|
y: z.ZodNumber;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pdfme/common",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.2.0",
|
4
4
|
"sideEffects": false,
|
5
5
|
"author": "hand-dot",
|
6
6
|
"license": "MIT",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}
|
33
33
|
},
|
34
34
|
"scripts": {
|
35
|
-
"
|
35
|
+
"dev": "tsc -p tsconfig.esm.json -w",
|
36
36
|
"build": "npm-run-all --parallel build:cjs build:esm",
|
37
37
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
38
38
|
"build:esm": "tsc -p tsconfig.esm.json",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"prettier": "prettier --write 'src/**/*.ts'"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@pdfme/pdf-lib": "^1.
|
46
|
+
"@pdfme/pdf-lib": "^1.18.3",
|
47
47
|
"antd": "^5.11.2",
|
48
48
|
"buffer": "^6.0.3",
|
49
49
|
"form-render": "^2.2.20",
|
package/src/schema.ts
CHANGED
@@ -28,6 +28,9 @@ export const Dict = z.object({
|
|
28
28
|
bulkUpdateFieldName: z.string(),
|
29
29
|
hexColorPrompt: z.string(),
|
30
30
|
// -----------------used in schemas-----------------
|
31
|
+
'schemas.color': z.string(),
|
32
|
+
'schemas.borderWidth': z.string(),
|
33
|
+
'schemas.borderColor': z.string(),
|
31
34
|
'schemas.textColor': z.string(),
|
32
35
|
'schemas.bgColor': z.string(),
|
33
36
|
'schemas.horizontal': z.string(),
|
@@ -51,8 +54,6 @@ export const Dict = z.object({
|
|
51
54
|
'schemas.text.dynamicFontSize': z.string(),
|
52
55
|
|
53
56
|
'schemas.barcodes.barColor': z.string(),
|
54
|
-
|
55
|
-
'schemas.line.color': z.string(),
|
56
57
|
});
|
57
58
|
export const Mode = z.enum(['viewer', 'form', 'designer']);
|
58
59
|
|
@@ -62,6 +63,7 @@ export const Schema = z
|
|
62
63
|
.object({
|
63
64
|
type: z.string(),
|
64
65
|
readOnly: z.boolean().optional(),
|
66
|
+
readOnlyValue: z.string().optional(),
|
65
67
|
position: z.object({ x: z.number(), y: z.number() }),
|
66
68
|
width: z.number(),
|
67
69
|
height: z.number(),
|