odf.js 5.1.2 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/{cascade-rhqUQrUa.d.ts → cascade-BZ7zqXhL.d.ts} +2 -2
- package/dist/{cascade-BmvsXcAz.d.cts → cascade-DWQfTwaM.d.cts} +2 -2
- package/dist/{codec-BAz7YIru.d.cts → codec-LgpdP32n.d.cts} +13 -13
- package/dist/{codec-BxxFEqvT.d.ts → codec-sFSMk-if.d.ts} +13 -13
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{constructs-CJpDDQV0.d.ts → constructs-B1yajQJB.d.ts} +8 -1
- package/dist/{constructs-Dy_DMFs3.d.cts → constructs-BSC_5kfU.d.cts} +8 -1
- package/dist/embedded-BSSdoKcK.js +904 -0
- package/dist/{embedded-BPhuSEEI.d.ts → embedded-ClsebpWi.d.ts} +7 -2
- package/dist/embedded-DbLrCGPi.cjs +945 -0
- package/dist/{embedded-J3M3kDvY.d.cts → embedded-rKOsAsjg.d.cts} +7 -2
- package/dist/{form-D3H5H2NL.d.ts → form-CsOrcORr.d.ts} +2 -2
- package/dist/{form-BGCT81ss.d.cts → form-D8wh-xhJ.d.cts} +2 -2
- package/dist/{forms-cIjw-Jf-.d.cts → forms-BydLKkI0.d.cts} +1 -1
- package/dist/{forms-D1-0spCe.d.ts → forms-iwRSwhOn.d.ts} +1 -1
- package/dist/index.cjs +7 -9
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +2 -4
- package/dist/{masterpage-XJ2v2khe.d.cts → masterpage-Bt6gxuoL.d.cts} +2 -1
- package/dist/{masterpage-C1McDhMv.d.ts → masterpage-By_F05W4.d.ts} +2 -1
- package/dist/{paragraph-6hzAZpmi.d.ts → paragraph-BE71DZ0t.d.ts} +4 -3
- package/dist/{paragraph-BBmSl_sK.d.cts → paragraph-CuEMXbDg.d.cts} +4 -3
- package/dist/{properties-BF_Fv6B3.d.cts → properties-C-JKQZUD.d.cts} +2 -0
- package/dist/{properties-DjAIdPry.d.ts → properties-Rral02h1.d.ts} +2 -0
- package/dist/read-24g5eZw6.d.ts +25 -0
- package/dist/{read-lc0t0UHK.d.ts → read-BLoaDxr_.d.ts} +2 -1
- package/dist/{read-B4238IGr.d.cts → read-C3Ei_MYc.d.cts} +2 -1
- package/dist/{read-CTfeWaWq.d.cts → read-CDSmR3qt.d.cts} +2 -1
- package/dist/{read-CdvX2qnz.d.ts → read-DJqvINGW.d.ts} +2 -1
- package/dist/{read-Db_GZ0ZH.d.ts → read-DfEHXwgn.d.ts} +2 -1
- package/dist/{read-DOYWO6BM.d.cts → read-IOYq80AA.d.cts} +2 -1
- package/dist/read-rwDsgR0d.d.cts +25 -0
- package/dist/{registry-CaJpWDke.d.cts → registry-CphRYjDD.d.cts} +1 -1
- package/dist/{registry-BVeEpUMI.d.ts → registry-D5RGBteE.d.ts} +1 -1
- package/dist/{serialize-DvaE_t5D.d.ts → serialize-B-lq0LiG.d.ts} +1 -1
- package/dist/{serialize-9xvti0FF.d.cts → serialize-D1fti8C5.d.cts} +1 -1
- package/dist/styles/properties.cjs +25 -3
- package/dist/styles/properties.d.cts +1 -1
- package/dist/styles/properties.d.ts +1 -1
- package/dist/styles/properties.js +25 -3
- package/dist/styles/registry.d.cts +1 -1
- package/dist/styles/registry.d.ts +1 -1
- package/dist/styles/serialize.d.cts +1 -1
- package/dist/styles/serialize.d.ts +1 -1
- package/dist/typed/draw/embedded.cjs +4 -85
- package/dist/typed/draw/embedded.d.cts +2 -2
- package/dist/typed/draw/embedded.d.ts +2 -2
- package/dist/typed/draw/embedded.js +2 -84
- package/dist/typed/draw/shapes.cjs +4 -1
- package/dist/typed/draw/shapes.js +4 -1
- package/dist/typed/odb/form.cjs +2 -2
- package/dist/typed/odb/form.d.cts +1 -1
- package/dist/typed/odb/form.d.ts +1 -1
- package/dist/typed/odb/form.js +1 -1
- package/dist/typed/odg/read.cjs +14 -4
- package/dist/typed/odg/read.d.cts +1 -1
- package/dist/typed/odg/read.d.ts +1 -1
- package/dist/typed/odg/read.js +14 -4
- package/dist/typed/odp/read.cjs +51 -4
- package/dist/typed/odp/read.d.cts +1 -1
- package/dist/typed/odp/read.d.ts +1 -1
- package/dist/typed/odp/read.js +52 -5
- package/dist/typed/ods/read.cjs +3 -446
- package/dist/typed/ods/read.d.cts +1 -1
- package/dist/typed/ods/read.d.ts +1 -1
- package/dist/typed/ods/read.js +1 -444
- package/dist/typed/odt/read.cjs +3 -310
- package/dist/typed/odt/read.d.cts +2 -2
- package/dist/typed/odt/read.d.ts +2 -2
- package/dist/typed/odt/read.js +1 -308
- package/dist/typed/shared/cascade.d.cts +1 -1
- package/dist/typed/shared/cascade.d.ts +1 -1
- package/dist/typed/shared/constructs.cjs +73 -0
- package/dist/typed/shared/constructs.d.cts +2 -2
- package/dist/typed/shared/constructs.d.ts +2 -2
- package/dist/typed/shared/constructs.js +67 -1
- package/dist/typed/shared/forms.d.cts +1 -1
- package/dist/typed/shared/forms.d.ts +1 -1
- package/dist/typed/shared/masterpage.cjs +7 -0
- package/dist/typed/shared/masterpage.d.cts +2 -2
- package/dist/typed/shared/masterpage.d.ts +2 -2
- package/dist/typed/shared/masterpage.js +7 -1
- package/dist/typed/shared/paragraph.cjs +17 -6
- package/dist/typed/shared/paragraph.d.cts +2 -2
- package/dist/typed/shared/paragraph.d.ts +2 -2
- package/dist/typed/shared/paragraph.js +18 -8
- package/package.json +2 -2
- package/dist/read-Cs1ktkWB.d.cts +0 -15
- package/dist/read-DHuiGh_y.d.ts +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
2
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { l as OdfResidueFormat } from "./constructs-BSC_5kfU.cjs";
|
|
4
4
|
import { Box, ContentDocument, ContentEmbeddedObjectKind, SourceResidue } from "document-schema.js";
|
|
5
5
|
//#region src/typed/draw/embedded.d.ts
|
|
6
6
|
type EmbeddedDocumentKind = ContentEmbeddedObjectKind;
|
|
@@ -13,6 +13,11 @@ declare function readOdfChartContent(chartPackage: Package, frame: Box, format:
|
|
|
13
13
|
document: ContentDocument;
|
|
14
14
|
residue: SourceResidue | undefined;
|
|
15
15
|
};
|
|
16
|
+
interface EmbeddedDocumentRead {
|
|
17
|
+
readonly document: ContentDocument;
|
|
18
|
+
readonly residue: SourceResidue | undefined;
|
|
19
|
+
}
|
|
20
|
+
declare function readEmbeddedObjectDocument(reference: EmbeddedDrawObject, frame: Box, format: OdfResidueFormat): EmbeddedDocumentRead;
|
|
16
21
|
declare function readDrawObjectReference(frame: XmlElement, pkg: Package): EmbeddedDrawObject | undefined;
|
|
17
22
|
//#endregion
|
|
18
|
-
export {
|
|
23
|
+
export { readEmbeddedObjectDocument as a, readDrawObjectReference as i, EmbeddedDocumentRead as n, readOdfChartContent as o, EmbeddedDrawObject as r, EmbeddedDocumentKind as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
-
import { t as OdtDocument } from "./read-
|
|
3
|
-
import { n as OdbFormDefinition } from "./forms-
|
|
2
|
+
import { t as OdtDocument } from "./read-24g5eZw6.js";
|
|
3
|
+
import { n as OdbFormDefinition } from "./forms-iwRSwhOn.js";
|
|
4
4
|
//#region src/typed/odb/form.d.ts
|
|
5
5
|
interface OdbForm {
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
-
import { t as OdtDocument } from "./read-
|
|
3
|
-
import { n as OdbFormDefinition } from "./forms-
|
|
2
|
+
import { t as OdtDocument } from "./read-rwDsgR0d.cjs";
|
|
3
|
+
import { n as OdbFormDefinition } from "./forms-BydLKkI0.cjs";
|
|
4
4
|
//#region src/typed/odb/form.d.ts
|
|
5
5
|
interface OdbForm {
|
|
6
6
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { l as OdfResidueFormat } from "./constructs-BSC_5kfU.cjs";
|
|
3
3
|
import { ContentBlock } from "document-schema.js";
|
|
4
4
|
//#region src/typed/shared/forms.d.ts
|
|
5
5
|
interface OdbFormControl {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as OdfResidueFormat } from "./constructs-B1yajQJB.js";
|
|
3
3
|
import { ContentBlock } from "document-schema.js";
|
|
4
4
|
//#region src/typed/shared/forms.d.ts
|
|
5
5
|
interface OdbFormControl {
|
package/dist/index.cjs
CHANGED
|
@@ -36,12 +36,10 @@ const require_typed_shared_path = require("./typed/shared/path.cjs");
|
|
|
36
36
|
const require_typed_draw_shapes = require("./typed/draw/shapes.cjs");
|
|
37
37
|
const require_typed_formula_read = require("./typed/formula/read.cjs");
|
|
38
38
|
const require_typed_odb_subdocument = require("./typed/odb/subdocument.cjs");
|
|
39
|
-
const
|
|
39
|
+
const require_typed_odg_read = require("./typed/odg/read.cjs");
|
|
40
40
|
const require_typed_odp_read = require("./typed/odp/read.cjs");
|
|
41
|
+
const require_embedded = require("./embedded-DbLrCGPi.cjs");
|
|
41
42
|
const require_typed_shared_forms = require("./typed/shared/forms.cjs");
|
|
42
|
-
const require_typed_odg_read = require("./typed/odg/read.cjs");
|
|
43
|
-
const require_typed_odt_read = require("./typed/odt/read.cjs");
|
|
44
|
-
const require_typed_ods_read = require("./typed/ods/read.cjs");
|
|
45
43
|
const require_typed_odm_read = require("./typed/odm/read.cjs");
|
|
46
44
|
const require_typed_odb_read = require("./typed/odb/read.cjs");
|
|
47
45
|
const require_typed_odb_form = require("./typed/odb/form.cjs");
|
|
@@ -134,7 +132,7 @@ exports.parseXml = require_xml_parse.parseXml;
|
|
|
134
132
|
exports.rawSubpathFromPoints = require_typed_shared_path.rawSubpathFromPoints;
|
|
135
133
|
exports.readDrawFrame = require_typed_draw_shapes.readDrawFrame;
|
|
136
134
|
exports.readDrawImageBlock = require_typed_draw_shapes.readDrawImageBlock;
|
|
137
|
-
exports.readDrawObjectReference =
|
|
135
|
+
exports.readDrawObjectReference = require_embedded.readDrawObjectReference;
|
|
138
136
|
exports.readDrawPageContent = require_typed_draw_shapes.readDrawPageContent;
|
|
139
137
|
exports.readManifest = require_manifest.readManifest;
|
|
140
138
|
exports.readMimetype = require_mimetype.readMimetype;
|
|
@@ -155,10 +153,10 @@ exports.readOdgContent = require_typed_odg_read.readOdgContent;
|
|
|
155
153
|
exports.readOdm = require_typed_odm_read.readOdm;
|
|
156
154
|
exports.readOdp = require_typed_odp_read.readOdp;
|
|
157
155
|
exports.readOdpContent = require_typed_odp_read.readOdpContent;
|
|
158
|
-
exports.readOds =
|
|
159
|
-
exports.readOdsContent =
|
|
160
|
-
exports.readOdt =
|
|
161
|
-
exports.readOdtContent =
|
|
156
|
+
exports.readOds = require_embedded.readOds;
|
|
157
|
+
exports.readOdsContent = require_embedded.readOdsContent;
|
|
158
|
+
exports.readOdt = require_embedded.readOdt;
|
|
159
|
+
exports.readOdtContent = require_embedded.readOdtContent;
|
|
162
160
|
exports.resolveDrawPageSize = require_typed_shared_masterpage.resolveDrawPageSize;
|
|
163
161
|
exports.resolveOdbComponent = require_typed_odb_read.resolveOdbComponent;
|
|
164
162
|
exports.resolveOdfListKind = require_typed_shared_list.resolveOdfListKind;
|
package/dist/index.d.cts
CHANGED
|
@@ -13,9 +13,9 @@ import { n as writeMimetype, t as readMimetype } from "./mimetype-CPNMj04s.cjs";
|
|
|
13
13
|
import { n as txt, t as el } from "./fragment-B1og_8uA.cjs";
|
|
14
14
|
import { n as encodeXmlText, t as decodeXmlText } from "./entities-BZlXvHqu.cjs";
|
|
15
15
|
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-BALwu2JR.cjs";
|
|
16
|
-
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "./properties-
|
|
17
|
-
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "./serialize-
|
|
18
|
-
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-
|
|
16
|
+
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "./properties-C-JKQZUD.cjs";
|
|
17
|
+
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "./serialize-D1fti8C5.cjs";
|
|
18
|
+
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-CphRYjDD.cjs";
|
|
19
19
|
import { t as ensureSpan } from "./span-BtmvlqZH.cjs";
|
|
20
20
|
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "./query-P-Y5DK0-.cjs";
|
|
21
21
|
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./units-7pCiECuP.cjs";
|
|
@@ -23,26 +23,26 @@ import { a as parseCellReference, i as columnLettersToIndex, n as cellReference,
|
|
|
23
23
|
import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.cjs";
|
|
24
24
|
import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-lKWJ_ifA.cjs";
|
|
25
25
|
import { a as measureOdfNodeLength, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount } from "./text-BAi1tapc.cjs";
|
|
26
|
-
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-
|
|
26
|
+
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-DWQfTwaM.cjs";
|
|
27
27
|
import { n as readOdfMetadata, t as META_PART } from "./metadata-1j1zm9Cx.cjs";
|
|
28
28
|
import { a as resolveOdfListKind, i as readOdfListParagraphs, n as OdfListParagraphReader, r as mintOdfListNumId, t as OdfListIdState } from "./list-KZeXA0mR.cjs";
|
|
29
|
-
import {
|
|
29
|
+
import { r as readOdfParagraph } from "./paragraph-CuEMXbDg.cjs";
|
|
30
30
|
import { r as readOdfTable } from "./table-BH_Q2n_N.cjs";
|
|
31
31
|
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "./transform-DKEjydnm.cjs";
|
|
32
|
-
import { n as
|
|
32
|
+
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties } from "./masterpage-Bt6gxuoL.cjs";
|
|
33
33
|
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "./path-DE7wkIcz.cjs";
|
|
34
34
|
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-8o3NjBLU.cjs";
|
|
35
|
-
import {
|
|
36
|
-
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-
|
|
37
|
-
import { i as
|
|
38
|
-
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-
|
|
39
|
-
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-
|
|
35
|
+
import { i as readDrawObjectReference, r as EmbeddedDrawObject, t as EmbeddedDocumentKind } from "./embedded-rKOsAsjg.cjs";
|
|
36
|
+
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-CDSmR3qt.cjs";
|
|
37
|
+
import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-rwDsgR0d.cjs";
|
|
38
|
+
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-IOYq80AA.cjs";
|
|
39
|
+
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-C3Ei_MYc.cjs";
|
|
40
40
|
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-DUCm1nUv.cjs";
|
|
41
41
|
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-ydLJ8bid.cjs";
|
|
42
42
|
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-BV2an1ok.cjs";
|
|
43
43
|
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-yY8ASE4N.cjs";
|
|
44
|
-
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-
|
|
45
|
-
import { n as readOdbForm, t as OdbForm } from "./form-
|
|
44
|
+
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-BydLKkI0.cjs";
|
|
45
|
+
import { n as readOdbForm, t as OdbForm } from "./form-D8wh-xhJ.cjs";
|
|
46
46
|
import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-D6WNYaVn.cjs";
|
|
47
|
-
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentPackage, t as decodePackage } from "./codec-
|
|
48
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentPackage, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtReadOptions, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
|
47
|
+
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentPackage, t as decodePackage } from "./codec-LgpdP32n.cjs";
|
|
48
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentPackage, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtHeaderFooterPart, type OdtHeaderFooterVariant, type OdtReadOptions, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ import { n as writeMimetype, t as readMimetype } from "./mimetype-BfkwTeaW.js";
|
|
|
13
13
|
import { n as txt, t as el } from "./fragment-B1ZV7T5Z.js";
|
|
14
14
|
import { n as encodeXmlText, t as decodeXmlText } from "./entities-BZlXvHqu.js";
|
|
15
15
|
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-CP1sqyGU.js";
|
|
16
|
-
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "./properties-
|
|
17
|
-
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "./serialize-
|
|
18
|
-
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-
|
|
16
|
+
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "./properties-Rral02h1.js";
|
|
17
|
+
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "./serialize-B-lq0LiG.js";
|
|
18
|
+
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-D5RGBteE.js";
|
|
19
19
|
import { t as ensureSpan } from "./span-KXroEGuH.js";
|
|
20
20
|
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "./query-sECN-7vU.js";
|
|
21
21
|
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./units-7pCiECuP.js";
|
|
@@ -23,26 +23,26 @@ import { a as parseCellReference, i as columnLettersToIndex, n as cellReference,
|
|
|
23
23
|
import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.js";
|
|
24
24
|
import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-DnhkIhAM.js";
|
|
25
25
|
import { a as measureOdfNodeLength, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount } from "./text-gJ5R0q3u.js";
|
|
26
|
-
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-
|
|
26
|
+
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-BZ7zqXhL.js";
|
|
27
27
|
import { n as readOdfMetadata, t as META_PART } from "./metadata-BXpjrAS-.js";
|
|
28
28
|
import { a as resolveOdfListKind, i as readOdfListParagraphs, n as OdfListParagraphReader, r as mintOdfListNumId, t as OdfListIdState } from "./list-Qeuawtew.js";
|
|
29
|
-
import {
|
|
29
|
+
import { r as readOdfParagraph } from "./paragraph-BE71DZ0t.js";
|
|
30
30
|
import { r as readOdfTable } from "./table-ByOoGcq_.js";
|
|
31
31
|
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "./transform-C7GrZZdR.js";
|
|
32
|
-
import { n as
|
|
32
|
+
import { n as resolveDrawPageSize, r as resolvePageLayoutProperties } from "./masterpage-By_F05W4.js";
|
|
33
33
|
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "./path-DE7wkIcz.js";
|
|
34
34
|
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-CCB8ydqD.js";
|
|
35
|
-
import {
|
|
36
|
-
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-
|
|
37
|
-
import { i as
|
|
38
|
-
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-
|
|
39
|
-
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-
|
|
35
|
+
import { i as readDrawObjectReference, r as EmbeddedDrawObject, t as EmbeddedDocumentKind } from "./embedded-ClsebpWi.js";
|
|
36
|
+
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-DfEHXwgn.js";
|
|
37
|
+
import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-24g5eZw6.js";
|
|
38
|
+
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-BLoaDxr_.js";
|
|
39
|
+
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-DJqvINGW.js";
|
|
40
40
|
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-BnN7u9Y2.js";
|
|
41
41
|
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-DYYxbvfo.js";
|
|
42
42
|
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-CvjbdgH3.js";
|
|
43
43
|
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-BwW3FZC_.js";
|
|
44
|
-
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-
|
|
45
|
-
import { n as readOdbForm, t as OdbForm } from "./form-
|
|
44
|
+
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-iwRSwhOn.js";
|
|
45
|
+
import { n as readOdbForm, t as OdbForm } from "./form-CsOrcORr.js";
|
|
46
46
|
import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-DbslT2OR.js";
|
|
47
|
-
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentPackage, t as decodePackage } from "./codec-
|
|
48
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentPackage, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtReadOptions, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
|
47
|
+
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentPackage, t as decodePackage } from "./codec-sFSMk-if.js";
|
|
48
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentPackage, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfListIdState, type OdfListParagraphReader, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OdtHeaderFooterPart, type OdtHeaderFooterVariant, type OdtReadOptions, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, mintOdfListNumId, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -35,12 +35,10 @@ import { buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox
|
|
|
35
35
|
import { readDrawFrame, readDrawImageBlock, readDrawPageContent, walkDrawShapes } from "./typed/draw/shapes.js";
|
|
36
36
|
import { readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl } from "./typed/formula/read.js";
|
|
37
37
|
import { subDocumentPackage } from "./typed/odb/subdocument.js";
|
|
38
|
-
import {
|
|
38
|
+
import { readOdg, readOdgContent } from "./typed/odg/read.js";
|
|
39
39
|
import { readOdp, readOdpContent } from "./typed/odp/read.js";
|
|
40
|
+
import { a as readOdtContent, i as readOdt, o as readOds, s as readOdsContent, t as readDrawObjectReference } from "./embedded-BSSdoKcK.js";
|
|
40
41
|
import { readOdfFormControlConstructs, readOdfFormDefinitions } from "./typed/shared/forms.js";
|
|
41
|
-
import { readOdg, readOdgContent } from "./typed/odg/read.js";
|
|
42
|
-
import { readOdt, readOdtContent } from "./typed/odt/read.js";
|
|
43
|
-
import { readOds, readOdsContent } from "./typed/ods/read.js";
|
|
44
42
|
import { readOdm } from "./typed/odm/read.js";
|
|
45
43
|
import { readOdbInventory, resolveOdbComponent } from "./typed/odb/read.js";
|
|
46
44
|
import { readOdbForm } from "./typed/odb/form.js";
|
|
@@ -4,5 +4,6 @@ import { PageSize } from "document-schema.js";
|
|
|
4
4
|
//#region src/typed/shared/masterpage.d.ts
|
|
5
5
|
declare function resolvePageLayoutProperties(pkg: Package, masterPageName: string | undefined): XmlElement | undefined;
|
|
6
6
|
declare function resolveDrawPageSize(page: XmlElement, pkg: Package): PageSize | undefined;
|
|
7
|
+
declare function readOdfMasterPageElements(pkg: Package): XmlElement[];
|
|
7
8
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
+
export { resolveDrawPageSize as n, resolvePageLayoutProperties as r, readOdfMasterPageElements as t };
|
|
@@ -4,5 +4,6 @@ import { PageSize } from "document-schema.js";
|
|
|
4
4
|
//#region src/typed/shared/masterpage.d.ts
|
|
5
5
|
declare function resolvePageLayoutProperties(pkg: Package, masterPageName: string | undefined): XmlElement | undefined;
|
|
6
6
|
declare function resolveDrawPageSize(page: XmlElement, pkg: Package): PageSize | undefined;
|
|
7
|
+
declare function readOdfMasterPageElements(pkg: Package): XmlElement[];
|
|
7
8
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
+
export { resolveDrawPageSize as n, resolvePageLayoutProperties as r, readOdfMasterPageElements as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
2
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
3
|
import { t as OdfListIdState } from "./list-Qeuawtew.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { ContentParagraph, ProvenanceDescriptor } from "document-schema.js";
|
|
4
|
+
import { a as OdfDefinitionsSink, l as OdfResidueFormat, s as OdfMarkerHalf } from "./constructs-B1yajQJB.js";
|
|
5
|
+
import { ContentBlock, ContentParagraph, ProvenanceDescriptor } from "document-schema.js";
|
|
6
6
|
//#region src/typed/shared/paragraph.d.ts
|
|
7
7
|
interface OdfParagraphContext {
|
|
8
8
|
readonly provenanceRegions?: ReadonlyMap<string, ProvenanceDescriptor>;
|
|
@@ -11,6 +11,7 @@ interface OdfParagraphContext {
|
|
|
11
11
|
readonly listIdState?: OdfListIdState;
|
|
12
12
|
readonly format?: OdfResidueFormat;
|
|
13
13
|
}
|
|
14
|
+
declare function readOdfConstructBodyBlocks(body: XmlElement, pkg: Package, context: OdfParagraphContext, listIdState: OdfListIdState): ContentBlock[];
|
|
14
15
|
declare function readOdfParagraph(pElement: XmlElement, pkg: Package, context?: OdfParagraphContext): ContentParagraph;
|
|
15
16
|
//#endregion
|
|
16
|
-
export {
|
|
17
|
+
export { readOdfConstructBodyBlocks as n, readOdfParagraph as r, OdfParagraphContext as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
2
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
3
|
import { t as OdfListIdState } from "./list-KZeXA0mR.cjs";
|
|
4
|
-
import { a as
|
|
5
|
-
import { ContentParagraph, ProvenanceDescriptor } from "document-schema.js";
|
|
4
|
+
import { a as OdfDefinitionsSink, l as OdfResidueFormat, s as OdfMarkerHalf } from "./constructs-BSC_5kfU.cjs";
|
|
5
|
+
import { ContentBlock, ContentParagraph, ProvenanceDescriptor } from "document-schema.js";
|
|
6
6
|
//#region src/typed/shared/paragraph.d.ts
|
|
7
7
|
interface OdfParagraphContext {
|
|
8
8
|
readonly provenanceRegions?: ReadonlyMap<string, ProvenanceDescriptor>;
|
|
@@ -11,6 +11,7 @@ interface OdfParagraphContext {
|
|
|
11
11
|
readonly listIdState?: OdfListIdState;
|
|
12
12
|
readonly format?: OdfResidueFormat;
|
|
13
13
|
}
|
|
14
|
+
declare function readOdfConstructBodyBlocks(body: XmlElement, pkg: Package, context: OdfParagraphContext, listIdState: OdfListIdState): ContentBlock[];
|
|
14
15
|
declare function readOdfParagraph(pElement: XmlElement, pkg: Package, context?: OdfParagraphContext): ContentParagraph;
|
|
15
16
|
//#endregion
|
|
16
|
-
export {
|
|
17
|
+
export { readOdfConstructBodyBlocks as n, readOdfParagraph as r, OdfParagraphContext as t };
|
|
@@ -24,6 +24,8 @@ declare const StylePropertiesSchema: z.ZodObject<{
|
|
|
24
24
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
27
29
|
}, z.core.$strip>;
|
|
28
30
|
type StyleProperties = z.infer<typeof StylePropertiesSchema>;
|
|
29
31
|
interface ParsedProperties {
|
|
@@ -24,6 +24,8 @@ declare const StylePropertiesSchema: z.ZodObject<{
|
|
|
24
24
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
27
29
|
}, z.core.$strip>;
|
|
28
30
|
type StyleProperties = z.infer<typeof StylePropertiesSchema>;
|
|
29
31
|
interface ParsedProperties {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
+
import { ContentBlock, ContentSection, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } 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
|
+
headerFooterParts?: OdtHeaderFooterPart[];
|
|
12
|
+
sectionMasterPages?: (string | undefined)[];
|
|
13
|
+
source?: Record<string, SourceResidue>;
|
|
14
|
+
}
|
|
15
|
+
type OdtHeaderFooterVariant = 'default' | 'left' | 'first';
|
|
16
|
+
interface OdtHeaderFooterPart {
|
|
17
|
+
readonly masterPage: string;
|
|
18
|
+
readonly kind: 'header' | 'footer';
|
|
19
|
+
readonly variant: OdtHeaderFooterVariant;
|
|
20
|
+
readonly blocks: ContentBlock[];
|
|
21
|
+
}
|
|
22
|
+
declare function readOdtContent(pkg: Package, options?: OdtReadOptions): OdtDocument;
|
|
23
|
+
declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentPackage;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { readOdt as a, OdtReadOptions as i, OdtHeaderFooterPart as n, readOdtContent as o, OdtHeaderFooterVariant as r, OdtDocument as t };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
-
import { ContentDrawPage, DocumentPackage, LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { ContentDrawPage, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
|
|
3
3
|
//#region src/typed/odg/read.d.ts
|
|
4
4
|
interface OdgDocument {
|
|
5
5
|
metadata: LayoutMetadata;
|
|
6
6
|
pages: ContentDrawPage[];
|
|
7
|
+
source?: Record<string, SourceResidue>;
|
|
7
8
|
}
|
|
8
9
|
declare function readOdgContent(pkg: Package): OdgDocument;
|
|
9
10
|
declare function readOdg(pkg: Package): DocumentPackage;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
-
import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
|
|
3
3
|
//#region src/typed/ods/read.d.ts
|
|
4
4
|
interface OdsDocument {
|
|
5
5
|
metadata: LayoutMetadata;
|
|
6
6
|
sheets: ContentSheet[];
|
|
7
7
|
definitions?: DefinitionsTable;
|
|
8
|
+
source?: Record<string, SourceResidue>;
|
|
8
9
|
}
|
|
9
10
|
declare function readOdsContent(pkg: Package): OdsDocument;
|
|
10
11
|
declare function readOds(pkg: Package): DocumentPackage;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
-
import { ContentSlide, DocumentPackage, LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { ContentSlide, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
|
|
3
3
|
//#region src/typed/odp/read.d.ts
|
|
4
4
|
interface OdpDocument {
|
|
5
5
|
metadata: LayoutMetadata;
|
|
6
6
|
slides: ContentSlide[];
|
|
7
|
+
source?: Record<string, SourceResidue>;
|
|
7
8
|
}
|
|
8
9
|
declare function readOdpContent(pkg: Package): OdpDocument;
|
|
9
10
|
declare function readOdp(pkg: Package): DocumentPackage;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
-
import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
|
|
3
3
|
//#region src/typed/ods/read.d.ts
|
|
4
4
|
interface OdsDocument {
|
|
5
5
|
metadata: LayoutMetadata;
|
|
6
6
|
sheets: ContentSheet[];
|
|
7
7
|
definitions?: DefinitionsTable;
|
|
8
|
+
source?: Record<string, SourceResidue>;
|
|
8
9
|
}
|
|
9
10
|
declare function readOdsContent(pkg: Package): OdsDocument;
|
|
10
11
|
declare function readOds(pkg: Package): DocumentPackage;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
-
import { ContentSlide, DocumentPackage, LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { ContentSlide, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
|
|
3
3
|
//#region src/typed/odp/read.d.ts
|
|
4
4
|
interface OdpDocument {
|
|
5
5
|
metadata: LayoutMetadata;
|
|
6
6
|
slides: ContentSlide[];
|
|
7
|
+
source?: Record<string, SourceResidue>;
|
|
7
8
|
}
|
|
8
9
|
declare function readOdpContent(pkg: Package): OdpDocument;
|
|
9
10
|
declare function readOdp(pkg: Package): DocumentPackage;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
-
import { ContentDrawPage, DocumentPackage, LayoutMetadata } from "document-schema.js";
|
|
2
|
+
import { ContentDrawPage, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
|
|
3
3
|
//#region src/typed/odg/read.d.ts
|
|
4
4
|
interface OdgDocument {
|
|
5
5
|
metadata: LayoutMetadata;
|
|
6
6
|
pages: ContentDrawPage[];
|
|
7
|
+
source?: Record<string, SourceResidue>;
|
|
7
8
|
}
|
|
8
9
|
declare function readOdgContent(pkg: Package): OdgDocument;
|
|
9
10
|
declare function readOdg(pkg: Package): DocumentPackage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
+
import { ContentBlock, ContentSection, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } 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
|
+
headerFooterParts?: OdtHeaderFooterPart[];
|
|
12
|
+
sectionMasterPages?: (string | undefined)[];
|
|
13
|
+
source?: Record<string, SourceResidue>;
|
|
14
|
+
}
|
|
15
|
+
type OdtHeaderFooterVariant = 'default' | 'left' | 'first';
|
|
16
|
+
interface OdtHeaderFooterPart {
|
|
17
|
+
readonly masterPage: string;
|
|
18
|
+
readonly kind: 'header' | 'footer';
|
|
19
|
+
readonly variant: OdtHeaderFooterVariant;
|
|
20
|
+
readonly blocks: ContentBlock[];
|
|
21
|
+
}
|
|
22
|
+
declare function readOdtContent(pkg: Package, options?: OdtReadOptions): OdtDocument;
|
|
23
|
+
declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentPackage;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { readOdt as a, OdtReadOptions as i, OdtHeaderFooterPart as n, readOdtContent as o, OdtHeaderFooterVariant as r, OdtDocument as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
|
-
import { n as StyleProperties } from "./properties-
|
|
2
|
+
import { n as StyleProperties } from "./properties-C-JKQZUD.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"];
|
|
5
5
|
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
2
|
-
import { n as StyleProperties } from "./properties-
|
|
2
|
+
import { n as StyleProperties } from "./properties-Rral02h1.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"];
|
|
5
5
|
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { n as StyleProperties } from "./properties-
|
|
2
|
+
import { n as StyleProperties } from "./properties-Rral02h1.js";
|
|
3
3
|
//#region src/styles/serialize.d.ts
|
|
4
4
|
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
5
|
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { n as StyleProperties } from "./properties-
|
|
2
|
+
import { n as StyleProperties } from "./properties-C-JKQZUD.cjs";
|
|
3
3
|
//#region src/styles/serialize.d.ts
|
|
4
4
|
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
5
|
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
@@ -18,7 +18,9 @@ const StylePropertiesSchema = zod.z.object({
|
|
|
18
18
|
spacingAfterPt: zod.z.number().optional(),
|
|
19
19
|
lineSpacing: zod.z.number().optional(),
|
|
20
20
|
indentLeftPt: zod.z.number().optional(),
|
|
21
|
-
indentFirstLinePt: zod.z.number().optional()
|
|
21
|
+
indentFirstLinePt: zod.z.number().optional(),
|
|
22
|
+
pageBreakBefore: zod.z.boolean().optional(),
|
|
23
|
+
pageBreakAfter: zod.z.boolean().optional()
|
|
22
24
|
});
|
|
23
25
|
const ATTR = {
|
|
24
26
|
fontWeight: "fo:font-weight",
|
|
@@ -36,7 +38,9 @@ const ATTR = {
|
|
|
36
38
|
marginBottom: "fo:margin-bottom",
|
|
37
39
|
lineHeight: "fo:line-height",
|
|
38
40
|
marginLeft: "fo:margin-left",
|
|
39
|
-
textIndent: "fo:text-indent"
|
|
41
|
+
textIndent: "fo:text-indent",
|
|
42
|
+
breakBefore: "fo:break-before",
|
|
43
|
+
breakAfter: "fo:break-after"
|
|
40
44
|
};
|
|
41
45
|
const TEXT_ATTR_NAMES = /* @__PURE__ */ new Set([
|
|
42
46
|
ATTR.fontWeight,
|
|
@@ -56,7 +60,9 @@ const PARAGRAPH_ATTR_NAMES = /* @__PURE__ */ new Set([
|
|
|
56
60
|
ATTR.marginBottom,
|
|
57
61
|
ATTR.lineHeight,
|
|
58
62
|
ATTR.marginLeft,
|
|
59
|
-
ATTR.textIndent
|
|
63
|
+
ATTR.textIndent,
|
|
64
|
+
ATTR.breakBefore,
|
|
65
|
+
ATTR.breakAfter
|
|
60
66
|
]);
|
|
61
67
|
function attributeMap(element) {
|
|
62
68
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -160,6 +166,14 @@ function parseParagraphProperties(element) {
|
|
|
160
166
|
if (multiplier === void 0) hasUnknown = true;
|
|
161
167
|
else properties.lineSpacing = multiplier;
|
|
162
168
|
}
|
|
169
|
+
const breakBefore = attrs.get(ATTR.breakBefore);
|
|
170
|
+
if (breakBefore === "page") properties.pageBreakBefore = true;
|
|
171
|
+
else if (breakBefore === "auto") properties.pageBreakBefore = false;
|
|
172
|
+
else if (breakBefore !== void 0) hasUnknown = true;
|
|
173
|
+
const breakAfter = attrs.get(ATTR.breakAfter);
|
|
174
|
+
if (breakAfter === "page") properties.pageBreakAfter = true;
|
|
175
|
+
else if (breakAfter === "auto") properties.pageBreakAfter = false;
|
|
176
|
+
else if (breakAfter !== void 0) hasUnknown = true;
|
|
163
177
|
return {
|
|
164
178
|
properties,
|
|
165
179
|
hasUnknown
|
|
@@ -276,6 +290,14 @@ function paragraphPropertiesToAttributes(properties) {
|
|
|
276
290
|
name: ATTR.textIndent,
|
|
277
291
|
value: formatPt(properties.indentFirstLinePt)
|
|
278
292
|
});
|
|
293
|
+
if (properties.pageBreakBefore !== void 0) attributes.push({
|
|
294
|
+
name: ATTR.breakBefore,
|
|
295
|
+
value: properties.pageBreakBefore ? "page" : "auto"
|
|
296
|
+
});
|
|
297
|
+
if (properties.pageBreakAfter !== void 0) attributes.push({
|
|
298
|
+
name: ATTR.breakAfter,
|
|
299
|
+
value: properties.pageBreakAfter ? "page" : "auto"
|
|
300
|
+
});
|
|
279
301
|
return attributes;
|
|
280
302
|
}
|
|
281
303
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "../properties-
|
|
1
|
+
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "../properties-C-JKQZUD.cjs";
|
|
2
2
|
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "../properties-
|
|
1
|
+
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "../properties-Rral02h1.js";
|
|
2
2
|
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|