allyhub 0.5.0 → 0.6.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/commands/render.js +1 -1
- package/dist/commands/sheet.js +7 -7
- package/dist/commands/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
- package/dist/node_modules/@allyhub-next/build/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/check/package.json +1 -1
- package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/package.json +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/export/dist/export.js +4 -4
- package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/export/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +179 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +303 -11
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +135 -3
- package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/package.json +1 -1
- package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
- package/dist/node_modules/@allyhub-next/media/package.json +1 -1
- package/dist/node_modules/@allyhub-next/model/package.json +1 -1
- package/dist/node_modules/@allyhub-next/project/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +2 -11
- package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +1 -9
- package/dist/node_modules/@allyhub-next/render/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/site/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +64 -7
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +37 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +7 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +10 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +19 -19
- package/dist/node_modules/@allyhub-next/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/editor-web/assets/dist-BW2s9FMO.js +4 -0
- package/editor-web/assets/{dist-CuW84oPe.js → dist-C-6JmebI.js} +22 -22
- package/editor-web/assets/dist-CCYMLMKN.js +6 -0
- package/editor-web/assets/dist-CHzurjMx.js +33 -0
- package/editor-web/assets/{dist-Yi3sy7Ea.js → dist-DF7H1dxw.js} +1 -1
- package/editor-web/assets/dist-Da5AUSKX.js +2 -0
- package/editor-web/assets/index-CovQYWvD.js +69 -0
- package/editor-web/assets/minus-BrvjaJyO.js +1 -0
- package/editor-web/assets/react-DV5fPdiH.js +101 -0
- package/editor-web/assets/{textarea-CvxipnGW.js → textarea-B0vCGdZI.js} +2 -2
- package/editor-web/assets/{trash-2-Bq1Dt8XG.js → trash-2-B0dvc1cZ.js} +1 -1
- package/editor-web/assets/{undo-2-Djhvu4xt.js → undo-2-A1EPubPO.js} +1 -1
- package/editor-web/index.html +2 -2
- package/package.json +2 -2
- package/editor-web/assets/dist-Cg2PdedY.js +0 -6
- package/editor-web/assets/dist-CxAS_vp7.js +0 -2
- package/editor-web/assets/dist-DCVaj9i1.js +0 -4
- package/editor-web/assets/dist-DGVUuVPB.js +0 -33
- package/editor-web/assets/index-pwRfZ2Jv.js +0 -69
- package/editor-web/assets/minus-BizJdinJ.js +0 -1
- package/editor-web/assets/react-D54s6gwK.js +0 -101
|
@@ -786,6 +786,7 @@ declare const ColumnEntry: z.ZodObject<{
|
|
|
786
786
|
}, z.core.$strict>>;
|
|
787
787
|
width: z.ZodOptional<z.ZodNumber>;
|
|
788
788
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
789
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
789
790
|
}, z.core.$strict>;
|
|
790
791
|
export type SheetColumn = z.output<typeof ColumnEntry>;
|
|
791
792
|
declare const RowEntry: z.ZodObject<{
|
|
@@ -927,6 +928,7 @@ declare const RowEntry: z.ZodObject<{
|
|
|
927
928
|
}, z.core.$strict>>;
|
|
928
929
|
height: z.ZodOptional<z.ZodNumber>;
|
|
929
930
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
931
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
930
932
|
}, z.core.$strict>;
|
|
931
933
|
export type SheetRow = z.output<typeof RowEntry>;
|
|
932
934
|
/** A filter over a range of the sheet, as Excel's AutoFilter: by column letter, what each keeps. */
|
|
@@ -1771,6 +1773,75 @@ declare const Chart: z.ZodObject<{
|
|
|
1771
1773
|
color: z.ZodOptional<z.ZodString>;
|
|
1772
1774
|
}, z.core.$strict>;
|
|
1773
1775
|
export type SheetChart = z.output<typeof Chart>;
|
|
1776
|
+
/** Excel's paper sizes people use, by their `paperSize` in a file. */
|
|
1777
|
+
export declare const SHEET_PAPERS: {
|
|
1778
|
+
readonly letter: 1;
|
|
1779
|
+
readonly legal: 5;
|
|
1780
|
+
readonly a3: 8;
|
|
1781
|
+
readonly a4: 9;
|
|
1782
|
+
readonly a5: 11;
|
|
1783
|
+
};
|
|
1784
|
+
declare const HeaderFooter: z.ZodObject<{
|
|
1785
|
+
left: z.ZodOptional<z.ZodString>;
|
|
1786
|
+
center: z.ZodOptional<z.ZodString>;
|
|
1787
|
+
right: z.ZodOptional<z.ZodString>;
|
|
1788
|
+
}, z.core.$strict>;
|
|
1789
|
+
export type SheetHeaderFooter = z.output<typeof HeaderFooter>;
|
|
1790
|
+
/** How a sheet prints: Excel's Page Layout. */
|
|
1791
|
+
declare const Print: z.ZodObject<{
|
|
1792
|
+
area: z.ZodOptional<z.ZodString>;
|
|
1793
|
+
title_rows: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
title_cols: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
1796
|
+
portrait: "portrait";
|
|
1797
|
+
landscape: "landscape";
|
|
1798
|
+
}>>;
|
|
1799
|
+
paper: z.ZodOptional<z.ZodEnum<{
|
|
1800
|
+
letter: "letter";
|
|
1801
|
+
legal: "legal";
|
|
1802
|
+
a3: "a3";
|
|
1803
|
+
a4: "a4";
|
|
1804
|
+
a5: "a5";
|
|
1805
|
+
}>>;
|
|
1806
|
+
fit: z.ZodOptional<z.ZodObject<{
|
|
1807
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1808
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1809
|
+
}, z.core.$strict>>;
|
|
1810
|
+
margins: z.ZodOptional<z.ZodObject<{
|
|
1811
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
1812
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
1813
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
1814
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
1815
|
+
header: z.ZodOptional<z.ZodNumber>;
|
|
1816
|
+
footer: z.ZodOptional<z.ZodNumber>;
|
|
1817
|
+
}, z.core.$strict>>;
|
|
1818
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
1819
|
+
left: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
center: z.ZodOptional<z.ZodString>;
|
|
1821
|
+
right: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
}, z.core.$strict>>;
|
|
1823
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
1824
|
+
left: z.ZodOptional<z.ZodString>;
|
|
1825
|
+
center: z.ZodOptional<z.ZodString>;
|
|
1826
|
+
right: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
}, z.core.$strict>>;
|
|
1828
|
+
}, z.core.$strict>;
|
|
1829
|
+
export type SheetPrint = z.output<typeof Print>;
|
|
1830
|
+
/** A picture over the cells: anchored as a chart is. */
|
|
1831
|
+
declare const Picture: z.ZodObject<{
|
|
1832
|
+
file: z.ZodString;
|
|
1833
|
+
at: z.ZodString;
|
|
1834
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1835
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1836
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1837
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1838
|
+
}, z.core.$strict>;
|
|
1839
|
+
export type SheetPicture = z.output<typeof Picture>;
|
|
1840
|
+
declare const Note: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1841
|
+
text: z.ZodString;
|
|
1842
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
}, z.core.$strict>]>;
|
|
1844
|
+
export type SheetNote = z.output<typeof Note>;
|
|
1774
1845
|
declare const Worksheet: z.ZodObject<{
|
|
1775
1846
|
name: z.ZodString;
|
|
1776
1847
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2077,6 +2148,7 @@ declare const Worksheet: z.ZodObject<{
|
|
|
2077
2148
|
}, z.core.$strict>>;
|
|
2078
2149
|
width: z.ZodOptional<z.ZodNumber>;
|
|
2079
2150
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2151
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2080
2152
|
}, z.core.$strict>>>;
|
|
2081
2153
|
rows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2082
2154
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -2217,6 +2289,7 @@ declare const Worksheet: z.ZodObject<{
|
|
|
2217
2289
|
}, z.core.$strict>>;
|
|
2218
2290
|
height: z.ZodOptional<z.ZodNumber>;
|
|
2219
2291
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2292
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2220
2293
|
}, z.core.$strict>>>;
|
|
2221
2294
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>, z.ZodObject<{
|
|
2222
2295
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -3292,6 +3365,58 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3292
3365
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
3293
3366
|
color: z.ZodOptional<z.ZodString>;
|
|
3294
3367
|
}, z.core.$strict>>>;
|
|
3368
|
+
pictures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3369
|
+
file: z.ZodString;
|
|
3370
|
+
at: z.ZodString;
|
|
3371
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
3372
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
3373
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3374
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3375
|
+
}, z.core.$strict>>>;
|
|
3376
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3377
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3378
|
+
text: z.ZodString;
|
|
3379
|
+
author: z.ZodOptional<z.ZodString>;
|
|
3380
|
+
}, z.core.$strict>]>>>;
|
|
3381
|
+
print: z.ZodOptional<z.ZodObject<{
|
|
3382
|
+
area: z.ZodOptional<z.ZodString>;
|
|
3383
|
+
title_rows: z.ZodOptional<z.ZodString>;
|
|
3384
|
+
title_cols: z.ZodOptional<z.ZodString>;
|
|
3385
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
3386
|
+
portrait: "portrait";
|
|
3387
|
+
landscape: "landscape";
|
|
3388
|
+
}>>;
|
|
3389
|
+
paper: z.ZodOptional<z.ZodEnum<{
|
|
3390
|
+
letter: "letter";
|
|
3391
|
+
legal: "legal";
|
|
3392
|
+
a3: "a3";
|
|
3393
|
+
a4: "a4";
|
|
3394
|
+
a5: "a5";
|
|
3395
|
+
}>>;
|
|
3396
|
+
fit: z.ZodOptional<z.ZodObject<{
|
|
3397
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3398
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3399
|
+
}, z.core.$strict>>;
|
|
3400
|
+
margins: z.ZodOptional<z.ZodObject<{
|
|
3401
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
3402
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
3403
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
3404
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
3405
|
+
header: z.ZodOptional<z.ZodNumber>;
|
|
3406
|
+
footer: z.ZodOptional<z.ZodNumber>;
|
|
3407
|
+
}, z.core.$strict>>;
|
|
3408
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
3409
|
+
left: z.ZodOptional<z.ZodString>;
|
|
3410
|
+
center: z.ZodOptional<z.ZodString>;
|
|
3411
|
+
right: z.ZodOptional<z.ZodString>;
|
|
3412
|
+
}, z.core.$strict>>;
|
|
3413
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
3414
|
+
left: z.ZodOptional<z.ZodString>;
|
|
3415
|
+
center: z.ZodOptional<z.ZodString>;
|
|
3416
|
+
right: z.ZodOptional<z.ZodString>;
|
|
3417
|
+
}, z.core.$strict>>;
|
|
3418
|
+
}, z.core.$strict>>;
|
|
3419
|
+
protect: z.ZodOptional<z.ZodBoolean>;
|
|
3295
3420
|
}, z.core.$strict>;
|
|
3296
3421
|
export type SheetWorksheet = z.output<typeof Worksheet>;
|
|
3297
3422
|
declare const Check: z.ZodObject<{
|
|
@@ -3609,6 +3734,7 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
3609
3734
|
}, z.core.$strict>>;
|
|
3610
3735
|
width: z.ZodOptional<z.ZodNumber>;
|
|
3611
3736
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
3737
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
3612
3738
|
}, z.core.$strict>>>;
|
|
3613
3739
|
rows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3614
3740
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -3749,6 +3875,7 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
3749
3875
|
}, z.core.$strict>>;
|
|
3750
3876
|
height: z.ZodOptional<z.ZodNumber>;
|
|
3751
3877
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
3878
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
3752
3879
|
}, z.core.$strict>>>;
|
|
3753
3880
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>, z.ZodObject<{
|
|
3754
3881
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -4824,6 +4951,58 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4824
4951
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
4825
4952
|
color: z.ZodOptional<z.ZodString>;
|
|
4826
4953
|
}, z.core.$strict>>>;
|
|
4954
|
+
pictures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4955
|
+
file: z.ZodString;
|
|
4956
|
+
at: z.ZodString;
|
|
4957
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
4958
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
4959
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
4960
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
4961
|
+
}, z.core.$strict>>>;
|
|
4962
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4963
|
+
notes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4964
|
+
text: z.ZodString;
|
|
4965
|
+
author: z.ZodOptional<z.ZodString>;
|
|
4966
|
+
}, z.core.$strict>]>>>;
|
|
4967
|
+
print: z.ZodOptional<z.ZodObject<{
|
|
4968
|
+
area: z.ZodOptional<z.ZodString>;
|
|
4969
|
+
title_rows: z.ZodOptional<z.ZodString>;
|
|
4970
|
+
title_cols: z.ZodOptional<z.ZodString>;
|
|
4971
|
+
orientation: z.ZodOptional<z.ZodEnum<{
|
|
4972
|
+
portrait: "portrait";
|
|
4973
|
+
landscape: "landscape";
|
|
4974
|
+
}>>;
|
|
4975
|
+
paper: z.ZodOptional<z.ZodEnum<{
|
|
4976
|
+
letter: "letter";
|
|
4977
|
+
legal: "legal";
|
|
4978
|
+
a3: "a3";
|
|
4979
|
+
a4: "a4";
|
|
4980
|
+
a5: "a5";
|
|
4981
|
+
}>>;
|
|
4982
|
+
fit: z.ZodOptional<z.ZodObject<{
|
|
4983
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
4984
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
4985
|
+
}, z.core.$strict>>;
|
|
4986
|
+
margins: z.ZodOptional<z.ZodObject<{
|
|
4987
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
4988
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
4989
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
4990
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
4991
|
+
header: z.ZodOptional<z.ZodNumber>;
|
|
4992
|
+
footer: z.ZodOptional<z.ZodNumber>;
|
|
4993
|
+
}, z.core.$strict>>;
|
|
4994
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
4995
|
+
left: z.ZodOptional<z.ZodString>;
|
|
4996
|
+
center: z.ZodOptional<z.ZodString>;
|
|
4997
|
+
right: z.ZodOptional<z.ZodString>;
|
|
4998
|
+
}, z.core.$strict>>;
|
|
4999
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
5000
|
+
left: z.ZodOptional<z.ZodString>;
|
|
5001
|
+
center: z.ZodOptional<z.ZodString>;
|
|
5002
|
+
right: z.ZodOptional<z.ZodString>;
|
|
5003
|
+
}, z.core.$strict>>;
|
|
5004
|
+
}, z.core.$strict>>;
|
|
5005
|
+
protect: z.ZodOptional<z.ZodBoolean>;
|
|
4827
5006
|
}, z.core.$strict>>;
|
|
4828
5007
|
checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4829
5008
|
name: z.ZodString;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as
|
|
2
|
+
import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_DATA="data",SHEET_CODE="sheet.ts",SHEET_FILES="files",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const r=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),m={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:r.optional(),right:r.optional(),top:r.optional(),bottom:r.optional()}).optional()},a={...m,format:t.string().min(1).optional()},l=t.union([t.number(),t.boolean(),t.string(),t.null()]),E=t.strictObject({value:l.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),O=t.union([l,E]),f=t.strictObject({range:t.string().min(1),...a}),b=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),j=t.strictObject({formula:t.string().min(1).optional(),...a,width:t.number().positive().optional(),files:b.optional()}),u=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),S=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),j).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),u)})]).optional()}),x=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a,files:b.optional()}),v=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a}),_=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),u).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=t.union([t.number(),t.string()]),i={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:m.border},n={range:t.string().min(1),stop:t.boolean().optional()},s=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=t.discriminatedUnion("type",[t.strictObject({...n,...i,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(p).min(1).max(2)}),t.strictObject({...n,...i,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...i,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...i,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:s.optional(),max:s.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...s.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(s).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(p).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),k=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional()}),g=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),H=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(k).min(1),legend:t.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:g.optional(),category_axis:g.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,legal:5,a3:8,a4:9,a5:11};const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),C=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),R=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),D=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),G=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(S).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),v).optional(),cells:t.record(t.string(),O).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(x).optional(),filter:_.optional(),conditional:t.array(w).optional(),validations:t.array(A).optional(),charts:t.array(H).optional(),pictures:t.array(R).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),D).optional(),print:C.optional(),protect:t.boolean().optional()}),L=t.strictObject({name:t.string().min(1),formula:t.string().min(1)});export const SheetFileSchema=t.strictObject({title:t.string().optional(),names:t.record(t.string(),l).optional(),sheets:t.array(G).min(1),checks:t.array(L).optional(),scenarios:t.record(t.string(),t.record(t.string(),l)).optional()});
|