@json-to-office/shared-docx 0.1.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/LICENSE +18 -0
- package/README.md +9 -0
- package/dist/chunk-5533WPL6.js +1895 -0
- package/dist/chunk-5533WPL6.js.map +1 -0
- package/dist/chunk-AA4HIXRG.js +34 -0
- package/dist/chunk-AA4HIXRG.js.map +1 -0
- package/dist/chunk-BEPLK76M.js +454 -0
- package/dist/chunk-BEPLK76M.js.map +1 -0
- package/dist/chunk-BOUURUYX.js +364 -0
- package/dist/chunk-BOUURUYX.js.map +1 -0
- package/dist/chunk-EKWM2CWA.js +97 -0
- package/dist/chunk-EKWM2CWA.js.map +1 -0
- package/dist/chunk-ET6YMNMF.js +35 -0
- package/dist/chunk-ET6YMNMF.js.map +1 -0
- package/dist/chunk-F5LVWDTY.js +57 -0
- package/dist/chunk-F5LVWDTY.js.map +1 -0
- package/dist/chunk-HHMK2RWF.js +274 -0
- package/dist/chunk-HHMK2RWF.js.map +1 -0
- package/dist/chunk-LOE6BZQG.js +750 -0
- package/dist/chunk-LOE6BZQG.js.map +1 -0
- package/dist/chunk-LWR4TFZ5.js +121 -0
- package/dist/chunk-LWR4TFZ5.js.map +1 -0
- package/dist/chunk-VP3X6DBP.js +44 -0
- package/dist/chunk-VP3X6DBP.js.map +1 -0
- package/dist/document-validator-CiaGiy1v.d.ts +119 -0
- package/dist/index.d.ts +938 -0
- package/dist/index.js +1129 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/api.d.ts +46 -0
- package/dist/schemas/api.js +16 -0
- package/dist/schemas/api.js.map +1 -0
- package/dist/schemas/component-registry.d.ts +90 -0
- package/dist/schemas/component-registry.js +24 -0
- package/dist/schemas/component-registry.js.map +1 -0
- package/dist/schemas/components.d.ts +755 -0
- package/dist/schemas/components.js +94 -0
- package/dist/schemas/components.js.map +1 -0
- package/dist/schemas/custom-components.d.ts +59 -0
- package/dist/schemas/custom-components.js +11 -0
- package/dist/schemas/custom-components.js.map +1 -0
- package/dist/schemas/document.d.ts +43 -0
- package/dist/schemas/document.js +19 -0
- package/dist/schemas/document.js.map +1 -0
- package/dist/schemas/export.d.ts +67 -0
- package/dist/schemas/export.js +19 -0
- package/dist/schemas/export.js.map +1 -0
- package/dist/schemas/font.d.ts +57 -0
- package/dist/schemas/font.js +11 -0
- package/dist/schemas/font.js.map +1 -0
- package/dist/schemas/generator.d.ts +80 -0
- package/dist/schemas/generator.js +9 -0
- package/dist/schemas/generator.js.map +1 -0
- package/dist/schemas/theme.d.ts +3354 -0
- package/dist/schemas/theme.js +42 -0
- package/dist/schemas/theme.js.map +1 -0
- package/dist/validation/unified/index.d.ts +720 -0
- package/dist/validation/unified/index.js +154 -0
- package/dist/validation/unified/index.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import { V as ValidationOptions, T as ThemeValidationResult, J as JsonValidationResult, f as ValidationResult, C as ComponentValidationResult, D as DocumentValidationResult } from '../../document-validator-CiaGiy1v.js';
|
|
2
|
+
export { E as EnhancedValueError, c as createDocumentValidator, d as documentValidator, i as isValidDocument, s as strictDocumentValidator, v as validateDocument, a as validateDocumentWithSchema, e as validateJsonComponent, b as validateJsonDocument } from '../../document-validator-CiaGiy1v.js';
|
|
3
|
+
import { ErrorFormatterConfig, ValidationError } from '@json-to-office/shared';
|
|
4
|
+
export { DEFAULT_ERROR_CONFIG, ERROR_EMOJIS, ErrorFormatterConfig, ValidationError, ValidationResult, calculatePosition, clearComponentNamesCache, createErrorConfig, createJsonParseError, extractStandardComponentNames, formatErrorMessage, formatErrorSummary, getLiteralValue, getObjectSchemaPropertyNames, getSchemaMetadata, groupErrorsByPath, isLiteralSchema, isObjectSchema, isUnionSchema, transformValueError, transformValueErrors } from '@json-to-office/shared';
|
|
5
|
+
import { ValueError } from '@sinclair/typebox/value';
|
|
6
|
+
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
7
|
+
import { Static, TSchema } from '@sinclair/typebox';
|
|
8
|
+
import { ThemeConfigSchema } from '../../schemas/theme.js';
|
|
9
|
+
import { ColumnsPropsSchema, FooterPropsSchema, HeaderPropsSchema, HeadingPropsSchema, ImagePropsSchema, ListPropsSchema, ParagraphPropsSchema, ReportPropsSchema, SectionPropsSchema, StatisticPropsSchema, TablePropsSchema } from '../../schemas/components.js';
|
|
10
|
+
import { CustomComponentDefinitionSchema } from '../../schemas/custom-components.js';
|
|
11
|
+
import '../../schemas/font.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Theme validation implementation
|
|
15
|
+
* Single source of truth for all theme validation
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Validate a theme configuration object
|
|
20
|
+
*/
|
|
21
|
+
declare function validateTheme(data: unknown, options?: ValidationOptions): ThemeValidationResult;
|
|
22
|
+
/**
|
|
23
|
+
* Validate a theme JSON string or object
|
|
24
|
+
* This replaces all three validateThemeJson implementations
|
|
25
|
+
*/
|
|
26
|
+
declare function validateThemeJson(jsonInput: string | object, options?: ValidationOptions): ThemeValidationResult;
|
|
27
|
+
/**
|
|
28
|
+
* Validate theme with enhanced error messages
|
|
29
|
+
*/
|
|
30
|
+
declare function validateThemeWithEnhancement(data: unknown, options?: ValidationOptions): ThemeValidationResult;
|
|
31
|
+
/**
|
|
32
|
+
* Type guard for valid theme result
|
|
33
|
+
*/
|
|
34
|
+
declare function isValidTheme(result: ThemeValidationResult): result is ThemeValidationResult & {
|
|
35
|
+
valid: true;
|
|
36
|
+
data: Static<typeof ThemeConfigSchema>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Create a theme validator with default options
|
|
40
|
+
*/
|
|
41
|
+
declare function createThemeValidator(defaultOptions?: ValidationOptions): {
|
|
42
|
+
validate: (data: unknown, options?: ValidationOptions) => ThemeValidationResult;
|
|
43
|
+
validateJson: (jsonInput: string | object, options?: ValidationOptions) => ThemeValidationResult;
|
|
44
|
+
validateWithEnhancement: (data: unknown, options?: ValidationOptions) => ThemeValidationResult;
|
|
45
|
+
};
|
|
46
|
+
declare const themeValidator: {
|
|
47
|
+
validate: (data: unknown, options?: ValidationOptions) => ThemeValidationResult;
|
|
48
|
+
validateJson: (jsonInput: string | object, options?: ValidationOptions) => ThemeValidationResult;
|
|
49
|
+
validateWithEnhancement: (data: unknown, options?: ValidationOptions) => ThemeValidationResult;
|
|
50
|
+
};
|
|
51
|
+
declare const strictThemeValidator: {
|
|
52
|
+
validate: (data: unknown, options?: ValidationOptions) => ThemeValidationResult;
|
|
53
|
+
validateJson: (jsonInput: string | object, options?: ValidationOptions) => ThemeValidationResult;
|
|
54
|
+
validateWithEnhancement: (data: unknown, options?: ValidationOptions) => ThemeValidationResult;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Get theme name from data
|
|
58
|
+
*/
|
|
59
|
+
declare function getThemeName(data: unknown): string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Check if theme config is valid (basic check without full validation)
|
|
62
|
+
*/
|
|
63
|
+
declare function isThemeConfig(data: unknown): boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Base validator implementation
|
|
67
|
+
* Core validation logic that eliminates duplication across the codebase
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Base validation function that all specific validators use
|
|
72
|
+
* This eliminates the repeated Value.Check -> Value.Errors -> map pattern
|
|
73
|
+
*/
|
|
74
|
+
declare function validateAgainstSchema<T extends TSchema>(schema: T, data: unknown, options?: ValidationOptions): ValidationResult<Static<T>>;
|
|
75
|
+
/**
|
|
76
|
+
* Validate JSON string or object with schema
|
|
77
|
+
*/
|
|
78
|
+
declare function validateJson<T extends TSchema>(schema: T, jsonInput: string | object, options?: ValidationOptions): JsonValidationResult<Static<T>>;
|
|
79
|
+
/**
|
|
80
|
+
* Batch validate multiple items
|
|
81
|
+
*/
|
|
82
|
+
declare function validateBatch<T extends TSchema>(schema: T, items: unknown[], options?: ValidationOptions): ValidationResult<Static<T>[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Validate with custom error enhancement
|
|
85
|
+
*/
|
|
86
|
+
declare function validateWithEnhancement<T extends TSchema>(schema: T, data: unknown, enhancer: (errors: any[]) => any[], options?: ValidationOptions): ValidationResult<Static<T>>;
|
|
87
|
+
/**
|
|
88
|
+
* Create a validator function for a specific schema
|
|
89
|
+
*/
|
|
90
|
+
declare function createValidator<T extends TSchema>(schema: T, defaultOptions?: ValidationOptions): (data: unknown, options?: ValidationOptions) => ValidationResult<(T & {
|
|
91
|
+
params: [];
|
|
92
|
+
})["static"]>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a JSON validator function for a specific schema
|
|
95
|
+
*/
|
|
96
|
+
declare function createJsonValidator<T extends TSchema>(schema: T, defaultOptions?: ValidationOptions): (jsonInput: string | object, options?: ValidationOptions) => JsonValidationResult<(T & {
|
|
97
|
+
params: [];
|
|
98
|
+
})["static"]>;
|
|
99
|
+
/**
|
|
100
|
+
* Utility to check if validation result is successful with type guard
|
|
101
|
+
*/
|
|
102
|
+
declare function isValidationSuccess<T>(result: ValidationResult<T>): result is ValidationResult<T> & {
|
|
103
|
+
valid: true;
|
|
104
|
+
data: T;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Get validation error summary
|
|
108
|
+
*/
|
|
109
|
+
declare function getValidationSummary(result: ValidationResult): string;
|
|
110
|
+
|
|
111
|
+
declare const COMPONENT_SCHEMA_MAP: {
|
|
112
|
+
readonly report: _sinclair_typebox.TObject<{
|
|
113
|
+
theme: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
114
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
115
|
+
title: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
116
|
+
subtitle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
117
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
118
|
+
author: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
119
|
+
company: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
120
|
+
date: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
121
|
+
created: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
122
|
+
modified: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
123
|
+
version: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
124
|
+
tags: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
125
|
+
}>>;
|
|
126
|
+
}>;
|
|
127
|
+
readonly section: _sinclair_typebox.TObject<{
|
|
128
|
+
title: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
129
|
+
level: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
130
|
+
header: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TArray<TSchema | _sinclair_typebox.TAny>, _sinclair_typebox.TLiteral<"linkToPrevious">]>>;
|
|
131
|
+
footer: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TArray<TSchema | _sinclair_typebox.TAny>, _sinclair_typebox.TLiteral<"linkToPrevious">]>>;
|
|
132
|
+
pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
133
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
134
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
135
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
136
|
+
}>>;
|
|
137
|
+
page: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
138
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"A4">, _sinclair_typebox.TLiteral<"A3">, _sinclair_typebox.TLiteral<"LETTER">, _sinclair_typebox.TLiteral<"LEGAL">, _sinclair_typebox.TObject<{
|
|
139
|
+
width: _sinclair_typebox.TNumber;
|
|
140
|
+
height: _sinclair_typebox.TNumber;
|
|
141
|
+
}>]>>;
|
|
142
|
+
margins: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
143
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
144
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
145
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
146
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
147
|
+
header: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
148
|
+
footer: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
149
|
+
gutter: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
150
|
+
}>>;
|
|
151
|
+
}>>;
|
|
152
|
+
}>;
|
|
153
|
+
readonly heading: _sinclair_typebox.TObject<{
|
|
154
|
+
text: _sinclair_typebox.TString;
|
|
155
|
+
level: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<1>, _sinclair_typebox.TLiteral<2>, _sinclair_typebox.TLiteral<3>, _sinclair_typebox.TLiteral<4>, _sinclair_typebox.TLiteral<5>, _sinclair_typebox.TLiteral<6>]>>;
|
|
156
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
157
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
158
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
159
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
160
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
161
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
162
|
+
lineSpacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
163
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"single">, _sinclair_typebox.TLiteral<"atLeast">, _sinclair_typebox.TLiteral<"exactly">, _sinclair_typebox.TLiteral<"double">, _sinclair_typebox.TLiteral<"multiple">]>;
|
|
164
|
+
value: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
165
|
+
}>>;
|
|
166
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
167
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
168
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
169
|
+
}>>;
|
|
170
|
+
characterSpacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
171
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"condensed">, _sinclair_typebox.TLiteral<"expanded">]>;
|
|
172
|
+
value: _sinclair_typebox.TNumber;
|
|
173
|
+
}>>;
|
|
174
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
175
|
+
}>>;
|
|
176
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
177
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
178
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
179
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
180
|
+
}>>;
|
|
181
|
+
lineSpacing: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
182
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"single">, _sinclair_typebox.TLiteral<"atLeast">, _sinclair_typebox.TLiteral<"exactly">, _sinclair_typebox.TLiteral<"double">, _sinclair_typebox.TLiteral<"multiple">]>;
|
|
183
|
+
value: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
184
|
+
}>]>>;
|
|
185
|
+
pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
186
|
+
columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
187
|
+
numbering: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
188
|
+
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
189
|
+
keepLines: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
190
|
+
}>;
|
|
191
|
+
readonly paragraph: _sinclair_typebox.TObject<{
|
|
192
|
+
text: _sinclair_typebox.TString;
|
|
193
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
194
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
195
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
196
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
197
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
198
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
199
|
+
lineSpacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
200
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"single">, _sinclair_typebox.TLiteral<"atLeast">, _sinclair_typebox.TLiteral<"exactly">, _sinclair_typebox.TLiteral<"double">, _sinclair_typebox.TLiteral<"multiple">]>;
|
|
201
|
+
value: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
202
|
+
}>>;
|
|
203
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
204
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
205
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
206
|
+
}>>;
|
|
207
|
+
characterSpacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
208
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"condensed">, _sinclair_typebox.TLiteral<"expanded">]>;
|
|
209
|
+
value: _sinclair_typebox.TNumber;
|
|
210
|
+
}>>;
|
|
211
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
212
|
+
}>>;
|
|
213
|
+
themeStyle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
214
|
+
boldColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
215
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
216
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
217
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
218
|
+
}>>;
|
|
219
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
220
|
+
pageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
221
|
+
columnBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
222
|
+
floating: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
223
|
+
horizontalPosition: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
224
|
+
relative: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"margin">, _sinclair_typebox.TLiteral<"page">, _sinclair_typebox.TLiteral<"text">]>>;
|
|
225
|
+
align: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"inside">, _sinclair_typebox.TLiteral<"outside">]>>;
|
|
226
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
227
|
+
}>>;
|
|
228
|
+
verticalPosition: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
229
|
+
relative: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"margin">, _sinclair_typebox.TLiteral<"page">, _sinclair_typebox.TLiteral<"text">]>>;
|
|
230
|
+
align: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"bottom">, _sinclair_typebox.TLiteral<"inside">, _sinclair_typebox.TLiteral<"outside">]>>;
|
|
231
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
232
|
+
}>>;
|
|
233
|
+
wrap: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
234
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"around">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"notBeside">, _sinclair_typebox.TLiteral<"through">, _sinclair_typebox.TLiteral<"tight">, _sinclair_typebox.TLiteral<"auto">]>;
|
|
235
|
+
}>>;
|
|
236
|
+
lockAnchor: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
237
|
+
width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
238
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
239
|
+
}>>;
|
|
240
|
+
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
241
|
+
keepLines: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
242
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
243
|
+
}>;
|
|
244
|
+
readonly columns: _sinclair_typebox.TObject<{
|
|
245
|
+
columns: _sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
246
|
+
width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TLiteral<"auto">]>>;
|
|
247
|
+
gap: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
248
|
+
}>>]>;
|
|
249
|
+
gap: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
250
|
+
}>;
|
|
251
|
+
readonly image: _sinclair_typebox.TObject<{
|
|
252
|
+
path: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
253
|
+
base64: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
254
|
+
alt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
255
|
+
width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
256
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
257
|
+
widthRelativeTo: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"content">, _sinclair_typebox.TLiteral<"page">]>>;
|
|
258
|
+
heightRelativeTo: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"content">, _sinclair_typebox.TLiteral<"page">]>>;
|
|
259
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">]>>;
|
|
260
|
+
caption: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
261
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
262
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
263
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
264
|
+
}>>;
|
|
265
|
+
floating: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
266
|
+
horizontalPosition: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
267
|
+
relative: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"character">, _sinclair_typebox.TLiteral<"column">, _sinclair_typebox.TLiteral<"margin">, _sinclair_typebox.TLiteral<"page">, _sinclair_typebox.TLiteral<"text">]>>;
|
|
268
|
+
align: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"inside">, _sinclair_typebox.TLiteral<"outside">]>>;
|
|
269
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
270
|
+
}>>;
|
|
271
|
+
verticalPosition: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
272
|
+
relative: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"margin">, _sinclair_typebox.TLiteral<"page">, _sinclair_typebox.TLiteral<"paragraph">, _sinclair_typebox.TLiteral<"line">, _sinclair_typebox.TLiteral<"text">]>>;
|
|
273
|
+
align: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"bottom">, _sinclair_typebox.TLiteral<"inside">, _sinclair_typebox.TLiteral<"outside">]>>;
|
|
274
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
275
|
+
}>>;
|
|
276
|
+
wrap: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
277
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"square">, _sinclair_typebox.TLiteral<"topAndBottom">, _sinclair_typebox.TLiteral<"around">, _sinclair_typebox.TLiteral<"tight">, _sinclair_typebox.TLiteral<"through">]>;
|
|
278
|
+
side: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"bothSides">, _sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"largest">]>>;
|
|
279
|
+
margins: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
280
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
281
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
282
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
283
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
284
|
+
}>>;
|
|
285
|
+
}>>;
|
|
286
|
+
allowOverlap: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
287
|
+
behindDocument: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
288
|
+
lockAnchor: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
289
|
+
layoutInCell: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
290
|
+
zIndex: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
291
|
+
rotation: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
292
|
+
visibility: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"hidden">, _sinclair_typebox.TLiteral<"inherit">]>>;
|
|
293
|
+
}>>;
|
|
294
|
+
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
295
|
+
keepLines: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
296
|
+
}>;
|
|
297
|
+
readonly statistic: _sinclair_typebox.TObject<{
|
|
298
|
+
number: _sinclair_typebox.TString;
|
|
299
|
+
description: _sinclair_typebox.TString;
|
|
300
|
+
unit: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
301
|
+
format: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
302
|
+
trend: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"up">, _sinclair_typebox.TLiteral<"down">, _sinclair_typebox.TLiteral<"neutral">]>>;
|
|
303
|
+
trendValue: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
|
|
304
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">]>>;
|
|
305
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
306
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
307
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
308
|
+
}>>;
|
|
309
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"small">, _sinclair_typebox.TLiteral<"medium">, _sinclair_typebox.TLiteral<"large">]>>;
|
|
310
|
+
}>;
|
|
311
|
+
readonly table: _sinclair_typebox.TObject<{
|
|
312
|
+
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
313
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
314
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
315
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
316
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
317
|
+
}>]>>;
|
|
318
|
+
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
319
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
320
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
321
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
322
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
323
|
+
}>]>>;
|
|
324
|
+
hideBorders: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TObject<{
|
|
325
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
326
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
327
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
328
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
329
|
+
insideHorizontal: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
330
|
+
insideVertical: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
331
|
+
}>]>>;
|
|
332
|
+
cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
333
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
334
|
+
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
335
|
+
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
336
|
+
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
337
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
338
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
339
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
340
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
341
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
342
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
343
|
+
}>>;
|
|
344
|
+
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
345
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
346
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
347
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
348
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
349
|
+
}>]>>;
|
|
350
|
+
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
351
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
352
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
353
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
354
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
355
|
+
}>]>>;
|
|
356
|
+
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
357
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
358
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
359
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
360
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
361
|
+
}>]>>;
|
|
362
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
363
|
+
}>>;
|
|
364
|
+
headerCellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
365
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
366
|
+
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
367
|
+
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
368
|
+
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
369
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
370
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
371
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
372
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
373
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
374
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
375
|
+
}>>;
|
|
376
|
+
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
377
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
378
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
379
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
380
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
381
|
+
}>]>>;
|
|
382
|
+
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
383
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
384
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
385
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
386
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
387
|
+
}>]>>;
|
|
388
|
+
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
389
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
390
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
391
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
392
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
393
|
+
}>]>>;
|
|
394
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
395
|
+
}>>;
|
|
396
|
+
width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
397
|
+
columns: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
398
|
+
width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
399
|
+
cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
400
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
401
|
+
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
402
|
+
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
403
|
+
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
404
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
405
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
406
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
407
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
408
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
409
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
410
|
+
}>>;
|
|
411
|
+
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
412
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
413
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
414
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
415
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
416
|
+
}>]>>;
|
|
417
|
+
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
418
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
419
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
420
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
421
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
422
|
+
}>]>>;
|
|
423
|
+
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
424
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
425
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
426
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
427
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
428
|
+
}>]>>;
|
|
429
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
430
|
+
}>>;
|
|
431
|
+
header: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
432
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
433
|
+
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
434
|
+
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
435
|
+
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
436
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
437
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
438
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
439
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
440
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
441
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
442
|
+
}>>;
|
|
443
|
+
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
444
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
445
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
446
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
447
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
448
|
+
}>]>>;
|
|
449
|
+
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
450
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
451
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
452
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
453
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
454
|
+
}>]>>;
|
|
455
|
+
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
456
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
457
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
458
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
459
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
460
|
+
}>]>>;
|
|
461
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
462
|
+
content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
463
|
+
name: _sinclair_typebox.TString;
|
|
464
|
+
props: _sinclair_typebox.TObject<{}>;
|
|
465
|
+
children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
|
|
466
|
+
}>]>>>;
|
|
467
|
+
}>>;
|
|
468
|
+
cells: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
469
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
470
|
+
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
471
|
+
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
472
|
+
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
473
|
+
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
474
|
+
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
475
|
+
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
476
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
477
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
478
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
479
|
+
}>>;
|
|
480
|
+
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
481
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
482
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
483
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
484
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
485
|
+
}>]>>;
|
|
486
|
+
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
487
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
488
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
489
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
490
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
491
|
+
}>]>>;
|
|
492
|
+
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
493
|
+
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
494
|
+
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
495
|
+
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
496
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
497
|
+
}>]>>;
|
|
498
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
499
|
+
content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
500
|
+
name: _sinclair_typebox.TString;
|
|
501
|
+
props: _sinclair_typebox.TObject<{}>;
|
|
502
|
+
children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
|
|
503
|
+
}>]>>>;
|
|
504
|
+
}>>>;
|
|
505
|
+
}>>;
|
|
506
|
+
keepInOnePage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
507
|
+
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
508
|
+
repeatHeaderOnPageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
509
|
+
}>;
|
|
510
|
+
readonly header: _sinclair_typebox.TObject<{
|
|
511
|
+
text: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
512
|
+
logo: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
513
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">]>>;
|
|
514
|
+
position: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
515
|
+
firstPage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
516
|
+
oddPages: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
517
|
+
evenPages: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
518
|
+
showPageNumbers: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
519
|
+
showDate: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
520
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
521
|
+
}>;
|
|
522
|
+
readonly footer: _sinclair_typebox.TObject<{
|
|
523
|
+
text: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
524
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">]>>;
|
|
525
|
+
position: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
526
|
+
firstPage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
527
|
+
oddPages: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
528
|
+
evenPages: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
529
|
+
showPageNumbers: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
530
|
+
showDate: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
531
|
+
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
532
|
+
}>;
|
|
533
|
+
readonly list: _sinclair_typebox.TObject<{
|
|
534
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
535
|
+
text: _sinclair_typebox.TString;
|
|
536
|
+
level: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
537
|
+
}>]>>;
|
|
538
|
+
reference: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
539
|
+
levels: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
540
|
+
level: _sinclair_typebox.TNumber;
|
|
541
|
+
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"decimal">, _sinclair_typebox.TLiteral<"upperRoman">, _sinclair_typebox.TLiteral<"lowerRoman">, _sinclair_typebox.TLiteral<"upperLetter">, _sinclair_typebox.TLiteral<"lowerLetter">, _sinclair_typebox.TLiteral<"bullet">, _sinclair_typebox.TLiteral<"ordinal">, _sinclair_typebox.TLiteral<"cardinalText">, _sinclair_typebox.TLiteral<"ordinalText">, _sinclair_typebox.TLiteral<"hex">, _sinclair_typebox.TLiteral<"chicago">, _sinclair_typebox.TLiteral<"ideographDigital">, _sinclair_typebox.TLiteral<"japaneseCounting">, _sinclair_typebox.TLiteral<"aiueo">, _sinclair_typebox.TLiteral<"iroha">, _sinclair_typebox.TLiteral<"decimalFullWidth">, _sinclair_typebox.TLiteral<"decimalHalfWidth">, _sinclair_typebox.TLiteral<"japaneseLegal">, _sinclair_typebox.TLiteral<"japaneseDigitalTenThousand">, _sinclair_typebox.TLiteral<"decimalEnclosedCircle">, _sinclair_typebox.TLiteral<"decimalFullWidth2">, _sinclair_typebox.TLiteral<"aiueoFullWidth">, _sinclair_typebox.TLiteral<"irohaFullWidth">, _sinclair_typebox.TLiteral<"decimalZero">, _sinclair_typebox.TLiteral<"ganada">, _sinclair_typebox.TLiteral<"chosung">, _sinclair_typebox.TLiteral<"decimalEnclosedFullstop">, _sinclair_typebox.TLiteral<"decimalEnclosedParen">, _sinclair_typebox.TLiteral<"decimalEnclosedCircleChinese">, _sinclair_typebox.TLiteral<"ideographEnclosedCircle">, _sinclair_typebox.TLiteral<"ideographTraditional">, _sinclair_typebox.TLiteral<"ideographZodiac">, _sinclair_typebox.TLiteral<"ideographZodiacTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCounting">, _sinclair_typebox.TLiteral<"ideographLegalTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCountingThousand">, _sinclair_typebox.TLiteral<"taiwaneseDigital">, _sinclair_typebox.TLiteral<"chineseCounting">, _sinclair_typebox.TLiteral<"chineseLegalSimplified">, _sinclair_typebox.TLiteral<"chineseCountingThousand">, _sinclair_typebox.TLiteral<"koreanDigital">, _sinclair_typebox.TLiteral<"koreanCounting">, _sinclair_typebox.TLiteral<"koreanLegal">, _sinclair_typebox.TLiteral<"koreanDigital2">, _sinclair_typebox.TLiteral<"vietnameseCounting">, _sinclair_typebox.TLiteral<"russianLower">, _sinclair_typebox.TLiteral<"russianUpper">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"numberInDash">, _sinclair_typebox.TLiteral<"hebrew1">, _sinclair_typebox.TLiteral<"hebrew2">, _sinclair_typebox.TLiteral<"arabicAlpha">, _sinclair_typebox.TLiteral<"arabicAbjad">, _sinclair_typebox.TLiteral<"hindiVowels">, _sinclair_typebox.TLiteral<"hindiConsonants">, _sinclair_typebox.TLiteral<"hindiNumbers">, _sinclair_typebox.TLiteral<"hindiCounting">, _sinclair_typebox.TLiteral<"thaiLetters">, _sinclair_typebox.TLiteral<"thaiNumbers">, _sinclair_typebox.TLiteral<"thaiCounting">]>>;
|
|
542
|
+
text: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
543
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"start">, _sinclair_typebox.TLiteral<"end">, _sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"center">]>>;
|
|
544
|
+
indent: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
545
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
546
|
+
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
547
|
+
}>>;
|
|
548
|
+
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
549
|
+
}>>>;
|
|
550
|
+
format: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"decimal">, _sinclair_typebox.TLiteral<"upperRoman">, _sinclair_typebox.TLiteral<"lowerRoman">, _sinclair_typebox.TLiteral<"upperLetter">, _sinclair_typebox.TLiteral<"lowerLetter">, _sinclair_typebox.TLiteral<"bullet">, _sinclair_typebox.TLiteral<"ordinal">, _sinclair_typebox.TLiteral<"cardinalText">, _sinclair_typebox.TLiteral<"ordinalText">, _sinclair_typebox.TLiteral<"hex">, _sinclair_typebox.TLiteral<"chicago">, _sinclair_typebox.TLiteral<"ideographDigital">, _sinclair_typebox.TLiteral<"japaneseCounting">, _sinclair_typebox.TLiteral<"aiueo">, _sinclair_typebox.TLiteral<"iroha">, _sinclair_typebox.TLiteral<"decimalFullWidth">, _sinclair_typebox.TLiteral<"decimalHalfWidth">, _sinclair_typebox.TLiteral<"japaneseLegal">, _sinclair_typebox.TLiteral<"japaneseDigitalTenThousand">, _sinclair_typebox.TLiteral<"decimalEnclosedCircle">, _sinclair_typebox.TLiteral<"decimalFullWidth2">, _sinclair_typebox.TLiteral<"aiueoFullWidth">, _sinclair_typebox.TLiteral<"irohaFullWidth">, _sinclair_typebox.TLiteral<"decimalZero">, _sinclair_typebox.TLiteral<"ganada">, _sinclair_typebox.TLiteral<"chosung">, _sinclair_typebox.TLiteral<"decimalEnclosedFullstop">, _sinclair_typebox.TLiteral<"decimalEnclosedParen">, _sinclair_typebox.TLiteral<"decimalEnclosedCircleChinese">, _sinclair_typebox.TLiteral<"ideographEnclosedCircle">, _sinclair_typebox.TLiteral<"ideographTraditional">, _sinclair_typebox.TLiteral<"ideographZodiac">, _sinclair_typebox.TLiteral<"ideographZodiacTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCounting">, _sinclair_typebox.TLiteral<"ideographLegalTraditional">, _sinclair_typebox.TLiteral<"taiwaneseCountingThousand">, _sinclair_typebox.TLiteral<"taiwaneseDigital">, _sinclair_typebox.TLiteral<"chineseCounting">, _sinclair_typebox.TLiteral<"chineseLegalSimplified">, _sinclair_typebox.TLiteral<"chineseCountingThousand">, _sinclair_typebox.TLiteral<"koreanDigital">, _sinclair_typebox.TLiteral<"koreanCounting">, _sinclair_typebox.TLiteral<"koreanLegal">, _sinclair_typebox.TLiteral<"koreanDigital2">, _sinclair_typebox.TLiteral<"vietnameseCounting">, _sinclair_typebox.TLiteral<"russianLower">, _sinclair_typebox.TLiteral<"russianUpper">, _sinclair_typebox.TLiteral<"none">, _sinclair_typebox.TLiteral<"numberInDash">, _sinclair_typebox.TLiteral<"hebrew1">, _sinclair_typebox.TLiteral<"hebrew2">, _sinclair_typebox.TLiteral<"arabicAlpha">, _sinclair_typebox.TLiteral<"arabicAbjad">, _sinclair_typebox.TLiteral<"hindiVowels">, _sinclair_typebox.TLiteral<"hindiConsonants">, _sinclair_typebox.TLiteral<"hindiNumbers">, _sinclair_typebox.TLiteral<"hindiCounting">, _sinclair_typebox.TLiteral<"thaiLetters">, _sinclair_typebox.TLiteral<"thaiNumbers">, _sinclair_typebox.TLiteral<"thaiCounting">]>, _sinclair_typebox.TLiteral<"numbered">, _sinclair_typebox.TLiteral<"none">]>>;
|
|
551
|
+
bullet: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
552
|
+
start: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
553
|
+
spacing: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
554
|
+
before: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
555
|
+
after: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
556
|
+
item: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
557
|
+
}>>;
|
|
558
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
559
|
+
indent: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
560
|
+
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
561
|
+
hanging: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
562
|
+
}>]>>;
|
|
563
|
+
}>;
|
|
564
|
+
readonly custom: _sinclair_typebox.TObject<{
|
|
565
|
+
name: _sinclair_typebox.TLiteral<"text-space-after">;
|
|
566
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
567
|
+
props: _sinclair_typebox.TObject<{
|
|
568
|
+
content: _sinclair_typebox.TString;
|
|
569
|
+
spaceAfter: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
570
|
+
fontSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
571
|
+
fontFamily: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
572
|
+
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
573
|
+
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
574
|
+
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
575
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
576
|
+
alignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
577
|
+
}>;
|
|
578
|
+
}>;
|
|
579
|
+
};
|
|
580
|
+
type StandardComponentName = keyof typeof COMPONENT_SCHEMA_MAP;
|
|
581
|
+
/**
|
|
582
|
+
* Validate a component configuration by type
|
|
583
|
+
*/
|
|
584
|
+
declare function validateComponent<T extends StandardComponentName>(name: T, props: unknown, options?: ValidationOptions): ComponentValidationResult<any>;
|
|
585
|
+
/**
|
|
586
|
+
* Validate a complete component definition (including nested children)
|
|
587
|
+
*/
|
|
588
|
+
declare function validateComponentDefinition(component: unknown, options?: ValidationOptions): ComponentValidationResult;
|
|
589
|
+
/**
|
|
590
|
+
* Validate a custom component configuration with a custom schema
|
|
591
|
+
* This is for plugin components that have their own TypeBox schema
|
|
592
|
+
*/
|
|
593
|
+
declare function validateCustomComponentProps<T>(componentSchema: TSchema, config: unknown, options?: ValidationOptions): ComponentValidationResult<T>;
|
|
594
|
+
/**
|
|
595
|
+
* Batch validate multiple components
|
|
596
|
+
*/
|
|
597
|
+
declare function validateComponents(components: Array<{
|
|
598
|
+
name: string;
|
|
599
|
+
props: unknown;
|
|
600
|
+
}>, options?: ValidationOptions): ComponentValidationResult[];
|
|
601
|
+
/**
|
|
602
|
+
* Type guards for component names
|
|
603
|
+
*/
|
|
604
|
+
declare function isStandardComponentName(name: string): name is StandardComponentName;
|
|
605
|
+
declare function isReportProps(config: unknown): config is Static<typeof ReportPropsSchema>;
|
|
606
|
+
declare function isSectionProps(config: unknown): config is Static<typeof SectionPropsSchema>;
|
|
607
|
+
declare function isHeadingProps(config: unknown): config is Static<typeof HeadingPropsSchema>;
|
|
608
|
+
declare function isParagraphProps(config: unknown): config is Static<typeof ParagraphPropsSchema>;
|
|
609
|
+
declare function isColumnsProps(config: unknown): config is Static<typeof ColumnsPropsSchema>;
|
|
610
|
+
declare function isImageProps(config: unknown): config is Static<typeof ImagePropsSchema>;
|
|
611
|
+
declare function isStatisticProps(config: unknown): config is Static<typeof StatisticPropsSchema>;
|
|
612
|
+
declare function isTableProps(config: unknown): config is Static<typeof TablePropsSchema>;
|
|
613
|
+
declare function isHeaderProps(config: unknown): config is Static<typeof HeaderPropsSchema>;
|
|
614
|
+
declare function isFooterProps(config: unknown): config is Static<typeof FooterPropsSchema>;
|
|
615
|
+
declare function isListProps(config: unknown): config is Static<typeof ListPropsSchema>;
|
|
616
|
+
declare function isCustomComponentProps(config: unknown): config is Static<typeof CustomComponentDefinitionSchema>;
|
|
617
|
+
/**
|
|
618
|
+
* Create a component validator with default options
|
|
619
|
+
*/
|
|
620
|
+
declare function createComponentValidator(defaultOptions?: ValidationOptions): {
|
|
621
|
+
validate: (name: string, props: unknown, options?: ValidationOptions) => ComponentValidationResult<any>;
|
|
622
|
+
validateDefinition: (component: unknown, options?: ValidationOptions) => ComponentValidationResult<unknown>;
|
|
623
|
+
validateCustom: <T>(schema: TSchema, config: unknown, options?: ValidationOptions) => ComponentValidationResult<T>;
|
|
624
|
+
};
|
|
625
|
+
declare const componentValidator: {
|
|
626
|
+
validate: (name: string, props: unknown, options?: ValidationOptions) => ComponentValidationResult<any>;
|
|
627
|
+
validateDefinition: (component: unknown, options?: ValidationOptions) => ComponentValidationResult<unknown>;
|
|
628
|
+
validateCustom: <T>(schema: TSchema, config: unknown, options?: ValidationOptions) => ComponentValidationResult<T>;
|
|
629
|
+
};
|
|
630
|
+
declare const strictComponentValidator: {
|
|
631
|
+
validate: (name: string, props: unknown, options?: ValidationOptions) => ComponentValidationResult<any>;
|
|
632
|
+
validateDefinition: (component: unknown, options?: ValidationOptions) => ComponentValidationResult<unknown>;
|
|
633
|
+
validateCustom: <T>(schema: TSchema, config: unknown, options?: ValidationOptions) => ComponentValidationResult<T>;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Unified error transformation utilities
|
|
638
|
+
* Converts TypeBox ValueError objects to standardized ValidationError format
|
|
639
|
+
*/
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Transform TypeBox ValueError to standardized ValidationError
|
|
643
|
+
*/
|
|
644
|
+
declare function transformValueError(error: ValueError, jsonString?: string, config?: ErrorFormatterConfig): ValidationError;
|
|
645
|
+
/**
|
|
646
|
+
* Transform multiple TypeBox errors to ValidationError array
|
|
647
|
+
* Enhanced to collect ALL errors, not just stopping at union failures
|
|
648
|
+
*/
|
|
649
|
+
declare function transformValueErrors(errors: ValueError[], options?: {
|
|
650
|
+
jsonString?: string;
|
|
651
|
+
maxErrors?: number;
|
|
652
|
+
}): ValidationError[];
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Deep validation utilities for collecting ALL errors in nested structures
|
|
656
|
+
* This bypasses TypeBox's union short-circuiting to provide comprehensive error reporting
|
|
657
|
+
*/
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Deep validate a document to collect ALL errors, not just union-level errors
|
|
661
|
+
*/
|
|
662
|
+
declare function deepValidateDocument(data: any): ValidationError[];
|
|
663
|
+
/**
|
|
664
|
+
* Combine deep validation with standard validation
|
|
665
|
+
*/
|
|
666
|
+
declare function comprehensiveValidateDocument(data: any, existingErrors?: ValidationError[]): ValidationError[];
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Error message templates
|
|
670
|
+
*/
|
|
671
|
+
declare const ERROR_TEMPLATES: {
|
|
672
|
+
readonly UNION_NO_MATCH: "Value doesn't match any of the expected formats";
|
|
673
|
+
readonly TYPE_MISMATCH: "Expected {expected} but got {actual}";
|
|
674
|
+
readonly MISSING_REQUIRED: "Missing required field '{field}'";
|
|
675
|
+
readonly UNKNOWN_PROPERTY: "Unknown property '{property}'";
|
|
676
|
+
readonly INVALID_FORMAT: "Invalid {type} format";
|
|
677
|
+
readonly PATTERN_MISMATCH: "Value doesn't match the required pattern";
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Documentation links for common errors
|
|
681
|
+
*/
|
|
682
|
+
declare const DOC_LINKS: {
|
|
683
|
+
readonly MODULE_TYPES: "https://docs.json-to-docx.com/modules";
|
|
684
|
+
readonly THEME_CONFIG: "https://docs.json-to-docx.com/themes";
|
|
685
|
+
readonly VALIDATION: "https://docs.json-to-docx.com/validation";
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Simple validation API
|
|
690
|
+
* The main entry point for most validation needs
|
|
691
|
+
*/
|
|
692
|
+
declare const validate: {
|
|
693
|
+
document: (data: unknown) => DocumentValidationResult;
|
|
694
|
+
jsonDocument: (jsonInput: string | object) => DocumentValidationResult;
|
|
695
|
+
theme: (data: unknown) => ThemeValidationResult;
|
|
696
|
+
jsonTheme: (jsonInput: string | object) => ThemeValidationResult;
|
|
697
|
+
component: (name: string, props: unknown) => ComponentValidationResult<any>;
|
|
698
|
+
componentDefinition: (component: unknown) => ComponentValidationResult<unknown>;
|
|
699
|
+
components: (components: Array<{
|
|
700
|
+
name: string;
|
|
701
|
+
props: unknown;
|
|
702
|
+
}>) => ComponentValidationResult<any>[];
|
|
703
|
+
isDocument: (data: unknown) => boolean;
|
|
704
|
+
isTheme: (data: unknown) => boolean;
|
|
705
|
+
isComponent: (name: string, props: unknown) => boolean;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* Strict validation API
|
|
709
|
+
* For cases where you want no cleaning or defaults
|
|
710
|
+
*/
|
|
711
|
+
declare const validateStrict: {
|
|
712
|
+
document: (data: unknown) => DocumentValidationResult;
|
|
713
|
+
jsonDocument: (jsonInput: string | object) => DocumentValidationResult;
|
|
714
|
+
theme: (data: unknown) => ThemeValidationResult;
|
|
715
|
+
jsonTheme: (jsonInput: string | object) => ThemeValidationResult;
|
|
716
|
+
component: (name: string, props: unknown) => ComponentValidationResult<any>;
|
|
717
|
+
componentDefinition: (component: unknown) => ComponentValidationResult<unknown>;
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
export { ComponentValidationResult, DOC_LINKS, DocumentValidationResult, ERROR_TEMPLATES, JsonValidationResult, type StandardComponentName, ThemeValidationResult, ValidationOptions, componentValidator, comprehensiveValidateDocument, createComponentValidator, createJsonValidator, createThemeValidator, createValidator, deepValidateDocument, getThemeName, getValidationSummary, isColumnsProps, isCustomComponentProps, isFooterProps, isHeaderProps, isHeadingProps, isImageProps, isListProps, isParagraphProps, isReportProps, isSectionProps, isStandardComponentName, isStatisticProps, isTableProps, isThemeConfig, isValidTheme, isValidationSuccess, strictComponentValidator, strictThemeValidator, themeValidator, transformValueError as transformDocxValueError, transformValueErrors as transformDocxValueErrors, validate, validateAgainstSchema, validateBatch, validateComponent, validateComponentDefinition, validateComponents, validateCustomComponentProps, validateJson, validateStrict, validateTheme, validateThemeJson, validateThemeWithEnhancement, validateWithEnhancement };
|