odf.js 5.0.8 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +16 -2
  2. package/dist/{cascade-qYa3mgnE.d.cts → cascade-BmvsXcAz.d.cts} +2 -2
  3. package/dist/{cascade-8u4q16_U.d.ts → cascade-rhqUQrUa.d.ts} +2 -2
  4. package/dist/{codec-jKlS0rWl.d.cts → codec-BAz7YIru.d.cts} +26 -25
  5. package/dist/{codec-DqldvlN5.d.ts → codec-BxxFEqvT.d.ts} +26 -25
  6. package/dist/codec.d.cts +1 -1
  7. package/dist/codec.d.ts +1 -1
  8. package/dist/constructs-CJpDDQV0.d.ts +63 -0
  9. package/dist/constructs-Dy_DMFs3.d.cts +63 -0
  10. package/dist/embedded-BPhuSEEI.d.ts +18 -0
  11. package/dist/embedded-J3M3kDvY.d.cts +18 -0
  12. package/dist/form-BGCT81ss.d.cts +13 -0
  13. package/dist/form-D3H5H2NL.d.ts +13 -0
  14. package/dist/forms-D1-0spCe.d.ts +27 -0
  15. package/dist/forms-cIjw-Jf-.d.cts +27 -0
  16. package/dist/index.cjs +5 -2
  17. package/dist/index.d.cts +28 -27
  18. package/dist/index.d.ts +28 -27
  19. package/dist/index.js +4 -3
  20. package/dist/{list-C35tiDYU.d.cts → list-KZeXA0mR.d.cts} +1 -1
  21. package/dist/{list-acGU0xLo.d.ts → list-Qeuawtew.d.ts} +1 -1
  22. package/dist/{manifest-xxJ4FpSe.d.ts → manifest-BALwu2JR.d.cts} +1 -1
  23. package/dist/{manifest-CmsCOCEi.d.cts → manifest-CP1sqyGU.d.ts} +1 -1
  24. package/dist/manifest.d.cts +1 -1
  25. package/dist/manifest.d.ts +1 -1
  26. package/dist/{masterpage-7nBnqFj-.d.ts → masterpage-C1McDhMv.d.ts} +1 -1
  27. package/dist/{masterpage-EmefIRgy.d.cts → masterpage-XJ2v2khe.d.cts} +1 -1
  28. package/dist/{metadata-32LoP2TK.d.ts → metadata-1j1zm9Cx.d.cts} +1 -1
  29. package/dist/{metadata-frJqeeSB.d.cts → metadata-BXpjrAS-.d.ts} +1 -1
  30. package/dist/{mimetype-uF-RHNpR.d.ts → mimetype-BfkwTeaW.d.ts} +1 -1
  31. package/dist/{mimetype-BcLX0N-N.d.cts → mimetype-CPNMj04s.d.cts} +1 -1
  32. package/dist/mimetype.d.cts +1 -1
  33. package/dist/mimetype.d.ts +1 -1
  34. package/dist/model/package.d.cts +1 -113
  35. package/dist/model/package.d.ts +1 -113
  36. package/dist/package-BUojjTXf.d.ts +114 -0
  37. package/dist/package-L24lkba-.d.cts +114 -0
  38. package/dist/package-io/read.d.cts +1 -1
  39. package/dist/package-io/read.d.ts +1 -1
  40. package/dist/package-io/write.d.cts +1 -1
  41. package/dist/package-io/write.d.ts +1 -1
  42. package/dist/paragraph-6hzAZpmi.d.ts +16 -0
  43. package/dist/paragraph-BBmSl_sK.d.cts +16 -0
  44. package/dist/read-B4238IGr.d.cts +12 -0
  45. package/dist/{read-DrdmKX0x.d.cts → read-BV2an1ok.d.cts} +1 -1
  46. package/dist/{read-DOuXgPhP.d.ts → read-BnN7u9Y2.d.ts} +1 -1
  47. package/dist/{read-DhLNXgiM.d.ts → read-CMDEXqGw.d.ts} +1 -1
  48. package/dist/{read-YSIwlhrk.d.ts → read-CTfeWaWq.d.cts} +1 -1
  49. package/dist/read-CdvX2qnz.d.ts +12 -0
  50. package/dist/read-Cs1ktkWB.d.cts +15 -0
  51. package/dist/{read-BoIUENWq.d.ts → read-CvjbdgH3.d.ts} +1 -1
  52. package/dist/read-DHuiGh_y.d.ts +15 -0
  53. package/dist/{read-BM8KaFQS.d.cts → read-DOYWO6BM.d.cts} +1 -1
  54. package/dist/{read-xCmo7cec.d.cts → read-DUCm1nUv.d.cts} +1 -1
  55. package/dist/{read-BkFbEves.d.ts → read-DYYxbvfo.d.ts} +1 -1
  56. package/dist/{read-KpU38maT.d.cts → read-Db_GZ0ZH.d.ts} +1 -1
  57. package/dist/{read-CFMsXSl7.d.cts → read-DzmMJPHd.d.cts} +1 -1
  58. package/dist/{read-B9zz_ax1.d.ts → read-lc0t0UHK.d.ts} +1 -1
  59. package/dist/{read-DNNf5_6n.d.cts → read-ydLJ8bid.d.cts} +1 -1
  60. package/dist/{registry-R43n1hcL.d.ts → registry-BVeEpUMI.d.ts} +1 -1
  61. package/dist/{registry-Dy6pjoh3.d.cts → registry-CaJpWDke.d.cts} +1 -1
  62. package/dist/{report-MpwUgXbA.d.ts → report-D6WNYaVn.d.cts} +1 -1
  63. package/dist/{report-BuCJ7_YU.d.cts → report-DbslT2OR.d.ts} +1 -1
  64. package/dist/{shapes-BqcccDK8.d.cts → shapes-8o3NjBLU.d.cts} +3 -3
  65. package/dist/{shapes-BB59aIC8.d.ts → shapes-CCB8ydqD.d.ts} +3 -3
  66. package/dist/styles/registry.d.cts +1 -1
  67. package/dist/styles/registry.d.ts +1 -1
  68. package/dist/{subdocument-CIxH3a5V.d.cts → subdocument-BwW3FZC_.d.ts} +1 -1
  69. package/dist/{subdocument-DQNQF7wV.d.ts → subdocument-yY8ASE4N.d.cts} +1 -1
  70. package/dist/{table-sweV3r9n.d.cts → table-BH_Q2n_N.d.cts} +1 -1
  71. package/dist/{table-D81TZyBn.d.ts → table-ByOoGcq_.d.ts} +1 -1
  72. package/dist/{text-Cal14ZaX.d.cts → text-BAi1tapc.d.cts} +3 -1
  73. package/dist/{text-CkNojpZm.d.ts → text-gJ5R0q3u.d.ts} +3 -1
  74. package/dist/typed/draw/embedded.cjs +38 -0
  75. package/dist/typed/draw/embedded.d.cts +2 -2
  76. package/dist/typed/draw/embedded.d.ts +2 -2
  77. package/dist/typed/draw/embedded.js +39 -2
  78. package/dist/typed/draw/shapes.cjs +20 -3
  79. package/dist/typed/draw/shapes.d.cts +1 -1
  80. package/dist/typed/draw/shapes.d.ts +1 -1
  81. package/dist/typed/draw/shapes.js +20 -3
  82. package/dist/typed/formula/read.d.cts +1 -1
  83. package/dist/typed/formula/read.d.ts +1 -1
  84. package/dist/typed/odb/form.cjs +2 -59
  85. package/dist/typed/odb/form.d.cts +2 -2
  86. package/dist/typed/odb/form.d.ts +2 -2
  87. package/dist/typed/odb/form.js +3 -60
  88. package/dist/typed/odb/read.d.cts +1 -1
  89. package/dist/typed/odb/read.d.ts +1 -1
  90. package/dist/typed/odb/report.d.cts +1 -1
  91. package/dist/typed/odb/report.d.ts +1 -1
  92. package/dist/typed/odb/subdocument.d.cts +1 -1
  93. package/dist/typed/odb/subdocument.d.ts +1 -1
  94. package/dist/typed/odg/read.d.cts +1 -1
  95. package/dist/typed/odg/read.d.ts +1 -1
  96. package/dist/typed/odm/read.d.cts +1 -1
  97. package/dist/typed/odm/read.d.ts +1 -1
  98. package/dist/typed/odp/read.d.cts +1 -1
  99. package/dist/typed/odp/read.d.ts +1 -1
  100. package/dist/typed/ods/read.cjs +28 -6
  101. package/dist/typed/ods/read.d.cts +1 -1
  102. package/dist/typed/ods/read.d.ts +1 -1
  103. package/dist/typed/ods/read.js +29 -7
  104. package/dist/typed/odt/read.cjs +215 -15
  105. package/dist/typed/odt/read.d.cts +2 -2
  106. package/dist/typed/odt/read.d.ts +2 -2
  107. package/dist/typed/odt/read.js +215 -15
  108. package/dist/typed/shared/cascade.d.cts +1 -1
  109. package/dist/typed/shared/cascade.d.ts +1 -1
  110. package/dist/typed/shared/constructs.cjs +392 -0
  111. package/dist/typed/shared/constructs.d.cts +2 -0
  112. package/dist/typed/shared/constructs.d.ts +2 -0
  113. package/dist/typed/shared/constructs.js +374 -0
  114. package/dist/typed/shared/forms.cjs +128 -0
  115. package/dist/typed/shared/forms.d.cts +2 -0
  116. package/dist/typed/shared/forms.d.ts +2 -0
  117. package/dist/typed/shared/forms.js +126 -0
  118. package/dist/typed/shared/list.d.cts +1 -1
  119. package/dist/typed/shared/list.d.ts +1 -1
  120. package/dist/typed/shared/masterpage.d.cts +1 -1
  121. package/dist/typed/shared/masterpage.d.ts +1 -1
  122. package/dist/typed/shared/metadata.d.cts +1 -1
  123. package/dist/typed/shared/metadata.d.ts +1 -1
  124. package/dist/typed/shared/paragraph.cjs +189 -10
  125. package/dist/typed/shared/paragraph.d.cts +2 -2
  126. package/dist/typed/shared/paragraph.d.ts +2 -2
  127. package/dist/typed/shared/paragraph.js +192 -13
  128. package/dist/typed/shared/table.d.cts +1 -1
  129. package/dist/typed/shared/table.d.ts +1 -1
  130. package/dist/typed/shared/text.cjs +57 -2
  131. package/dist/typed/shared/text.d.cts +2 -2
  132. package/dist/typed/shared/text.d.ts +2 -2
  133. package/dist/typed/shared/text.js +56 -3
  134. package/dist/{write-C0nwVuPI.d.ts → write-BxVkPZID.d.ts} +1 -1
  135. package/dist/{write-Dfb2tirK.d.cts → write-D3kyj1Xw.d.cts} +1 -1
  136. package/package.json +2 -2
  137. package/dist/embedded-CNMqOrnt.d.ts +0 -13
  138. package/dist/embedded-D7Kr1Sce.d.cts +0 -13
  139. package/dist/form-BsAAx5-p.d.ts +0 -31
  140. package/dist/form-DSIbHxog.d.cts +0 -31
  141. package/dist/paragraph-9ii2naJC.d.cts +0 -7
  142. package/dist/paragraph-DWNnedIE.d.ts +0 -7
  143. package/dist/read-B4zS8bGb.d.ts +0 -11
  144. package/dist/read-BHpPvhzR.d.cts +0 -11
  145. package/dist/read-C6MhadqG.d.ts +0 -11
  146. package/dist/read-CszvDMMt.d.cts +0 -11
@@ -0,0 +1,114 @@
1
+ import { d as XmlNode } from "./node-CkBWRjNR.cjs";
2
+ import { z } from "zod";
3
+ //#region src/model/package.d.ts
4
+ declare const XmlPartSchema: z.ZodObject<{
5
+ kind: z.ZodLiteral<"xml">;
6
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ type: z.ZodLiteral<"text">;
8
+ value: z.ZodString;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ type: z.ZodLiteral<"cdata">;
11
+ value: z.ZodString;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ type: z.ZodLiteral<"comment">;
14
+ value: z.ZodString;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ type: z.ZodLiteral<"declaration">;
17
+ attributes: z.ZodArray<z.ZodObject<{
18
+ name: z.ZodString;
19
+ value: z.ZodString;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ type: z.ZodLiteral<"pi">;
23
+ target: z.ZodString;
24
+ content: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<"element">;
27
+ tag: z.ZodString;
28
+ attributes: z.ZodArray<z.ZodObject<{
29
+ name: z.ZodString;
30
+ value: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
33
+ }, z.core.$strip>], "type">>;
34
+ }, z.core.$strip>;
35
+ type XmlPart = z.infer<typeof XmlPartSchema>;
36
+ declare const BinaryPartSchema: z.ZodObject<{
37
+ kind: z.ZodLiteral<"binary">;
38
+ base64: z.ZodString;
39
+ }, z.core.$strip>;
40
+ type BinaryPart = z.infer<typeof BinaryPartSchema>;
41
+ declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
42
+ kind: z.ZodLiteral<"xml">;
43
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ type: z.ZodLiteral<"text">;
45
+ value: z.ZodString;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ type: z.ZodLiteral<"cdata">;
48
+ value: z.ZodString;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ type: z.ZodLiteral<"comment">;
51
+ value: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ type: z.ZodLiteral<"declaration">;
54
+ attributes: z.ZodArray<z.ZodObject<{
55
+ name: z.ZodString;
56
+ value: z.ZodString;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<"pi">;
60
+ target: z.ZodString;
61
+ content: z.ZodString;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ type: z.ZodLiteral<"element">;
64
+ tag: z.ZodString;
65
+ attributes: z.ZodArray<z.ZodObject<{
66
+ name: z.ZodString;
67
+ value: z.ZodString;
68
+ }, z.core.$strip>>;
69
+ children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
70
+ }, z.core.$strip>], "type">>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ kind: z.ZodLiteral<"binary">;
73
+ base64: z.ZodString;
74
+ }, z.core.$strip>], "kind">;
75
+ type Part = z.infer<typeof PartSchema>;
76
+ declare const PackageSchema: z.ZodObject<{
77
+ parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
78
+ kind: z.ZodLiteral<"xml">;
79
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
80
+ type: z.ZodLiteral<"text">;
81
+ value: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodLiteral<"cdata">;
84
+ value: z.ZodString;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<"comment">;
87
+ value: z.ZodString;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ type: z.ZodLiteral<"declaration">;
90
+ attributes: z.ZodArray<z.ZodObject<{
91
+ name: z.ZodString;
92
+ value: z.ZodString;
93
+ }, z.core.$strip>>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<"pi">;
96
+ target: z.ZodString;
97
+ content: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<"element">;
100
+ tag: z.ZodString;
101
+ attributes: z.ZodArray<z.ZodObject<{
102
+ name: z.ZodString;
103
+ value: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
106
+ }, z.core.$strip>], "type">>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ kind: z.ZodLiteral<"binary">;
109
+ base64: z.ZodString;
110
+ }, z.core.$strip>], "kind">>;
111
+ }, z.core.$strip>;
112
+ type Package = z.infer<typeof PackageSchema>;
113
+ //#endregion
114
+ export { Part as a, XmlPartSchema as c, PackageSchema as i, BinaryPartSchema as n, PartSchema as o, Package as r, XmlPart as s, BinaryPart as t };
@@ -1,2 +1,2 @@
1
- import { t as parsePackage } from "../read-CFMsXSl7.cjs";
1
+ import { t as parsePackage } from "../read-DzmMJPHd.cjs";
2
2
  export { parsePackage };
@@ -1,2 +1,2 @@
1
- import { t as parsePackage } from "../read-DhLNXgiM.js";
1
+ import { t as parsePackage } from "../read-CMDEXqGw.js";
2
2
  export { parsePackage };
@@ -1,2 +1,2 @@
1
- import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "../write-Dfb2tirK.cjs";
1
+ import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "../write-D3kyj1Xw.cjs";
2
2
  export { MANIFEST_PART, MIMETYPE_PART, serializePackage };
@@ -1,2 +1,2 @@
1
- import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "../write-C0nwVuPI.js";
1
+ import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "../write-BxVkPZID.js";
2
2
  export { MANIFEST_PART, MIMETYPE_PART, serializePackage };
@@ -0,0 +1,16 @@
1
+ import { l as XmlElement } from "./node-CkBWRjNR.js";
2
+ import { r as Package } from "./package-BUojjTXf.js";
3
+ import { t as OdfListIdState } from "./list-Qeuawtew.js";
4
+ import { a as OdfMarkerHalf, r as OdfDefinitionsSink, s as OdfResidueFormat } from "./constructs-CJpDDQV0.js";
5
+ import { ContentParagraph, ProvenanceDescriptor } from "document-schema.js";
6
+ //#region src/typed/shared/paragraph.d.ts
7
+ interface OdfParagraphContext {
8
+ readonly provenanceRegions?: ReadonlyMap<string, ProvenanceDescriptor>;
9
+ readonly markersOut?: OdfMarkerHalf[];
10
+ readonly definitions?: OdfDefinitionsSink;
11
+ readonly listIdState?: OdfListIdState;
12
+ readonly format?: OdfResidueFormat;
13
+ }
14
+ declare function readOdfParagraph(pElement: XmlElement, pkg: Package, context?: OdfParagraphContext): ContentParagraph;
15
+ //#endregion
16
+ export { readOdfParagraph as n, OdfParagraphContext as t };
@@ -0,0 +1,16 @@
1
+ import { l as XmlElement } from "./node-CkBWRjNR.cjs";
2
+ import { r as Package } from "./package-L24lkba-.cjs";
3
+ import { t as OdfListIdState } from "./list-KZeXA0mR.cjs";
4
+ import { a as OdfMarkerHalf, r as OdfDefinitionsSink, s as OdfResidueFormat } from "./constructs-Dy_DMFs3.cjs";
5
+ import { ContentParagraph, ProvenanceDescriptor } from "document-schema.js";
6
+ //#region src/typed/shared/paragraph.d.ts
7
+ interface OdfParagraphContext {
8
+ readonly provenanceRegions?: ReadonlyMap<string, ProvenanceDescriptor>;
9
+ readonly markersOut?: OdfMarkerHalf[];
10
+ readonly definitions?: OdfDefinitionsSink;
11
+ readonly listIdState?: OdfListIdState;
12
+ readonly format?: OdfResidueFormat;
13
+ }
14
+ declare function readOdfParagraph(pElement: XmlElement, pkg: Package, context?: OdfParagraphContext): ContentParagraph;
15
+ //#endregion
16
+ export { readOdfParagraph as n, OdfParagraphContext as t };
@@ -0,0 +1,12 @@
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
+ import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
+ //#region src/typed/ods/read.d.ts
4
+ interface OdsDocument {
5
+ metadata: LayoutMetadata;
6
+ sheets: ContentSheet[];
7
+ definitions?: DefinitionsTable;
8
+ }
9
+ declare function readOdsContent(pkg: Package): OdsDocument;
10
+ declare function readOds(pkg: Package): DocumentPackage;
11
+ //#endregion
12
+ export { readOds as n, readOdsContent as r, OdsDocument as t };
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  //#region src/typed/odb/read.d.ts
3
3
  interface OdbConnectionInfo {
4
4
  type: 'embedded' | 'external';
@@ -1,5 +1,5 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
2
- import { Package } from "./model/package.js";
2
+ import { r as Package } from "./package-BUojjTXf.js";
3
3
  import { ContentDocument, DocumentPackage, LayoutMetadata } from "document-schema.js";
4
4
  //#region src/typed/formula/read.d.ts
5
5
  interface OdfFormulaDocument {
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  //#region src/package-io/read.d.ts
3
3
  declare function parsePackage(bytes: Uint8Array<ArrayBuffer>): Package;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  import { ContentSlide, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
3
  //#region src/typed/odp/read.d.ts
4
4
  interface OdpDocument {
@@ -0,0 +1,12 @@
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
+ import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
+ //#region src/typed/ods/read.d.ts
4
+ interface OdsDocument {
5
+ metadata: LayoutMetadata;
6
+ sheets: ContentSheet[];
7
+ definitions?: DefinitionsTable;
8
+ }
9
+ declare function readOdsContent(pkg: Package): OdsDocument;
10
+ declare function readOds(pkg: Package): DocumentPackage;
11
+ //#endregion
12
+ export { readOds as n, readOdsContent as r, OdsDocument as t };
@@ -0,0 +1,15 @@
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
+ import { ContentSection, DefinitionsTable, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
+ //#region src/typed/odt/read.d.ts
4
+ interface OdtReadOptions {
5
+ frames?: 'lift' | 'none';
6
+ }
7
+ interface OdtDocument {
8
+ metadata: LayoutMetadata;
9
+ sections: ContentSection[];
10
+ definitions?: DefinitionsTable;
11
+ }
12
+ declare function readOdtContent(pkg: Package, options?: OdtReadOptions): OdtDocument;
13
+ declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentPackage;
14
+ //#endregion
15
+ export { readOdtContent as i, OdtReadOptions as n, readOdt as r, OdtDocument as t };
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  //#region src/typed/odb/read.d.ts
3
3
  interface OdbConnectionInfo {
4
4
  type: 'embedded' | 'external';
@@ -0,0 +1,15 @@
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
+ import { ContentSection, DefinitionsTable, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
+ //#region src/typed/odt/read.d.ts
4
+ interface OdtReadOptions {
5
+ frames?: 'lift' | 'none';
6
+ }
7
+ interface OdtDocument {
8
+ metadata: LayoutMetadata;
9
+ sections: ContentSection[];
10
+ definitions?: DefinitionsTable;
11
+ }
12
+ declare function readOdtContent(pkg: Package, options?: OdtReadOptions): OdtDocument;
13
+ declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentPackage;
14
+ //#endregion
15
+ export { readOdtContent as i, OdtReadOptions as n, readOdt as r, OdtDocument as t };
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  import { ContentDrawPage, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
3
  //#region src/typed/odg/read.d.ts
4
4
  interface OdgDocument {
@@ -1,5 +1,5 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
2
- import { Package } from "./model/package.cjs";
2
+ import { r as Package } from "./package-L24lkba-.cjs";
3
3
  import { ContentDocument, DocumentPackage, LayoutMetadata } from "document-schema.js";
4
4
  //#region src/typed/formula/read.d.ts
5
5
  interface OdfFormulaDocument {
@@ -1,5 +1,5 @@
1
1
  import { d as XmlNode } from "./node-CkBWRjNR.js";
2
- import { Package } from "./model/package.js";
2
+ import { r as Package } from "./package-BUojjTXf.js";
3
3
  //#region src/typed/odm/read.d.ts
4
4
  interface OdmSection {
5
5
  name: string;
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  import { ContentSlide, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
3
  //#region src/typed/odp/read.d.ts
4
4
  interface OdpDocument {
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  //#region src/package-io/read.d.ts
3
3
  declare function parsePackage(bytes: Uint8Array<ArrayBuffer>): Package;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  import { ContentDrawPage, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
3
  //#region src/typed/odg/read.d.ts
4
4
  interface OdgDocument {
@@ -1,5 +1,5 @@
1
1
  import { d as XmlNode } from "./node-CkBWRjNR.cjs";
2
- import { Package } from "./model/package.cjs";
2
+ import { r as Package } from "./package-L24lkba-.cjs";
3
3
  //#region src/typed/odm/read.d.ts
4
4
  interface OdmSection {
5
5
  name: string;
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  import { n as StyleProperties } from "./properties-DjAIdPry.js";
3
3
  //#region src/styles/registry.d.ts
4
4
  declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  import { n as StyleProperties } from "./properties-BF_Fv6B3.cjs";
3
3
  //#region src/styles/registry.d.ts
4
4
  declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  //#region src/typed/odb/report.d.ts
3
3
  interface OdbReportElement {
4
4
  tag: string;
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  //#region src/typed/odb/report.d.ts
3
3
  interface OdbReportElement {
4
4
  tag: string;
@@ -1,11 +1,11 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
2
- import { Package } from "./model/package.cjs";
3
- import { t as OdfListIdState } from "./list-C35tiDYU.cjs";
2
+ import { r as Package } from "./package-L24lkba-.cjs";
3
+ import { t as OdfListIdState } from "./list-KZeXA0mR.cjs";
4
4
  import { r as OdfTransformFunction } from "./transform-DKEjydnm.cjs";
5
5
  import { Box, ContentImageBlock, ContentShape, ContentVector } from "document-schema.js";
6
6
  //#region src/typed/draw/shapes.d.ts
7
7
  declare function readDrawImageBlock(image: XmlElement, frame: XmlElement, frameBox: Box, pkg: Package): ContentImageBlock | undefined;
8
- declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package, listIdState?: OdfListIdState): ContentShape | undefined;
8
+ declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package, listIdState?: OdfListIdState, flowPositioning?: boolean): ContentShape | undefined;
9
9
  declare function walkDrawShapes(children: readonly XmlNode[], groupFunctions: readonly OdfTransformFunction[], pkg: Package, out: ContentShape[], indexState?: DocumentIndexState, listIdState?: OdfListIdState): void;
10
10
  interface DocumentIndexState {
11
11
  next: number;
@@ -1,11 +1,11 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
2
- import { Package } from "./model/package.js";
3
- import { t as OdfListIdState } from "./list-acGU0xLo.js";
2
+ import { r as Package } from "./package-BUojjTXf.js";
3
+ import { t as OdfListIdState } from "./list-Qeuawtew.js";
4
4
  import { r as OdfTransformFunction } from "./transform-C7GrZZdR.js";
5
5
  import { Box, ContentImageBlock, ContentShape, ContentVector } from "document-schema.js";
6
6
  //#region src/typed/draw/shapes.d.ts
7
7
  declare function readDrawImageBlock(image: XmlElement, frame: XmlElement, frameBox: Box, pkg: Package): ContentImageBlock | undefined;
8
- declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package, listIdState?: OdfListIdState): ContentShape | undefined;
8
+ declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package, listIdState?: OdfListIdState, flowPositioning?: boolean): ContentShape | undefined;
9
9
  declare function walkDrawShapes(children: readonly XmlNode[], groupFunctions: readonly OdfTransformFunction[], pkg: Package, out: ContentShape[], indexState?: DocumentIndexState, listIdState?: OdfListIdState): void;
10
10
  interface DocumentIndexState {
11
11
  next: number;
@@ -1,2 +1,2 @@
1
- import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "../registry-Dy6pjoh3.cjs";
1
+ import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "../registry-CaJpWDke.cjs";
2
2
  export { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily };
@@ -1,2 +1,2 @@
1
- import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "../registry-R43n1hcL.js";
1
+ import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "../registry-BVeEpUMI.js";
2
2
  export { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily };
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.cjs";
1
+ import { r as Package } from "./package-BUojjTXf.js";
2
2
  //#region src/typed/odb/subdocument.d.ts
3
3
  interface SubDocumentPackageOptions {
4
4
  allowMissingContent?: boolean;
@@ -1,4 +1,4 @@
1
- import { Package } from "./model/package.js";
1
+ import { r as Package } from "./package-L24lkba-.cjs";
2
2
  //#region src/typed/odb/subdocument.d.ts
3
3
  interface SubDocumentPackageOptions {
4
4
  allowMissingContent?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { l as XmlElement } from "./node-CkBWRjNR.cjs";
2
- import { Package } from "./model/package.cjs";
2
+ import { r as Package } from "./package-L24lkba-.cjs";
3
3
  import { Alignment, Color, ContentCellBorders, ContentTable } from "document-schema.js";
4
4
  //#region src/typed/shared/table.d.ts
5
5
  interface CellStyleDecoration {
@@ -1,5 +1,5 @@
1
1
  import { l as XmlElement } from "./node-CkBWRjNR.js";
2
- import { Package } from "./model/package.js";
2
+ import { r as Package } from "./package-BUojjTXf.js";
3
3
  import { Alignment, Color, ContentCellBorders, ContentTable } from "document-schema.js";
4
4
  //#region src/typed/shared/table.d.ts
5
5
  interface CellStyleDecoration {
@@ -1,8 +1,10 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
2
2
  //#region src/typed/shared/text.d.ts
3
+ declare const ODF_FIELD_TAGS: ReadonlySet<string>;
4
+ declare function isOdfFieldElement(element: XmlElement): boolean;
3
5
  declare function getOdfSpaceCount(element: XmlElement): number;
4
6
  declare function measureOdfNodeLength(node: XmlNode): number;
5
7
  declare function sumOdfNodeLength(nodes: readonly XmlNode[]): number;
6
8
  declare function decodeOdfText(container: XmlElement): string;
7
9
  //#endregion
8
- export { sumOdfNodeLength as i, getOdfSpaceCount as n, measureOdfNodeLength as r, decodeOdfText as t };
10
+ export { measureOdfNodeLength as a, isOdfFieldElement as i, decodeOdfText as n, sumOdfNodeLength as o, getOdfSpaceCount as r, ODF_FIELD_TAGS as t };
@@ -1,8 +1,10 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
2
2
  //#region src/typed/shared/text.d.ts
3
+ declare const ODF_FIELD_TAGS: ReadonlySet<string>;
4
+ declare function isOdfFieldElement(element: XmlElement): boolean;
3
5
  declare function getOdfSpaceCount(element: XmlElement): number;
4
6
  declare function measureOdfNodeLength(node: XmlNode): number;
5
7
  declare function sumOdfNodeLength(nodes: readonly XmlNode[]): number;
6
8
  declare function decodeOdfText(container: XmlElement): string;
7
9
  //#endregion
8
- export { sumOdfNodeLength as i, getOdfSpaceCount as n, measureOdfNodeLength as r, decodeOdfText as t };
10
+ export { measureOdfNodeLength as a, isOdfFieldElement as i, decodeOdfText as n, sumOdfNodeLength as o, getOdfSpaceCount as r, ODF_FIELD_TAGS as t };
@@ -1,5 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_xml_query = require("../../xml/query.cjs");
3
+ const require_typed_shared_constructs = require("../shared/constructs.cjs");
4
+ const require_typed_shared_table = require("../shared/table.cjs");
3
5
  const require_typed_formula_read = require("../formula/read.cjs");
4
6
  const require_typed_odb_subdocument = require("../odb/subdocument.cjs");
5
7
  //#region src/typed/draw/embedded.ts
@@ -10,9 +12,44 @@ function embeddedKindFor(bodyChildTag) {
10
12
  case "office:spreadsheet": return "spreadsheet";
11
13
  case "office:presentation": return "presentation";
12
14
  case "office:drawing": return "drawing";
15
+ case "office:chart": return "chart";
13
16
  default: return;
14
17
  }
15
18
  }
19
+ function readOdfChartContent(chartPackage, frame, format) {
20
+ const contentPart = chartPackage.parts[CONTENT_PART];
21
+ const contentRoot = contentPart?.kind === "xml" ? require_xml_query.rootElement(contentPart.nodes) : void 0;
22
+ const chartElement = contentRoot === void 0 ? void 0 : require_xml_query.elementsWithTag(contentRoot.children, "chart:chart")[0];
23
+ const localTable = chartElement === void 0 ? void 0 : require_xml_query.elementsWithTag(chartElement.children, "table:table")[0];
24
+ const blocks = localTable === void 0 ? [] : [require_typed_shared_table.readOdfTable(localTable, chartPackage)];
25
+ return {
26
+ document: {
27
+ kind: "drawing",
28
+ metadata: {},
29
+ pages: [{
30
+ size: {
31
+ widthPt: frame.widthPt,
32
+ heightPt: frame.heightPt
33
+ },
34
+ shapes: [{
35
+ frame: {
36
+ xPt: 0,
37
+ yPt: 0,
38
+ widthPt: frame.widthPt,
39
+ heightPt: frame.heightPt
40
+ },
41
+ insetLeftPt: 0,
42
+ insetTopPt: 0,
43
+ insetRightPt: 0,
44
+ insetBottomPt: 0,
45
+ blocks
46
+ }],
47
+ vectors: []
48
+ }]
49
+ },
50
+ residue: chartElement === void 0 ? void 0 : require_typed_shared_constructs.odfResidue(format, chartElement)
51
+ };
52
+ }
16
53
  function subDocumentKind(nodes) {
17
54
  const root = require_xml_query.rootElement(nodes);
18
55
  const body = root === void 0 ? void 0 : require_xml_query.findChildElement(root.children, "office:body");
@@ -46,3 +83,4 @@ function readDrawObjectReference(frame, pkg) {
46
83
  }
47
84
  //#endregion
48
85
  exports.readDrawObjectReference = readDrawObjectReference;
86
+ exports.readOdfChartContent = readOdfChartContent;
@@ -1,2 +1,2 @@
1
- import { n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "../../embedded-D7Kr1Sce.cjs";
2
- export { EmbeddedDocumentKind, EmbeddedDrawObject, readDrawObjectReference };
1
+ import { i as readOdfChartContent, n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "../../embedded-J3M3kDvY.cjs";
2
+ export { EmbeddedDocumentKind, EmbeddedDrawObject, readDrawObjectReference, readOdfChartContent };
@@ -1,2 +1,2 @@
1
- import { n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "../../embedded-CNMqOrnt.js";
2
- export { EmbeddedDocumentKind, EmbeddedDrawObject, readDrawObjectReference };
1
+ import { i as readOdfChartContent, n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "../../embedded-BPhuSEEI.js";
2
+ export { EmbeddedDocumentKind, EmbeddedDrawObject, readDrawObjectReference, readOdfChartContent };
@@ -1,4 +1,6 @@
1
- import { attrValue, childrenWithTag, findChildElement, rootElement } from "../../xml/query.js";
1
+ import { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement } from "../../xml/query.js";
2
+ import { odfResidue } from "../shared/constructs.js";
3
+ import { readOdfTable } from "../shared/table.js";
2
4
  import { findMathRoot } from "../formula/read.js";
3
5
  import { subDocumentPackage } from "../odb/subdocument.js";
4
6
  //#region src/typed/draw/embedded.ts
@@ -9,9 +11,44 @@ function embeddedKindFor(bodyChildTag) {
9
11
  case "office:spreadsheet": return "spreadsheet";
10
12
  case "office:presentation": return "presentation";
11
13
  case "office:drawing": return "drawing";
14
+ case "office:chart": return "chart";
12
15
  default: return;
13
16
  }
14
17
  }
18
+ function readOdfChartContent(chartPackage, frame, format) {
19
+ const contentPart = chartPackage.parts[CONTENT_PART];
20
+ const contentRoot = contentPart?.kind === "xml" ? rootElement(contentPart.nodes) : void 0;
21
+ const chartElement = contentRoot === void 0 ? void 0 : elementsWithTag(contentRoot.children, "chart:chart")[0];
22
+ const localTable = chartElement === void 0 ? void 0 : elementsWithTag(chartElement.children, "table:table")[0];
23
+ const blocks = localTable === void 0 ? [] : [readOdfTable(localTable, chartPackage)];
24
+ return {
25
+ document: {
26
+ kind: "drawing",
27
+ metadata: {},
28
+ pages: [{
29
+ size: {
30
+ widthPt: frame.widthPt,
31
+ heightPt: frame.heightPt
32
+ },
33
+ shapes: [{
34
+ frame: {
35
+ xPt: 0,
36
+ yPt: 0,
37
+ widthPt: frame.widthPt,
38
+ heightPt: frame.heightPt
39
+ },
40
+ insetLeftPt: 0,
41
+ insetTopPt: 0,
42
+ insetRightPt: 0,
43
+ insetBottomPt: 0,
44
+ blocks
45
+ }],
46
+ vectors: []
47
+ }]
48
+ },
49
+ residue: chartElement === void 0 ? void 0 : odfResidue(format, chartElement)
50
+ };
51
+ }
15
52
  function subDocumentKind(nodes) {
16
53
  const root = rootElement(nodes);
17
54
  const body = root === void 0 ? void 0 : findChildElement(root.children, "office:body");
@@ -44,4 +81,4 @@ function readDrawObjectReference(frame, pkg) {
44
81
  };
45
82
  }
46
83
  //#endregion
47
- export { readDrawObjectReference };
84
+ export { readDrawObjectReference, readOdfChartContent };
@@ -7,8 +7,8 @@ const require_xml_query = require("../../xml/query.cjs");
7
7
  const require_typed_shared_text = require("../shared/text.cjs");
8
8
  const require_typed_shared_geometry = require("../shared/geometry.cjs");
9
9
  const require_typed_shared_cascade = require("../shared/cascade.cjs");
10
- const require_typed_shared_paragraph = require("../shared/paragraph.cjs");
11
10
  const require_typed_shared_list = require("../shared/list.cjs");
11
+ const require_typed_shared_paragraph = require("../shared/paragraph.cjs");
12
12
  const require_typed_shared_table = require("../shared/table.cjs");
13
13
  const require_typed_shared_transform = require("../shared/transform.cjs");
14
14
  const require_typed_shared_path = require("../shared/path.cjs");
@@ -91,8 +91,8 @@ function readDrawFrameContent(frame, frameBox, pkg, listIdState) {
91
91
  }
92
92
  return [];
93
93
  }
94
- function readDrawFrame(frame, groupFunctions, pkg, listIdState = { next: 1 }) {
95
- const ownGeometry = require_typed_shared_transform.resolveOdfShapeGeometry(frame);
94
+ function readDrawFrame(frame, groupFunctions, pkg, listIdState = { next: 1 }, flowPositioning = false) {
95
+ const ownGeometry = require_typed_shared_transform.resolveOdfShapeGeometry(frame) ?? (flowPositioning ? flowFrameGeometry(frame) : void 0);
96
96
  if (ownGeometry === void 0) return;
97
97
  const geometry = require_typed_shared_transform.composeOdfGroupTransform(groupFunctions, ownGeometry);
98
98
  return {
@@ -103,6 +103,23 @@ function readDrawFrame(frame, groupFunctions, pkg, listIdState = { next: 1 }) {
103
103
  blocks: readDrawFrameContent(frame, geometry.frame, pkg, listIdState)
104
104
  };
105
105
  }
106
+ function flowFrameGeometry(frame) {
107
+ const widthValue = require_xml_query.attrValue(frame, "svg:width");
108
+ const heightValue = require_xml_query.attrValue(frame, "svg:height");
109
+ if (widthValue === void 0 || heightValue === void 0) return;
110
+ const widthPt = require_typed_shared_units.parseOdfLength(widthValue);
111
+ const heightPt = require_typed_shared_units.parseOdfLength(heightValue);
112
+ if (widthPt === void 0 || heightPt === void 0) return;
113
+ return {
114
+ frame: {
115
+ xPt: 0,
116
+ yPt: 0,
117
+ widthPt,
118
+ heightPt
119
+ },
120
+ rotationDeg: void 0
121
+ };
122
+ }
106
123
  function readOwnTransformFunctions(element) {
107
124
  const value = require_xml_query.attrValue(element, "draw:transform");
108
125
  return value === void 0 ? [] : require_typed_shared_transform.parseOdfTransform(value);
@@ -1,2 +1,2 @@
1
- import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "../../shapes-BqcccDK8.cjs";
1
+ import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "../../shapes-8o3NjBLU.cjs";
2
2
  export { DrawPageContent, readDrawFrame, readDrawImageBlock, readDrawPageContent, walkDrawShapes };