documents.js 1.68.0 → 1.70.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 +3 -3
- package/dist/edit/docx/content.cjs +6 -1
- package/dist/edit/docx/content.d.cts +2 -0
- package/dist/edit/docx/content.d.ts +2 -0
- package/dist/edit/docx/content.js +7 -2
- package/dist/edit/docx/editor.cjs +6 -2
- package/dist/edit/docx/editor.d.cts +6 -2
- package/dist/edit/docx/editor.d.ts +6 -2
- package/dist/edit/docx/editor.js +6 -2
- package/dist/edit/docx/scaffold.cjs +5 -2
- package/dist/edit/docx/scaffold.d.cts +6 -2
- package/dist/edit/docx/scaffold.d.ts +6 -2
- package/dist/edit/docx/scaffold.js +5 -2
- package/dist/edit/odg/content.cjs +7 -2
- package/dist/edit/odg/content.d.cts +6 -2
- package/dist/edit/odg/content.d.ts +6 -2
- package/dist/edit/odg/content.js +8 -3
- package/dist/edit/odg/editor.cjs +6 -2
- package/dist/edit/odg/editor.d.cts +6 -2
- package/dist/edit/odg/editor.d.ts +6 -2
- package/dist/edit/odg/editor.js +6 -2
- package/dist/edit/odg/scaffold.cjs +17 -4
- package/dist/edit/odg/scaffold.d.cts +6 -2
- package/dist/edit/odg/scaffold.d.ts +6 -2
- package/dist/edit/odg/scaffold.js +18 -5
- package/dist/edit/odp/content.cjs +7 -2
- package/dist/edit/odp/content.d.cts +6 -2
- package/dist/edit/odp/content.d.ts +6 -2
- package/dist/edit/odp/content.js +8 -3
- package/dist/edit/odp/editor.cjs +6 -2
- package/dist/edit/odp/editor.d.cts +6 -2
- package/dist/edit/odp/editor.d.ts +6 -2
- package/dist/edit/odp/editor.js +6 -2
- package/dist/edit/odp/scaffold.cjs +17 -4
- package/dist/edit/odp/scaffold.d.cts +6 -2
- package/dist/edit/odp/scaffold.d.ts +6 -2
- package/dist/edit/odp/scaffold.js +18 -5
- package/dist/edit/ods/content.cjs +7 -2
- package/dist/edit/ods/content.d.cts +6 -2
- package/dist/edit/ods/content.d.ts +6 -2
- package/dist/edit/ods/content.js +8 -3
- package/dist/edit/ods/editor.cjs +6 -2
- package/dist/edit/ods/editor.d.cts +6 -2
- package/dist/edit/ods/editor.d.ts +6 -2
- package/dist/edit/ods/editor.js +6 -2
- package/dist/edit/ods/scaffold.cjs +17 -4
- package/dist/edit/ods/scaffold.d.cts +6 -2
- package/dist/edit/ods/scaffold.d.ts +6 -2
- package/dist/edit/ods/scaffold.js +18 -5
- package/dist/edit/odt/content.cjs +7 -2
- package/dist/edit/odt/content.d.cts +6 -2
- package/dist/edit/odt/content.d.ts +6 -2
- package/dist/edit/odt/content.js +8 -3
- package/dist/edit/odt/editor.cjs +6 -2
- package/dist/edit/odt/editor.d.cts +6 -2
- package/dist/edit/odt/editor.d.ts +6 -2
- package/dist/edit/odt/editor.js +6 -2
- package/dist/edit/odt/scaffold.cjs +17 -4
- package/dist/edit/odt/scaffold.d.cts +6 -2
- package/dist/edit/odt/scaffold.d.ts +6 -2
- package/dist/edit/odt/scaffold.js +18 -5
- package/dist/edit/pptx/content.cjs +7 -2
- package/dist/edit/pptx/content.d.cts +6 -2
- package/dist/edit/pptx/content.d.ts +6 -2
- package/dist/edit/pptx/content.js +8 -3
- package/dist/edit/pptx/editor.cjs +6 -2
- package/dist/edit/pptx/editor.d.cts +6 -2
- package/dist/edit/pptx/editor.d.ts +6 -2
- package/dist/edit/pptx/editor.js +6 -2
- package/dist/edit/pptx/scaffold.cjs +3 -1
- package/dist/edit/pptx/scaffold.d.cts +6 -2
- package/dist/edit/pptx/scaffold.d.ts +6 -2
- package/dist/edit/pptx/scaffold.js +3 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +20 -13
- package/dist/index.d.ts +20 -13
- package/dist/index.js +3 -2
- package/dist/mathml/layout.cjs +42 -3
- package/dist/mathml/layout.js +42 -3
- package/dist/mathml/operators.cjs +12 -0
- package/dist/mathml/operators.js +12 -0
- package/dist/model/metadata.cjs +13 -0
- package/dist/model/metadata.d.cts +6 -0
- package/dist/model/metadata.d.ts +6 -0
- package/dist/model/metadata.js +12 -0
- package/dist/opc/core-properties.cjs +65 -0
- package/dist/opc/core-properties.d.cts +6 -0
- package/dist/opc/core-properties.d.ts +6 -0
- package/dist/opc/core-properties.js +64 -0
- package/dist/opc/rels.cjs +11 -4
- package/dist/opc/rels.d.cts +2 -1
- package/dist/opc/rels.d.ts +2 -1
- package/dist/opc/rels.js +11 -5
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_xml_fragment = require("../../xml/fragment.cjs");
|
|
3
|
+
const require_xml_entities = require("../../xml/entities.cjs");
|
|
3
4
|
let odf_js = require("odf.js");
|
|
4
5
|
let document_schema_js = require("document-schema.js");
|
|
5
6
|
//#region src/edit/odt/scaffold.ts
|
|
@@ -80,13 +81,25 @@ function buildContentXml() {
|
|
|
80
81
|
"office:version": ODF_VERSION
|
|
81
82
|
}, [require_xml_fragment.el("office:automatic-styles"), require_xml_fragment.el("office:body", {}, [require_xml_fragment.el("office:text")])]);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function buildOfficeMeta(metadata) {
|
|
85
|
+
if (metadata === void 0) return [];
|
|
86
|
+
const children = [];
|
|
87
|
+
if (metadata.title !== void 0) children.push(require_xml_fragment.el("dc:title", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.title))]));
|
|
88
|
+
if (metadata.author !== void 0) children.push(require_xml_fragment.el("meta:initial-creator", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.author))]));
|
|
89
|
+
if (metadata.subject !== void 0) children.push(require_xml_fragment.el("dc:subject", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.subject))]));
|
|
90
|
+
for (const keyword of metadata.keywords ?? []) children.push(require_xml_fragment.el("meta:keyword", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(keyword))]));
|
|
91
|
+
if (metadata.creator !== void 0) children.push(require_xml_fragment.el("meta:generator", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.creator))]));
|
|
92
|
+
if (metadata.createdIso !== void 0) children.push(require_xml_fragment.el("meta:creation-date", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.createdIso))]));
|
|
93
|
+
if (metadata.modifiedIso !== void 0) children.push(require_xml_fragment.el("dc:date", {}, [require_xml_fragment.txt(require_xml_entities.encodeXmlText(metadata.modifiedIso))]));
|
|
94
|
+
return children;
|
|
95
|
+
}
|
|
96
|
+
function buildMetaXml(metadata) {
|
|
84
97
|
return require_xml_fragment.el("office:document-meta", {
|
|
85
98
|
...(0, odf_js.xmlnsAttributes)([...META_NS_PREFIXES]),
|
|
86
99
|
"office:version": ODF_VERSION
|
|
87
|
-
}, [require_xml_fragment.el("office:meta")]);
|
|
100
|
+
}, [require_xml_fragment.el("office:meta", {}, buildOfficeMeta(metadata))]);
|
|
88
101
|
}
|
|
89
|
-
function createEmptyOdtPackage() {
|
|
102
|
+
function createEmptyOdtPackage(options) {
|
|
90
103
|
const pkg = { parts: {
|
|
91
104
|
"content.xml": {
|
|
92
105
|
kind: "xml",
|
|
@@ -98,7 +111,7 @@ function createEmptyOdtPackage() {
|
|
|
98
111
|
},
|
|
99
112
|
"meta.xml": {
|
|
100
113
|
kind: "xml",
|
|
101
|
-
nodes: [declaration(), buildMetaXml()]
|
|
114
|
+
nodes: [declaration(), buildMetaXml(options?.metadata)]
|
|
102
115
|
}
|
|
103
116
|
} };
|
|
104
117
|
(0, odf_js.setDocumentMediaType)(pkg, odf_js.ODF_MEDIA_TYPES.odt);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { LayoutMetadata } from "document-schema.js";
|
|
1
2
|
import { Package } from "odf.js";
|
|
2
3
|
//#region src/edit/odt/scaffold.d.ts
|
|
3
|
-
|
|
4
|
+
interface CreateEmptyOdtPackageOptions {
|
|
5
|
+
readonly metadata?: LayoutMetadata;
|
|
6
|
+
}
|
|
7
|
+
declare function createEmptyOdtPackage(options?: CreateEmptyOdtPackageOptions): Package;
|
|
4
8
|
//#endregion
|
|
5
|
-
export { createEmptyOdtPackage };
|
|
9
|
+
export { CreateEmptyOdtPackageOptions, createEmptyOdtPackage };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { LayoutMetadata } from "document-schema.js";
|
|
1
2
|
import { Package } from "odf.js";
|
|
2
3
|
//#region src/edit/odt/scaffold.d.ts
|
|
3
|
-
|
|
4
|
+
interface CreateEmptyOdtPackageOptions {
|
|
5
|
+
readonly metadata?: LayoutMetadata;
|
|
6
|
+
}
|
|
7
|
+
declare function createEmptyOdtPackage(options?: CreateEmptyOdtPackageOptions): Package;
|
|
4
8
|
//#endregion
|
|
5
|
-
export { createEmptyOdtPackage };
|
|
9
|
+
export { CreateEmptyOdtPackageOptions, createEmptyOdtPackage };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PAGE_SIZE_LETTER } from "../../model/geometry.js";
|
|
2
|
-
import { el } from "../../xml/fragment.js";
|
|
2
|
+
import { el, txt } from "../../xml/fragment.js";
|
|
3
|
+
import { encodeXmlText } from "../../xml/entities.js";
|
|
3
4
|
import { ODF_MEDIA_TYPES, setDocumentMediaType, syncManifest, xmlnsAttributes } from "odf.js";
|
|
4
5
|
//#region src/edit/odt/scaffold.ts
|
|
5
6
|
const CONTENT_NS_PREFIXES = [
|
|
@@ -79,13 +80,25 @@ function buildContentXml() {
|
|
|
79
80
|
"office:version": ODF_VERSION
|
|
80
81
|
}, [el("office:automatic-styles"), el("office:body", {}, [el("office:text")])]);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function buildOfficeMeta(metadata) {
|
|
84
|
+
if (metadata === void 0) return [];
|
|
85
|
+
const children = [];
|
|
86
|
+
if (metadata.title !== void 0) children.push(el("dc:title", {}, [txt(encodeXmlText(metadata.title))]));
|
|
87
|
+
if (metadata.author !== void 0) children.push(el("meta:initial-creator", {}, [txt(encodeXmlText(metadata.author))]));
|
|
88
|
+
if (metadata.subject !== void 0) children.push(el("dc:subject", {}, [txt(encodeXmlText(metadata.subject))]));
|
|
89
|
+
for (const keyword of metadata.keywords ?? []) children.push(el("meta:keyword", {}, [txt(encodeXmlText(keyword))]));
|
|
90
|
+
if (metadata.creator !== void 0) children.push(el("meta:generator", {}, [txt(encodeXmlText(metadata.creator))]));
|
|
91
|
+
if (metadata.createdIso !== void 0) children.push(el("meta:creation-date", {}, [txt(encodeXmlText(metadata.createdIso))]));
|
|
92
|
+
if (metadata.modifiedIso !== void 0) children.push(el("dc:date", {}, [txt(encodeXmlText(metadata.modifiedIso))]));
|
|
93
|
+
return children;
|
|
94
|
+
}
|
|
95
|
+
function buildMetaXml(metadata) {
|
|
83
96
|
return el("office:document-meta", {
|
|
84
97
|
...xmlnsAttributes([...META_NS_PREFIXES]),
|
|
85
98
|
"office:version": ODF_VERSION
|
|
86
|
-
}, [el("office:meta")]);
|
|
99
|
+
}, [el("office:meta", {}, buildOfficeMeta(metadata))]);
|
|
87
100
|
}
|
|
88
|
-
function createEmptyOdtPackage() {
|
|
101
|
+
function createEmptyOdtPackage(options) {
|
|
89
102
|
const pkg = { parts: {
|
|
90
103
|
"content.xml": {
|
|
91
104
|
kind: "xml",
|
|
@@ -97,7 +110,7 @@ function createEmptyOdtPackage() {
|
|
|
97
110
|
},
|
|
98
111
|
"meta.xml": {
|
|
99
112
|
kind: "xml",
|
|
100
|
-
nodes: [declaration(), buildMetaXml()]
|
|
113
|
+
nodes: [declaration(), buildMetaXml(options?.metadata)]
|
|
101
114
|
}
|
|
102
115
|
} };
|
|
103
116
|
setDocumentMediaType(pkg, ODF_MEDIA_TYPES.odt);
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
|
+
const require_ports_clock = require("../../ports/clock.cjs");
|
|
2
4
|
const require_model_embedded_drawing = require("../../model/embedded-drawing.cjs");
|
|
5
|
+
const require_edit_pptx_scaffold = require("./scaffold.cjs");
|
|
3
6
|
const require_edit_pptx_editor = require("./editor.cjs");
|
|
4
7
|
let ooxml_js = require("ooxml.js");
|
|
5
8
|
//#region src/edit/pptx/content.ts
|
|
6
|
-
function buildPptxPackage(content) {
|
|
9
|
+
function buildPptxPackage(content, options) {
|
|
7
10
|
if (content.kind !== "presentation") throw new Error("buildPptxPackage requires a presentation ContentDocument");
|
|
8
|
-
const
|
|
11
|
+
const clock = options?.clock ?? require_ports_clock.systemClock;
|
|
12
|
+
const metadata = require_model_metadata.resolveMetadataTimestamps(content.metadata, clock);
|
|
13
|
+
const editor = new require_edit_pptx_editor.PptxEditor(require_edit_pptx_scaffold.createEmptyPptxPackage({ metadata }));
|
|
9
14
|
const firstSlide = content.slides[0];
|
|
10
15
|
if (firstSlide !== void 0) editor.slideSize = firstSlide.size;
|
|
11
16
|
for (const slide of content.slides) {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { ClockPort } from "../../ports/clock.cjs";
|
|
1
2
|
import { ContentDocument } from "document-schema.js";
|
|
2
3
|
import { Package } from "ooxml.js";
|
|
3
4
|
//#region src/edit/pptx/content.d.ts
|
|
4
|
-
|
|
5
|
+
interface BuildPptxPackageOptions {
|
|
6
|
+
readonly clock?: ClockPort;
|
|
7
|
+
}
|
|
8
|
+
declare function buildPptxPackage(content: ContentDocument, options?: BuildPptxPackageOptions): Package;
|
|
5
9
|
//#endregion
|
|
6
|
-
export { buildPptxPackage };
|
|
10
|
+
export { BuildPptxPackageOptions, buildPptxPackage };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { ClockPort } from "../../ports/clock.js";
|
|
1
2
|
import { Package } from "ooxml.js";
|
|
2
3
|
import { ContentDocument } from "document-schema.js";
|
|
3
4
|
//#region src/edit/pptx/content.d.ts
|
|
4
|
-
|
|
5
|
+
interface BuildPptxPackageOptions {
|
|
6
|
+
readonly clock?: ClockPort;
|
|
7
|
+
}
|
|
8
|
+
declare function buildPptxPackage(content: ContentDocument, options?: BuildPptxPackageOptions): Package;
|
|
5
9
|
//#endregion
|
|
6
|
-
export { buildPptxPackage };
|
|
10
|
+
export { BuildPptxPackageOptions, buildPptxPackage };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
|
+
import { systemClock } from "../../ports/clock.js";
|
|
1
3
|
import { drawingOfBlock, embeddedDrawingVectors } from "../../model/embedded-drawing.js";
|
|
2
|
-
import {
|
|
4
|
+
import { createEmptyPptxPackage } from "./scaffold.js";
|
|
5
|
+
import { PptxEditor } from "./editor.js";
|
|
3
6
|
import { base64ToBytes } from "ooxml.js";
|
|
4
7
|
//#region src/edit/pptx/content.ts
|
|
5
|
-
function buildPptxPackage(content) {
|
|
8
|
+
function buildPptxPackage(content, options) {
|
|
6
9
|
if (content.kind !== "presentation") throw new Error("buildPptxPackage requires a presentation ContentDocument");
|
|
7
|
-
const
|
|
10
|
+
const clock = options?.clock ?? systemClock;
|
|
11
|
+
const metadata = resolveMetadataTimestamps(content.metadata, clock);
|
|
12
|
+
const editor = new PptxEditor(createEmptyPptxPackage({ metadata }));
|
|
8
13
|
const firstSlide = content.slides[0];
|
|
9
14
|
if (firstSlide !== void 0) editor.slideSize = firstSlide.size;
|
|
10
15
|
for (const slide of content.slides) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
|
+
const require_ports_clock = require("../../ports/clock.cjs");
|
|
2
4
|
const require_xml_fragment = require("../../xml/fragment.cjs");
|
|
3
5
|
const require_model_units = require("../../model/units.cjs");
|
|
4
6
|
const require_opc_paths = require("../../opc/paths.cjs");
|
|
@@ -178,8 +180,10 @@ var PptxEditor = class {
|
|
|
178
180
|
function openPptx(bytes) {
|
|
179
181
|
return new PptxEditor((0, ooxml_js.decodePackage)(bytes));
|
|
180
182
|
}
|
|
181
|
-
function createPptx() {
|
|
182
|
-
|
|
183
|
+
function createPptx(options) {
|
|
184
|
+
const clock = options?.clock ?? require_ports_clock.systemClock;
|
|
185
|
+
const metadata = require_model_metadata.resolveMetadataTimestamps({}, clock);
|
|
186
|
+
return new PptxEditor(require_edit_pptx_scaffold.createEmptyPptxPackage({ metadata }));
|
|
183
187
|
}
|
|
184
188
|
//#endregion
|
|
185
189
|
exports.PptxEditor = PptxEditor;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClockPort } from "../../ports/clock.cjs";
|
|
1
2
|
import { s as PageSize } from "../../geometry-DaJr8yQW.cjs";
|
|
2
3
|
import { PptxSlide } from "./slide.cjs";
|
|
3
4
|
import { Package } from "ooxml.js";
|
|
@@ -15,6 +16,9 @@ declare class PptxEditor {
|
|
|
15
16
|
toBytes(): Uint8Array<ArrayBuffer>;
|
|
16
17
|
}
|
|
17
18
|
declare function openPptx(bytes: Uint8Array<ArrayBuffer>): PptxEditor;
|
|
18
|
-
|
|
19
|
+
interface CreatePptxOptions {
|
|
20
|
+
readonly clock?: ClockPort;
|
|
21
|
+
}
|
|
22
|
+
declare function createPptx(options?: CreatePptxOptions): PptxEditor;
|
|
19
23
|
//#endregion
|
|
20
|
-
export { PptxEditor, createPptx, openPptx };
|
|
24
|
+
export { CreatePptxOptions, PptxEditor, createPptx, openPptx };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClockPort } from "../../ports/clock.js";
|
|
1
2
|
import { s as PageSize } from "../../geometry-DaJr8yQW.js";
|
|
2
3
|
import { PptxSlide } from "./slide.js";
|
|
3
4
|
import { Package } from "ooxml.js";
|
|
@@ -15,6 +16,9 @@ declare class PptxEditor {
|
|
|
15
16
|
toBytes(): Uint8Array<ArrayBuffer>;
|
|
16
17
|
}
|
|
17
18
|
declare function openPptx(bytes: Uint8Array<ArrayBuffer>): PptxEditor;
|
|
18
|
-
|
|
19
|
+
interface CreatePptxOptions {
|
|
20
|
+
readonly clock?: ClockPort;
|
|
21
|
+
}
|
|
22
|
+
declare function createPptx(options?: CreatePptxOptions): PptxEditor;
|
|
19
23
|
//#endregion
|
|
20
|
-
export { PptxEditor, createPptx, openPptx };
|
|
24
|
+
export { CreatePptxOptions, PptxEditor, createPptx, openPptx };
|
package/dist/edit/pptx/editor.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
|
+
import { systemClock } from "../../ports/clock.js";
|
|
1
3
|
import { el } from "../../xml/fragment.js";
|
|
2
4
|
import { emuToPt, ptToEmu } from "../../model/units.js";
|
|
3
5
|
import { buildRelativeTarget } from "../../opc/paths.js";
|
|
@@ -177,8 +179,10 @@ var PptxEditor = class {
|
|
|
177
179
|
function openPptx(bytes) {
|
|
178
180
|
return new PptxEditor(decodePackage(bytes));
|
|
179
181
|
}
|
|
180
|
-
function createPptx() {
|
|
181
|
-
|
|
182
|
+
function createPptx(options) {
|
|
183
|
+
const clock = options?.clock ?? systemClock;
|
|
184
|
+
const metadata = resolveMetadataTimestamps({}, clock);
|
|
185
|
+
return new PptxEditor(createEmptyPptxPackage({ metadata }));
|
|
182
186
|
}
|
|
183
187
|
//#endregion
|
|
184
188
|
export { PptxEditor, createPptx, openPptx };
|
|
@@ -3,6 +3,7 @@ const require_xml_fragment = require("../../xml/fragment.cjs");
|
|
|
3
3
|
const require_opc_paths = require("../../opc/paths.cjs");
|
|
4
4
|
const require_opc_rels = require("../../opc/rels.cjs");
|
|
5
5
|
const require_opc_content_types = require("../../opc/content-types.cjs");
|
|
6
|
+
const require_opc_core_properties = require("../../opc/core-properties.cjs");
|
|
6
7
|
//#region src/edit/pptx/scaffold.ts
|
|
7
8
|
const CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types";
|
|
8
9
|
const RELS_NS = "http://schemas.openxmlformats.org/package/2006/relationships";
|
|
@@ -193,7 +194,7 @@ function ensureNotesMaster(pkg) {
|
|
|
193
194
|
presentationElement.children.splice(sldMasterIdLstIndex === -1 ? 0 : sldMasterIdLstIndex + 1, 0, notesMasterIdLst);
|
|
194
195
|
return NOTES_MASTER_PART_PATH;
|
|
195
196
|
}
|
|
196
|
-
function createEmptyPptxPackage() {
|
|
197
|
+
function createEmptyPptxPackage(options) {
|
|
197
198
|
const contentTypes = require_xml_fragment.el("Types", { xmlns: CONTENT_TYPES_NS }, [
|
|
198
199
|
require_xml_fragment.el("Default", {
|
|
199
200
|
Extension: "rels",
|
|
@@ -278,6 +279,7 @@ function createEmptyPptxPackage() {
|
|
|
278
279
|
cx: DEFAULT_NOTES_WIDTH_EMU,
|
|
279
280
|
cy: DEFAULT_NOTES_HEIGHT_EMU
|
|
280
281
|
}));
|
|
282
|
+
if (options?.metadata !== void 0) require_opc_core_properties.addCoreProperties(pkg, options.metadata);
|
|
281
283
|
return pkg;
|
|
282
284
|
}
|
|
283
285
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LayoutMetadata } from "document-schema.js";
|
|
1
2
|
import { Package, XmlElement } from "ooxml.js";
|
|
2
3
|
//#region src/edit/pptx/scaffold.d.ts
|
|
3
4
|
declare const PML_NS = "http://schemas.openxmlformats.org/presentationml/2006/main";
|
|
@@ -8,6 +9,9 @@ declare const SLIDE_LAYOUT_REL_TYPE = "http://schemas.openxmlformats.org/officeD
|
|
|
8
9
|
declare const NOTES_MASTER_REL_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster";
|
|
9
10
|
declare function buildEmptyGroupSpTree(): XmlElement;
|
|
10
11
|
declare function ensureNotesMaster(pkg: Package): string;
|
|
11
|
-
|
|
12
|
+
interface CreateEmptyPptxPackageOptions {
|
|
13
|
+
readonly metadata?: LayoutMetadata;
|
|
14
|
+
}
|
|
15
|
+
declare function createEmptyPptxPackage(options?: CreateEmptyPptxPackageOptions): Package;
|
|
12
16
|
//#endregion
|
|
13
|
-
export { DML_NS, NOTES_MASTER_REL_TYPE, PML_NS, R_NS, SLIDE_LAYOUT_PART_PATH, SLIDE_LAYOUT_REL_TYPE, buildEmptyGroupSpTree, createEmptyPptxPackage, ensureNotesMaster };
|
|
17
|
+
export { CreateEmptyPptxPackageOptions, DML_NS, NOTES_MASTER_REL_TYPE, PML_NS, R_NS, SLIDE_LAYOUT_PART_PATH, SLIDE_LAYOUT_REL_TYPE, buildEmptyGroupSpTree, createEmptyPptxPackage, ensureNotesMaster };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Package, XmlElement } from "ooxml.js";
|
|
2
|
+
import { LayoutMetadata } from "document-schema.js";
|
|
2
3
|
//#region src/edit/pptx/scaffold.d.ts
|
|
3
4
|
declare const PML_NS = "http://schemas.openxmlformats.org/presentationml/2006/main";
|
|
4
5
|
declare const DML_NS = "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
@@ -8,6 +9,9 @@ declare const SLIDE_LAYOUT_REL_TYPE = "http://schemas.openxmlformats.org/officeD
|
|
|
8
9
|
declare const NOTES_MASTER_REL_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster";
|
|
9
10
|
declare function buildEmptyGroupSpTree(): XmlElement;
|
|
10
11
|
declare function ensureNotesMaster(pkg: Package): string;
|
|
11
|
-
|
|
12
|
+
interface CreateEmptyPptxPackageOptions {
|
|
13
|
+
readonly metadata?: LayoutMetadata;
|
|
14
|
+
}
|
|
15
|
+
declare function createEmptyPptxPackage(options?: CreateEmptyPptxPackageOptions): Package;
|
|
12
16
|
//#endregion
|
|
13
|
-
export { DML_NS, NOTES_MASTER_REL_TYPE, PML_NS, R_NS, SLIDE_LAYOUT_PART_PATH, SLIDE_LAYOUT_REL_TYPE, buildEmptyGroupSpTree, createEmptyPptxPackage, ensureNotesMaster };
|
|
17
|
+
export { CreateEmptyPptxPackageOptions, DML_NS, NOTES_MASTER_REL_TYPE, PML_NS, R_NS, SLIDE_LAYOUT_PART_PATH, SLIDE_LAYOUT_REL_TYPE, buildEmptyGroupSpTree, createEmptyPptxPackage, ensureNotesMaster };
|
|
@@ -2,6 +2,7 @@ import { el } from "../../xml/fragment.js";
|
|
|
2
2
|
import { buildRelativeTarget } from "../../opc/paths.js";
|
|
3
3
|
import { addRelationship } from "../../opc/rels.js";
|
|
4
4
|
import { ensureContentTypeOverride } from "../../opc/content-types.js";
|
|
5
|
+
import { addCoreProperties } from "../../opc/core-properties.js";
|
|
5
6
|
//#region src/edit/pptx/scaffold.ts
|
|
6
7
|
const CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types";
|
|
7
8
|
const RELS_NS = "http://schemas.openxmlformats.org/package/2006/relationships";
|
|
@@ -192,7 +193,7 @@ function ensureNotesMaster(pkg) {
|
|
|
192
193
|
presentationElement.children.splice(sldMasterIdLstIndex === -1 ? 0 : sldMasterIdLstIndex + 1, 0, notesMasterIdLst);
|
|
193
194
|
return NOTES_MASTER_PART_PATH;
|
|
194
195
|
}
|
|
195
|
-
function createEmptyPptxPackage() {
|
|
196
|
+
function createEmptyPptxPackage(options) {
|
|
196
197
|
const contentTypes = el("Types", { xmlns: CONTENT_TYPES_NS }, [
|
|
197
198
|
el("Default", {
|
|
198
199
|
Extension: "rels",
|
|
@@ -277,6 +278,7 @@ function createEmptyPptxPackage() {
|
|
|
277
278
|
cx: DEFAULT_NOTES_WIDTH_EMU,
|
|
278
279
|
cy: DEFAULT_NOTES_HEIGHT_EMU
|
|
279
280
|
}));
|
|
281
|
+
if (options?.metadata !== void 0) addCoreProperties(pkg, options.metadata);
|
|
280
282
|
return pkg;
|
|
281
283
|
}
|
|
282
284
|
//#endregion
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_model_geometry = require("./model/geometry.cjs");
|
|
3
3
|
const require_model_bytes = require("./model/bytes.cjs");
|
|
4
|
+
const require_model_metadata = require("./model/metadata.cjs");
|
|
5
|
+
const require_ports_clock = require("./ports/clock.cjs");
|
|
4
6
|
const require_mathml_nodes = require("./mathml/nodes.cjs");
|
|
5
7
|
const require_mathml_operators = require("./mathml/operators.cjs");
|
|
6
8
|
const require_mathml_variant = require("./mathml/variant.cjs");
|
|
@@ -87,7 +89,6 @@ const require_odb_report_render = require("./odb/report/render.cjs");
|
|
|
87
89
|
const require_odb_report_source = require("./odb/report/source.cjs");
|
|
88
90
|
const require_odb_report_content = require("./odb/report/content.cjs");
|
|
89
91
|
const require_convert_local = require("./convert/local.cjs");
|
|
90
|
-
const require_ports_clock = require("./ports/clock.cjs");
|
|
91
92
|
let ooxml_js = require("ooxml.js");
|
|
92
93
|
let document_schema_js = require("document-schema.js");
|
|
93
94
|
let odf_js = require("odf.js");
|
|
@@ -853,6 +854,7 @@ exports.reconstructPresentation = require_layout_reconstruct.reconstructPresenta
|
|
|
853
854
|
exports.reconstructSpreadsheet = require_layout_reconstruct.reconstructSpreadsheet;
|
|
854
855
|
exports.reconstructWordprocessing = require_layout_reconstruct.reconstructWordprocessing;
|
|
855
856
|
exports.renderOdbReportContent = require_odb_report_render.renderOdbReportContent;
|
|
857
|
+
exports.resolveMetadataTimestamps = require_model_metadata.resolveMetadataTimestamps;
|
|
856
858
|
Object.defineProperty(exports, "resolveOdbComponent", {
|
|
857
859
|
enumerable: true,
|
|
858
860
|
get: function() {
|
package/dist/index.d.cts
CHANGED
|
@@ -6,6 +6,7 @@ import { DocumentBridgeOptions, DocumentToPdfOptions, OdbConversionOptions, OdbT
|
|
|
6
6
|
import { ConversionOptions, ConversionRequest, ConversionResult, Diagnostic, DocumentConverter, DocumentFormat, DocumentPayload } from "./convert/port.cjs";
|
|
7
7
|
import { docxPdfCodec, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, odgPdfCodec, odpPdfCodec, odpPptxCodec, odsPdfCodec, odsXlsxCodec, odtDocxCodec, odtPdfCodec, pptxPdfCodec, xlsxPdfCodec } from "./convert/codec.cjs";
|
|
8
8
|
import { createLocalDocumentConverter } from "./convert/local.cjs";
|
|
9
|
+
import { ClockPort, fixedClock, systemClock } from "./ports/clock.cjs";
|
|
9
10
|
import { BuildDocxPackageOptions, buildDocxPackage } from "./edit/docx/content.cjs";
|
|
10
11
|
import { c as firstChildByLocalName, d as textContent, i as MathMlText, l as isMathMlElement, n as MathMlElement, o as elementChildren, r as MathMlNode, s as elementLocalName, t as MathMlAttribute, u as localName } from "./nodes-pArN9ilm.cjs";
|
|
11
12
|
import { n as buildOfficeMath, r as buildOfficeMathParagraph, t as OmmlWriteResult } from "./write-BQ6SK8r8.cjs";
|
|
@@ -13,9 +14,10 @@ import { a as rgbHexToColor, n as LayoutColor, t as COLOR_BLACK } from "./color-
|
|
|
13
14
|
import { t as DocxRun } from "./run-P0b2pDdX.cjs";
|
|
14
15
|
import { DocxParagraph } from "./edit/docx/paragraph.cjs";
|
|
15
16
|
import { DocxTable, DocxTableCell, DocxTableRow, DocxVerticalMerge } from "./edit/docx/table.cjs";
|
|
16
|
-
import { DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
|
|
17
|
+
import { CreateDocxOptions, DocxBody, DocxEditor, createDocx, openDocx } from "./edit/docx/editor.cjs";
|
|
18
|
+
import { CreateEmptyDocxPackageOptions } from "./edit/docx/scaffold.cjs";
|
|
17
19
|
import { a as PAGE_SIZE_A4, d as flipY, l as SLIDE_SIZE_STANDARD, o as PAGE_SIZE_LETTER, r as Margins, s as PageSize, t as Box, u as SLIDE_SIZE_WIDESCREEN } from "./geometry-DaJr8yQW.cjs";
|
|
18
|
-
import { buildOdgPackage } from "./edit/odg/content.cjs";
|
|
20
|
+
import { BuildOdgPackageOptions, buildOdgPackage } from "./edit/odg/content.cjs";
|
|
19
21
|
import { i as LayoutFont, r as DEFAULT_LAYOUT_FONT, t as Alignment } from "./style-DkamR3aY.cjs";
|
|
20
22
|
import { n as RunInit, t as OdtRun } from "./run-F8JN7Vy4.cjs";
|
|
21
23
|
import { n as ParagraphInit, t as OdtParagraph } from "./paragraph-BXbXKPy3.cjs";
|
|
@@ -23,22 +25,27 @@ import { n as OdtListItem, t as OdtList } from "./list-BzcN-LTJ.cjs";
|
|
|
23
25
|
import { t as OdpShape } from "./shape-C8qDhn0l.cjs";
|
|
24
26
|
import { a as OdgLineVector, c as OdgVectorKind, l as PathVectorInit, n as LineVectorInit, o as OdgPathVector, r as OdgBoxVector, s as OdgVector, t as BoxVectorInit } from "./vector-D03KX8Ux.cjs";
|
|
25
27
|
import { OdgPage, PageImageInit, TextBoxInit } from "./edit/odg/page.cjs";
|
|
26
|
-
import { OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
27
|
-
import {
|
|
28
|
+
import { CreateOdgOptions, OdgEditor, createOdg, openOdg } from "./edit/odg/editor.cjs";
|
|
29
|
+
import { CreateEmptyOdgPackageOptions } from "./edit/odg/scaffold.cjs";
|
|
30
|
+
import { BuildOdpPackageOptions, buildOdpPackage } from "./edit/odp/content.cjs";
|
|
28
31
|
import { i as TableInit, n as OdtTableCell, r as OdtTableRow, t as OdtTable } from "./table-DjYcNOFm.cjs";
|
|
29
32
|
import { OdpSlide, SlideImageInit, SlideTableInit, TextBoxInit as TextBoxInit$1 } from "./edit/odp/slide.cjs";
|
|
30
|
-
import { OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
|
|
33
|
+
import { CreateOdpOptions, OdpEditor, createOdp, openOdp } from "./edit/odp/editor.cjs";
|
|
34
|
+
import { CreateEmptyOdpPackageOptions } from "./edit/odp/scaffold.cjs";
|
|
31
35
|
import { t as OdsCell } from "./cell-CNHPsDEk.cjs";
|
|
32
|
-
import { buildOdsPackage } from "./edit/ods/content.cjs";
|
|
36
|
+
import { BuildOdsPackageOptions, buildOdsPackage } from "./edit/ods/content.cjs";
|
|
33
37
|
import { OdsSheet } from "./edit/ods/sheet.cjs";
|
|
34
|
-
import { OdsEditor, createOds, openOds } from "./edit/ods/editor.cjs";
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
+
import { CreateOdsOptions, OdsEditor, createOds, openOds } from "./edit/ods/editor.cjs";
|
|
39
|
+
import { CreateEmptyOdsPackageOptions } from "./edit/ods/scaffold.cjs";
|
|
40
|
+
import { BuildOdtPackageOptions, buildOdtPackage } from "./edit/odt/content.cjs";
|
|
41
|
+
import { CreateOdtOptions, OdtBody, OdtEditor, createOdt, openOdt } from "./edit/odt/editor.cjs";
|
|
42
|
+
import { CreateEmptyOdtPackageOptions } from "./edit/odt/scaffold.cjs";
|
|
43
|
+
import { BuildPptxPackageOptions, buildPptxPackage } from "./edit/pptx/content.cjs";
|
|
38
44
|
import { n as DrawingRunInit, r as PptxShape, t as DrawingParagraphInit } from "./shape-BhkP6HB8.cjs";
|
|
39
45
|
import { i as PptxTableRow, n as PptxTableCell, r as PptxTableInit, t as PptxTable } from "./table-C3CPZ--2.cjs";
|
|
40
46
|
import { PptxSlide, SlideImageInit as SlideImageInit$1, SlideTableInit as SlideTableInit$1, TextBoxInit as TextBoxInit$2 } from "./edit/pptx/slide.cjs";
|
|
41
|
-
import { PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
|
|
47
|
+
import { CreatePptxOptions, PptxEditor, createPptx, openPptx } from "./edit/pptx/editor.cjs";
|
|
48
|
+
import { CreateEmptyPptxPackageOptions } from "./edit/pptx/scaffold.cjs";
|
|
42
49
|
import { a as parseHsqldbScript, i as displayTextFor, n as HsqldbScriptParseError, r as HsqldbTable, t as HsqldbColumn } from "./script-DsGGIzGU.cjs";
|
|
43
50
|
import { t as FirebirdBackupParseError } from "./reader-DP0Mbaj4.cjs";
|
|
44
51
|
import { D as FirebirdUnsupportedFieldTypeError } from "./blr-types-DVgO1DQ9.cjs";
|
|
@@ -69,6 +76,7 @@ import { readMarkdownContent } from "./markdown/read.cjs";
|
|
|
69
76
|
import { buildMarkdownText } from "./markdown/write.cjs";
|
|
70
77
|
import { buildFormulaBlock, formulaDocument, formulaOfBlock, formulaPlaceholderText } from "./model/formula.cjs";
|
|
71
78
|
import { buildDrawingBlock, drawingOfBlock } from "./model/embedded-drawing.cjs";
|
|
79
|
+
import { resolveMetadataTimestamps } from "./model/metadata.cjs";
|
|
72
80
|
import { EngineLayoutOptions, WordprocessingLayoutResult, convertWordprocessingToLayout } from "./layout/engine.cjs";
|
|
73
81
|
import { PresentationLayoutResult, SlidesLayoutOptions, convertPresentationToLayout } from "./layout/slides.cjs";
|
|
74
82
|
import { SheetsLayoutOptions, SpreadsheetLayoutResult, convertSpreadsheetToLayout } from "./layout/sheets.cjs";
|
|
@@ -91,10 +99,9 @@ import { RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedE
|
|
|
91
99
|
import { OdbReportContentOptions, OdbReportNotSpecifiedError, readOdbReportContent } from "./odb/report/content.cjs";
|
|
92
100
|
import { renderOdbReportContent } from "./odb/report/render.cjs";
|
|
93
101
|
import { OdbReportDataSourceError, odbReportCommandSql, resolveOdbReportRows } from "./odb/report/source.cjs";
|
|
94
|
-
import { ClockPort, fixedClock, systemClock } from "./ports/clock.cjs";
|
|
95
102
|
import { throwIfAborted } from "./ports/abort.cjs";
|
|
96
103
|
import { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutImage, LayoutImageAsset, LayoutItem, LayoutLine, LayoutLink, LayoutMetadata, LayoutPage, LayoutPath, LayoutPathSegment, LayoutRect, LayoutSubpath, LayoutText, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, layoutDocumentWithSchema, schemaUriFor } from "document-schema.js";
|
|
97
104
|
import { OdbComponentInfo, OdbConnectionInfo, OdbForm, OdbFormControl, OdbFormDefinition, OdbInventory, OdbQueryInfo, OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbForm, readOdbInventory, readOdbReport, resolveOdbComponent } from "odf.js";
|
|
98
105
|
import { FontRegistry, FontRegistryOptions, FontSubstitution, LoadedMathFont, MathFont, MathFontDescriptorMetrics, NOOP_DIAGNOSTIC_SINK, PdfDiagnostic, PdfDiagnosticSeverity, PdfDiagnosticSink, PdfEncryptedError, PdfParseError, PositionedFormula, ProvidedFont, ReadPdfOptions, ResolvedFace, WinAnsiSubstitution, WritePdfOptions, createFontMeasurer, createFontRegistry, createStandardFontMeasurer, loadMathFont, pdfCodec, readPdf, writePdf } from "pdf-codec";
|
|
99
106
|
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
100
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
107
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, COLOR_BLACK, CONTENT_FORMAT_VERSION, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePptxOptions, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, type DocumentJsonResult, type DocumentPackage, type DocumentPackageJson, DocumentPackageSchema, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutDocumentJson, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type Margins, MarkdownBytesSchema, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, type PositionedFormula, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadPdfOptions, type ReconstructOptions, type Relationship, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, type TextBoxInit$2 as TextBoxInit, UnrecognizedDocumentSchemaError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, collectOfficeMathElements, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createOdg, createOdp, createOds, createOdt, createPptx, createStandardFontMeasurer, decodeCompactPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodePackage, deobfuscateEmbeddedFont, deriveFontKey, detectGridLattice, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, encodeCompactPackage, encodeMarkdownText, encodePackage, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, layoutDocumentWithSchema, layoutFormula, loadMathFont, localName, looksLikeSfnt, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToDocx, markdownToOdt, markdownToPdf, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgToPdf, odmToPdf, odpPdfCodec, odpPptxCodec, odpToPdf, odpToPptx, odsPdfCodec, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToPdf, openDocx, openOdg, openOdp, openOds, openOdt, openPptx, operatorProperties, packageCodec, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRptFormula, parseSelect, parseXml, pdfCodec, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPptx, pdfToXlsx, pptxPdfCodec, pptxToOdp, pptxToPdf, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderOdbReportContent, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, runRptReport, schemaUriFor, serializePackage, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writePdf, xlsxPdfCodec, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|