@json-to-office/shared-docx 0.2.0 → 0.3.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/{chunk-CN6VD4WH.js → chunk-3D6HY6AC.js} +159 -86
- package/dist/chunk-3D6HY6AC.js.map +1 -0
- package/dist/{chunk-HHMK2RWF.js → chunk-AMVS7BRX.js} +7 -2
- package/dist/chunk-AMVS7BRX.js.map +1 -0
- package/dist/{chunk-WTN6PMNZ.js → chunk-CVI7GFWX.js} +6 -7
- package/dist/chunk-CVI7GFWX.js.map +1 -0
- package/dist/{chunk-TBDQHRHI.js → chunk-DEIEJUY4.js} +2 -2
- package/dist/{chunk-YGWE6RFN.js → chunk-EDYWA2KA.js} +2 -2
- package/dist/{chunk-NCGCTQZ6.js → chunk-GGNGVIZO.js} +8 -8
- package/dist/{chunk-MXVEVEY7.js → chunk-S4EFGCIC.js} +2 -2
- package/dist/{chunk-XPL7NECE.js → chunk-WJA5TGNI.js} +25 -15
- package/dist/chunk-WJA5TGNI.js.map +1 -0
- package/dist/{chunk-6A2M4E4E.js → chunk-YNBTESFN.js} +6 -6
- package/dist/index.d.ts +1 -202
- package/dist/index.js +22 -22
- package/dist/schemas/api.js +3 -3
- package/dist/schemas/component-registry.d.ts +35 -5
- package/dist/schemas/component-registry.js +3 -1
- package/dist/schemas/components.d.ts +12 -200
- package/dist/schemas/components.js +6 -4
- package/dist/schemas/document.js +4 -4
- package/dist/schemas/export.js +3 -1
- package/dist/schemas/generator.js +2 -2
- package/dist/schemas/theme.d.ts +3 -597
- package/dist/schemas/theme.js +3 -3
- package/dist/validation/unified/index.d.ts +1 -199
- package/dist/validation/unified/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-CN6VD4WH.js.map +0 -1
- package/dist/chunk-HHMK2RWF.js.map +0 -1
- package/dist/chunk-WTN6PMNZ.js.map +0 -1
- package/dist/chunk-XPL7NECE.js.map +0 -1
- /package/dist/{chunk-TBDQHRHI.js.map → chunk-DEIEJUY4.js.map} +0 -0
- /package/dist/{chunk-YGWE6RFN.js.map → chunk-EDYWA2KA.js.map} +0 -0
- /package/dist/{chunk-NCGCTQZ6.js.map → chunk-GGNGVIZO.js.map} +0 -0
- /package/dist/{chunk-MXVEVEY7.js.map → chunk-S4EFGCIC.js.map} +0 -0
- /package/dist/{chunk-6A2M4E4E.js.map → chunk-YNBTESFN.js.map} +0 -0
package/dist/schemas/api.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
GenerateDocumentResponseSchema,
|
|
4
4
|
ValidateDocumentRequestSchema,
|
|
5
5
|
ValidateDocumentResponseSchema
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-EDYWA2KA.js";
|
|
7
|
+
import "../chunk-CVI7GFWX.js";
|
|
8
|
+
import "../chunk-3D6HY6AC.js";
|
|
9
9
|
import "../chunk-F5LVWDTY.js";
|
|
10
10
|
export {
|
|
11
11
|
GenerateDocumentRequestSchema,
|
|
@@ -25,6 +25,19 @@ interface StandardComponentDefinition {
|
|
|
25
25
|
propsSchema: TSchema;
|
|
26
26
|
/** Whether this component can contain children */
|
|
27
27
|
hasChildren: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Names of standard components allowed as direct children.
|
|
30
|
+
* Only meaningful when hasChildren is true.
|
|
31
|
+
* Plugin components are always allowed in addition to these.
|
|
32
|
+
* Omit to allow the full recursive union (backward-compat).
|
|
33
|
+
*/
|
|
34
|
+
allowedChildren?: readonly string[];
|
|
35
|
+
/**
|
|
36
|
+
* Factory that builds props with a live recursive ref (e.g., for section
|
|
37
|
+
* header/footer, table cell content). When present and a recursive ref is
|
|
38
|
+
* available, used instead of the static `propsSchema`.
|
|
39
|
+
*/
|
|
40
|
+
createPropsSchema?: (recursiveRef: TSchema) => TSchema;
|
|
28
41
|
/** Component category for organization */
|
|
29
42
|
category: 'container' | 'content' | 'layout';
|
|
30
43
|
/** Human-readable description */
|
|
@@ -72,19 +85,36 @@ declare function getContentComponents(): readonly StandardComponentDefinition[];
|
|
|
72
85
|
*/
|
|
73
86
|
declare function isStandardComponent(name: string): boolean;
|
|
74
87
|
/**
|
|
75
|
-
* Generate TypeBox schema object for a component
|
|
88
|
+
* Generate TypeBox schema object for a component.
|
|
76
89
|
*
|
|
77
90
|
* @param component - Component definition from the registry
|
|
78
|
-
* @param
|
|
91
|
+
* @param childrenType - Schema for children items. For containers this should be
|
|
92
|
+
* a narrowed union of allowed children; for leaves omit it.
|
|
79
93
|
* @returns TypeBox schema object for the component
|
|
80
94
|
*/
|
|
81
|
-
declare function createComponentSchemaObject(component: StandardComponentDefinition,
|
|
95
|
+
declare function createComponentSchemaObject(component: StandardComponentDefinition, childrenType?: TSchema, selfRef?: TSchema): TSchema;
|
|
82
96
|
/**
|
|
83
|
-
* Generate an array of TypeBox schemas for all standard components
|
|
97
|
+
* Generate an array of TypeBox schemas for all standard components.
|
|
98
|
+
* Uses a flat recursive ref for all containers (legacy behavior).
|
|
84
99
|
*
|
|
85
100
|
* @param recursiveRef - Optional recursive reference for children
|
|
86
101
|
* @returns Array of TypeBox schemas for all components in the registry
|
|
87
102
|
*/
|
|
88
103
|
declare function createAllComponentSchemas(recursiveRef?: TSchema): readonly TSchema[];
|
|
104
|
+
/**
|
|
105
|
+
* Build all standard component schemas with per-container narrowed children.
|
|
106
|
+
*
|
|
107
|
+
* Resolves containers in dependency order so each container's children union
|
|
108
|
+
* only references its allowedChildren. Plugin schemas are always included in
|
|
109
|
+
* every container's children.
|
|
110
|
+
*
|
|
111
|
+
* @param selfRef - The Type.Recursive self-reference (used as fallback and for plugin children)
|
|
112
|
+
* @param pluginSchemas - Plugin component schemas (always allowed in all containers)
|
|
113
|
+
* @returns schemas array and a byName map for direct lookups
|
|
114
|
+
*/
|
|
115
|
+
declare function createAllComponentSchemasNarrowed(selfRef: TSchema, pluginSchemas?: TSchema[]): {
|
|
116
|
+
schemas: TSchema[];
|
|
117
|
+
byName: Map<string, TSchema>;
|
|
118
|
+
};
|
|
89
119
|
|
|
90
|
-
export { STANDARD_COMPONENTS_REGISTRY, type StandardComponentDefinition, createAllComponentSchemas, createComponentSchemaObject, getAllStandardComponentNames, getComponentsByCategory, getContainerComponents, getContentComponents, getStandardComponent, isStandardComponent };
|
|
120
|
+
export { STANDARD_COMPONENTS_REGISTRY, type StandardComponentDefinition, createAllComponentSchemas, createAllComponentSchemasNarrowed, createComponentSchemaObject, getAllStandardComponentNames, getComponentsByCategory, getContainerComponents, getContentComponents, getStandardComponent, isStandardComponent };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
STANDARD_COMPONENTS_REGISTRY,
|
|
3
3
|
createAllComponentSchemas,
|
|
4
|
+
createAllComponentSchemasNarrowed,
|
|
4
5
|
createComponentSchemaObject,
|
|
5
6
|
getAllStandardComponentNames,
|
|
6
7
|
getComponentsByCategory,
|
|
@@ -8,11 +9,12 @@ import {
|
|
|
8
9
|
getContentComponents,
|
|
9
10
|
getStandardComponent,
|
|
10
11
|
isStandardComponent
|
|
11
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-3D6HY6AC.js";
|
|
12
13
|
import "../chunk-F5LVWDTY.js";
|
|
13
14
|
export {
|
|
14
15
|
STANDARD_COMPONENTS_REGISTRY,
|
|
15
16
|
createAllComponentSchemas,
|
|
17
|
+
createAllComponentSchemasNarrowed,
|
|
16
18
|
createComponentSchemaObject,
|
|
17
19
|
getAllStandardComponentNames,
|
|
18
20
|
getComponentsByCategory,
|
|
@@ -366,205 +366,17 @@ declare const StatisticPropsSchema: _sinclair_typebox.TObject<{
|
|
|
366
366
|
}>;
|
|
367
367
|
type StatisticProps = Static<typeof StatisticPropsSchema>;
|
|
368
368
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
381
|
-
}>]>>;
|
|
382
|
-
hideBorders: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TObject<{
|
|
383
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
384
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
385
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
386
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
387
|
-
insideHorizontal: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
388
|
-
insideVertical: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
389
|
-
}>]>>;
|
|
390
|
-
cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
391
|
-
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
392
|
-
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
393
|
-
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
394
|
-
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
395
|
-
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
396
|
-
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
397
|
-
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
398
|
-
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
399
|
-
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
400
|
-
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
401
|
-
}>>;
|
|
402
|
-
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
403
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
404
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
405
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
406
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
407
|
-
}>]>>;
|
|
408
|
-
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
409
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
410
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
411
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
412
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
413
|
-
}>]>>;
|
|
414
|
-
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
415
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
416
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
417
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
418
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
419
|
-
}>]>>;
|
|
420
|
-
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
421
|
-
}>>;
|
|
422
|
-
headerCellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
423
|
-
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
424
|
-
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
425
|
-
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
426
|
-
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
427
|
-
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
428
|
-
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
429
|
-
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
430
|
-
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
431
|
-
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
432
|
-
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
433
|
-
}>>;
|
|
434
|
-
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
435
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
436
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
437
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
438
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
439
|
-
}>]>>;
|
|
440
|
-
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
441
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
442
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
443
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
444
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
445
|
-
}>]>>;
|
|
446
|
-
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
447
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
448
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
449
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
450
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
451
|
-
}>]>>;
|
|
452
|
-
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
453
|
-
}>>;
|
|
454
|
-
width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
455
|
-
columns: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
456
|
-
width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
|
|
457
|
-
cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
458
|
-
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
459
|
-
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
460
|
-
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
461
|
-
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
462
|
-
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
463
|
-
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
464
|
-
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
465
|
-
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
466
|
-
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
467
|
-
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
468
|
-
}>>;
|
|
469
|
-
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
470
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
471
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
472
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
473
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
474
|
-
}>]>>;
|
|
475
|
-
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
476
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
477
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
478
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
479
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
480
|
-
}>]>>;
|
|
481
|
-
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
482
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
483
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
484
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
485
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
486
|
-
}>]>>;
|
|
487
|
-
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
488
|
-
}>>;
|
|
489
|
-
header: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
490
|
-
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
491
|
-
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
492
|
-
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
493
|
-
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
494
|
-
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
495
|
-
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
496
|
-
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
497
|
-
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
498
|
-
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
499
|
-
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
500
|
-
}>>;
|
|
501
|
-
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
502
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
503
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
504
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
505
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
506
|
-
}>]>>;
|
|
507
|
-
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
508
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
509
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
510
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
511
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
512
|
-
}>]>>;
|
|
513
|
-
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
514
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
515
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
516
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
517
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
518
|
-
}>]>>;
|
|
519
|
-
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
520
|
-
content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
521
|
-
name: _sinclair_typebox.TString;
|
|
522
|
-
props: _sinclair_typebox.TObject<{}>;
|
|
523
|
-
children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
|
|
524
|
-
}>]>>>;
|
|
525
|
-
}>>;
|
|
526
|
-
cells: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
527
|
-
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
528
|
-
backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
529
|
-
horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
|
|
530
|
-
verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
|
|
531
|
-
font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
532
|
-
family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
533
|
-
size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
534
|
-
bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
535
|
-
italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
536
|
-
underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
537
|
-
}>>;
|
|
538
|
-
borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
539
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
540
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
541
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
542
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
543
|
-
}>]>>;
|
|
544
|
-
borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
545
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
546
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
547
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
548
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
549
|
-
}>]>>;
|
|
550
|
-
padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
|
|
551
|
-
bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
552
|
-
top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
553
|
-
right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
554
|
-
left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
555
|
-
}>]>>;
|
|
556
|
-
height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
557
|
-
content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
|
|
558
|
-
name: _sinclair_typebox.TString;
|
|
559
|
-
props: _sinclair_typebox.TObject<{}>;
|
|
560
|
-
children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
|
|
561
|
-
}>]>>>;
|
|
562
|
-
}>>>;
|
|
563
|
-
}>>;
|
|
564
|
-
keepInOnePage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
565
|
-
keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
566
|
-
repeatHeaderOnPageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
567
|
-
}>;
|
|
369
|
+
/**
|
|
370
|
+
* Table Component Schema
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Build TablePropsSchema with a given cell-content type.
|
|
375
|
+
* Called with `CellContentSchema` for the static export below, and with a
|
|
376
|
+
* live recursive ref at schema-generation time.
|
|
377
|
+
*/
|
|
378
|
+
declare function createTablePropsSchema(componentRef: TSchema): TSchema;
|
|
379
|
+
declare const TablePropsSchema: TSchema;
|
|
568
380
|
type TableProps = Static<typeof TablePropsSchema>;
|
|
569
381
|
|
|
570
382
|
declare const HeaderPropsSchema: _sinclair_typebox.TObject<{
|
|
@@ -752,4 +564,4 @@ declare const StandardComponentDefinitionSchema: _sinclair_typebox.TUnion<_sincl
|
|
|
752
564
|
declare const ComponentDefinitionSchema: _sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<_sinclair_typebox.TSchema[]>>;
|
|
753
565
|
type ComponentDefinition = Static<typeof ComponentDefinitionSchema>;
|
|
754
566
|
|
|
755
|
-
export { type Alignment, AlignmentSchema, BaseComponentFields, type BaseComponentProps, BaseComponentPropsSchema, type Border, BorderSchema, type ColumnsProps, ColumnsPropsSchema, type ComponentDefinition, ComponentDefinitionSchema, type FloatingProperties, FloatingPropertiesSchema, type FooterProps, FooterPropsSchema, type HeaderProps, HeaderPropsSchema, type HeadingLevel, HeadingLevelSchema, type HeadingProps, HeadingPropsSchema, type HighchartsProps, HighchartsPropsSchema, type HorizontalPositionAlign, HorizontalPositionAlignSchema, type HorizontalPositionRelativeFrom, HorizontalPositionRelativeFromSchema, type ImageProps, ImagePropsSchema, type Indent, IndentSchema, type JustifiedAlignment, JustifiedAlignmentSchema, type LevelFormat, LevelFormatSchema, type LineSpacing, LineSpacingSchema, type ListLevelProps, ListLevelPropsSchema, type ListProps, ListPropsSchema, type ListSpacing, ListSpacingSchema, type Margins, MarginsSchema, type Numbering, NumberingSchema, type ParagraphProps, ParagraphPropsSchema, type ReportProps, ReportPropsSchema, type SectionProps, SectionPropsSchema, type Spacing, SpacingSchema, StandardComponentDefinitionSchema, type StatisticProps, StatisticPropsSchema, type TableProps, TablePropsSchema, type TextBoxProps, TextBoxPropsSchema, type TextWrappingSide, TextWrappingSideSchema, type TextWrappingType, TextWrappingTypeSchema, TocDepthRangeSchema, type TocProps, TocPropsSchema, TocScopeSchema, TocStyleMappingSchema, TocStyleSchema, type VerticalPositionAlign, VerticalPositionAlignSchema, type VerticalPositionRelativeFrom, VerticalPositionRelativeFromSchema, createReportPropsSchema, createSectionPropsSchema };
|
|
567
|
+
export { type Alignment, AlignmentSchema, BaseComponentFields, type BaseComponentProps, BaseComponentPropsSchema, type Border, BorderSchema, type ColumnsProps, ColumnsPropsSchema, type ComponentDefinition, ComponentDefinitionSchema, type FloatingProperties, FloatingPropertiesSchema, type FooterProps, FooterPropsSchema, type HeaderProps, HeaderPropsSchema, type HeadingLevel, HeadingLevelSchema, type HeadingProps, HeadingPropsSchema, type HighchartsProps, HighchartsPropsSchema, type HorizontalPositionAlign, HorizontalPositionAlignSchema, type HorizontalPositionRelativeFrom, HorizontalPositionRelativeFromSchema, type ImageProps, ImagePropsSchema, type Indent, IndentSchema, type JustifiedAlignment, JustifiedAlignmentSchema, type LevelFormat, LevelFormatSchema, type LineSpacing, LineSpacingSchema, type ListLevelProps, ListLevelPropsSchema, type ListProps, ListPropsSchema, type ListSpacing, ListSpacingSchema, type Margins, MarginsSchema, type Numbering, NumberingSchema, type ParagraphProps, ParagraphPropsSchema, type ReportProps, ReportPropsSchema, type SectionProps, SectionPropsSchema, type Spacing, SpacingSchema, StandardComponentDefinitionSchema, type StatisticProps, StatisticPropsSchema, type TableProps, TablePropsSchema, type TextBoxProps, TextBoxPropsSchema, type TextWrappingSide, TextWrappingSideSchema, type TextWrappingType, TextWrappingTypeSchema, TocDepthRangeSchema, type TocProps, TocPropsSchema, TocScopeSchema, TocStyleMappingSchema, TocStyleSchema, type VerticalPositionAlign, VerticalPositionAlignSchema, type VerticalPositionRelativeFrom, VerticalPositionRelativeFromSchema, createReportPropsSchema, createSectionPropsSchema, createTablePropsSchema };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentDefinitionSchema,
|
|
3
3
|
StandardComponentDefinitionSchema
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CVI7GFWX.js";
|
|
5
5
|
import {
|
|
6
6
|
AlignmentSchema,
|
|
7
7
|
BaseComponentFields,
|
|
@@ -43,8 +43,9 @@ import {
|
|
|
43
43
|
VerticalPositionAlignSchema,
|
|
44
44
|
VerticalPositionRelativeFromSchema,
|
|
45
45
|
createReportPropsSchema,
|
|
46
|
-
createSectionPropsSchema
|
|
47
|
-
|
|
46
|
+
createSectionPropsSchema,
|
|
47
|
+
createTablePropsSchema
|
|
48
|
+
} from "../chunk-3D6HY6AC.js";
|
|
48
49
|
import "../chunk-F5LVWDTY.js";
|
|
49
50
|
export {
|
|
50
51
|
AlignmentSchema,
|
|
@@ -89,6 +90,7 @@ export {
|
|
|
89
90
|
VerticalPositionAlignSchema,
|
|
90
91
|
VerticalPositionRelativeFromSchema,
|
|
91
92
|
createReportPropsSchema,
|
|
92
|
-
createSectionPropsSchema
|
|
93
|
+
createSectionPropsSchema,
|
|
94
|
+
createTablePropsSchema
|
|
93
95
|
};
|
|
94
96
|
//# sourceMappingURL=components.js.map
|
package/dist/schemas/document.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JSON_SCHEMA_URLS,
|
|
3
3
|
JsonComponentDefinitionSchema
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-S4EFGCIC.js";
|
|
5
5
|
import {
|
|
6
6
|
validateDocumentWithSchema,
|
|
7
7
|
validateJsonComponent
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-CN6VD4WH.js";
|
|
8
|
+
} from "../chunk-YNBTESFN.js";
|
|
9
|
+
import "../chunk-CVI7GFWX.js";
|
|
11
10
|
import "../chunk-VP3X6DBP.js";
|
|
11
|
+
import "../chunk-3D6HY6AC.js";
|
|
12
12
|
import "../chunk-F5LVWDTY.js";
|
|
13
13
|
export {
|
|
14
14
|
JSON_SCHEMA_URLS,
|
package/dist/schemas/export.js
CHANGED
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
createComponentSchema,
|
|
7
7
|
exportSchemaToFile,
|
|
8
8
|
fixSchemaReferences
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-AMVS7BRX.js";
|
|
10
|
+
import "../chunk-3D6HY6AC.js";
|
|
11
|
+
import "../chunk-F5LVWDTY.js";
|
|
10
12
|
export {
|
|
11
13
|
BASE_SCHEMA_METADATA,
|
|
12
14
|
COMPONENT_METADATA,
|