js.documents 7.14.0 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/edit/doc/editor.cjs +37 -10
- package/dist/edit/doc/editor.d.cts +12 -3
- package/dist/edit/doc/editor.d.ts +12 -3
- package/dist/edit/doc/editor.js +37 -10
- package/dist/edit/ppt/editor.cjs +2 -1
- package/dist/edit/ppt/editor.d.cts +2 -1
- package/dist/edit/ppt/editor.d.ts +2 -1
- package/dist/edit/ppt/editor.js +2 -1
- package/dist/edit/xls/editor.cjs +2 -1
- package/dist/edit/xls/editor.d.cts +2 -1
- package/dist/edit/xls/editor.d.ts +2 -1
- package/dist/edit/xls/editor.js +2 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/edit/doc/editor.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_metadata_core_patch = require("../../metadata/core-patch.cjs");
|
|
2
3
|
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
4
|
const require_ports_clock = require("../../ports/clock.cjs");
|
|
4
5
|
const require_edit_doc_paragraph = require("./paragraph.cjs");
|
|
@@ -69,32 +70,58 @@ var DocSection = class {
|
|
|
69
70
|
this.removed = true;
|
|
70
71
|
}
|
|
71
72
|
};
|
|
73
|
+
var DocBodyImpl = class {
|
|
74
|
+
section;
|
|
75
|
+
constructor(section) {
|
|
76
|
+
this.section = section;
|
|
77
|
+
}
|
|
78
|
+
paragraphs() {
|
|
79
|
+
return this.section.blocks.filter((block) => block.kind === "paragraph").map((block) => new require_edit_doc_paragraph.DocParagraph(this.section.blocks, block));
|
|
80
|
+
}
|
|
81
|
+
appendParagraph(init) {
|
|
82
|
+
const paragraph = require_edit_doc_paragraph.buildParagraph(init);
|
|
83
|
+
this.section.blocks.push(paragraph);
|
|
84
|
+
return new require_edit_doc_paragraph.DocParagraph(this.section.blocks, paragraph);
|
|
85
|
+
}
|
|
86
|
+
tables() {
|
|
87
|
+
return this.section.blocks.filter((block) => block.kind === "table").map((block) => new require_edit_doc_table.DocTable(this.section.blocks, block));
|
|
88
|
+
}
|
|
89
|
+
appendTable(init) {
|
|
90
|
+
const table = require_edit_doc_table.buildTable(init);
|
|
91
|
+
this.section.blocks.push(table);
|
|
92
|
+
return new require_edit_doc_table.DocTable(this.section.blocks, table);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
72
95
|
var DocEditor = class {
|
|
96
|
+
body;
|
|
73
97
|
document;
|
|
74
98
|
constructor(document) {
|
|
75
99
|
if (document.kind !== "wordprocessing") throw new Error(`DocEditor requires a wordprocessing ContentDocument, got "${document.kind}"`);
|
|
76
|
-
|
|
100
|
+
const first = document.sections[0];
|
|
101
|
+
if (first === void 0) throw new Error("a doc document must carry at least one section");
|
|
77
102
|
this.document = document;
|
|
103
|
+
this.body = new DocBodyImpl(first);
|
|
104
|
+
}
|
|
105
|
+
get metadata() {
|
|
106
|
+
return this.document.metadata;
|
|
107
|
+
}
|
|
108
|
+
set metadata(value) {
|
|
109
|
+
this.document.metadata = require_metadata_core_patch.mergeMetadata(this.document.metadata, value);
|
|
78
110
|
}
|
|
79
111
|
sections() {
|
|
80
112
|
return this.document.sections.map((section) => new DocSection(this.document.sections, section));
|
|
81
113
|
}
|
|
82
|
-
firstSection() {
|
|
83
|
-
const first = this.document.sections[0];
|
|
84
|
-
if (first === void 0) throw new Error("a doc document must carry at least one section");
|
|
85
|
-
return new DocSection(this.document.sections, first);
|
|
86
|
-
}
|
|
87
114
|
paragraphs() {
|
|
88
|
-
return this.
|
|
115
|
+
return this.body.paragraphs();
|
|
89
116
|
}
|
|
90
117
|
appendParagraph(init) {
|
|
91
|
-
return this.
|
|
118
|
+
return this.body.appendParagraph(init);
|
|
92
119
|
}
|
|
93
120
|
tables() {
|
|
94
|
-
return this.
|
|
121
|
+
return this.body.tables();
|
|
95
122
|
}
|
|
96
123
|
appendTable(init) {
|
|
97
|
-
return this.
|
|
124
|
+
return this.body.appendTable(init);
|
|
98
125
|
}
|
|
99
126
|
appendSection(init = {}) {
|
|
100
127
|
const node = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.cjs";
|
|
2
|
+
import { MetadataOverrides } from "../../metadata/core-patch.cjs";
|
|
2
3
|
import { n as ParagraphInit, t as DocParagraph } from "../../paragraph-DM9n9I4T.cjs";
|
|
3
4
|
import { DocTable, TableInit } from "./table.cjs";
|
|
4
|
-
import { ContentDocument, ContentSection, Margins, PageSize } from "document-schema.js";
|
|
5
|
+
import { ContentDocument, ContentSection, LayoutMetadata, Margins, PageSize } from "document-schema.js";
|
|
5
6
|
import { WriteDocContentOptions } from "doc-codec";
|
|
6
7
|
//#region src/edit/doc/editor.d.ts
|
|
7
8
|
interface SectionInit {
|
|
@@ -27,16 +28,24 @@ declare class DocSection {
|
|
|
27
28
|
appendTable(init: TableInit): DocTable;
|
|
28
29
|
remove(): void;
|
|
29
30
|
}
|
|
31
|
+
interface DocBody {
|
|
32
|
+
paragraphs(): DocParagraph[];
|
|
33
|
+
appendParagraph(init?: ParagraphInit): DocParagraph;
|
|
34
|
+
tables(): DocTable[];
|
|
35
|
+
appendTable(init: TableInit): DocTable;
|
|
36
|
+
}
|
|
30
37
|
interface CreateDocOptions {
|
|
31
38
|
readonly clock?: ClockPort;
|
|
32
39
|
readonly pageSize?: PageSize;
|
|
33
40
|
readonly margins?: Margins;
|
|
34
41
|
}
|
|
35
42
|
declare class DocEditor {
|
|
43
|
+
readonly body: DocBody;
|
|
36
44
|
private readonly document;
|
|
37
45
|
constructor(document: ContentDocument);
|
|
46
|
+
get metadata(): LayoutMetadata;
|
|
47
|
+
set metadata(value: MetadataOverrides);
|
|
38
48
|
sections(): DocSection[];
|
|
39
|
-
private firstSection;
|
|
40
49
|
paragraphs(): DocParagraph[];
|
|
41
50
|
appendParagraph(init?: ParagraphInit): DocParagraph;
|
|
42
51
|
tables(): DocTable[];
|
|
@@ -47,4 +56,4 @@ declare class DocEditor {
|
|
|
47
56
|
declare function openDoc(bytes: Uint8Array<ArrayBuffer>, password?: string): DocEditor;
|
|
48
57
|
declare function createDoc(options?: CreateDocOptions): DocEditor;
|
|
49
58
|
//#endregion
|
|
50
|
-
export { CreateDocOptions, DocEditor, DocSection, SectionInit, createDoc, openDoc };
|
|
59
|
+
export { CreateDocOptions, DocBody, DocEditor, DocSection, SectionInit, createDoc, openDoc };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.js";
|
|
2
|
+
import { MetadataOverrides } from "../../metadata/core-patch.js";
|
|
2
3
|
import { n as ParagraphInit, t as DocParagraph } from "../../paragraph-Byw2Y7xu.js";
|
|
3
4
|
import { DocTable, TableInit } from "./table.js";
|
|
4
|
-
import { ContentDocument, ContentSection, Margins, PageSize } from "document-schema.js";
|
|
5
|
+
import { ContentDocument, ContentSection, LayoutMetadata, Margins, PageSize } from "document-schema.js";
|
|
5
6
|
import { WriteDocContentOptions } from "doc-codec";
|
|
6
7
|
//#region src/edit/doc/editor.d.ts
|
|
7
8
|
interface SectionInit {
|
|
@@ -27,16 +28,24 @@ declare class DocSection {
|
|
|
27
28
|
appendTable(init: TableInit): DocTable;
|
|
28
29
|
remove(): void;
|
|
29
30
|
}
|
|
31
|
+
interface DocBody {
|
|
32
|
+
paragraphs(): DocParagraph[];
|
|
33
|
+
appendParagraph(init?: ParagraphInit): DocParagraph;
|
|
34
|
+
tables(): DocTable[];
|
|
35
|
+
appendTable(init: TableInit): DocTable;
|
|
36
|
+
}
|
|
30
37
|
interface CreateDocOptions {
|
|
31
38
|
readonly clock?: ClockPort;
|
|
32
39
|
readonly pageSize?: PageSize;
|
|
33
40
|
readonly margins?: Margins;
|
|
34
41
|
}
|
|
35
42
|
declare class DocEditor {
|
|
43
|
+
readonly body: DocBody;
|
|
36
44
|
private readonly document;
|
|
37
45
|
constructor(document: ContentDocument);
|
|
46
|
+
get metadata(): LayoutMetadata;
|
|
47
|
+
set metadata(value: MetadataOverrides);
|
|
38
48
|
sections(): DocSection[];
|
|
39
|
-
private firstSection;
|
|
40
49
|
paragraphs(): DocParagraph[];
|
|
41
50
|
appendParagraph(init?: ParagraphInit): DocParagraph;
|
|
42
51
|
tables(): DocTable[];
|
|
@@ -47,4 +56,4 @@ declare class DocEditor {
|
|
|
47
56
|
declare function openDoc(bytes: Uint8Array<ArrayBuffer>, password?: string): DocEditor;
|
|
48
57
|
declare function createDoc(options?: CreateDocOptions): DocEditor;
|
|
49
58
|
//#endregion
|
|
50
|
-
export { CreateDocOptions, DocEditor, DocSection, SectionInit, createDoc, openDoc };
|
|
59
|
+
export { CreateDocOptions, DocBody, DocEditor, DocSection, SectionInit, createDoc, openDoc };
|
package/dist/edit/doc/editor.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { mergeMetadata } from "../../metadata/core-patch.js";
|
|
1
2
|
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
3
|
import { systemClock } from "../../ports/clock.js";
|
|
3
4
|
import { DocParagraph, buildParagraph } from "./paragraph.js";
|
|
@@ -68,32 +69,58 @@ var DocSection = class {
|
|
|
68
69
|
this.removed = true;
|
|
69
70
|
}
|
|
70
71
|
};
|
|
72
|
+
var DocBodyImpl = class {
|
|
73
|
+
section;
|
|
74
|
+
constructor(section) {
|
|
75
|
+
this.section = section;
|
|
76
|
+
}
|
|
77
|
+
paragraphs() {
|
|
78
|
+
return this.section.blocks.filter((block) => block.kind === "paragraph").map((block) => new DocParagraph(this.section.blocks, block));
|
|
79
|
+
}
|
|
80
|
+
appendParagraph(init) {
|
|
81
|
+
const paragraph = buildParagraph(init);
|
|
82
|
+
this.section.blocks.push(paragraph);
|
|
83
|
+
return new DocParagraph(this.section.blocks, paragraph);
|
|
84
|
+
}
|
|
85
|
+
tables() {
|
|
86
|
+
return this.section.blocks.filter((block) => block.kind === "table").map((block) => new DocTable(this.section.blocks, block));
|
|
87
|
+
}
|
|
88
|
+
appendTable(init) {
|
|
89
|
+
const table = buildTable(init);
|
|
90
|
+
this.section.blocks.push(table);
|
|
91
|
+
return new DocTable(this.section.blocks, table);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
71
94
|
var DocEditor = class {
|
|
95
|
+
body;
|
|
72
96
|
document;
|
|
73
97
|
constructor(document) {
|
|
74
98
|
if (document.kind !== "wordprocessing") throw new Error(`DocEditor requires a wordprocessing ContentDocument, got "${document.kind}"`);
|
|
75
|
-
|
|
99
|
+
const first = document.sections[0];
|
|
100
|
+
if (first === void 0) throw new Error("a doc document must carry at least one section");
|
|
76
101
|
this.document = document;
|
|
102
|
+
this.body = new DocBodyImpl(first);
|
|
103
|
+
}
|
|
104
|
+
get metadata() {
|
|
105
|
+
return this.document.metadata;
|
|
106
|
+
}
|
|
107
|
+
set metadata(value) {
|
|
108
|
+
this.document.metadata = mergeMetadata(this.document.metadata, value);
|
|
77
109
|
}
|
|
78
110
|
sections() {
|
|
79
111
|
return this.document.sections.map((section) => new DocSection(this.document.sections, section));
|
|
80
112
|
}
|
|
81
|
-
firstSection() {
|
|
82
|
-
const first = this.document.sections[0];
|
|
83
|
-
if (first === void 0) throw new Error("a doc document must carry at least one section");
|
|
84
|
-
return new DocSection(this.document.sections, first);
|
|
85
|
-
}
|
|
86
113
|
paragraphs() {
|
|
87
|
-
return this.
|
|
114
|
+
return this.body.paragraphs();
|
|
88
115
|
}
|
|
89
116
|
appendParagraph(init) {
|
|
90
|
-
return this.
|
|
117
|
+
return this.body.appendParagraph(init);
|
|
91
118
|
}
|
|
92
119
|
tables() {
|
|
93
|
-
return this.
|
|
120
|
+
return this.body.tables();
|
|
94
121
|
}
|
|
95
122
|
appendTable(init) {
|
|
96
|
-
return this.
|
|
123
|
+
return this.body.appendTable(init);
|
|
97
124
|
}
|
|
98
125
|
appendSection(init = {}) {
|
|
99
126
|
const node = {
|
package/dist/edit/ppt/editor.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_metadata_core_patch = require("../../metadata/core-patch.cjs");
|
|
2
3
|
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
4
|
const require_ports_clock = require("../../ports/clock.cjs");
|
|
4
5
|
const require_ppt_read = require("../../ppt/read.cjs");
|
|
@@ -16,7 +17,7 @@ var PptEditor = class {
|
|
|
16
17
|
return this.document.metadata;
|
|
17
18
|
}
|
|
18
19
|
set metadata(value) {
|
|
19
|
-
this.document.metadata = value;
|
|
20
|
+
this.document.metadata = require_metadata_core_patch.mergeMetadata(this.document.metadata, value);
|
|
20
21
|
}
|
|
21
22
|
slides() {
|
|
22
23
|
return this.document.slides.map((slide) => new require_edit_ppt_slide.PptSlide(this.document.slides, slide));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.cjs";
|
|
2
|
+
import { MetadataOverrides } from "../../metadata/core-patch.cjs";
|
|
2
3
|
import { PptSlide } from "./slide.cjs";
|
|
3
4
|
import { ContentDocument, LayoutMetadata, PageSize } from "document-schema.js";
|
|
4
5
|
//#region src/edit/ppt/editor.d.ts
|
|
@@ -9,7 +10,7 @@ declare class PptEditor {
|
|
|
9
10
|
private readonly document;
|
|
10
11
|
constructor(document: ContentDocument);
|
|
11
12
|
get metadata(): LayoutMetadata;
|
|
12
|
-
set metadata(value:
|
|
13
|
+
set metadata(value: MetadataOverrides);
|
|
13
14
|
slides(): PptSlide[];
|
|
14
15
|
addSlide(size?: PageSize): PptSlide;
|
|
15
16
|
removeSlideAt(index: number): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.js";
|
|
2
|
+
import { MetadataOverrides } from "../../metadata/core-patch.js";
|
|
2
3
|
import { PptSlide } from "./slide.js";
|
|
3
4
|
import { ContentDocument, LayoutMetadata, PageSize } from "document-schema.js";
|
|
4
5
|
//#region src/edit/ppt/editor.d.ts
|
|
@@ -9,7 +10,7 @@ declare class PptEditor {
|
|
|
9
10
|
private readonly document;
|
|
10
11
|
constructor(document: ContentDocument);
|
|
11
12
|
get metadata(): LayoutMetadata;
|
|
12
|
-
set metadata(value:
|
|
13
|
+
set metadata(value: MetadataOverrides);
|
|
13
14
|
slides(): PptSlide[];
|
|
14
15
|
addSlide(size?: PageSize): PptSlide;
|
|
15
16
|
removeSlideAt(index: number): void;
|
package/dist/edit/ppt/editor.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { mergeMetadata } from "../../metadata/core-patch.js";
|
|
1
2
|
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
3
|
import { systemClock } from "../../ports/clock.js";
|
|
3
4
|
import { readPptContent } from "../../ppt/read.js";
|
|
@@ -15,7 +16,7 @@ var PptEditor = class {
|
|
|
15
16
|
return this.document.metadata;
|
|
16
17
|
}
|
|
17
18
|
set metadata(value) {
|
|
18
|
-
this.document.metadata = value;
|
|
19
|
+
this.document.metadata = mergeMetadata(this.document.metadata, value);
|
|
19
20
|
}
|
|
20
21
|
slides() {
|
|
21
22
|
return this.document.slides.map((slide) => new PptSlide(this.document.slides, slide));
|
package/dist/edit/xls/editor.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_metadata_core_patch = require("../../metadata/core-patch.cjs");
|
|
2
3
|
const require_model_metadata = require("../../model/metadata.cjs");
|
|
3
4
|
const require_ports_clock = require("../../ports/clock.cjs");
|
|
4
5
|
const require_edit_xls_sheet = require("./sheet.cjs");
|
|
@@ -28,7 +29,7 @@ var XlsEditor = class {
|
|
|
28
29
|
return this.document.metadata;
|
|
29
30
|
}
|
|
30
31
|
set metadata(value) {
|
|
31
|
-
this.document.metadata = value;
|
|
32
|
+
this.document.metadata = require_metadata_core_patch.mergeMetadata(this.document.metadata, value);
|
|
32
33
|
}
|
|
33
34
|
sheets() {
|
|
34
35
|
return this.document.sheets.map((sheet) => new require_edit_xls_sheet.XlsSheet(this.document.sheets, sheet));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.cjs";
|
|
2
|
+
import { MetadataOverrides } from "../../metadata/core-patch.cjs";
|
|
2
3
|
import { XlsSheet } from "./sheet.cjs";
|
|
3
4
|
import { ContentDocument, LayoutMetadata } from "document-schema.js";
|
|
4
5
|
//#region src/edit/xls/editor.d.ts
|
|
@@ -9,7 +10,7 @@ declare class XlsEditor {
|
|
|
9
10
|
private readonly document;
|
|
10
11
|
constructor(document: ContentDocument);
|
|
11
12
|
get metadata(): LayoutMetadata;
|
|
12
|
-
set metadata(value:
|
|
13
|
+
set metadata(value: MetadataOverrides);
|
|
13
14
|
sheets(): XlsSheet[];
|
|
14
15
|
sheet(name: string): XlsSheet | undefined;
|
|
15
16
|
addSheet(name: string): XlsSheet;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as ClockPort } from "../../clock-C7SUuYN0.js";
|
|
2
|
+
import { MetadataOverrides } from "../../metadata/core-patch.js";
|
|
2
3
|
import { XlsSheet } from "./sheet.js";
|
|
3
4
|
import { ContentDocument, LayoutMetadata } from "document-schema.js";
|
|
4
5
|
//#region src/edit/xls/editor.d.ts
|
|
@@ -9,7 +10,7 @@ declare class XlsEditor {
|
|
|
9
10
|
private readonly document;
|
|
10
11
|
constructor(document: ContentDocument);
|
|
11
12
|
get metadata(): LayoutMetadata;
|
|
12
|
-
set metadata(value:
|
|
13
|
+
set metadata(value: MetadataOverrides);
|
|
13
14
|
sheets(): XlsSheet[];
|
|
14
15
|
sheet(name: string): XlsSheet | undefined;
|
|
15
16
|
addSheet(name: string): XlsSheet;
|
package/dist/edit/xls/editor.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { mergeMetadata } from "../../metadata/core-patch.js";
|
|
1
2
|
import { resolveMetadataTimestamps } from "../../model/metadata.js";
|
|
2
3
|
import { systemClock } from "../../ports/clock.js";
|
|
3
4
|
import { XlsSheet } from "./sheet.js";
|
|
@@ -27,7 +28,7 @@ var XlsEditor = class {
|
|
|
27
28
|
return this.document.metadata;
|
|
28
29
|
}
|
|
29
30
|
set metadata(value) {
|
|
30
|
-
this.document.metadata = value;
|
|
31
|
+
this.document.metadata = mergeMetadata(this.document.metadata, value);
|
|
31
32
|
}
|
|
32
33
|
sheets() {
|
|
33
34
|
return this.document.sheets.map((sheet) => new XlsSheet(this.document.sheets, sheet));
|
package/dist/index.d.cts
CHANGED
|
@@ -18,6 +18,7 @@ import { ReadCsvContentOptions, readCsvContent } from "./csv/read.cjs";
|
|
|
18
18
|
import { CsvParseError } from "./csv/records.cjs";
|
|
19
19
|
import { CsvInvalidUtf8Error, decodeCsvText, encodeCsvText } from "./csv/text.cjs";
|
|
20
20
|
import { BuildCsvTextOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, buildCsvText } from "./csv/write.cjs";
|
|
21
|
+
import { MetadataOverrides } from "./metadata/core-patch.cjs";
|
|
21
22
|
import { n as RunInit, t as DocRun } from "./run-iYz2M-a_.cjs";
|
|
22
23
|
import { n as ParagraphInit, t as DocParagraph } from "./paragraph-DM9n9I4T.cjs";
|
|
23
24
|
import { DocTable, DocTableCell, DocTableRow, TableInit } from "./edit/doc/table.cjs";
|
|
@@ -134,7 +135,6 @@ import { OdbReportContentOptions, OdbReportNotSpecifiedError, readOdbReportConte
|
|
|
134
135
|
import { renderOdbReportContent } from "./odb/report/render.cjs";
|
|
135
136
|
import { OdbReportDataSourceError, odbReportCommandSql, resolveOdbReportRows } from "./odb/report/source.cjs";
|
|
136
137
|
import { UnsupportedPackageFormatError, decodeDocumentPackage, decodeOdbPackage, encodeDocumentPackage } from "./package-codec.cjs";
|
|
137
|
-
import { MetadataOverrides } from "./metadata/core-patch.cjs";
|
|
138
138
|
import { PatchDocxMetadataOptions, SetDocumentMetadataOptions, patchDocxMetadata, setDocumentMetadata } from "./metadata/write.cjs";
|
|
139
139
|
import { throwIfAborted } from "./ports/abort.cjs";
|
|
140
140
|
import { Alignment, Box, COLOR_BLACK, CellPosition, CellRange, Color as LayoutColor, ContentBlock, ContentBlockSchema, ContentCellFill, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, 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, DEFAULT_LAYOUT_FONT, DocumentJsonResult, DocumentSchemaKind, DocumentTree, DocumentTreeJson, DocumentTreeSchema, FontFace, LayoutFont, LayoutMetadata, Margins, MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PositionedFormula, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, UnrecognizedDocumentSchemaError, cellReference, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, isContentBlock, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor } from "document-schema.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { ReadCsvContentOptions, readCsvContent } from "./csv/read.js";
|
|
|
18
18
|
import { CsvParseError } from "./csv/records.js";
|
|
19
19
|
import { CsvInvalidUtf8Error, decodeCsvText, encodeCsvText } from "./csv/text.js";
|
|
20
20
|
import { BuildCsvTextOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, buildCsvText } from "./csv/write.js";
|
|
21
|
+
import { MetadataOverrides } from "./metadata/core-patch.js";
|
|
21
22
|
import { n as RunInit, t as DocRun } from "./run-iYz2M-a_.js";
|
|
22
23
|
import { n as ParagraphInit, t as DocParagraph } from "./paragraph-Byw2Y7xu.js";
|
|
23
24
|
import { DocTable, DocTableCell, DocTableRow, TableInit } from "./edit/doc/table.js";
|
|
@@ -134,7 +135,6 @@ import { OdbReportContentOptions, OdbReportNotSpecifiedError, readOdbReportConte
|
|
|
134
135
|
import { renderOdbReportContent } from "./odb/report/render.js";
|
|
135
136
|
import { OdbReportDataSourceError, odbReportCommandSql, resolveOdbReportRows } from "./odb/report/source.js";
|
|
136
137
|
import { UnsupportedPackageFormatError, decodeDocumentPackage, decodeOdbPackage, encodeDocumentPackage } from "./package-codec.js";
|
|
137
|
-
import { MetadataOverrides } from "./metadata/core-patch.js";
|
|
138
138
|
import { PatchDocxMetadataOptions, SetDocumentMetadataOptions, patchDocxMetadata, setDocumentMetadata } from "./metadata/write.js";
|
|
139
139
|
import { throwIfAborted } from "./ports/abort.js";
|
|
140
140
|
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Footnote, FootnoteSchema, HeaderFooterPart, HeaderFooterPartSchema, NumberingDefinition, NumberingDefinitionSchema, NumberingDefinitions, NumberingLevel, NumberingLevelSchema, Package, PackageSchema, Part, PartSchema, Relationship, SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElementSchema, XmlNode, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXlsxPackageFromContent as buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, readXlsxContent, resolveRelationships, rootElement, serializePackage, textContent as textContent$1, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
package/package.json
CHANGED