ooxml.js 2.17.0 → 3.0.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/codec-Ch4blnoI.d.cts +88 -0
- package/dist/codec-ChWBx_WN.d.ts +88 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/index.cjs +0 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/typed/xlsx/content.cjs +0 -1
- package/dist/typed/xlsx/content.js +1 -2
- package/package.json +2 -2
- package/dist/codec-Ad7Qf290.d.ts +0 -88
- package/dist/codec-D2Q5WkEd.d.cts +0 -88
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { d as XmlNode } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
+
import "./read-DzmMJPHd.cjs";
|
|
4
|
+
import "./write-6JmxvaK5.cjs";
|
|
5
|
+
import "./parse-CP5FLZqv.cjs";
|
|
6
|
+
import "./build-XSm3I8LT.cjs";
|
|
7
|
+
import "./fragment-B1og_8uA.cjs";
|
|
8
|
+
import "./util-M3JJlDhF.cjs";
|
|
9
|
+
import "./compact-B1qg9oex.cjs";
|
|
10
|
+
import "./color-fFIKAs-Y.cjs";
|
|
11
|
+
import "./metadata-D6o-kLpg.cjs";
|
|
12
|
+
import "./read-D_CpruL_.cjs";
|
|
13
|
+
import "./numbering-C53LT-Jx.cjs";
|
|
14
|
+
import "./read-OBV7MMlF.cjs";
|
|
15
|
+
import "./xlsx-B97t4YE-.cjs";
|
|
16
|
+
import "./content-UlQ-Nhgi.cjs";
|
|
17
|
+
import "./build-CBL9scQK.cjs";
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
import { Alignment as Alignment$1, AlignmentSchema, Box as Box$1, BoxSchema, COLOR_BLACK, Color as Color$1, ColorSchema, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor } from "document-schema.js";
|
|
20
|
+
//#region src/codec.d.ts
|
|
21
|
+
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"text">;
|
|
23
|
+
value: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<"cdata">;
|
|
26
|
+
value: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"comment">;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"declaration">;
|
|
32
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
value: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"pi">;
|
|
38
|
+
target: z.ZodString;
|
|
39
|
+
content: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"element">;
|
|
42
|
+
tag: z.ZodString;
|
|
43
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
value: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
48
|
+
}, z.core.$strip>], "type">>>;
|
|
49
|
+
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
50
|
+
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"xml">;
|
|
52
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<"text">;
|
|
54
|
+
value: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"cdata">;
|
|
57
|
+
value: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"comment">;
|
|
60
|
+
value: z.ZodString;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"declaration">;
|
|
63
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
type: z.ZodLiteral<"pi">;
|
|
69
|
+
target: z.ZodString;
|
|
70
|
+
content: z.ZodString;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"element">;
|
|
73
|
+
tag: z.ZodString;
|
|
74
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
value: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
79
|
+
}, z.core.$strip>], "type">>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"binary">;
|
|
82
|
+
base64: z.ZodString;
|
|
83
|
+
}, z.core.$strip>], "kind">>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
86
|
+
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ContentSlideSchema as $, ContentRun as A, ContentSheetColumnSchema as B, ContentImageBlockSchema as C, ContentPageBreakSchema as D, ContentPageBreak as E, ContentShapeSchema as F, ContentSheetPrintSettings$1 as G, ContentSheetImageSchema as H, ContentSheet as I, ContentSheetRepeatRangeSchema as J, ContentSheetPrintSettingsSchema as K, ContentSheetCell as L, ContentSection as M, ContentSectionSchema as N, ContentParagraph$1 as O, ContentShape as P, ContentSlide as Q, ContentSheetCellSchema as R, ContentImageBlock as S, ContentListMembershipSchema as T, ContentSheetPrintRange$1 as U, ContentSheetImage as V, ContentSheetPrintRangeSchema as W, ContentSheetRowSchema as X, ContentSheetRow as Y, ContentSheetSchema as Z, ContentCellBordersSchema as _, isContentBlock as _t, Alignment$1 as a, ContentTableRow as at, ContentDocument$1 as b, BoxSchema as c, Margins as ct, ColorSchema as d, PAGE_SIZE_LETTER as dt, ContentStrokeStyle as et, ContentBlock$1 as f, PageSize$1 as ft, ContentCellBorders$1 as g, colorToRgbHex as gt, ContentBorderSchema as h, SLIDE_SIZE_WIDESCREEN as ht, xmlCodec as i, ContentTableCellSchema as it, ContentRunSchema as j, ContentParagraphSchema as k, COLOR_BLACK as l, MarginsSchema as lt, ContentBorder as m, SLIDE_SIZE_STANDARD as mt, encodePackage as n, ContentTable$1 as nt, AlignmentSchema as o, ContentTableRowSchema as ot, ContentBlockSchema as p, PageSizeSchema as pt, ContentSheetRepeatRange$1 as q, packageCodec as r, ContentTableCell as rt, Box$1 as s, ContentTableSchema as st, decodePackage as t, ContentStrokeStyleSchema as tt, Color$1 as u, PAGE_SIZE_A4 as ut, ContentCellValue as v, rgbHexToColor as vt, ContentListMembership as w, ContentDocumentSchema as x, ContentCellValueSchema as y, ContentSheetColumn as z };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
+
import "./read-CMDEXqGw.js";
|
|
4
|
+
import "./write-CT-EgVT7.js";
|
|
5
|
+
import "./parse-A8_8sdpX.js";
|
|
6
|
+
import "./build-Z1KRkSEB.js";
|
|
7
|
+
import "./fragment-B1ZV7T5Z.js";
|
|
8
|
+
import "./util-DFe4UbvU.js";
|
|
9
|
+
import "./compact-f0TfhicN.js";
|
|
10
|
+
import "./color-fFIKAs-Y.js";
|
|
11
|
+
import "./metadata-o_WH9V_I.js";
|
|
12
|
+
import "./read-B2-FFhqI.js";
|
|
13
|
+
import "./numbering-D0YfuiOO.js";
|
|
14
|
+
import "./read-CeCtSzjQ.js";
|
|
15
|
+
import "./xlsx-BxKODiLX.js";
|
|
16
|
+
import "./content-t6ZfmfQM.js";
|
|
17
|
+
import "./build-C0gS5QeG.js";
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
import { Alignment as Alignment$1, AlignmentSchema, Box as Box$1, BoxSchema, COLOR_BLACK as COLOR_BLACK$1, Color as Color$1, ColorSchema, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema as ContentSectionSchema$1, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema as ContentSlideSchema$1, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, Margins, MarginsSchema, PAGE_SIZE_A4 as PAGE_SIZE_A4$1, PAGE_SIZE_LETTER as PAGE_SIZE_LETTER$1, PageSize as PageSize$1, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN as SLIDE_SIZE_WIDESCREEN$1, colorToRgbHex as colorToRgbHex$1, isContentBlock, rgbHexToColor as rgbHexToColor$1 } from "document-schema.js";
|
|
20
|
+
//#region src/codec.d.ts
|
|
21
|
+
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"text">;
|
|
23
|
+
value: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<"cdata">;
|
|
26
|
+
value: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"comment">;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"declaration">;
|
|
32
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
value: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"pi">;
|
|
38
|
+
target: z.ZodString;
|
|
39
|
+
content: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"element">;
|
|
42
|
+
tag: z.ZodString;
|
|
43
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
value: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
48
|
+
}, z.core.$strip>], "type">>>;
|
|
49
|
+
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
50
|
+
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"xml">;
|
|
52
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<"text">;
|
|
54
|
+
value: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"cdata">;
|
|
57
|
+
value: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"comment">;
|
|
60
|
+
value: z.ZodString;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"declaration">;
|
|
63
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
type: z.ZodLiteral<"pi">;
|
|
69
|
+
target: z.ZodString;
|
|
70
|
+
content: z.ZodString;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"element">;
|
|
73
|
+
tag: z.ZodString;
|
|
74
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
value: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
79
|
+
}, z.core.$strip>], "type">>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"binary">;
|
|
82
|
+
base64: z.ZodString;
|
|
83
|
+
}, z.core.$strip>], "kind">>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
86
|
+
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ContentSlideSchema$1 as $, ContentRun as A, ContentSheetColumnSchema as B, ContentImageBlockSchema as C, ContentPageBreakSchema as D, ContentPageBreak as E, ContentShapeSchema as F, ContentSheetPrintSettings$1 as G, ContentSheetImageSchema as H, ContentSheet as I, ContentSheetRepeatRangeSchema as J, ContentSheetPrintSettingsSchema as K, ContentSheetCell as L, ContentSection as M, ContentSectionSchema$1 as N, ContentParagraph$1 as O, ContentShape as P, ContentSlide as Q, ContentSheetCellSchema as R, ContentImageBlock as S, ContentListMembershipSchema as T, ContentSheetPrintRange$1 as U, ContentSheetImage as V, ContentSheetPrintRangeSchema as W, ContentSheetRowSchema as X, ContentSheetRow as Y, ContentSheetSchema as Z, ContentCellBordersSchema as _, isContentBlock as _t, Alignment$1 as a, ContentTableRow as at, ContentDocument$1 as b, BoxSchema as c, Margins as ct, ColorSchema as d, PAGE_SIZE_LETTER$1 as dt, ContentStrokeStyle as et, ContentBlock$1 as f, PageSize$1 as ft, ContentCellBorders$1 as g, colorToRgbHex$1 as gt, ContentBorderSchema as h, SLIDE_SIZE_WIDESCREEN$1 as ht, xmlCodec as i, ContentTableCellSchema as it, ContentRunSchema as j, ContentParagraphSchema as k, COLOR_BLACK$1 as l, MarginsSchema as lt, ContentBorder as m, SLIDE_SIZE_STANDARD as mt, encodePackage as n, ContentTable$1 as nt, AlignmentSchema as o, ContentTableRowSchema as ot, ContentBlockSchema as p, PageSizeSchema as pt, ContentSheetRepeatRange$1 as q, packageCodec as r, ContentTableCell as rt, Box$1 as s, ContentTableSchema as st, decodePackage as t, ContentStrokeStyleSchema as tt, Color$1 as u, PAGE_SIZE_A4$1 as ut, ContentCellValue as v, rgbHexToColor$1 as vt, ContentListMembership as w, ContentDocumentSchema as x, ContentCellValueSchema as y, ContentSheetColumn as z };
|
package/dist/codec.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-
|
|
1
|
+
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-Ch4blnoI.cjs";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
package/dist/codec.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-
|
|
1
|
+
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-ChWBx_WN.js";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
package/dist/index.cjs
CHANGED
|
@@ -42,12 +42,6 @@ Object.defineProperty(exports, "COLOR_BLACK", {
|
|
|
42
42
|
return document_schema_js.COLOR_BLACK;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
Object.defineProperty(exports, "CONTENT_FORMAT_VERSION", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function() {
|
|
48
|
-
return document_schema_js.CONTENT_FORMAT_VERSION;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
45
|
Object.defineProperty(exports, "ColorSchema", {
|
|
52
46
|
enumerable: true,
|
|
53
47
|
get: function() {
|
package/dist/index.d.cts
CHANGED
|
@@ -19,5 +19,5 @@ import { n as PptxDocumentSchema, r as readPptx, t as PptxDocument } from "./rea
|
|
|
19
19
|
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsx, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "./xlsx-B97t4YE-.cjs";
|
|
20
20
|
import { t as readXlsxContent } from "./content-UlQ-Nhgi.cjs";
|
|
21
21
|
import { t as buildXlsxPackage } from "./build-CBL9scQK.cjs";
|
|
22
|
-
import { $ as
|
|
23
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK,
|
|
22
|
+
import { $ as ContentSlideSchema, A as ContentRun, B as ContentSheetColumnSchema, C as ContentImageBlockSchema, D as ContentPageBreakSchema, E as ContentPageBreak, F as ContentShapeSchema, G as ContentSheetPrintSettings, H as ContentSheetImageSchema, I as ContentSheet, J as ContentSheetRepeatRangeSchema, K as ContentSheetPrintSettingsSchema, L as ContentSheetCell, M as ContentSection, N as ContentSectionSchema, O as ContentParagraph, P as ContentShape, Q as ContentSlide, R as ContentSheetCellSchema, S as ContentImageBlock, T as ContentListMembershipSchema, U as ContentSheetPrintRange, V as ContentSheetImage, W as ContentSheetPrintRangeSchema, X as ContentSheetRowSchema, Y as ContentSheetRow, Z as ContentSheetSchema, _ as ContentCellBordersSchema, _t as isContentBlock, a as Alignment, at as ContentTableRow, b as ContentDocument, c as BoxSchema, ct as Margins, d as ColorSchema, dt as PAGE_SIZE_LETTER, et as ContentStrokeStyle, f as ContentBlock, ft as PageSize, g as ContentCellBorders, gt as colorToRgbHex, h as ContentBorderSchema, ht as SLIDE_SIZE_WIDESCREEN, i as xmlCodec, it as ContentTableCellSchema, j as ContentRunSchema, k as ContentParagraphSchema, l as COLOR_BLACK, lt as MarginsSchema, m as ContentBorder, mt as SLIDE_SIZE_STANDARD, n as encodePackage, nt as ContentTable, o as AlignmentSchema, ot as ContentTableRowSchema, p as ContentBlockSchema, pt as PageSizeSchema, q as ContentSheetRepeatRange, r as packageCodec, rt as ContentTableCell, s as Box, st as ContentTableSchema, t as decodePackage, tt as ContentStrokeStyleSchema, u as Color, ut as PAGE_SIZE_A4, v as ContentCellValue, vt as rgbHexToColor, w as ContentListMembership, x as ContentDocumentSchema, y as ContentCellValueSchema, z as ContentSheetColumn } from "./codec-Ch4blnoI.cjs";
|
|
23
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DocumentMetadata, DocumentMetadataSchema, type DocxDocument, DocxDocumentSchema, type Footnote, FootnoteSchema, type ImageFormat, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ import { n as PptxDocumentSchema, r as readPptx, t as PptxDocument } from "./rea
|
|
|
19
19
|
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsx, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "./xlsx-BxKODiLX.js";
|
|
20
20
|
import { t as readXlsxContent } from "./content-t6ZfmfQM.js";
|
|
21
21
|
import { t as buildXlsxPackage } from "./build-C0gS5QeG.js";
|
|
22
|
-
import { $ as
|
|
23
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK,
|
|
22
|
+
import { $ as ContentSlideSchema, A as ContentRun, B as ContentSheetColumnSchema, C as ContentImageBlockSchema, D as ContentPageBreakSchema, E as ContentPageBreak, F as ContentShapeSchema, G as ContentSheetPrintSettings, H as ContentSheetImageSchema, I as ContentSheet, J as ContentSheetRepeatRangeSchema, K as ContentSheetPrintSettingsSchema, L as ContentSheetCell, M as ContentSection, N as ContentSectionSchema, O as ContentParagraph, P as ContentShape, Q as ContentSlide, R as ContentSheetCellSchema, S as ContentImageBlock, T as ContentListMembershipSchema, U as ContentSheetPrintRange, V as ContentSheetImage, W as ContentSheetPrintRangeSchema, X as ContentSheetRowSchema, Y as ContentSheetRow, Z as ContentSheetSchema, _ as ContentCellBordersSchema, _t as isContentBlock, a as Alignment, at as ContentTableRow, b as ContentDocument, c as BoxSchema, ct as Margins, d as ColorSchema, dt as PAGE_SIZE_LETTER, et as ContentStrokeStyle, f as ContentBlock, ft as PageSize, g as ContentCellBorders, gt as colorToRgbHex, h as ContentBorderSchema, ht as SLIDE_SIZE_WIDESCREEN, i as xmlCodec, it as ContentTableCellSchema, j as ContentRunSchema, k as ContentParagraphSchema, l as COLOR_BLACK, lt as MarginsSchema, m as ContentBorder, mt as SLIDE_SIZE_STANDARD, n as encodePackage, nt as ContentTable, o as AlignmentSchema, ot as ContentTableRowSchema, p as ContentBlockSchema, pt as PageSizeSchema, q as ContentSheetRepeatRange, r as packageCodec, rt as ContentTableCell, s as Box, st as ContentTableSchema, t as decodePackage, tt as ContentStrokeStyleSchema, u as Color, ut as PAGE_SIZE_A4, v as ContentCellValue, vt as rgbHexToColor, w as ContentListMembership, x as ContentDocumentSchema, y as ContentCellValueSchema, z as ContentSheetColumn } from "./codec-ChWBx_WN.js";
|
|
23
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DocumentMetadata, DocumentMetadataSchema, type DocxDocument, DocxDocumentSchema, type Footnote, FootnoteSchema, type ImageFormat, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -20,5 +20,5 @@ import { PptxDocumentSchema, readPptx } from "./typed/pptx/read.js";
|
|
|
20
20
|
import { DefinedNameSchema, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, readXlsx } from "./typed/xlsx.js";
|
|
21
21
|
import { readXlsxContent } from "./typed/xlsx/content.js";
|
|
22
22
|
import { buildXlsxPackage } from "./typed/xlsx/build.js";
|
|
23
|
-
import { AlignmentSchema, BoxSchema, COLOR_BLACK,
|
|
24
|
-
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, BoxSchema, COLOR_BLACK,
|
|
23
|
+
import { AlignmentSchema, BoxSchema, COLOR_BLACK, ColorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor } from "document-schema.js";
|
|
24
|
+
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, BoxSchema, COLOR_BLACK, ColorSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DefinedNameSchema, DocumentMetadataSchema, DocxDocumentSchema, FootnoteSchema, MarginsSchema, NumberingDefinitionSchema, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PageSizeSchema, PartSchema, PptxDocumentSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
|
@@ -354,7 +354,6 @@ function readXlsxContent(pkg) {
|
|
|
354
354
|
const sheets = resolveSheetEntries(pkg).map((entry, sheetIndex) => readSheet(pkg, entry, sheetIndex, sharedStrings, definedNamesBySheet, context));
|
|
355
355
|
return {
|
|
356
356
|
kind: "spreadsheet",
|
|
357
|
-
formatVersion: document_schema_js.CONTENT_FORMAT_VERSION,
|
|
358
357
|
metadata: require_typed_shared_metadata.readCoreProperties(pkg),
|
|
359
358
|
sheets
|
|
360
359
|
};
|
|
@@ -9,7 +9,7 @@ import { readDate1904, serialToIsoDate, serialToIsoDateTime, serialToIsoTime } f
|
|
|
9
9
|
import { readCellStyles } from "./styles.js";
|
|
10
10
|
import { readSheetCellComments } from "./comments.js";
|
|
11
11
|
import { columnWidthCharsToPt } from "./units.js";
|
|
12
|
-
import {
|
|
12
|
+
import { parseCellReference, parseRangeReference } from "document-schema.js";
|
|
13
13
|
//#region src/typed/xlsx/content.ts
|
|
14
14
|
const WORKBOOK_PATH = "xl/workbook.xml";
|
|
15
15
|
function resolveSheetEntries(pkg) {
|
|
@@ -353,7 +353,6 @@ function readXlsxContent(pkg) {
|
|
|
353
353
|
const sheets = resolveSheetEntries(pkg).map((entry, sheetIndex) => readSheet(pkg, entry, sheetIndex, sharedStrings, definedNamesBySheet, context));
|
|
354
354
|
return {
|
|
355
355
|
kind: "spreadsheet",
|
|
356
|
-
formatVersion: CONTENT_FORMAT_VERSION,
|
|
357
356
|
metadata: readCoreProperties(pkg),
|
|
358
357
|
sheets
|
|
359
358
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ooxml.js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Type-safe, lossless round-trip conversion between OOXML packages (docx, pptx, xlsx) and JSON, built on Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"packageManager": "pnpm@11.6.0",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"document-schema.js": "^
|
|
81
|
+
"document-schema.js": "^4.0.0",
|
|
82
82
|
"fast-xml-parser": "^5.10.1",
|
|
83
83
|
"fflate": "^0.8.3",
|
|
84
84
|
"zod": "^4.4.3"
|
package/dist/codec-Ad7Qf290.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
-
import "./read-CMDEXqGw.js";
|
|
4
|
-
import "./write-CT-EgVT7.js";
|
|
5
|
-
import "./parse-A8_8sdpX.js";
|
|
6
|
-
import "./build-Z1KRkSEB.js";
|
|
7
|
-
import "./fragment-B1ZV7T5Z.js";
|
|
8
|
-
import "./util-DFe4UbvU.js";
|
|
9
|
-
import "./compact-f0TfhicN.js";
|
|
10
|
-
import "./color-fFIKAs-Y.js";
|
|
11
|
-
import "./metadata-o_WH9V_I.js";
|
|
12
|
-
import "./read-B2-FFhqI.js";
|
|
13
|
-
import "./numbering-D0YfuiOO.js";
|
|
14
|
-
import "./read-CeCtSzjQ.js";
|
|
15
|
-
import "./xlsx-BxKODiLX.js";
|
|
16
|
-
import "./content-t6ZfmfQM.js";
|
|
17
|
-
import "./build-C0gS5QeG.js";
|
|
18
|
-
import { z } from "zod";
|
|
19
|
-
import { Alignment as Alignment$1, AlignmentSchema, Box as Box$1, BoxSchema, COLOR_BLACK as COLOR_BLACK$1, CONTENT_FORMAT_VERSION as CONTENT_FORMAT_VERSION$1, Color as Color$1, ColorSchema, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema as ContentSectionSchema$1, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema as ContentSlideSchema$1, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, Margins, MarginsSchema, PAGE_SIZE_A4 as PAGE_SIZE_A4$1, PAGE_SIZE_LETTER as PAGE_SIZE_LETTER$1, PageSize as PageSize$1, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN as SLIDE_SIZE_WIDESCREEN$1, colorToRgbHex as colorToRgbHex$1, isContentBlock, rgbHexToColor as rgbHexToColor$1 } from "document-schema.js";
|
|
20
|
-
//#region src/codec.d.ts
|
|
21
|
-
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
-
type: z.ZodLiteral<"text">;
|
|
23
|
-
value: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
type: z.ZodLiteral<"cdata">;
|
|
26
|
-
value: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
type: z.ZodLiteral<"comment">;
|
|
29
|
-
value: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
type: z.ZodLiteral<"declaration">;
|
|
32
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
value: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
type: z.ZodLiteral<"pi">;
|
|
38
|
-
target: z.ZodString;
|
|
39
|
-
content: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
type: z.ZodLiteral<"element">;
|
|
42
|
-
tag: z.ZodString;
|
|
43
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
48
|
-
}, z.core.$strip>], "type">>>;
|
|
49
|
-
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
50
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
-
kind: z.ZodLiteral<"xml">;
|
|
52
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"text">;
|
|
54
|
-
value: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
type: z.ZodLiteral<"cdata">;
|
|
57
|
-
value: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
type: z.ZodLiteral<"comment">;
|
|
60
|
-
value: z.ZodString;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
type: z.ZodLiteral<"declaration">;
|
|
63
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
value: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
type: z.ZodLiteral<"pi">;
|
|
69
|
-
target: z.ZodString;
|
|
70
|
-
content: z.ZodString;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
type: z.ZodLiteral<"element">;
|
|
73
|
-
tag: z.ZodString;
|
|
74
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
75
|
-
name: z.ZodString;
|
|
76
|
-
value: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>;
|
|
78
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
79
|
-
}, z.core.$strip>], "type">>;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
kind: z.ZodLiteral<"binary">;
|
|
82
|
-
base64: z.ZodString;
|
|
83
|
-
}, z.core.$strip>], "kind">>;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
86
|
-
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
87
|
-
//#endregion
|
|
88
|
-
export { ContentSlide as $, ContentParagraphSchema as A, ContentSheetColumn as B, ContentImageBlock as C, ContentPageBreak as D, ContentListMembershipSchema as E, ContentShape as F, ContentSheetPrintRangeSchema as G, ContentSheetImage as H, ContentShapeSchema as I, ContentSheetRepeatRange$1 as J, ContentSheetPrintSettings$1 as K, ContentSheet as L, ContentRunSchema as M, ContentSection as N, ContentPageBreakSchema as O, ContentSectionSchema$1 as P, ContentSheetSchema as Q, ContentSheetCell as R, ContentDocumentSchema as S, ContentListMembership as T, ContentSheetImageSchema as U, ContentSheetColumnSchema as V, ContentSheetPrintRange$1 as W, ContentSheetRow as X, ContentSheetRepeatRangeSchema as Y, ContentSheetRowSchema as Z, ContentCellBorders$1 as _, colorToRgbHex$1 as _t, Alignment$1 as a, ContentTableCellSchema as at, ContentCellValueSchema as b, BoxSchema as c, ContentTableSchema as ct, Color$1 as d, PAGE_SIZE_A4$1 as dt, ContentSlideSchema$1 as et, ColorSchema as f, PAGE_SIZE_LETTER$1 as ft, ContentBorderSchema as g, SLIDE_SIZE_WIDESCREEN$1 as gt, ContentBorder as h, SLIDE_SIZE_STANDARD as ht, xmlCodec as i, ContentTableCell as it, ContentRun as j, ContentParagraph$1 as k, COLOR_BLACK$1 as l, Margins as lt, ContentBlockSchema as m, PageSizeSchema as mt, encodePackage as n, ContentStrokeStyleSchema as nt, AlignmentSchema as o, ContentTableRow as ot, ContentBlock$1 as p, PageSize$1 as pt, ContentSheetPrintSettingsSchema as q, packageCodec as r, ContentTable$1 as rt, Box$1 as s, ContentTableRowSchema as st, decodePackage as t, ContentStrokeStyle as tt, CONTENT_FORMAT_VERSION$1 as u, MarginsSchema as ut, ContentCellBordersSchema as v, isContentBlock as vt, ContentImageBlockSchema as w, ContentDocument$1 as x, ContentCellValue as y, rgbHexToColor$1 as yt, ContentSheetCellSchema as z };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { d as XmlNode } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
-
import "./read-DzmMJPHd.cjs";
|
|
4
|
-
import "./write-6JmxvaK5.cjs";
|
|
5
|
-
import "./parse-CP5FLZqv.cjs";
|
|
6
|
-
import "./build-XSm3I8LT.cjs";
|
|
7
|
-
import "./fragment-B1og_8uA.cjs";
|
|
8
|
-
import "./util-M3JJlDhF.cjs";
|
|
9
|
-
import "./compact-B1qg9oex.cjs";
|
|
10
|
-
import "./color-fFIKAs-Y.cjs";
|
|
11
|
-
import "./metadata-D6o-kLpg.cjs";
|
|
12
|
-
import "./read-D_CpruL_.cjs";
|
|
13
|
-
import "./numbering-C53LT-Jx.cjs";
|
|
14
|
-
import "./read-OBV7MMlF.cjs";
|
|
15
|
-
import "./xlsx-B97t4YE-.cjs";
|
|
16
|
-
import "./content-UlQ-Nhgi.cjs";
|
|
17
|
-
import "./build-CBL9scQK.cjs";
|
|
18
|
-
import { z } from "zod";
|
|
19
|
-
import { Alignment as Alignment$1, AlignmentSchema, Box as Box$1, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color as Color$1, ColorSchema, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor } from "document-schema.js";
|
|
20
|
-
//#region src/codec.d.ts
|
|
21
|
-
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
-
type: z.ZodLiteral<"text">;
|
|
23
|
-
value: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
type: z.ZodLiteral<"cdata">;
|
|
26
|
-
value: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
type: z.ZodLiteral<"comment">;
|
|
29
|
-
value: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
type: z.ZodLiteral<"declaration">;
|
|
32
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
value: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
type: z.ZodLiteral<"pi">;
|
|
38
|
-
target: z.ZodString;
|
|
39
|
-
content: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
type: z.ZodLiteral<"element">;
|
|
42
|
-
tag: z.ZodString;
|
|
43
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
48
|
-
}, z.core.$strip>], "type">>>;
|
|
49
|
-
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
50
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
-
kind: z.ZodLiteral<"xml">;
|
|
52
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"text">;
|
|
54
|
-
value: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
type: z.ZodLiteral<"cdata">;
|
|
57
|
-
value: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
type: z.ZodLiteral<"comment">;
|
|
60
|
-
value: z.ZodString;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
type: z.ZodLiteral<"declaration">;
|
|
63
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
value: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
type: z.ZodLiteral<"pi">;
|
|
69
|
-
target: z.ZodString;
|
|
70
|
-
content: z.ZodString;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
type: z.ZodLiteral<"element">;
|
|
73
|
-
tag: z.ZodString;
|
|
74
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
75
|
-
name: z.ZodString;
|
|
76
|
-
value: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>;
|
|
78
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
79
|
-
}, z.core.$strip>], "type">>;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
kind: z.ZodLiteral<"binary">;
|
|
82
|
-
base64: z.ZodString;
|
|
83
|
-
}, z.core.$strip>], "kind">>;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
86
|
-
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
87
|
-
//#endregion
|
|
88
|
-
export { ContentSlide as $, ContentParagraphSchema as A, ContentSheetColumn as B, ContentImageBlock as C, ContentPageBreak as D, ContentListMembershipSchema as E, ContentShape as F, ContentSheetPrintRangeSchema as G, ContentSheetImage as H, ContentShapeSchema as I, ContentSheetRepeatRange$1 as J, ContentSheetPrintSettings$1 as K, ContentSheet as L, ContentRunSchema as M, ContentSection as N, ContentPageBreakSchema as O, ContentSectionSchema as P, ContentSheetSchema as Q, ContentSheetCell as R, ContentDocumentSchema as S, ContentListMembership as T, ContentSheetImageSchema as U, ContentSheetColumnSchema as V, ContentSheetPrintRange$1 as W, ContentSheetRow as X, ContentSheetRepeatRangeSchema as Y, ContentSheetRowSchema as Z, ContentCellBorders$1 as _, colorToRgbHex as _t, Alignment$1 as a, ContentTableCellSchema as at, ContentCellValueSchema as b, BoxSchema as c, ContentTableSchema as ct, Color$1 as d, PAGE_SIZE_A4 as dt, ContentSlideSchema as et, ColorSchema as f, PAGE_SIZE_LETTER as ft, ContentBorderSchema as g, SLIDE_SIZE_WIDESCREEN as gt, ContentBorder as h, SLIDE_SIZE_STANDARD as ht, xmlCodec as i, ContentTableCell as it, ContentRun as j, ContentParagraph$1 as k, COLOR_BLACK as l, Margins as lt, ContentBlockSchema as m, PageSizeSchema as mt, encodePackage as n, ContentStrokeStyleSchema as nt, AlignmentSchema as o, ContentTableRow as ot, ContentBlock$1 as p, PageSize$1 as pt, ContentSheetPrintSettingsSchema as q, packageCodec as r, ContentTable$1 as rt, Box$1 as s, ContentTableRowSchema as st, decodePackage as t, ContentStrokeStyle as tt, CONTENT_FORMAT_VERSION as u, MarginsSchema as ut, ContentCellBordersSchema as v, isContentBlock as vt, ContentImageBlockSchema as w, ContentDocument$1 as x, ContentCellValue as y, rgbHexToColor as yt, ContentSheetCellSchema as z };
|