@pdfme/common 3.1.5-dev.9 → 3.2.0-dev.1
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,7 @@ 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.
|
56
|
+
'schemas.barcodes.includetext': zod_1.z.string(),
|
54
57
|
});
|
55
58
|
exports.Mode = zod_1.z.enum(['viewer', 'form', 'designer']);
|
56
59
|
exports.Size = zod_1.z.object({ height: zod_1.z.number(), width: zod_1.z.number() });
|
@@ -58,6 +61,7 @@ exports.Schema = zod_1.z
|
|
58
61
|
.object({
|
59
62
|
type: zod_1.z.string(),
|
60
63
|
readOnly: zod_1.z.boolean().optional(),
|
64
|
+
readOnlyValue: zod_1.z.string().optional(),
|
61
65
|
position: zod_1.z.object({ x: zod_1.z.number(), y: zod_1.z.number() }),
|
62
66
|
width: zod_1.z.number(),
|
63
67
|
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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ACpD,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAA6B,OAAC,CAAC,GAAG,EAAE,CAAC,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,7 @@ 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.
|
53
|
+
'schemas.barcodes.includetext': z.string(),
|
51
54
|
});
|
52
55
|
export const Mode = z.enum(['viewer', 'form', 'designer']);
|
53
56
|
export const Size = z.object({ height: z.number(), width: z.number() });
|
@@ -55,6 +58,7 @@ export const Schema = z
|
|
55
58
|
.object({
|
56
59
|
type: z.string(),
|
57
60
|
readOnly: z.boolean().optional(),
|
61
|
+
readOnlyValue: z.string().optional(),
|
58
62
|
position: z.object({ x: z.number(), y: z.number() }),
|
59
63
|
width: z.number(),
|
60
64
|
height: z.number(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAElE,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,+CAA+C;IAC/C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,w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,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,kDAAkD;AAElD,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,CAAC;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,7 @@ 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.
|
50
|
+
'schemas.barcodes.includetext': z.ZodString;
|
48
51
|
}, "strip", z.ZodTypeAny, {
|
49
52
|
cancel: string;
|
50
53
|
field: string;
|
@@ -68,6 +71,9 @@ export declare const Dict: z.ZodObject<{
|
|
68
71
|
commitBulkUpdateFieldName: string;
|
69
72
|
bulkUpdateFieldName: string;
|
70
73
|
hexColorPrompt: string;
|
74
|
+
'schemas.color': string;
|
75
|
+
'schemas.borderWidth': string;
|
76
|
+
'schemas.borderColor': string;
|
71
77
|
'schemas.textColor': string;
|
72
78
|
'schemas.bgColor': string;
|
73
79
|
'schemas.horizontal': string;
|
@@ -89,7 +95,7 @@ export declare const Dict: z.ZodObject<{
|
|
89
95
|
'schemas.text.fit': string;
|
90
96
|
'schemas.text.dynamicFontSize': string;
|
91
97
|
'schemas.barcodes.barColor': string;
|
92
|
-
'schemas.
|
98
|
+
'schemas.barcodes.includetext': string;
|
93
99
|
}, {
|
94
100
|
cancel: string;
|
95
101
|
field: string;
|
@@ -113,6 +119,9 @@ export declare const Dict: z.ZodObject<{
|
|
113
119
|
commitBulkUpdateFieldName: string;
|
114
120
|
bulkUpdateFieldName: string;
|
115
121
|
hexColorPrompt: string;
|
122
|
+
'schemas.color': string;
|
123
|
+
'schemas.borderWidth': string;
|
124
|
+
'schemas.borderColor': string;
|
116
125
|
'schemas.textColor': string;
|
117
126
|
'schemas.bgColor': string;
|
118
127
|
'schemas.horizontal': string;
|
@@ -134,7 +143,7 @@ export declare const Dict: z.ZodObject<{
|
|
134
143
|
'schemas.text.fit': string;
|
135
144
|
'schemas.text.dynamicFontSize': string;
|
136
145
|
'schemas.barcodes.barColor': string;
|
137
|
-
'schemas.
|
146
|
+
'schemas.barcodes.includetext': string;
|
138
147
|
}>;
|
139
148
|
export declare const Mode: z.ZodEnum<["viewer", "form", "designer"]>;
|
140
149
|
export declare const Size: z.ZodObject<{
|
@@ -150,6 +159,7 @@ export declare const Size: z.ZodObject<{
|
|
150
159
|
export declare const Schema: z.ZodObject<{
|
151
160
|
type: z.ZodString;
|
152
161
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
162
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
153
163
|
position: z.ZodObject<{
|
154
164
|
x: z.ZodNumber;
|
155
165
|
y: z.ZodNumber;
|
@@ -167,6 +177,7 @@ export declare const Schema: z.ZodObject<{
|
|
167
177
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
168
178
|
type: z.ZodString;
|
169
179
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
180
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
170
181
|
position: z.ZodObject<{
|
171
182
|
x: z.ZodNumber;
|
172
183
|
y: z.ZodNumber;
|
@@ -184,6 +195,7 @@ export declare const Schema: z.ZodObject<{
|
|
184
195
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
185
196
|
type: z.ZodString;
|
186
197
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
198
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
187
199
|
position: z.ZodObject<{
|
188
200
|
x: z.ZodNumber;
|
189
201
|
y: z.ZodNumber;
|
@@ -206,6 +218,7 @@ export declare const SchemaForUI: z.ZodObject<{
|
|
206
218
|
rotate: z.ZodOptional<z.ZodNumber>;
|
207
219
|
type: z.ZodString;
|
208
220
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
221
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
209
222
|
position: z.ZodObject<{
|
210
223
|
x: z.ZodNumber;
|
211
224
|
y: z.ZodNumber;
|
@@ -233,6 +246,7 @@ export declare const SchemaForUI: z.ZodObject<{
|
|
233
246
|
opacity?: number | undefined;
|
234
247
|
rotate?: number | undefined;
|
235
248
|
readOnly?: boolean | undefined;
|
249
|
+
readOnlyValue?: string | undefined;
|
236
250
|
}, {
|
237
251
|
width: number;
|
238
252
|
height: number;
|
@@ -247,6 +261,7 @@ export declare const SchemaForUI: z.ZodObject<{
|
|
247
261
|
opacity?: number | undefined;
|
248
262
|
rotate?: number | undefined;
|
249
263
|
readOnly?: boolean | undefined;
|
264
|
+
readOnlyValue?: string | undefined;
|
250
265
|
}>;
|
251
266
|
export declare const Font: z.ZodRecord<z.ZodString, z.ZodObject<{
|
252
267
|
data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
|
@@ -266,6 +281,7 @@ export declare const Template: z.ZodObject<{
|
|
266
281
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
267
282
|
type: z.ZodString;
|
268
283
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
284
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
269
285
|
position: z.ZodObject<{
|
270
286
|
x: z.ZodNumber;
|
271
287
|
y: z.ZodNumber;
|
@@ -283,6 +299,7 @@ export declare const Template: z.ZodObject<{
|
|
283
299
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
284
300
|
type: z.ZodString;
|
285
301
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
302
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
286
303
|
position: z.ZodObject<{
|
287
304
|
x: z.ZodNumber;
|
288
305
|
y: z.ZodNumber;
|
@@ -300,6 +317,7 @@ export declare const Template: z.ZodObject<{
|
|
300
317
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
301
318
|
type: z.ZodString;
|
302
319
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
320
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
303
321
|
position: z.ZodObject<{
|
304
322
|
x: z.ZodNumber;
|
305
323
|
y: z.ZodNumber;
|
@@ -322,6 +340,7 @@ export declare const Template: z.ZodObject<{
|
|
322
340
|
schemas: Record<string, z.objectOutputType<{
|
323
341
|
type: z.ZodString;
|
324
342
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
343
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
325
344
|
position: z.ZodObject<{
|
326
345
|
x: z.ZodNumber;
|
327
346
|
y: z.ZodNumber;
|
@@ -344,6 +363,7 @@ export declare const Template: z.ZodObject<{
|
|
344
363
|
schemas: Record<string, z.objectInputType<{
|
345
364
|
type: z.ZodString;
|
346
365
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
366
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
347
367
|
position: z.ZodObject<{
|
348
368
|
x: z.ZodNumber;
|
349
369
|
y: z.ZodNumber;
|
@@ -439,6 +459,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
439
459
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
440
460
|
type: z.ZodString;
|
441
461
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
462
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
442
463
|
position: z.ZodObject<{
|
443
464
|
x: z.ZodNumber;
|
444
465
|
y: z.ZodNumber;
|
@@ -456,6 +477,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
456
477
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
457
478
|
type: z.ZodString;
|
458
479
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
480
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
459
481
|
position: z.ZodObject<{
|
460
482
|
x: z.ZodNumber;
|
461
483
|
y: z.ZodNumber;
|
@@ -473,6 +495,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
473
495
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
474
496
|
type: z.ZodString;
|
475
497
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
498
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
476
499
|
position: z.ZodObject<{
|
477
500
|
x: z.ZodNumber;
|
478
501
|
y: z.ZodNumber;
|
@@ -495,6 +518,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
495
518
|
schemas: Record<string, z.objectOutputType<{
|
496
519
|
type: z.ZodString;
|
497
520
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
521
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
498
522
|
position: z.ZodObject<{
|
499
523
|
x: z.ZodNumber;
|
500
524
|
y: z.ZodNumber;
|
@@ -517,6 +541,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
517
541
|
schemas: Record<string, z.objectInputType<{
|
518
542
|
type: z.ZodString;
|
519
543
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
544
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
520
545
|
position: z.ZodObject<{
|
521
546
|
x: z.ZodNumber;
|
522
547
|
y: z.ZodNumber;
|
@@ -625,6 +650,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
625
650
|
schemas: Record<string, z.objectOutputType<{
|
626
651
|
type: z.ZodString;
|
627
652
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
653
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
628
654
|
position: z.ZodObject<{
|
629
655
|
x: z.ZodNumber;
|
630
656
|
y: z.ZodNumber;
|
@@ -679,6 +705,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
679
705
|
schemas: Record<string, z.objectInputType<{
|
680
706
|
type: z.ZodString;
|
681
707
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
708
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
682
709
|
position: z.ZodObject<{
|
683
710
|
x: z.ZodNumber;
|
684
711
|
y: z.ZodNumber;
|
@@ -786,6 +813,7 @@ export declare const UIProps: z.ZodObject<{
|
|
786
813
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
787
814
|
type: z.ZodString;
|
788
815
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
816
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
789
817
|
position: z.ZodObject<{
|
790
818
|
x: z.ZodNumber;
|
791
819
|
y: z.ZodNumber;
|
@@ -803,6 +831,7 @@ export declare const UIProps: z.ZodObject<{
|
|
803
831
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
804
832
|
type: z.ZodString;
|
805
833
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
834
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
806
835
|
position: z.ZodObject<{
|
807
836
|
x: z.ZodNumber;
|
808
837
|
y: z.ZodNumber;
|
@@ -820,6 +849,7 @@ export declare const UIProps: z.ZodObject<{
|
|
820
849
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
821
850
|
type: z.ZodString;
|
822
851
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
852
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
823
853
|
position: z.ZodObject<{
|
824
854
|
x: z.ZodNumber;
|
825
855
|
y: z.ZodNumber;
|
@@ -842,6 +872,7 @@ export declare const UIProps: z.ZodObject<{
|
|
842
872
|
schemas: Record<string, z.objectOutputType<{
|
843
873
|
type: z.ZodString;
|
844
874
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
875
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
845
876
|
position: z.ZodObject<{
|
846
877
|
x: z.ZodNumber;
|
847
878
|
y: z.ZodNumber;
|
@@ -864,6 +895,7 @@ export declare const UIProps: z.ZodObject<{
|
|
864
895
|
schemas: Record<string, z.objectInputType<{
|
865
896
|
type: z.ZodString;
|
866
897
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
898
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
867
899
|
position: z.ZodObject<{
|
868
900
|
x: z.ZodNumber;
|
869
901
|
y: z.ZodNumber;
|
@@ -954,6 +986,7 @@ export declare const UIProps: z.ZodObject<{
|
|
954
986
|
schemas: Record<string, z.objectOutputType<{
|
955
987
|
type: z.ZodString;
|
956
988
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
989
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
957
990
|
position: z.ZodObject<{
|
958
991
|
x: z.ZodNumber;
|
959
992
|
y: z.ZodNumber;
|
@@ -1002,6 +1035,7 @@ export declare const UIProps: z.ZodObject<{
|
|
1002
1035
|
schemas: Record<string, z.objectInputType<{
|
1003
1036
|
type: z.ZodString;
|
1004
1037
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1038
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1005
1039
|
position: z.ZodObject<{
|
1006
1040
|
x: z.ZodNumber;
|
1007
1041
|
y: z.ZodNumber;
|
@@ -1103,6 +1137,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1103
1137
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
1104
1138
|
type: z.ZodString;
|
1105
1139
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1140
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1106
1141
|
position: z.ZodObject<{
|
1107
1142
|
x: z.ZodNumber;
|
1108
1143
|
y: z.ZodNumber;
|
@@ -1120,6 +1155,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1120
1155
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
1121
1156
|
type: z.ZodString;
|
1122
1157
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1158
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1123
1159
|
position: z.ZodObject<{
|
1124
1160
|
x: z.ZodNumber;
|
1125
1161
|
y: z.ZodNumber;
|
@@ -1137,6 +1173,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1137
1173
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
1138
1174
|
type: z.ZodString;
|
1139
1175
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1176
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1140
1177
|
position: z.ZodObject<{
|
1141
1178
|
x: z.ZodNumber;
|
1142
1179
|
y: z.ZodNumber;
|
@@ -1159,6 +1196,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1159
1196
|
schemas: Record<string, z.objectOutputType<{
|
1160
1197
|
type: z.ZodString;
|
1161
1198
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1199
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1162
1200
|
position: z.ZodObject<{
|
1163
1201
|
x: z.ZodNumber;
|
1164
1202
|
y: z.ZodNumber;
|
@@ -1181,6 +1219,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1181
1219
|
schemas: Record<string, z.objectInputType<{
|
1182
1220
|
type: z.ZodString;
|
1183
1221
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1222
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1184
1223
|
position: z.ZodObject<{
|
1185
1224
|
x: z.ZodNumber;
|
1186
1225
|
y: z.ZodNumber;
|
@@ -1220,6 +1259,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1220
1259
|
schemas: Record<string, z.objectOutputType<{
|
1221
1260
|
type: z.ZodString;
|
1222
1261
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1262
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1223
1263
|
position: z.ZodObject<{
|
1224
1264
|
x: z.ZodNumber;
|
1225
1265
|
y: z.ZodNumber;
|
@@ -1269,6 +1309,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1269
1309
|
schemas: Record<string, z.objectInputType<{
|
1270
1310
|
type: z.ZodString;
|
1271
1311
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1312
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1272
1313
|
position: z.ZodObject<{
|
1273
1314
|
x: z.ZodNumber;
|
1274
1315
|
y: z.ZodNumber;
|
@@ -1371,6 +1412,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1371
1412
|
schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
1372
1413
|
type: z.ZodString;
|
1373
1414
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1415
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1374
1416
|
position: z.ZodObject<{
|
1375
1417
|
x: z.ZodNumber;
|
1376
1418
|
y: z.ZodNumber;
|
@@ -1388,6 +1430,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1388
1430
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
1389
1431
|
type: z.ZodString;
|
1390
1432
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1433
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1391
1434
|
position: z.ZodObject<{
|
1392
1435
|
x: z.ZodNumber;
|
1393
1436
|
y: z.ZodNumber;
|
@@ -1405,6 +1448,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1405
1448
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
1406
1449
|
type: z.ZodString;
|
1407
1450
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1451
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1408
1452
|
position: z.ZodObject<{
|
1409
1453
|
x: z.ZodNumber;
|
1410
1454
|
y: z.ZodNumber;
|
@@ -1427,6 +1471,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1427
1471
|
schemas: Record<string, z.objectOutputType<{
|
1428
1472
|
type: z.ZodString;
|
1429
1473
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1474
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1430
1475
|
position: z.ZodObject<{
|
1431
1476
|
x: z.ZodNumber;
|
1432
1477
|
y: z.ZodNumber;
|
@@ -1449,6 +1494,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1449
1494
|
schemas: Record<string, z.objectInputType<{
|
1450
1495
|
type: z.ZodString;
|
1451
1496
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1497
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1452
1498
|
position: z.ZodObject<{
|
1453
1499
|
x: z.ZodNumber;
|
1454
1500
|
y: z.ZodNumber;
|
@@ -1487,6 +1533,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1487
1533
|
schemas: Record<string, z.objectOutputType<{
|
1488
1534
|
type: z.ZodString;
|
1489
1535
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1536
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1490
1537
|
position: z.ZodObject<{
|
1491
1538
|
x: z.ZodNumber;
|
1492
1539
|
y: z.ZodNumber;
|
@@ -1535,6 +1582,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
1535
1582
|
schemas: Record<string, z.objectInputType<{
|
1536
1583
|
type: z.ZodString;
|
1537
1584
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1585
|
+
readOnlyValue: z.ZodOptional<z.ZodString>;
|
1538
1586
|
position: z.ZodObject<{
|
1539
1587
|
x: z.ZodNumber;
|
1540
1588
|
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-dev.1",
|
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,7 @@ 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(),
|
57
|
+
'schemas.barcodes.includetext': z.string(),
|
56
58
|
});
|
57
59
|
export const Mode = z.enum(['viewer', 'form', 'designer']);
|
58
60
|
|
@@ -62,6 +64,7 @@ export const Schema = z
|
|
62
64
|
.object({
|
63
65
|
type: z.string(),
|
64
66
|
readOnly: z.boolean().optional(),
|
67
|
+
readOnlyValue: z.string().optional(),
|
65
68
|
position: z.object({ x: z.number(), y: z.number() }),
|
66
69
|
width: z.number(),
|
67
70
|
height: z.number(),
|