openxmlsdkts 1.0.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/LICENSE +21 -0
- package/dist/ContentType.d.ts +91 -0
- package/dist/ContentType.d.ts.map +1 -0
- package/dist/ContentType.js +100 -0
- package/dist/ContentType.js.map +1 -0
- package/dist/OpenXmlNamespacesAndNames.d.ts +3414 -0
- package/dist/OpenXmlNamespacesAndNames.d.ts.map +1 -0
- package/dist/OpenXmlNamespacesAndNames.js +3473 -0
- package/dist/OpenXmlNamespacesAndNames.js.map +1 -0
- package/dist/OpenXmlPackage.d.ts +47 -0
- package/dist/OpenXmlPackage.d.ts.map +1 -0
- package/dist/OpenXmlPackage.js +388 -0
- package/dist/OpenXmlPackage.js.map +1 -0
- package/dist/OpenXmlPart.d.ts +76 -0
- package/dist/OpenXmlPart.d.ts.map +1 -0
- package/dist/OpenXmlPart.js +243 -0
- package/dist/OpenXmlPart.js.map +1 -0
- package/dist/OpenXmlRelationship.d.ts +19 -0
- package/dist/OpenXmlRelationship.d.ts.map +1 -0
- package/dist/OpenXmlRelationship.js +52 -0
- package/dist/OpenXmlRelationship.js.map +1 -0
- package/dist/PmlDocument.d.ts +7 -0
- package/dist/PmlDocument.d.ts.map +1 -0
- package/dist/PmlDocument.js +23 -0
- package/dist/PmlDocument.js.map +1 -0
- package/dist/RelationshipType.d.ts +84 -0
- package/dist/RelationshipType.d.ts.map +1 -0
- package/dist/RelationshipType.js +93 -0
- package/dist/RelationshipType.js.map +1 -0
- package/dist/SmlDocument.d.ts +7 -0
- package/dist/SmlDocument.d.ts.map +1 -0
- package/dist/SmlDocument.js +23 -0
- package/dist/SmlDocument.js.map +1 -0
- package/dist/Utility.d.ts +7 -0
- package/dist/Utility.d.ts.map +1 -0
- package/dist/Utility.js +46 -0
- package/dist/Utility.js.map +1 -0
- package/dist/WmlDocument.d.ts +8 -0
- package/dist/WmlDocument.d.ts.map +1 -0
- package/dist/WmlDocument.js +41 -0
- package/dist/WmlDocument.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.OpenXmlPart = void 0;
|
|
12
|
+
const ltxmlts_1 = require("ltxmlts");
|
|
13
|
+
const Utility_1 = require("./Utility");
|
|
14
|
+
const RelationshipType_1 = require("./RelationshipType");
|
|
15
|
+
class OpenXmlPart {
|
|
16
|
+
constructor(pkg, uri, contentType, partType, data) {
|
|
17
|
+
this.pkg = pkg;
|
|
18
|
+
this.uri = uri;
|
|
19
|
+
this.contentType = contentType;
|
|
20
|
+
this.partType = partType;
|
|
21
|
+
this.data = data;
|
|
22
|
+
}
|
|
23
|
+
getUri() {
|
|
24
|
+
return this.uri;
|
|
25
|
+
}
|
|
26
|
+
getPkg() {
|
|
27
|
+
return this.pkg;
|
|
28
|
+
}
|
|
29
|
+
getContentType() {
|
|
30
|
+
return this.contentType;
|
|
31
|
+
}
|
|
32
|
+
getData() {
|
|
33
|
+
return this.data;
|
|
34
|
+
}
|
|
35
|
+
setContentType(ct) {
|
|
36
|
+
this.contentType = ct;
|
|
37
|
+
}
|
|
38
|
+
getPartType() {
|
|
39
|
+
return this.partType;
|
|
40
|
+
}
|
|
41
|
+
setData(data) {
|
|
42
|
+
this.data = data;
|
|
43
|
+
}
|
|
44
|
+
setPartType(pt) {
|
|
45
|
+
this.partType = pt;
|
|
46
|
+
}
|
|
47
|
+
getRelsPartUri() {
|
|
48
|
+
return Utility_1.Utility.getRelsPartUri(this);
|
|
49
|
+
}
|
|
50
|
+
getRelsPart() {
|
|
51
|
+
return Utility_1.Utility.getRelsPart(this);
|
|
52
|
+
}
|
|
53
|
+
async getRelationships() {
|
|
54
|
+
return this.pkg.getRelationshipsForPart(this);
|
|
55
|
+
}
|
|
56
|
+
async getParts() {
|
|
57
|
+
const rels = await this.getRelationships();
|
|
58
|
+
return rels
|
|
59
|
+
.filter((r) => r.getTargetMode() !== "External")
|
|
60
|
+
.map((r) => {
|
|
61
|
+
const part = this.pkg.getPartByUri(r.getTargetFullName());
|
|
62
|
+
if (!part) {
|
|
63
|
+
throw new Error(`Part not found for relationship target: ${r.getTargetFullName()}`);
|
|
64
|
+
}
|
|
65
|
+
return part;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
async getRelationshipsByRelationshipType(relationshipType) {
|
|
69
|
+
const rels = await this.getRelationships();
|
|
70
|
+
return rels.filter((r) => r.getType() === relationshipType);
|
|
71
|
+
}
|
|
72
|
+
async getPartsByRelationshipType(relationshipType) {
|
|
73
|
+
const rels = await this.getRelationshipsByRelationshipType(relationshipType);
|
|
74
|
+
return rels.map((r) => this.pkg.getPartByUri(r.getTargetFullName())).filter((p) => p !== undefined);
|
|
75
|
+
}
|
|
76
|
+
async getPartByRelationshipType(relationshipType) {
|
|
77
|
+
const parts = await this.getPartsByRelationshipType(relationshipType);
|
|
78
|
+
return parts[0];
|
|
79
|
+
}
|
|
80
|
+
async addRelationship(id, type, target, targetMode = "Internal") {
|
|
81
|
+
return this.pkg.addRelationshipForPart(this, id, type, target, targetMode);
|
|
82
|
+
}
|
|
83
|
+
async deleteRelationship(id) {
|
|
84
|
+
return this.pkg.deleteRelationshipForPart(this, id);
|
|
85
|
+
}
|
|
86
|
+
async getXDocument() {
|
|
87
|
+
if (this.partType !== "xml") {
|
|
88
|
+
throw new Error(`Cannot get XDocument for non-xml part: ${this.uri}`);
|
|
89
|
+
}
|
|
90
|
+
if (this.data instanceof ltxmlts_1.XDocument) {
|
|
91
|
+
return this.data;
|
|
92
|
+
}
|
|
93
|
+
const xmlStr = await this.data.async("string");
|
|
94
|
+
const xDoc = ltxmlts_1.XDocument.parse(xmlStr);
|
|
95
|
+
this.data = xDoc;
|
|
96
|
+
return xDoc;
|
|
97
|
+
}
|
|
98
|
+
putXDocument(xDoc) {
|
|
99
|
+
if (!xDoc) {
|
|
100
|
+
throw new Error("putXDocument: xDoc must not be null or undefined");
|
|
101
|
+
}
|
|
102
|
+
this.data = xDoc;
|
|
103
|
+
this.partType = "xml";
|
|
104
|
+
}
|
|
105
|
+
async headerParts() {
|
|
106
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.header);
|
|
107
|
+
}
|
|
108
|
+
async footerParts() {
|
|
109
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.footer);
|
|
110
|
+
}
|
|
111
|
+
async endnotesPart() {
|
|
112
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.endnotes);
|
|
113
|
+
}
|
|
114
|
+
async footnotesPart() {
|
|
115
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.footnotes);
|
|
116
|
+
}
|
|
117
|
+
async wordprocessingCommentsPart() {
|
|
118
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.wordprocessingComments);
|
|
119
|
+
}
|
|
120
|
+
async fontTablePart() {
|
|
121
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.fontTable);
|
|
122
|
+
}
|
|
123
|
+
async numberingDefinitionsPart() {
|
|
124
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.numberingDefinitions);
|
|
125
|
+
}
|
|
126
|
+
async customXmlPropertiesPart() {
|
|
127
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.customXmlProperties);
|
|
128
|
+
}
|
|
129
|
+
async styleDefinitionsPart() {
|
|
130
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.styles);
|
|
131
|
+
}
|
|
132
|
+
async webSettingsPart() {
|
|
133
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.webSettings);
|
|
134
|
+
}
|
|
135
|
+
async documentSettingsPart() {
|
|
136
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.documentSettings);
|
|
137
|
+
}
|
|
138
|
+
async glossaryDocumentPart() {
|
|
139
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.glossaryDocument);
|
|
140
|
+
}
|
|
141
|
+
async calculationChainPart() {
|
|
142
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.calculationChain);
|
|
143
|
+
}
|
|
144
|
+
async cellMetadataPart() {
|
|
145
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.cellMetadata);
|
|
146
|
+
}
|
|
147
|
+
async sharedStringTablePart() {
|
|
148
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.sharedStringTable);
|
|
149
|
+
}
|
|
150
|
+
async themePart() {
|
|
151
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.theme);
|
|
152
|
+
}
|
|
153
|
+
async thumbnailPart() {
|
|
154
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.thumbnail);
|
|
155
|
+
}
|
|
156
|
+
async workbookRevisionHeaderPart() {
|
|
157
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.workbookRevisionHeader);
|
|
158
|
+
}
|
|
159
|
+
async workbookStylesPart() {
|
|
160
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.workbookStyles);
|
|
161
|
+
}
|
|
162
|
+
async drawingsPart() {
|
|
163
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.drawings);
|
|
164
|
+
}
|
|
165
|
+
async worksheetCommentsPart() {
|
|
166
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.worksheetComments);
|
|
167
|
+
}
|
|
168
|
+
async commentAuthorsPart() {
|
|
169
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.commentAuthors);
|
|
170
|
+
}
|
|
171
|
+
async handoutMasterPart() {
|
|
172
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.handoutMaster);
|
|
173
|
+
}
|
|
174
|
+
async notesMasterPart() {
|
|
175
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.notesMaster);
|
|
176
|
+
}
|
|
177
|
+
async notesSlidePart() {
|
|
178
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.notesSlide);
|
|
179
|
+
}
|
|
180
|
+
async presentationPropertiesPart() {
|
|
181
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.presentationProperties);
|
|
182
|
+
}
|
|
183
|
+
async tableStylesPart() {
|
|
184
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.tableStyles);
|
|
185
|
+
}
|
|
186
|
+
async userDefinedTagsPart() {
|
|
187
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.userDefinedTags);
|
|
188
|
+
}
|
|
189
|
+
async viewPropertiesPart() {
|
|
190
|
+
return this.getPartByRelationshipType(RelationshipType_1.RelationshipType.viewProperties);
|
|
191
|
+
}
|
|
192
|
+
async chartsheetParts() {
|
|
193
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.chartsheet);
|
|
194
|
+
}
|
|
195
|
+
async worksheetParts() {
|
|
196
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.worksheet);
|
|
197
|
+
}
|
|
198
|
+
async imageParts() {
|
|
199
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.image);
|
|
200
|
+
}
|
|
201
|
+
async pivotTableParts() {
|
|
202
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.pivotTable);
|
|
203
|
+
}
|
|
204
|
+
async queryTableParts() {
|
|
205
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.queryTable);
|
|
206
|
+
}
|
|
207
|
+
async tableDefinitionParts() {
|
|
208
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.tableDefinition);
|
|
209
|
+
}
|
|
210
|
+
async timeLineParts() {
|
|
211
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.timeLine);
|
|
212
|
+
}
|
|
213
|
+
async customXmlParts() {
|
|
214
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.customXml);
|
|
215
|
+
}
|
|
216
|
+
async fontParts() {
|
|
217
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.font);
|
|
218
|
+
}
|
|
219
|
+
async slideMasterParts() {
|
|
220
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.slideMaster);
|
|
221
|
+
}
|
|
222
|
+
async slideParts() {
|
|
223
|
+
return this.getPartsByRelationshipType(RelationshipType_1.RelationshipType.slide);
|
|
224
|
+
}
|
|
225
|
+
async getRelationshipById(rId) {
|
|
226
|
+
const rels = await this.getRelationships();
|
|
227
|
+
return rels.find((r) => r.getId() === rId);
|
|
228
|
+
}
|
|
229
|
+
async getPartById(rId) {
|
|
230
|
+
const rel = await this.getRelationshipById(rId);
|
|
231
|
+
return rel ? this.pkg.getPartByUri(rel.getTargetFullName()) : undefined;
|
|
232
|
+
}
|
|
233
|
+
async getRelationshipsByContentType(contentType) {
|
|
234
|
+
const rels = await this.getRelationships();
|
|
235
|
+
return rels.filter((r) => r.getTargetMode() !== "External" && this.pkg.getContentType(r.getTargetFullName()) === contentType);
|
|
236
|
+
}
|
|
237
|
+
async getPartsByContentType(contentType) {
|
|
238
|
+
const rels = await this.getRelationshipsByContentType(contentType);
|
|
239
|
+
return rels.map((r) => this.pkg.getPartByUri(r.getTargetFullName())).filter((p) => p !== undefined);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
exports.OpenXmlPart = OpenXmlPart;
|
|
243
|
+
//# sourceMappingURL=OpenXmlPart.js.map
|
|
@@ -0,0 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C,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC,KAAK,WAAW,CAAC,CAAC;IAChI,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,WAAmB;QAC7C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,6BAA6B,CAAC,WAAW,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IACxH,CAAC;CACF;AAvSD,kCAuSC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { OpenXmlPackage } from "./OpenXmlPackage";
|
|
2
|
+
import type { OpenXmlPart } from "./OpenXmlPart";
|
|
3
|
+
export declare class OpenXmlRelationship {
|
|
4
|
+
private pkg;
|
|
5
|
+
private part;
|
|
6
|
+
private id;
|
|
7
|
+
private type;
|
|
8
|
+
private target;
|
|
9
|
+
private targetMode;
|
|
10
|
+
constructor(pkg: OpenXmlPackage, part: OpenXmlPart | null, id: string, type: string, target: string, targetMode: string | null);
|
|
11
|
+
getPkg(): OpenXmlPackage;
|
|
12
|
+
getPart(): OpenXmlPart | null;
|
|
13
|
+
getId(): string;
|
|
14
|
+
getType(): string;
|
|
15
|
+
getTarget(): string;
|
|
16
|
+
getTargetMode(): string | null;
|
|
17
|
+
getTargetFullName(): string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=OpenXmlRelationship.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenXmlRelationship.d.ts","sourceRoot":"","sources":["../src/OpenXmlRelationship.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,GAAG,CAAiB;IAC5B,OAAO,CAAC,IAAI,CAAqB;IACjC,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAgB;gBAEtB,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAS9H,MAAM,IAAI,cAAc;IAIxB,OAAO,IAAI,WAAW,GAAG,IAAI;IAI7B,KAAK,IAAI,MAAM;IAIf,OAAO,IAAI,MAAM;IAIjB,SAAS,IAAI,MAAM;IAInB,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,iBAAiB,IAAI,MAAM;CAW5B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.OpenXmlRelationship = void 0;
|
|
12
|
+
class OpenXmlRelationship {
|
|
13
|
+
constructor(pkg, part, id, type, target, targetMode) {
|
|
14
|
+
this.pkg = pkg;
|
|
15
|
+
this.part = part;
|
|
16
|
+
this.id = id;
|
|
17
|
+
this.type = type;
|
|
18
|
+
this.target = target;
|
|
19
|
+
this.targetMode = targetMode;
|
|
20
|
+
}
|
|
21
|
+
getPkg() {
|
|
22
|
+
return this.pkg;
|
|
23
|
+
}
|
|
24
|
+
getPart() {
|
|
25
|
+
return this.part;
|
|
26
|
+
}
|
|
27
|
+
getId() {
|
|
28
|
+
return this.id;
|
|
29
|
+
}
|
|
30
|
+
getType() {
|
|
31
|
+
return this.type;
|
|
32
|
+
}
|
|
33
|
+
getTarget() {
|
|
34
|
+
return this.target;
|
|
35
|
+
}
|
|
36
|
+
getTargetMode() {
|
|
37
|
+
return this.targetMode;
|
|
38
|
+
}
|
|
39
|
+
getTargetFullName() {
|
|
40
|
+
if (this.targetMode === "External" || this.target.startsWith("/")) {
|
|
41
|
+
return this.target;
|
|
42
|
+
}
|
|
43
|
+
if (this.part === null) {
|
|
44
|
+
return "/" + this.target;
|
|
45
|
+
}
|
|
46
|
+
const uri = this.part.getUri();
|
|
47
|
+
const dir = uri.substring(0, uri.lastIndexOf("/") + 1);
|
|
48
|
+
return dir + this.target;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.OpenXmlRelationship = OpenXmlRelationship;
|
|
52
|
+
//# sourceMappingURL=OpenXmlRelationship.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenXmlRelationship.js","sourceRoot":"","sources":["../src/OpenXmlRelationship.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAKH,MAAa,mBAAmB;IAQ9B,YAAY,GAAmB,EAAE,IAAwB,EAAE,EAAU,EAAE,IAAY,EAAE,MAAc,EAAE,UAAyB;QAC5H,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,UAAU,KAAK,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAClE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YACvB,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,CAAC;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAC/B,MAAM,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IAC3B,CAAC;CACF;AApDD,kDAoDC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenXmlPackage, Base64String, FlatOpcString, DocxBinary } from "./OpenXmlPackage";
|
|
2
|
+
import { OpenXmlPart } from "./OpenXmlPart";
|
|
3
|
+
export declare class PmlDocument extends OpenXmlPackage {
|
|
4
|
+
static open(document: Base64String | FlatOpcString | DocxBinary): Promise<PmlDocument>;
|
|
5
|
+
presentationPart(): Promise<OpenXmlPart | undefined>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=PmlDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PmlDocument.d.ts","sourceRoot":"","sources":["../src/PmlDocument.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,WAAY,SAAQ,cAAc;WAChC,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IAItF,gBAAgB,IAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;CAG3D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.PmlDocument = void 0;
|
|
12
|
+
const ContentType_1 = require("./ContentType");
|
|
13
|
+
const OpenXmlPackage_1 = require("./OpenXmlPackage");
|
|
14
|
+
class PmlDocument extends OpenXmlPackage_1.OpenXmlPackage {
|
|
15
|
+
static async open(document) {
|
|
16
|
+
return OpenXmlPackage_1.OpenXmlPackage.openInto(new PmlDocument(), document);
|
|
17
|
+
}
|
|
18
|
+
async presentationPart() {
|
|
19
|
+
return (await this.getPartsByContentType(ContentType_1.ContentType.presentation))[0];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PmlDocument = PmlDocument;
|
|
23
|
+
//# sourceMappingURL=PmlDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PmlDocument.js","sourceRoot":"","sources":["../src/PmlDocument.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,+CAA4C;AAC5C,qDAA2F;AAG3F,MAAa,WAAY,SAAQ,+BAAc;IAC7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAmD;QACnE,OAAO,+BAAc,CAAC,QAAQ,CAAC,IAAI,WAAW,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,yBAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;CACF;AARD,kCAQC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const RelationshipType: {
|
|
2
|
+
readonly alternativeFormatImport: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk";
|
|
3
|
+
readonly calculationChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain";
|
|
4
|
+
readonly cellMetadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";
|
|
5
|
+
readonly chart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";
|
|
6
|
+
readonly chartColorStyle: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle";
|
|
7
|
+
readonly chartDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes";
|
|
8
|
+
readonly chartsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";
|
|
9
|
+
readonly chartStyle: "http://schemas.microsoft.com/office/2011/relationships/chartStyle";
|
|
10
|
+
readonly commentAuthors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors";
|
|
11
|
+
readonly connections: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections";
|
|
12
|
+
readonly coreFileProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";
|
|
13
|
+
readonly customFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";
|
|
14
|
+
readonly customization: "http://schemas.microsoft.com/office/2006/relationships/keyMapCustomizations";
|
|
15
|
+
readonly customProperty: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customProperty";
|
|
16
|
+
readonly customXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
|
|
17
|
+
readonly customXmlMappings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/xmlMaps";
|
|
18
|
+
readonly customXmlProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps";
|
|
19
|
+
readonly diagramColors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors";
|
|
20
|
+
readonly diagramData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData";
|
|
21
|
+
readonly diagramLayoutDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout";
|
|
22
|
+
readonly diagramPersistLayout: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing";
|
|
23
|
+
readonly diagramStyle: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle";
|
|
24
|
+
readonly dialogsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";
|
|
25
|
+
readonly digitalSignatureOrigin: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
26
|
+
readonly documentSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings";
|
|
27
|
+
readonly drawings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
|
|
28
|
+
readonly endnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes";
|
|
29
|
+
readonly excelAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars";
|
|
30
|
+
readonly extendedFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";
|
|
31
|
+
readonly externalWorkbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
|
|
32
|
+
readonly font: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
33
|
+
readonly fontTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";
|
|
34
|
+
readonly footer: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
|
|
35
|
+
readonly footnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes";
|
|
36
|
+
readonly glossaryDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument";
|
|
37
|
+
readonly handoutMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster";
|
|
38
|
+
readonly header: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
39
|
+
readonly image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
|
|
40
|
+
readonly mainDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
41
|
+
readonly notesMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster";
|
|
42
|
+
readonly notesSlide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide";
|
|
43
|
+
readonly numberingDefinitions: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering";
|
|
44
|
+
readonly pivotTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable";
|
|
45
|
+
readonly pivotTableCacheDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";
|
|
46
|
+
readonly pivotTableCacheRecords: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords";
|
|
47
|
+
readonly presentation: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
48
|
+
readonly presentationProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps";
|
|
49
|
+
readonly queryTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/queryTable";
|
|
50
|
+
readonly ribbonAndBackstageCustomizations: "http://schemas.microsoft.com/office/2007/relationships/ui/extensibility";
|
|
51
|
+
readonly sharedStringTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";
|
|
52
|
+
readonly singleCellTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells";
|
|
53
|
+
readonly slide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide";
|
|
54
|
+
readonly slideComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
|
|
55
|
+
readonly slideLayout: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout";
|
|
56
|
+
readonly slideMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster";
|
|
57
|
+
readonly slideSyncData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideUpdateInfo";
|
|
58
|
+
readonly styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
|
|
59
|
+
readonly tableDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table";
|
|
60
|
+
readonly tableStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles";
|
|
61
|
+
readonly timeLine: "http://schemas.microsoft.com/office/2011/relationships/timeline";
|
|
62
|
+
readonly theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";
|
|
63
|
+
readonly themeOverride: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/themeOverride";
|
|
64
|
+
readonly thumbnail: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail";
|
|
65
|
+
readonly userDefinedTags: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tags";
|
|
66
|
+
readonly viewProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps";
|
|
67
|
+
readonly vmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing";
|
|
68
|
+
readonly volatileDependencies: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/volatileDependencies";
|
|
69
|
+
readonly webSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings";
|
|
70
|
+
readonly wordAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars";
|
|
71
|
+
readonly wordprocessingComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
|
|
72
|
+
readonly workbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
|
|
73
|
+
readonly workbookRevisionHeader: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders";
|
|
74
|
+
readonly workbookRevisionLog: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog";
|
|
75
|
+
readonly workbookStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
|
|
76
|
+
readonly workbookUserData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/usernames";
|
|
77
|
+
readonly worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
|
|
78
|
+
readonly worksheetComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
|
|
79
|
+
readonly worksheetSortMap: "http://schemas.microsoft.com/office/2006/relationships/wsSortMap";
|
|
80
|
+
readonly xmlSignature: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
81
|
+
};
|
|
82
|
+
export type RelationshipTypeKey = keyof typeof RelationshipType;
|
|
83
|
+
export type RelationshipTypeValue = (typeof RelationshipType)[RelationshipTypeKey];
|
|
84
|
+
//# sourceMappingURL=RelationshipType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipType.d.ts","sourceRoot":"","sources":["../src/RelationshipType.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAChE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.RelationshipType = void 0;
|
|
12
|
+
exports.RelationshipType = {
|
|
13
|
+
alternativeFormatImport: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk",
|
|
14
|
+
calculationChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",
|
|
15
|
+
cellMetadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",
|
|
16
|
+
chart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
|
|
17
|
+
chartColorStyle: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
|
|
18
|
+
chartDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes",
|
|
19
|
+
chartsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",
|
|
20
|
+
chartStyle: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
|
|
21
|
+
commentAuthors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors",
|
|
22
|
+
connections: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",
|
|
23
|
+
coreFileProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
|
|
24
|
+
customFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",
|
|
25
|
+
customization: "http://schemas.microsoft.com/office/2006/relationships/keyMapCustomizations",
|
|
26
|
+
customProperty: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customProperty",
|
|
27
|
+
customXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",
|
|
28
|
+
customXmlMappings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/xmlMaps",
|
|
29
|
+
customXmlProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",
|
|
30
|
+
diagramColors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors",
|
|
31
|
+
diagramData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData",
|
|
32
|
+
diagramLayoutDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout",
|
|
33
|
+
diagramPersistLayout: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing",
|
|
34
|
+
diagramStyle: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle",
|
|
35
|
+
dialogsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",
|
|
36
|
+
digitalSignatureOrigin: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin",
|
|
37
|
+
documentSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",
|
|
38
|
+
drawings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",
|
|
39
|
+
endnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",
|
|
40
|
+
excelAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars",
|
|
41
|
+
extendedFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",
|
|
42
|
+
externalWorkbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",
|
|
43
|
+
font: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",
|
|
44
|
+
fontTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",
|
|
45
|
+
footer: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",
|
|
46
|
+
footnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",
|
|
47
|
+
glossaryDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument",
|
|
48
|
+
handoutMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster",
|
|
49
|
+
header: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",
|
|
50
|
+
image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
|
|
51
|
+
mainDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
|
52
|
+
notesMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",
|
|
53
|
+
notesSlide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",
|
|
54
|
+
numberingDefinitions: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",
|
|
55
|
+
pivotTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",
|
|
56
|
+
pivotTableCacheDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",
|
|
57
|
+
pivotTableCacheRecords: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",
|
|
58
|
+
presentation: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
|
59
|
+
presentationProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",
|
|
60
|
+
queryTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/queryTable",
|
|
61
|
+
ribbonAndBackstageCustomizations: "http://schemas.microsoft.com/office/2007/relationships/ui/extensibility",
|
|
62
|
+
sharedStringTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",
|
|
63
|
+
singleCellTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells",
|
|
64
|
+
slide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",
|
|
65
|
+
slideComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
|
|
66
|
+
slideLayout: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",
|
|
67
|
+
slideMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster",
|
|
68
|
+
slideSyncData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideUpdateInfo",
|
|
69
|
+
styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",
|
|
70
|
+
tableDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",
|
|
71
|
+
tableStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles",
|
|
72
|
+
timeLine: "http://schemas.microsoft.com/office/2011/relationships/timeline",
|
|
73
|
+
theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",
|
|
74
|
+
themeOverride: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/themeOverride",
|
|
75
|
+
thumbnail: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail",
|
|
76
|
+
userDefinedTags: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tags",
|
|
77
|
+
viewProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",
|
|
78
|
+
vmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",
|
|
79
|
+
volatileDependencies: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/volatileDependencies",
|
|
80
|
+
webSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",
|
|
81
|
+
wordAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars",
|
|
82
|
+
wordprocessingComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
|
|
83
|
+
workbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
|
|
84
|
+
workbookRevisionHeader: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders",
|
|
85
|
+
workbookRevisionLog: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog",
|
|
86
|
+
workbookStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",
|
|
87
|
+
workbookUserData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/usernames",
|
|
88
|
+
worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
|
|
89
|
+
worksheetComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
|
|
90
|
+
worksheetSortMap: "http://schemas.microsoft.com/office/2006/relationships/wsSortMap",
|
|
91
|
+
xmlSignature: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature",
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=RelationshipType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipType.js","sourceRoot":"","sources":["../src/RelationshipType.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEU,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB,EAAE,6EAA6E;IACtG,gBAAgB,EAAE,+EAA+E;IACjG,YAAY,EAAE,mFAAmF;IACjG,KAAK,EAAE,2EAA2E;IAClF,eAAe,EAAE,wEAAwE;IACzF,YAAY,EAAE,qFAAqF;IACnG,UAAU,EAAE,gFAAgF;IAC5F,UAAU,EAAE,mEAAmE;IAC/E,cAAc,EAAE,oFAAoF;IACpG,WAAW,EAAE,iFAAiF;IAC9F,kBAAkB,EAAE,uFAAuF;IAC3G,oBAAoB,EAAE,uFAAuF;IAC7G,aAAa,EAAE,6EAA6E;IAC5F,cAAc,EAAE,oFAAoF;IACpG,SAAS,EAAE,+EAA+E;IAC1F,iBAAiB,EAAE,6EAA6E;IAChG,mBAAmB,EAAE,oFAAoF;IACzG,aAAa,EAAE,mFAAmF;IAClG,WAAW,EAAE,iFAAiF;IAC9F,uBAAuB,EAAE,mFAAmF;IAC5G,oBAAoB,EAAE,uEAAuE;IAC7F,YAAY,EAAE,uFAAuF;IACrG,WAAW,EAAE,iFAAiF;IAC9F,sB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iFAAiF;IAC9F,oBAAoB,EAAE,yEAAyE;IAC/F,sBAAsB,EAAE,8EAA8E;IACtG,QAAQ,EAAE,oFAAoF;IAC9F,sBAAsB,EAAE,qFAAqF;IAC7G,mBAAmB,EAAE,iFAAiF;IACtG,cAAc,EAAE,4EAA4E;IAC5F,gBAAgB,EAAE,+EAA+E;IACjG,SAAS,EAAE,+EAA+E;IAC1F,iBAAiB,EAAE,8EAA8E;IACjG,gBAAgB,EAAE,kEAAkE;IACpF,YAAY,EAAE,0FAA0F;CAChG,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenXmlPackage, Base64String, FlatOpcString, DocxBinary } from "./OpenXmlPackage";
|
|
2
|
+
import { OpenXmlPart } from "./OpenXmlPart";
|
|
3
|
+
export declare class SmlDocument extends OpenXmlPackage {
|
|
4
|
+
static open(document: Base64String | FlatOpcString | DocxBinary): Promise<SmlDocument>;
|
|
5
|
+
workbookPart(): Promise<OpenXmlPart | undefined>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=SmlDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmlDocument.d.ts","sourceRoot":"","sources":["../src/SmlDocument.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,WAAY,SAAQ,cAAc;WAChC,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IAItF,YAAY,IAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;CAGvD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.SmlDocument = void 0;
|
|
12
|
+
const ContentType_1 = require("./ContentType");
|
|
13
|
+
const OpenXmlPackage_1 = require("./OpenXmlPackage");
|
|
14
|
+
class SmlDocument extends OpenXmlPackage_1.OpenXmlPackage {
|
|
15
|
+
static async open(document) {
|
|
16
|
+
return OpenXmlPackage_1.OpenXmlPackage.openInto(new SmlDocument(), document);
|
|
17
|
+
}
|
|
18
|
+
async workbookPart() {
|
|
19
|
+
return (await this.getPartsByContentType(ContentType_1.ContentType.workbook))[0];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.SmlDocument = SmlDocument;
|
|
23
|
+
//# sourceMappingURL=SmlDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmlDocument.js","sourceRoot":"","sources":["../src/SmlDocument.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,+CAA4C;AAC5C,qDAA2F;AAG3F,MAAa,WAAY,SAAQ,+BAAc;IAC7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAmD;QACnE,OAAO,+BAAc,CAAC,QAAQ,CAAC,IAAI,WAAW,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,OAAO,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,yBAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AARD,kCAQC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OpenXmlPart } from "./OpenXmlPart";
|
|
2
|
+
export declare class Utility {
|
|
3
|
+
static getRelsPartUri(part: OpenXmlPart): string;
|
|
4
|
+
static getRelsPart(part: OpenXmlPart): OpenXmlPart | undefined;
|
|
5
|
+
static isBase64(str: unknown): boolean;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=Utility.d.ts.map
|