ooxml.js 5.0.2 → 6.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.
- package/README.md +44 -35
- package/dist/{build-XSm3I8LT.d.cts → build--uPsivid.d.cts} +1 -1
- package/dist/{build-q0qMH_ML.d.ts → build-BOI7rIog.d.ts} +1 -1
- package/dist/{build-D-ldsmtA.d.cts → build-BY9Mn-4K.d.cts} +1 -1
- package/dist/{build-Z1KRkSEB.d.ts → build-DgBE0bmv.d.ts} +1 -1
- package/dist/codec-BBM1RYx7.d.cts +90 -0
- package/dist/codec-Cva8QD7-.d.ts +90 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{color-fFIKAs-Y.d.cts → color-DLoZOrg3.d.cts} +1 -1
- package/dist/{color-fFIKAs-Y.d.ts → color-DLoZOrg3.d.ts} +1 -1
- package/dist/{compact-f0TfhicN.d.ts → compact-CmOeA2dl.d.ts} +2 -2
- package/dist/{compact-B1qg9oex.d.cts → compact-DMCbYORW.d.cts} +2 -2
- package/dist/compact.d.cts +1 -1
- package/dist/compact.d.ts +1 -1
- package/dist/{content-C79O3esU.d.cts → content-BiYr86lr.d.cts} +1 -1
- package/dist/{content-MEmp_Rlx.d.ts → content-D1pmxaUb.d.ts} +1 -1
- package/dist/document-tree-B17XbBOR.d.ts +11 -0
- package/dist/document-tree-CjI-Z4Tp.d.cts +11 -0
- package/dist/{fragment-B1og_8uA.d.cts → fragment-9dNg-m46.d.cts} +1 -1
- package/dist/{fragment-B1ZV7T5Z.d.ts → fragment-ClgCV_if.d.ts} +1 -1
- package/dist/image/sniff.d.cts +1 -1
- package/dist/image/sniff.d.ts +1 -1
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.js +4 -4
- package/dist/{metadata-o_WH9V_I.d.ts → metadata-Bjfa88HQ.d.ts} +1 -1
- package/dist/{metadata-D6o-kLpg.d.cts → metadata-C74-XCrx.d.cts} +1 -1
- package/dist/model/node.d.cts +1 -1
- package/dist/model/node.d.ts +1 -1
- package/dist/model/package.d.cts +1 -1
- package/dist/model/package.d.ts +1 -1
- package/dist/{node-CkBWRjNR.d.cts → node-B6JX5CRX.d.cts} +1 -1
- package/dist/{node-CkBWRjNR.d.ts → node-B6JX5CRX.d.ts} +1 -1
- package/dist/{numbering-D0YfuiOO.d.ts → numbering-CUMTFxfk.d.ts} +1 -1
- package/dist/{numbering-C53LT-Jx.d.cts → numbering-vpq3iLPm.d.cts} +1 -1
- package/dist/{package-L24lkba-.d.cts → package-DMk9fuTI.d.cts} +1 -1
- package/dist/package-io/read.d.cts +1 -1
- package/dist/package-io/read.d.ts +1 -1
- package/dist/package-io/write.d.cts +1 -1
- package/dist/package-io/write.d.ts +1 -1
- package/dist/{package-BUojjTXf.d.ts → package-otZYrxiO.d.ts} +1 -1
- package/dist/{parse-A8_8sdpX.d.ts → parse-BLukZ2z0.d.ts} +1 -1
- package/dist/{parse-CP5FLZqv.d.cts → parse-DcVtB3jT.d.cts} +1 -1
- package/dist/{read-ZWJPDvG-.d.ts → read-B5kexLpc.d.ts} +1 -1
- package/dist/{read-DPR6ihXO.js → read-BZ_jycSX.js} +3 -1
- package/dist/{read-CevviAf2.d.ts → read-BlcKA9Cg.d.ts} +1 -1
- package/dist/{read-BoV9SZy4.d.cts → read-C1h_Q4kx.d.cts} +1 -1
- package/dist/{read-Cj23Gllx.cjs → read-CXksZHJW.cjs} +3 -1
- package/dist/{read-A9CC5Toq.d.cts → read-D6kQeo-T.d.cts} +1 -1
- package/dist/{read-DA55zDgD.d.ts → read-D_kXw2N2.d.ts} +1 -1
- package/dist/{read-VbRhmjOh.d.cts → read-uKN0paUP.d.cts} +1 -1
- package/dist/{sniff-DjpnUZRp.d.cts → sniff-DGOBHA0O.d.cts} +1 -1
- package/dist/{sniff-DjpnUZRp.d.ts → sniff-DGOBHA0O.d.ts} +1 -1
- package/dist/typed/{document-package.cjs → document-tree.cjs} +9 -9
- package/dist/typed/{document-package.d.ts → document-tree.d.cts} +1 -1
- package/dist/typed/{document-package.d.cts → document-tree.d.ts} +1 -1
- package/dist/typed/{document-package.js → document-tree.js} +10 -10
- package/dist/typed/docx/constructs.d.cts +3 -3
- package/dist/typed/docx/constructs.d.ts +3 -3
- package/dist/typed/docx/numbering.d.cts +1 -1
- package/dist/typed/docx/numbering.d.ts +1 -1
- package/dist/typed/docx/read.cjs +1 -1
- package/dist/typed/docx/read.d.cts +1 -1
- package/dist/typed/docx/read.d.ts +1 -1
- package/dist/typed/docx/read.js +1 -1
- package/dist/typed/docx/styles.d.cts +1 -1
- package/dist/typed/docx/styles.d.ts +1 -1
- package/dist/typed/docx/write.d.cts +1 -1
- package/dist/typed/docx/write.d.ts +1 -1
- package/dist/typed/embedded.cjs +1 -1
- package/dist/typed/embedded.d.cts +2 -2
- package/dist/typed/embedded.d.ts +2 -2
- package/dist/typed/embedded.js +1 -1
- package/dist/typed/pptx/chart.d.cts +1 -1
- package/dist/typed/pptx/chart.d.ts +1 -1
- package/dist/typed/pptx/diagram.d.cts +1 -1
- package/dist/typed/pptx/diagram.d.ts +1 -1
- package/dist/typed/pptx/inherit.d.cts +2 -2
- package/dist/typed/pptx/inherit.d.ts +2 -2
- package/dist/typed/pptx/read.cjs +1 -1
- package/dist/typed/pptx/read.d.cts +1 -1
- package/dist/typed/pptx/read.d.ts +1 -1
- package/dist/typed/pptx/read.js +1 -1
- package/dist/typed/shared/color.d.cts +1 -1
- package/dist/typed/shared/color.d.ts +1 -1
- package/dist/typed/shared/drawingml.d.cts +1 -1
- package/dist/typed/shared/drawingml.d.ts +1 -1
- package/dist/typed/shared/metadata.d.cts +1 -1
- package/dist/typed/shared/metadata.d.ts +1 -1
- package/dist/typed/util.d.cts +1 -1
- package/dist/typed/util.d.ts +1 -1
- package/dist/typed/xlsx/build.d.cts +1 -1
- package/dist/typed/xlsx/build.d.ts +1 -1
- package/dist/typed/xlsx/comments.d.cts +1 -1
- package/dist/typed/xlsx/comments.d.ts +1 -1
- package/dist/typed/xlsx/content.d.cts +1 -1
- package/dist/typed/xlsx/content.d.ts +1 -1
- package/dist/typed/xlsx/defined-names.d.cts +1 -1
- package/dist/typed/xlsx/defined-names.d.ts +1 -1
- package/dist/typed/xlsx/definitions.d.cts +1 -1
- package/dist/typed/xlsx/definitions.d.ts +1 -1
- package/dist/typed/xlsx/drawings.d.cts +2 -2
- package/dist/typed/xlsx/drawings.d.ts +2 -2
- package/dist/typed/xlsx/number-format.d.cts +14 -14
- package/dist/typed/xlsx/number-format.d.ts +14 -14
- package/dist/typed/xlsx/print-settings.d.cts +1 -1
- package/dist/typed/xlsx/print-settings.d.ts +1 -1
- package/dist/typed/xlsx/serial.d.cts +1 -1
- package/dist/typed/xlsx/serial.d.ts +1 -1
- package/dist/typed/xlsx/shared-strings.d.cts +1 -1
- package/dist/typed/xlsx/shared-strings.d.ts +1 -1
- package/dist/typed/xlsx/styles.d.cts +5 -5
- package/dist/typed/xlsx/styles.d.ts +5 -5
- package/dist/typed/xlsx.d.cts +1 -1
- package/dist/typed/xlsx.d.ts +1 -1
- package/dist/util/base64.cjs +4 -4
- package/dist/util/base64.js +4 -4
- package/dist/{util-DFe4UbvU.d.ts → util-DKrYuajM.d.ts} +2 -2
- package/dist/{util-M3JJlDhF.d.cts → util-xRsVgH-g.d.cts} +2 -2
- package/dist/{write-Dn_CL8qb.d.cts → write-BGTpp3RS.d.cts} +3 -3
- package/dist/{write-6JmxvaK5.d.cts → write-Ba1IxfDT.d.cts} +1 -1
- package/dist/{write-CT-EgVT7.d.ts → write-C4902scQ.d.ts} +1 -1
- package/dist/{write-inqdKHR3.d.ts → write-Cnfu3zdB.d.ts} +3 -3
- package/dist/{xlsx-DacFqZeF.d.ts → xlsx-B3JGnx0l.d.ts} +1 -1
- package/dist/{xlsx-CpX5nzGV.d.cts → xlsx-DCgJ8IbV.d.cts} +1 -1
- package/dist/xml/build.d.cts +1 -1
- package/dist/xml/build.d.ts +1 -1
- package/dist/xml/fragment.d.cts +1 -1
- package/dist/xml/fragment.d.ts +1 -1
- package/dist/xml/parse.d.cts +1 -1
- package/dist/xml/parse.d.ts +1 -1
- package/package.json +3 -11
- package/dist/codec-ChjAoVUL.d.cts +0 -90
- package/dist/codec-Daj8L7UQ.d.ts +0 -90
- package/dist/document-package-BqYJqSDu.d.ts +0 -11
- package/dist/document-package-Dcd0KSvQ.d.cts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "./package-
|
|
1
|
+
import { r as Package } from "./package-otZYrxiO.js";
|
|
2
2
|
//#region src/package-io/read.d.ts
|
|
3
3
|
declare function parsePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
4
4
|
declare function packageFromEntries(entries: Record<string, Uint8Array<ArrayBuffer>>): Package;
|
|
@@ -1321,7 +1321,9 @@ function readSections(body, ctx) {
|
|
|
1321
1321
|
sections.push(sliceSection(document_schema_js.PAGE_SIZE_LETTER, DEFAULT_MARGINS, void 0, from, state.blocks.length));
|
|
1322
1322
|
headerFooters.push({});
|
|
1323
1323
|
}
|
|
1324
|
-
sections.forEach((section, sectionIndex) =>
|
|
1324
|
+
sections.forEach((section, sectionIndex) => {
|
|
1325
|
+
require_typed_shared_source_path.assignSourcePaths(section.blocks, `sections[${sectionIndex}]`);
|
|
1326
|
+
});
|
|
1325
1327
|
return {
|
|
1326
1328
|
sections,
|
|
1327
1329
|
headerFooters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "./package-
|
|
1
|
+
import { r as Package } from "./package-DMk9fuTI.cjs";
|
|
2
2
|
//#region src/package-io/read.d.ts
|
|
3
3
|
declare function parsePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
4
4
|
declare function packageFromEntries(entries: Record<string, Uint8Array<ArrayBuffer>>): Package;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_read = require("../read-
|
|
2
|
+
const require_read = require("../read-CXksZHJW.cjs");
|
|
3
3
|
const require_typed_xlsx_content = require("./xlsx/content.cjs");
|
|
4
4
|
const require_typed_xlsx_build = require("./xlsx/build.cjs");
|
|
5
5
|
const require_typed_docx_write = require("./docx/write.cjs");
|
|
6
6
|
const require_typed_xlsx_definitions = require("./xlsx/definitions.cjs");
|
|
7
7
|
let document_schema_js = require("document-schema.js");
|
|
8
|
-
//#region src/typed/document-
|
|
8
|
+
//#region src/typed/document-tree.ts
|
|
9
9
|
function readDocx(pkg) {
|
|
10
10
|
const { metadata, sections } = require_read.readDocxContent(pkg);
|
|
11
|
-
return (0, document_schema_js.
|
|
11
|
+
return (0, document_schema_js.assembleTree)({
|
|
12
12
|
kind: "wordprocessing",
|
|
13
13
|
metadata,
|
|
14
14
|
sections
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
function buildDocxPackage(document, options) {
|
|
18
|
-
const content = (0, document_schema_js.
|
|
19
|
-
if (content.kind !== "wordprocessing") throw new Error(`buildDocxPackage: expected a
|
|
18
|
+
const content = (0, document_schema_js.flattenTree)(document);
|
|
19
|
+
if (content.kind !== "wordprocessing") throw new Error(`buildDocxPackage: expected a DocumentTree of kind "wordprocessing", got "${content.kind}"`);
|
|
20
20
|
return require_typed_docx_write.buildDocxPackageFromContent(content, options);
|
|
21
21
|
}
|
|
22
22
|
function readPptx(pkg) {
|
|
23
23
|
const { metadata, slides } = require_read.readPptxContent(pkg);
|
|
24
|
-
return (0, document_schema_js.
|
|
24
|
+
return (0, document_schema_js.assembleTree)({
|
|
25
25
|
kind: "presentation",
|
|
26
26
|
metadata,
|
|
27
27
|
slides
|
|
@@ -29,15 +29,15 @@ function readPptx(pkg) {
|
|
|
29
29
|
}
|
|
30
30
|
function readXlsx(pkg) {
|
|
31
31
|
const definitions = require_typed_xlsx_definitions.readWorkbookDefinitions(pkg);
|
|
32
|
-
const tree = (0, document_schema_js.
|
|
32
|
+
const tree = (0, document_schema_js.assembleTree)(require_typed_xlsx_content.readXlsxContent(pkg));
|
|
33
33
|
return definitions === void 0 ? tree : {
|
|
34
34
|
...tree,
|
|
35
35
|
definitions
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
function buildXlsxPackage(document) {
|
|
39
|
-
const content = (0, document_schema_js.
|
|
40
|
-
if (content.kind !== "spreadsheet") throw new Error(`buildXlsxPackage: expected a
|
|
39
|
+
const content = (0, document_schema_js.flattenTree)(document);
|
|
40
|
+
if (content.kind !== "spreadsheet") throw new Error(`buildXlsxPackage: expected a DocumentTree of kind "spreadsheet", got "${content.kind}"`);
|
|
41
41
|
return require_typed_xlsx_build.buildXlsxPackageFromContent(content);
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "../document-
|
|
1
|
+
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "../document-tree-CjI-Z4Tp.cjs";
|
|
2
2
|
export { buildDocxPackage, buildXlsxPackage, readDocx, readPptx, readXlsx };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "../document-
|
|
1
|
+
import { a as readXlsx, i as readPptx, n as buildXlsxPackage, r as readDocx, t as buildDocxPackage } from "../document-tree-B17XbBOR.js";
|
|
2
2
|
export { buildDocxPackage, buildXlsxPackage, readDocx, readPptx, readXlsx };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { o as readDocxContent, u as readPptxContent } from "../read-
|
|
1
|
+
import { o as readDocxContent, u as readPptxContent } from "../read-BZ_jycSX.js";
|
|
2
2
|
import { readXlsxContent } from "./xlsx/content.js";
|
|
3
3
|
import { buildXlsxPackageFromContent } from "./xlsx/build.js";
|
|
4
4
|
import { buildDocxPackageFromContent } from "./docx/write.js";
|
|
5
5
|
import { readWorkbookDefinitions } from "./xlsx/definitions.js";
|
|
6
|
-
import {
|
|
7
|
-
//#region src/typed/document-
|
|
6
|
+
import { assembleTree, flattenTree } from "document-schema.js";
|
|
7
|
+
//#region src/typed/document-tree.ts
|
|
8
8
|
function readDocx(pkg) {
|
|
9
9
|
const { metadata, sections } = readDocxContent(pkg);
|
|
10
|
-
return
|
|
10
|
+
return assembleTree({
|
|
11
11
|
kind: "wordprocessing",
|
|
12
12
|
metadata,
|
|
13
13
|
sections
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function buildDocxPackage(document, options) {
|
|
17
|
-
const content =
|
|
18
|
-
if (content.kind !== "wordprocessing") throw new Error(`buildDocxPackage: expected a
|
|
17
|
+
const content = flattenTree(document);
|
|
18
|
+
if (content.kind !== "wordprocessing") throw new Error(`buildDocxPackage: expected a DocumentTree of kind "wordprocessing", got "${content.kind}"`);
|
|
19
19
|
return buildDocxPackageFromContent(content, options);
|
|
20
20
|
}
|
|
21
21
|
function readPptx(pkg) {
|
|
22
22
|
const { metadata, slides } = readPptxContent(pkg);
|
|
23
|
-
return
|
|
23
|
+
return assembleTree({
|
|
24
24
|
kind: "presentation",
|
|
25
25
|
metadata,
|
|
26
26
|
slides
|
|
@@ -28,15 +28,15 @@ function readPptx(pkg) {
|
|
|
28
28
|
}
|
|
29
29
|
function readXlsx(pkg) {
|
|
30
30
|
const definitions = readWorkbookDefinitions(pkg);
|
|
31
|
-
const tree =
|
|
31
|
+
const tree = assembleTree(readXlsxContent(pkg));
|
|
32
32
|
return definitions === void 0 ? tree : {
|
|
33
33
|
...tree,
|
|
34
34
|
definitions
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
function buildXlsxPackage(document) {
|
|
38
|
-
const content =
|
|
39
|
-
if (content.kind !== "spreadsheet") throw new Error(`buildXlsxPackage: expected a
|
|
38
|
+
const content = flattenTree(document);
|
|
39
|
+
if (content.kind !== "spreadsheet") throw new Error(`buildXlsxPackage: expected a DocumentTree of kind "spreadsheet", got "${content.kind}"`);
|
|
40
40
|
return buildXlsxPackageFromContent(content);
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
2
|
import { AnchorDescriptor, ConstructDescriptor, ContentBlock, ContentControlDescriptor, ProvenanceChange, ProvenanceDescriptor, RunConstructExtent } from "document-schema.js";
|
|
3
3
|
//#region src/typed/docx/constructs.d.ts
|
|
4
4
|
interface ParagraphContentIndex {
|
|
@@ -15,13 +15,13 @@ interface ConstructExtent {
|
|
|
15
15
|
readonly descriptor: ConstructDescriptor;
|
|
16
16
|
}
|
|
17
17
|
declare function insertConstructMarkers(blocks: readonly ContentBlock[], extents: readonly ConstructExtent[]): ContentBlock[];
|
|
18
|
-
type RangeMarkerFamily =
|
|
18
|
+
type RangeMarkerFamily = "bookmark" | "comment";
|
|
19
19
|
interface ParagraphRangeMarkerHalf {
|
|
20
20
|
readonly element: XmlElement;
|
|
21
21
|
readonly family: RangeMarkerFamily;
|
|
22
22
|
readonly id: string;
|
|
23
23
|
readonly name: string | undefined;
|
|
24
|
-
readonly kind:
|
|
24
|
+
readonly kind: "start" | "end";
|
|
25
25
|
readonly runPosition: number;
|
|
26
26
|
}
|
|
27
27
|
declare function runRangeMarkerExtents(halves: readonly ParagraphRangeMarkerHalf[], index: ParagraphContentIndex): RunConstructExtent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.js";
|
|
2
2
|
import { AnchorDescriptor, ConstructDescriptor, ContentBlock, ContentControlDescriptor, ProvenanceChange, ProvenanceDescriptor, RunConstructExtent } from "document-schema.js";
|
|
3
3
|
//#region src/typed/docx/constructs.d.ts
|
|
4
4
|
interface ParagraphContentIndex {
|
|
@@ -15,13 +15,13 @@ interface ConstructExtent {
|
|
|
15
15
|
readonly descriptor: ConstructDescriptor;
|
|
16
16
|
}
|
|
17
17
|
declare function insertConstructMarkers(blocks: readonly ContentBlock[], extents: readonly ConstructExtent[]): ContentBlock[];
|
|
18
|
-
type RangeMarkerFamily =
|
|
18
|
+
type RangeMarkerFamily = "bookmark" | "comment";
|
|
19
19
|
interface ParagraphRangeMarkerHalf {
|
|
20
20
|
readonly element: XmlElement;
|
|
21
21
|
readonly family: RangeMarkerFamily;
|
|
22
22
|
readonly id: string;
|
|
23
23
|
readonly name: string | undefined;
|
|
24
|
-
readonly kind:
|
|
24
|
+
readonly kind: "start" | "end";
|
|
25
25
|
readonly runPosition: number;
|
|
26
26
|
}
|
|
27
27
|
declare function runRangeMarkerExtents(halves: readonly ParagraphRangeMarkerHalf[], index: ParagraphContentIndex): RunConstructExtent[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "../../numbering-
|
|
1
|
+
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "../../numbering-vpq3iLPm.cjs";
|
|
2
2
|
export { NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, readNumberingDefinitions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "../../numbering-
|
|
1
|
+
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "../../numbering-CUMTFxfk.js";
|
|
2
2
|
export { NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, readNumberingDefinitions };
|
package/dist/typed/docx/read.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_read = require("../../read-
|
|
2
|
+
const require_read = require("../../read-CXksZHJW.cjs");
|
|
3
3
|
exports.CommentSchema = require_read.CommentSchema;
|
|
4
4
|
exports.DocxDocumentSchema = require_read.DocxDocumentSchema;
|
|
5
5
|
exports.FootnoteSchema = require_read.FootnoteSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "../../read-
|
|
1
|
+
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "../../read-D6kQeo-T.cjs";
|
|
2
2
|
export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema, HeaderFooterPart, HeaderFooterPartSchema, SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, readDocxContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "../../read-
|
|
1
|
+
import { a as Footnote, c as HeaderFooterPartSchema, d as readDocxContent, i as DocxDocumentSchema, l as SectionHeaderFooterReferences, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as HeaderFooterPart, t as Comment, u as SectionHeaderFooterReferencesSchema } from "../../read-D_kXw2N2.js";
|
|
2
2
|
export { Comment, CommentSchema, DocxDocument, DocxDocumentSchema, Footnote, FootnoteSchema, HeaderFooterPart, HeaderFooterPartSchema, SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, readDocxContent };
|
package/dist/typed/docx/read.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SectionHeaderFooterReferencesSchema, i as HeaderFooterPartSchema, n as DocxDocumentSchema, o as readDocxContent, r as FootnoteSchema, t as CommentSchema } from "../../read-
|
|
1
|
+
import { a as SectionHeaderFooterReferencesSchema, i as HeaderFooterPartSchema, n as DocxDocumentSchema, o as readDocxContent, r as FootnoteSchema, t as CommentSchema } from "../../read-BZ_jycSX.js";
|
|
2
2
|
export { CommentSchema, DocxDocumentSchema, FootnoteSchema, HeaderFooterPartSchema, SectionHeaderFooterReferencesSchema, readDocxContent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
2
|
import { DrawingTheme } from "../shared/drawingml.cjs";
|
|
3
3
|
import { Alignment, Color } from "document-schema.js";
|
|
4
4
|
//#region src/typed/docx/styles.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "../../write-
|
|
1
|
+
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "../../write-BGTpp3RS.cjs";
|
|
2
2
|
export { BuildDocxContentOptions, DocxContent, EmbeddedPresentationSerialiser, buildDocxPackageFromContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "../../write-
|
|
1
|
+
import { i as buildDocxPackageFromContent, n as DocxContent, r as EmbeddedPresentationSerialiser, t as BuildDocxContentOptions } from "../../write-Cnfu3zdB.js";
|
|
2
2
|
export { BuildDocxContentOptions, DocxContent, EmbeddedPresentationSerialiser, buildDocxPackageFromContent };
|
package/dist/typed/embedded.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_read = require("../read-
|
|
2
|
+
const require_read = require("../read-CXksZHJW.cjs");
|
|
3
3
|
exports.readEmbeddedOoxmlPayload = require_read.readEmbeddedOoxmlPayload;
|
|
4
4
|
exports.readEmbeddedPayloadPart = require_read.readEmbeddedPayloadPart;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BinaryPart } from "../package-
|
|
1
|
+
import { t as BinaryPart } from "../package-DMk9fuTI.cjs";
|
|
2
2
|
import { ContentDocument, ContentEmbeddedObjectKind } from "document-schema.js";
|
|
3
3
|
//#region src/typed/embedded.d.ts
|
|
4
|
-
type EmbeddedOoxmlKind = Extract<ContentEmbeddedObjectKind,
|
|
4
|
+
type EmbeddedOoxmlKind = Extract<ContentEmbeddedObjectKind, "wordprocessing" | "presentation" | "spreadsheet">;
|
|
5
5
|
interface EmbeddedOoxmlPayload {
|
|
6
6
|
readonly objectKind: EmbeddedOoxmlKind;
|
|
7
7
|
readonly document: ContentDocument;
|
package/dist/typed/embedded.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BinaryPart } from "../package-
|
|
1
|
+
import { t as BinaryPart } from "../package-otZYrxiO.js";
|
|
2
2
|
import { ContentDocument, ContentEmbeddedObjectKind } from "document-schema.js";
|
|
3
3
|
//#region src/typed/embedded.d.ts
|
|
4
|
-
type EmbeddedOoxmlKind = Extract<ContentEmbeddedObjectKind,
|
|
4
|
+
type EmbeddedOoxmlKind = Extract<ContentEmbeddedObjectKind, "wordprocessing" | "presentation" | "spreadsheet">;
|
|
5
5
|
interface EmbeddedOoxmlPayload {
|
|
6
6
|
readonly objectKind: EmbeddedOoxmlKind;
|
|
7
7
|
readonly document: ContentDocument;
|
package/dist/typed/embedded.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as readEmbeddedPayloadPart, s as readEmbeddedOoxmlPayload } from "../read-
|
|
1
|
+
import { c as readEmbeddedPayloadPart, s as readEmbeddedOoxmlPayload } from "../read-BZ_jycSX.js";
|
|
2
2
|
export { readEmbeddedOoxmlPayload, readEmbeddedPayloadPart };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
2
|
import { Box, ContentTable } from "document-schema.js";
|
|
3
3
|
//#region src/typed/pptx/chart.d.ts
|
|
4
4
|
declare function readChartTable(chartRoot: XmlElement, frame: Box): ContentTable | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.js";
|
|
2
2
|
import { Box, ContentTable } from "document-schema.js";
|
|
3
3
|
//#region src/typed/pptx/chart.d.ts
|
|
4
4
|
declare function readChartTable(chartRoot: XmlElement, frame: Box): ContentTable | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
2
|
import { ContentParagraph } from "document-schema.js";
|
|
3
3
|
//#region src/typed/pptx/diagram.d.ts
|
|
4
4
|
declare function readDiagramText(dataModelRoot: XmlElement): ContentParagraph[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.js";
|
|
2
2
|
import { ContentParagraph } from "document-schema.js";
|
|
3
3
|
//#region src/typed/pptx/diagram.d.ts
|
|
4
4
|
declare function readDiagramText(dataModelRoot: XmlElement): ContentParagraph[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
2
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
|
+
import { r as Package } from "../../package-DMk9fuTI.cjs";
|
|
3
3
|
import { DrawingTheme, DrawingXfrm } from "../shared/drawingml.cjs";
|
|
4
4
|
import { Color } from "document-schema.js";
|
|
5
5
|
//#region src/typed/pptx/inherit.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
2
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.js";
|
|
2
|
+
import { r as Package } from "../../package-otZYrxiO.js";
|
|
3
3
|
import { DrawingTheme, DrawingXfrm } from "../shared/drawingml.js";
|
|
4
4
|
import { Color } from "document-schema.js";
|
|
5
5
|
//#region src/typed/pptx/inherit.d.ts
|
package/dist/typed/pptx/read.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_read = require("../../read-
|
|
2
|
+
const require_read = require("../../read-CXksZHJW.cjs");
|
|
3
3
|
exports.PptxDocumentSchema = require_read.PptxDocumentSchema;
|
|
4
4
|
exports.readPptxContent = require_read.readPptxContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "../../read-
|
|
1
|
+
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "../../read-C1h_Q4kx.cjs";
|
|
2
2
|
export { PptxDocument, PptxDocumentSchema, readPptxContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "../../read-
|
|
1
|
+
import { n as PptxDocumentSchema, r as readPptxContent, t as PptxDocument } from "../../read-B5kexLpc.js";
|
|
2
2
|
export { PptxDocument, PptxDocumentSchema, readPptxContent };
|
package/dist/typed/pptx/read.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { l as PptxDocumentSchema, u as readPptxContent } from "../../read-
|
|
1
|
+
import { l as PptxDocumentSchema, u as readPptxContent } from "../../read-BZ_jycSX.js";
|
|
2
2
|
export { PptxDocumentSchema, readPptxContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as applyColorTransforms, t as ColorTransform } from "../../color-
|
|
1
|
+
import { n as applyColorTransforms, t as ColorTransform } from "../../color-DLoZOrg3.cjs";
|
|
2
2
|
export { ColorTransform, applyColorTransforms };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as applyColorTransforms, t as ColorTransform } from "../../color-
|
|
1
|
+
import { n as applyColorTransforms, t as ColorTransform } from "../../color-DLoZOrg3.js";
|
|
2
2
|
export { ColorTransform, applyColorTransforms };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DocumentMetadataSchema, r as readCoreProperties, t as DocumentMetadata } from "../../metadata-
|
|
1
|
+
import { n as DocumentMetadataSchema, r as readCoreProperties, t as DocumentMetadata } from "../../metadata-C74-XCrx.cjs";
|
|
2
2
|
export { DocumentMetadata, DocumentMetadataSchema, readCoreProperties };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DocumentMetadataSchema, r as readCoreProperties, t as DocumentMetadata } from "../../metadata-
|
|
1
|
+
import { n as DocumentMetadataSchema, r as readCoreProperties, t as DocumentMetadata } from "../../metadata-Bjfa88HQ.js";
|
|
2
2
|
export { DocumentMetadata, DocumentMetadataSchema, readCoreProperties };
|
package/dist/typed/util.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "../util-
|
|
1
|
+
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "../util-xRsVgH-g.cjs";
|
|
2
2
|
export { Relationship, attr, childrenWithTag, decodeEntities, elementsWithTag, resolveRelationships, rootElement, textContent, walk };
|
package/dist/typed/util.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "../util-
|
|
1
|
+
import { a as elementsWithTag, c as textContent, i as decodeEntities, l as walk, n as attr, o as resolveRelationships, r as childrenWithTag, s as rootElement, t as Relationship } from "../util-DKrYuajM.js";
|
|
2
2
|
export { Relationship, attr, childrenWithTag, decodeEntities, elementsWithTag, resolveRelationships, rootElement, textContent, walk };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildXlsxPackageFromContent } from "../../build-
|
|
1
|
+
import { t as buildXlsxPackageFromContent } from "../../build-BY9Mn-4K.cjs";
|
|
2
2
|
export { buildXlsxPackageFromContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildXlsxPackageFromContent } from "../../build-
|
|
1
|
+
import { t as buildXlsxPackageFromContent } from "../../build-BOI7rIog.js";
|
|
2
2
|
export { buildXlsxPackageFromContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveSheetEntries, t as readXlsxContent } from "../../content-
|
|
1
|
+
import { n as resolveSheetEntries, t as readXlsxContent } from "../../content-BiYr86lr.cjs";
|
|
2
2
|
export { readXlsxContent, resolveSheetEntries };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveSheetEntries, t as readXlsxContent } from "../../content-
|
|
1
|
+
import { n as resolveSheetEntries, t as readXlsxContent } from "../../content-D1pmxaUb.js";
|
|
2
2
|
export { readXlsxContent, resolveSheetEntries };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-DMk9fuTI.cjs";
|
|
2
2
|
import { ContentSheetPrintRange, ContentSheetRepeatRange } from "document-schema.js";
|
|
3
3
|
//#region src/typed/xlsx/defined-names.d.ts
|
|
4
4
|
interface SheetDefinedNames {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-otZYrxiO.js";
|
|
2
2
|
import { ContentSheetPrintRange, ContentSheetRepeatRange } from "document-schema.js";
|
|
3
3
|
//#region src/typed/xlsx/defined-names.d.ts
|
|
4
4
|
interface SheetDefinedNames {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-DMk9fuTI.cjs";
|
|
2
2
|
import { DefinitionsTable } from "document-schema.js";
|
|
3
3
|
//#region src/typed/xlsx/definitions.d.ts
|
|
4
4
|
declare function readWorkbookDefinitions(pkg: Package): DefinitionsTable | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { r as Package } from "../../package-otZYrxiO.js";
|
|
2
2
|
import { DefinitionsTable } from "document-schema.js";
|
|
3
3
|
//#region src/typed/xlsx/definitions.d.ts
|
|
4
4
|
declare function readWorkbookDefinitions(pkg: Package): DefinitionsTable | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
2
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.cjs";
|
|
2
|
+
import { r as Package } from "../../package-DMk9fuTI.cjs";
|
|
3
3
|
import { ContentEmbeddedObject, ContentSheetImage } from "document-schema.js";
|
|
4
4
|
//#region src/typed/xlsx/drawings.d.ts
|
|
5
5
|
interface SheetDrawing {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as XmlElement } from "../../node-
|
|
2
|
-
import { r as Package } from "../../package-
|
|
1
|
+
import { l as XmlElement } from "../../node-B6JX5CRX.js";
|
|
2
|
+
import { r as Package } from "../../package-otZYrxiO.js";
|
|
3
3
|
import { ContentEmbeddedObject, ContentSheetImage } from "document-schema.js";
|
|
4
4
|
//#region src/typed/xlsx/drawings.d.ts
|
|
5
5
|
interface SheetDrawing {
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
//#region src/typed/xlsx/number-format.d.ts
|
|
2
2
|
type NumberFormatToken = {
|
|
3
|
-
kind:
|
|
3
|
+
kind: "literal";
|
|
4
4
|
text: string;
|
|
5
5
|
} | {
|
|
6
|
-
kind:
|
|
6
|
+
kind: "bracket";
|
|
7
7
|
body: string;
|
|
8
8
|
} | {
|
|
9
|
-
kind:
|
|
9
|
+
kind: "separator";
|
|
10
10
|
} | {
|
|
11
|
-
kind:
|
|
11
|
+
kind: "code";
|
|
12
12
|
char: string;
|
|
13
13
|
};
|
|
14
14
|
declare const MAX_NUMBER_FORMAT_SECTIONS = 4;
|
|
15
15
|
declare function tokenizeNumberFormat(formatCode: string): NumberFormatToken[];
|
|
16
16
|
declare function splitNumberFormatSections(tokens: readonly NumberFormatToken[]): NumberFormatToken[][];
|
|
17
17
|
type NumberFormatClass = {
|
|
18
|
-
kind:
|
|
18
|
+
kind: "number";
|
|
19
19
|
} | {
|
|
20
|
-
kind:
|
|
20
|
+
kind: "text";
|
|
21
21
|
} | {
|
|
22
|
-
kind:
|
|
22
|
+
kind: "percentage";
|
|
23
23
|
} | {
|
|
24
|
-
kind:
|
|
24
|
+
kind: "currency";
|
|
25
25
|
code?: string;
|
|
26
26
|
} | {
|
|
27
|
-
kind:
|
|
27
|
+
kind: "date";
|
|
28
28
|
} | {
|
|
29
|
-
kind:
|
|
29
|
+
kind: "time";
|
|
30
30
|
} | {
|
|
31
|
-
kind:
|
|
31
|
+
kind: "dateTime";
|
|
32
32
|
} | {
|
|
33
|
-
kind:
|
|
33
|
+
kind: "elapsedTime";
|
|
34
34
|
};
|
|
35
35
|
declare function classifyNumberFormat(formatCode: string): NumberFormatClass;
|
|
36
36
|
declare const BUILTIN_NUMBER_FORMATS: ReadonlyMap<number, string>;
|
|
37
37
|
type CellNumberFormat = {
|
|
38
|
-
kind:
|
|
38
|
+
kind: "builtin";
|
|
39
39
|
id: number;
|
|
40
40
|
} | {
|
|
41
|
-
kind:
|
|
41
|
+
kind: "custom";
|
|
42
42
|
code: string;
|
|
43
43
|
};
|
|
44
44
|
declare const PERCENTAGE_NUMBER_FORMAT: CellNumberFormat;
|