@docx4j/core-ts 0.1.5 → 0.2.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 +76 -0
- package/dist/model/content/Body.d.mts +36 -2
- package/dist/model/content/Body.mjs +79 -4
- package/dist/model/content/Comment.d.mts +15 -5
- package/dist/model/content/Comment.mjs +70 -22
- package/dist/model/content/List.d.mts +13 -2
- package/dist/model/content/List.mjs +48 -9
- package/dist/model/content/Paragraph.d.mts +11 -1
- package/dist/model/content/Paragraph.mjs +18 -7
- package/dist/model/content/Range.d.mts +7 -2
- package/dist/model/content/Range.mjs +21 -8
- package/dist/model/content/binder.d.mts +44 -0
- package/dist/model/content/binder.mjs +95 -0
- package/dist/model/content/comments.d.mts +19 -1
- package/dist/model/content/index.d.mts +5 -3
- package/dist/model/content/index.mjs +3 -1
- package/dist/model/content/search.d.mts +27 -2
- package/dist/model/content/search.mjs +59 -3
- package/dist/model/content/stylesFacade.d.mts +37 -0
- package/dist/model/content/stylesFacade.mjs +114 -0
- package/dist/model/content/tracking.d.mts +57 -2
- package/dist/model/content/tracking.mjs +47 -15
- package/dist/model/customxml/CustomXmlPartCollection.d.mts +7 -0
- package/dist/model/customxml/CustomXmlPartCollection.mjs +40 -6
- package/dist/model/customxml/xpath.d.mts +18 -3
- package/dist/model/customxml/xpath.mjs +18 -3
- package/dist/office-js/index.d.mts +3 -1
- package/dist/office-js/run.d.mts +12 -2
- package/dist/office-js/run.mjs +8 -1
- package/dist/office-js/shimmed.d.mts +46 -0
- package/dist/office-js/shimmed.mjs +1 -0
- package/dist/opc/exceptions.d.mts +25 -0
- package/dist/opc/exceptions.mjs +20 -0
- package/dist/opc/index.d.mts +1 -1
- package/dist/opc/index.mjs +1 -1
- package/dist/opc/mce/understood.mjs +37 -8
- package/dist/packages/WordprocessingMLPackage.d.mts +92 -2
- package/dist/packages/WordprocessingMLPackage.mjs +144 -1
- package/dist/parts/XmlPart.d.mts +44 -0
- package/dist/parts/XmlPart.mjs +86 -3
- package/dist/parts/sml/index.d.mts +9 -8
- package/dist/parts/sml/index.mjs +23 -19
- package/dist/parts/wml/index.d.mts +10 -2
- package/dist/parts/wml/index.mjs +11 -3
- package/dist/parts/wml/spliceableStyles.d.mts +1 -0
- package/dist/parts/wml/spliceableStyles.mjs +122 -0
- package/package.json +2 -2
package/dist/parts/sml/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { XmlPart } from '../XmlPart.mjs';
|
|
2
|
-
import { DefaultXmlPart } from '../DefaultXmlPart.mjs';
|
|
3
2
|
import { BinaryPart } from '../BinaryPart.mjs';
|
|
4
3
|
import { ContentTypes } from '../../opc/ContentTypes.mjs';
|
|
5
4
|
import { Namespaces } from '../Namespaces.mjs';
|
|
6
5
|
import { Xlsx4jException } from '../../opc/exceptions.mjs';
|
|
7
6
|
const S = 'http://schemas.openxmlformats.org/spreadsheetml/2006/main';
|
|
7
|
+
/** The Excel 2010 extension namespace (x14; docx4j's org.xlsx4j...x2009.x9.main). */
|
|
8
|
+
const X14 = 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/main';
|
|
9
|
+
/** The Excel 2013 extension namespace (x15; docx4j's org.xlsx4j...x2010.x11.main). */
|
|
10
|
+
const X15 = 'http://schemas.microsoft.com/office/spreadsheetml/2010/11/main';
|
|
8
11
|
export class WorkbookPart extends XmlPart {
|
|
9
12
|
constructor(partName = '/xl/workbook.xml', contentType = ContentTypes.SPREADSHEETML_WORKBOOK) {
|
|
10
13
|
super(partName, contentType, Namespaces.SPREADSHEETML_WORKBOOK, { namespaceURI: S, localPart: 'workbook' });
|
|
@@ -196,50 +199,51 @@ export class PrinterSettingsPart extends BinaryPart {
|
|
|
196
199
|
super(partName, ContentTypes.SPREADSHEETML_PRINTER_SETTINGS, Namespaces.SPREADSHEETML_PRINTER_SETTINGS);
|
|
197
200
|
}
|
|
198
201
|
}
|
|
199
|
-
// The Excel 2010 and 2013 extension parts (CR-004
|
|
200
|
-
// org.docx4j.openpackaging.parts.SpreadsheetML).
|
|
201
|
-
//
|
|
202
|
-
//
|
|
202
|
+
// The Excel 2010 and 2013 extension parts (CR-004; docx4j
|
|
203
|
+
// org.docx4j.openpackaging.parts.SpreadsheetML). Phase A held the seven XML ones as DOM; phase B
|
|
204
|
+
// types them over the x14 and x15 roots the objects package's CR-022 regeneration bound, so their
|
|
205
|
+
// contents read like any other part's and a re-marshalled root is Excel's own shape (the
|
|
206
|
+
// mc:Ignorable Excel writes on them is a property of each root, re-declared by `XmlPart`).
|
|
203
207
|
/** A slicer cache (`x14:slicerCacheDefinition`), from the workbook. docx4j `SlicerCachePart`. */
|
|
204
|
-
export class SlicerCachePart extends
|
|
208
|
+
export class SlicerCachePart extends XmlPart {
|
|
205
209
|
constructor(partName = '/xl/slicerCaches/slicerCache1.xml') {
|
|
206
|
-
super(partName, ContentTypes.SPREADSHEETML_SLICER_CACHE, Namespaces.SPREADSHEETML_SLICER_CACHE);
|
|
210
|
+
super(partName, ContentTypes.SPREADSHEETML_SLICER_CACHE, Namespaces.SPREADSHEETML_SLICER_CACHE, { namespaceURI: X14, localPart: 'slicerCacheDefinition' });
|
|
207
211
|
}
|
|
208
212
|
}
|
|
209
213
|
/** A sheet's slicers (`x14:slicers`). docx4j `SlicersPart`. */
|
|
210
|
-
export class SlicersPart extends
|
|
214
|
+
export class SlicersPart extends XmlPart {
|
|
211
215
|
constructor(partName = '/xl/slicers/slicer1.xml') {
|
|
212
|
-
super(partName, ContentTypes.SPREADSHEETML_SLICERS, Namespaces.SPREADSHEETML_SLICERS);
|
|
216
|
+
super(partName, ContentTypes.SPREADSHEETML_SLICERS, Namespaces.SPREADSHEETML_SLICERS, { namespaceURI: X14, localPart: 'slicers' });
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
219
|
/** A timeline cache (`x15:timelineCacheDefinition`), from the workbook. docx4j `TimelineCachePart`. */
|
|
216
|
-
export class TimelineCachePart extends
|
|
220
|
+
export class TimelineCachePart extends XmlPart {
|
|
217
221
|
constructor(partName = '/xl/timelineCaches/timelineCache1.xml') {
|
|
218
|
-
super(partName, ContentTypes.SPREADSHEETML_TIMELINE_CACHE, Namespaces.SPREADSHEETML_TIMELINE_CACHE);
|
|
222
|
+
super(partName, ContentTypes.SPREADSHEETML_TIMELINE_CACHE, Namespaces.SPREADSHEETML_TIMELINE_CACHE, { namespaceURI: X15, localPart: 'timelineCacheDefinition' });
|
|
219
223
|
}
|
|
220
224
|
}
|
|
221
225
|
/** A sheet's timelines (`x15:timelines`). docx4j `TimelinesPart`. */
|
|
222
|
-
export class TimelinesPart extends
|
|
226
|
+
export class TimelinesPart extends XmlPart {
|
|
223
227
|
constructor(partName = '/xl/timelines/timeline1.xml') {
|
|
224
|
-
super(partName, ContentTypes.SPREADSHEETML_TIMELINES, Namespaces.SPREADSHEETML_TIMELINES);
|
|
228
|
+
super(partName, ContentTypes.SPREADSHEETML_TIMELINES, Namespaces.SPREADSHEETML_TIMELINES, { namespaceURI: X15, localPart: 'timelines' });
|
|
225
229
|
}
|
|
226
230
|
}
|
|
227
231
|
/** A form control's properties (`x14:formControlPr`), from a worksheet. docx4j `ControlPropertiesPart`. */
|
|
228
|
-
export class ControlPropertiesPart extends
|
|
232
|
+
export class ControlPropertiesPart extends XmlPart {
|
|
229
233
|
constructor(partName = '/xl/ctrlProps/ctrlProp1.xml') {
|
|
230
|
-
super(partName, ContentTypes.SPREADSHEETML_CONTROL_PROPERTIES, Namespaces.SPREADSHEETML_CONTROL_PROPERTIES);
|
|
234
|
+
super(partName, ContentTypes.SPREADSHEETML_CONTROL_PROPERTIES, Namespaces.SPREADSHEETML_CONTROL_PROPERTIES, { namespaceURI: X14, localPart: 'formControlPr' });
|
|
231
235
|
}
|
|
232
236
|
}
|
|
233
237
|
/** The properties of a custom data part (`x14:datastoreItem`). docx4j `CustomDataPropertiesPart`. */
|
|
234
|
-
export class CustomDataPropertiesPart extends
|
|
238
|
+
export class CustomDataPropertiesPart extends XmlPart {
|
|
235
239
|
constructor(partName = '/xl/customDataProps/customDataProps1.xml') {
|
|
236
|
-
super(partName, ContentTypes.SPREADSHEETML_CUSTOM_DATA_PROPERTIES, Namespaces.SPREADSHEETML_CUSTOM_DATA_PROPERTIES);
|
|
240
|
+
super(partName, ContentTypes.SPREADSHEETML_CUSTOM_DATA_PROPERTIES, Namespaces.SPREADSHEETML_CUSTOM_DATA_PROPERTIES, { namespaceURI: X14, localPart: 'datastoreItem' });
|
|
237
241
|
}
|
|
238
242
|
}
|
|
239
243
|
/** A survey (`x15:survey`), from the workbook. docx4j `SurveyPart`. */
|
|
240
|
-
export class SurveyPart extends
|
|
244
|
+
export class SurveyPart extends XmlPart {
|
|
241
245
|
constructor(partName = '/xl/surveys/survey1.xml') {
|
|
242
|
-
super(partName, ContentTypes.SPREADSHEETML_SURVEY, Namespaces.SPREADSHEETML_SURVEY);
|
|
246
|
+
super(partName, ContentTypes.SPREADSHEETML_SURVEY, Namespaces.SPREADSHEETML_SURVEY, { namespaceURI: X15, localPart: 'survey' });
|
|
243
247
|
}
|
|
244
248
|
}
|
|
245
249
|
/**
|
|
@@ -85,8 +85,16 @@ export declare class MainDocumentPart extends DocumentPart<wml.Document> {
|
|
|
85
85
|
/** The style ids used directly in the document (docx4j `getStylesInUse()`); not those that
|
|
86
86
|
* others are merely based on. */
|
|
87
87
|
getStylesInUse(): Promise<Set<string>>;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
88
|
+
/**
|
|
89
|
+
* The block-level content of each story, in docx4j's order: the body, then the headers and
|
|
90
|
+
* footers, the endnotes, the footnotes and the comments.
|
|
91
|
+
*
|
|
92
|
+
* Every story is read **privately** (`readContents`, which answers the unmarshalled tree when
|
|
93
|
+
* there is one and parses without keeping it when there is not), so asking a document which
|
|
94
|
+
* fonts it uses does not cost any part its byte-for-byte round trip. The body used to come from
|
|
95
|
+
* `getContents()`, which unmarshalled the main part and so re-marshalled it on the next save
|
|
96
|
+
* (CR-001 section 18).
|
|
97
|
+
*/
|
|
90
98
|
private stories;
|
|
91
99
|
/** The styles part and its `w:default="1"` style ids, read without costing it its round trip. */
|
|
92
100
|
private styleSource;
|
package/dist/parts/wml/index.mjs
CHANGED
|
@@ -207,11 +207,19 @@ export class MainDocumentPart extends DocumentPart {
|
|
|
207
207
|
async getStylesInUse() {
|
|
208
208
|
return walkStories(await this.stories(), await this.styleSource(), undefined, false).styles;
|
|
209
209
|
}
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
210
|
+
/**
|
|
211
|
+
* The block-level content of each story, in docx4j's order: the body, then the headers and
|
|
212
|
+
* footers, the endnotes, the footnotes and the comments.
|
|
213
|
+
*
|
|
214
|
+
* Every story is read **privately** (`readContents`, which answers the unmarshalled tree when
|
|
215
|
+
* there is one and parses without keeping it when there is not), so asking a document which
|
|
216
|
+
* fonts it uses does not cost any part its byte-for-byte round trip. The body used to come from
|
|
217
|
+
* `getContents()`, which unmarshalled the main part and so re-marshalled it on the next save
|
|
218
|
+
* (CR-001 section 18).
|
|
219
|
+
*/
|
|
212
220
|
async stories() {
|
|
213
221
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
214
|
-
const out = [(_b = (_a = (await this.
|
|
222
|
+
const out = [(_b = (_a = (await this.readContents()).body) === null || _a === void 0 ? void 0 : _a.content) !== null && _b !== void 0 ? _b : []];
|
|
215
223
|
const rp = this.relationshipsPart;
|
|
216
224
|
for (const r of (_c = rp === null || rp === void 0 ? void 0 : rp.relationships.relationship) !== null && _c !== void 0 ? _c : []) {
|
|
217
225
|
const part = rp === null || rp === void 0 ? void 0 : rp.getPart(r);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SPLICEABLE_STYLES_XML = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<w:styles xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">\n<w:style w:type=\"paragraph\" w:styleId=\"BlockText\">\n <w:name w:val=\"Block Text\" />\n <w:basedOn w:val=\"Normal\" />\n <w:uiPriority w:val=\"99\" />\n <w:unhideWhenUsed />\n <w:rsid w:val=\"00841CD9\" />\n <w:pPr>\n <w:pBdr>\n <w:top w:val=\"single\" w:sz=\"2\" w:space=\"10\" w:color=\"4F81BD\" w:themeColor=\"accent1\" w:shadow=\"1\" />\n <w:left w:val=\"single\" w:sz=\"2\" w:space=\"10\" w:color=\"4F81BD\" w:themeColor=\"accent1\" w:shadow=\"1\" />\n <w:bottom w:val=\"single\" w:sz=\"2\" w:space=\"10\" w:color=\"4F81BD\" w:themeColor=\"accent1\" w:shadow=\"1\" />\n <w:right w:val=\"single\" w:sz=\"2\" w:space=\"10\" w:color=\"4F81BD\" w:themeColor=\"accent1\" w:shadow=\"1\" />\n </w:pBdr>\n <w:ind w:left=\"1152\" w:right=\"1152\" />\n </w:pPr>\n <w:rPr>\n <w:rFonts w:eastAsiaTheme=\"minorEastAsia\" />\n <w:i />\n <w:iCs />\n <w:color w:val=\"4F81BD\" w:themeColor=\"accent1\" />\n </w:rPr>\n </w:style>\n <w:style w:type=\"paragraph\" w:styleId=\"EndnoteText\">\n <w:name w:val=\"endnote text\" />\n <w:basedOn w:val=\"Normal\" />\n <w:link w:val=\"EndnoteTextChar\" />\n <w:uiPriority w:val=\"99\" />\n <w:unhideWhenUsed />\n <w:rsid w:val=\"00841CD9\" />\n <w:rPr>\n <w:sz w:val=\"20\" />\n <w:szCs w:val=\"20\" />\n </w:rPr>\n </w:style>\n <w:style w:type=\"character\" w:customStyle=\"1\" w:styleId=\"EndnoteTextChar\">\n <w:name w:val=\"Endnote Text Char\" />\n <w:basedOn w:val=\"DefaultParagraphFont\" />\n <w:link w:val=\"EndnoteText\" />\n <w:uiPriority w:val=\"99\" />\n <w:rsid w:val=\"00841CD9\" />\n <w:rPr>\n <w:sz w:val=\"20\" />\n <w:szCs w:val=\"20\" />\n </w:rPr>\n </w:style>\n <w:style w:type=\"paragraph\" w:styleId=\"Footer\">\n <w:name w:val=\"footer\" />\n <w:basedOn w:val=\"Normal\" />\n <w:link w:val=\"FooterChar\" />\n <w:uiPriority w:val=\"99\" />\n <w:unhideWhenUsed />\n <w:rsid w:val=\"00841CD9\" />\n <w:pPr>\n <w:tabs>\n <w:tab w:val=\"center\" w:pos=\"4680\" />\n <w:tab w:val=\"right\" w:pos=\"9360\" />\n </w:tabs>\n </w:pPr>\n </w:style>\n <w:style w:type=\"character\" w:customStyle=\"1\" w:styleId=\"FooterChar\">\n <w:name w:val=\"Footer Char\" />\n <w:basedOn w:val=\"DefaultParagraphFont\" />\n <w:link w:val=\"Footer\" />\n <w:uiPriority w:val=\"99\" />\n <w:rsid w:val=\"00841CD9\" />\n </w:style>\n <w:style w:type=\"paragraph\" w:styleId=\"FootnoteText\">\n <w:name w:val=\"footnote text\" />\n <w:basedOn w:val=\"Normal\" />\n <w:link w:val=\"FootnoteTextChar\" />\n <w:uiPriority w:val=\"99\" />\n <w:unhideWhenUsed />\n <w:rsid w:val=\"00841CD9\" />\n <w:rPr>\n <w:sz w:val=\"20\" />\n <w:szCs w:val=\"20\" />\n </w:rPr>\n </w:style>\n <w:style w:type=\"character\" w:customStyle=\"1\" w:styleId=\"FootnoteTextChar\">\n <w:name w:val=\"Footnote Text Char\" />\n <w:basedOn w:val=\"DefaultParagraphFont\" />\n <w:link w:val=\"FootnoteText\" />\n <w:uiPriority w:val=\"99\" />\n <w:rsid w:val=\"00841CD9\" />\n <w:rPr>\n <w:sz w:val=\"20\" />\n <w:szCs w:val=\"20\" />\n </w:rPr>\n </w:style>\n<w:style w:type=\"character\" w:styleId=\"FootnoteReference\">\n <w:name w:val=\"footnote reference\" />\n <w:basedOn w:val=\"DefaultParagraphFont\" />\n <w:uiPriority w:val=\"99\" />\n <w:unhideWhenUsed />\n <w:rsid w:val=\"00D1197D\" />\n <w:rPr>\n <w:vertAlign w:val=\"superscript\" />\n </w:rPr>\n </w:style>\n <w:style w:type=\"character\" w:styleId=\"EndnoteReference\">\n <w:name w:val=\"endnote reference\" />\n <w:basedOn w:val=\"DefaultParagraphFont\" />\n <w:uiPriority w:val=\"99\" />\n <w:unhideWhenUsed />\n <w:rsid w:val=\"00D1197D\" />\n <w:rPr>\n <w:vertAlign w:val=\"superscript\" />\n </w:rPr>\n </w:style>\n</w:styles>";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// The style definitions docx4j's own `styles.xml` carries but leaves **commented out**, so that
|
|
2
|
+
// `createPackage()` - which writes that file verbatim (`DEFAULT_STYLES_XML`, generated, faithful to
|
|
3
|
+
// docx4j) - produces a document without them. `pkg.styles.ensure(ids)` splices them in when a caller
|
|
4
|
+
// needs one: inserting a footnote into such a document otherwise shows the note in Normal
|
|
5
|
+
// (CR-002 section 22.2).
|
|
6
|
+
//
|
|
7
|
+
// Taken verbatim from the two comments in
|
|
8
|
+
// docx4j-core/src/main/resources/org/docx4j/openpackaging/parts/WordprocessingML/styles.xml
|
|
9
|
+
// (a UTF-16 file; docx4j VERSION_17_3_0), which is where Word's own definitions of these came from.
|
|
10
|
+
// 9 styles: BlockText, EndnoteText, EndnoteTextChar, Footer, FooterChar, FootnoteText, FootnoteTextChar, FootnoteReference, EndnoteReference.
|
|
11
|
+
export const SPLICEABLE_STYLES_XML = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
12
|
+
<w:styles xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
13
|
+
<w:style w:type="paragraph" w:styleId="BlockText">
|
|
14
|
+
<w:name w:val="Block Text" />
|
|
15
|
+
<w:basedOn w:val="Normal" />
|
|
16
|
+
<w:uiPriority w:val="99" />
|
|
17
|
+
<w:unhideWhenUsed />
|
|
18
|
+
<w:rsid w:val="00841CD9" />
|
|
19
|
+
<w:pPr>
|
|
20
|
+
<w:pBdr>
|
|
21
|
+
<w:top w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
|
|
22
|
+
<w:left w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
|
|
23
|
+
<w:bottom w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
|
|
24
|
+
<w:right w:val="single" w:sz="2" w:space="10" w:color="4F81BD" w:themeColor="accent1" w:shadow="1" />
|
|
25
|
+
</w:pBdr>
|
|
26
|
+
<w:ind w:left="1152" w:right="1152" />
|
|
27
|
+
</w:pPr>
|
|
28
|
+
<w:rPr>
|
|
29
|
+
<w:rFonts w:eastAsiaTheme="minorEastAsia" />
|
|
30
|
+
<w:i />
|
|
31
|
+
<w:iCs />
|
|
32
|
+
<w:color w:val="4F81BD" w:themeColor="accent1" />
|
|
33
|
+
</w:rPr>
|
|
34
|
+
</w:style>
|
|
35
|
+
<w:style w:type="paragraph" w:styleId="EndnoteText">
|
|
36
|
+
<w:name w:val="endnote text" />
|
|
37
|
+
<w:basedOn w:val="Normal" />
|
|
38
|
+
<w:link w:val="EndnoteTextChar" />
|
|
39
|
+
<w:uiPriority w:val="99" />
|
|
40
|
+
<w:unhideWhenUsed />
|
|
41
|
+
<w:rsid w:val="00841CD9" />
|
|
42
|
+
<w:rPr>
|
|
43
|
+
<w:sz w:val="20" />
|
|
44
|
+
<w:szCs w:val="20" />
|
|
45
|
+
</w:rPr>
|
|
46
|
+
</w:style>
|
|
47
|
+
<w:style w:type="character" w:customStyle="1" w:styleId="EndnoteTextChar">
|
|
48
|
+
<w:name w:val="Endnote Text Char" />
|
|
49
|
+
<w:basedOn w:val="DefaultParagraphFont" />
|
|
50
|
+
<w:link w:val="EndnoteText" />
|
|
51
|
+
<w:uiPriority w:val="99" />
|
|
52
|
+
<w:rsid w:val="00841CD9" />
|
|
53
|
+
<w:rPr>
|
|
54
|
+
<w:sz w:val="20" />
|
|
55
|
+
<w:szCs w:val="20" />
|
|
56
|
+
</w:rPr>
|
|
57
|
+
</w:style>
|
|
58
|
+
<w:style w:type="paragraph" w:styleId="Footer">
|
|
59
|
+
<w:name w:val="footer" />
|
|
60
|
+
<w:basedOn w:val="Normal" />
|
|
61
|
+
<w:link w:val="FooterChar" />
|
|
62
|
+
<w:uiPriority w:val="99" />
|
|
63
|
+
<w:unhideWhenUsed />
|
|
64
|
+
<w:rsid w:val="00841CD9" />
|
|
65
|
+
<w:pPr>
|
|
66
|
+
<w:tabs>
|
|
67
|
+
<w:tab w:val="center" w:pos="4680" />
|
|
68
|
+
<w:tab w:val="right" w:pos="9360" />
|
|
69
|
+
</w:tabs>
|
|
70
|
+
</w:pPr>
|
|
71
|
+
</w:style>
|
|
72
|
+
<w:style w:type="character" w:customStyle="1" w:styleId="FooterChar">
|
|
73
|
+
<w:name w:val="Footer Char" />
|
|
74
|
+
<w:basedOn w:val="DefaultParagraphFont" />
|
|
75
|
+
<w:link w:val="Footer" />
|
|
76
|
+
<w:uiPriority w:val="99" />
|
|
77
|
+
<w:rsid w:val="00841CD9" />
|
|
78
|
+
</w:style>
|
|
79
|
+
<w:style w:type="paragraph" w:styleId="FootnoteText">
|
|
80
|
+
<w:name w:val="footnote text" />
|
|
81
|
+
<w:basedOn w:val="Normal" />
|
|
82
|
+
<w:link w:val="FootnoteTextChar" />
|
|
83
|
+
<w:uiPriority w:val="99" />
|
|
84
|
+
<w:unhideWhenUsed />
|
|
85
|
+
<w:rsid w:val="00841CD9" />
|
|
86
|
+
<w:rPr>
|
|
87
|
+
<w:sz w:val="20" />
|
|
88
|
+
<w:szCs w:val="20" />
|
|
89
|
+
</w:rPr>
|
|
90
|
+
</w:style>
|
|
91
|
+
<w:style w:type="character" w:customStyle="1" w:styleId="FootnoteTextChar">
|
|
92
|
+
<w:name w:val="Footnote Text Char" />
|
|
93
|
+
<w:basedOn w:val="DefaultParagraphFont" />
|
|
94
|
+
<w:link w:val="FootnoteText" />
|
|
95
|
+
<w:uiPriority w:val="99" />
|
|
96
|
+
<w:rsid w:val="00841CD9" />
|
|
97
|
+
<w:rPr>
|
|
98
|
+
<w:sz w:val="20" />
|
|
99
|
+
<w:szCs w:val="20" />
|
|
100
|
+
</w:rPr>
|
|
101
|
+
</w:style>
|
|
102
|
+
<w:style w:type="character" w:styleId="FootnoteReference">
|
|
103
|
+
<w:name w:val="footnote reference" />
|
|
104
|
+
<w:basedOn w:val="DefaultParagraphFont" />
|
|
105
|
+
<w:uiPriority w:val="99" />
|
|
106
|
+
<w:unhideWhenUsed />
|
|
107
|
+
<w:rsid w:val="00D1197D" />
|
|
108
|
+
<w:rPr>
|
|
109
|
+
<w:vertAlign w:val="superscript" />
|
|
110
|
+
</w:rPr>
|
|
111
|
+
</w:style>
|
|
112
|
+
<w:style w:type="character" w:styleId="EndnoteReference">
|
|
113
|
+
<w:name w:val="endnote reference" />
|
|
114
|
+
<w:basedOn w:val="DefaultParagraphFont" />
|
|
115
|
+
<w:uiPriority w:val="99" />
|
|
116
|
+
<w:unhideWhenUsed />
|
|
117
|
+
<w:rsid w:val="00D1197D" />
|
|
118
|
+
<w:rPr>
|
|
119
|
+
<w:vertAlign w:val="superscript" />
|
|
120
|
+
</w:rPr>
|
|
121
|
+
</w:style>
|
|
122
|
+
</w:styles>`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docx4j/core-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "docx4j-core for TypeScript: Open Packaging (docx/pptx/xlsx zip and flat OPC), typed parts and relationships, style, numbering and font resolution over @docx4j/generated-objects-ts. Node, browsers, Word add-ins.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"license": "Apache-2.0",
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@docx4j/generated-objects-ts": "^0.
|
|
82
|
+
"@docx4j/generated-objects-ts": "^0.3.0",
|
|
83
83
|
"fflate": "^0.8.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|