@office-open/docx 0.6.5 → 0.6.6
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 +43 -50
- package/dist/{index.d.mts → index.d.ts} +13 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/{index.mjs → index.js} +802 -830
- package/dist/index.js.map +1 -0
- package/package.json +8 -8
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- /package/dist/{chunk-090QGkrx.mjs → chunk-DJOrGtkp.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { i as __toCommonJS, n as __exportAll, r as __reExport, t as __esmMin } from "./chunk-
|
|
2
|
-
import { AppProperties, BaseXmlComponent, BuilderElement, BuilderElement as BuilderElement$1, DOCX_NS, EMPTY_OBJECT, EmptyElement, Formatter, Formatter as Formatter$1, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, NextAttributeComponent, OoxmlMimeType,
|
|
3
|
-
import {
|
|
1
|
+
import { i as __toCommonJS, n as __exportAll, r as __reExport, t as __esmMin } from "./chunk-DJOrGtkp.js";
|
|
2
|
+
import { AppProperties, BaseXmlComponent, BuilderElement, BuilderElement as BuilderElement$1, DOCX_NS, EMPTY_OBJECT, EmptyElement, Formatter, Formatter as Formatter$1, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, NextAttributeComponent, OoxmlMimeType, RawPassthrough, Relationships, TargetModeType, XmlAttributeComponent, XmlAttributeComponent as XmlAttributeComponent$1, XmlComponent, ZIP_STORED_LEVEL, addSmartArtRelationships, appendContentType, appendRelationship, attrObj, chartAttr, convertEmuToPixels, convertInchesToTwip, convertMillimetersToTwip, convertPixelsToEmu, convertToXmlComponent, createDefault, createOverride, createPacker, createReplacer, createTraverser, getNextRelationshipIndex, getReferencedMedia, hasPlaceholders, hashedId, hpsMeasureObj, hpsMeasureObj as hpsMeasureObj$1, numberValObj, numberValObj as numberValObj$1, onOffObj, onOffObj as onOffObj$1, parseArchive, parseCorePropsElement, replaceChartPlaceholders, replaceImagePlaceholders, replaceSmartArtPlaceholders, strFromU8, stringContainerObj, stringEnumValObj, stringEnumValObj as stringEnumValObj$1, stringValObj, stringValObj as stringValObj$1, toJson, uniqueId, uniqueNumericIdCreator, uniqueNumericIdCreator as uniqueNumericIdCreator$1, uniqueUuid, unzipSync, wrapEl, xsdVerticalMergeRev, zipAndConvert } from "@office-open/core";
|
|
3
|
+
import { attr, attrBool, attrNum, children, colorAttr, findChild, findDeep, js2xml, textOf, xml, xml2js } from "@office-open/xml";
|
|
4
|
+
import { toUint8Array } from "undio";
|
|
4
5
|
import { PresetGeometry, buildFill, createBlipFill, createCustomGeometry, createEffectDag, createEffectList, createOutline, createScene3D, createShape3D, createTransform2D, extractBlipFillMedia } from "@office-open/core/drawingml";
|
|
5
6
|
import { ChartCollection, ChartSpace } from "@office-open/core/chart";
|
|
6
7
|
import { COLOR_CATEGORIES, DEFAULT_DRAWING_XML, LAYOUT_CATEGORIES, STYLE_CATEGORIES, SmartArtCollection, createDataModel, getColorXml, getLayoutXml, getStyleXml } from "@office-open/core/smartart";
|
|
7
|
-
import { attr, attrBool, attrNum, children, colorAttr, findChild, findDeep, js2xml, textOf, xml, xml2js } from "@office-open/xml";
|
|
8
8
|
export * from "@office-open/core/values";
|
|
9
9
|
export * from "@office-open/core/smartart";
|
|
10
10
|
//#region src/file/xml-components/base.ts
|
|
11
|
-
var init_base = __esmMin((
|
|
11
|
+
var init_base = __esmMin(() => {});
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/file/xml-components/attributes.ts
|
|
14
14
|
/**
|
|
@@ -20,7 +20,7 @@ var init_base = __esmMin((() => {}));
|
|
|
20
20
|
* @module
|
|
21
21
|
*/
|
|
22
22
|
var Attributes;
|
|
23
|
-
var init_attributes = __esmMin((
|
|
23
|
+
var init_attributes = __esmMin(() => {
|
|
24
24
|
Attributes = class extends XmlAttributeComponent$1 {
|
|
25
25
|
xmlKeys = {
|
|
26
26
|
bottom: "w:bottom",
|
|
@@ -48,7 +48,7 @@ var init_attributes = __esmMin((() => {
|
|
|
48
48
|
w: "w:w"
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
})
|
|
51
|
+
});
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/file/xml-components/simple-elements.ts
|
|
54
54
|
/**
|
|
@@ -57,7 +57,7 @@ var init_attributes = __esmMin((() => {
|
|
|
57
57
|
* @module
|
|
58
58
|
*/
|
|
59
59
|
var createStringElement;
|
|
60
|
-
var init_simple_elements = __esmMin((
|
|
60
|
+
var init_simple_elements = __esmMin(() => {
|
|
61
61
|
createStringElement = (name, value) => new BuilderElement$1({
|
|
62
62
|
attributes: { value: {
|
|
63
63
|
key: "w:val",
|
|
@@ -65,18 +65,18 @@ var init_simple_elements = __esmMin((() => {
|
|
|
65
65
|
} },
|
|
66
66
|
name
|
|
67
67
|
});
|
|
68
|
-
})
|
|
68
|
+
});
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/file/xml-components/index.ts
|
|
71
|
-
var init_xml_components = __esmMin((
|
|
71
|
+
var init_xml_components = __esmMin(() => {
|
|
72
72
|
init_base();
|
|
73
73
|
init_attributes();
|
|
74
74
|
init_simple_elements();
|
|
75
|
-
})
|
|
75
|
+
});
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/file/paragraph/formatting/alignment.ts
|
|
78
78
|
var AlignmentType, createAlignment;
|
|
79
|
-
var init_alignment$1 = __esmMin((
|
|
79
|
+
var init_alignment$1 = __esmMin(() => {
|
|
80
80
|
init_xml_components();
|
|
81
81
|
AlignmentType = {
|
|
82
82
|
/** Align Start */
|
|
@@ -113,17 +113,17 @@ var init_alignment$1 = __esmMin((() => {
|
|
|
113
113
|
} },
|
|
114
114
|
name: "w:jc"
|
|
115
115
|
});
|
|
116
|
-
})
|
|
116
|
+
});
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/util/values.ts
|
|
119
119
|
var values_exports = /* @__PURE__ */ __exportAll({});
|
|
120
120
|
import * as import__office_open_core_values from "@office-open/core/values";
|
|
121
121
|
__reExport(values_exports, import__office_open_core_values);
|
|
122
|
-
var init_values = __esmMin((
|
|
122
|
+
var init_values = __esmMin(() => {});
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/file/border/border.ts
|
|
125
125
|
var buildBorderObj, createBorderElement, BorderStyle;
|
|
126
|
-
var init_border$2 = __esmMin((
|
|
126
|
+
var init_border$2 = __esmMin(() => {
|
|
127
127
|
init_xml_components();
|
|
128
128
|
init_values();
|
|
129
129
|
buildBorderObj = (elementName, { color, size, space, style, themeColor, themeTint, themeShade, shadow, frame }) => {
|
|
@@ -236,12 +236,12 @@ var init_border$2 = __esmMin((() => {
|
|
|
236
236
|
/** A wavy line */
|
|
237
237
|
WAVE: "wave"
|
|
238
238
|
};
|
|
239
|
-
})
|
|
239
|
+
});
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/file/border/index.ts
|
|
242
|
-
var init_border$1 = __esmMin((
|
|
242
|
+
var init_border$1 = __esmMin(() => {
|
|
243
243
|
init_border$2();
|
|
244
|
-
})
|
|
244
|
+
});
|
|
245
245
|
//#endregion
|
|
246
246
|
//#region src/file/paragraph/formatting/border.ts
|
|
247
247
|
/**
|
|
@@ -268,7 +268,7 @@ function buildThematicBreakObj() {
|
|
|
268
268
|
})] };
|
|
269
269
|
}
|
|
270
270
|
var Border, ThematicBreak;
|
|
271
|
-
var init_border = __esmMin((
|
|
271
|
+
var init_border = __esmMin(() => {
|
|
272
272
|
init_border$1();
|
|
273
273
|
init_xml_components();
|
|
274
274
|
Border = class extends IgnoreIfEmptyXmlComponent {
|
|
@@ -293,11 +293,11 @@ var init_border = __esmMin((() => {
|
|
|
293
293
|
this.root.push(bottom);
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
|
-
})
|
|
296
|
+
});
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region src/file/paragraph/formatting/cnf-style.ts
|
|
299
299
|
var createCnfStyle, buildCnfStyleObj;
|
|
300
|
-
var init_cnf_style = __esmMin((
|
|
300
|
+
var init_cnf_style = __esmMin(() => {
|
|
301
301
|
init_xml_components();
|
|
302
302
|
createCnfStyle = (options) => {
|
|
303
303
|
const attributes = {};
|
|
@@ -368,11 +368,11 @@ var init_cnf_style = __esmMin((() => {
|
|
|
368
368
|
"w:lastRowFirstColumn": options.lastRowFirstColumn !== void 0 ? options.lastRowFirstColumn ? "1" : "0" : void 0,
|
|
369
369
|
"w:lastRowLastColumn": options.lastRowLastColumn !== void 0 ? options.lastRowLastColumn ? "1" : "0" : void 0
|
|
370
370
|
});
|
|
371
|
-
})
|
|
371
|
+
});
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/file/paragraph/formatting/indent.ts
|
|
374
374
|
var createIndent, buildIndentObj;
|
|
375
|
-
var init_indent = __esmMin((
|
|
375
|
+
var init_indent = __esmMin(() => {
|
|
376
376
|
init_xml_components();
|
|
377
377
|
init_values();
|
|
378
378
|
createIndent = ({ start, startChars, end, endChars, left, leftChars, right, rightChars, hanging, hangingChars, firstLine, firstLineChars }) => new BuilderElement({
|
|
@@ -442,11 +442,11 @@ var init_indent = __esmMin((() => {
|
|
|
442
442
|
"w:firstLine": firstLine !== void 0 ? (0, values_exports.twipsMeasureValue)(firstLine) : void 0,
|
|
443
443
|
"w:firstLineChars": firstLineChars !== void 0 ? (0, values_exports.decimalNumber)(firstLineChars) : void 0
|
|
444
444
|
});
|
|
445
|
-
})
|
|
445
|
+
});
|
|
446
446
|
//#endregion
|
|
447
447
|
//#region src/file/paragraph/run/break.ts
|
|
448
448
|
var createBreak;
|
|
449
|
-
var init_break$1 = __esmMin((
|
|
449
|
+
var init_break$1 = __esmMin(() => {
|
|
450
450
|
init_xml_components();
|
|
451
451
|
createBreak = (options) => new BuilderElement({
|
|
452
452
|
name: "w:br",
|
|
@@ -455,11 +455,11 @@ var init_break$1 = __esmMin((() => {
|
|
|
455
455
|
value: options.clear
|
|
456
456
|
}] : void 0
|
|
457
457
|
});
|
|
458
|
-
})
|
|
458
|
+
});
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/file/paragraph/run/form-field.ts
|
|
461
461
|
var FormFieldTextType, createFormFieldText, createCheckBox, createDropDownList, createTextInput, createFormFieldData;
|
|
462
|
-
var init_form_field = __esmMin((
|
|
462
|
+
var init_form_field = __esmMin(() => {
|
|
463
463
|
init_xml_components();
|
|
464
464
|
FormFieldTextType = {
|
|
465
465
|
/** Regular text input */
|
|
@@ -617,11 +617,11 @@ var init_form_field = __esmMin((() => {
|
|
|
617
617
|
name: "w:ffData"
|
|
618
618
|
});
|
|
619
619
|
};
|
|
620
|
-
})
|
|
620
|
+
});
|
|
621
621
|
//#endregion
|
|
622
622
|
//#region src/file/paragraph/run/field.ts
|
|
623
623
|
var FieldCharacterType, createFieldChar, createBegin, createSeparate, createEnd;
|
|
624
|
-
var init_field = __esmMin((
|
|
624
|
+
var init_field = __esmMin(() => {
|
|
625
625
|
init_xml_components();
|
|
626
626
|
init_form_field();
|
|
627
627
|
FieldCharacterType = {
|
|
@@ -650,7 +650,7 @@ var init_field = __esmMin((() => {
|
|
|
650
650
|
createBegin = (dirty, formField) => createFieldChar(FieldCharacterType.BEGIN, dirty, formField ? createFormFieldData(formField) : void 0);
|
|
651
651
|
createSeparate = (dirty) => createFieldChar(FieldCharacterType.SEPARATE, dirty);
|
|
652
652
|
createEnd = (dirty) => createFieldChar(FieldCharacterType.END, dirty);
|
|
653
|
-
})
|
|
653
|
+
});
|
|
654
654
|
//#endregion
|
|
655
655
|
//#region src/file/paragraph/run/page-number.ts
|
|
656
656
|
/**
|
|
@@ -662,17 +662,17 @@ function buildInstrText(instruction) {
|
|
|
662
662
|
return { "w:instrText": [INSTR_TEXT_ATTRS, instruction] };
|
|
663
663
|
}
|
|
664
664
|
var INSTR_TEXT_ATTRS, buildPage, buildNumberOfPages, buildNumberOfPagesSection, buildCurrentSection;
|
|
665
|
-
var init_page_number = __esmMin((
|
|
665
|
+
var init_page_number = __esmMin(() => {
|
|
666
666
|
INSTR_TEXT_ATTRS = { _attr: { "xml:space": "preserve" } };
|
|
667
667
|
buildPage = () => buildInstrText("PAGE");
|
|
668
668
|
buildNumberOfPages = () => buildInstrText("NUMPAGES");
|
|
669
669
|
buildNumberOfPagesSection = () => buildInstrText("SECTIONPAGES");
|
|
670
670
|
buildCurrentSection = () => buildInstrText("SECTION");
|
|
671
|
-
})
|
|
671
|
+
});
|
|
672
672
|
//#endregion
|
|
673
673
|
//#region src/file/shading/shading.ts
|
|
674
674
|
var createShading, buildShadingObj, ShadingType;
|
|
675
|
-
var init_shading$1 = __esmMin((
|
|
675
|
+
var init_shading$1 = __esmMin(() => {
|
|
676
676
|
init_xml_components();
|
|
677
677
|
init_values();
|
|
678
678
|
createShading = ({ fill, color, type, themeColor, themeTint, themeShade, themeFill, themeFillTint, themeFillShade }) => new BuilderElement({
|
|
@@ -767,16 +767,16 @@ var init_shading$1 = __esmMin((() => {
|
|
|
767
767
|
THIN_VERTICAL_STRIPE: "thinVertStripe",
|
|
768
768
|
VERTICAL_STRIPE: "vertStripe"
|
|
769
769
|
};
|
|
770
|
-
})
|
|
770
|
+
});
|
|
771
771
|
//#endregion
|
|
772
772
|
//#region src/file/shading/index.ts
|
|
773
|
-
var init_shading = __esmMin((
|
|
773
|
+
var init_shading = __esmMin(() => {
|
|
774
774
|
init_shading$1();
|
|
775
|
-
})
|
|
775
|
+
});
|
|
776
776
|
//#endregion
|
|
777
777
|
//#region src/file/track-revision/track-revision-components/deletion-track-change.ts
|
|
778
778
|
var DeletionTrackChange;
|
|
779
|
-
var init_deletion_track_change = __esmMin((
|
|
779
|
+
var init_deletion_track_change = __esmMin(() => {
|
|
780
780
|
init_xml_components();
|
|
781
781
|
DeletionTrackChange = class extends XmlComponent {
|
|
782
782
|
constructor(options) {
|
|
@@ -788,11 +788,11 @@ var init_deletion_track_change = __esmMin((() => {
|
|
|
788
788
|
} });
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
|
-
})
|
|
791
|
+
});
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region src/file/track-revision/track-revision-components/insertion-track-change.ts
|
|
794
794
|
var InsertionTrackChange;
|
|
795
|
-
var init_insertion_track_change = __esmMin((
|
|
795
|
+
var init_insertion_track_change = __esmMin(() => {
|
|
796
796
|
init_xml_components();
|
|
797
797
|
InsertionTrackChange = class extends XmlComponent {
|
|
798
798
|
constructor(options) {
|
|
@@ -804,11 +804,11 @@ var init_insertion_track_change = __esmMin((() => {
|
|
|
804
804
|
} });
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
|
-
})
|
|
807
|
+
});
|
|
808
808
|
//#endregion
|
|
809
809
|
//#region src/file/paragraph/run/east-asian-layout.ts
|
|
810
810
|
var buildEastAsianLayoutObj;
|
|
811
|
-
var init_east_asian_layout = __esmMin((
|
|
811
|
+
var init_east_asian_layout = __esmMin(() => {
|
|
812
812
|
init_xml_components();
|
|
813
813
|
init_values();
|
|
814
814
|
buildEastAsianLayoutObj = ({ id, combine, combineBrackets, vert, vertCompress }) => attrObj("w:eastAsianLayout", {
|
|
@@ -818,11 +818,11 @@ var init_east_asian_layout = __esmMin((() => {
|
|
|
818
818
|
"w:vert": vert,
|
|
819
819
|
"w:vertCompress": vertCompress
|
|
820
820
|
});
|
|
821
|
-
})
|
|
821
|
+
});
|
|
822
822
|
//#endregion
|
|
823
823
|
//#region src/file/paragraph/run/emphasis-mark.ts
|
|
824
824
|
var EmphasisMarkType, createEmphasisMark, createDotEmphasisMark, buildEmphasisMarkObj;
|
|
825
|
-
var init_emphasis_mark = __esmMin((
|
|
825
|
+
var init_emphasis_mark = __esmMin(() => {
|
|
826
826
|
init_xml_components();
|
|
827
827
|
EmphasisMarkType = {
|
|
828
828
|
/** No emphasis mark */
|
|
@@ -845,11 +845,11 @@ var init_emphasis_mark = __esmMin((() => {
|
|
|
845
845
|
});
|
|
846
846
|
createDotEmphasisMark = () => createEmphasisMark(EmphasisMarkType.DOT);
|
|
847
847
|
buildEmphasisMarkObj = (emphasisMarkType = EmphasisMarkType.DOT) => attrObj("w:em", { "w:val": emphasisMarkType });
|
|
848
|
-
})
|
|
848
|
+
});
|
|
849
849
|
//#endregion
|
|
850
850
|
//#region src/file/paragraph/run/formatting.ts
|
|
851
851
|
var buildCharacterSpacingObj, buildColorObj, buildHighlightObj, buildHighlightComplexScriptObj;
|
|
852
|
-
var init_formatting$1 = __esmMin((
|
|
852
|
+
var init_formatting$1 = __esmMin(() => {
|
|
853
853
|
init_xml_components();
|
|
854
854
|
init_values();
|
|
855
855
|
buildCharacterSpacingObj = (value) => attrObj("w:spacing", { "w:val": (0, values_exports.signedTwipsMeasureValue)(value) });
|
|
@@ -865,22 +865,22 @@ var init_formatting$1 = __esmMin((() => {
|
|
|
865
865
|
};
|
|
866
866
|
buildHighlightObj = (color) => attrObj("w:highlight", { "w:val": color });
|
|
867
867
|
buildHighlightComplexScriptObj = (color) => attrObj("w:highlightCs", { "w:val": color });
|
|
868
|
-
})
|
|
868
|
+
});
|
|
869
869
|
//#endregion
|
|
870
870
|
//#region src/file/paragraph/run/language.ts
|
|
871
871
|
var buildLanguageObj;
|
|
872
|
-
var init_language = __esmMin((
|
|
872
|
+
var init_language = __esmMin(() => {
|
|
873
873
|
init_xml_components();
|
|
874
874
|
buildLanguageObj = (options) => attrObj("w:lang", {
|
|
875
875
|
"w:bidi": options.bidirectional,
|
|
876
876
|
"w:eastAsia": options.eastAsia,
|
|
877
877
|
"w:val": options.value
|
|
878
878
|
});
|
|
879
|
-
})
|
|
879
|
+
});
|
|
880
880
|
//#endregion
|
|
881
881
|
//#region src/file/paragraph/run/run-fonts.ts
|
|
882
882
|
var createRunFonts, buildRunFontsObj;
|
|
883
|
-
var init_run_fonts = __esmMin((
|
|
883
|
+
var init_run_fonts = __esmMin(() => {
|
|
884
884
|
init_xml_components();
|
|
885
885
|
createRunFonts = (nameOrAttrs, hint) => {
|
|
886
886
|
if (typeof nameOrAttrs === "string") {
|
|
@@ -978,11 +978,11 @@ var init_run_fonts = __esmMin((() => {
|
|
|
978
978
|
"w:hint": attrs.hint
|
|
979
979
|
});
|
|
980
980
|
};
|
|
981
|
-
})
|
|
981
|
+
});
|
|
982
982
|
//#endregion
|
|
983
983
|
//#region src/file/paragraph/run/underline.ts
|
|
984
984
|
var UnderlineType, createUnderline, buildUnderlineObj;
|
|
985
|
-
var init_underline = __esmMin((
|
|
985
|
+
var init_underline = __esmMin(() => {
|
|
986
986
|
init_xml_components();
|
|
987
987
|
init_values();
|
|
988
988
|
UnderlineType = {
|
|
@@ -1055,7 +1055,7 @@ var init_underline = __esmMin((() => {
|
|
|
1055
1055
|
"w:themeTint": themeTint === void 0 ? void 0 : (0, values_exports.uCharHexNumber)(themeTint),
|
|
1056
1056
|
"w:val": underlineType
|
|
1057
1057
|
});
|
|
1058
|
-
})
|
|
1058
|
+
});
|
|
1059
1059
|
//#endregion
|
|
1060
1060
|
//#region src/file/paragraph/run/properties.ts
|
|
1061
1061
|
/**
|
|
@@ -1126,7 +1126,7 @@ function buildRunProperties(options) {
|
|
|
1126
1126
|
return children.length > 0 ? { "w:rPr": children } : void 0;
|
|
1127
1127
|
}
|
|
1128
1128
|
var TextEffect, HighlightColor, RunProperties, ParagraphRunProperties, RunPropertiesChange;
|
|
1129
|
-
var init_properties$1 = __esmMin((
|
|
1129
|
+
var init_properties$1 = __esmMin(() => {
|
|
1130
1130
|
init_border$1();
|
|
1131
1131
|
init_shading();
|
|
1132
1132
|
init_deletion_track_change();
|
|
@@ -1222,11 +1222,11 @@ var init_properties$1 = __esmMin((() => {
|
|
|
1222
1222
|
this.addChildElement(new RunProperties(options));
|
|
1223
1223
|
}
|
|
1224
1224
|
};
|
|
1225
|
-
})
|
|
1225
|
+
});
|
|
1226
1226
|
//#endregion
|
|
1227
1227
|
//#region src/file/shared/alignment.ts
|
|
1228
1228
|
var HorizontalPositionAlign, VerticalPositionAlign;
|
|
1229
|
-
var init_alignment = __esmMin((
|
|
1229
|
+
var init_alignment = __esmMin(() => {
|
|
1230
1230
|
HorizontalPositionAlign = {
|
|
1231
1231
|
/** Center horizontally */
|
|
1232
1232
|
CENTER: "center",
|
|
@@ -1251,11 +1251,11 @@ var init_alignment = __esmMin((() => {
|
|
|
1251
1251
|
/** Align to top */
|
|
1252
1252
|
TOP: "top"
|
|
1253
1253
|
};
|
|
1254
|
-
})
|
|
1254
|
+
});
|
|
1255
1255
|
//#endregion
|
|
1256
1256
|
//#region src/file/shared/number-format.ts
|
|
1257
1257
|
var NumberFormat;
|
|
1258
|
-
var init_number_format = __esmMin((
|
|
1258
|
+
var init_number_format = __esmMin(() => {
|
|
1259
1259
|
NumberFormat = {
|
|
1260
1260
|
AIUEO: "aiueo",
|
|
1261
1261
|
AIUEO_FULL_WIDTH: "aiueoFullWidth",
|
|
@@ -1320,23 +1320,23 @@ var init_number_format = __esmMin((() => {
|
|
|
1320
1320
|
UPPER_ROMAN: "upperRoman",
|
|
1321
1321
|
VIETNAMESE_COUNTING: "vietnameseCounting"
|
|
1322
1322
|
};
|
|
1323
|
-
})
|
|
1323
|
+
});
|
|
1324
1324
|
//#endregion
|
|
1325
1325
|
//#region src/file/shared/space-type.ts
|
|
1326
1326
|
var SpaceType;
|
|
1327
|
-
var init_space_type = __esmMin((
|
|
1327
|
+
var init_space_type = __esmMin(() => {
|
|
1328
1328
|
SpaceType = {
|
|
1329
1329
|
DEFAULT: "default",
|
|
1330
1330
|
PRESERVE: "preserve"
|
|
1331
1331
|
};
|
|
1332
|
-
})
|
|
1332
|
+
});
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region src/file/shared/index.ts
|
|
1335
|
-
var init_shared = __esmMin((
|
|
1335
|
+
var init_shared = __esmMin(() => {
|
|
1336
1336
|
init_alignment();
|
|
1337
1337
|
init_number_format();
|
|
1338
1338
|
init_space_type();
|
|
1339
|
-
})
|
|
1339
|
+
});
|
|
1340
1340
|
//#endregion
|
|
1341
1341
|
//#region src/file/paragraph/run/run-components/text.ts
|
|
1342
1342
|
/**
|
|
@@ -1351,13 +1351,13 @@ function buildText(options) {
|
|
|
1351
1351
|
if (typeof options === "string") return { "w:t": [{ _attr: { "xml:space": SpaceType.PRESERVE } }, options] };
|
|
1352
1352
|
return { "w:t": [{ _attr: { "xml:space": options.space ?? SpaceType.DEFAULT } }, options.text ?? ""] };
|
|
1353
1353
|
}
|
|
1354
|
-
var init_text = __esmMin((
|
|
1354
|
+
var init_text = __esmMin(() => {
|
|
1355
1355
|
init_shared();
|
|
1356
|
-
})
|
|
1356
|
+
});
|
|
1357
1357
|
//#endregion
|
|
1358
1358
|
//#region src/file/paragraph/run/run.ts
|
|
1359
1359
|
var PageNumber, Run;
|
|
1360
|
-
var init_run$1 = __esmMin((
|
|
1360
|
+
var init_run$1 = __esmMin(() => {
|
|
1361
1361
|
init_xml_components();
|
|
1362
1362
|
init_break$1();
|
|
1363
1363
|
init_field();
|
|
@@ -1443,19 +1443,27 @@ var init_run$1 = __esmMin((() => {
|
|
|
1443
1443
|
} else children.push(child);
|
|
1444
1444
|
return { "w:r": children.length > 0 ? children : {} };
|
|
1445
1445
|
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Fast path: pre-built object → xml() string. Slow path: prepForXml → xml.
|
|
1448
|
+
*/
|
|
1449
|
+
toXml(context) {
|
|
1450
|
+
if (this._prebuilt && this.extraChildren.length === 0) return xml(this._prebuilt);
|
|
1451
|
+
const obj = this.prepForXml(context);
|
|
1452
|
+
return obj ? xml(obj) : "";
|
|
1453
|
+
}
|
|
1446
1454
|
};
|
|
1447
|
-
})
|
|
1455
|
+
});
|
|
1448
1456
|
//#endregion
|
|
1449
1457
|
//#region src/file/paragraph/run/text-run.ts
|
|
1450
1458
|
var TextRun;
|
|
1451
|
-
var init_text_run = __esmMin((
|
|
1459
|
+
var init_text_run = __esmMin(() => {
|
|
1452
1460
|
init_run$1();
|
|
1453
1461
|
TextRun = class extends Run {
|
|
1454
1462
|
constructor(options) {
|
|
1455
1463
|
super(typeof options === "string" ? { text: options } : options);
|
|
1456
1464
|
}
|
|
1457
1465
|
};
|
|
1458
|
-
})
|
|
1466
|
+
});
|
|
1459
1467
|
//#endregion
|
|
1460
1468
|
//#region src/file/paragraph/run/run-components/symbol.ts
|
|
1461
1469
|
/**
|
|
@@ -1473,11 +1481,11 @@ function buildSymbol(char = "", symbolfont = "Wingdings") {
|
|
|
1473
1481
|
"w:font": symbolfont
|
|
1474
1482
|
} } };
|
|
1475
1483
|
}
|
|
1476
|
-
var init_symbol = __esmMin((
|
|
1484
|
+
var init_symbol = __esmMin(() => {});
|
|
1477
1485
|
//#endregion
|
|
1478
1486
|
//#region src/file/paragraph/run/symbol-run.ts
|
|
1479
1487
|
var SymbolRun;
|
|
1480
|
-
var init_symbol_run = __esmMin((
|
|
1488
|
+
var init_symbol_run = __esmMin(() => {
|
|
1481
1489
|
init_run$1();
|
|
1482
1490
|
init_symbol();
|
|
1483
1491
|
SymbolRun = class extends Run {
|
|
@@ -1491,20 +1499,20 @@ var init_symbol_run = __esmMin((() => {
|
|
|
1491
1499
|
this.extraChildren.push(buildSymbol(options.char, options.symbolfont));
|
|
1492
1500
|
}
|
|
1493
1501
|
};
|
|
1494
|
-
})
|
|
1502
|
+
});
|
|
1495
1503
|
//#endregion
|
|
1496
1504
|
//#region src/util/convenience-functions.ts
|
|
1497
1505
|
var abstractNumUniqueNumericIdGen, concreteNumUniqueNumericIdGen, docPropertiesUniqueNumericIdGen, bookmarkUniqueNumericIdGen;
|
|
1498
|
-
var init_convenience_functions = __esmMin((
|
|
1506
|
+
var init_convenience_functions = __esmMin(() => {
|
|
1499
1507
|
abstractNumUniqueNumericIdGen = () => uniqueNumericIdCreator$1();
|
|
1500
1508
|
concreteNumUniqueNumericIdGen = () => uniqueNumericIdCreator$1(1);
|
|
1501
1509
|
docPropertiesUniqueNumericIdGen = () => uniqueNumericIdCreator$1();
|
|
1502
1510
|
bookmarkUniqueNumericIdGen = () => uniqueNumericIdCreator$1();
|
|
1503
|
-
})
|
|
1511
|
+
});
|
|
1504
1512
|
//#endregion
|
|
1505
1513
|
//#region src/file/drawing/floating/floating-position.ts
|
|
1506
1514
|
var HorizontalPositionRelativeFrom, VerticalPositionRelativeFrom;
|
|
1507
|
-
var init_floating_position = __esmMin((
|
|
1515
|
+
var init_floating_position = __esmMin(() => {
|
|
1508
1516
|
init_alignment();
|
|
1509
1517
|
HorizontalPositionRelativeFrom = {
|
|
1510
1518
|
/**
|
|
@@ -1606,11 +1614,11 @@ var init_floating_position = __esmMin((() => {
|
|
|
1606
1614
|
*/
|
|
1607
1615
|
TOP_MARGIN: "topMargin"
|
|
1608
1616
|
};
|
|
1609
|
-
})
|
|
1617
|
+
});
|
|
1610
1618
|
//#endregion
|
|
1611
1619
|
//#region src/file/drawing/floating/simple-pos.ts
|
|
1612
1620
|
var createSimplePos;
|
|
1613
|
-
var init_simple_pos = __esmMin((
|
|
1621
|
+
var init_simple_pos = __esmMin(() => {
|
|
1614
1622
|
init_xml_components();
|
|
1615
1623
|
createSimplePos = () => new BuilderElement({
|
|
1616
1624
|
name: "wp:simplePos",
|
|
@@ -1625,31 +1633,31 @@ var init_simple_pos = __esmMin((() => {
|
|
|
1625
1633
|
}
|
|
1626
1634
|
}
|
|
1627
1635
|
});
|
|
1628
|
-
})
|
|
1636
|
+
});
|
|
1629
1637
|
//#endregion
|
|
1630
1638
|
//#region src/file/drawing/floating/align.ts
|
|
1631
1639
|
var createAlign;
|
|
1632
|
-
var init_align = __esmMin((
|
|
1640
|
+
var init_align = __esmMin(() => {
|
|
1633
1641
|
init_xml_components();
|
|
1634
1642
|
createAlign = (value) => new BuilderElement({
|
|
1635
1643
|
children: [value],
|
|
1636
1644
|
name: "wp:align"
|
|
1637
1645
|
});
|
|
1638
|
-
})
|
|
1646
|
+
});
|
|
1639
1647
|
//#endregion
|
|
1640
1648
|
//#region src/file/drawing/floating/position-offset.ts
|
|
1641
1649
|
var createPositionOffset;
|
|
1642
|
-
var init_position_offset = __esmMin((
|
|
1650
|
+
var init_position_offset = __esmMin(() => {
|
|
1643
1651
|
init_xml_components();
|
|
1644
1652
|
createPositionOffset = (offsetValue) => new BuilderElement({
|
|
1645
1653
|
children: [offsetValue.toString()],
|
|
1646
1654
|
name: "wp:posOffset"
|
|
1647
1655
|
});
|
|
1648
|
-
})
|
|
1656
|
+
});
|
|
1649
1657
|
//#endregion
|
|
1650
1658
|
//#region src/file/drawing/floating/horizontal-position.ts
|
|
1651
1659
|
var createHorizontalPosition;
|
|
1652
|
-
var init_horizontal_position = __esmMin((
|
|
1660
|
+
var init_horizontal_position = __esmMin(() => {
|
|
1653
1661
|
init_xml_components();
|
|
1654
1662
|
init_align();
|
|
1655
1663
|
init_floating_position();
|
|
@@ -1666,11 +1674,11 @@ var init_horizontal_position = __esmMin((() => {
|
|
|
1666
1674
|
})()],
|
|
1667
1675
|
name: "wp:positionH"
|
|
1668
1676
|
});
|
|
1669
|
-
})
|
|
1677
|
+
});
|
|
1670
1678
|
//#endregion
|
|
1671
1679
|
//#region src/file/drawing/floating/vertical-position.ts
|
|
1672
1680
|
var createVerticalPosition;
|
|
1673
|
-
var init_vertical_position = __esmMin((
|
|
1681
|
+
var init_vertical_position = __esmMin(() => {
|
|
1674
1682
|
init_xml_components();
|
|
1675
1683
|
init_align();
|
|
1676
1684
|
init_floating_position();
|
|
@@ -1687,40 +1695,40 @@ var init_vertical_position = __esmMin((() => {
|
|
|
1687
1695
|
})()],
|
|
1688
1696
|
name: "wp:positionV"
|
|
1689
1697
|
});
|
|
1690
|
-
})
|
|
1698
|
+
});
|
|
1691
1699
|
//#endregion
|
|
1692
1700
|
//#region src/file/drawing/floating/index.ts
|
|
1693
|
-
var init_floating = __esmMin((
|
|
1701
|
+
var init_floating = __esmMin(() => {
|
|
1694
1702
|
init_floating_position();
|
|
1695
1703
|
init_simple_pos();
|
|
1696
1704
|
init_horizontal_position();
|
|
1697
1705
|
init_vertical_position();
|
|
1698
|
-
})
|
|
1706
|
+
});
|
|
1699
1707
|
//#endregion
|
|
1700
1708
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/custom-geometry/custom-geometry.ts
|
|
1701
|
-
var init_custom_geometry = __esmMin((
|
|
1709
|
+
var init_custom_geometry = __esmMin(() => {});
|
|
1702
1710
|
//#endregion
|
|
1703
1711
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-dag.ts
|
|
1704
|
-
var init_effect_dag = __esmMin((
|
|
1712
|
+
var init_effect_dag = __esmMin(() => {});
|
|
1705
1713
|
//#endregion
|
|
1706
1714
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-list.ts
|
|
1707
|
-
var init_effect_list = __esmMin((
|
|
1715
|
+
var init_effect_list = __esmMin(() => {});
|
|
1708
1716
|
//#endregion
|
|
1709
1717
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.ts
|
|
1710
|
-
var init_outline = __esmMin((
|
|
1718
|
+
var init_outline = __esmMin(() => {});
|
|
1711
1719
|
//#endregion
|
|
1712
1720
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry.ts
|
|
1713
|
-
var init_preset_geometry = __esmMin((
|
|
1721
|
+
var init_preset_geometry = __esmMin(() => {});
|
|
1714
1722
|
//#endregion
|
|
1715
1723
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/scene-3d.ts
|
|
1716
|
-
var init_scene_3d = __esmMin((
|
|
1724
|
+
var init_scene_3d = __esmMin(() => {});
|
|
1717
1725
|
//#endregion
|
|
1718
1726
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/shape-3d.ts
|
|
1719
|
-
var init_shape_3d = __esmMin((
|
|
1727
|
+
var init_shape_3d = __esmMin(() => {});
|
|
1720
1728
|
//#endregion
|
|
1721
1729
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.ts
|
|
1722
1730
|
var ShapeProperties;
|
|
1723
|
-
var init_shape_properties = __esmMin((
|
|
1731
|
+
var init_shape_properties = __esmMin(() => {
|
|
1724
1732
|
init_xml_components();
|
|
1725
1733
|
init_custom_geometry();
|
|
1726
1734
|
init_effect_dag();
|
|
@@ -1773,11 +1781,11 @@ var init_shape_properties = __esmMin((() => {
|
|
|
1773
1781
|
return super.prepForXml(context);
|
|
1774
1782
|
}
|
|
1775
1783
|
};
|
|
1776
|
-
})
|
|
1784
|
+
});
|
|
1777
1785
|
//#endregion
|
|
1778
1786
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/body-properties.ts
|
|
1779
1787
|
var VerticalAnchor, TextVertOverflowType, TextHorzOverflowType, TextVerticalType, TextBodyWrappingType, buildOptionalAttributes, createPresetTextShape, createBodyProperties;
|
|
1780
|
-
var init_body_properties = __esmMin((
|
|
1788
|
+
var init_body_properties = __esmMin(() => {
|
|
1781
1789
|
init_xml_components();
|
|
1782
1790
|
init_scene_3d();
|
|
1783
1791
|
init_shape_3d();
|
|
@@ -1901,11 +1909,11 @@ var init_body_properties = __esmMin((() => {
|
|
|
1901
1909
|
children: children.length > 0 ? children : void 0
|
|
1902
1910
|
});
|
|
1903
1911
|
};
|
|
1904
|
-
})
|
|
1912
|
+
});
|
|
1905
1913
|
//#endregion
|
|
1906
1914
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.ts
|
|
1907
1915
|
var createNonVisualShapeProperties;
|
|
1908
|
-
var init_non_visual_shape_properties = __esmMin((
|
|
1916
|
+
var init_non_visual_shape_properties = __esmMin(() => {
|
|
1909
1917
|
init_xml_components();
|
|
1910
1918
|
createNonVisualShapeProperties = (options = { txBox: "1" }) => new BuilderElement({
|
|
1911
1919
|
attributes: { txBox: {
|
|
@@ -1914,32 +1922,32 @@ var init_non_visual_shape_properties = __esmMin((() => {
|
|
|
1914
1922
|
} },
|
|
1915
1923
|
name: "wps:cNvSpPr"
|
|
1916
1924
|
});
|
|
1917
|
-
})
|
|
1925
|
+
});
|
|
1918
1926
|
//#endregion
|
|
1919
1927
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/text-box-content.ts
|
|
1920
1928
|
var createTextBoxContent;
|
|
1921
|
-
var init_text_box_content = __esmMin((
|
|
1929
|
+
var init_text_box_content = __esmMin(() => {
|
|
1922
1930
|
init_xml_components();
|
|
1923
1931
|
createTextBoxContent = (children) => new BuilderElement({
|
|
1924
1932
|
children: [...children],
|
|
1925
1933
|
name: "wps:txbxContent"
|
|
1926
1934
|
});
|
|
1927
|
-
})
|
|
1935
|
+
});
|
|
1928
1936
|
//#endregion
|
|
1929
1937
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/wps-text-box.ts
|
|
1930
1938
|
var createWpsTextBox;
|
|
1931
|
-
var init_wps_text_box = __esmMin((
|
|
1939
|
+
var init_wps_text_box = __esmMin(() => {
|
|
1932
1940
|
init_xml_components();
|
|
1933
1941
|
init_text_box_content();
|
|
1934
1942
|
createWpsTextBox = (children) => new BuilderElement({
|
|
1935
1943
|
children: [createTextBoxContent(children)],
|
|
1936
1944
|
name: "wps:txbx"
|
|
1937
1945
|
});
|
|
1938
|
-
})
|
|
1946
|
+
});
|
|
1939
1947
|
//#endregion
|
|
1940
1948
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/wps-shape.ts
|
|
1941
1949
|
var createWpsShape;
|
|
1942
|
-
var init_wps_shape = __esmMin((
|
|
1950
|
+
var init_wps_shape = __esmMin(() => {
|
|
1943
1951
|
init_xml_components();
|
|
1944
1952
|
init_shape_properties();
|
|
1945
1953
|
init_body_properties();
|
|
@@ -1964,23 +1972,23 @@ var init_wps_shape = __esmMin((() => {
|
|
|
1964
1972
|
],
|
|
1965
1973
|
name: "wps:wsp"
|
|
1966
1974
|
});
|
|
1967
|
-
})
|
|
1975
|
+
});
|
|
1968
1976
|
//#endregion
|
|
1969
1977
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.ts
|
|
1970
|
-
var init_blip_fill = __esmMin((
|
|
1978
|
+
var init_blip_fill = __esmMin(() => {});
|
|
1971
1979
|
//#endregion
|
|
1972
1980
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/child-non-visual-pic-properties.ts
|
|
1973
1981
|
var buildChildNonVisualPropertiesObj;
|
|
1974
|
-
var init_child_non_visual_pic_properties = __esmMin((
|
|
1982
|
+
var init_child_non_visual_pic_properties = __esmMin(() => {
|
|
1975
1983
|
buildChildNonVisualPropertiesObj = () => ({ "pic:cNvPicPr": [{ _attr: { preferRelativeResize: true } }, { "a:picLocks": { _attr: {
|
|
1976
1984
|
noChangeArrowheads: 1,
|
|
1977
1985
|
noChangeAspect: 1
|
|
1978
1986
|
} } }] });
|
|
1979
|
-
})
|
|
1987
|
+
});
|
|
1980
1988
|
//#endregion
|
|
1981
1989
|
//#region src/file/drawing/doc-properties/doc-properties-children.ts
|
|
1982
1990
|
var buildHyperlinkClickObj, buildHyperlinkHoverObj;
|
|
1983
|
-
var init_doc_properties_children = __esmMin((
|
|
1991
|
+
var init_doc_properties_children = __esmMin(() => {
|
|
1984
1992
|
buildHyperlinkClickObj = (linkId, hasXmlNs) => ({ "a:hlinkClick": { _attr: {
|
|
1985
1993
|
...hasXmlNs ? { "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main" } : {},
|
|
1986
1994
|
"r:id": `rId${linkId}`
|
|
@@ -1989,11 +1997,11 @@ var init_doc_properties_children = __esmMin((() => {
|
|
|
1989
1997
|
...hasXmlNs ? { "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main" } : {},
|
|
1990
1998
|
"r:id": `rId${linkId}`
|
|
1991
1999
|
} } });
|
|
1992
|
-
})
|
|
2000
|
+
});
|
|
1993
2001
|
//#endregion
|
|
1994
2002
|
//#region src/file/paragraph/links/hyperlink.ts
|
|
1995
2003
|
var HyperlinkType, ConcreteHyperlink, InternalHyperlink, ExternalHyperlink;
|
|
1996
|
-
var init_hyperlink = __esmMin((
|
|
2004
|
+
var init_hyperlink = __esmMin(() => {
|
|
1997
2005
|
init_xml_components();
|
|
1998
2006
|
init_convenience_functions();
|
|
1999
2007
|
HyperlinkType = {
|
|
@@ -2043,14 +2051,14 @@ var init_hyperlink = __esmMin((() => {
|
|
|
2043
2051
|
this.options = options;
|
|
2044
2052
|
}
|
|
2045
2053
|
};
|
|
2046
|
-
})
|
|
2054
|
+
});
|
|
2047
2055
|
//#endregion
|
|
2048
2056
|
//#region src/file/relationships/relationship/relationship.ts
|
|
2049
|
-
var init_relationship = __esmMin((
|
|
2057
|
+
var init_relationship = __esmMin(() => {});
|
|
2050
2058
|
//#endregion
|
|
2051
2059
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties.ts
|
|
2052
2060
|
var HYPERLINK_RELATIONSHIP_TYPE$1, NonVisualProperties;
|
|
2053
|
-
var init_non_visual_properties = __esmMin((
|
|
2061
|
+
var init_non_visual_properties = __esmMin(() => {
|
|
2054
2062
|
init_doc_properties_children();
|
|
2055
2063
|
init_hyperlink();
|
|
2056
2064
|
init_relationship();
|
|
@@ -2092,11 +2100,11 @@ var init_non_visual_properties = __esmMin((() => {
|
|
|
2092
2100
|
return super.prepForXml(context);
|
|
2093
2101
|
}
|
|
2094
2102
|
};
|
|
2095
|
-
})
|
|
2103
|
+
});
|
|
2096
2104
|
//#endregion
|
|
2097
2105
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-pic-properties.ts
|
|
2098
2106
|
var NonVisualPicProperties;
|
|
2099
|
-
var init_non_visual_pic_properties = __esmMin((
|
|
2107
|
+
var init_non_visual_pic_properties = __esmMin(() => {
|
|
2100
2108
|
init_xml_components();
|
|
2101
2109
|
init_child_non_visual_pic_properties();
|
|
2102
2110
|
init_non_visual_properties();
|
|
@@ -2107,11 +2115,11 @@ var init_non_visual_pic_properties = __esmMin((() => {
|
|
|
2107
2115
|
this.root.push(buildChildNonVisualPropertiesObj());
|
|
2108
2116
|
}
|
|
2109
2117
|
};
|
|
2110
|
-
})
|
|
2118
|
+
});
|
|
2111
2119
|
//#endregion
|
|
2112
2120
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/pic.ts
|
|
2113
2121
|
var Pic;
|
|
2114
|
-
var init_pic$1 = __esmMin((
|
|
2122
|
+
var init_pic$1 = __esmMin(() => {
|
|
2115
2123
|
init_xml_components();
|
|
2116
2124
|
init_blip_fill();
|
|
2117
2125
|
init_non_visual_pic_properties();
|
|
@@ -2140,16 +2148,16 @@ var init_pic$1 = __esmMin((() => {
|
|
|
2140
2148
|
}));
|
|
2141
2149
|
}
|
|
2142
2150
|
};
|
|
2143
|
-
})
|
|
2151
|
+
});
|
|
2144
2152
|
//#endregion
|
|
2145
2153
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/index.ts
|
|
2146
|
-
var init_pic = __esmMin((
|
|
2154
|
+
var init_pic = __esmMin(() => {
|
|
2147
2155
|
init_pic$1();
|
|
2148
|
-
})
|
|
2156
|
+
});
|
|
2149
2157
|
//#endregion
|
|
2150
2158
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents.ts
|
|
2151
2159
|
var Extents;
|
|
2152
|
-
var init_extents = __esmMin((
|
|
2160
|
+
var init_extents = __esmMin(() => {
|
|
2153
2161
|
init_xml_components();
|
|
2154
2162
|
Extents = class extends XmlComponent {
|
|
2155
2163
|
constructor(x, y) {
|
|
@@ -2160,11 +2168,11 @@ var init_extents = __esmMin((() => {
|
|
|
2160
2168
|
} });
|
|
2161
2169
|
}
|
|
2162
2170
|
};
|
|
2163
|
-
})
|
|
2171
|
+
});
|
|
2164
2172
|
//#endregion
|
|
2165
2173
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.ts
|
|
2166
2174
|
var Offset;
|
|
2167
|
-
var init_off = __esmMin((
|
|
2175
|
+
var init_off = __esmMin(() => {
|
|
2168
2176
|
init_xml_components();
|
|
2169
2177
|
Offset = class extends XmlComponent {
|
|
2170
2178
|
constructor(x, y) {
|
|
@@ -2175,11 +2183,11 @@ var init_off = __esmMin((() => {
|
|
|
2175
2183
|
} });
|
|
2176
2184
|
}
|
|
2177
2185
|
};
|
|
2178
|
-
})
|
|
2186
|
+
});
|
|
2179
2187
|
//#endregion
|
|
2180
2188
|
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.ts
|
|
2181
2189
|
var createGroupForm, createGroupProperties, createNonVisualGroupProperties, createWpgGroup;
|
|
2182
|
-
var init_wpg_group = __esmMin((
|
|
2190
|
+
var init_wpg_group = __esmMin(() => {
|
|
2183
2191
|
init_xml_components();
|
|
2184
2192
|
init_effect_list();
|
|
2185
2193
|
init_extents();
|
|
@@ -2249,11 +2257,11 @@ var init_wpg_group = __esmMin((() => {
|
|
|
2249
2257
|
],
|
|
2250
2258
|
name: "wpg:wgp"
|
|
2251
2259
|
});
|
|
2252
|
-
})
|
|
2260
|
+
});
|
|
2253
2261
|
//#endregion
|
|
2254
2262
|
//#region src/file/drawing/inline/graphic/graphic-data/graphic-data.ts
|
|
2255
2263
|
var GraphicData;
|
|
2256
|
-
var init_graphic_data$1 = __esmMin((
|
|
2264
|
+
var init_graphic_data$1 = __esmMin(() => {
|
|
2257
2265
|
init_wps_shape();
|
|
2258
2266
|
init_xml_components();
|
|
2259
2267
|
init_pic();
|
|
@@ -2341,16 +2349,16 @@ var init_graphic_data$1 = __esmMin((() => {
|
|
|
2341
2349
|
}
|
|
2342
2350
|
}
|
|
2343
2351
|
};
|
|
2344
|
-
})
|
|
2352
|
+
});
|
|
2345
2353
|
//#endregion
|
|
2346
2354
|
//#region src/file/drawing/inline/graphic/graphic-data/index.ts
|
|
2347
|
-
var init_graphic_data = __esmMin((
|
|
2355
|
+
var init_graphic_data = __esmMin(() => {
|
|
2348
2356
|
init_graphic_data$1();
|
|
2349
|
-
})
|
|
2357
|
+
});
|
|
2350
2358
|
//#endregion
|
|
2351
2359
|
//#region src/file/drawing/inline/graphic/graphic.ts
|
|
2352
2360
|
var Graphic;
|
|
2353
|
-
var init_graphic$1 = __esmMin((
|
|
2361
|
+
var init_graphic$1 = __esmMin(() => {
|
|
2354
2362
|
init_xml_components();
|
|
2355
2363
|
init_graphic_data();
|
|
2356
2364
|
Graphic = class extends XmlComponent {
|
|
@@ -2371,16 +2379,16 @@ var init_graphic$1 = __esmMin((() => {
|
|
|
2371
2379
|
this.root.push(this.data);
|
|
2372
2380
|
}
|
|
2373
2381
|
};
|
|
2374
|
-
})
|
|
2382
|
+
});
|
|
2375
2383
|
//#endregion
|
|
2376
2384
|
//#region src/file/drawing/inline/graphic/index.ts
|
|
2377
|
-
var init_graphic = __esmMin((
|
|
2385
|
+
var init_graphic = __esmMin(() => {
|
|
2378
2386
|
init_graphic$1();
|
|
2379
|
-
})
|
|
2387
|
+
});
|
|
2380
2388
|
//#endregion
|
|
2381
2389
|
//#region src/file/drawing/text-wrap/text-wrapping.ts
|
|
2382
2390
|
var TextWrappingType, TextWrappingSide;
|
|
2383
|
-
var init_text_wrapping = __esmMin((
|
|
2391
|
+
var init_text_wrapping = __esmMin(() => {
|
|
2384
2392
|
TextWrappingType = {
|
|
2385
2393
|
NONE: 0,
|
|
2386
2394
|
SQUARE: 1,
|
|
@@ -2398,18 +2406,18 @@ var init_text_wrapping = __esmMin((() => {
|
|
|
2398
2406
|
/** Text wraps on the side with more space */
|
|
2399
2407
|
LARGEST: "largest"
|
|
2400
2408
|
};
|
|
2401
|
-
})
|
|
2409
|
+
});
|
|
2402
2410
|
//#endregion
|
|
2403
2411
|
//#region src/file/drawing/text-wrap/wrap-none.ts
|
|
2404
2412
|
var createWrapNone;
|
|
2405
|
-
var init_wrap_none = __esmMin((
|
|
2413
|
+
var init_wrap_none = __esmMin(() => {
|
|
2406
2414
|
init_xml_components();
|
|
2407
2415
|
createWrapNone = () => new BuilderElement({ name: "wp:wrapNone" });
|
|
2408
|
-
})
|
|
2416
|
+
});
|
|
2409
2417
|
//#endregion
|
|
2410
2418
|
//#region src/file/drawing/text-wrap/wrap-square.ts
|
|
2411
2419
|
var createWrapSquare;
|
|
2412
|
-
var init_wrap_square = __esmMin((
|
|
2420
|
+
var init_wrap_square = __esmMin(() => {
|
|
2413
2421
|
init_xml_components();
|
|
2414
2422
|
init_text_wrapping();
|
|
2415
2423
|
createWrapSquare = (textWrapping, margins = {
|
|
@@ -2442,11 +2450,11 @@ var init_wrap_square = __esmMin((() => {
|
|
|
2442
2450
|
},
|
|
2443
2451
|
name: "wp:wrapSquare"
|
|
2444
2452
|
});
|
|
2445
|
-
})
|
|
2453
|
+
});
|
|
2446
2454
|
//#endregion
|
|
2447
2455
|
//#region src/file/drawing/text-wrap/wrap-tight.ts
|
|
2448
2456
|
var createWrapPolygon$1, createWrapTight;
|
|
2449
|
-
var init_wrap_tight = __esmMin((
|
|
2457
|
+
var init_wrap_tight = __esmMin(() => {
|
|
2450
2458
|
init_xml_components();
|
|
2451
2459
|
init_text_wrapping();
|
|
2452
2460
|
createWrapPolygon$1 = (cx, cy) => new BuilderElement({
|
|
@@ -2546,11 +2554,11 @@ var init_wrap_tight = __esmMin((() => {
|
|
|
2546
2554
|
children: [createWrapPolygon$1(extent.x, extent.y)],
|
|
2547
2555
|
name: "wp:wrapTight"
|
|
2548
2556
|
});
|
|
2549
|
-
})
|
|
2557
|
+
});
|
|
2550
2558
|
//#endregion
|
|
2551
2559
|
//#region src/file/drawing/text-wrap/wrap-through.ts
|
|
2552
2560
|
var createWrapPolygon, createWrapThrough;
|
|
2553
|
-
var init_wrap_through = __esmMin((
|
|
2561
|
+
var init_wrap_through = __esmMin(() => {
|
|
2554
2562
|
init_xml_components();
|
|
2555
2563
|
init_text_wrapping();
|
|
2556
2564
|
createWrapPolygon = (cx, cy) => new BuilderElement({
|
|
@@ -2650,11 +2658,11 @@ var init_wrap_through = __esmMin((() => {
|
|
|
2650
2658
|
children: [createWrapPolygon(extent.x, extent.y)],
|
|
2651
2659
|
name: "wp:wrapThrough"
|
|
2652
2660
|
});
|
|
2653
|
-
})
|
|
2661
|
+
});
|
|
2654
2662
|
//#endregion
|
|
2655
2663
|
//#region src/file/drawing/text-wrap/wrap-top-and-bottom.ts
|
|
2656
2664
|
var createWrapTopAndBottom;
|
|
2657
|
-
var init_wrap_top_and_bottom = __esmMin((
|
|
2665
|
+
var init_wrap_top_and_bottom = __esmMin(() => {
|
|
2658
2666
|
init_xml_components();
|
|
2659
2667
|
createWrapTopAndBottom = (margins = {
|
|
2660
2668
|
bottom: 0,
|
|
@@ -2672,21 +2680,21 @@ var init_wrap_top_and_bottom = __esmMin((() => {
|
|
|
2672
2680
|
},
|
|
2673
2681
|
name: "wp:wrapTopAndBottom"
|
|
2674
2682
|
});
|
|
2675
|
-
})
|
|
2683
|
+
});
|
|
2676
2684
|
//#endregion
|
|
2677
2685
|
//#region src/file/drawing/text-wrap/index.ts
|
|
2678
|
-
var init_text_wrap = __esmMin((
|
|
2686
|
+
var init_text_wrap = __esmMin(() => {
|
|
2679
2687
|
init_text_wrapping();
|
|
2680
2688
|
init_wrap_none();
|
|
2681
2689
|
init_wrap_square();
|
|
2682
2690
|
init_wrap_tight();
|
|
2683
2691
|
init_wrap_through();
|
|
2684
2692
|
init_wrap_top_and_bottom();
|
|
2685
|
-
})
|
|
2693
|
+
});
|
|
2686
2694
|
//#endregion
|
|
2687
2695
|
//#region src/file/drawing/doc-properties/doc-properties.ts
|
|
2688
2696
|
var HYPERLINK_RELATIONSHIP_TYPE, globalDocPropertiesIdGen, DocProperties;
|
|
2689
|
-
var init_doc_properties = __esmMin((
|
|
2697
|
+
var init_doc_properties = __esmMin(() => {
|
|
2690
2698
|
init_hyperlink();
|
|
2691
2699
|
init_relationship();
|
|
2692
2700
|
init_xml_components();
|
|
@@ -2735,47 +2743,47 @@ var init_doc_properties = __esmMin((() => {
|
|
|
2735
2743
|
return super.prepForXml(context);
|
|
2736
2744
|
}
|
|
2737
2745
|
};
|
|
2738
|
-
})
|
|
2746
|
+
});
|
|
2739
2747
|
//#endregion
|
|
2740
2748
|
//#region src/file/drawing/effect-extent/effect-extent.ts
|
|
2741
2749
|
var buildEffectExtentObj;
|
|
2742
|
-
var init_effect_extent = __esmMin((
|
|
2750
|
+
var init_effect_extent = __esmMin(() => {
|
|
2743
2751
|
buildEffectExtentObj = ({ top, right, bottom, left }) => ({ "wp:effectExtent": { _attr: {
|
|
2744
2752
|
t: top,
|
|
2745
2753
|
r: right,
|
|
2746
2754
|
b: bottom,
|
|
2747
2755
|
l: left
|
|
2748
2756
|
} } });
|
|
2749
|
-
})
|
|
2757
|
+
});
|
|
2750
2758
|
//#endregion
|
|
2751
2759
|
//#region src/file/drawing/extent/extent.ts
|
|
2752
2760
|
var buildExtentObj;
|
|
2753
|
-
var init_extent = __esmMin((
|
|
2761
|
+
var init_extent = __esmMin(() => {
|
|
2754
2762
|
buildExtentObj = ({ x, y }) => ({ "wp:extent": { _attr: {
|
|
2755
2763
|
cx: x,
|
|
2756
2764
|
cy: y
|
|
2757
2765
|
} } });
|
|
2758
|
-
})
|
|
2766
|
+
});
|
|
2759
2767
|
//#endregion
|
|
2760
2768
|
//#region src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.ts
|
|
2761
2769
|
var buildGraphicFrameLocksObj;
|
|
2762
|
-
var init_graphic_frame_locks = __esmMin((
|
|
2770
|
+
var init_graphic_frame_locks = __esmMin(() => {
|
|
2763
2771
|
buildGraphicFrameLocksObj = () => ({ "a:graphicFrameLocks": { _attr: {
|
|
2764
2772
|
noChangeAspect: 1,
|
|
2765
2773
|
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main"
|
|
2766
2774
|
} } });
|
|
2767
|
-
})
|
|
2775
|
+
});
|
|
2768
2776
|
//#endregion
|
|
2769
2777
|
//#region src/file/drawing/graphic-frame/graphic-frame-properties.ts
|
|
2770
2778
|
var buildGraphicFramePropertiesObj;
|
|
2771
|
-
var init_graphic_frame_properties = __esmMin((
|
|
2779
|
+
var init_graphic_frame_properties = __esmMin(() => {
|
|
2772
2780
|
init_graphic_frame_locks();
|
|
2773
2781
|
buildGraphicFramePropertiesObj = () => ({ "wp:cNvGraphicFramePr": [buildGraphicFrameLocksObj()] });
|
|
2774
|
-
})
|
|
2782
|
+
});
|
|
2775
2783
|
//#endregion
|
|
2776
2784
|
//#region src/file/drawing/anchor/anchor.ts
|
|
2777
2785
|
var Anchor;
|
|
2778
|
-
var init_anchor$1 = __esmMin((
|
|
2786
|
+
var init_anchor$1 = __esmMin(() => {
|
|
2779
2787
|
init_xml_components();
|
|
2780
2788
|
init_floating();
|
|
2781
2789
|
init_graphic();
|
|
@@ -2858,16 +2866,16 @@ var init_anchor$1 = __esmMin((() => {
|
|
|
2858
2866
|
}));
|
|
2859
2867
|
}
|
|
2860
2868
|
};
|
|
2861
|
-
})
|
|
2869
|
+
});
|
|
2862
2870
|
//#endregion
|
|
2863
2871
|
//#region src/file/drawing/anchor/index.ts
|
|
2864
|
-
var init_anchor = __esmMin((
|
|
2872
|
+
var init_anchor = __esmMin(() => {
|
|
2865
2873
|
init_anchor$1();
|
|
2866
|
-
})
|
|
2874
|
+
});
|
|
2867
2875
|
//#endregion
|
|
2868
2876
|
//#region src/file/drawing/inline/inline.ts
|
|
2869
2877
|
var createInline;
|
|
2870
|
-
var init_inline$1 = __esmMin((
|
|
2878
|
+
var init_inline$1 = __esmMin(() => {
|
|
2871
2879
|
init_xml_components();
|
|
2872
2880
|
init_doc_properties();
|
|
2873
2881
|
init_effect_extent();
|
|
@@ -2924,16 +2932,16 @@ var init_inline$1 = __esmMin((() => {
|
|
|
2924
2932
|
],
|
|
2925
2933
|
name: "wp:inline"
|
|
2926
2934
|
});
|
|
2927
|
-
})
|
|
2935
|
+
});
|
|
2928
2936
|
//#endregion
|
|
2929
2937
|
//#region src/file/drawing/inline/index.ts
|
|
2930
|
-
var init_inline = __esmMin((
|
|
2938
|
+
var init_inline = __esmMin(() => {
|
|
2931
2939
|
init_inline$1();
|
|
2932
|
-
})
|
|
2940
|
+
});
|
|
2933
2941
|
//#endregion
|
|
2934
2942
|
//#region src/file/drawing/drawing.ts
|
|
2935
2943
|
var Drawing;
|
|
2936
|
-
var init_drawing$1 = __esmMin((
|
|
2944
|
+
var init_drawing$1 = __esmMin(() => {
|
|
2937
2945
|
init_xml_components();
|
|
2938
2946
|
init_anchor();
|
|
2939
2947
|
init_inline();
|
|
@@ -2957,18 +2965,18 @@ var init_drawing$1 = __esmMin((() => {
|
|
|
2957
2965
|
}));
|
|
2958
2966
|
}
|
|
2959
2967
|
};
|
|
2960
|
-
})
|
|
2968
|
+
});
|
|
2961
2969
|
//#endregion
|
|
2962
2970
|
//#region src/file/drawing/index.ts
|
|
2963
|
-
var init_drawing = __esmMin((
|
|
2971
|
+
var init_drawing = __esmMin(() => {
|
|
2964
2972
|
init_drawing$1();
|
|
2965
2973
|
init_text_wrap();
|
|
2966
2974
|
init_floating();
|
|
2967
|
-
})
|
|
2975
|
+
});
|
|
2968
2976
|
//#endregion
|
|
2969
2977
|
//#region src/file/media/media.ts
|
|
2970
2978
|
var createTransformation, Media;
|
|
2971
|
-
var init_media$1 = __esmMin((
|
|
2979
|
+
var init_media$1 = __esmMin(() => {
|
|
2972
2980
|
createTransformation = (options) => ({
|
|
2973
2981
|
emus: {
|
|
2974
2982
|
x: convertPixelsToEmu(options.width),
|
|
@@ -3014,23 +3022,23 @@ var init_media$1 = __esmMin((() => {
|
|
|
3014
3022
|
return [...this.map.values()];
|
|
3015
3023
|
}
|
|
3016
3024
|
};
|
|
3017
|
-
})
|
|
3025
|
+
});
|
|
3018
3026
|
//#endregion
|
|
3019
3027
|
//#region src/file/media/data.ts
|
|
3020
3028
|
var WORKAROUND2;
|
|
3021
|
-
var init_data = __esmMin((
|
|
3029
|
+
var init_data = __esmMin(() => {
|
|
3022
3030
|
WORKAROUND2 = "";
|
|
3023
|
-
})
|
|
3031
|
+
});
|
|
3024
3032
|
//#endregion
|
|
3025
3033
|
//#region src/file/media/index.ts
|
|
3026
|
-
var init_media = __esmMin((
|
|
3034
|
+
var init_media = __esmMin(() => {
|
|
3027
3035
|
init_media$1();
|
|
3028
3036
|
init_data();
|
|
3029
|
-
})
|
|
3037
|
+
});
|
|
3030
3038
|
//#endregion
|
|
3031
3039
|
//#region src/file/paragraph/run/image-run.ts
|
|
3032
3040
|
var createImageData, ImageRun;
|
|
3033
|
-
var init_image_run = __esmMin((
|
|
3041
|
+
var init_image_run = __esmMin(() => {
|
|
3034
3042
|
init_convenience_functions();
|
|
3035
3043
|
init_drawing();
|
|
3036
3044
|
init_media();
|
|
@@ -3078,14 +3086,14 @@ var init_image_run = __esmMin((() => {
|
|
|
3078
3086
|
return super.prepForXml(context);
|
|
3079
3087
|
}
|
|
3080
3088
|
};
|
|
3081
|
-
})
|
|
3089
|
+
});
|
|
3082
3090
|
//#endregion
|
|
3083
3091
|
//#region src/file/chart/chart-space.ts
|
|
3084
|
-
var init_chart_space = __esmMin((
|
|
3092
|
+
var init_chart_space = __esmMin(() => {});
|
|
3085
3093
|
//#endregion
|
|
3086
3094
|
//#region src/file/paragraph/run/chart-run.ts
|
|
3087
3095
|
var ChartRun;
|
|
3088
|
-
var init_chart_run = __esmMin((
|
|
3096
|
+
var init_chart_run = __esmMin(() => {
|
|
3089
3097
|
init_chart_space();
|
|
3090
3098
|
init_drawing();
|
|
3091
3099
|
init_media();
|
|
@@ -3133,14 +3141,14 @@ var init_chart_run = __esmMin((() => {
|
|
|
3133
3141
|
return Math.abs(hash);
|
|
3134
3142
|
}
|
|
3135
3143
|
};
|
|
3136
|
-
})
|
|
3144
|
+
});
|
|
3137
3145
|
//#endregion
|
|
3138
3146
|
//#region src/file/smartart/tree-to-model.ts
|
|
3139
|
-
var init_tree_to_model = __esmMin((
|
|
3147
|
+
var init_tree_to_model = __esmMin(() => {});
|
|
3140
3148
|
//#endregion
|
|
3141
3149
|
//#region src/file/paragraph/run/smartart-run.ts
|
|
3142
3150
|
var SmartArtRun;
|
|
3143
|
-
var init_smartart_run = __esmMin((
|
|
3151
|
+
var init_smartart_run = __esmMin(() => {
|
|
3144
3152
|
init_drawing();
|
|
3145
3153
|
init_media();
|
|
3146
3154
|
init_tree_to_model();
|
|
@@ -3187,11 +3195,11 @@ var init_smartart_run = __esmMin((() => {
|
|
|
3187
3195
|
return Math.abs(hash);
|
|
3188
3196
|
}
|
|
3189
3197
|
};
|
|
3190
|
-
})
|
|
3198
|
+
});
|
|
3191
3199
|
//#endregion
|
|
3192
3200
|
//#region src/file/paragraph/run/wps-shape-run.ts
|
|
3193
3201
|
var WpsShapeRun;
|
|
3194
|
-
var init_wps_shape_run = __esmMin((
|
|
3202
|
+
var init_wps_shape_run = __esmMin(() => {
|
|
3195
3203
|
init_drawing();
|
|
3196
3204
|
init_media();
|
|
3197
3205
|
init_run();
|
|
@@ -3214,11 +3222,11 @@ var init_wps_shape_run = __esmMin((() => {
|
|
|
3214
3222
|
this.extraChildren.push(drawing);
|
|
3215
3223
|
}
|
|
3216
3224
|
};
|
|
3217
|
-
})
|
|
3225
|
+
});
|
|
3218
3226
|
//#endregion
|
|
3219
3227
|
//#region src/file/paragraph/run/wpg-group-run.ts
|
|
3220
3228
|
var WpgGroupRun;
|
|
3221
|
-
var init_wpg_group_run = __esmMin((
|
|
3229
|
+
var init_wpg_group_run = __esmMin(() => {
|
|
3222
3230
|
init_run();
|
|
3223
3231
|
init_drawing();
|
|
3224
3232
|
init_media();
|
|
@@ -3248,11 +3256,11 @@ var init_wpg_group_run = __esmMin((() => {
|
|
|
3248
3256
|
return super.prepForXml(context);
|
|
3249
3257
|
}
|
|
3250
3258
|
};
|
|
3251
|
-
})
|
|
3259
|
+
});
|
|
3252
3260
|
//#endregion
|
|
3253
3261
|
//#region src/file/paragraph/run/sequential-identifier-instruction.ts
|
|
3254
3262
|
var SequentialIdentifierInstruction;
|
|
3255
|
-
var init_sequential_identifier_instruction = __esmMin((
|
|
3263
|
+
var init_sequential_identifier_instruction = __esmMin(() => {
|
|
3256
3264
|
init_shared();
|
|
3257
3265
|
init_xml_components();
|
|
3258
3266
|
SequentialIdentifierInstruction = class extends XmlComponent {
|
|
@@ -3262,11 +3270,11 @@ var init_sequential_identifier_instruction = __esmMin((() => {
|
|
|
3262
3270
|
this.root.push(`SEQ ${identifier}`);
|
|
3263
3271
|
}
|
|
3264
3272
|
};
|
|
3265
|
-
})
|
|
3273
|
+
});
|
|
3266
3274
|
//#endregion
|
|
3267
3275
|
//#region src/file/paragraph/run/sequential-identifier.ts
|
|
3268
3276
|
var SequentialIdentifier;
|
|
3269
|
-
var init_sequential_identifier = __esmMin((
|
|
3277
|
+
var init_sequential_identifier = __esmMin(() => {
|
|
3270
3278
|
init_run();
|
|
3271
3279
|
init_field();
|
|
3272
3280
|
init_sequential_identifier_instruction();
|
|
@@ -3279,11 +3287,11 @@ var init_sequential_identifier = __esmMin((() => {
|
|
|
3279
3287
|
this.extraChildren.push(createEnd());
|
|
3280
3288
|
}
|
|
3281
3289
|
};
|
|
3282
|
-
})
|
|
3290
|
+
});
|
|
3283
3291
|
//#endregion
|
|
3284
3292
|
//#region src/file/paragraph/run/simple-field.ts
|
|
3285
3293
|
var SimpleField, SimpleMailMergeField;
|
|
3286
|
-
var init_simple_field = __esmMin((
|
|
3294
|
+
var init_simple_field = __esmMin(() => {
|
|
3287
3295
|
init_xml_components();
|
|
3288
3296
|
init_text_run();
|
|
3289
3297
|
SimpleField = class extends XmlComponent {
|
|
@@ -3298,19 +3306,19 @@ var init_simple_field = __esmMin((() => {
|
|
|
3298
3306
|
super(` MERGEFIELD ${fieldName} `, `«${fieldName}»`);
|
|
3299
3307
|
}
|
|
3300
3308
|
};
|
|
3301
|
-
})
|
|
3309
|
+
});
|
|
3302
3310
|
//#endregion
|
|
3303
3311
|
//#region src/file/relationships/relationships.ts
|
|
3304
|
-
var init_relationships$1 = __esmMin((
|
|
3312
|
+
var init_relationships$1 = __esmMin(() => {});
|
|
3305
3313
|
//#endregion
|
|
3306
3314
|
//#region src/file/relationships/index.ts
|
|
3307
|
-
var init_relationships = __esmMin((
|
|
3315
|
+
var init_relationships = __esmMin(() => {
|
|
3308
3316
|
init_relationships$1();
|
|
3309
|
-
})
|
|
3317
|
+
});
|
|
3310
3318
|
//#endregion
|
|
3311
3319
|
//#region src/file/fonts/font.ts
|
|
3312
3320
|
var CharacterSet, createFontRelationship, createFont;
|
|
3313
|
-
var init_font = __esmMin((
|
|
3321
|
+
var init_font = __esmMin(() => {
|
|
3314
3322
|
init_xml_components();
|
|
3315
3323
|
CharacterSet = {
|
|
3316
3324
|
ANSI: "00",
|
|
@@ -3395,11 +3403,11 @@ var init_font = __esmMin((() => {
|
|
|
3395
3403
|
],
|
|
3396
3404
|
name: "w:font"
|
|
3397
3405
|
});
|
|
3398
|
-
})
|
|
3406
|
+
});
|
|
3399
3407
|
//#endregion
|
|
3400
3408
|
//#region src/file/fonts/create-regular-font.ts
|
|
3401
3409
|
var createRegularFont;
|
|
3402
|
-
var init_create_regular_font = __esmMin((
|
|
3410
|
+
var init_create_regular_font = __esmMin(() => {
|
|
3403
3411
|
init_font();
|
|
3404
3412
|
createRegularFont = ({ name, index, fontKey, characterSet }) => createFont({
|
|
3405
3413
|
charset: characterSet,
|
|
@@ -3419,11 +3427,11 @@ var init_create_regular_font = __esmMin((() => {
|
|
|
3419
3427
|
usb3: "00000000"
|
|
3420
3428
|
}
|
|
3421
3429
|
});
|
|
3422
|
-
})
|
|
3430
|
+
});
|
|
3423
3431
|
//#endregion
|
|
3424
3432
|
//#region src/file/fonts/font-table.ts
|
|
3425
3433
|
var createFontTable;
|
|
3426
|
-
var init_font_table = __esmMin((
|
|
3434
|
+
var init_font_table = __esmMin(() => {
|
|
3427
3435
|
init_xml_components();
|
|
3428
3436
|
init_create_regular_font();
|
|
3429
3437
|
createFontTable = (fonts) => new BuilderElement({
|
|
@@ -3481,11 +3489,11 @@ var init_font_table = __esmMin((() => {
|
|
|
3481
3489
|
})),
|
|
3482
3490
|
name: "w:fonts"
|
|
3483
3491
|
});
|
|
3484
|
-
})
|
|
3492
|
+
});
|
|
3485
3493
|
//#endregion
|
|
3486
3494
|
//#region src/file/fonts/font-wrapper.ts
|
|
3487
3495
|
var FontWrapper;
|
|
3488
|
-
var init_font_wrapper = __esmMin((
|
|
3496
|
+
var init_font_wrapper = __esmMin(() => {
|
|
3489
3497
|
init_relationships();
|
|
3490
3498
|
init_convenience_functions();
|
|
3491
3499
|
init_font_table();
|
|
@@ -3507,11 +3515,11 @@ var init_font_wrapper = __esmMin((() => {
|
|
|
3507
3515
|
return this.fontTable;
|
|
3508
3516
|
}
|
|
3509
3517
|
};
|
|
3510
|
-
})
|
|
3518
|
+
});
|
|
3511
3519
|
//#endregion
|
|
3512
3520
|
//#region src/file/track-revision/track-revision-components/deleted-page-number.ts
|
|
3513
3521
|
var DeletedPage, DeletedNumberOfPages, DeletedNumberOfPagesSection;
|
|
3514
|
-
var init_deleted_page_number = __esmMin((
|
|
3522
|
+
var init_deleted_page_number = __esmMin(() => {
|
|
3515
3523
|
init_shared();
|
|
3516
3524
|
init_xml_components();
|
|
3517
3525
|
DeletedPage = class extends XmlComponent {
|
|
@@ -3535,11 +3543,11 @@ var init_deleted_page_number = __esmMin((() => {
|
|
|
3535
3543
|
this.root.push("SECTIONPAGES");
|
|
3536
3544
|
}
|
|
3537
3545
|
};
|
|
3538
|
-
})
|
|
3546
|
+
});
|
|
3539
3547
|
//#endregion
|
|
3540
3548
|
//#region src/file/track-revision/track-revision-components/deleted-text.ts
|
|
3541
3549
|
var DeletedText;
|
|
3542
|
-
var init_deleted_text = __esmMin((
|
|
3550
|
+
var init_deleted_text = __esmMin(() => {
|
|
3543
3551
|
init_shared();
|
|
3544
3552
|
init_xml_components();
|
|
3545
3553
|
DeletedText = class extends XmlComponent {
|
|
@@ -3549,11 +3557,11 @@ var init_deleted_text = __esmMin((() => {
|
|
|
3549
3557
|
this.root.push(text);
|
|
3550
3558
|
}
|
|
3551
3559
|
};
|
|
3552
|
-
})
|
|
3560
|
+
});
|
|
3553
3561
|
//#endregion
|
|
3554
3562
|
//#region src/file/track-revision/track-revision-components/deleted-text-run.ts
|
|
3555
3563
|
var DeletedTextRun, DeletedTextRunWrapper;
|
|
3556
|
-
var init_deleted_text_run = __esmMin((
|
|
3564
|
+
var init_deleted_text_run = __esmMin(() => {
|
|
3557
3565
|
init_xml_components();
|
|
3558
3566
|
init_break$1();
|
|
3559
3567
|
init_field();
|
|
@@ -3611,11 +3619,11 @@ var init_deleted_text_run = __esmMin((() => {
|
|
|
3611
3619
|
if (options.break) for (let i = 0; i < options.break; i++) this.root.splice(1, 0, createBreak());
|
|
3612
3620
|
}
|
|
3613
3621
|
};
|
|
3614
|
-
})
|
|
3622
|
+
});
|
|
3615
3623
|
//#endregion
|
|
3616
3624
|
//#region src/file/track-revision/track-revision-components/inserted-text-run.ts
|
|
3617
3625
|
var InsertedTextRun;
|
|
3618
|
-
var init_inserted_text_run = __esmMin((
|
|
3626
|
+
var init_inserted_text_run = __esmMin(() => {
|
|
3619
3627
|
init_xml_components();
|
|
3620
3628
|
init_run();
|
|
3621
3629
|
InsertedTextRun = class extends XmlComponent {
|
|
@@ -3629,11 +3637,11 @@ var init_inserted_text_run = __esmMin((() => {
|
|
|
3629
3637
|
this.addChildElement(new TextRun(options));
|
|
3630
3638
|
}
|
|
3631
3639
|
};
|
|
3632
|
-
})
|
|
3640
|
+
});
|
|
3633
3641
|
//#endregion
|
|
3634
3642
|
//#region src/file/paragraph/links/bookmark.ts
|
|
3635
3643
|
var Bookmark, BookmarkStart, BookmarkEnd;
|
|
3636
|
-
var init_bookmark = __esmMin((
|
|
3644
|
+
var init_bookmark = __esmMin(() => {
|
|
3637
3645
|
init_xml_components();
|
|
3638
3646
|
init_convenience_functions();
|
|
3639
3647
|
Bookmark = class {
|
|
@@ -3663,11 +3671,11 @@ var init_bookmark = __esmMin((() => {
|
|
|
3663
3671
|
this.root.push({ _attr: { "w:id": linkId } });
|
|
3664
3672
|
}
|
|
3665
3673
|
};
|
|
3666
|
-
})
|
|
3674
|
+
});
|
|
3667
3675
|
//#endregion
|
|
3668
3676
|
//#region src/file/paragraph/links/move-bookmark.ts
|
|
3669
3677
|
var buildMoveBookmarkAttr, MoveFromRangeStart, MoveFromRangeEnd, MoveToRangeStart, MoveToRangeEnd;
|
|
3670
|
-
var init_move_bookmark = __esmMin((
|
|
3678
|
+
var init_move_bookmark = __esmMin(() => {
|
|
3671
3679
|
init_xml_components();
|
|
3672
3680
|
buildMoveBookmarkAttr = (id, name, author, date) => {
|
|
3673
3681
|
const attrs = { "w:id": id };
|
|
@@ -3700,11 +3708,11 @@ var init_move_bookmark = __esmMin((() => {
|
|
|
3700
3708
|
this.root.push({ _attr: { "w:id": id } });
|
|
3701
3709
|
}
|
|
3702
3710
|
};
|
|
3703
|
-
})
|
|
3711
|
+
});
|
|
3704
3712
|
//#endregion
|
|
3705
3713
|
//#region src/file/paragraph/links/div-id.ts
|
|
3706
3714
|
var createDivId, buildDivIdObj;
|
|
3707
|
-
var init_div_id = __esmMin((
|
|
3715
|
+
var init_div_id = __esmMin(() => {
|
|
3708
3716
|
init_xml_components();
|
|
3709
3717
|
createDivId = (id) => new BuilderElement({
|
|
3710
3718
|
attributes: { val: {
|
|
@@ -3714,11 +3722,11 @@ var init_div_id = __esmMin((() => {
|
|
|
3714
3722
|
name: "w:divId"
|
|
3715
3723
|
});
|
|
3716
3724
|
buildDivIdObj = (id) => numberValObj("w:divId", id);
|
|
3717
|
-
})
|
|
3725
|
+
});
|
|
3718
3726
|
//#endregion
|
|
3719
3727
|
//#region src/file/paragraph/links/numbered-item-ref.ts
|
|
3720
3728
|
var NumberedItemReferenceFormat, SWITCH_MAP, NumberedItemReference;
|
|
3721
|
-
var init_numbered_item_ref = __esmMin((
|
|
3729
|
+
var init_numbered_item_ref = __esmMin(() => {
|
|
3722
3730
|
init_simple_field();
|
|
3723
3731
|
NumberedItemReferenceFormat = /* @__PURE__ */ function(NumberedItemReferenceFormat) {
|
|
3724
3732
|
NumberedItemReferenceFormat["NONE"] = "none";
|
|
@@ -3749,11 +3757,11 @@ var init_numbered_item_ref = __esmMin((() => {
|
|
|
3749
3757
|
super(instruction, cachedValue);
|
|
3750
3758
|
}
|
|
3751
3759
|
};
|
|
3752
|
-
})
|
|
3760
|
+
});
|
|
3753
3761
|
//#endregion
|
|
3754
3762
|
//#region src/file/paragraph/links/outline-level.ts
|
|
3755
3763
|
var createOutlineLevel, buildOutlineLevelObj;
|
|
3756
|
-
var init_outline_level = __esmMin((
|
|
3764
|
+
var init_outline_level = __esmMin(() => {
|
|
3757
3765
|
init_xml_components();
|
|
3758
3766
|
createOutlineLevel = (level) => new BuilderElement({
|
|
3759
3767
|
attributes: { val: {
|
|
@@ -3763,11 +3771,11 @@ var init_outline_level = __esmMin((() => {
|
|
|
3763
3771
|
name: "w:outlineLvl"
|
|
3764
3772
|
});
|
|
3765
3773
|
buildOutlineLevelObj = (level) => numberValObj("w:outlineLvl", level);
|
|
3766
|
-
})
|
|
3774
|
+
});
|
|
3767
3775
|
//#endregion
|
|
3768
3776
|
//#region src/file/paragraph/links/pageref-field-instruction.ts
|
|
3769
3777
|
var PageReferenceFieldInstruction;
|
|
3770
|
-
var init_pageref_field_instruction = __esmMin((
|
|
3778
|
+
var init_pageref_field_instruction = __esmMin(() => {
|
|
3771
3779
|
init_shared();
|
|
3772
3780
|
init_xml_components();
|
|
3773
3781
|
PageReferenceFieldInstruction = class extends XmlComponent {
|
|
@@ -3780,11 +3788,11 @@ var init_pageref_field_instruction = __esmMin((() => {
|
|
|
3780
3788
|
this.root.push(instruction);
|
|
3781
3789
|
}
|
|
3782
3790
|
};
|
|
3783
|
-
})
|
|
3791
|
+
});
|
|
3784
3792
|
//#endregion
|
|
3785
3793
|
//#region src/file/paragraph/links/pageref.ts
|
|
3786
3794
|
var PageReference;
|
|
3787
|
-
var init_pageref = __esmMin((
|
|
3795
|
+
var init_pageref = __esmMin(() => {
|
|
3788
3796
|
init_field();
|
|
3789
3797
|
init_run();
|
|
3790
3798
|
init_pageref_field_instruction();
|
|
@@ -3797,11 +3805,11 @@ var init_pageref = __esmMin((() => {
|
|
|
3797
3805
|
] });
|
|
3798
3806
|
}
|
|
3799
3807
|
};
|
|
3800
|
-
})
|
|
3808
|
+
});
|
|
3801
3809
|
//#endregion
|
|
3802
3810
|
//#region src/file/paragraph/links/bidi.ts
|
|
3803
3811
|
var Dir, Bdo;
|
|
3804
|
-
var init_bidi = __esmMin((
|
|
3812
|
+
var init_bidi = __esmMin(() => {
|
|
3805
3813
|
init_xml_components();
|
|
3806
3814
|
Dir = class extends XmlComponent {
|
|
3807
3815
|
constructor(options) {
|
|
@@ -3817,10 +3825,10 @@ var init_bidi = __esmMin((() => {
|
|
|
3817
3825
|
for (const child of options.children) this.root.push(child);
|
|
3818
3826
|
}
|
|
3819
3827
|
};
|
|
3820
|
-
})
|
|
3828
|
+
});
|
|
3821
3829
|
//#endregion
|
|
3822
3830
|
//#region src/file/paragraph/links/index.ts
|
|
3823
|
-
var init_links = __esmMin((
|
|
3831
|
+
var init_links = __esmMin(() => {
|
|
3824
3832
|
init_hyperlink();
|
|
3825
3833
|
init_bookmark();
|
|
3826
3834
|
init_move_bookmark();
|
|
@@ -3829,11 +3837,11 @@ var init_links = __esmMin((() => {
|
|
|
3829
3837
|
init_outline_level();
|
|
3830
3838
|
init_pageref();
|
|
3831
3839
|
init_bidi();
|
|
3832
|
-
})
|
|
3840
|
+
});
|
|
3833
3841
|
//#endregion
|
|
3834
3842
|
//#region src/file/paragraph/math/n-ary/math-accent-character.ts
|
|
3835
3843
|
var createMathAccentCharacter;
|
|
3836
|
-
var init_math_accent_character = __esmMin((
|
|
3844
|
+
var init_math_accent_character = __esmMin(() => {
|
|
3837
3845
|
init_xml_components();
|
|
3838
3846
|
createMathAccentCharacter = ({ accent }) => new BuilderElement({
|
|
3839
3847
|
attributes: { accent: {
|
|
@@ -3842,21 +3850,21 @@ var init_math_accent_character = __esmMin((() => {
|
|
|
3842
3850
|
} },
|
|
3843
3851
|
name: "m:chr"
|
|
3844
3852
|
});
|
|
3845
|
-
})
|
|
3853
|
+
});
|
|
3846
3854
|
//#endregion
|
|
3847
3855
|
//#region src/file/paragraph/math/n-ary/math-base.ts
|
|
3848
3856
|
var createMathBase;
|
|
3849
|
-
var init_math_base = __esmMin((
|
|
3857
|
+
var init_math_base = __esmMin(() => {
|
|
3850
3858
|
init_xml_components();
|
|
3851
3859
|
createMathBase = ({ children }) => new BuilderElement({
|
|
3852
3860
|
children,
|
|
3853
3861
|
name: "m:e"
|
|
3854
3862
|
});
|
|
3855
|
-
})
|
|
3863
|
+
});
|
|
3856
3864
|
//#endregion
|
|
3857
3865
|
//#region src/file/paragraph/math/n-ary/math-limit-location.ts
|
|
3858
3866
|
var createMathLimitLocation;
|
|
3859
|
-
var init_math_limit_location = __esmMin((
|
|
3867
|
+
var init_math_limit_location = __esmMin(() => {
|
|
3860
3868
|
init_xml_components();
|
|
3861
3869
|
createMathLimitLocation = ({ value }) => new BuilderElement({
|
|
3862
3870
|
attributes: { value: {
|
|
@@ -3865,11 +3873,11 @@ var init_math_limit_location = __esmMin((() => {
|
|
|
3865
3873
|
} },
|
|
3866
3874
|
name: "m:limLoc"
|
|
3867
3875
|
});
|
|
3868
|
-
})
|
|
3876
|
+
});
|
|
3869
3877
|
//#endregion
|
|
3870
3878
|
//#region src/file/paragraph/math/n-ary/math-sub-script-hide.ts
|
|
3871
3879
|
var createMathSubScriptHide;
|
|
3872
|
-
var init_math_sub_script_hide = __esmMin((
|
|
3880
|
+
var init_math_sub_script_hide = __esmMin(() => {
|
|
3873
3881
|
init_xml_components();
|
|
3874
3882
|
createMathSubScriptHide = () => new BuilderElement({
|
|
3875
3883
|
attributes: { hide: {
|
|
@@ -3878,11 +3886,11 @@ var init_math_sub_script_hide = __esmMin((() => {
|
|
|
3878
3886
|
} },
|
|
3879
3887
|
name: "m:subHide"
|
|
3880
3888
|
});
|
|
3881
|
-
})
|
|
3889
|
+
});
|
|
3882
3890
|
//#endregion
|
|
3883
3891
|
//#region src/file/paragraph/math/n-ary/math-super-script-hide.ts
|
|
3884
3892
|
var createMathSuperScriptHide;
|
|
3885
|
-
var init_math_super_script_hide = __esmMin((
|
|
3893
|
+
var init_math_super_script_hide = __esmMin(() => {
|
|
3886
3894
|
init_xml_components();
|
|
3887
3895
|
createMathSuperScriptHide = () => new BuilderElement({
|
|
3888
3896
|
attributes: { hide: {
|
|
@@ -3891,11 +3899,11 @@ var init_math_super_script_hide = __esmMin((() => {
|
|
|
3891
3899
|
} },
|
|
3892
3900
|
name: "m:supHide"
|
|
3893
3901
|
});
|
|
3894
|
-
})
|
|
3902
|
+
});
|
|
3895
3903
|
//#endregion
|
|
3896
3904
|
//#region src/file/paragraph/math/n-ary/math-n-ary-properties.ts
|
|
3897
3905
|
var createMathNAryProperties;
|
|
3898
|
-
var init_math_n_ary_properties = __esmMin((
|
|
3906
|
+
var init_math_n_ary_properties = __esmMin(() => {
|
|
3899
3907
|
init_xml_components();
|
|
3900
3908
|
init_math_accent_character();
|
|
3901
3909
|
init_math_limit_location();
|
|
@@ -3913,31 +3921,31 @@ var init_math_n_ary_properties = __esmMin((() => {
|
|
|
3913
3921
|
name: "m:naryPr"
|
|
3914
3922
|
});
|
|
3915
3923
|
};
|
|
3916
|
-
})
|
|
3924
|
+
});
|
|
3917
3925
|
//#endregion
|
|
3918
3926
|
//#region src/file/paragraph/math/n-ary/math-sub-script.ts
|
|
3919
3927
|
var createMathSubScriptElement;
|
|
3920
|
-
var init_math_sub_script = __esmMin((
|
|
3928
|
+
var init_math_sub_script = __esmMin(() => {
|
|
3921
3929
|
init_xml_components();
|
|
3922
3930
|
createMathSubScriptElement = ({ children }) => new BuilderElement({
|
|
3923
3931
|
children,
|
|
3924
3932
|
name: "m:sub"
|
|
3925
3933
|
});
|
|
3926
|
-
})
|
|
3934
|
+
});
|
|
3927
3935
|
//#endregion
|
|
3928
3936
|
//#region src/file/paragraph/math/n-ary/math-super-script.ts
|
|
3929
3937
|
var createMathSuperScriptElement;
|
|
3930
|
-
var init_math_super_script = __esmMin((
|
|
3938
|
+
var init_math_super_script = __esmMin(() => {
|
|
3931
3939
|
init_xml_components();
|
|
3932
3940
|
createMathSuperScriptElement = ({ children }) => new BuilderElement({
|
|
3933
3941
|
children,
|
|
3934
3942
|
name: "m:sup"
|
|
3935
3943
|
});
|
|
3936
|
-
})
|
|
3944
|
+
});
|
|
3937
3945
|
//#endregion
|
|
3938
3946
|
//#region src/file/paragraph/math/n-ary/math-sum.ts
|
|
3939
3947
|
var MathSum;
|
|
3940
|
-
var init_math_sum = __esmMin((
|
|
3948
|
+
var init_math_sum = __esmMin(() => {
|
|
3941
3949
|
init_xml_components();
|
|
3942
3950
|
init_math_base();
|
|
3943
3951
|
init_math_n_ary_properties();
|
|
@@ -3956,11 +3964,11 @@ var init_math_sum = __esmMin((() => {
|
|
|
3956
3964
|
this.root.push(createMathBase({ children: options.children }));
|
|
3957
3965
|
}
|
|
3958
3966
|
};
|
|
3959
|
-
})
|
|
3967
|
+
});
|
|
3960
3968
|
//#endregion
|
|
3961
3969
|
//#region src/file/paragraph/math/n-ary/math-integral.ts
|
|
3962
3970
|
var MathIntegral;
|
|
3963
|
-
var init_math_integral = __esmMin((
|
|
3971
|
+
var init_math_integral = __esmMin(() => {
|
|
3964
3972
|
init_xml_components();
|
|
3965
3973
|
init_math_base();
|
|
3966
3974
|
init_math_n_ary_properties();
|
|
@@ -3980,11 +3988,11 @@ var init_math_integral = __esmMin((() => {
|
|
|
3980
3988
|
this.root.push(createMathBase({ children: options.children }));
|
|
3981
3989
|
}
|
|
3982
3990
|
};
|
|
3983
|
-
})
|
|
3991
|
+
});
|
|
3984
3992
|
//#endregion
|
|
3985
3993
|
//#region src/file/paragraph/math/n-ary/math-limit.ts
|
|
3986
3994
|
var MathLimit;
|
|
3987
|
-
var init_math_limit = __esmMin((
|
|
3995
|
+
var init_math_limit = __esmMin(() => {
|
|
3988
3996
|
init_xml_components();
|
|
3989
3997
|
MathLimit = class extends XmlComponent {
|
|
3990
3998
|
constructor(children) {
|
|
@@ -3992,11 +4000,11 @@ var init_math_limit = __esmMin((() => {
|
|
|
3992
4000
|
for (const child of children) this.root.push(child);
|
|
3993
4001
|
}
|
|
3994
4002
|
};
|
|
3995
|
-
})
|
|
4003
|
+
});
|
|
3996
4004
|
//#endregion
|
|
3997
4005
|
//#region src/file/paragraph/math/math-control-properties.ts
|
|
3998
4006
|
var createMathControlProperties;
|
|
3999
|
-
var init_math_control_properties = __esmMin((
|
|
4007
|
+
var init_math_control_properties = __esmMin(() => {
|
|
4000
4008
|
init_xml_components();
|
|
4001
4009
|
createMathControlProperties = (options) => {
|
|
4002
4010
|
const children = [];
|
|
@@ -4019,11 +4027,11 @@ var init_math_control_properties = __esmMin((() => {
|
|
|
4019
4027
|
name: "m:ctrlPr"
|
|
4020
4028
|
});
|
|
4021
4029
|
};
|
|
4022
|
-
})
|
|
4030
|
+
});
|
|
4023
4031
|
//#endregion
|
|
4024
4032
|
//#region src/file/paragraph/math/n-ary/math-limit-upper-properties.ts
|
|
4025
4033
|
var createMathLimitUpperProperties;
|
|
4026
|
-
var init_math_limit_upper_properties = __esmMin((
|
|
4034
|
+
var init_math_limit_upper_properties = __esmMin(() => {
|
|
4027
4035
|
init_xml_components();
|
|
4028
4036
|
init_math_control_properties();
|
|
4029
4037
|
createMathLimitUpperProperties = (options) => {
|
|
@@ -4034,11 +4042,11 @@ var init_math_limit_upper_properties = __esmMin((() => {
|
|
|
4034
4042
|
name: "m:limUppPr"
|
|
4035
4043
|
});
|
|
4036
4044
|
};
|
|
4037
|
-
})
|
|
4045
|
+
});
|
|
4038
4046
|
//#endregion
|
|
4039
4047
|
//#region src/file/paragraph/math/n-ary/math-limit-upper.ts
|
|
4040
4048
|
var MathLimitUpper;
|
|
4041
|
-
var init_math_limit_upper = __esmMin((
|
|
4049
|
+
var init_math_limit_upper = __esmMin(() => {
|
|
4042
4050
|
init_xml_components();
|
|
4043
4051
|
init_math_base();
|
|
4044
4052
|
init_math_limit();
|
|
@@ -4051,11 +4059,11 @@ var init_math_limit_upper = __esmMin((() => {
|
|
|
4051
4059
|
this.root.push(new MathLimit(options.limit));
|
|
4052
4060
|
}
|
|
4053
4061
|
};
|
|
4054
|
-
})
|
|
4062
|
+
});
|
|
4055
4063
|
//#endregion
|
|
4056
4064
|
//#region src/file/paragraph/math/n-ary/math-limit-low-properties.ts
|
|
4057
4065
|
var createMathLimitLowProperties;
|
|
4058
|
-
var init_math_limit_low_properties = __esmMin((
|
|
4066
|
+
var init_math_limit_low_properties = __esmMin(() => {
|
|
4059
4067
|
init_xml_components();
|
|
4060
4068
|
init_math_control_properties();
|
|
4061
4069
|
createMathLimitLowProperties = (options) => {
|
|
@@ -4066,11 +4074,11 @@ var init_math_limit_low_properties = __esmMin((() => {
|
|
|
4066
4074
|
name: "m:limLowPr"
|
|
4067
4075
|
});
|
|
4068
4076
|
};
|
|
4069
|
-
})
|
|
4077
|
+
});
|
|
4070
4078
|
//#endregion
|
|
4071
4079
|
//#region src/file/paragraph/math/n-ary/math-limit-lower.ts
|
|
4072
4080
|
var MathLimitLower;
|
|
4073
|
-
var init_math_limit_lower = __esmMin((
|
|
4081
|
+
var init_math_limit_lower = __esmMin(() => {
|
|
4074
4082
|
init_xml_components();
|
|
4075
4083
|
init_math_base();
|
|
4076
4084
|
init_math_limit();
|
|
@@ -4083,10 +4091,10 @@ var init_math_limit_lower = __esmMin((() => {
|
|
|
4083
4091
|
this.root.push(new MathLimit(options.limit));
|
|
4084
4092
|
}
|
|
4085
4093
|
};
|
|
4086
|
-
})
|
|
4094
|
+
});
|
|
4087
4095
|
//#endregion
|
|
4088
4096
|
//#region src/file/paragraph/math/n-ary/index.ts
|
|
4089
|
-
var init_n_ary = __esmMin((
|
|
4097
|
+
var init_n_ary = __esmMin(() => {
|
|
4090
4098
|
init_math_accent_character();
|
|
4091
4099
|
init_math_base();
|
|
4092
4100
|
init_math_limit_location();
|
|
@@ -4100,11 +4108,11 @@ var init_n_ary = __esmMin((() => {
|
|
|
4100
4108
|
init_math_limit_upper_properties();
|
|
4101
4109
|
init_math_limit_lower();
|
|
4102
4110
|
init_math_limit_low_properties();
|
|
4103
|
-
})
|
|
4111
|
+
});
|
|
4104
4112
|
//#endregion
|
|
4105
4113
|
//#region src/file/paragraph/math/accent/math-accent-properties.ts
|
|
4106
4114
|
var createMathAccentProperties;
|
|
4107
|
-
var init_math_accent_properties = __esmMin((
|
|
4115
|
+
var init_math_accent_properties = __esmMin(() => {
|
|
4108
4116
|
init_xml_components();
|
|
4109
4117
|
createMathAccentProperties = (options) => new BuilderElement({
|
|
4110
4118
|
children: [new BuilderElement({
|
|
@@ -4116,11 +4124,11 @@ var init_math_accent_properties = __esmMin((() => {
|
|
|
4116
4124
|
})],
|
|
4117
4125
|
name: "m:accPr"
|
|
4118
4126
|
});
|
|
4119
|
-
})
|
|
4127
|
+
});
|
|
4120
4128
|
//#endregion
|
|
4121
4129
|
//#region src/file/paragraph/math/accent/math-accent.ts
|
|
4122
4130
|
var createMathAccent;
|
|
4123
|
-
var init_math_accent = __esmMin((
|
|
4131
|
+
var init_math_accent = __esmMin(() => {
|
|
4124
4132
|
init_xml_components();
|
|
4125
4133
|
init_n_ary();
|
|
4126
4134
|
init_math_accent_properties();
|
|
@@ -4130,17 +4138,17 @@ var init_math_accent = __esmMin((() => {
|
|
|
4130
4138
|
name: "m:acc"
|
|
4131
4139
|
});
|
|
4132
4140
|
};
|
|
4133
|
-
})
|
|
4141
|
+
});
|
|
4134
4142
|
//#endregion
|
|
4135
4143
|
//#region src/file/paragraph/math/accent/index.ts
|
|
4136
|
-
var init_accent = __esmMin((
|
|
4144
|
+
var init_accent = __esmMin(() => {
|
|
4137
4145
|
init_math_accent();
|
|
4138
4146
|
init_math_accent_properties();
|
|
4139
|
-
})
|
|
4147
|
+
});
|
|
4140
4148
|
//#endregion
|
|
4141
4149
|
//#region src/file/paragraph/math/bar/math-bar-pos.ts
|
|
4142
4150
|
var createMathBarPos;
|
|
4143
|
-
var init_math_bar_pos = __esmMin((
|
|
4151
|
+
var init_math_bar_pos = __esmMin(() => {
|
|
4144
4152
|
init_xml_components();
|
|
4145
4153
|
createMathBarPos = ({ val }) => new BuilderElement({
|
|
4146
4154
|
attributes: { val: {
|
|
@@ -4149,22 +4157,22 @@ var init_math_bar_pos = __esmMin((() => {
|
|
|
4149
4157
|
} },
|
|
4150
4158
|
name: "m:pos"
|
|
4151
4159
|
});
|
|
4152
|
-
})
|
|
4160
|
+
});
|
|
4153
4161
|
//#endregion
|
|
4154
4162
|
//#region src/file/paragraph/math/bar/math-bar-properties.ts
|
|
4155
4163
|
var createMathBarProperties;
|
|
4156
|
-
var init_math_bar_properties = __esmMin((
|
|
4164
|
+
var init_math_bar_properties = __esmMin(() => {
|
|
4157
4165
|
init_xml_components();
|
|
4158
4166
|
init_math_bar_pos();
|
|
4159
4167
|
createMathBarProperties = ({ type }) => new BuilderElement({
|
|
4160
4168
|
children: [createMathBarPos({ val: type })],
|
|
4161
4169
|
name: "m:barPr"
|
|
4162
4170
|
});
|
|
4163
|
-
})
|
|
4171
|
+
});
|
|
4164
4172
|
//#endregion
|
|
4165
4173
|
//#region src/file/paragraph/math/bar/math-bar.ts
|
|
4166
4174
|
var createMathBar;
|
|
4167
|
-
var init_math_bar = __esmMin((
|
|
4175
|
+
var init_math_bar = __esmMin(() => {
|
|
4168
4176
|
init_xml_components();
|
|
4169
4177
|
init_n_ary();
|
|
4170
4178
|
init_math_bar_properties();
|
|
@@ -4172,17 +4180,17 @@ var init_math_bar = __esmMin((() => {
|
|
|
4172
4180
|
children: [createMathBarProperties({ type }), createMathBase({ children })],
|
|
4173
4181
|
name: "m:bar"
|
|
4174
4182
|
});
|
|
4175
|
-
})
|
|
4183
|
+
});
|
|
4176
4184
|
//#endregion
|
|
4177
4185
|
//#region src/file/paragraph/math/bar/index.ts
|
|
4178
|
-
var init_bar = __esmMin((
|
|
4186
|
+
var init_bar = __esmMin(() => {
|
|
4179
4187
|
init_math_bar();
|
|
4180
4188
|
init_math_bar_properties();
|
|
4181
|
-
})
|
|
4189
|
+
});
|
|
4182
4190
|
//#endregion
|
|
4183
4191
|
//#region src/file/paragraph/math/border-box/math-border-box-properties.ts
|
|
4184
4192
|
var createMathBorderBoxProperties;
|
|
4185
|
-
var init_math_border_box_properties = __esmMin((
|
|
4193
|
+
var init_math_border_box_properties = __esmMin(() => {
|
|
4186
4194
|
init_xml_components();
|
|
4187
4195
|
createMathBorderBoxProperties = (options) => {
|
|
4188
4196
|
const children = [];
|
|
@@ -4199,11 +4207,11 @@ var init_math_border_box_properties = __esmMin((() => {
|
|
|
4199
4207
|
name: "m:borderBoxPr"
|
|
4200
4208
|
});
|
|
4201
4209
|
};
|
|
4202
|
-
})
|
|
4210
|
+
});
|
|
4203
4211
|
//#endregion
|
|
4204
4212
|
//#region src/file/paragraph/math/border-box/math-border-box.ts
|
|
4205
4213
|
var MathBorderBox;
|
|
4206
|
-
var init_math_border_box = __esmMin((
|
|
4214
|
+
var init_math_border_box = __esmMin(() => {
|
|
4207
4215
|
init_xml_components();
|
|
4208
4216
|
init_n_ary();
|
|
4209
4217
|
init_math_border_box_properties();
|
|
@@ -4214,17 +4222,17 @@ var init_math_border_box = __esmMin((() => {
|
|
|
4214
4222
|
this.root.push(createMathBase({ children: options.children }));
|
|
4215
4223
|
}
|
|
4216
4224
|
};
|
|
4217
|
-
})
|
|
4225
|
+
});
|
|
4218
4226
|
//#endregion
|
|
4219
4227
|
//#region src/file/paragraph/math/border-box/index.ts
|
|
4220
|
-
var init_border_box = __esmMin((
|
|
4228
|
+
var init_border_box = __esmMin(() => {
|
|
4221
4229
|
init_math_border_box();
|
|
4222
4230
|
init_math_border_box_properties();
|
|
4223
|
-
})
|
|
4231
|
+
});
|
|
4224
4232
|
//#endregion
|
|
4225
4233
|
//#region src/file/paragraph/math/box/math-box-properties.ts
|
|
4226
4234
|
var createMathBoxProperties;
|
|
4227
|
-
var init_math_box_properties = __esmMin((
|
|
4235
|
+
var init_math_box_properties = __esmMin(() => {
|
|
4228
4236
|
init_xml_components();
|
|
4229
4237
|
createMathBoxProperties = (options) => {
|
|
4230
4238
|
const children = [];
|
|
@@ -4237,11 +4245,11 @@ var init_math_box_properties = __esmMin((() => {
|
|
|
4237
4245
|
name: "m:boxPr"
|
|
4238
4246
|
});
|
|
4239
4247
|
};
|
|
4240
|
-
})
|
|
4248
|
+
});
|
|
4241
4249
|
//#endregion
|
|
4242
4250
|
//#region src/file/paragraph/math/box/math-box.ts
|
|
4243
4251
|
var MathBox;
|
|
4244
|
-
var init_math_box = __esmMin((
|
|
4252
|
+
var init_math_box = __esmMin(() => {
|
|
4245
4253
|
init_xml_components();
|
|
4246
4254
|
init_n_ary();
|
|
4247
4255
|
init_math_box_properties();
|
|
@@ -4252,17 +4260,17 @@ var init_math_box = __esmMin((() => {
|
|
|
4252
4260
|
this.root.push(createMathBase({ children: options.children }));
|
|
4253
4261
|
}
|
|
4254
4262
|
};
|
|
4255
|
-
})
|
|
4263
|
+
});
|
|
4256
4264
|
//#endregion
|
|
4257
4265
|
//#region src/file/paragraph/math/box/index.ts
|
|
4258
|
-
var init_box = __esmMin((
|
|
4266
|
+
var init_box = __esmMin(() => {
|
|
4259
4267
|
init_math_box();
|
|
4260
4268
|
init_math_box_properties();
|
|
4261
|
-
})
|
|
4269
|
+
});
|
|
4262
4270
|
//#endregion
|
|
4263
4271
|
//#region src/file/paragraph/math/brackets/math-beginning-character.ts
|
|
4264
4272
|
var createMathBeginningCharacter;
|
|
4265
|
-
var init_math_beginning_character = __esmMin((
|
|
4273
|
+
var init_math_beginning_character = __esmMin(() => {
|
|
4266
4274
|
init_xml_components();
|
|
4267
4275
|
createMathBeginningCharacter = ({ character }) => new BuilderElement({
|
|
4268
4276
|
attributes: { character: {
|
|
@@ -4271,11 +4279,11 @@ var init_math_beginning_character = __esmMin((() => {
|
|
|
4271
4279
|
} },
|
|
4272
4280
|
name: "m:begChr"
|
|
4273
4281
|
});
|
|
4274
|
-
})
|
|
4282
|
+
});
|
|
4275
4283
|
//#endregion
|
|
4276
4284
|
//#region src/file/paragraph/math/brackets/math-ending-char.ts
|
|
4277
4285
|
var createMathEndingCharacter;
|
|
4278
|
-
var init_math_ending_char = __esmMin((
|
|
4286
|
+
var init_math_ending_char = __esmMin(() => {
|
|
4279
4287
|
init_xml_components();
|
|
4280
4288
|
createMathEndingCharacter = ({ character }) => new BuilderElement({
|
|
4281
4289
|
attributes: { character: {
|
|
@@ -4284,11 +4292,11 @@ var init_math_ending_char = __esmMin((() => {
|
|
|
4284
4292
|
} },
|
|
4285
4293
|
name: "m:endChr"
|
|
4286
4294
|
});
|
|
4287
|
-
})
|
|
4295
|
+
});
|
|
4288
4296
|
//#endregion
|
|
4289
4297
|
//#region src/file/paragraph/math/brackets/math-bracket-properties.ts
|
|
4290
4298
|
var createMathBracketProperties;
|
|
4291
|
-
var init_math_bracket_properties = __esmMin((
|
|
4299
|
+
var init_math_bracket_properties = __esmMin(() => {
|
|
4292
4300
|
init_xml_components();
|
|
4293
4301
|
init_math_beginning_character();
|
|
4294
4302
|
init_math_ending_char();
|
|
@@ -4316,11 +4324,11 @@ var init_math_bracket_properties = __esmMin((() => {
|
|
|
4316
4324
|
name: "m:dPr"
|
|
4317
4325
|
});
|
|
4318
4326
|
};
|
|
4319
|
-
})
|
|
4327
|
+
});
|
|
4320
4328
|
//#endregion
|
|
4321
4329
|
//#region src/file/paragraph/math/brackets/math-round-brackets.ts
|
|
4322
4330
|
var MathRoundBrackets;
|
|
4323
|
-
var init_math_round_brackets = __esmMin((
|
|
4331
|
+
var init_math_round_brackets = __esmMin(() => {
|
|
4324
4332
|
init_xml_components();
|
|
4325
4333
|
init_n_ary();
|
|
4326
4334
|
init_math_bracket_properties();
|
|
@@ -4331,11 +4339,11 @@ var init_math_round_brackets = __esmMin((() => {
|
|
|
4331
4339
|
this.root.push(createMathBase({ children: options.children }));
|
|
4332
4340
|
}
|
|
4333
4341
|
};
|
|
4334
|
-
})
|
|
4342
|
+
});
|
|
4335
4343
|
//#endregion
|
|
4336
4344
|
//#region src/file/paragraph/math/brackets/math-square-brackets.ts
|
|
4337
4345
|
var MathSquareBrackets;
|
|
4338
|
-
var init_math_square_brackets = __esmMin((
|
|
4346
|
+
var init_math_square_brackets = __esmMin(() => {
|
|
4339
4347
|
init_xml_components();
|
|
4340
4348
|
init_n_ary();
|
|
4341
4349
|
init_math_bracket_properties();
|
|
@@ -4349,11 +4357,11 @@ var init_math_square_brackets = __esmMin((() => {
|
|
|
4349
4357
|
this.root.push(createMathBase({ children: options.children }));
|
|
4350
4358
|
}
|
|
4351
4359
|
};
|
|
4352
|
-
})
|
|
4360
|
+
});
|
|
4353
4361
|
//#endregion
|
|
4354
4362
|
//#region src/file/paragraph/math/brackets/math-curly-brackets.ts
|
|
4355
4363
|
var MathCurlyBrackets;
|
|
4356
|
-
var init_math_curly_brackets = __esmMin((
|
|
4364
|
+
var init_math_curly_brackets = __esmMin(() => {
|
|
4357
4365
|
init_xml_components();
|
|
4358
4366
|
init_n_ary();
|
|
4359
4367
|
init_math_bracket_properties();
|
|
@@ -4367,11 +4375,11 @@ var init_math_curly_brackets = __esmMin((() => {
|
|
|
4367
4375
|
this.root.push(createMathBase({ children: options.children }));
|
|
4368
4376
|
}
|
|
4369
4377
|
};
|
|
4370
|
-
})
|
|
4378
|
+
});
|
|
4371
4379
|
//#endregion
|
|
4372
4380
|
//#region src/file/paragraph/math/brackets/math-angled-brackets.ts
|
|
4373
4381
|
var MathAngledBrackets;
|
|
4374
|
-
var init_math_angled_brackets = __esmMin((
|
|
4382
|
+
var init_math_angled_brackets = __esmMin(() => {
|
|
4375
4383
|
init_xml_components();
|
|
4376
4384
|
init_n_ary();
|
|
4377
4385
|
init_math_bracket_properties();
|
|
@@ -4385,19 +4393,19 @@ var init_math_angled_brackets = __esmMin((() => {
|
|
|
4385
4393
|
this.root.push(createMathBase({ children: options.children }));
|
|
4386
4394
|
}
|
|
4387
4395
|
};
|
|
4388
|
-
})
|
|
4396
|
+
});
|
|
4389
4397
|
//#endregion
|
|
4390
4398
|
//#region src/file/paragraph/math/brackets/index.ts
|
|
4391
|
-
var init_brackets = __esmMin((
|
|
4399
|
+
var init_brackets = __esmMin(() => {
|
|
4392
4400
|
init_math_round_brackets();
|
|
4393
4401
|
init_math_square_brackets();
|
|
4394
4402
|
init_math_curly_brackets();
|
|
4395
4403
|
init_math_angled_brackets();
|
|
4396
|
-
})
|
|
4404
|
+
});
|
|
4397
4405
|
//#endregion
|
|
4398
4406
|
//#region src/file/paragraph/math/eq-arr/math-eq-arr-properties.ts
|
|
4399
4407
|
var createMathEqArrProperties;
|
|
4400
|
-
var init_math_eq_arr_properties = __esmMin((
|
|
4408
|
+
var init_math_eq_arr_properties = __esmMin(() => {
|
|
4401
4409
|
init_xml_components();
|
|
4402
4410
|
createMathEqArrProperties = (options) => {
|
|
4403
4411
|
const children = [];
|
|
@@ -4429,11 +4437,11 @@ var init_math_eq_arr_properties = __esmMin((() => {
|
|
|
4429
4437
|
name: "m:eqArrPr"
|
|
4430
4438
|
});
|
|
4431
4439
|
};
|
|
4432
|
-
})
|
|
4440
|
+
});
|
|
4433
4441
|
//#endregion
|
|
4434
4442
|
//#region src/file/paragraph/math/eq-arr/math-eq-arr.ts
|
|
4435
4443
|
var MathEqArr;
|
|
4436
|
-
var init_math_eq_arr = __esmMin((
|
|
4444
|
+
var init_math_eq_arr = __esmMin(() => {
|
|
4437
4445
|
init_xml_components();
|
|
4438
4446
|
init_n_ary();
|
|
4439
4447
|
init_math_eq_arr_properties();
|
|
@@ -4444,17 +4452,17 @@ var init_math_eq_arr = __esmMin((() => {
|
|
|
4444
4452
|
for (const row of options.rows) this.root.push(createMathBase({ children: row }));
|
|
4445
4453
|
}
|
|
4446
4454
|
};
|
|
4447
|
-
})
|
|
4455
|
+
});
|
|
4448
4456
|
//#endregion
|
|
4449
4457
|
//#region src/file/paragraph/math/eq-arr/index.ts
|
|
4450
|
-
var init_eq_arr = __esmMin((
|
|
4458
|
+
var init_eq_arr = __esmMin(() => {
|
|
4451
4459
|
init_math_eq_arr();
|
|
4452
4460
|
init_math_eq_arr_properties();
|
|
4453
|
-
})
|
|
4461
|
+
});
|
|
4454
4462
|
//#endregion
|
|
4455
4463
|
//#region src/file/paragraph/math/fraction/math-denominator.ts
|
|
4456
4464
|
var MathDenominator;
|
|
4457
|
-
var init_math_denominator = __esmMin((
|
|
4465
|
+
var init_math_denominator = __esmMin(() => {
|
|
4458
4466
|
init_xml_components();
|
|
4459
4467
|
MathDenominator = class extends XmlComponent {
|
|
4460
4468
|
constructor(children) {
|
|
@@ -4462,11 +4470,11 @@ var init_math_denominator = __esmMin((() => {
|
|
|
4462
4470
|
for (const child of children) this.root.push(child);
|
|
4463
4471
|
}
|
|
4464
4472
|
};
|
|
4465
|
-
})
|
|
4473
|
+
});
|
|
4466
4474
|
//#endregion
|
|
4467
4475
|
//#region src/file/paragraph/math/fraction/math-fraction-properties.ts
|
|
4468
4476
|
var FractionType, createMathFractionProperties;
|
|
4469
|
-
var init_math_fraction_properties = __esmMin((
|
|
4477
|
+
var init_math_fraction_properties = __esmMin(() => {
|
|
4470
4478
|
init_xml_components();
|
|
4471
4479
|
FractionType = {
|
|
4472
4480
|
/** Standard fraction with horizontal bar: a/b */
|
|
@@ -4492,11 +4500,11 @@ var init_math_fraction_properties = __esmMin((() => {
|
|
|
4492
4500
|
name: "m:fPr"
|
|
4493
4501
|
});
|
|
4494
4502
|
};
|
|
4495
|
-
})
|
|
4503
|
+
});
|
|
4496
4504
|
//#endregion
|
|
4497
4505
|
//#region src/file/paragraph/math/fraction/math-numerator.ts
|
|
4498
4506
|
var MathNumerator;
|
|
4499
|
-
var init_math_numerator = __esmMin((
|
|
4507
|
+
var init_math_numerator = __esmMin(() => {
|
|
4500
4508
|
init_xml_components();
|
|
4501
4509
|
MathNumerator = class extends XmlComponent {
|
|
4502
4510
|
constructor(children) {
|
|
@@ -4504,11 +4512,11 @@ var init_math_numerator = __esmMin((() => {
|
|
|
4504
4512
|
for (const child of children) this.root.push(child);
|
|
4505
4513
|
}
|
|
4506
4514
|
};
|
|
4507
|
-
})
|
|
4515
|
+
});
|
|
4508
4516
|
//#endregion
|
|
4509
4517
|
//#region src/file/paragraph/math/fraction/math-fraction.ts
|
|
4510
4518
|
var MathFraction;
|
|
4511
|
-
var init_math_fraction = __esmMin((
|
|
4519
|
+
var init_math_fraction = __esmMin(() => {
|
|
4512
4520
|
init_xml_components();
|
|
4513
4521
|
init_math_denominator();
|
|
4514
4522
|
init_math_fraction_properties();
|
|
@@ -4521,19 +4529,19 @@ var init_math_fraction = __esmMin((() => {
|
|
|
4521
4529
|
this.root.push(new MathDenominator(options.denominator));
|
|
4522
4530
|
}
|
|
4523
4531
|
};
|
|
4524
|
-
})
|
|
4532
|
+
});
|
|
4525
4533
|
//#endregion
|
|
4526
4534
|
//#region src/file/paragraph/math/fraction/index.ts
|
|
4527
|
-
var init_fraction = __esmMin((
|
|
4535
|
+
var init_fraction = __esmMin(() => {
|
|
4528
4536
|
init_math_fraction();
|
|
4529
4537
|
init_math_fraction_properties();
|
|
4530
4538
|
init_math_denominator();
|
|
4531
4539
|
init_math_numerator();
|
|
4532
|
-
})
|
|
4540
|
+
});
|
|
4533
4541
|
//#endregion
|
|
4534
4542
|
//#region src/file/paragraph/math/function/math-function-name.ts
|
|
4535
4543
|
var MathFunctionName;
|
|
4536
|
-
var init_math_function_name = __esmMin((
|
|
4544
|
+
var init_math_function_name = __esmMin(() => {
|
|
4537
4545
|
init_xml_components();
|
|
4538
4546
|
MathFunctionName = class extends XmlComponent {
|
|
4539
4547
|
constructor(children) {
|
|
@@ -4541,11 +4549,11 @@ var init_math_function_name = __esmMin((() => {
|
|
|
4541
4549
|
for (const child of children) this.root.push(child);
|
|
4542
4550
|
}
|
|
4543
4551
|
};
|
|
4544
|
-
})
|
|
4552
|
+
});
|
|
4545
4553
|
//#endregion
|
|
4546
4554
|
//#region src/file/paragraph/math/function/math-function-properties.ts
|
|
4547
4555
|
var createMathFunctionProperties;
|
|
4548
|
-
var init_math_function_properties = __esmMin((
|
|
4556
|
+
var init_math_function_properties = __esmMin(() => {
|
|
4549
4557
|
init_xml_components();
|
|
4550
4558
|
init_math_control_properties();
|
|
4551
4559
|
createMathFunctionProperties = (options) => {
|
|
@@ -4556,11 +4564,11 @@ var init_math_function_properties = __esmMin((() => {
|
|
|
4556
4564
|
name: "m:funcPr"
|
|
4557
4565
|
});
|
|
4558
4566
|
};
|
|
4559
|
-
})
|
|
4567
|
+
});
|
|
4560
4568
|
//#endregion
|
|
4561
4569
|
//#region src/file/paragraph/math/function/math-function.ts
|
|
4562
4570
|
var MathFunction;
|
|
4563
|
-
var init_math_function = __esmMin((
|
|
4571
|
+
var init_math_function = __esmMin(() => {
|
|
4564
4572
|
init_xml_components();
|
|
4565
4573
|
init_n_ary();
|
|
4566
4574
|
init_math_function_name();
|
|
@@ -4573,18 +4581,18 @@ var init_math_function = __esmMin((() => {
|
|
|
4573
4581
|
this.root.push(createMathBase({ children: options.children }));
|
|
4574
4582
|
}
|
|
4575
4583
|
};
|
|
4576
|
-
})
|
|
4584
|
+
});
|
|
4577
4585
|
//#endregion
|
|
4578
4586
|
//#region src/file/paragraph/math/function/index.ts
|
|
4579
|
-
var init_function = __esmMin((
|
|
4587
|
+
var init_function = __esmMin(() => {
|
|
4580
4588
|
init_math_function();
|
|
4581
4589
|
init_math_function_name();
|
|
4582
4590
|
init_math_function_properties();
|
|
4583
|
-
})
|
|
4591
|
+
});
|
|
4584
4592
|
//#endregion
|
|
4585
4593
|
//#region src/file/paragraph/math/group-chr/math-group-chr-properties.ts
|
|
4586
4594
|
var createMathGroupChrProperties;
|
|
4587
|
-
var init_math_group_chr_properties = __esmMin((
|
|
4595
|
+
var init_math_group_chr_properties = __esmMin(() => {
|
|
4588
4596
|
init_xml_components();
|
|
4589
4597
|
createMathGroupChrProperties = (options) => {
|
|
4590
4598
|
const children = [];
|
|
@@ -4614,11 +4622,11 @@ var init_math_group_chr_properties = __esmMin((() => {
|
|
|
4614
4622
|
name: "m:groupChrPr"
|
|
4615
4623
|
});
|
|
4616
4624
|
};
|
|
4617
|
-
})
|
|
4625
|
+
});
|
|
4618
4626
|
//#endregion
|
|
4619
4627
|
//#region src/file/paragraph/math/group-chr/math-group-chr.ts
|
|
4620
4628
|
var MathGroupChr;
|
|
4621
|
-
var init_math_group_chr = __esmMin((
|
|
4629
|
+
var init_math_group_chr = __esmMin(() => {
|
|
4622
4630
|
init_xml_components();
|
|
4623
4631
|
init_n_ary();
|
|
4624
4632
|
init_math_group_chr_properties();
|
|
@@ -4629,17 +4637,17 @@ var init_math_group_chr = __esmMin((() => {
|
|
|
4629
4637
|
this.root.push(createMathBase({ children: options.children }));
|
|
4630
4638
|
}
|
|
4631
4639
|
};
|
|
4632
|
-
})
|
|
4640
|
+
});
|
|
4633
4641
|
//#endregion
|
|
4634
4642
|
//#region src/file/paragraph/math/group-chr/index.ts
|
|
4635
|
-
var init_group_chr = __esmMin((
|
|
4643
|
+
var init_group_chr = __esmMin(() => {
|
|
4636
4644
|
init_math_group_chr();
|
|
4637
4645
|
init_math_group_chr_properties();
|
|
4638
|
-
})
|
|
4646
|
+
});
|
|
4639
4647
|
//#endregion
|
|
4640
4648
|
//#region src/file/paragraph/math/math-run-properties.ts
|
|
4641
4649
|
var createMathRunProperties;
|
|
4642
|
-
var init_math_run_properties = __esmMin((
|
|
4650
|
+
var init_math_run_properties = __esmMin(() => {
|
|
4643
4651
|
init_xml_components();
|
|
4644
4652
|
createMathRunProperties = (options) => {
|
|
4645
4653
|
const children = [];
|
|
@@ -4674,11 +4682,11 @@ var init_math_run_properties = __esmMin((() => {
|
|
|
4674
4682
|
name: "m:rPr"
|
|
4675
4683
|
});
|
|
4676
4684
|
};
|
|
4677
|
-
})
|
|
4685
|
+
});
|
|
4678
4686
|
//#endregion
|
|
4679
4687
|
//#region src/file/paragraph/math/math-text.ts
|
|
4680
4688
|
var MathText;
|
|
4681
|
-
var init_math_text = __esmMin((
|
|
4689
|
+
var init_math_text = __esmMin(() => {
|
|
4682
4690
|
init_xml_components();
|
|
4683
4691
|
MathText = class extends XmlComponent {
|
|
4684
4692
|
constructor(text) {
|
|
@@ -4686,11 +4694,11 @@ var init_math_text = __esmMin((() => {
|
|
|
4686
4694
|
this.root.push(text);
|
|
4687
4695
|
}
|
|
4688
4696
|
};
|
|
4689
|
-
})
|
|
4697
|
+
});
|
|
4690
4698
|
//#endregion
|
|
4691
4699
|
//#region src/file/paragraph/math/math-run.ts
|
|
4692
4700
|
var MathRun;
|
|
4693
|
-
var init_math_run = __esmMin((
|
|
4701
|
+
var init_math_run = __esmMin(() => {
|
|
4694
4702
|
init_xml_components();
|
|
4695
4703
|
init_math_run_properties();
|
|
4696
4704
|
init_math_text();
|
|
@@ -4702,11 +4710,11 @@ var init_math_run = __esmMin((() => {
|
|
|
4702
4710
|
this.root.push(new MathText(options.text));
|
|
4703
4711
|
}
|
|
4704
4712
|
};
|
|
4705
|
-
})
|
|
4713
|
+
});
|
|
4706
4714
|
//#endregion
|
|
4707
4715
|
//#region src/file/paragraph/math/matrix/math-matrix-properties.ts
|
|
4708
4716
|
var createMathMatrixProperties;
|
|
4709
|
-
var init_math_matrix_properties = __esmMin((
|
|
4717
|
+
var init_math_matrix_properties = __esmMin(() => {
|
|
4710
4718
|
init_xml_components();
|
|
4711
4719
|
createMathMatrixProperties = (options) => {
|
|
4712
4720
|
const children = [];
|
|
@@ -4758,11 +4766,11 @@ var init_math_matrix_properties = __esmMin((() => {
|
|
|
4758
4766
|
name: "m:mPr"
|
|
4759
4767
|
});
|
|
4760
4768
|
};
|
|
4761
|
-
})
|
|
4769
|
+
});
|
|
4762
4770
|
//#endregion
|
|
4763
4771
|
//#region src/file/paragraph/math/matrix/math-matrix.ts
|
|
4764
4772
|
var MathMatrix;
|
|
4765
|
-
var init_math_matrix = __esmMin((
|
|
4773
|
+
var init_math_matrix = __esmMin(() => {
|
|
4766
4774
|
init_xml_components();
|
|
4767
4775
|
init_n_ary();
|
|
4768
4776
|
init_math_matrix_properties();
|
|
@@ -4776,11 +4784,11 @@ var init_math_matrix = __esmMin((() => {
|
|
|
4776
4784
|
}));
|
|
4777
4785
|
}
|
|
4778
4786
|
};
|
|
4779
|
-
})
|
|
4787
|
+
});
|
|
4780
4788
|
//#endregion
|
|
4781
4789
|
//#region src/file/paragraph/math/phant/math-phant-properties.ts
|
|
4782
4790
|
var createMathPhantProperties;
|
|
4783
|
-
var init_math_phant_properties = __esmMin((
|
|
4791
|
+
var init_math_phant_properties = __esmMin(() => {
|
|
4784
4792
|
init_xml_components();
|
|
4785
4793
|
createMathPhantProperties = (options) => {
|
|
4786
4794
|
const children = [];
|
|
@@ -4794,11 +4802,11 @@ var init_math_phant_properties = __esmMin((() => {
|
|
|
4794
4802
|
name: "m:phantPr"
|
|
4795
4803
|
});
|
|
4796
4804
|
};
|
|
4797
|
-
})
|
|
4805
|
+
});
|
|
4798
4806
|
//#endregion
|
|
4799
4807
|
//#region src/file/paragraph/math/phant/math-phant.ts
|
|
4800
4808
|
var MathPhant;
|
|
4801
|
-
var init_math_phant = __esmMin((
|
|
4809
|
+
var init_math_phant = __esmMin(() => {
|
|
4802
4810
|
init_xml_components();
|
|
4803
4811
|
init_n_ary();
|
|
4804
4812
|
init_math_phant_properties();
|
|
@@ -4809,11 +4817,11 @@ var init_math_phant = __esmMin((() => {
|
|
|
4809
4817
|
this.root.push(createMathBase({ children: options.children }));
|
|
4810
4818
|
}
|
|
4811
4819
|
};
|
|
4812
|
-
})
|
|
4820
|
+
});
|
|
4813
4821
|
//#endregion
|
|
4814
4822
|
//#region src/file/paragraph/math/radical/math-degree.ts
|
|
4815
4823
|
var MathDegree;
|
|
4816
|
-
var init_math_degree = __esmMin((
|
|
4824
|
+
var init_math_degree = __esmMin(() => {
|
|
4817
4825
|
init_xml_components();
|
|
4818
4826
|
MathDegree = class extends XmlComponent {
|
|
4819
4827
|
constructor(children) {
|
|
@@ -4821,11 +4829,11 @@ var init_math_degree = __esmMin((() => {
|
|
|
4821
4829
|
if (children) for (const child of children) this.root.push(child);
|
|
4822
4830
|
}
|
|
4823
4831
|
};
|
|
4824
|
-
})
|
|
4832
|
+
});
|
|
4825
4833
|
//#endregion
|
|
4826
4834
|
//#region src/file/paragraph/math/radical/math-degree-hide.ts
|
|
4827
4835
|
var MathDegreeHide;
|
|
4828
|
-
var init_math_degree_hide = __esmMin((
|
|
4836
|
+
var init_math_degree_hide = __esmMin(() => {
|
|
4829
4837
|
init_xml_components();
|
|
4830
4838
|
MathDegreeHide = class extends XmlComponent {
|
|
4831
4839
|
constructor() {
|
|
@@ -4833,11 +4841,11 @@ var init_math_degree_hide = __esmMin((() => {
|
|
|
4833
4841
|
this.root.push({ _attr: { "m:val": 1 } });
|
|
4834
4842
|
}
|
|
4835
4843
|
};
|
|
4836
|
-
})
|
|
4844
|
+
});
|
|
4837
4845
|
//#endregion
|
|
4838
4846
|
//#region src/file/paragraph/math/radical/math-radical-properties.ts
|
|
4839
4847
|
var MathRadicalProperties;
|
|
4840
|
-
var init_math_radical_properties = __esmMin((
|
|
4848
|
+
var init_math_radical_properties = __esmMin(() => {
|
|
4841
4849
|
init_xml_components();
|
|
4842
4850
|
init_math_degree_hide();
|
|
4843
4851
|
MathRadicalProperties = class extends XmlComponent {
|
|
@@ -4846,11 +4854,11 @@ var init_math_radical_properties = __esmMin((() => {
|
|
|
4846
4854
|
if (!hasDegree) this.root.push(new MathDegreeHide());
|
|
4847
4855
|
}
|
|
4848
4856
|
};
|
|
4849
|
-
})
|
|
4857
|
+
});
|
|
4850
4858
|
//#endregion
|
|
4851
4859
|
//#region src/file/paragraph/math/radical/math-radical.ts
|
|
4852
4860
|
var MathRadical;
|
|
4853
|
-
var init_math_radical = __esmMin((
|
|
4861
|
+
var init_math_radical = __esmMin(() => {
|
|
4854
4862
|
init_xml_components();
|
|
4855
4863
|
init_n_ary();
|
|
4856
4864
|
init_math_degree();
|
|
@@ -4863,18 +4871,18 @@ var init_math_radical = __esmMin((() => {
|
|
|
4863
4871
|
this.root.push(createMathBase({ children: options.children }));
|
|
4864
4872
|
}
|
|
4865
4873
|
};
|
|
4866
|
-
})
|
|
4874
|
+
});
|
|
4867
4875
|
//#endregion
|
|
4868
4876
|
//#region src/file/paragraph/math/script/super-script/math-super-script-function-properties.ts
|
|
4869
4877
|
var createMathSuperScriptProperties;
|
|
4870
|
-
var init_math_super_script_function_properties = __esmMin((
|
|
4878
|
+
var init_math_super_script_function_properties = __esmMin(() => {
|
|
4871
4879
|
init_xml_components();
|
|
4872
4880
|
createMathSuperScriptProperties = () => new BuilderElement({ name: "m:sSupPr" });
|
|
4873
|
-
})
|
|
4881
|
+
});
|
|
4874
4882
|
//#endregion
|
|
4875
4883
|
//#region src/file/paragraph/math/script/super-script/math-super-script-function.ts
|
|
4876
4884
|
var MathSuperScript;
|
|
4877
|
-
var init_math_super_script_function = __esmMin((
|
|
4885
|
+
var init_math_super_script_function = __esmMin(() => {
|
|
4878
4886
|
init_xml_components();
|
|
4879
4887
|
init_n_ary();
|
|
4880
4888
|
init_math_super_script_function_properties();
|
|
@@ -4886,24 +4894,24 @@ var init_math_super_script_function = __esmMin((() => {
|
|
|
4886
4894
|
this.root.push(createMathSuperScriptElement({ children: options.superScript }));
|
|
4887
4895
|
}
|
|
4888
4896
|
};
|
|
4889
|
-
})
|
|
4897
|
+
});
|
|
4890
4898
|
//#endregion
|
|
4891
4899
|
//#region src/file/paragraph/math/script/super-script/index.ts
|
|
4892
|
-
var init_super_script = __esmMin((
|
|
4900
|
+
var init_super_script = __esmMin(() => {
|
|
4893
4901
|
init_math_super_script_function();
|
|
4894
4902
|
init_math_super_script_function_properties();
|
|
4895
|
-
})
|
|
4903
|
+
});
|
|
4896
4904
|
//#endregion
|
|
4897
4905
|
//#region src/file/paragraph/math/script/sub-script/math-sub-script-function-properties.ts
|
|
4898
4906
|
var createMathSubScriptProperties;
|
|
4899
|
-
var init_math_sub_script_function_properties = __esmMin((
|
|
4907
|
+
var init_math_sub_script_function_properties = __esmMin(() => {
|
|
4900
4908
|
init_xml_components();
|
|
4901
4909
|
createMathSubScriptProperties = () => new BuilderElement({ name: "m:sSubPr" });
|
|
4902
|
-
})
|
|
4910
|
+
});
|
|
4903
4911
|
//#endregion
|
|
4904
4912
|
//#region src/file/paragraph/math/script/sub-script/math-sub-script-function.ts
|
|
4905
4913
|
var MathSubScript;
|
|
4906
|
-
var init_math_sub_script_function = __esmMin((
|
|
4914
|
+
var init_math_sub_script_function = __esmMin(() => {
|
|
4907
4915
|
init_xml_components();
|
|
4908
4916
|
init_n_ary();
|
|
4909
4917
|
init_math_sub_script_function_properties();
|
|
@@ -4915,17 +4923,17 @@ var init_math_sub_script_function = __esmMin((() => {
|
|
|
4915
4923
|
this.root.push(createMathSubScriptElement({ children: options.subScript }));
|
|
4916
4924
|
}
|
|
4917
4925
|
};
|
|
4918
|
-
})
|
|
4926
|
+
});
|
|
4919
4927
|
//#endregion
|
|
4920
4928
|
//#region src/file/paragraph/math/script/sub-script/index.ts
|
|
4921
|
-
var init_sub_script = __esmMin((
|
|
4929
|
+
var init_sub_script = __esmMin(() => {
|
|
4922
4930
|
init_math_sub_script_function();
|
|
4923
4931
|
init_math_sub_script_function_properties();
|
|
4924
|
-
})
|
|
4932
|
+
});
|
|
4925
4933
|
//#endregion
|
|
4926
4934
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.ts
|
|
4927
4935
|
var createMathSubSuperScriptProperties;
|
|
4928
|
-
var init_math_sub_super_script_function_properties = __esmMin((
|
|
4936
|
+
var init_math_sub_super_script_function_properties = __esmMin(() => {
|
|
4929
4937
|
init_xml_components();
|
|
4930
4938
|
createMathSubSuperScriptProperties = (options) => {
|
|
4931
4939
|
const children = [];
|
|
@@ -4935,11 +4943,11 @@ var init_math_sub_super_script_function_properties = __esmMin((() => {
|
|
|
4935
4943
|
name: "m:sSubSupPr"
|
|
4936
4944
|
});
|
|
4937
4945
|
};
|
|
4938
|
-
})
|
|
4946
|
+
});
|
|
4939
4947
|
//#endregion
|
|
4940
4948
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.ts
|
|
4941
4949
|
var MathSubSuperScript;
|
|
4942
|
-
var init_math_sub_super_script_function = __esmMin((
|
|
4950
|
+
var init_math_sub_super_script_function = __esmMin(() => {
|
|
4943
4951
|
init_xml_components();
|
|
4944
4952
|
init_n_ary();
|
|
4945
4953
|
init_math_sub_super_script_function_properties();
|
|
@@ -4952,24 +4960,24 @@ var init_math_sub_super_script_function = __esmMin((() => {
|
|
|
4952
4960
|
this.root.push(createMathSuperScriptElement({ children: options.superScript }));
|
|
4953
4961
|
}
|
|
4954
4962
|
};
|
|
4955
|
-
})
|
|
4963
|
+
});
|
|
4956
4964
|
//#endregion
|
|
4957
4965
|
//#region src/file/paragraph/math/script/sub-super-script/index.ts
|
|
4958
|
-
var init_sub_super_script = __esmMin((
|
|
4966
|
+
var init_sub_super_script = __esmMin(() => {
|
|
4959
4967
|
init_math_sub_super_script_function();
|
|
4960
4968
|
init_math_sub_super_script_function_properties();
|
|
4961
|
-
})
|
|
4969
|
+
});
|
|
4962
4970
|
//#endregion
|
|
4963
4971
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.ts
|
|
4964
4972
|
var createMathPreSubSuperScriptProperties;
|
|
4965
|
-
var init_math_pre_sub_super_script_function_properties = __esmMin((
|
|
4973
|
+
var init_math_pre_sub_super_script_function_properties = __esmMin(() => {
|
|
4966
4974
|
init_xml_components();
|
|
4967
4975
|
createMathPreSubSuperScriptProperties = () => new BuilderElement({ name: "m:sPrePr" });
|
|
4968
|
-
})
|
|
4976
|
+
});
|
|
4969
4977
|
//#endregion
|
|
4970
4978
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.ts
|
|
4971
4979
|
var MathPreSubSuperScript;
|
|
4972
|
-
var init_math_pre_sub_super_script_function = __esmMin((
|
|
4980
|
+
var init_math_pre_sub_super_script_function = __esmMin(() => {
|
|
4973
4981
|
init_xml_components();
|
|
4974
4982
|
init_n_ary();
|
|
4975
4983
|
init_math_pre_sub_super_script_function_properties();
|
|
@@ -4986,21 +4994,21 @@ var init_math_pre_sub_super_script_function = __esmMin((() => {
|
|
|
4986
4994
|
});
|
|
4987
4995
|
}
|
|
4988
4996
|
};
|
|
4989
|
-
})
|
|
4997
|
+
});
|
|
4990
4998
|
//#endregion
|
|
4991
4999
|
//#region src/file/paragraph/math/script/pre-sub-super-script/index.ts
|
|
4992
|
-
var init_pre_sub_super_script = __esmMin((
|
|
5000
|
+
var init_pre_sub_super_script = __esmMin(() => {
|
|
4993
5001
|
init_math_pre_sub_super_script_function();
|
|
4994
5002
|
init_math_pre_sub_super_script_function_properties();
|
|
4995
|
-
})
|
|
5003
|
+
});
|
|
4996
5004
|
//#endregion
|
|
4997
5005
|
//#region src/file/paragraph/math/script/index.ts
|
|
4998
|
-
var init_script = __esmMin((
|
|
5006
|
+
var init_script = __esmMin(() => {
|
|
4999
5007
|
init_super_script();
|
|
5000
5008
|
init_sub_script();
|
|
5001
5009
|
init_sub_super_script();
|
|
5002
5010
|
init_pre_sub_super_script();
|
|
5003
|
-
})
|
|
5011
|
+
});
|
|
5004
5012
|
//#endregion
|
|
5005
5013
|
//#region src/file/paragraph/math/math-coerce.ts
|
|
5006
5014
|
/** Coerce an array of MathJson values to MathComponent instances. */
|
|
@@ -5164,7 +5172,7 @@ function coerceMathJson(value) {
|
|
|
5164
5172
|
properties: value.properties
|
|
5165
5173
|
});
|
|
5166
5174
|
}
|
|
5167
|
-
var init_math_coerce = __esmMin((
|
|
5175
|
+
var init_math_coerce = __esmMin(() => {
|
|
5168
5176
|
init_xml_components();
|
|
5169
5177
|
init_math_accent();
|
|
5170
5178
|
init_math_bar();
|
|
@@ -5181,11 +5189,11 @@ var init_math_coerce = __esmMin((() => {
|
|
|
5181
5189
|
init_math_phant();
|
|
5182
5190
|
init_math_radical();
|
|
5183
5191
|
init_script();
|
|
5184
|
-
})
|
|
5192
|
+
});
|
|
5185
5193
|
//#endregion
|
|
5186
5194
|
//#region src/file/paragraph/math/math.ts
|
|
5187
5195
|
var Math$1;
|
|
5188
|
-
var init_math$1 = __esmMin((
|
|
5196
|
+
var init_math$1 = __esmMin(() => {
|
|
5189
5197
|
init_xml_components();
|
|
5190
5198
|
Math$1 = class extends XmlComponent {
|
|
5191
5199
|
constructor(options) {
|
|
@@ -5193,7 +5201,7 @@ var init_math$1 = __esmMin((() => {
|
|
|
5193
5201
|
for (const child of options.children) this.root.push(child);
|
|
5194
5202
|
}
|
|
5195
5203
|
};
|
|
5196
|
-
})
|
|
5204
|
+
});
|
|
5197
5205
|
//#endregion
|
|
5198
5206
|
//#region src/file/paragraph/math/math-parse.ts
|
|
5199
5207
|
/**
|
|
@@ -5421,17 +5429,17 @@ function parseMathArg(parent, childName) {
|
|
|
5421
5429
|
if (!container) return [];
|
|
5422
5430
|
return parseMathChildren(container);
|
|
5423
5431
|
}
|
|
5424
|
-
var init_math_parse = __esmMin((
|
|
5432
|
+
var init_math_parse = __esmMin(() => {});
|
|
5425
5433
|
//#endregion
|
|
5426
5434
|
//#region src/file/paragraph/math/math-component.ts
|
|
5427
5435
|
var WORKAROUND4;
|
|
5428
|
-
var init_math_component = __esmMin((
|
|
5436
|
+
var init_math_component = __esmMin(() => {
|
|
5429
5437
|
WORKAROUND4 = "";
|
|
5430
|
-
})
|
|
5438
|
+
});
|
|
5431
5439
|
//#endregion
|
|
5432
5440
|
//#region src/file/paragraph/math/math-para.ts
|
|
5433
5441
|
var createMathParagraphProperties, MathParagraph;
|
|
5434
|
-
var init_math_para = __esmMin((
|
|
5442
|
+
var init_math_para = __esmMin(() => {
|
|
5435
5443
|
init_xml_components();
|
|
5436
5444
|
init_math$1();
|
|
5437
5445
|
createMathParagraphProperties = (justification) => new BuilderElement({
|
|
@@ -5451,11 +5459,11 @@ var init_math_para = __esmMin((() => {
|
|
|
5451
5459
|
for (const child of options.children) this.root.push(new Math$1(child));
|
|
5452
5460
|
}
|
|
5453
5461
|
};
|
|
5454
|
-
})
|
|
5462
|
+
});
|
|
5455
5463
|
//#endregion
|
|
5456
5464
|
//#region src/file/paragraph/math/math-pr.ts
|
|
5457
5465
|
var createMathProperties;
|
|
5458
|
-
var init_math_pr = __esmMin((
|
|
5466
|
+
var init_math_pr = __esmMin(() => {
|
|
5459
5467
|
init_xml_components();
|
|
5460
5468
|
createMathProperties = (options) => {
|
|
5461
5469
|
const children = [];
|
|
@@ -5558,29 +5566,29 @@ var init_math_pr = __esmMin((() => {
|
|
|
5558
5566
|
name: "m:mathPr"
|
|
5559
5567
|
});
|
|
5560
5568
|
};
|
|
5561
|
-
})
|
|
5569
|
+
});
|
|
5562
5570
|
//#endregion
|
|
5563
5571
|
//#region src/file/paragraph/math/matrix/index.ts
|
|
5564
|
-
var init_matrix = __esmMin((
|
|
5572
|
+
var init_matrix = __esmMin(() => {
|
|
5565
5573
|
init_math_matrix();
|
|
5566
5574
|
init_math_matrix_properties();
|
|
5567
|
-
})
|
|
5575
|
+
});
|
|
5568
5576
|
//#endregion
|
|
5569
5577
|
//#region src/file/paragraph/math/phant/index.ts
|
|
5570
|
-
var init_phant = __esmMin((
|
|
5578
|
+
var init_phant = __esmMin(() => {
|
|
5571
5579
|
init_math_phant();
|
|
5572
5580
|
init_math_phant_properties();
|
|
5573
|
-
})
|
|
5581
|
+
});
|
|
5574
5582
|
//#endregion
|
|
5575
5583
|
//#region src/file/paragraph/math/radical/index.ts
|
|
5576
|
-
var init_radical = __esmMin((
|
|
5584
|
+
var init_radical = __esmMin(() => {
|
|
5577
5585
|
init_math_degree();
|
|
5578
5586
|
init_math_radical();
|
|
5579
5587
|
init_math_radical_properties();
|
|
5580
|
-
})
|
|
5588
|
+
});
|
|
5581
5589
|
//#endregion
|
|
5582
5590
|
//#region src/file/paragraph/math/index.ts
|
|
5583
|
-
var init_math = __esmMin((
|
|
5591
|
+
var init_math = __esmMin(() => {
|
|
5584
5592
|
init_accent();
|
|
5585
5593
|
init_bar();
|
|
5586
5594
|
init_border_box();
|
|
@@ -5604,11 +5612,11 @@ var init_math = __esmMin((() => {
|
|
|
5604
5612
|
init_phant();
|
|
5605
5613
|
init_radical();
|
|
5606
5614
|
init_script();
|
|
5607
|
-
})
|
|
5615
|
+
});
|
|
5608
5616
|
//#endregion
|
|
5609
5617
|
//#region src/file/endnotes/endnote/run/reference-run.ts
|
|
5610
5618
|
var EndnoteIdReference, EndnoteReferenceRun;
|
|
5611
|
-
var init_reference_run$1 = __esmMin((
|
|
5619
|
+
var init_reference_run$1 = __esmMin(() => {
|
|
5612
5620
|
init_run();
|
|
5613
5621
|
init_xml_components();
|
|
5614
5622
|
EndnoteIdReference = class extends XmlComponent {
|
|
@@ -5623,11 +5631,11 @@ var init_reference_run$1 = __esmMin((() => {
|
|
|
5623
5631
|
this.extraChildren.push(new EndnoteIdReference(id));
|
|
5624
5632
|
}
|
|
5625
5633
|
};
|
|
5626
|
-
})
|
|
5634
|
+
});
|
|
5627
5635
|
//#endregion
|
|
5628
5636
|
//#region src/file/footnotes/footnote/run/reference-run.ts
|
|
5629
5637
|
var FootnoteReference, FootnoteReferenceRun;
|
|
5630
|
-
var init_reference_run = __esmMin((
|
|
5638
|
+
var init_reference_run = __esmMin(() => {
|
|
5631
5639
|
init_run();
|
|
5632
5640
|
init_xml_components();
|
|
5633
5641
|
FootnoteReference = class extends XmlComponent {
|
|
@@ -5647,11 +5655,11 @@ var init_reference_run = __esmMin((() => {
|
|
|
5647
5655
|
this.extraChildren.push(new FootnoteReference(id));
|
|
5648
5656
|
}
|
|
5649
5657
|
};
|
|
5650
|
-
})
|
|
5658
|
+
});
|
|
5651
5659
|
//#endregion
|
|
5652
5660
|
//#region src/file/paragraph/formatting/spacing.ts
|
|
5653
5661
|
var LineRuleType, createSpacing, buildSpacingObj;
|
|
5654
|
-
var init_spacing = __esmMin((
|
|
5662
|
+
var init_spacing = __esmMin(() => {
|
|
5655
5663
|
init_xml_components();
|
|
5656
5664
|
init_values();
|
|
5657
5665
|
LineRuleType = {
|
|
@@ -5711,11 +5719,11 @@ var init_spacing = __esmMin((() => {
|
|
|
5711
5719
|
"w:line": line,
|
|
5712
5720
|
"w:lineRule": lineRule
|
|
5713
5721
|
});
|
|
5714
|
-
})
|
|
5722
|
+
});
|
|
5715
5723
|
//#endregion
|
|
5716
5724
|
//#region src/file/paragraph/formatting/style.ts
|
|
5717
5725
|
var HeadingLevel, createParagraphStyle;
|
|
5718
|
-
var init_style = __esmMin((
|
|
5726
|
+
var init_style = __esmMin(() => {
|
|
5719
5727
|
init_xml_components();
|
|
5720
5728
|
HeadingLevel = {
|
|
5721
5729
|
/** Heading 1 style */
|
|
@@ -5740,11 +5748,11 @@ var init_style = __esmMin((() => {
|
|
|
5740
5748
|
} },
|
|
5741
5749
|
name: "w:pStyle"
|
|
5742
5750
|
});
|
|
5743
|
-
})
|
|
5751
|
+
});
|
|
5744
5752
|
//#endregion
|
|
5745
5753
|
//#region src/file/paragraph/formatting/tab-stop.ts
|
|
5746
5754
|
var TabStopType, LeaderType, TabStopPosition, createTabStopItem, createTabStop, buildTabStopObj;
|
|
5747
|
-
var init_tab_stop = __esmMin((
|
|
5755
|
+
var init_tab_stop = __esmMin(() => {
|
|
5748
5756
|
init_xml_components();
|
|
5749
5757
|
TabStopType = {
|
|
5750
5758
|
/** Left-aligned tab stop */
|
|
@@ -5809,7 +5817,7 @@ MAX: 9026 };
|
|
|
5809
5817
|
"w:pos": position,
|
|
5810
5818
|
"w:leader": leader
|
|
5811
5819
|
})) });
|
|
5812
|
-
})
|
|
5820
|
+
});
|
|
5813
5821
|
//#endregion
|
|
5814
5822
|
//#region src/file/paragraph/formatting/unordered-list.ts
|
|
5815
5823
|
/**
|
|
@@ -5860,7 +5868,7 @@ function buildNumberProperties(numberId, indentLevel) {
|
|
|
5860
5868
|
return { "w:numPr": [{ "w:ilvl": { _attr: { "w:val": Math.min(indentLevel, 9) } } }, { "w:numId": { _attr: { "w:val": typeof numberId === "string" ? `{${numberId}}` : numberId } } }] };
|
|
5861
5869
|
}
|
|
5862
5870
|
var NumberProperties, IndentLevel, NumberId;
|
|
5863
|
-
var init_unordered_list = __esmMin((
|
|
5871
|
+
var init_unordered_list = __esmMin(() => {
|
|
5864
5872
|
init_xml_components();
|
|
5865
5873
|
NumberProperties = class extends XmlComponent {
|
|
5866
5874
|
constructor(numberId, indentLevel) {
|
|
@@ -5881,11 +5889,11 @@ var init_unordered_list = __esmMin((() => {
|
|
|
5881
5889
|
this.root.push({ _attr: { "w:val": typeof id === "string" ? `{${id}}` : id } });
|
|
5882
5890
|
}
|
|
5883
5891
|
};
|
|
5884
|
-
})
|
|
5892
|
+
});
|
|
5885
5893
|
//#endregion
|
|
5886
5894
|
//#region src/file/paragraph/formatting/word-wrap.ts
|
|
5887
5895
|
var createWordWrap;
|
|
5888
|
-
var init_word_wrap = __esmMin((
|
|
5896
|
+
var init_word_wrap = __esmMin(() => {
|
|
5889
5897
|
init_xml_components();
|
|
5890
5898
|
createWordWrap = () => new BuilderElement({
|
|
5891
5899
|
attributes: { val: {
|
|
@@ -5894,11 +5902,11 @@ var init_word_wrap = __esmMin((() => {
|
|
|
5894
5902
|
} },
|
|
5895
5903
|
name: "w:wordWrap"
|
|
5896
5904
|
});
|
|
5897
|
-
})
|
|
5905
|
+
});
|
|
5898
5906
|
//#endregion
|
|
5899
5907
|
//#region src/file/paragraph/frame/frame-properties.ts
|
|
5900
5908
|
var DropCapType, FrameAnchorType, FrameWrap, createFrameProperties, buildFramePropertiesObj;
|
|
5901
|
-
var init_frame_properties = __esmMin((
|
|
5909
|
+
var init_frame_properties = __esmMin(() => {
|
|
5902
5910
|
init_xml_components();
|
|
5903
5911
|
DropCapType = {
|
|
5904
5912
|
/** No drop cap effect */
|
|
@@ -6012,7 +6020,7 @@ var init_frame_properties = __esmMin((() => {
|
|
|
6012
6020
|
"w:x": options.position ? options.position.x : void 0,
|
|
6013
6021
|
"w:y": options.position ? options.position.y : void 0
|
|
6014
6022
|
});
|
|
6015
|
-
})
|
|
6023
|
+
});
|
|
6016
6024
|
//#endregion
|
|
6017
6025
|
//#region src/file/paragraph/properties.ts
|
|
6018
6026
|
/**
|
|
@@ -6133,7 +6141,7 @@ function buildParagraphProperties(options) {
|
|
|
6133
6141
|
};
|
|
6134
6142
|
}
|
|
6135
6143
|
var TextAlignmentType, TextboxTightWrapType, ParagraphProperties, ParagraphPropertiesChange;
|
|
6136
|
-
var init_properties = __esmMin((
|
|
6144
|
+
var init_properties = __esmMin(() => {
|
|
6137
6145
|
init_xml_components();
|
|
6138
6146
|
init_font_wrapper();
|
|
6139
6147
|
init_shading();
|
|
@@ -6287,6 +6295,15 @@ var init_properties = __esmMin((() => {
|
|
|
6287
6295
|
if (!(context.viewWrapper instanceof FontWrapper)) for (const reference of this.numberingReferences) context.file.numbering.createConcreteNumberingInstance(reference.reference, reference.instance);
|
|
6288
6296
|
return super.prepForXml(context);
|
|
6289
6297
|
}
|
|
6298
|
+
/**
|
|
6299
|
+
* Register numbering references (side effect) before serialization.
|
|
6300
|
+
* toXml() bypasses prepForXml(), so numbering registration must be
|
|
6301
|
+
* triggered explicitly here.
|
|
6302
|
+
*/
|
|
6303
|
+
toXml(context) {
|
|
6304
|
+
if (!(context.viewWrapper instanceof FontWrapper)) for (const reference of this.numberingReferences) context.file.numbering.createConcreteNumberingInstance(reference.reference, reference.instance);
|
|
6305
|
+
return super.toXml(context);
|
|
6306
|
+
}
|
|
6290
6307
|
};
|
|
6291
6308
|
ParagraphPropertiesChange = class extends XmlComponent {
|
|
6292
6309
|
constructor(options) {
|
|
@@ -6302,11 +6319,11 @@ var init_properties = __esmMin((() => {
|
|
|
6302
6319
|
}));
|
|
6303
6320
|
}
|
|
6304
6321
|
};
|
|
6305
|
-
})
|
|
6322
|
+
});
|
|
6306
6323
|
//#endregion
|
|
6307
6324
|
//#region src/file/paragraph/paragraph.ts
|
|
6308
6325
|
var Paragraph;
|
|
6309
|
-
var init_paragraph$1 = __esmMin((
|
|
6326
|
+
var init_paragraph$1 = __esmMin(() => {
|
|
6310
6327
|
init_xml_components();
|
|
6311
6328
|
init_convenience_functions();
|
|
6312
6329
|
init_font_wrapper();
|
|
@@ -6444,12 +6461,109 @@ var init_paragraph$1 = __esmMin((() => {
|
|
|
6444
6461
|
setSectionProperties(section) {
|
|
6445
6462
|
this.sectionProperties = section;
|
|
6446
6463
|
}
|
|
6464
|
+
/**
|
|
6465
|
+
* Direct XML serialization — bypasses IXmlableObject tree construction.
|
|
6466
|
+
* Coerces children and calls their toXml() methods for zero-allocation output.
|
|
6467
|
+
*/
|
|
6468
|
+
toXml(context) {
|
|
6469
|
+
const parts = [];
|
|
6470
|
+
if (!(context.viewWrapper instanceof FontWrapper)) for (const reference of this._props.numberingReferences) context.file.numbering.createConcreteNumberingInstance(reference.reference, reference.instance);
|
|
6471
|
+
let finalPPrObj = this._props.xml;
|
|
6472
|
+
if (this.sectionProperties) {
|
|
6473
|
+
const sectPrObj = this.sectionProperties.prepForXml(context);
|
|
6474
|
+
if (sectPrObj) if (finalPPrObj) finalPPrObj["w:pPr"].push(sectPrObj);
|
|
6475
|
+
else finalPPrObj = { "w:pPr": [sectPrObj] };
|
|
6476
|
+
}
|
|
6477
|
+
if (finalPPrObj) parts.push(xml(finalPPrObj));
|
|
6478
|
+
for (const run of this.frontRuns) {
|
|
6479
|
+
const s = run.toXml(context);
|
|
6480
|
+
if (s) parts.push(s);
|
|
6481
|
+
}
|
|
6482
|
+
if (this._textRun) {
|
|
6483
|
+
const s = this._textRun.toXml(context);
|
|
6484
|
+
if (s) parts.push(s);
|
|
6485
|
+
}
|
|
6486
|
+
if (this.options.children) {
|
|
6487
|
+
for (const rawChild of this.options.children) for (const s of this.serializeChild(rawChild, context)) if (s) parts.push(s);
|
|
6488
|
+
}
|
|
6489
|
+
const body = parts.join("");
|
|
6490
|
+
return body ? `<w:p>${body}</w:p>` : "<w:p/>";
|
|
6491
|
+
}
|
|
6492
|
+
/**
|
|
6493
|
+
* Serialize a single child element, handling all type coercions and side effects.
|
|
6494
|
+
* Returns an array of XML strings (Bookmark yields 3 parts: start + children + end).
|
|
6495
|
+
*/
|
|
6496
|
+
serializeChild(rawChild, context) {
|
|
6497
|
+
if (rawChild instanceof ExternalHyperlink) {
|
|
6498
|
+
const concreteHyperlink = new ConcreteHyperlink(rawChild.options.children, uniqueId(), { tooltip: rawChild.options.tooltip });
|
|
6499
|
+
context.viewWrapper.relationships.addRelationship(concreteHyperlink.linkId, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", rawChild.options.link, TargetModeType.EXTERNAL);
|
|
6500
|
+
return [concreteHyperlink.toXml(context)];
|
|
6501
|
+
}
|
|
6502
|
+
if (rawChild instanceof Bookmark) {
|
|
6503
|
+
const parts = [];
|
|
6504
|
+
parts.push(rawChild.start.toXml(context));
|
|
6505
|
+
for (const textRun of rawChild.children) if (textRun instanceof BaseXmlComponent) parts.push(textRun.toXml(context));
|
|
6506
|
+
parts.push(rawChild.end.toXml(context));
|
|
6507
|
+
return parts;
|
|
6508
|
+
}
|
|
6509
|
+
if (typeof rawChild === "object" && rawChild !== null && "hyperlink" in rawChild) {
|
|
6510
|
+
const { hyperlink, ...runOpts } = rawChild;
|
|
6511
|
+
const hlChildren = hyperlink.children;
|
|
6512
|
+
const textRuns = [];
|
|
6513
|
+
if (hlChildren && hlChildren.length > 0) for (const rc of hlChildren) textRuns.push(new TextRun(rc));
|
|
6514
|
+
else textRuns.push(new TextRun(runOpts));
|
|
6515
|
+
if ("link" in hyperlink) {
|
|
6516
|
+
const ext = new ExternalHyperlink({
|
|
6517
|
+
link: hyperlink.link,
|
|
6518
|
+
tooltip: hyperlink.tooltip,
|
|
6519
|
+
children: textRuns
|
|
6520
|
+
});
|
|
6521
|
+
const concrete = new ConcreteHyperlink(ext.options.children, uniqueId(), { tooltip: ext.options.tooltip });
|
|
6522
|
+
context.viewWrapper.relationships.addRelationship(concrete.linkId, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", ext.options.link, TargetModeType.EXTERNAL);
|
|
6523
|
+
return [concrete.toXml(context)];
|
|
6524
|
+
}
|
|
6525
|
+
if ("anchor" in hyperlink) return [new InternalHyperlink({
|
|
6526
|
+
anchor: hyperlink.anchor,
|
|
6527
|
+
tooltip: hyperlink.tooltip,
|
|
6528
|
+
children: textRuns
|
|
6529
|
+
}).toXml(context)];
|
|
6530
|
+
return [];
|
|
6531
|
+
}
|
|
6532
|
+
if (typeof rawChild === "object" && rawChild !== null && "bookmarkStart" in rawChild) return [new BookmarkStart(rawChild.bookmarkStart.name, rawChild.bookmarkStart.id).toXml(context)];
|
|
6533
|
+
if (typeof rawChild === "object" && rawChild !== null && "bookmarkEnd" in rawChild) return [new BookmarkEnd(rawChild.bookmarkEnd).toXml(context)];
|
|
6534
|
+
const child = this.coerceChild(rawChild);
|
|
6535
|
+
return child ? [child.toXml(context)] : [];
|
|
6536
|
+
}
|
|
6537
|
+
/** Coerce a raw child option into a BaseXmlComponent instance. */
|
|
6538
|
+
coerceChild(rawChild) {
|
|
6539
|
+
if (typeof rawChild === "string") return new TextRun(rawChild);
|
|
6540
|
+
if (rawChild instanceof BaseXmlComponent) return rawChild;
|
|
6541
|
+
if ("chart" in rawChild) return new ChartRun(rawChild.chart);
|
|
6542
|
+
if ("smartArt" in rawChild) return new SmartArtRun(rawChild.smartArt);
|
|
6543
|
+
if ("image" in rawChild) return new ImageRun(rawChild.image);
|
|
6544
|
+
if ("math" in rawChild && typeof rawChild === "object" && rawChild !== null && typeof rawChild.math === "object" && rawChild.math !== null) {
|
|
6545
|
+
const coercedChildren = rawChild.math.children?.map(coerceMathJson);
|
|
6546
|
+
return new Math$1(coercedChildren ? { children: coercedChildren } : { children: [] });
|
|
6547
|
+
}
|
|
6548
|
+
if ("symbolRun" in rawChild) return new SymbolRun(rawChild.symbolRun);
|
|
6549
|
+
if ("footnoteReference" in rawChild) return new FootnoteReferenceRun(rawChild.footnoteReference);
|
|
6550
|
+
if ("endnoteReference" in rawChild) return new EndnoteReferenceRun(rawChild.endnoteReference);
|
|
6551
|
+
if ("pageBreak" in rawChild) return new PageBreak();
|
|
6552
|
+
if ("columnBreak" in rawChild) return new ColumnBreak();
|
|
6553
|
+
if ("commentRangeStart" in rawChild) return new CommentRangeStart(rawChild.commentRangeStart);
|
|
6554
|
+
if ("commentRangeEnd" in rawChild) return new CommentRangeEnd(rawChild.commentRangeEnd);
|
|
6555
|
+
if ("commentReference" in rawChild) return new TextRun({ children: [new CommentReference(rawChild.commentReference)] });
|
|
6556
|
+
if ("insertion" in rawChild) return new InsertedTextRun(rawChild.insertion);
|
|
6557
|
+
if ("deletion" in rawChild) return new DeletedTextRun(rawChild.deletion);
|
|
6558
|
+
if ("hyperlink" in rawChild || "bookmarkStart" in rawChild || "bookmarkEnd" in rawChild) return;
|
|
6559
|
+
return new TextRun(rawChild);
|
|
6560
|
+
}
|
|
6447
6561
|
};
|
|
6448
|
-
})
|
|
6562
|
+
});
|
|
6449
6563
|
//#endregion
|
|
6450
6564
|
//#region src/file/paragraph/run/comment-run.ts
|
|
6451
6565
|
var CommentRangeStart, CommentRangeEnd, CommentReference, Comment, Comments;
|
|
6452
|
-
var init_comment_run = __esmMin((
|
|
6566
|
+
var init_comment_run = __esmMin(() => {
|
|
6453
6567
|
init_paragraph$1();
|
|
6454
6568
|
init_relationships();
|
|
6455
6569
|
init_xml_components();
|
|
@@ -6526,11 +6640,11 @@ var init_comment_run = __esmMin((() => {
|
|
|
6526
6640
|
this.relationships = new Relationships();
|
|
6527
6641
|
}
|
|
6528
6642
|
};
|
|
6529
|
-
})
|
|
6643
|
+
});
|
|
6530
6644
|
//#endregion
|
|
6531
6645
|
//#region src/file/paragraph/run/empty-children.ts
|
|
6532
6646
|
var NoBreakHyphen, SoftHyphen, DayShort, MonthShort, YearShort, DayLong, MonthLong, YearLong, AnnotationReference, FootnoteReferenceElement, EndnoteReference, Separator, ContinuationSeparator, PageNumberElement, CarriageReturn, Tab, LastRenderedPageBreak;
|
|
6533
|
-
var init_empty_children = __esmMin((
|
|
6647
|
+
var init_empty_children = __esmMin(() => {
|
|
6534
6648
|
init_xml_components();
|
|
6535
6649
|
NoBreakHyphen = class extends EmptyElement {
|
|
6536
6650
|
constructor() {
|
|
@@ -6617,11 +6731,11 @@ var init_empty_children = __esmMin((() => {
|
|
|
6617
6731
|
super("w:lastRenderedPageBreak");
|
|
6618
6732
|
}
|
|
6619
6733
|
};
|
|
6620
|
-
})
|
|
6734
|
+
});
|
|
6621
6735
|
//#endregion
|
|
6622
6736
|
//#region src/file/paragraph/run/positional-tab.ts
|
|
6623
6737
|
var PositionalTabAlignment, PositionalTabRelativeTo, PositionalTabLeader, PositionalTab;
|
|
6624
|
-
var init_positional_tab = __esmMin((
|
|
6738
|
+
var init_positional_tab = __esmMin(() => {
|
|
6625
6739
|
init_xml_components();
|
|
6626
6740
|
PositionalTabAlignment = {
|
|
6627
6741
|
/** Left-aligned tab */
|
|
@@ -6659,11 +6773,11 @@ var init_positional_tab = __esmMin((() => {
|
|
|
6659
6773
|
} });
|
|
6660
6774
|
}
|
|
6661
6775
|
};
|
|
6662
|
-
})
|
|
6776
|
+
});
|
|
6663
6777
|
//#endregion
|
|
6664
6778
|
//#region src/file/paragraph/run/ruby.ts
|
|
6665
6779
|
var RubyAlign, createRubyContent, createRuby;
|
|
6666
|
-
var init_ruby = __esmMin((
|
|
6780
|
+
var init_ruby = __esmMin(() => {
|
|
6667
6781
|
init_xml_components();
|
|
6668
6782
|
init_text();
|
|
6669
6783
|
RubyAlign = {
|
|
@@ -6741,10 +6855,10 @@ var init_ruby = __esmMin((() => {
|
|
|
6741
6855
|
name: "w:ruby"
|
|
6742
6856
|
});
|
|
6743
6857
|
};
|
|
6744
|
-
})
|
|
6858
|
+
});
|
|
6745
6859
|
//#endregion
|
|
6746
6860
|
//#region src/file/paragraph/run/index.ts
|
|
6747
|
-
var init_run = __esmMin((
|
|
6861
|
+
var init_run = __esmMin(() => {
|
|
6748
6862
|
init_run$1();
|
|
6749
6863
|
init_properties$1();
|
|
6750
6864
|
init_text_run();
|
|
@@ -6765,11 +6879,11 @@ var init_run = __esmMin((() => {
|
|
|
6765
6879
|
init_ruby();
|
|
6766
6880
|
init_form_field();
|
|
6767
6881
|
init_break$1();
|
|
6768
|
-
})
|
|
6882
|
+
});
|
|
6769
6883
|
//#endregion
|
|
6770
6884
|
//#region src/file/paragraph/formatting/break.ts
|
|
6771
6885
|
var BreakType, Break, PageBreak, ColumnBreak, PageBreakBefore;
|
|
6772
|
-
var init_break = __esmMin((
|
|
6886
|
+
var init_break = __esmMin(() => {
|
|
6773
6887
|
init_xml_components();
|
|
6774
6888
|
init_run();
|
|
6775
6889
|
BreakType = {
|
|
@@ -6801,10 +6915,10 @@ var init_break = __esmMin((() => {
|
|
|
6801
6915
|
super("w:pageBreakBefore");
|
|
6802
6916
|
}
|
|
6803
6917
|
};
|
|
6804
|
-
})
|
|
6918
|
+
});
|
|
6805
6919
|
//#endregion
|
|
6806
6920
|
//#region src/file/paragraph/formatting/index.ts
|
|
6807
|
-
var init_formatting = __esmMin((
|
|
6921
|
+
var init_formatting = __esmMin(() => {
|
|
6808
6922
|
init_alignment$1();
|
|
6809
6923
|
init_border();
|
|
6810
6924
|
init_cnf_style();
|
|
@@ -6814,15 +6928,15 @@ var init_formatting = __esmMin((() => {
|
|
|
6814
6928
|
init_style();
|
|
6815
6929
|
init_tab_stop();
|
|
6816
6930
|
init_unordered_list();
|
|
6817
|
-
})
|
|
6931
|
+
});
|
|
6818
6932
|
//#endregion
|
|
6819
6933
|
//#region src/file/paragraph/frame/index.ts
|
|
6820
|
-
var init_frame = __esmMin((
|
|
6934
|
+
var init_frame = __esmMin(() => {
|
|
6821
6935
|
init_frame_properties();
|
|
6822
|
-
})
|
|
6936
|
+
});
|
|
6823
6937
|
//#endregion
|
|
6824
6938
|
//#region src/file/paragraph/index.ts
|
|
6825
|
-
var init_paragraph = __esmMin((
|
|
6939
|
+
var init_paragraph = __esmMin(() => {
|
|
6826
6940
|
init_formatting();
|
|
6827
6941
|
init_paragraph$1();
|
|
6828
6942
|
init_properties();
|
|
@@ -6830,7 +6944,7 @@ var init_paragraph = __esmMin((() => {
|
|
|
6830
6944
|
init_links();
|
|
6831
6945
|
init_math();
|
|
6832
6946
|
init_frame();
|
|
6833
|
-
})
|
|
6947
|
+
});
|
|
6834
6948
|
//#endregion
|
|
6835
6949
|
//#region src/file/alt-chunk/alt-chunk.ts
|
|
6836
6950
|
function wrapHtmlDocument(fragment) {
|
|
@@ -6838,7 +6952,7 @@ function wrapHtmlDocument(fragment) {
|
|
|
6838
6952
|
return `<!DOCTYPE html>\n<html><head><meta charset="utf-8"></head>\n<body>${fragment}</body></html>`;
|
|
6839
6953
|
}
|
|
6840
6954
|
var ALTCHUNK_RELATIONSHIP_TYPE, AltChunk;
|
|
6841
|
-
var init_alt_chunk = __esmMin((
|
|
6955
|
+
var init_alt_chunk = __esmMin(() => {
|
|
6842
6956
|
init_xml_components();
|
|
6843
6957
|
init_convenience_functions();
|
|
6844
6958
|
ALTCHUNK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk";
|
|
@@ -6873,11 +6987,11 @@ var init_alt_chunk = __esmMin((() => {
|
|
|
6873
6987
|
return super.prepForXml(context);
|
|
6874
6988
|
}
|
|
6875
6989
|
};
|
|
6876
|
-
})
|
|
6990
|
+
});
|
|
6877
6991
|
//#endregion
|
|
6878
6992
|
//#region src/file/table-of-contents/field-instruction.ts
|
|
6879
6993
|
var FieldInstruction;
|
|
6880
|
-
var init_field_instruction = __esmMin((
|
|
6994
|
+
var init_field_instruction = __esmMin(() => {
|
|
6881
6995
|
init_shared();
|
|
6882
6996
|
init_xml_components();
|
|
6883
6997
|
FieldInstruction = class extends XmlComponent {
|
|
@@ -6909,22 +7023,22 @@ var init_field_instruction = __esmMin((() => {
|
|
|
6909
7023
|
this.root.push(instruction);
|
|
6910
7024
|
}
|
|
6911
7025
|
};
|
|
6912
|
-
})
|
|
7026
|
+
});
|
|
6913
7027
|
//#endregion
|
|
6914
7028
|
//#region src/file/table-of-contents/sdt-content.ts
|
|
6915
7029
|
var StructuredDocumentTagContent;
|
|
6916
|
-
var init_sdt_content = __esmMin((
|
|
7030
|
+
var init_sdt_content = __esmMin(() => {
|
|
6917
7031
|
init_xml_components();
|
|
6918
7032
|
StructuredDocumentTagContent = class extends XmlComponent {
|
|
6919
7033
|
constructor() {
|
|
6920
7034
|
super("w:sdtContent");
|
|
6921
7035
|
}
|
|
6922
7036
|
};
|
|
6923
|
-
})
|
|
7037
|
+
});
|
|
6924
7038
|
//#endregion
|
|
6925
7039
|
//#region src/file/table-of-contents/sdt-properties.ts
|
|
6926
7040
|
var SdtLock, SdtDateMappingType, createListItem, createListType, createDate, createDataBinding, createDocPart, StructuredDocumentTagProperties;
|
|
6927
|
-
var init_sdt_properties = __esmMin((
|
|
7041
|
+
var init_sdt_properties = __esmMin(() => {
|
|
6928
7042
|
init_xml_components();
|
|
6929
7043
|
SdtLock = {
|
|
6930
7044
|
/** Lock the SDT itself (cannot delete the control) */
|
|
@@ -7101,11 +7215,11 @@ var init_sdt_properties = __esmMin((() => {
|
|
|
7101
7215
|
else if (options.bibliography) this.root.push(new BuilderElement({ name: "w:bibliography" }));
|
|
7102
7216
|
}
|
|
7103
7217
|
};
|
|
7104
|
-
})
|
|
7218
|
+
});
|
|
7105
7219
|
//#endregion
|
|
7106
7220
|
//#region src/file/table-of-contents/table-of-contents.ts
|
|
7107
7221
|
var TableOfContents;
|
|
7108
|
-
var init_table_of_contents$1 = __esmMin((
|
|
7222
|
+
var init_table_of_contents$1 = __esmMin(() => {
|
|
7109
7223
|
init_paragraph();
|
|
7110
7224
|
init_run();
|
|
7111
7225
|
init_field();
|
|
@@ -7181,11 +7295,11 @@ var init_table_of_contents$1 = __esmMin((() => {
|
|
|
7181
7295
|
return run;
|
|
7182
7296
|
}
|
|
7183
7297
|
};
|
|
7184
|
-
})
|
|
7298
|
+
});
|
|
7185
7299
|
//#endregion
|
|
7186
7300
|
//#region src/file/table-of-contents/table-of-contents-properties.ts
|
|
7187
7301
|
var StyleLevel;
|
|
7188
|
-
var init_table_of_contents_properties = __esmMin((
|
|
7302
|
+
var init_table_of_contents_properties = __esmMin(() => {
|
|
7189
7303
|
StyleLevel = class {
|
|
7190
7304
|
/** The name of the paragraph style. */
|
|
7191
7305
|
styleName;
|
|
@@ -7196,19 +7310,19 @@ var init_table_of_contents_properties = __esmMin((() => {
|
|
|
7196
7310
|
this.level = level;
|
|
7197
7311
|
}
|
|
7198
7312
|
};
|
|
7199
|
-
})
|
|
7313
|
+
});
|
|
7200
7314
|
//#endregion
|
|
7201
7315
|
//#region src/file/table-of-contents/index.ts
|
|
7202
|
-
var init_table_of_contents = __esmMin((
|
|
7316
|
+
var init_table_of_contents = __esmMin(() => {
|
|
7203
7317
|
init_table_of_contents$1();
|
|
7204
7318
|
init_table_of_contents_properties();
|
|
7205
7319
|
init_sdt_properties();
|
|
7206
7320
|
init_sdt_content();
|
|
7207
|
-
})
|
|
7321
|
+
});
|
|
7208
7322
|
//#endregion
|
|
7209
7323
|
//#region src/file/sdt/sdt.ts
|
|
7210
7324
|
var StructuredDocumentTagRun, StructuredDocumentTagBlock;
|
|
7211
|
-
var init_sdt$1 = __esmMin((
|
|
7325
|
+
var init_sdt$1 = __esmMin(() => {
|
|
7212
7326
|
init_xml_components();
|
|
7213
7327
|
init_table_of_contents();
|
|
7214
7328
|
StructuredDocumentTagRun = class extends XmlComponent {
|
|
@@ -7234,11 +7348,11 @@ var init_sdt$1 = __esmMin((() => {
|
|
|
7234
7348
|
}
|
|
7235
7349
|
}
|
|
7236
7350
|
};
|
|
7237
|
-
})
|
|
7351
|
+
});
|
|
7238
7352
|
//#endregion
|
|
7239
7353
|
//#region src/file/sub-doc/sub-doc.ts
|
|
7240
7354
|
var SUBDOC_RELATIONSHIP_TYPE, SubDoc;
|
|
7241
|
-
var init_sub_doc = __esmMin((
|
|
7355
|
+
var init_sub_doc = __esmMin(() => {
|
|
7242
7356
|
init_xml_components();
|
|
7243
7357
|
init_convenience_functions();
|
|
7244
7358
|
SUBDOC_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument";
|
|
@@ -7263,11 +7377,11 @@ var init_sub_doc = __esmMin((() => {
|
|
|
7263
7377
|
return super.prepForXml(context);
|
|
7264
7378
|
}
|
|
7265
7379
|
};
|
|
7266
|
-
})
|
|
7380
|
+
});
|
|
7267
7381
|
//#endregion
|
|
7268
7382
|
//#region src/file/sdt/sdt-cell.ts
|
|
7269
7383
|
var StructuredDocumentTagCell;
|
|
7270
|
-
var init_sdt_cell = __esmMin((
|
|
7384
|
+
var init_sdt_cell = __esmMin(() => {
|
|
7271
7385
|
init_xml_components();
|
|
7272
7386
|
init_table_of_contents();
|
|
7273
7387
|
StructuredDocumentTagCell = class extends XmlComponent {
|
|
@@ -7283,11 +7397,11 @@ var init_sdt_cell = __esmMin((() => {
|
|
|
7283
7397
|
}
|
|
7284
7398
|
}
|
|
7285
7399
|
};
|
|
7286
|
-
})
|
|
7400
|
+
});
|
|
7287
7401
|
//#endregion
|
|
7288
7402
|
//#region src/file/track-revision/track-revision-components/moved-text-run.ts
|
|
7289
7403
|
var MovedFromTextRun, MovedToTextRun, MovedFromRunWrapper, MovedToRunWrapper;
|
|
7290
|
-
var init_moved_text_run = __esmMin((
|
|
7404
|
+
var init_moved_text_run = __esmMin(() => {
|
|
7291
7405
|
init_xml_components();
|
|
7292
7406
|
init_break$1();
|
|
7293
7407
|
init_field();
|
|
@@ -7362,7 +7476,7 @@ var init_moved_text_run = __esmMin((() => {
|
|
|
7362
7476
|
if (options.break) for (let i = 0; i < options.break; i++) this.root.splice(1, 0, createBreak());
|
|
7363
7477
|
}
|
|
7364
7478
|
};
|
|
7365
|
-
})
|
|
7479
|
+
});
|
|
7366
7480
|
//#endregion
|
|
7367
7481
|
//#region src/file/track-revision/track-revision-components/inserted-table-row.ts
|
|
7368
7482
|
function buildInsertedTableRowObj(options) {
|
|
@@ -7373,7 +7487,7 @@ function buildInsertedTableRowObj(options) {
|
|
|
7373
7487
|
} } };
|
|
7374
7488
|
}
|
|
7375
7489
|
var InsertedTableRow;
|
|
7376
|
-
var init_inserted_table_row = __esmMin((
|
|
7490
|
+
var init_inserted_table_row = __esmMin(() => {
|
|
7377
7491
|
init_xml_components();
|
|
7378
7492
|
InsertedTableRow = class extends XmlComponent {
|
|
7379
7493
|
constructor(options) {
|
|
@@ -7385,7 +7499,7 @@ var init_inserted_table_row = __esmMin((() => {
|
|
|
7385
7499
|
} });
|
|
7386
7500
|
}
|
|
7387
7501
|
};
|
|
7388
|
-
})
|
|
7502
|
+
});
|
|
7389
7503
|
//#endregion
|
|
7390
7504
|
//#region src/file/track-revision/track-revision-components/deleted-table-row.ts
|
|
7391
7505
|
function buildDeletedTableRowObj(options) {
|
|
@@ -7396,7 +7510,7 @@ function buildDeletedTableRowObj(options) {
|
|
|
7396
7510
|
} } };
|
|
7397
7511
|
}
|
|
7398
7512
|
var DeletedTableRow;
|
|
7399
|
-
var init_deleted_table_row = __esmMin((
|
|
7513
|
+
var init_deleted_table_row = __esmMin(() => {
|
|
7400
7514
|
init_xml_components();
|
|
7401
7515
|
DeletedTableRow = class extends XmlComponent {
|
|
7402
7516
|
constructor(options) {
|
|
@@ -7408,7 +7522,7 @@ var init_deleted_table_row = __esmMin((() => {
|
|
|
7408
7522
|
} });
|
|
7409
7523
|
}
|
|
7410
7524
|
};
|
|
7411
|
-
})
|
|
7525
|
+
});
|
|
7412
7526
|
//#endregion
|
|
7413
7527
|
//#region src/file/track-revision/track-revision-components/inserted-table-cell.ts
|
|
7414
7528
|
function buildInsertedTableCellObj(options) {
|
|
@@ -7419,7 +7533,7 @@ function buildInsertedTableCellObj(options) {
|
|
|
7419
7533
|
} } };
|
|
7420
7534
|
}
|
|
7421
7535
|
var InsertedTableCell;
|
|
7422
|
-
var init_inserted_table_cell = __esmMin((
|
|
7536
|
+
var init_inserted_table_cell = __esmMin(() => {
|
|
7423
7537
|
init_xml_components();
|
|
7424
7538
|
InsertedTableCell = class extends XmlComponent {
|
|
7425
7539
|
constructor(options) {
|
|
@@ -7431,7 +7545,7 @@ var init_inserted_table_cell = __esmMin((() => {
|
|
|
7431
7545
|
} });
|
|
7432
7546
|
}
|
|
7433
7547
|
};
|
|
7434
|
-
})
|
|
7548
|
+
});
|
|
7435
7549
|
//#endregion
|
|
7436
7550
|
//#region src/file/track-revision/track-revision-components/deleted-table-cell.ts
|
|
7437
7551
|
function buildDeletedTableCellObj(options) {
|
|
@@ -7442,7 +7556,7 @@ function buildDeletedTableCellObj(options) {
|
|
|
7442
7556
|
} } };
|
|
7443
7557
|
}
|
|
7444
7558
|
var DeletedTableCell;
|
|
7445
|
-
var init_deleted_table_cell = __esmMin((
|
|
7559
|
+
var init_deleted_table_cell = __esmMin(() => {
|
|
7446
7560
|
init_xml_components();
|
|
7447
7561
|
DeletedTableCell = class extends XmlComponent {
|
|
7448
7562
|
constructor(options) {
|
|
@@ -7454,7 +7568,7 @@ var init_deleted_table_cell = __esmMin((() => {
|
|
|
7454
7568
|
} });
|
|
7455
7569
|
}
|
|
7456
7570
|
};
|
|
7457
|
-
})
|
|
7571
|
+
});
|
|
7458
7572
|
//#endregion
|
|
7459
7573
|
//#region src/file/track-revision/track-revision-components/cell-merge.ts
|
|
7460
7574
|
function buildCellMergeObj(options) {
|
|
@@ -7468,7 +7582,7 @@ function buildCellMergeObj(options) {
|
|
|
7468
7582
|
return { "w:cellMerge": { _attr: attrs } };
|
|
7469
7583
|
}
|
|
7470
7584
|
var VerticalMergeRevisionType, CellMerge;
|
|
7471
|
-
var init_cell_merge = __esmMin((
|
|
7585
|
+
var init_cell_merge = __esmMin(() => {
|
|
7472
7586
|
init_xml_components();
|
|
7473
7587
|
VerticalMergeRevisionType = {
|
|
7474
7588
|
/**
|
|
@@ -7493,10 +7607,10 @@ var init_cell_merge = __esmMin((() => {
|
|
|
7493
7607
|
this.root.push({ _attr: attrs });
|
|
7494
7608
|
}
|
|
7495
7609
|
};
|
|
7496
|
-
})
|
|
7610
|
+
});
|
|
7497
7611
|
//#endregion
|
|
7498
7612
|
//#region src/file/track-revision/index.ts
|
|
7499
|
-
var init_track_revision = __esmMin((
|
|
7613
|
+
var init_track_revision = __esmMin(() => {
|
|
7500
7614
|
init_inserted_text_run();
|
|
7501
7615
|
init_deleted_text_run();
|
|
7502
7616
|
init_moved_text_run();
|
|
@@ -7505,11 +7619,11 @@ var init_track_revision = __esmMin((() => {
|
|
|
7505
7619
|
init_inserted_table_cell();
|
|
7506
7620
|
init_deleted_table_cell();
|
|
7507
7621
|
init_cell_merge();
|
|
7508
|
-
})
|
|
7622
|
+
});
|
|
7509
7623
|
//#endregion
|
|
7510
7624
|
//#region src/file/vertical-align/vertical-align.ts
|
|
7511
7625
|
var VerticalAlignTable, VerticalAlignSection, createVerticalAlign;
|
|
7512
|
-
var init_vertical_align$1 = __esmMin((
|
|
7626
|
+
var init_vertical_align$1 = __esmMin(() => {
|
|
7513
7627
|
init_xml_components();
|
|
7514
7628
|
VerticalAlignTable = {
|
|
7515
7629
|
BOTTOM: "bottom",
|
|
@@ -7527,12 +7641,12 @@ var init_vertical_align$1 = __esmMin((() => {
|
|
|
7527
7641
|
} },
|
|
7528
7642
|
name: "w:vAlign"
|
|
7529
7643
|
});
|
|
7530
|
-
})
|
|
7644
|
+
});
|
|
7531
7645
|
//#endregion
|
|
7532
7646
|
//#region src/file/vertical-align/index.ts
|
|
7533
|
-
var init_vertical_align = __esmMin((
|
|
7647
|
+
var init_vertical_align = __esmMin(() => {
|
|
7534
7648
|
init_vertical_align$1();
|
|
7535
|
-
})
|
|
7649
|
+
});
|
|
7536
7650
|
//#endregion
|
|
7537
7651
|
//#region src/file/table/table-cell/table-cell-components.ts
|
|
7538
7652
|
/**
|
|
@@ -7601,7 +7715,7 @@ function buildTextDirection(value) {
|
|
|
7601
7715
|
return stringEnumValObj("w:textDirection", value);
|
|
7602
7716
|
}
|
|
7603
7717
|
var TableCellBorders, GridSpan, VerticalMergeType, VerticalMerge, TextDirection, TDirection;
|
|
7604
|
-
var init_table_cell_components = __esmMin((
|
|
7718
|
+
var init_table_cell_components = __esmMin(() => {
|
|
7605
7719
|
init_border$1();
|
|
7606
7720
|
init_xml_components();
|
|
7607
7721
|
init_values();
|
|
@@ -7654,17 +7768,17 @@ var init_table_cell_components = __esmMin((() => {
|
|
|
7654
7768
|
this.root.push({ _attr: { "w:val": value } });
|
|
7655
7769
|
}
|
|
7656
7770
|
};
|
|
7657
|
-
})
|
|
7771
|
+
});
|
|
7658
7772
|
//#endregion
|
|
7659
7773
|
//#region src/file/table/table-cell/index.ts
|
|
7660
|
-
var init_table_cell$1 = __esmMin((
|
|
7774
|
+
var init_table_cell$1 = __esmMin(() => {
|
|
7661
7775
|
init_table_cell();
|
|
7662
7776
|
init_table_cell_components();
|
|
7663
|
-
})
|
|
7777
|
+
});
|
|
7664
7778
|
//#endregion
|
|
7665
7779
|
//#region src/file/table/table-cell-spacing.ts
|
|
7666
7780
|
var CellSpacingType, createTableCellSpacing;
|
|
7667
|
-
var init_table_cell_spacing = __esmMin((
|
|
7781
|
+
var init_table_cell_spacing = __esmMin(() => {
|
|
7668
7782
|
init_xml_components();
|
|
7669
7783
|
init_values();
|
|
7670
7784
|
CellSpacingType = {
|
|
@@ -7686,11 +7800,11 @@ var init_table_cell_spacing = __esmMin((() => {
|
|
|
7686
7800
|
},
|
|
7687
7801
|
name: "w:tblCellSpacing"
|
|
7688
7802
|
});
|
|
7689
|
-
})
|
|
7803
|
+
});
|
|
7690
7804
|
//#endregion
|
|
7691
7805
|
//#region src/file/table/table-width.ts
|
|
7692
7806
|
var WidthType, buildTableWidthObj, createTableWidthElement;
|
|
7693
|
-
var init_table_width = __esmMin((
|
|
7807
|
+
var init_table_width = __esmMin(() => {
|
|
7694
7808
|
init_xml_components();
|
|
7695
7809
|
init_values();
|
|
7696
7810
|
WidthType = {
|
|
@@ -7728,7 +7842,7 @@ var init_table_width = __esmMin((() => {
|
|
|
7728
7842
|
name
|
|
7729
7843
|
});
|
|
7730
7844
|
};
|
|
7731
|
-
})
|
|
7845
|
+
});
|
|
7732
7846
|
//#endregion
|
|
7733
7847
|
//#region src/file/table/table-properties/table-borders.ts
|
|
7734
7848
|
/**
|
|
@@ -7765,7 +7879,7 @@ function buildTableBorders(options) {
|
|
|
7765
7879
|
] };
|
|
7766
7880
|
}
|
|
7767
7881
|
var NONE_BORDER, DEFAULT_BORDER, TableBorders;
|
|
7768
|
-
var init_table_borders = __esmMin((
|
|
7882
|
+
var init_table_borders = __esmMin(() => {
|
|
7769
7883
|
init_border$1();
|
|
7770
7884
|
init_xml_components();
|
|
7771
7885
|
NONE_BORDER = {
|
|
@@ -7797,11 +7911,11 @@ var init_table_borders = __esmMin((() => {
|
|
|
7797
7911
|
this.root.push(createBorderElement("w:insideV", options.insideVertical ?? DEFAULT_BORDER));
|
|
7798
7912
|
}
|
|
7799
7913
|
};
|
|
7800
|
-
})
|
|
7914
|
+
});
|
|
7801
7915
|
//#endregion
|
|
7802
7916
|
//#region src/file/table/table-properties/table-float-properties.ts
|
|
7803
7917
|
var TableAnchorType, RelativeHorizontalPosition, RelativeVerticalPosition, OverlapType, createOverlapElement, createTableFloatProperties, buildTableFloatPropertiesObj, createTableOverlap;
|
|
7804
|
-
var init_table_float_properties = __esmMin((
|
|
7918
|
+
var init_table_float_properties = __esmMin(() => {
|
|
7805
7919
|
init_xml_components();
|
|
7806
7920
|
init_values();
|
|
7807
7921
|
TableAnchorType = {
|
|
@@ -7893,11 +8007,11 @@ var init_table_float_properties = __esmMin((() => {
|
|
|
7893
8007
|
"w:rightFromText": rightFromText !== void 0 ? (0, values_exports.twipsMeasureValue)(rightFromText) : void 0
|
|
7894
8008
|
});
|
|
7895
8009
|
createTableOverlap = (overlap) => createOverlapElement(overlap);
|
|
7896
|
-
})
|
|
8010
|
+
});
|
|
7897
8011
|
//#endregion
|
|
7898
8012
|
//#region src/file/table/table-properties/table-layout.ts
|
|
7899
8013
|
var TableLayoutType, createTableLayout;
|
|
7900
|
-
var init_table_layout = __esmMin((
|
|
8014
|
+
var init_table_layout = __esmMin(() => {
|
|
7901
8015
|
init_xml_components();
|
|
7902
8016
|
TableLayoutType = {
|
|
7903
8017
|
/** Auto-fit layout - column widths are adjusted based on content */
|
|
@@ -7912,11 +8026,11 @@ var init_table_layout = __esmMin((() => {
|
|
|
7912
8026
|
} },
|
|
7913
8027
|
name: "w:tblLayout"
|
|
7914
8028
|
});
|
|
7915
|
-
})
|
|
8029
|
+
});
|
|
7916
8030
|
//#endregion
|
|
7917
8031
|
//#region src/file/table/table-properties/table-look.ts
|
|
7918
8032
|
var createTableLook;
|
|
7919
|
-
var init_table_look = __esmMin((
|
|
8033
|
+
var init_table_look = __esmMin(() => {
|
|
7920
8034
|
init_xml_components();
|
|
7921
8035
|
createTableLook = ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }) => new BuilderElement({
|
|
7922
8036
|
attributes: {
|
|
@@ -7947,7 +8061,7 @@ var init_table_look = __esmMin((() => {
|
|
|
7947
8061
|
},
|
|
7948
8062
|
name: "w:tblLook"
|
|
7949
8063
|
});
|
|
7950
|
-
})
|
|
8064
|
+
});
|
|
7951
8065
|
//#endregion
|
|
7952
8066
|
//#region src/file/table/table-properties/table-properties.ts
|
|
7953
8067
|
/**
|
|
@@ -8005,7 +8119,7 @@ function buildTableProperties(options) {
|
|
|
8005
8119
|
if (options.includeIfEmpty || children.length > 0) return { "w:tblPr": children };
|
|
8006
8120
|
}
|
|
8007
8121
|
var TableProperties, TablePropertiesChange;
|
|
8008
|
-
var init_table_properties$1 = __esmMin((
|
|
8122
|
+
var init_table_properties$1 = __esmMin(() => {
|
|
8009
8123
|
init_xml_components();
|
|
8010
8124
|
init_values();
|
|
8011
8125
|
init_paragraph();
|
|
@@ -8071,11 +8185,11 @@ var init_table_properties$1 = __esmMin((() => {
|
|
|
8071
8185
|
}));
|
|
8072
8186
|
}
|
|
8073
8187
|
};
|
|
8074
|
-
})
|
|
8188
|
+
});
|
|
8075
8189
|
//#endregion
|
|
8076
8190
|
//#region src/file/table/table-properties/table-property-exceptions.ts
|
|
8077
8191
|
var TablePropertyExceptions;
|
|
8078
|
-
var init_table_property_exceptions = __esmMin((
|
|
8192
|
+
var init_table_property_exceptions = __esmMin(() => {
|
|
8079
8193
|
init_xml_components();
|
|
8080
8194
|
init_paragraph();
|
|
8081
8195
|
init_shading();
|
|
@@ -8102,21 +8216,21 @@ var init_table_property_exceptions = __esmMin((() => {
|
|
|
8102
8216
|
if (options.tableLook) this.root.push(createTableLook(options.tableLook));
|
|
8103
8217
|
}
|
|
8104
8218
|
};
|
|
8105
|
-
})
|
|
8219
|
+
});
|
|
8106
8220
|
//#endregion
|
|
8107
8221
|
//#region src/file/table/table-properties/index.ts
|
|
8108
|
-
var init_table_properties = __esmMin((
|
|
8222
|
+
var init_table_properties = __esmMin(() => {
|
|
8109
8223
|
init_table_properties$1();
|
|
8110
8224
|
init_table_float_properties();
|
|
8111
8225
|
init_table_layout();
|
|
8112
8226
|
init_table_borders();
|
|
8113
8227
|
init_table_look();
|
|
8114
8228
|
init_table_property_exceptions();
|
|
8115
|
-
})
|
|
8229
|
+
});
|
|
8116
8230
|
//#endregion
|
|
8117
8231
|
//#region src/file/table/table-row/table-row-height.ts
|
|
8118
8232
|
var HeightRule, createTableRowHeight;
|
|
8119
|
-
var init_table_row_height = __esmMin((
|
|
8233
|
+
var init_table_row_height = __esmMin(() => {
|
|
8120
8234
|
init_xml_components();
|
|
8121
8235
|
init_values();
|
|
8122
8236
|
HeightRule = {
|
|
@@ -8140,7 +8254,7 @@ var init_table_row_height = __esmMin((() => {
|
|
|
8140
8254
|
},
|
|
8141
8255
|
name: "w:trHeight"
|
|
8142
8256
|
});
|
|
8143
|
-
})
|
|
8257
|
+
});
|
|
8144
8258
|
//#endregion
|
|
8145
8259
|
//#region src/file/table/table-row/table-row-properties.ts
|
|
8146
8260
|
/**
|
|
@@ -8190,7 +8304,7 @@ function buildTableRowProperties(options) {
|
|
|
8190
8304
|
if (options.includeIfEmpty || children.length > 0) return { "w:trPr": children };
|
|
8191
8305
|
}
|
|
8192
8306
|
var TableRowProperties, TableRowPropertiesChange;
|
|
8193
|
-
var init_table_row_properties = __esmMin((
|
|
8307
|
+
var init_table_row_properties = __esmMin(() => {
|
|
8194
8308
|
init_track_revision();
|
|
8195
8309
|
init_xml_components();
|
|
8196
8310
|
init_values();
|
|
@@ -8263,11 +8377,11 @@ var init_table_row_properties = __esmMin((() => {
|
|
|
8263
8377
|
}));
|
|
8264
8378
|
}
|
|
8265
8379
|
};
|
|
8266
|
-
})
|
|
8380
|
+
});
|
|
8267
8381
|
//#endregion
|
|
8268
8382
|
//#region src/file/table/table-row/table-row.ts
|
|
8269
8383
|
var TableRow;
|
|
8270
|
-
var init_table_row$1 = __esmMin((
|
|
8384
|
+
var init_table_row$1 = __esmMin(() => {
|
|
8271
8385
|
init_xml_components();
|
|
8272
8386
|
init_sdt();
|
|
8273
8387
|
init_table_cell$1();
|
|
@@ -8337,6 +8451,19 @@ var init_table_row$1 = __esmMin((() => {
|
|
|
8337
8451
|
}
|
|
8338
8452
|
return { "w:tr": children.length ? children : EMPTY_OBJECT };
|
|
8339
8453
|
}
|
|
8454
|
+
toXml(context) {
|
|
8455
|
+
const parts = [];
|
|
8456
|
+
if (this.options.propertyExceptions) parts.push(new TablePropertyExceptions(this.options.propertyExceptions).toXml(context));
|
|
8457
|
+
const trPrObj = buildTableRowProperties(this.options);
|
|
8458
|
+
if (trPrObj) parts.push(xml(trPrObj));
|
|
8459
|
+
const prefixCount = parts.length;
|
|
8460
|
+
for (const child of this.coercedChildren) parts.push(child.toXml(context));
|
|
8461
|
+
if (this.extraCells.length > 0) for (const { cell, columnIndex } of this.extraCells) {
|
|
8462
|
+
const insertIdx = this.findInsertIndex(columnIndex, prefixCount);
|
|
8463
|
+
parts.splice(insertIdx, 0, cell.toXml(context));
|
|
8464
|
+
}
|
|
8465
|
+
return parts.length ? `<w:tr>${parts.join("")}</w:tr>` : "<w:tr/>";
|
|
8466
|
+
}
|
|
8340
8467
|
findInsertIndex(columnIndex, prefixCount) {
|
|
8341
8468
|
let colIdx = 0;
|
|
8342
8469
|
for (let i = 0; i < this.coercedChildren.length; i++) {
|
|
@@ -8347,27 +8474,27 @@ var init_table_row$1 = __esmMin((() => {
|
|
|
8347
8474
|
return this.coercedChildren.length + prefixCount;
|
|
8348
8475
|
}
|
|
8349
8476
|
};
|
|
8350
|
-
})
|
|
8477
|
+
});
|
|
8351
8478
|
//#endregion
|
|
8352
8479
|
//#region src/file/table/table-row/index.ts
|
|
8353
|
-
var init_table_row = __esmMin((
|
|
8480
|
+
var init_table_row = __esmMin(() => {
|
|
8354
8481
|
init_table_row$1();
|
|
8355
8482
|
init_table_row_properties();
|
|
8356
8483
|
init_table_row_height();
|
|
8357
|
-
})
|
|
8484
|
+
});
|
|
8358
8485
|
//#endregion
|
|
8359
8486
|
//#region src/file/table/index.ts
|
|
8360
|
-
var init_table$1 = __esmMin((
|
|
8487
|
+
var init_table$1 = __esmMin(() => {
|
|
8361
8488
|
init_table();
|
|
8362
8489
|
init_table_cell$1();
|
|
8363
8490
|
init_table_properties();
|
|
8364
8491
|
init_table_row();
|
|
8365
8492
|
init_table_width();
|
|
8366
|
-
})
|
|
8493
|
+
});
|
|
8367
8494
|
//#endregion
|
|
8368
8495
|
//#region src/file/table/table-properties/table-cell-margin.ts
|
|
8369
8496
|
var buildMarginChildren, createTableCellMargin, buildMarginChildrenObjs, buildTableCellMarginObj, buildCellMarginObj;
|
|
8370
|
-
var init_table_cell_margin = __esmMin((
|
|
8497
|
+
var init_table_cell_margin = __esmMin(() => {
|
|
8371
8498
|
init_table$1();
|
|
8372
8499
|
init_xml_components();
|
|
8373
8500
|
buildMarginChildren = ({ marginUnitType = WidthType.DXA, top, left, bottom, right }) => [
|
|
@@ -8427,7 +8554,7 @@ var init_table_cell_margin = __esmMin((() => {
|
|
|
8427
8554
|
const children = buildMarginChildrenObjs(options);
|
|
8428
8555
|
return children.length > 0 ? { "w:tcMar": children } : void 0;
|
|
8429
8556
|
};
|
|
8430
|
-
})
|
|
8557
|
+
});
|
|
8431
8558
|
//#endregion
|
|
8432
8559
|
//#region src/file/table/table-cell/table-cell-properties.ts
|
|
8433
8560
|
/**
|
|
@@ -8484,7 +8611,7 @@ function buildTableCellProperties(options) {
|
|
|
8484
8611
|
if (options.cellMerge) children.push(buildCellMergeObj(options.cellMerge));
|
|
8485
8612
|
if (options.includeIfEmpty || children.length > 0) return { "w:tcPr": children };
|
|
8486
8613
|
}
|
|
8487
|
-
var init_table_cell_properties = __esmMin((
|
|
8614
|
+
var init_table_cell_properties = __esmMin(() => {
|
|
8488
8615
|
init_track_revision();
|
|
8489
8616
|
init_vertical_align();
|
|
8490
8617
|
init_xml_components();
|
|
@@ -8492,7 +8619,7 @@ var init_table_cell_properties = __esmMin((() => {
|
|
|
8492
8619
|
init_table_cell_margin();
|
|
8493
8620
|
init_table_width();
|
|
8494
8621
|
init_table_cell_components();
|
|
8495
|
-
})
|
|
8622
|
+
});
|
|
8496
8623
|
//#endregion
|
|
8497
8624
|
//#region src/file/table/table-cell/table-cell.ts
|
|
8498
8625
|
function lazyCoerce(child) {
|
|
@@ -8500,7 +8627,7 @@ function lazyCoerce(child) {
|
|
|
8500
8627
|
return _coerce(child);
|
|
8501
8628
|
}
|
|
8502
8629
|
var _coerce, TableCell;
|
|
8503
|
-
var init_table_cell = __esmMin((
|
|
8630
|
+
var init_table_cell = __esmMin(() => {
|
|
8504
8631
|
init_paragraph();
|
|
8505
8632
|
init_xml_components();
|
|
8506
8633
|
init_table_cell_properties();
|
|
@@ -8521,12 +8648,21 @@ var init_table_cell = __esmMin((() => {
|
|
|
8521
8648
|
if (!(coerced[coerced.length - 1] instanceof Paragraph)) children.push(new Paragraph({}).prepForXml(context));
|
|
8522
8649
|
return { "w:tc": children };
|
|
8523
8650
|
}
|
|
8651
|
+
toXml(context) {
|
|
8652
|
+
const parts = [];
|
|
8653
|
+
const tPrObj = buildTableCellProperties(this.options);
|
|
8654
|
+
if (tPrObj) parts.push(xml(tPrObj));
|
|
8655
|
+
const coerced = this.options.children.map((c) => c instanceof BaseXmlComponent ? c : lazyCoerce(c));
|
|
8656
|
+
for (const child of coerced) parts.push(child.toXml(context));
|
|
8657
|
+
if (!(coerced[coerced.length - 1] instanceof Paragraph)) parts.push(new Paragraph({}).toXml(context));
|
|
8658
|
+
return `<w:tc>${parts.join("")}</w:tc>`;
|
|
8659
|
+
}
|
|
8524
8660
|
};
|
|
8525
|
-
})
|
|
8661
|
+
});
|
|
8526
8662
|
//#endregion
|
|
8527
8663
|
//#region src/file/sdt/sdt-row.ts
|
|
8528
8664
|
var StructuredDocumentTagRow;
|
|
8529
|
-
var init_sdt_row = __esmMin((
|
|
8665
|
+
var init_sdt_row = __esmMin(() => {
|
|
8530
8666
|
init_xml_components();
|
|
8531
8667
|
init_table_of_contents();
|
|
8532
8668
|
init_table_cell();
|
|
@@ -8552,18 +8688,18 @@ var init_sdt_row = __esmMin((() => {
|
|
|
8552
8688
|
if (this.rows.length > 0) this.rows[0].addCellToColumnIndex(cell, columnIndex);
|
|
8553
8689
|
}
|
|
8554
8690
|
};
|
|
8555
|
-
})
|
|
8691
|
+
});
|
|
8556
8692
|
//#endregion
|
|
8557
8693
|
//#region src/file/sdt/index.ts
|
|
8558
|
-
var init_sdt = __esmMin((
|
|
8694
|
+
var init_sdt = __esmMin(() => {
|
|
8559
8695
|
init_sdt$1();
|
|
8560
8696
|
init_sdt_cell();
|
|
8561
8697
|
init_sdt_row();
|
|
8562
|
-
})
|
|
8698
|
+
});
|
|
8563
8699
|
//#endregion
|
|
8564
8700
|
//#region src/file/table/grid.ts
|
|
8565
8701
|
var createGridCol, TableGrid, TableGridChange;
|
|
8566
|
-
var init_grid = __esmMin((
|
|
8702
|
+
var init_grid = __esmMin(() => {
|
|
8567
8703
|
init_xml_components();
|
|
8568
8704
|
init_values();
|
|
8569
8705
|
createGridCol = (width) => new BuilderElement({
|
|
@@ -8587,11 +8723,11 @@ var init_grid = __esmMin((() => {
|
|
|
8587
8723
|
this.root.push(new TableGrid(options.columnWidths));
|
|
8588
8724
|
}
|
|
8589
8725
|
};
|
|
8590
|
-
})
|
|
8726
|
+
});
|
|
8591
8727
|
//#endregion
|
|
8592
8728
|
//#region src/file/table/table.ts
|
|
8593
8729
|
var Table;
|
|
8594
|
-
var init_table = __esmMin((
|
|
8730
|
+
var init_table = __esmMin(() => {
|
|
8595
8731
|
init_xml_components();
|
|
8596
8732
|
init_sdt();
|
|
8597
8733
|
init_grid();
|
|
@@ -8659,32 +8795,57 @@ var init_table = __esmMin((() => {
|
|
|
8659
8795
|
}
|
|
8660
8796
|
return { "w:tbl": children };
|
|
8661
8797
|
}
|
|
8798
|
+
toXml(context) {
|
|
8799
|
+
const parts = [];
|
|
8800
|
+
const tblPr = new TableProperties({
|
|
8801
|
+
alignment: this.options.alignment,
|
|
8802
|
+
borders: this.options.borders ?? {},
|
|
8803
|
+
caption: this.options.caption,
|
|
8804
|
+
cellMargin: this.options.margins,
|
|
8805
|
+
cellSpacing: this.options.cellSpacing,
|
|
8806
|
+
description: this.options.description,
|
|
8807
|
+
float: this.options.float,
|
|
8808
|
+
indent: this.options.indent,
|
|
8809
|
+
layout: this.options.layout,
|
|
8810
|
+
revision: this.options.revision,
|
|
8811
|
+
style: this.options.style,
|
|
8812
|
+
styleColBandSize: this.options.styleColBandSize,
|
|
8813
|
+
styleRowBandSize: this.options.styleRowBandSize,
|
|
8814
|
+
tableLook: this.options.tableLook,
|
|
8815
|
+
visuallyRightToLeft: this.options.visuallyRightToLeft,
|
|
8816
|
+
width: this.options.width ?? { size: 100 }
|
|
8817
|
+
});
|
|
8818
|
+
parts.push(tblPr.toXml(context));
|
|
8819
|
+
parts.push(new TableGrid(this.columnWidths, this.options.columnWidthsRevision).toXml(context));
|
|
8820
|
+
for (const row of this.rows) parts.push(row.toXml(context));
|
|
8821
|
+
return `<w:tbl>${parts.join("")}</w:tbl>`;
|
|
8822
|
+
}
|
|
8662
8823
|
};
|
|
8663
|
-
})
|
|
8824
|
+
});
|
|
8664
8825
|
//#endregion
|
|
8665
8826
|
//#region src/file/textbox/pict-element/pict-element.ts
|
|
8666
8827
|
var createPictElement;
|
|
8667
|
-
var init_pict_element = __esmMin((
|
|
8828
|
+
var init_pict_element = __esmMin(() => {
|
|
8668
8829
|
init_xml_components();
|
|
8669
8830
|
createPictElement = ({ shape }) => new BuilderElement({
|
|
8670
8831
|
children: [shape],
|
|
8671
8832
|
name: "w:pict"
|
|
8672
8833
|
});
|
|
8673
|
-
})
|
|
8834
|
+
});
|
|
8674
8835
|
//#endregion
|
|
8675
8836
|
//#region src/file/textbox/texbox-content/textbox-content.ts
|
|
8676
8837
|
var createTextboxContent;
|
|
8677
|
-
var init_textbox_content = __esmMin((
|
|
8838
|
+
var init_textbox_content = __esmMin(() => {
|
|
8678
8839
|
init_xml_components();
|
|
8679
8840
|
createTextboxContent = ({ children = [] }) => new BuilderElement({
|
|
8680
8841
|
children,
|
|
8681
8842
|
name: "w:txbxContent"
|
|
8682
8843
|
});
|
|
8683
|
-
})
|
|
8844
|
+
});
|
|
8684
8845
|
//#endregion
|
|
8685
8846
|
//#region src/file/textbox/vml-textbox/vml-texbox.ts
|
|
8686
8847
|
var createVmlTextbox;
|
|
8687
|
-
var init_vml_texbox = __esmMin((
|
|
8848
|
+
var init_vml_texbox = __esmMin(() => {
|
|
8688
8849
|
init_xml_components();
|
|
8689
8850
|
init_textbox_content();
|
|
8690
8851
|
createVmlTextbox = ({ style, children, inset }) => new BuilderElement({
|
|
@@ -8705,11 +8866,11 @@ var init_vml_texbox = __esmMin((() => {
|
|
|
8705
8866
|
children: [createTextboxContent({ children })],
|
|
8706
8867
|
name: "v:textbox"
|
|
8707
8868
|
});
|
|
8708
|
-
})
|
|
8869
|
+
});
|
|
8709
8870
|
//#endregion
|
|
8710
8871
|
//#region src/file/textbox/shape/shape.ts
|
|
8711
8872
|
var SHAPE_TYPE, styleToKeyMap, formatShapeStyle, createShape;
|
|
8712
|
-
var init_shape = __esmMin((
|
|
8873
|
+
var init_shape = __esmMin(() => {
|
|
8713
8874
|
init_xml_components();
|
|
8714
8875
|
init_vml_texbox();
|
|
8715
8876
|
SHAPE_TYPE = "#_x0000_t202";
|
|
@@ -8760,11 +8921,11 @@ var init_shape = __esmMin((() => {
|
|
|
8760
8921
|
})],
|
|
8761
8922
|
name: "v:shape"
|
|
8762
8923
|
});
|
|
8763
|
-
})
|
|
8924
|
+
});
|
|
8764
8925
|
//#endregion
|
|
8765
8926
|
//#region src/file/textbox/textbox.ts
|
|
8766
8927
|
var Textbox;
|
|
8767
|
-
var init_textbox = __esmMin((
|
|
8928
|
+
var init_textbox = __esmMin(() => {
|
|
8768
8929
|
init_paragraph();
|
|
8769
8930
|
init_xml_components();
|
|
8770
8931
|
init_convenience_functions();
|
|
@@ -8782,7 +8943,7 @@ var init_textbox = __esmMin((() => {
|
|
|
8782
8943
|
}) }));
|
|
8783
8944
|
}
|
|
8784
8945
|
};
|
|
8785
|
-
})
|
|
8946
|
+
});
|
|
8786
8947
|
//#endregion
|
|
8787
8948
|
//#region src/file/coerce.ts
|
|
8788
8949
|
var coerce_exports = /* @__PURE__ */ __exportAll({ coerceSectionChild: () => coerceSectionChild });
|
|
@@ -8818,7 +8979,7 @@ function coerceSectionChild(child) {
|
|
|
8818
8979
|
if ("subDoc" in child) return new SubDoc(child.subDoc);
|
|
8819
8980
|
throw new Error("Unknown section child type");
|
|
8820
8981
|
}
|
|
8821
|
-
var init_coerce = __esmMin((
|
|
8982
|
+
var init_coerce = __esmMin(() => {
|
|
8822
8983
|
init_alt_chunk();
|
|
8823
8984
|
init_paragraph$1();
|
|
8824
8985
|
init_sdt$1();
|
|
@@ -8827,7 +8988,7 @@ var init_coerce = __esmMin((() => {
|
|
|
8827
8988
|
init_table();
|
|
8828
8989
|
init_textbox();
|
|
8829
8990
|
init_xml_components();
|
|
8830
|
-
})
|
|
8991
|
+
});
|
|
8831
8992
|
//#endregion
|
|
8832
8993
|
//#region src/file/alt-chunk/alt-chunk-collection.ts
|
|
8833
8994
|
init_coerce();
|
|
@@ -12376,7 +12537,6 @@ init_xml_components();
|
|
|
12376
12537
|
var Compatibility = class extends XmlComponent {
|
|
12377
12538
|
constructor(options) {
|
|
12378
12539
|
super("w:compat");
|
|
12379
|
-
if (options.version) this.root.push(createCompatibilitySetting("compatibilityMode", options.version));
|
|
12380
12540
|
if (options.useSingleBorderforContiguousCells) this.root.push(onOffObj("w:useSingleBorderforContiguousCells", options.useSingleBorderforContiguousCells));
|
|
12381
12541
|
if (options.wordPerfectJustification) this.root.push(onOffObj("w:wpJustification", options.wordPerfectJustification));
|
|
12382
12542
|
if (options.noTabStopForHangingIndent) this.root.push(onOffObj("w:noTabHangInd", options.noTabStopForHangingIndent));
|
|
@@ -12442,6 +12602,7 @@ var Compatibility = class extends XmlComponent {
|
|
|
12442
12602
|
if (options.ignoreVerticalAlignmentInTextboxes) this.root.push(onOffObj("w:doNotVertAlignInTxbx", options.ignoreVerticalAlignmentInTextboxes));
|
|
12443
12603
|
if (options.useAnsiKerningPairs) this.root.push(onOffObj("w:useAnsiKerningPairs", options.useAnsiKerningPairs));
|
|
12444
12604
|
if (options.cachedColumnBalance) this.root.push(onOffObj("w:cachedColBalance", options.cachedColumnBalance));
|
|
12605
|
+
if (options.version) this.root.push(createCompatibilitySetting("compatibilityMode", options.version));
|
|
12445
12606
|
if (options.overrideTableStyleFontSizeAndJustification) this.root.push(createCompatibilitySetting("overrideTableStyleFontSizeAndJustification", 1));
|
|
12446
12607
|
if (options.enableOpenTypeFeatures) this.root.push(createCompatibilitySetting("enableOpenTypeFeatures", 1));
|
|
12447
12608
|
if (options.doNotFlipMirrorIndents) this.root.push(createCompatibilitySetting("doNotFlipMirrorIndents", 1));
|
|
@@ -12518,40 +12679,26 @@ var Settings = class extends XmlComponent {
|
|
|
12518
12679
|
"xmlns:wpi": "http://schemas.microsoft.com/office/word/2010/wordprocessingInk",
|
|
12519
12680
|
"xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
|
|
12520
12681
|
} });
|
|
12521
|
-
if (options.
|
|
12522
|
-
if (options.documentProtection !== void 0) this.root.push(new DocumentProtection(options.documentProtection));
|
|
12682
|
+
if (options.writeProtection !== void 0) this.root.push(new WriteProtection(options.writeProtection));
|
|
12523
12683
|
if (options.view !== void 0) this.root.push(new View(options.view));
|
|
12524
12684
|
if (options.zoom !== void 0) this.root.push(new Zoom({
|
|
12525
12685
|
val: options.zoom.val,
|
|
12526
12686
|
percent: options.zoom.percent ?? 100
|
|
12527
12687
|
}));
|
|
12528
|
-
if (options.writeProtection !== void 0) this.root.push(new WriteProtection(options.writeProtection));
|
|
12529
12688
|
if (options.displayBackgroundShape !== void 0) this.root.push(onOffObj("w:displayBackgroundShape", options.displayBackgroundShape));
|
|
12530
12689
|
if (options.embedTrueTypeFonts !== void 0) this.root.push(onOffObj("w:embedTrueTypeFonts", options.embedTrueTypeFonts));
|
|
12531
12690
|
if (options.embedSystemFonts !== void 0) this.root.push(onOffObj("w:embedSystemFonts", options.embedSystemFonts));
|
|
12532
12691
|
if (options.saveSubsetFonts !== void 0) this.root.push(onOffObj("w:saveSubsetFonts", options.saveSubsetFonts));
|
|
12533
|
-
if (options.
|
|
12534
|
-
|
|
12535
|
-
children: options.docVars.map((v) => new BuilderElement({
|
|
12536
|
-
name: "w:docVar",
|
|
12537
|
-
attributes: [{
|
|
12538
|
-
key: "w:name",
|
|
12539
|
-
value: v.name
|
|
12540
|
-
}, {
|
|
12541
|
-
key: "w:val",
|
|
12542
|
-
value: v.val
|
|
12543
|
-
}]
|
|
12544
|
-
}))
|
|
12545
|
-
}));
|
|
12546
|
-
if (options.evenAndOddHeaders !== void 0) this.root.push(onOffObj("w:evenAndOddHeaders", options.evenAndOddHeaders));
|
|
12547
|
-
if (options.updateFields !== void 0) this.root.push(onOffObj("w:updateFields", options.updateFields));
|
|
12692
|
+
if (options.trackRevisions !== void 0) this.root.push(onOffObj("w:trackRevisions", options.trackRevisions));
|
|
12693
|
+
if (options.documentProtection !== void 0) this.root.push(new DocumentProtection(options.documentProtection));
|
|
12548
12694
|
this.root.push(numberValObj("w:defaultTabStop", options.defaultTabStop ?? 420));
|
|
12549
12695
|
if (options.hyphenation?.autoHyphenation !== void 0) this.root.push(onOffObj("w:autoHyphenation", options.hyphenation.autoHyphenation));
|
|
12550
|
-
if (options.hyphenation?.hyphenationZone !== void 0) this.root.push(numberValObj("w:hyphenationZone", options.hyphenation.hyphenationZone));
|
|
12551
12696
|
if (options.hyphenation?.consecutiveHyphenLimit !== void 0) this.root.push(numberValObj("w:consecutiveHyphenLimit", options.hyphenation.consecutiveHyphenLimit));
|
|
12697
|
+
if (options.hyphenation?.hyphenationZone !== void 0) this.root.push(numberValObj("w:hyphenationZone", options.hyphenation.hyphenationZone));
|
|
12552
12698
|
if (options.hyphenation?.doNotHyphenateCaps !== void 0) this.root.push(onOffObj("w:doNotHyphenateCaps", options.hyphenation.doNotHyphenateCaps));
|
|
12699
|
+
if (options.evenAndOddHeaders !== void 0) this.root.push(onOffObj("w:evenAndOddHeaders", options.evenAndOddHeaders));
|
|
12553
12700
|
this.root.push(stringValObj("w:characterSpacingControl", options.characterSpacingControl ?? "compressPunctuation"));
|
|
12554
|
-
if (options.
|
|
12701
|
+
if (options.updateFields !== void 0) this.root.push(onOffObj("w:updateFields", options.updateFields));
|
|
12555
12702
|
this.root.push(new Compatibility({
|
|
12556
12703
|
...options.compatibility,
|
|
12557
12704
|
version: options.compatibility?.version ?? options.compatibilityModeVersion ?? 15,
|
|
@@ -12566,6 +12713,20 @@ var Settings = class extends XmlComponent {
|
|
|
12566
12713
|
enableOpenTypeFeatures: options.compatibility?.enableOpenTypeFeatures ?? true,
|
|
12567
12714
|
doNotFlipMirrorIndents: options.compatibility?.doNotFlipMirrorIndents ?? true
|
|
12568
12715
|
}));
|
|
12716
|
+
if (options.docVars !== void 0 && options.docVars.length > 0) this.root.push(new BuilderElement({
|
|
12717
|
+
name: "w:docVars",
|
|
12718
|
+
children: options.docVars.map((v) => new BuilderElement({
|
|
12719
|
+
name: "w:docVar",
|
|
12720
|
+
attributes: [{
|
|
12721
|
+
key: "w:name",
|
|
12722
|
+
value: v.name
|
|
12723
|
+
}, {
|
|
12724
|
+
key: "w:val",
|
|
12725
|
+
value: v.val
|
|
12726
|
+
}]
|
|
12727
|
+
}))
|
|
12728
|
+
}));
|
|
12729
|
+
if (options.colorSchemeMapping !== void 0) this.root.push(new ColorSchemeMapping(options.colorSchemeMapping));
|
|
12569
12730
|
}
|
|
12570
12731
|
};
|
|
12571
12732
|
/**
|
|
@@ -13717,9 +13878,10 @@ var File = class {
|
|
|
13717
13878
|
if (options.externalStyles !== void 0) {
|
|
13718
13879
|
const defaultStyles = new DefaultStylesFactory().newInstance(options.styles?.default);
|
|
13719
13880
|
const externalStyles = new ExternalStylesFactory().newInstance(options.externalStyles);
|
|
13881
|
+
const defaultStyleElements = defaultStyles.importedStyles.slice(1);
|
|
13720
13882
|
this.styles = new Styles({
|
|
13721
13883
|
...externalStyles,
|
|
13722
|
-
importedStyles: [...
|
|
13884
|
+
importedStyles: [...externalStyles.importedStyles, ...defaultStyleElements]
|
|
13723
13885
|
});
|
|
13724
13886
|
} else if (options.styles) {
|
|
13725
13887
|
const defaultStyles = new DefaultStylesFactory().newInstance(options.styles.default);
|
|
@@ -14543,6 +14705,8 @@ function replaceNumberingPlaceholders(xml, concreteNumberings) {
|
|
|
14543
14705
|
}
|
|
14544
14706
|
//#endregion
|
|
14545
14707
|
//#region src/export/packer/next-compiler.ts
|
|
14708
|
+
/** Reusable TextEncoder (stateless, safe to share). */
|
|
14709
|
+
const encoder$1 = new TextEncoder();
|
|
14546
14710
|
/**
|
|
14547
14711
|
* Compiles File objects into OOXML-compliant ZIP file data.
|
|
14548
14712
|
*
|
|
@@ -14553,7 +14717,7 @@ function replaceNumberingPlaceholders(xml, concreteNumberings) {
|
|
|
14553
14717
|
* @example
|
|
14554
14718
|
* ```typescript
|
|
14555
14719
|
* const compiler = new Compiler();
|
|
14556
|
-
* const files = compiler.compile(file
|
|
14720
|
+
* const files = compiler.compile(file);
|
|
14557
14721
|
* ```
|
|
14558
14722
|
*/
|
|
14559
14723
|
var Compiler = class {
|
|
@@ -14575,22 +14739,21 @@ var Compiler = class {
|
|
|
14575
14739
|
* DEFLATE compression set by the caller via zipSync options.
|
|
14576
14740
|
*
|
|
14577
14741
|
* @param file - The document to compile
|
|
14578
|
-
* @param prettifyXml - Optional XML formatting style
|
|
14579
14742
|
* @param overrides - Optional custom XML file overrides
|
|
14580
14743
|
* @returns A Zippable object mapping file paths to their content
|
|
14581
14744
|
*/
|
|
14582
|
-
compile(file,
|
|
14745
|
+
compile(file, overrides = []) {
|
|
14583
14746
|
const files = {};
|
|
14584
14747
|
const headerFormattedViews = /* @__PURE__ */ new Map();
|
|
14585
14748
|
const footerFormattedViews = /* @__PURE__ */ new Map();
|
|
14586
|
-
const xmlifiedFileMapping = this.xmlifyFile(file, headerFormattedViews, footerFormattedViews
|
|
14749
|
+
const xmlifiedFileMapping = this.xmlifyFile(file, headerFormattedViews, footerFormattedViews);
|
|
14587
14750
|
const map = new Map(Object.entries(xmlifiedFileMapping));
|
|
14588
|
-
for (const [, obj] of map) if (Array.isArray(obj)) for (const subFile of obj) files[subFile.path] = typeof subFile.data === "string" ?
|
|
14751
|
+
for (const [, obj] of map) if (Array.isArray(obj)) for (const subFile of obj) files[subFile.path] = typeof subFile.data === "string" ? encoder$1.encode(subFile.data) : subFile.data;
|
|
14589
14752
|
else {
|
|
14590
14753
|
const fileObj = obj;
|
|
14591
|
-
files[fileObj.path] = typeof fileObj.data === "string" ?
|
|
14754
|
+
files[fileObj.path] = typeof fileObj.data === "string" ? encoder$1.encode(fileObj.data) : fileObj.data;
|
|
14592
14755
|
}
|
|
14593
|
-
for (const subFile of overrides) files[subFile.path] = typeof subFile.data === "string" ?
|
|
14756
|
+
for (const subFile of overrides) files[subFile.path] = typeof subFile.data === "string" ? encoder$1.encode(subFile.data) : subFile.data;
|
|
14594
14757
|
for (const mediaData of file.media.array) {
|
|
14595
14758
|
files[`word/media/${mediaData.fileName}`] = [toUint8Array(mediaData.data), { level: ZIP_STORED_LEVEL }];
|
|
14596
14759
|
if (mediaData.type === "svg") files[`word/media/${mediaData.fallback.fileName}`] = [toUint8Array(mediaData.fallback.data), { level: ZIP_STORED_LEVEL }];
|
|
@@ -14601,63 +14764,40 @@ var Compiler = class {
|
|
|
14601
14764
|
}
|
|
14602
14765
|
return files;
|
|
14603
14766
|
}
|
|
14604
|
-
xmlifyFile(file, headerFormattedViews, footerFormattedViews
|
|
14605
|
-
const
|
|
14606
|
-
const documentXmlData = xml(this.formatter.format(file.document.view, {
|
|
14767
|
+
xmlifyFile(file, headerFormattedViews, footerFormattedViews) {
|
|
14768
|
+
const mkCtx = (viewWrapper) => ({
|
|
14607
14769
|
fileData: file,
|
|
14608
14770
|
file,
|
|
14609
14771
|
stack: [],
|
|
14610
|
-
viewWrapper
|
|
14611
|
-
})
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
indent: prettify
|
|
14772
|
+
viewWrapper
|
|
14773
|
+
});
|
|
14774
|
+
const documentRelationshipCount = file.document.relationships.relationshipCount + 1;
|
|
14775
|
+
const documentXmlData = this.formatter.formatToXml(file.document.view, mkCtx(file.document), {
|
|
14776
|
+
encoding: "UTF-8",
|
|
14777
|
+
standalone: "yes"
|
|
14617
14778
|
});
|
|
14618
14779
|
const commentRelationshipCount = file.comments.relationships.relationshipCount + 1;
|
|
14619
|
-
const commentXmlData =
|
|
14620
|
-
|
|
14621
|
-
file
|
|
14622
|
-
stack: [],
|
|
14623
|
-
viewWrapper: {
|
|
14624
|
-
relationships: file.comments.relationships,
|
|
14625
|
-
view: file.comments
|
|
14626
|
-
}
|
|
14780
|
+
const commentXmlData = this.formatter.formatToXml(file.comments, mkCtx({
|
|
14781
|
+
relationships: file.comments.relationships,
|
|
14782
|
+
view: file.comments
|
|
14627
14783
|
}), {
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
standalone: "yes"
|
|
14631
|
-
},
|
|
14632
|
-
indent: prettify
|
|
14784
|
+
encoding: "UTF-8",
|
|
14785
|
+
standalone: "yes"
|
|
14633
14786
|
});
|
|
14634
14787
|
const footnoteRelationshipCount = file.footNotes.relationships.relationshipCount + 1;
|
|
14635
|
-
const footnoteXmlData =
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
stack: [],
|
|
14639
|
-
viewWrapper: file.footNotes
|
|
14640
|
-
}), {
|
|
14641
|
-
declaration: {
|
|
14642
|
-
encoding: "UTF-8",
|
|
14643
|
-
standalone: "yes"
|
|
14644
|
-
},
|
|
14645
|
-
indent: prettify
|
|
14788
|
+
const footnoteXmlData = this.formatter.formatToXml(file.footNotes.view, mkCtx(file.footNotes), {
|
|
14789
|
+
encoding: "UTF-8",
|
|
14790
|
+
standalone: "yes"
|
|
14646
14791
|
});
|
|
14647
14792
|
const documentMediaDatas = hasPlaceholders(documentXmlData) ? getReferencedMedia(documentXmlData, file.media.array) : [];
|
|
14648
14793
|
const commentMediaDatas = hasPlaceholders(commentXmlData) ? getReferencedMedia(commentXmlData, file.media.array) : [];
|
|
14649
14794
|
const footnoteMediaDatas = hasPlaceholders(footnoteXmlData) ? getReferencedMedia(footnoteXmlData, file.media.array) : [];
|
|
14650
14795
|
return {
|
|
14651
14796
|
AppProperties: {
|
|
14652
|
-
data:
|
|
14653
|
-
fileData: file,
|
|
14654
|
-
file,
|
|
14655
|
-
stack: [],
|
|
14656
|
-
viewWrapper: file.document
|
|
14657
|
-
}), { declaration: {
|
|
14797
|
+
data: this.formatter.formatToXml(file.appProperties, mkCtx(file.document), {
|
|
14658
14798
|
encoding: "UTF-8",
|
|
14659
14799
|
standalone: "yes"
|
|
14660
|
-
}
|
|
14800
|
+
}),
|
|
14661
14801
|
path: "docProps/app.xml"
|
|
14662
14802
|
},
|
|
14663
14803
|
Comments: {
|
|
@@ -14669,18 +14809,10 @@ var Compiler = class {
|
|
|
14669
14809
|
commentMediaDatas.forEach((mediaData, i) => {
|
|
14670
14810
|
file.comments.relationships.addRelationship(commentRelationshipCount + i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14671
14811
|
});
|
|
14672
|
-
return
|
|
14673
|
-
|
|
14674
|
-
file
|
|
14675
|
-
|
|
14676
|
-
viewWrapper: {
|
|
14677
|
-
relationships: file.comments.relationships,
|
|
14678
|
-
view: file.comments
|
|
14679
|
-
}
|
|
14680
|
-
}), {
|
|
14681
|
-
declaration: { encoding: "UTF-8" },
|
|
14682
|
-
indent: prettify
|
|
14683
|
-
});
|
|
14812
|
+
return this.formatter.formatToXml(file.comments.relationships, mkCtx({
|
|
14813
|
+
relationships: file.comments.relationships,
|
|
14814
|
+
view: file.comments
|
|
14815
|
+
}), { encoding: "UTF-8" });
|
|
14684
14816
|
})(),
|
|
14685
14817
|
path: "word/_rels/comments.xml.rels"
|
|
14686
14818
|
},
|
|
@@ -14696,30 +14828,14 @@ var Compiler = class {
|
|
|
14696
14828
|
file.contentTypes.addDiagramColors(i + 1);
|
|
14697
14829
|
file.contentTypes.addDiagramDrawing(i + 1);
|
|
14698
14830
|
});
|
|
14699
|
-
return
|
|
14700
|
-
fileData: file,
|
|
14701
|
-
file,
|
|
14702
|
-
stack: [],
|
|
14703
|
-
viewWrapper: file.document
|
|
14704
|
-
}), {
|
|
14705
|
-
declaration: { encoding: "UTF-8" },
|
|
14706
|
-
indent: prettify
|
|
14707
|
-
});
|
|
14831
|
+
return this.formatter.formatToXml(file.contentTypes, mkCtx(file.document), { encoding: "UTF-8" });
|
|
14708
14832
|
})(),
|
|
14709
14833
|
path: "[Content_Types].xml"
|
|
14710
14834
|
},
|
|
14711
14835
|
CustomProperties: {
|
|
14712
|
-
data:
|
|
14713
|
-
|
|
14714
|
-
|
|
14715
|
-
stack: [],
|
|
14716
|
-
viewWrapper: file.document
|
|
14717
|
-
}), {
|
|
14718
|
-
declaration: {
|
|
14719
|
-
encoding: "UTF-8",
|
|
14720
|
-
standalone: "yes"
|
|
14721
|
-
},
|
|
14722
|
-
indent: prettify
|
|
14836
|
+
data: this.formatter.formatToXml(file.customProperties, mkCtx(file.document), {
|
|
14837
|
+
encoding: "UTF-8",
|
|
14838
|
+
standalone: "yes"
|
|
14723
14839
|
}),
|
|
14724
14840
|
path: "docProps/custom.xml"
|
|
14725
14841
|
},
|
|
@@ -14736,66 +14852,26 @@ var Compiler = class {
|
|
|
14736
14852
|
path: "word/document.xml"
|
|
14737
14853
|
},
|
|
14738
14854
|
Endnotes: {
|
|
14739
|
-
data:
|
|
14740
|
-
fileData: file,
|
|
14741
|
-
file,
|
|
14742
|
-
stack: [],
|
|
14743
|
-
viewWrapper: file.endnotes
|
|
14744
|
-
}), {
|
|
14745
|
-
declaration: { encoding: "UTF-8" },
|
|
14746
|
-
indent: prettify
|
|
14747
|
-
}),
|
|
14855
|
+
data: this.formatter.formatToXml(file.endnotes.view, mkCtx(file.endnotes), { encoding: "UTF-8" }),
|
|
14748
14856
|
path: "word/endnotes.xml"
|
|
14749
14857
|
},
|
|
14750
14858
|
EndnotesRelationships: {
|
|
14751
|
-
data:
|
|
14752
|
-
fileData: file,
|
|
14753
|
-
file,
|
|
14754
|
-
stack: [],
|
|
14755
|
-
viewWrapper: file.endnotes
|
|
14756
|
-
}), {
|
|
14757
|
-
declaration: { encoding: "UTF-8" },
|
|
14758
|
-
indent: prettify
|
|
14759
|
-
}),
|
|
14859
|
+
data: this.formatter.formatToXml(file.endnotes.relationships, mkCtx(file.endnotes), { encoding: "UTF-8" }),
|
|
14760
14860
|
path: "word/_rels/endnotes.xml.rels"
|
|
14761
14861
|
},
|
|
14762
14862
|
FileRelationships: {
|
|
14763
|
-
data:
|
|
14764
|
-
fileData: file,
|
|
14765
|
-
file,
|
|
14766
|
-
stack: [],
|
|
14767
|
-
viewWrapper: file.document
|
|
14768
|
-
}), {
|
|
14769
|
-
declaration: { encoding: "UTF-8" },
|
|
14770
|
-
indent: prettify
|
|
14771
|
-
}),
|
|
14863
|
+
data: this.formatter.formatToXml(file.fileRelationships, mkCtx(file.document), { encoding: "UTF-8" }),
|
|
14772
14864
|
path: "_rels/.rels"
|
|
14773
14865
|
},
|
|
14774
14866
|
FontTable: {
|
|
14775
|
-
data:
|
|
14776
|
-
|
|
14777
|
-
|
|
14778
|
-
stack: [],
|
|
14779
|
-
viewWrapper: file.document
|
|
14780
|
-
}), {
|
|
14781
|
-
declaration: {
|
|
14782
|
-
encoding: "UTF-8",
|
|
14783
|
-
standalone: "yes"
|
|
14784
|
-
},
|
|
14785
|
-
indent: prettify
|
|
14867
|
+
data: this.formatter.formatToXml(file.fontTable.view, mkCtx(file.document), {
|
|
14868
|
+
encoding: "UTF-8",
|
|
14869
|
+
standalone: "yes"
|
|
14786
14870
|
}),
|
|
14787
14871
|
path: "word/fontTable.xml"
|
|
14788
14872
|
},
|
|
14789
14873
|
FontTableRelationships: {
|
|
14790
|
-
data:
|
|
14791
|
-
fileData: file,
|
|
14792
|
-
file,
|
|
14793
|
-
stack: [],
|
|
14794
|
-
viewWrapper: file.document
|
|
14795
|
-
}), {
|
|
14796
|
-
declaration: { encoding: "UTF-8" },
|
|
14797
|
-
indent: prettify
|
|
14798
|
-
}),
|
|
14874
|
+
data: this.formatter.formatToXml(file.fontTable.relationships, mkCtx(file.document), { encoding: "UTF-8" }),
|
|
14799
14875
|
path: "word/_rels/fontTable.xml.rels"
|
|
14800
14876
|
},
|
|
14801
14877
|
FootNotes: {
|
|
@@ -14807,42 +14883,18 @@ var Compiler = class {
|
|
|
14807
14883
|
footnoteMediaDatas.forEach((mediaData, i) => {
|
|
14808
14884
|
file.footNotes.relationships.addRelationship(footnoteRelationshipCount + i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14809
14885
|
});
|
|
14810
|
-
return
|
|
14811
|
-
fileData: file,
|
|
14812
|
-
file,
|
|
14813
|
-
stack: [],
|
|
14814
|
-
viewWrapper: file.footNotes
|
|
14815
|
-
}), {
|
|
14816
|
-
declaration: { encoding: "UTF-8" },
|
|
14817
|
-
indent: prettify
|
|
14818
|
-
});
|
|
14886
|
+
return this.formatter.formatToXml(file.footNotes.relationships, mkCtx(file.footNotes), { encoding: "UTF-8" });
|
|
14819
14887
|
})(),
|
|
14820
14888
|
path: "word/_rels/footnotes.xml.rels"
|
|
14821
14889
|
},
|
|
14822
14890
|
FooterRelationships: file.footers.map((footerWrapper, index) => {
|
|
14823
|
-
const xmlData =
|
|
14824
|
-
fileData: file,
|
|
14825
|
-
file,
|
|
14826
|
-
stack: [],
|
|
14827
|
-
viewWrapper: footerWrapper
|
|
14828
|
-
}), {
|
|
14829
|
-
declaration: { encoding: "UTF-8" },
|
|
14830
|
-
indent: prettify
|
|
14831
|
-
});
|
|
14891
|
+
const xmlData = this.formatter.formatToXml(footerWrapper.view, mkCtx(footerWrapper), { encoding: "UTF-8" });
|
|
14832
14892
|
footerFormattedViews.set(index, xmlData);
|
|
14833
14893
|
getReferencedMedia(xmlData, file.media.array).forEach((mediaData, i) => {
|
|
14834
14894
|
footerWrapper.relationships.addRelationship(i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14835
14895
|
});
|
|
14836
14896
|
return {
|
|
14837
|
-
data:
|
|
14838
|
-
fileData: file,
|
|
14839
|
-
file,
|
|
14840
|
-
stack: [],
|
|
14841
|
-
viewWrapper: footerWrapper
|
|
14842
|
-
}), {
|
|
14843
|
-
declaration: { encoding: "UTF-8" },
|
|
14844
|
-
indent: prettify
|
|
14845
|
-
}),
|
|
14897
|
+
data: this.formatter.formatToXml(footerWrapper.relationships, mkCtx(footerWrapper), { encoding: "UTF-8" }),
|
|
14846
14898
|
path: `word/_rels/footer${index + 1}.xml.rels`
|
|
14847
14899
|
};
|
|
14848
14900
|
}),
|
|
@@ -14855,29 +14907,13 @@ var Compiler = class {
|
|
|
14855
14907
|
};
|
|
14856
14908
|
}),
|
|
14857
14909
|
HeaderRelationships: file.headers.map((headerWrapper, index) => {
|
|
14858
|
-
const xmlData =
|
|
14859
|
-
fileData: file,
|
|
14860
|
-
file,
|
|
14861
|
-
stack: [],
|
|
14862
|
-
viewWrapper: headerWrapper
|
|
14863
|
-
}), {
|
|
14864
|
-
declaration: { encoding: "UTF-8" },
|
|
14865
|
-
indent: prettify
|
|
14866
|
-
});
|
|
14910
|
+
const xmlData = this.formatter.formatToXml(headerWrapper.view, mkCtx(headerWrapper), { encoding: "UTF-8" });
|
|
14867
14911
|
headerFormattedViews.set(index, xmlData);
|
|
14868
14912
|
getReferencedMedia(xmlData, file.media.array).forEach((mediaData, i) => {
|
|
14869
14913
|
headerWrapper.relationships.addRelationship(i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14870
14914
|
});
|
|
14871
14915
|
return {
|
|
14872
|
-
data:
|
|
14873
|
-
fileData: file,
|
|
14874
|
-
file,
|
|
14875
|
-
stack: [],
|
|
14876
|
-
viewWrapper: headerWrapper
|
|
14877
|
-
}), {
|
|
14878
|
-
declaration: { encoding: "UTF-8" },
|
|
14879
|
-
indent: prettify
|
|
14880
|
-
}),
|
|
14916
|
+
data: this.formatter.formatToXml(headerWrapper.relationships, mkCtx(headerWrapper), { encoding: "UTF-8" }),
|
|
14881
14917
|
path: `word/_rels/header${index + 1}.xml.rels`
|
|
14882
14918
|
};
|
|
14883
14919
|
}),
|
|
@@ -14890,32 +14926,16 @@ var Compiler = class {
|
|
|
14890
14926
|
};
|
|
14891
14927
|
}),
|
|
14892
14928
|
Numbering: {
|
|
14893
|
-
data:
|
|
14894
|
-
|
|
14895
|
-
|
|
14896
|
-
stack: [],
|
|
14897
|
-
viewWrapper: file.document
|
|
14898
|
-
}), {
|
|
14899
|
-
declaration: {
|
|
14900
|
-
encoding: "UTF-8",
|
|
14901
|
-
standalone: "yes"
|
|
14902
|
-
},
|
|
14903
|
-
indent: prettify
|
|
14929
|
+
data: this.formatter.formatToXml(file.numbering, mkCtx(file.document), {
|
|
14930
|
+
encoding: "UTF-8",
|
|
14931
|
+
standalone: "yes"
|
|
14904
14932
|
}),
|
|
14905
14933
|
path: "word/numbering.xml"
|
|
14906
14934
|
},
|
|
14907
14935
|
Properties: {
|
|
14908
|
-
data:
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
stack: [],
|
|
14912
|
-
viewWrapper: file.document
|
|
14913
|
-
}), {
|
|
14914
|
-
declaration: {
|
|
14915
|
-
encoding: "UTF-8",
|
|
14916
|
-
standalone: "yes"
|
|
14917
|
-
},
|
|
14918
|
-
indent: prettify
|
|
14936
|
+
data: this.formatter.formatToXml(file.coreProperties, mkCtx(file.document), {
|
|
14937
|
+
encoding: "UTF-8",
|
|
14938
|
+
standalone: "yes"
|
|
14919
14939
|
}),
|
|
14920
14940
|
path: "docProps/core.xml"
|
|
14921
14941
|
},
|
|
@@ -14935,78 +14955,38 @@ var Compiler = class {
|
|
|
14935
14955
|
styleRelType: "http://schemas.microsoft.com/office/2007/relationships/diagramStyle"
|
|
14936
14956
|
});
|
|
14937
14957
|
file.document.relationships.addRelationship(file.document.relationships.relationshipCount + 1, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", "fontTable.xml");
|
|
14938
|
-
return
|
|
14939
|
-
fileData: file,
|
|
14940
|
-
file,
|
|
14941
|
-
stack: [],
|
|
14942
|
-
viewWrapper: file.document
|
|
14943
|
-
}), {
|
|
14944
|
-
declaration: { encoding: "UTF-8" },
|
|
14945
|
-
indent: prettify
|
|
14946
|
-
});
|
|
14958
|
+
return this.formatter.formatToXml(file.document.relationships, mkCtx(file.document), { encoding: "UTF-8" });
|
|
14947
14959
|
})(),
|
|
14948
14960
|
path: "word/_rels/document.xml.rels"
|
|
14949
14961
|
},
|
|
14950
14962
|
Settings: {
|
|
14951
|
-
data:
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
stack: [],
|
|
14955
|
-
viewWrapper: file.document
|
|
14956
|
-
}), {
|
|
14957
|
-
declaration: {
|
|
14958
|
-
encoding: "UTF-8",
|
|
14959
|
-
standalone: "yes"
|
|
14960
|
-
},
|
|
14961
|
-
indent: prettify
|
|
14963
|
+
data: this.formatter.formatToXml(file.settings, mkCtx(file.document), {
|
|
14964
|
+
encoding: "UTF-8",
|
|
14965
|
+
standalone: "yes"
|
|
14962
14966
|
}),
|
|
14963
14967
|
path: "word/settings.xml"
|
|
14964
14968
|
},
|
|
14965
14969
|
Styles: {
|
|
14966
|
-
data: replaceNumberingPlaceholders(
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
stack: [],
|
|
14970
|
-
viewWrapper: file.document
|
|
14971
|
-
}), {
|
|
14972
|
-
declaration: {
|
|
14973
|
-
encoding: "UTF-8",
|
|
14974
|
-
standalone: "yes"
|
|
14975
|
-
},
|
|
14976
|
-
indent: prettify
|
|
14970
|
+
data: replaceNumberingPlaceholders(this.formatter.formatToXml(file.styles, mkCtx(file.document), {
|
|
14971
|
+
encoding: "UTF-8",
|
|
14972
|
+
standalone: "yes"
|
|
14977
14973
|
}), file.numbering.concreteNumbering),
|
|
14978
14974
|
path: "word/styles.xml"
|
|
14979
14975
|
},
|
|
14980
14976
|
...file.bibliography ? { Bibliography: {
|
|
14981
|
-
data:
|
|
14982
|
-
|
|
14983
|
-
file
|
|
14984
|
-
stack: [],
|
|
14985
|
-
viewWrapper: {
|
|
14986
|
-
relationships: file.bibliography.relationships,
|
|
14987
|
-
view: file.bibliography
|
|
14988
|
-
}
|
|
14977
|
+
data: this.formatter.formatToXml(file.bibliography, mkCtx({
|
|
14978
|
+
relationships: file.bibliography.relationships,
|
|
14979
|
+
view: file.bibliography
|
|
14989
14980
|
}), {
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
standalone: "yes"
|
|
14993
|
-
},
|
|
14994
|
-
indent: prettify
|
|
14981
|
+
encoding: "UTF-8",
|
|
14982
|
+
standalone: "yes"
|
|
14995
14983
|
}),
|
|
14996
14984
|
path: "word/bibliography.xml"
|
|
14997
14985
|
} } : {},
|
|
14998
14986
|
...file.charts.array.length > 0 ? { Charts: file.charts.array.flatMap((chartData, i) => [{
|
|
14999
|
-
data:
|
|
15000
|
-
|
|
15001
|
-
|
|
15002
|
-
stack: [],
|
|
15003
|
-
viewWrapper: file.document
|
|
15004
|
-
}), {
|
|
15005
|
-
declaration: {
|
|
15006
|
-
encoding: "UTF-8",
|
|
15007
|
-
standalone: "yes"
|
|
15008
|
-
},
|
|
15009
|
-
indent: prettify
|
|
14987
|
+
data: this.formatter.formatToXml(chartData.chartSpace, mkCtx(file.document), {
|
|
14988
|
+
encoding: "UTF-8",
|
|
14989
|
+
standalone: "yes"
|
|
15010
14990
|
}),
|
|
15011
14991
|
path: `word/charts/chart${i + 1}.xml`
|
|
15012
14992
|
}, {
|
|
@@ -15018,17 +14998,9 @@ var Compiler = class {
|
|
|
15018
14998
|
}]) } : {},
|
|
15019
14999
|
...file.smartArts.array.length > 0 ? {
|
|
15020
15000
|
DiagramData: file.smartArts.array.map((smartArtData, i) => ({
|
|
15021
|
-
data:
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
stack: [],
|
|
15025
|
-
viewWrapper: file.document
|
|
15026
|
-
}), {
|
|
15027
|
-
declaration: {
|
|
15028
|
-
encoding: "UTF-8",
|
|
15029
|
-
standalone: "yes"
|
|
15030
|
-
},
|
|
15031
|
-
indent: prettify
|
|
15001
|
+
data: this.formatter.formatToXml(smartArtData.dataModel, mkCtx(file.document), {
|
|
15002
|
+
encoding: "UTF-8",
|
|
15003
|
+
standalone: "yes"
|
|
15032
15004
|
}),
|
|
15033
15005
|
path: `word/diagrams/data${i + 1}.xml`
|
|
15034
15006
|
})),
|
|
@@ -15072,11 +15044,10 @@ const compiler = new Compiler();
|
|
|
15072
15044
|
* ```typescript
|
|
15073
15045
|
* const buffer = await Packer.toBuffer(doc);
|
|
15074
15046
|
* const blob = await Packer.toBlob(doc);
|
|
15075
|
-
* const buffer = await Packer.toBuffer(doc, PrettifyType.WITH_2_BLANKS);
|
|
15076
15047
|
* ```
|
|
15077
15048
|
*/
|
|
15078
15049
|
const Packer = createPacker({
|
|
15079
|
-
compile: (file,
|
|
15050
|
+
compile: (file, overrides) => compiler.compile(file, overrides),
|
|
15080
15051
|
mimeType: OoxmlMimeType.DOCX
|
|
15081
15052
|
});
|
|
15082
15053
|
//#endregion
|
|
@@ -15102,6 +15073,8 @@ init_media();
|
|
|
15102
15073
|
init_paragraph();
|
|
15103
15074
|
init_relationship();
|
|
15104
15075
|
init_convenience_functions();
|
|
15076
|
+
/** Reusable TextEncoder (stateless, safe to share). */
|
|
15077
|
+
const encoder = new TextEncoder();
|
|
15105
15078
|
/**
|
|
15106
15079
|
* Document patching module for modifying existing .docx files.
|
|
15107
15080
|
*
|
|
@@ -15111,7 +15084,7 @@ const formatter = new Formatter();
|
|
|
15111
15084
|
const docxReplacer = createReplacer({
|
|
15112
15085
|
ns: DOCX_NS,
|
|
15113
15086
|
formatChild: (child, context) => {
|
|
15114
|
-
return [
|
|
15087
|
+
return [xml2js(formatter.formatToXml(child, context), { captureSpacesBetweenElements: true }).elements[0]];
|
|
15115
15088
|
}
|
|
15116
15089
|
});
|
|
15117
15090
|
/**
|
|
@@ -15135,7 +15108,7 @@ const compareByteArrays = (a, b) => {
|
|
|
15135
15108
|
*
|
|
15136
15109
|
* @publicApi
|
|
15137
15110
|
*/
|
|
15138
|
-
const patchDocument = async ({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters = {
|
|
15111
|
+
const patchDocument = async ({ outputType, data, patches, keepOriginalStyles = true, placeholderDelimiters = {
|
|
15139
15112
|
end: "}}",
|
|
15140
15113
|
start: "{{"
|
|
15141
15114
|
}, recursive = true }) => {
|
|
@@ -15257,7 +15230,7 @@ const patchDocument = async ({ outputType, data, patches, keepOriginalStyles, pl
|
|
|
15257
15230
|
appendContentType(contentTypesJson, "image/svg+xml", "svg");
|
|
15258
15231
|
}
|
|
15259
15232
|
const files = {};
|
|
15260
|
-
for (const [key, value] of map) files[key] =
|
|
15233
|
+
for (const [key, value] of map) files[key] = encoder.encode(js2xml(value));
|
|
15261
15234
|
for (const [key, value] of binaryContentMap) files[key] = value;
|
|
15262
15235
|
for (const { data: mediaData, fileName } of file.media.array) files[`word/media/${fileName}`] = mediaData instanceof Uint8Array ? mediaData : new Uint8Array(mediaData);
|
|
15263
15236
|
return await zipAndConvert(files, outputType, OoxmlMimeType.DOCX);
|
|
@@ -18052,7 +18025,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
18052
18025
|
PositionalTabAlignment: () => PositionalTabAlignment,
|
|
18053
18026
|
PositionalTabLeader: () => PositionalTabLeader,
|
|
18054
18027
|
PositionalTabRelativeTo: () => PositionalTabRelativeTo,
|
|
18055
|
-
PrettifyType: () => PrettifyType,
|
|
18056
18028
|
RelativeHorizontalPosition: () => RelativeHorizontalPosition,
|
|
18057
18029
|
RelativeVerticalPosition: () => RelativeVerticalPosition,
|
|
18058
18030
|
RubyAlign: () => RubyAlign,
|
|
@@ -18278,6 +18250,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
18278
18250
|
__reExport(src_exports, file_exports);
|
|
18279
18251
|
__reExport(src_exports, util_exports);
|
|
18280
18252
|
//#endregion
|
|
18281
|
-
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CharacterSet, ChartCollection, ChartRun, ChartSpace, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, File, DocumentAttributeNamespaces, DocumentBackground, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, Endnotes, ExternalHyperlink, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathBorderBox, MathBox, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathFraction, MathFunction, MathFunctionName, MathGroupChr, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathMatrix, MathNumerator, MathParagraph, MathPhant, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo,
|
|
18253
|
+
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CharacterSet, ChartCollection, ChartRun, ChartSpace, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, File, DocumentAttributeNamespaces, DocumentBackground, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, Endnotes, ExternalHyperlink, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathBorderBox, MathBox, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathFraction, MathFunction, MathFunctionName, MathGroupChr, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathMatrix, MathNumerator, MathParagraph, MathPhant, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, STYLE_CATEGORIES, SdtDateMappingType, SdtLock, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtRun, SoftHyphen, SpaceType, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, attrObj, bookmarkUniqueNumericIdGen, buildBorderObj, buildCellMergeObj, buildCnfStyleObj, buildDeletedTableCellObj, buildDeletedTableRowObj, buildDivIdObj, buildDocumentAttributes, buildEmphasisMarkObj, buildFramePropertiesObj, buildGridSpan, buildIndentObj, buildInsertedTableCellObj, buildInsertedTableRowObj, buildNumberProperties, buildOutlineLevelObj, buildParagraphBorders, buildParagraphProperties, buildRunFontsObj, buildRunProperties, buildShadingObj, buildSpacingObj, buildTabStopObj, buildTableBorders, buildTableCellBorders, buildTableFloatPropertiesObj, buildTableProperties, buildTableRowProperties, buildTableRowPropertiesChangeObj, buildTableWidthObj, buildTextDirection, buildThematicBreakObj, buildUnderlineObj, buildVerticalMerge, chartAttr, coerceMathJson, coerceSectionChild, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, hpsMeasureObj, numberValObj, onOffObj, parseArchive, parseDocument, parseDocx, parseMathChildren, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, stringContainerObj, stringEnumValObj, stringValObj, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
|
|
18282
18254
|
|
|
18283
|
-
//# sourceMappingURL=index.
|
|
18255
|
+
//# sourceMappingURL=index.js.map
|