@office-open/docx 0.6.6 → 0.6.8
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 +12 -12
- package/dist/{index.d.ts → index.d.mts} +10 -69
- package/dist/index.d.mts.map +1 -0
- package/dist/{index.js → index.mjs} +601 -864
- package/dist/index.mjs.map +1 -0
- package/package.json +7 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- /package/dist/{chunk-DJOrGtkp.js → chunk-090QGkrx.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
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,
|
|
1
|
+
import { i as __toCommonJS, n as __exportAll, r as __reExport, t as __esmMin } from "./chunk-090QGkrx.mjs";
|
|
2
|
+
import { AppProperties, BaseXmlComponent, BuilderElement, BuilderElement as BuilderElement$1, DOCX_NS, EMPTY_OBJECT, EmptyElement, Formatter, Formatter as Formatter$1, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, OoxmlMimeType, RawPassthrough, Relationships, TargetModeType, 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
3
|
import { attr, attrBool, attrNum, children, colorAttr, findChild, findDeep, js2xml, textOf, xml, xml2js } from "@office-open/xml";
|
|
4
4
|
import { toUint8Array } from "undio";
|
|
5
5
|
import { PresetGeometry, buildFill, createBlipFill, createCustomGeometry, createEffectDag, createEffectList, createOutline, createScene3D, createShape3D, createTransform2D, extractBlipFillMedia } from "@office-open/core/drawingml";
|
|
@@ -8,47 +8,7 @@ import { COLOR_CATEGORIES, DEFAULT_DRAWING_XML, LAYOUT_CATEGORIES, STYLE_CATEGOR
|
|
|
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(() => {});
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/file/xml-components/attributes.ts
|
|
14
|
-
/**
|
|
15
|
-
* Common XML attributes module for WordprocessingML elements.
|
|
16
|
-
*
|
|
17
|
-
* This module provides a reusable Attributes class with commonly used
|
|
18
|
-
* WordprocessingML attribute mappings.
|
|
19
|
-
*
|
|
20
|
-
* @module
|
|
21
|
-
*/
|
|
22
|
-
var Attributes;
|
|
23
|
-
var init_attributes = __esmMin(() => {
|
|
24
|
-
Attributes = class extends XmlAttributeComponent$1 {
|
|
25
|
-
xmlKeys = {
|
|
26
|
-
bottom: "w:bottom",
|
|
27
|
-
color: "w:color",
|
|
28
|
-
fill: "w:fill",
|
|
29
|
-
footer: "w:footer",
|
|
30
|
-
gutter: "w:gutter",
|
|
31
|
-
h: "w:h",
|
|
32
|
-
header: "w:header",
|
|
33
|
-
left: "w:left",
|
|
34
|
-
linePitch: "w:linePitch",
|
|
35
|
-
pos: "w:pos",
|
|
36
|
-
right: "w:right",
|
|
37
|
-
rsidR: "w:rsidR",
|
|
38
|
-
rsidRPr: "w:rsidRPr",
|
|
39
|
-
rsidSect: "w:rsidSect",
|
|
40
|
-
space: "w:space",
|
|
41
|
-
sz: "w:sz",
|
|
42
|
-
themeColor: "w:themeColor",
|
|
43
|
-
themeShade: "w:themeShade",
|
|
44
|
-
themeTint: "w:themeTint",
|
|
45
|
-
top: "w:top",
|
|
46
|
-
type: "w:type",
|
|
47
|
-
val: "w:val",
|
|
48
|
-
w: "w:w"
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
});
|
|
11
|
+
var init_base = __esmMin((() => {}));
|
|
52
12
|
//#endregion
|
|
53
13
|
//#region src/file/xml-components/simple-elements.ts
|
|
54
14
|
/**
|
|
@@ -57,7 +17,7 @@ var init_attributes = __esmMin(() => {
|
|
|
57
17
|
* @module
|
|
58
18
|
*/
|
|
59
19
|
var createStringElement;
|
|
60
|
-
var init_simple_elements = __esmMin(() => {
|
|
20
|
+
var init_simple_elements = __esmMin((() => {
|
|
61
21
|
createStringElement = (name, value) => new BuilderElement$1({
|
|
62
22
|
attributes: { value: {
|
|
63
23
|
key: "w:val",
|
|
@@ -65,18 +25,17 @@ var init_simple_elements = __esmMin(() => {
|
|
|
65
25
|
} },
|
|
66
26
|
name
|
|
67
27
|
});
|
|
68
|
-
});
|
|
28
|
+
}));
|
|
69
29
|
//#endregion
|
|
70
30
|
//#region src/file/xml-components/index.ts
|
|
71
|
-
var init_xml_components = __esmMin(() => {
|
|
31
|
+
var init_xml_components = __esmMin((() => {
|
|
72
32
|
init_base();
|
|
73
|
-
init_attributes();
|
|
74
33
|
init_simple_elements();
|
|
75
|
-
});
|
|
34
|
+
}));
|
|
76
35
|
//#endregion
|
|
77
36
|
//#region src/file/paragraph/formatting/alignment.ts
|
|
78
37
|
var AlignmentType, createAlignment;
|
|
79
|
-
var init_alignment$1 = __esmMin(() => {
|
|
38
|
+
var init_alignment$1 = __esmMin((() => {
|
|
80
39
|
init_xml_components();
|
|
81
40
|
AlignmentType = {
|
|
82
41
|
/** Align Start */
|
|
@@ -113,17 +72,17 @@ var init_alignment$1 = __esmMin(() => {
|
|
|
113
72
|
} },
|
|
114
73
|
name: "w:jc"
|
|
115
74
|
});
|
|
116
|
-
});
|
|
75
|
+
}));
|
|
117
76
|
//#endregion
|
|
118
77
|
//#region src/util/values.ts
|
|
119
78
|
var values_exports = /* @__PURE__ */ __exportAll({});
|
|
120
79
|
import * as import__office_open_core_values from "@office-open/core/values";
|
|
121
80
|
__reExport(values_exports, import__office_open_core_values);
|
|
122
|
-
var init_values = __esmMin(() => {});
|
|
81
|
+
var init_values = __esmMin((() => {}));
|
|
123
82
|
//#endregion
|
|
124
83
|
//#region src/file/border/border.ts
|
|
125
84
|
var buildBorderObj, createBorderElement, BorderStyle;
|
|
126
|
-
var init_border$2 = __esmMin(() => {
|
|
85
|
+
var init_border$2 = __esmMin((() => {
|
|
127
86
|
init_xml_components();
|
|
128
87
|
init_values();
|
|
129
88
|
buildBorderObj = (elementName, { color, size, space, style, themeColor, themeTint, themeShade, shadow, frame }) => {
|
|
@@ -236,12 +195,12 @@ var init_border$2 = __esmMin(() => {
|
|
|
236
195
|
/** A wavy line */
|
|
237
196
|
WAVE: "wave"
|
|
238
197
|
};
|
|
239
|
-
});
|
|
198
|
+
}));
|
|
240
199
|
//#endregion
|
|
241
200
|
//#region src/file/border/index.ts
|
|
242
|
-
var init_border$1 = __esmMin(() => {
|
|
201
|
+
var init_border$1 = __esmMin((() => {
|
|
243
202
|
init_border$2();
|
|
244
|
-
});
|
|
203
|
+
}));
|
|
245
204
|
//#endregion
|
|
246
205
|
//#region src/file/paragraph/formatting/border.ts
|
|
247
206
|
/**
|
|
@@ -268,7 +227,7 @@ function buildThematicBreakObj() {
|
|
|
268
227
|
})] };
|
|
269
228
|
}
|
|
270
229
|
var Border, ThematicBreak;
|
|
271
|
-
var init_border = __esmMin(() => {
|
|
230
|
+
var init_border = __esmMin((() => {
|
|
272
231
|
init_border$1();
|
|
273
232
|
init_xml_components();
|
|
274
233
|
Border = class extends IgnoreIfEmptyXmlComponent {
|
|
@@ -293,11 +252,11 @@ var init_border = __esmMin(() => {
|
|
|
293
252
|
this.root.push(bottom);
|
|
294
253
|
}
|
|
295
254
|
};
|
|
296
|
-
});
|
|
255
|
+
}));
|
|
297
256
|
//#endregion
|
|
298
257
|
//#region src/file/paragraph/formatting/cnf-style.ts
|
|
299
258
|
var createCnfStyle, buildCnfStyleObj;
|
|
300
|
-
var init_cnf_style = __esmMin(() => {
|
|
259
|
+
var init_cnf_style = __esmMin((() => {
|
|
301
260
|
init_xml_components();
|
|
302
261
|
createCnfStyle = (options) => {
|
|
303
262
|
const attributes = {};
|
|
@@ -368,11 +327,11 @@ var init_cnf_style = __esmMin(() => {
|
|
|
368
327
|
"w:lastRowFirstColumn": options.lastRowFirstColumn !== void 0 ? options.lastRowFirstColumn ? "1" : "0" : void 0,
|
|
369
328
|
"w:lastRowLastColumn": options.lastRowLastColumn !== void 0 ? options.lastRowLastColumn ? "1" : "0" : void 0
|
|
370
329
|
});
|
|
371
|
-
});
|
|
330
|
+
}));
|
|
372
331
|
//#endregion
|
|
373
332
|
//#region src/file/paragraph/formatting/indent.ts
|
|
374
333
|
var createIndent, buildIndentObj;
|
|
375
|
-
var init_indent = __esmMin(() => {
|
|
334
|
+
var init_indent = __esmMin((() => {
|
|
376
335
|
init_xml_components();
|
|
377
336
|
init_values();
|
|
378
337
|
createIndent = ({ start, startChars, end, endChars, left, leftChars, right, rightChars, hanging, hangingChars, firstLine, firstLineChars }) => new BuilderElement({
|
|
@@ -442,11 +401,11 @@ var init_indent = __esmMin(() => {
|
|
|
442
401
|
"w:firstLine": firstLine !== void 0 ? (0, values_exports.twipsMeasureValue)(firstLine) : void 0,
|
|
443
402
|
"w:firstLineChars": firstLineChars !== void 0 ? (0, values_exports.decimalNumber)(firstLineChars) : void 0
|
|
444
403
|
});
|
|
445
|
-
});
|
|
404
|
+
}));
|
|
446
405
|
//#endregion
|
|
447
406
|
//#region src/file/paragraph/run/break.ts
|
|
448
407
|
var createBreak;
|
|
449
|
-
var init_break$1 = __esmMin(() => {
|
|
408
|
+
var init_break$1 = __esmMin((() => {
|
|
450
409
|
init_xml_components();
|
|
451
410
|
createBreak = (options) => new BuilderElement({
|
|
452
411
|
name: "w:br",
|
|
@@ -455,11 +414,11 @@ var init_break$1 = __esmMin(() => {
|
|
|
455
414
|
value: options.clear
|
|
456
415
|
}] : void 0
|
|
457
416
|
});
|
|
458
|
-
});
|
|
417
|
+
}));
|
|
459
418
|
//#endregion
|
|
460
419
|
//#region src/file/paragraph/run/form-field.ts
|
|
461
420
|
var FormFieldTextType, createFormFieldText, createCheckBox, createDropDownList, createTextInput, createFormFieldData;
|
|
462
|
-
var init_form_field = __esmMin(() => {
|
|
421
|
+
var init_form_field = __esmMin((() => {
|
|
463
422
|
init_xml_components();
|
|
464
423
|
FormFieldTextType = {
|
|
465
424
|
/** Regular text input */
|
|
@@ -617,11 +576,11 @@ var init_form_field = __esmMin(() => {
|
|
|
617
576
|
name: "w:ffData"
|
|
618
577
|
});
|
|
619
578
|
};
|
|
620
|
-
});
|
|
579
|
+
}));
|
|
621
580
|
//#endregion
|
|
622
581
|
//#region src/file/paragraph/run/field.ts
|
|
623
582
|
var FieldCharacterType, createFieldChar, createBegin, createSeparate, createEnd;
|
|
624
|
-
var init_field = __esmMin(() => {
|
|
583
|
+
var init_field = __esmMin((() => {
|
|
625
584
|
init_xml_components();
|
|
626
585
|
init_form_field();
|
|
627
586
|
FieldCharacterType = {
|
|
@@ -650,7 +609,7 @@ var init_field = __esmMin(() => {
|
|
|
650
609
|
createBegin = (dirty, formField) => createFieldChar(FieldCharacterType.BEGIN, dirty, formField ? createFormFieldData(formField) : void 0);
|
|
651
610
|
createSeparate = (dirty) => createFieldChar(FieldCharacterType.SEPARATE, dirty);
|
|
652
611
|
createEnd = (dirty) => createFieldChar(FieldCharacterType.END, dirty);
|
|
653
|
-
});
|
|
612
|
+
}));
|
|
654
613
|
//#endregion
|
|
655
614
|
//#region src/file/paragraph/run/page-number.ts
|
|
656
615
|
/**
|
|
@@ -662,17 +621,17 @@ function buildInstrText(instruction) {
|
|
|
662
621
|
return { "w:instrText": [INSTR_TEXT_ATTRS, instruction] };
|
|
663
622
|
}
|
|
664
623
|
var INSTR_TEXT_ATTRS, buildPage, buildNumberOfPages, buildNumberOfPagesSection, buildCurrentSection;
|
|
665
|
-
var init_page_number = __esmMin(() => {
|
|
624
|
+
var init_page_number = __esmMin((() => {
|
|
666
625
|
INSTR_TEXT_ATTRS = { _attr: { "xml:space": "preserve" } };
|
|
667
626
|
buildPage = () => buildInstrText("PAGE");
|
|
668
627
|
buildNumberOfPages = () => buildInstrText("NUMPAGES");
|
|
669
628
|
buildNumberOfPagesSection = () => buildInstrText("SECTIONPAGES");
|
|
670
629
|
buildCurrentSection = () => buildInstrText("SECTION");
|
|
671
|
-
});
|
|
630
|
+
}));
|
|
672
631
|
//#endregion
|
|
673
632
|
//#region src/file/shading/shading.ts
|
|
674
633
|
var createShading, buildShadingObj, ShadingType;
|
|
675
|
-
var init_shading$1 = __esmMin(() => {
|
|
634
|
+
var init_shading$1 = __esmMin((() => {
|
|
676
635
|
init_xml_components();
|
|
677
636
|
init_values();
|
|
678
637
|
createShading = ({ fill, color, type, themeColor, themeTint, themeShade, themeFill, themeFillTint, themeFillShade }) => new BuilderElement({
|
|
@@ -767,16 +726,16 @@ var init_shading$1 = __esmMin(() => {
|
|
|
767
726
|
THIN_VERTICAL_STRIPE: "thinVertStripe",
|
|
768
727
|
VERTICAL_STRIPE: "vertStripe"
|
|
769
728
|
};
|
|
770
|
-
});
|
|
729
|
+
}));
|
|
771
730
|
//#endregion
|
|
772
731
|
//#region src/file/shading/index.ts
|
|
773
|
-
var init_shading = __esmMin(() => {
|
|
732
|
+
var init_shading = __esmMin((() => {
|
|
774
733
|
init_shading$1();
|
|
775
|
-
});
|
|
734
|
+
}));
|
|
776
735
|
//#endregion
|
|
777
736
|
//#region src/file/track-revision/track-revision-components/deletion-track-change.ts
|
|
778
737
|
var DeletionTrackChange;
|
|
779
|
-
var init_deletion_track_change = __esmMin(() => {
|
|
738
|
+
var init_deletion_track_change = __esmMin((() => {
|
|
780
739
|
init_xml_components();
|
|
781
740
|
DeletionTrackChange = class extends XmlComponent {
|
|
782
741
|
constructor(options) {
|
|
@@ -788,11 +747,11 @@ var init_deletion_track_change = __esmMin(() => {
|
|
|
788
747
|
} });
|
|
789
748
|
}
|
|
790
749
|
};
|
|
791
|
-
});
|
|
750
|
+
}));
|
|
792
751
|
//#endregion
|
|
793
752
|
//#region src/file/track-revision/track-revision-components/insertion-track-change.ts
|
|
794
753
|
var InsertionTrackChange;
|
|
795
|
-
var init_insertion_track_change = __esmMin(() => {
|
|
754
|
+
var init_insertion_track_change = __esmMin((() => {
|
|
796
755
|
init_xml_components();
|
|
797
756
|
InsertionTrackChange = class extends XmlComponent {
|
|
798
757
|
constructor(options) {
|
|
@@ -804,11 +763,11 @@ var init_insertion_track_change = __esmMin(() => {
|
|
|
804
763
|
} });
|
|
805
764
|
}
|
|
806
765
|
};
|
|
807
|
-
});
|
|
766
|
+
}));
|
|
808
767
|
//#endregion
|
|
809
768
|
//#region src/file/paragraph/run/east-asian-layout.ts
|
|
810
769
|
var buildEastAsianLayoutObj;
|
|
811
|
-
var init_east_asian_layout = __esmMin(() => {
|
|
770
|
+
var init_east_asian_layout = __esmMin((() => {
|
|
812
771
|
init_xml_components();
|
|
813
772
|
init_values();
|
|
814
773
|
buildEastAsianLayoutObj = ({ id, combine, combineBrackets, vert, vertCompress }) => attrObj("w:eastAsianLayout", {
|
|
@@ -818,11 +777,11 @@ var init_east_asian_layout = __esmMin(() => {
|
|
|
818
777
|
"w:vert": vert,
|
|
819
778
|
"w:vertCompress": vertCompress
|
|
820
779
|
});
|
|
821
|
-
});
|
|
780
|
+
}));
|
|
822
781
|
//#endregion
|
|
823
782
|
//#region src/file/paragraph/run/emphasis-mark.ts
|
|
824
783
|
var EmphasisMarkType, createEmphasisMark, createDotEmphasisMark, buildEmphasisMarkObj;
|
|
825
|
-
var init_emphasis_mark = __esmMin(() => {
|
|
784
|
+
var init_emphasis_mark = __esmMin((() => {
|
|
826
785
|
init_xml_components();
|
|
827
786
|
EmphasisMarkType = {
|
|
828
787
|
/** No emphasis mark */
|
|
@@ -845,11 +804,11 @@ var init_emphasis_mark = __esmMin(() => {
|
|
|
845
804
|
});
|
|
846
805
|
createDotEmphasisMark = () => createEmphasisMark(EmphasisMarkType.DOT);
|
|
847
806
|
buildEmphasisMarkObj = (emphasisMarkType = EmphasisMarkType.DOT) => attrObj("w:em", { "w:val": emphasisMarkType });
|
|
848
|
-
});
|
|
807
|
+
}));
|
|
849
808
|
//#endregion
|
|
850
809
|
//#region src/file/paragraph/run/formatting.ts
|
|
851
810
|
var buildCharacterSpacingObj, buildColorObj, buildHighlightObj, buildHighlightComplexScriptObj;
|
|
852
|
-
var init_formatting$1 = __esmMin(() => {
|
|
811
|
+
var init_formatting$1 = __esmMin((() => {
|
|
853
812
|
init_xml_components();
|
|
854
813
|
init_values();
|
|
855
814
|
buildCharacterSpacingObj = (value) => attrObj("w:spacing", { "w:val": (0, values_exports.signedTwipsMeasureValue)(value) });
|
|
@@ -865,22 +824,22 @@ var init_formatting$1 = __esmMin(() => {
|
|
|
865
824
|
};
|
|
866
825
|
buildHighlightObj = (color) => attrObj("w:highlight", { "w:val": color });
|
|
867
826
|
buildHighlightComplexScriptObj = (color) => attrObj("w:highlightCs", { "w:val": color });
|
|
868
|
-
});
|
|
827
|
+
}));
|
|
869
828
|
//#endregion
|
|
870
829
|
//#region src/file/paragraph/run/language.ts
|
|
871
830
|
var buildLanguageObj;
|
|
872
|
-
var init_language = __esmMin(() => {
|
|
831
|
+
var init_language = __esmMin((() => {
|
|
873
832
|
init_xml_components();
|
|
874
833
|
buildLanguageObj = (options) => attrObj("w:lang", {
|
|
875
834
|
"w:bidi": options.bidirectional,
|
|
876
835
|
"w:eastAsia": options.eastAsia,
|
|
877
836
|
"w:val": options.value
|
|
878
837
|
});
|
|
879
|
-
});
|
|
838
|
+
}));
|
|
880
839
|
//#endregion
|
|
881
840
|
//#region src/file/paragraph/run/run-fonts.ts
|
|
882
841
|
var createRunFonts, buildRunFontsObj;
|
|
883
|
-
var init_run_fonts = __esmMin(() => {
|
|
842
|
+
var init_run_fonts = __esmMin((() => {
|
|
884
843
|
init_xml_components();
|
|
885
844
|
createRunFonts = (nameOrAttrs, hint) => {
|
|
886
845
|
if (typeof nameOrAttrs === "string") {
|
|
@@ -978,11 +937,11 @@ var init_run_fonts = __esmMin(() => {
|
|
|
978
937
|
"w:hint": attrs.hint
|
|
979
938
|
});
|
|
980
939
|
};
|
|
981
|
-
});
|
|
940
|
+
}));
|
|
982
941
|
//#endregion
|
|
983
942
|
//#region src/file/paragraph/run/underline.ts
|
|
984
943
|
var UnderlineType, createUnderline, buildUnderlineObj;
|
|
985
|
-
var init_underline = __esmMin(() => {
|
|
944
|
+
var init_underline = __esmMin((() => {
|
|
986
945
|
init_xml_components();
|
|
987
946
|
init_values();
|
|
988
947
|
UnderlineType = {
|
|
@@ -1055,7 +1014,7 @@ var init_underline = __esmMin(() => {
|
|
|
1055
1014
|
"w:themeTint": themeTint === void 0 ? void 0 : (0, values_exports.uCharHexNumber)(themeTint),
|
|
1056
1015
|
"w:val": underlineType
|
|
1057
1016
|
});
|
|
1058
|
-
});
|
|
1017
|
+
}));
|
|
1059
1018
|
//#endregion
|
|
1060
1019
|
//#region src/file/paragraph/run/properties.ts
|
|
1061
1020
|
/**
|
|
@@ -1126,7 +1085,7 @@ function buildRunProperties(options) {
|
|
|
1126
1085
|
return children.length > 0 ? { "w:rPr": children } : void 0;
|
|
1127
1086
|
}
|
|
1128
1087
|
var TextEffect, HighlightColor, RunProperties, ParagraphRunProperties, RunPropertiesChange;
|
|
1129
|
-
var init_properties$1 = __esmMin(() => {
|
|
1088
|
+
var init_properties$1 = __esmMin((() => {
|
|
1130
1089
|
init_border$1();
|
|
1131
1090
|
init_shading();
|
|
1132
1091
|
init_deletion_track_change();
|
|
@@ -1222,11 +1181,11 @@ var init_properties$1 = __esmMin(() => {
|
|
|
1222
1181
|
this.addChildElement(new RunProperties(options));
|
|
1223
1182
|
}
|
|
1224
1183
|
};
|
|
1225
|
-
});
|
|
1184
|
+
}));
|
|
1226
1185
|
//#endregion
|
|
1227
1186
|
//#region src/file/shared/alignment.ts
|
|
1228
1187
|
var HorizontalPositionAlign, VerticalPositionAlign;
|
|
1229
|
-
var init_alignment = __esmMin(() => {
|
|
1188
|
+
var init_alignment = __esmMin((() => {
|
|
1230
1189
|
HorizontalPositionAlign = {
|
|
1231
1190
|
/** Center horizontally */
|
|
1232
1191
|
CENTER: "center",
|
|
@@ -1251,11 +1210,11 @@ var init_alignment = __esmMin(() => {
|
|
|
1251
1210
|
/** Align to top */
|
|
1252
1211
|
TOP: "top"
|
|
1253
1212
|
};
|
|
1254
|
-
});
|
|
1213
|
+
}));
|
|
1255
1214
|
//#endregion
|
|
1256
1215
|
//#region src/file/shared/number-format.ts
|
|
1257
1216
|
var NumberFormat;
|
|
1258
|
-
var init_number_format = __esmMin(() => {
|
|
1217
|
+
var init_number_format = __esmMin((() => {
|
|
1259
1218
|
NumberFormat = {
|
|
1260
1219
|
AIUEO: "aiueo",
|
|
1261
1220
|
AIUEO_FULL_WIDTH: "aiueoFullWidth",
|
|
@@ -1320,23 +1279,23 @@ var init_number_format = __esmMin(() => {
|
|
|
1320
1279
|
UPPER_ROMAN: "upperRoman",
|
|
1321
1280
|
VIETNAMESE_COUNTING: "vietnameseCounting"
|
|
1322
1281
|
};
|
|
1323
|
-
});
|
|
1282
|
+
}));
|
|
1324
1283
|
//#endregion
|
|
1325
1284
|
//#region src/file/shared/space-type.ts
|
|
1326
1285
|
var SpaceType;
|
|
1327
|
-
var init_space_type = __esmMin(() => {
|
|
1286
|
+
var init_space_type = __esmMin((() => {
|
|
1328
1287
|
SpaceType = {
|
|
1329
1288
|
DEFAULT: "default",
|
|
1330
1289
|
PRESERVE: "preserve"
|
|
1331
1290
|
};
|
|
1332
|
-
});
|
|
1291
|
+
}));
|
|
1333
1292
|
//#endregion
|
|
1334
1293
|
//#region src/file/shared/index.ts
|
|
1335
|
-
var init_shared = __esmMin(() => {
|
|
1294
|
+
var init_shared = __esmMin((() => {
|
|
1336
1295
|
init_alignment();
|
|
1337
1296
|
init_number_format();
|
|
1338
1297
|
init_space_type();
|
|
1339
|
-
});
|
|
1298
|
+
}));
|
|
1340
1299
|
//#endregion
|
|
1341
1300
|
//#region src/file/paragraph/run/run-components/text.ts
|
|
1342
1301
|
/**
|
|
@@ -1351,13 +1310,13 @@ function buildText(options) {
|
|
|
1351
1310
|
if (typeof options === "string") return { "w:t": [{ _attr: { "xml:space": SpaceType.PRESERVE } }, options] };
|
|
1352
1311
|
return { "w:t": [{ _attr: { "xml:space": options.space ?? SpaceType.DEFAULT } }, options.text ?? ""] };
|
|
1353
1312
|
}
|
|
1354
|
-
var init_text = __esmMin(() => {
|
|
1313
|
+
var init_text = __esmMin((() => {
|
|
1355
1314
|
init_shared();
|
|
1356
|
-
});
|
|
1315
|
+
}));
|
|
1357
1316
|
//#endregion
|
|
1358
1317
|
//#region src/file/paragraph/run/run.ts
|
|
1359
1318
|
var PageNumber, Run;
|
|
1360
|
-
var init_run$1 = __esmMin(() => {
|
|
1319
|
+
var init_run$1 = __esmMin((() => {
|
|
1361
1320
|
init_xml_components();
|
|
1362
1321
|
init_break$1();
|
|
1363
1322
|
init_field();
|
|
@@ -1452,18 +1411,18 @@ var init_run$1 = __esmMin(() => {
|
|
|
1452
1411
|
return obj ? xml(obj) : "";
|
|
1453
1412
|
}
|
|
1454
1413
|
};
|
|
1455
|
-
});
|
|
1414
|
+
}));
|
|
1456
1415
|
//#endregion
|
|
1457
1416
|
//#region src/file/paragraph/run/text-run.ts
|
|
1458
1417
|
var TextRun;
|
|
1459
|
-
var init_text_run = __esmMin(() => {
|
|
1418
|
+
var init_text_run = __esmMin((() => {
|
|
1460
1419
|
init_run$1();
|
|
1461
1420
|
TextRun = class extends Run {
|
|
1462
1421
|
constructor(options) {
|
|
1463
1422
|
super(typeof options === "string" ? { text: options } : options);
|
|
1464
1423
|
}
|
|
1465
1424
|
};
|
|
1466
|
-
});
|
|
1425
|
+
}));
|
|
1467
1426
|
//#endregion
|
|
1468
1427
|
//#region src/file/paragraph/run/run-components/symbol.ts
|
|
1469
1428
|
/**
|
|
@@ -1481,11 +1440,11 @@ function buildSymbol(char = "", symbolfont = "Wingdings") {
|
|
|
1481
1440
|
"w:font": symbolfont
|
|
1482
1441
|
} } };
|
|
1483
1442
|
}
|
|
1484
|
-
var init_symbol = __esmMin(() => {});
|
|
1443
|
+
var init_symbol = __esmMin((() => {}));
|
|
1485
1444
|
//#endregion
|
|
1486
1445
|
//#region src/file/paragraph/run/symbol-run.ts
|
|
1487
1446
|
var SymbolRun;
|
|
1488
|
-
var init_symbol_run = __esmMin(() => {
|
|
1447
|
+
var init_symbol_run = __esmMin((() => {
|
|
1489
1448
|
init_run$1();
|
|
1490
1449
|
init_symbol();
|
|
1491
1450
|
SymbolRun = class extends Run {
|
|
@@ -1499,20 +1458,20 @@ var init_symbol_run = __esmMin(() => {
|
|
|
1499
1458
|
this.extraChildren.push(buildSymbol(options.char, options.symbolfont));
|
|
1500
1459
|
}
|
|
1501
1460
|
};
|
|
1502
|
-
});
|
|
1461
|
+
}));
|
|
1503
1462
|
//#endregion
|
|
1504
1463
|
//#region src/util/convenience-functions.ts
|
|
1505
1464
|
var abstractNumUniqueNumericIdGen, concreteNumUniqueNumericIdGen, docPropertiesUniqueNumericIdGen, bookmarkUniqueNumericIdGen;
|
|
1506
|
-
var init_convenience_functions = __esmMin(() => {
|
|
1465
|
+
var init_convenience_functions = __esmMin((() => {
|
|
1507
1466
|
abstractNumUniqueNumericIdGen = () => uniqueNumericIdCreator$1();
|
|
1508
1467
|
concreteNumUniqueNumericIdGen = () => uniqueNumericIdCreator$1(1);
|
|
1509
1468
|
docPropertiesUniqueNumericIdGen = () => uniqueNumericIdCreator$1();
|
|
1510
1469
|
bookmarkUniqueNumericIdGen = () => uniqueNumericIdCreator$1();
|
|
1511
|
-
});
|
|
1470
|
+
}));
|
|
1512
1471
|
//#endregion
|
|
1513
1472
|
//#region src/file/drawing/floating/floating-position.ts
|
|
1514
1473
|
var HorizontalPositionRelativeFrom, VerticalPositionRelativeFrom;
|
|
1515
|
-
var init_floating_position = __esmMin(() => {
|
|
1474
|
+
var init_floating_position = __esmMin((() => {
|
|
1516
1475
|
init_alignment();
|
|
1517
1476
|
HorizontalPositionRelativeFrom = {
|
|
1518
1477
|
/**
|
|
@@ -1614,11 +1573,11 @@ var init_floating_position = __esmMin(() => {
|
|
|
1614
1573
|
*/
|
|
1615
1574
|
TOP_MARGIN: "topMargin"
|
|
1616
1575
|
};
|
|
1617
|
-
});
|
|
1576
|
+
}));
|
|
1618
1577
|
//#endregion
|
|
1619
1578
|
//#region src/file/drawing/floating/simple-pos.ts
|
|
1620
1579
|
var createSimplePos;
|
|
1621
|
-
var init_simple_pos = __esmMin(() => {
|
|
1580
|
+
var init_simple_pos = __esmMin((() => {
|
|
1622
1581
|
init_xml_components();
|
|
1623
1582
|
createSimplePos = () => new BuilderElement({
|
|
1624
1583
|
name: "wp:simplePos",
|
|
@@ -1633,31 +1592,31 @@ var init_simple_pos = __esmMin(() => {
|
|
|
1633
1592
|
}
|
|
1634
1593
|
}
|
|
1635
1594
|
});
|
|
1636
|
-
});
|
|
1595
|
+
}));
|
|
1637
1596
|
//#endregion
|
|
1638
1597
|
//#region src/file/drawing/floating/align.ts
|
|
1639
1598
|
var createAlign;
|
|
1640
|
-
var init_align = __esmMin(() => {
|
|
1599
|
+
var init_align = __esmMin((() => {
|
|
1641
1600
|
init_xml_components();
|
|
1642
1601
|
createAlign = (value) => new BuilderElement({
|
|
1643
1602
|
children: [value],
|
|
1644
1603
|
name: "wp:align"
|
|
1645
1604
|
});
|
|
1646
|
-
});
|
|
1605
|
+
}));
|
|
1647
1606
|
//#endregion
|
|
1648
1607
|
//#region src/file/drawing/floating/position-offset.ts
|
|
1649
1608
|
var createPositionOffset;
|
|
1650
|
-
var init_position_offset = __esmMin(() => {
|
|
1609
|
+
var init_position_offset = __esmMin((() => {
|
|
1651
1610
|
init_xml_components();
|
|
1652
1611
|
createPositionOffset = (offsetValue) => new BuilderElement({
|
|
1653
1612
|
children: [offsetValue.toString()],
|
|
1654
1613
|
name: "wp:posOffset"
|
|
1655
1614
|
});
|
|
1656
|
-
});
|
|
1615
|
+
}));
|
|
1657
1616
|
//#endregion
|
|
1658
1617
|
//#region src/file/drawing/floating/horizontal-position.ts
|
|
1659
1618
|
var createHorizontalPosition;
|
|
1660
|
-
var init_horizontal_position = __esmMin(() => {
|
|
1619
|
+
var init_horizontal_position = __esmMin((() => {
|
|
1661
1620
|
init_xml_components();
|
|
1662
1621
|
init_align();
|
|
1663
1622
|
init_floating_position();
|
|
@@ -1674,11 +1633,11 @@ var init_horizontal_position = __esmMin(() => {
|
|
|
1674
1633
|
})()],
|
|
1675
1634
|
name: "wp:positionH"
|
|
1676
1635
|
});
|
|
1677
|
-
});
|
|
1636
|
+
}));
|
|
1678
1637
|
//#endregion
|
|
1679
1638
|
//#region src/file/drawing/floating/vertical-position.ts
|
|
1680
1639
|
var createVerticalPosition;
|
|
1681
|
-
var init_vertical_position = __esmMin(() => {
|
|
1640
|
+
var init_vertical_position = __esmMin((() => {
|
|
1682
1641
|
init_xml_components();
|
|
1683
1642
|
init_align();
|
|
1684
1643
|
init_floating_position();
|
|
@@ -1695,40 +1654,40 @@ var init_vertical_position = __esmMin(() => {
|
|
|
1695
1654
|
})()],
|
|
1696
1655
|
name: "wp:positionV"
|
|
1697
1656
|
});
|
|
1698
|
-
});
|
|
1657
|
+
}));
|
|
1699
1658
|
//#endregion
|
|
1700
1659
|
//#region src/file/drawing/floating/index.ts
|
|
1701
|
-
var init_floating = __esmMin(() => {
|
|
1660
|
+
var init_floating = __esmMin((() => {
|
|
1702
1661
|
init_floating_position();
|
|
1703
1662
|
init_simple_pos();
|
|
1704
1663
|
init_horizontal_position();
|
|
1705
1664
|
init_vertical_position();
|
|
1706
|
-
});
|
|
1665
|
+
}));
|
|
1707
1666
|
//#endregion
|
|
1708
1667
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/custom-geometry/custom-geometry.ts
|
|
1709
|
-
var init_custom_geometry = __esmMin(() => {});
|
|
1668
|
+
var init_custom_geometry = __esmMin((() => {}));
|
|
1710
1669
|
//#endregion
|
|
1711
1670
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-dag.ts
|
|
1712
|
-
var init_effect_dag = __esmMin(() => {});
|
|
1671
|
+
var init_effect_dag = __esmMin((() => {}));
|
|
1713
1672
|
//#endregion
|
|
1714
1673
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-list.ts
|
|
1715
|
-
var init_effect_list = __esmMin(() => {});
|
|
1674
|
+
var init_effect_list = __esmMin((() => {}));
|
|
1716
1675
|
//#endregion
|
|
1717
1676
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.ts
|
|
1718
|
-
var init_outline = __esmMin(() => {});
|
|
1677
|
+
var init_outline = __esmMin((() => {}));
|
|
1719
1678
|
//#endregion
|
|
1720
1679
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry.ts
|
|
1721
|
-
var init_preset_geometry = __esmMin(() => {});
|
|
1680
|
+
var init_preset_geometry = __esmMin((() => {}));
|
|
1722
1681
|
//#endregion
|
|
1723
1682
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/scene-3d.ts
|
|
1724
|
-
var init_scene_3d = __esmMin(() => {});
|
|
1683
|
+
var init_scene_3d = __esmMin((() => {}));
|
|
1725
1684
|
//#endregion
|
|
1726
1685
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/shape-3d.ts
|
|
1727
|
-
var init_shape_3d = __esmMin(() => {});
|
|
1686
|
+
var init_shape_3d = __esmMin((() => {}));
|
|
1728
1687
|
//#endregion
|
|
1729
1688
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.ts
|
|
1730
1689
|
var ShapeProperties;
|
|
1731
|
-
var init_shape_properties = __esmMin(() => {
|
|
1690
|
+
var init_shape_properties = __esmMin((() => {
|
|
1732
1691
|
init_xml_components();
|
|
1733
1692
|
init_custom_geometry();
|
|
1734
1693
|
init_effect_dag();
|
|
@@ -1761,7 +1720,7 @@ var init_shape_properties = __esmMin(() => {
|
|
|
1761
1720
|
if (scene3d) this.root.push(createScene3D(scene3d));
|
|
1762
1721
|
if (shape3d) this.root.push(createShape3D(shape3d));
|
|
1763
1722
|
}
|
|
1764
|
-
|
|
1723
|
+
toXml(context) {
|
|
1765
1724
|
const media = this.fillOptions ? extractBlipFillMedia(this.fillOptions) : void 0;
|
|
1766
1725
|
if (media) context.file.media.addImage(media.fileName, {
|
|
1767
1726
|
data: media.data,
|
|
@@ -1778,14 +1737,14 @@ var init_shape_properties = __esmMin(() => {
|
|
|
1778
1737
|
}
|
|
1779
1738
|
}
|
|
1780
1739
|
});
|
|
1781
|
-
return super.
|
|
1740
|
+
return super.toXml(context);
|
|
1782
1741
|
}
|
|
1783
1742
|
};
|
|
1784
|
-
});
|
|
1743
|
+
}));
|
|
1785
1744
|
//#endregion
|
|
1786
1745
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/body-properties.ts
|
|
1787
1746
|
var VerticalAnchor, TextVertOverflowType, TextHorzOverflowType, TextVerticalType, TextBodyWrappingType, buildOptionalAttributes, createPresetTextShape, createBodyProperties;
|
|
1788
|
-
var init_body_properties = __esmMin(() => {
|
|
1747
|
+
var init_body_properties = __esmMin((() => {
|
|
1789
1748
|
init_xml_components();
|
|
1790
1749
|
init_scene_3d();
|
|
1791
1750
|
init_shape_3d();
|
|
@@ -1909,11 +1868,11 @@ var init_body_properties = __esmMin(() => {
|
|
|
1909
1868
|
children: children.length > 0 ? children : void 0
|
|
1910
1869
|
});
|
|
1911
1870
|
};
|
|
1912
|
-
});
|
|
1871
|
+
}));
|
|
1913
1872
|
//#endregion
|
|
1914
1873
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.ts
|
|
1915
1874
|
var createNonVisualShapeProperties;
|
|
1916
|
-
var init_non_visual_shape_properties = __esmMin(() => {
|
|
1875
|
+
var init_non_visual_shape_properties = __esmMin((() => {
|
|
1917
1876
|
init_xml_components();
|
|
1918
1877
|
createNonVisualShapeProperties = (options = { txBox: "1" }) => new BuilderElement({
|
|
1919
1878
|
attributes: { txBox: {
|
|
@@ -1922,32 +1881,32 @@ var init_non_visual_shape_properties = __esmMin(() => {
|
|
|
1922
1881
|
} },
|
|
1923
1882
|
name: "wps:cNvSpPr"
|
|
1924
1883
|
});
|
|
1925
|
-
});
|
|
1884
|
+
}));
|
|
1926
1885
|
//#endregion
|
|
1927
1886
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/text-box-content.ts
|
|
1928
1887
|
var createTextBoxContent;
|
|
1929
|
-
var init_text_box_content = __esmMin(() => {
|
|
1888
|
+
var init_text_box_content = __esmMin((() => {
|
|
1930
1889
|
init_xml_components();
|
|
1931
1890
|
createTextBoxContent = (children) => new BuilderElement({
|
|
1932
1891
|
children: [...children],
|
|
1933
1892
|
name: "wps:txbxContent"
|
|
1934
1893
|
});
|
|
1935
|
-
});
|
|
1894
|
+
}));
|
|
1936
1895
|
//#endregion
|
|
1937
1896
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/wps-text-box.ts
|
|
1938
1897
|
var createWpsTextBox;
|
|
1939
|
-
var init_wps_text_box = __esmMin(() => {
|
|
1898
|
+
var init_wps_text_box = __esmMin((() => {
|
|
1940
1899
|
init_xml_components();
|
|
1941
1900
|
init_text_box_content();
|
|
1942
1901
|
createWpsTextBox = (children) => new BuilderElement({
|
|
1943
1902
|
children: [createTextBoxContent(children)],
|
|
1944
1903
|
name: "wps:txbx"
|
|
1945
1904
|
});
|
|
1946
|
-
});
|
|
1905
|
+
}));
|
|
1947
1906
|
//#endregion
|
|
1948
1907
|
//#region src/file/drawing/inline/graphic/graphic-data/wps/wps-shape.ts
|
|
1949
1908
|
var createWpsShape;
|
|
1950
|
-
var init_wps_shape = __esmMin(() => {
|
|
1909
|
+
var init_wps_shape = __esmMin((() => {
|
|
1951
1910
|
init_xml_components();
|
|
1952
1911
|
init_shape_properties();
|
|
1953
1912
|
init_body_properties();
|
|
@@ -1972,23 +1931,23 @@ var init_wps_shape = __esmMin(() => {
|
|
|
1972
1931
|
],
|
|
1973
1932
|
name: "wps:wsp"
|
|
1974
1933
|
});
|
|
1975
|
-
});
|
|
1934
|
+
}));
|
|
1976
1935
|
//#endregion
|
|
1977
1936
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.ts
|
|
1978
|
-
var init_blip_fill = __esmMin(() => {});
|
|
1937
|
+
var init_blip_fill = __esmMin((() => {}));
|
|
1979
1938
|
//#endregion
|
|
1980
1939
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/child-non-visual-pic-properties.ts
|
|
1981
1940
|
var buildChildNonVisualPropertiesObj;
|
|
1982
|
-
var init_child_non_visual_pic_properties = __esmMin(() => {
|
|
1941
|
+
var init_child_non_visual_pic_properties = __esmMin((() => {
|
|
1983
1942
|
buildChildNonVisualPropertiesObj = () => ({ "pic:cNvPicPr": [{ _attr: { preferRelativeResize: true } }, { "a:picLocks": { _attr: {
|
|
1984
1943
|
noChangeArrowheads: 1,
|
|
1985
1944
|
noChangeAspect: 1
|
|
1986
1945
|
} } }] });
|
|
1987
|
-
});
|
|
1946
|
+
}));
|
|
1988
1947
|
//#endregion
|
|
1989
1948
|
//#region src/file/drawing/doc-properties/doc-properties-children.ts
|
|
1990
1949
|
var buildHyperlinkClickObj, buildHyperlinkHoverObj;
|
|
1991
|
-
var init_doc_properties_children = __esmMin(() => {
|
|
1950
|
+
var init_doc_properties_children = __esmMin((() => {
|
|
1992
1951
|
buildHyperlinkClickObj = (linkId, hasXmlNs) => ({ "a:hlinkClick": { _attr: {
|
|
1993
1952
|
...hasXmlNs ? { "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main" } : {},
|
|
1994
1953
|
"r:id": `rId${linkId}`
|
|
@@ -1997,11 +1956,11 @@ var init_doc_properties_children = __esmMin(() => {
|
|
|
1997
1956
|
...hasXmlNs ? { "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main" } : {},
|
|
1998
1957
|
"r:id": `rId${linkId}`
|
|
1999
1958
|
} } });
|
|
2000
|
-
});
|
|
1959
|
+
}));
|
|
2001
1960
|
//#endregion
|
|
2002
1961
|
//#region src/file/paragraph/links/hyperlink.ts
|
|
2003
1962
|
var HyperlinkType, ConcreteHyperlink, InternalHyperlink, ExternalHyperlink;
|
|
2004
|
-
var init_hyperlink = __esmMin(() => {
|
|
1963
|
+
var init_hyperlink = __esmMin((() => {
|
|
2005
1964
|
init_xml_components();
|
|
2006
1965
|
init_convenience_functions();
|
|
2007
1966
|
HyperlinkType = {
|
|
@@ -2051,14 +2010,14 @@ var init_hyperlink = __esmMin(() => {
|
|
|
2051
2010
|
this.options = options;
|
|
2052
2011
|
}
|
|
2053
2012
|
};
|
|
2054
|
-
});
|
|
2013
|
+
}));
|
|
2055
2014
|
//#endregion
|
|
2056
2015
|
//#region src/file/relationships/relationship/relationship.ts
|
|
2057
|
-
var init_relationship = __esmMin(() => {});
|
|
2016
|
+
var init_relationship = __esmMin((() => {}));
|
|
2058
2017
|
//#endregion
|
|
2059
2018
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties.ts
|
|
2060
2019
|
var HYPERLINK_RELATIONSHIP_TYPE$1, NonVisualProperties;
|
|
2061
|
-
var init_non_visual_properties = __esmMin(() => {
|
|
2020
|
+
var init_non_visual_properties = __esmMin((() => {
|
|
2062
2021
|
init_doc_properties_children();
|
|
2063
2022
|
init_hyperlink();
|
|
2064
2023
|
init_relationship();
|
|
@@ -2076,7 +2035,8 @@ var init_non_visual_properties = __esmMin(() => {
|
|
|
2076
2035
|
descr: ""
|
|
2077
2036
|
} });
|
|
2078
2037
|
}
|
|
2079
|
-
|
|
2038
|
+
toXml(context) {
|
|
2039
|
+
const start = this.root.length;
|
|
2080
2040
|
let hasStackClick = false;
|
|
2081
2041
|
for (let i = context.stack.length - 1; i >= 0; i--) {
|
|
2082
2042
|
const element = context.stack[i];
|
|
@@ -2097,14 +2057,16 @@ var init_non_visual_properties = __esmMin(() => {
|
|
|
2097
2057
|
this.root.push(buildHyperlinkHoverObj(linkId, false));
|
|
2098
2058
|
}
|
|
2099
2059
|
}
|
|
2100
|
-
|
|
2060
|
+
const result = super.toXml(context);
|
|
2061
|
+
this.root.length = start;
|
|
2062
|
+
return result;
|
|
2101
2063
|
}
|
|
2102
2064
|
};
|
|
2103
|
-
});
|
|
2065
|
+
}));
|
|
2104
2066
|
//#endregion
|
|
2105
2067
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-pic-properties.ts
|
|
2106
2068
|
var NonVisualPicProperties;
|
|
2107
|
-
var init_non_visual_pic_properties = __esmMin(() => {
|
|
2069
|
+
var init_non_visual_pic_properties = __esmMin((() => {
|
|
2108
2070
|
init_xml_components();
|
|
2109
2071
|
init_child_non_visual_pic_properties();
|
|
2110
2072
|
init_non_visual_properties();
|
|
@@ -2115,11 +2077,11 @@ var init_non_visual_pic_properties = __esmMin(() => {
|
|
|
2115
2077
|
this.root.push(buildChildNonVisualPropertiesObj());
|
|
2116
2078
|
}
|
|
2117
2079
|
};
|
|
2118
|
-
});
|
|
2080
|
+
}));
|
|
2119
2081
|
//#endregion
|
|
2120
2082
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/pic.ts
|
|
2121
2083
|
var Pic;
|
|
2122
|
-
var init_pic$1 = __esmMin(() => {
|
|
2084
|
+
var init_pic$1 = __esmMin((() => {
|
|
2123
2085
|
init_xml_components();
|
|
2124
2086
|
init_blip_fill();
|
|
2125
2087
|
init_non_visual_pic_properties();
|
|
@@ -2148,16 +2110,16 @@ var init_pic$1 = __esmMin(() => {
|
|
|
2148
2110
|
}));
|
|
2149
2111
|
}
|
|
2150
2112
|
};
|
|
2151
|
-
});
|
|
2113
|
+
}));
|
|
2152
2114
|
//#endregion
|
|
2153
2115
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/index.ts
|
|
2154
|
-
var init_pic = __esmMin(() => {
|
|
2116
|
+
var init_pic = __esmMin((() => {
|
|
2155
2117
|
init_pic$1();
|
|
2156
|
-
});
|
|
2118
|
+
}));
|
|
2157
2119
|
//#endregion
|
|
2158
2120
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents.ts
|
|
2159
2121
|
var Extents;
|
|
2160
|
-
var init_extents = __esmMin(() => {
|
|
2122
|
+
var init_extents = __esmMin((() => {
|
|
2161
2123
|
init_xml_components();
|
|
2162
2124
|
Extents = class extends XmlComponent {
|
|
2163
2125
|
constructor(x, y) {
|
|
@@ -2168,11 +2130,11 @@ var init_extents = __esmMin(() => {
|
|
|
2168
2130
|
} });
|
|
2169
2131
|
}
|
|
2170
2132
|
};
|
|
2171
|
-
});
|
|
2133
|
+
}));
|
|
2172
2134
|
//#endregion
|
|
2173
2135
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.ts
|
|
2174
2136
|
var Offset;
|
|
2175
|
-
var init_off = __esmMin(() => {
|
|
2137
|
+
var init_off = __esmMin((() => {
|
|
2176
2138
|
init_xml_components();
|
|
2177
2139
|
Offset = class extends XmlComponent {
|
|
2178
2140
|
constructor(x, y) {
|
|
@@ -2183,11 +2145,11 @@ var init_off = __esmMin(() => {
|
|
|
2183
2145
|
} });
|
|
2184
2146
|
}
|
|
2185
2147
|
};
|
|
2186
|
-
});
|
|
2148
|
+
}));
|
|
2187
2149
|
//#endregion
|
|
2188
2150
|
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.ts
|
|
2189
2151
|
var createGroupForm, createGroupProperties, createNonVisualGroupProperties, createWpgGroup;
|
|
2190
|
-
var init_wpg_group = __esmMin(() => {
|
|
2152
|
+
var init_wpg_group = __esmMin((() => {
|
|
2191
2153
|
init_xml_components();
|
|
2192
2154
|
init_effect_list();
|
|
2193
2155
|
init_extents();
|
|
@@ -2257,11 +2219,11 @@ var init_wpg_group = __esmMin(() => {
|
|
|
2257
2219
|
],
|
|
2258
2220
|
name: "wpg:wgp"
|
|
2259
2221
|
});
|
|
2260
|
-
});
|
|
2222
|
+
}));
|
|
2261
2223
|
//#endregion
|
|
2262
2224
|
//#region src/file/drawing/inline/graphic/graphic-data/graphic-data.ts
|
|
2263
2225
|
var GraphicData;
|
|
2264
|
-
var init_graphic_data$1 = __esmMin(() => {
|
|
2226
|
+
var init_graphic_data$1 = __esmMin((() => {
|
|
2265
2227
|
init_wps_shape();
|
|
2266
2228
|
init_xml_components();
|
|
2267
2229
|
init_pic();
|
|
@@ -2349,16 +2311,16 @@ var init_graphic_data$1 = __esmMin(() => {
|
|
|
2349
2311
|
}
|
|
2350
2312
|
}
|
|
2351
2313
|
};
|
|
2352
|
-
});
|
|
2314
|
+
}));
|
|
2353
2315
|
//#endregion
|
|
2354
2316
|
//#region src/file/drawing/inline/graphic/graphic-data/index.ts
|
|
2355
|
-
var init_graphic_data = __esmMin(() => {
|
|
2317
|
+
var init_graphic_data = __esmMin((() => {
|
|
2356
2318
|
init_graphic_data$1();
|
|
2357
|
-
});
|
|
2319
|
+
}));
|
|
2358
2320
|
//#endregion
|
|
2359
2321
|
//#region src/file/drawing/inline/graphic/graphic.ts
|
|
2360
2322
|
var Graphic;
|
|
2361
|
-
var init_graphic$1 = __esmMin(() => {
|
|
2323
|
+
var init_graphic$1 = __esmMin((() => {
|
|
2362
2324
|
init_xml_components();
|
|
2363
2325
|
init_graphic_data();
|
|
2364
2326
|
Graphic = class extends XmlComponent {
|
|
@@ -2379,16 +2341,16 @@ var init_graphic$1 = __esmMin(() => {
|
|
|
2379
2341
|
this.root.push(this.data);
|
|
2380
2342
|
}
|
|
2381
2343
|
};
|
|
2382
|
-
});
|
|
2344
|
+
}));
|
|
2383
2345
|
//#endregion
|
|
2384
2346
|
//#region src/file/drawing/inline/graphic/index.ts
|
|
2385
|
-
var init_graphic = __esmMin(() => {
|
|
2347
|
+
var init_graphic = __esmMin((() => {
|
|
2386
2348
|
init_graphic$1();
|
|
2387
|
-
});
|
|
2349
|
+
}));
|
|
2388
2350
|
//#endregion
|
|
2389
2351
|
//#region src/file/drawing/text-wrap/text-wrapping.ts
|
|
2390
2352
|
var TextWrappingType, TextWrappingSide;
|
|
2391
|
-
var init_text_wrapping = __esmMin(() => {
|
|
2353
|
+
var init_text_wrapping = __esmMin((() => {
|
|
2392
2354
|
TextWrappingType = {
|
|
2393
2355
|
NONE: 0,
|
|
2394
2356
|
SQUARE: 1,
|
|
@@ -2406,18 +2368,18 @@ var init_text_wrapping = __esmMin(() => {
|
|
|
2406
2368
|
/** Text wraps on the side with more space */
|
|
2407
2369
|
LARGEST: "largest"
|
|
2408
2370
|
};
|
|
2409
|
-
});
|
|
2371
|
+
}));
|
|
2410
2372
|
//#endregion
|
|
2411
2373
|
//#region src/file/drawing/text-wrap/wrap-none.ts
|
|
2412
2374
|
var createWrapNone;
|
|
2413
|
-
var init_wrap_none = __esmMin(() => {
|
|
2375
|
+
var init_wrap_none = __esmMin((() => {
|
|
2414
2376
|
init_xml_components();
|
|
2415
2377
|
createWrapNone = () => new BuilderElement({ name: "wp:wrapNone" });
|
|
2416
|
-
});
|
|
2378
|
+
}));
|
|
2417
2379
|
//#endregion
|
|
2418
2380
|
//#region src/file/drawing/text-wrap/wrap-square.ts
|
|
2419
2381
|
var createWrapSquare;
|
|
2420
|
-
var init_wrap_square = __esmMin(() => {
|
|
2382
|
+
var init_wrap_square = __esmMin((() => {
|
|
2421
2383
|
init_xml_components();
|
|
2422
2384
|
init_text_wrapping();
|
|
2423
2385
|
createWrapSquare = (textWrapping, margins = {
|
|
@@ -2450,11 +2412,11 @@ var init_wrap_square = __esmMin(() => {
|
|
|
2450
2412
|
},
|
|
2451
2413
|
name: "wp:wrapSquare"
|
|
2452
2414
|
});
|
|
2453
|
-
});
|
|
2415
|
+
}));
|
|
2454
2416
|
//#endregion
|
|
2455
2417
|
//#region src/file/drawing/text-wrap/wrap-tight.ts
|
|
2456
2418
|
var createWrapPolygon$1, createWrapTight;
|
|
2457
|
-
var init_wrap_tight = __esmMin(() => {
|
|
2419
|
+
var init_wrap_tight = __esmMin((() => {
|
|
2458
2420
|
init_xml_components();
|
|
2459
2421
|
init_text_wrapping();
|
|
2460
2422
|
createWrapPolygon$1 = (cx, cy) => new BuilderElement({
|
|
@@ -2554,11 +2516,11 @@ var init_wrap_tight = __esmMin(() => {
|
|
|
2554
2516
|
children: [createWrapPolygon$1(extent.x, extent.y)],
|
|
2555
2517
|
name: "wp:wrapTight"
|
|
2556
2518
|
});
|
|
2557
|
-
});
|
|
2519
|
+
}));
|
|
2558
2520
|
//#endregion
|
|
2559
2521
|
//#region src/file/drawing/text-wrap/wrap-through.ts
|
|
2560
2522
|
var createWrapPolygon, createWrapThrough;
|
|
2561
|
-
var init_wrap_through = __esmMin(() => {
|
|
2523
|
+
var init_wrap_through = __esmMin((() => {
|
|
2562
2524
|
init_xml_components();
|
|
2563
2525
|
init_text_wrapping();
|
|
2564
2526
|
createWrapPolygon = (cx, cy) => new BuilderElement({
|
|
@@ -2658,11 +2620,11 @@ var init_wrap_through = __esmMin(() => {
|
|
|
2658
2620
|
children: [createWrapPolygon(extent.x, extent.y)],
|
|
2659
2621
|
name: "wp:wrapThrough"
|
|
2660
2622
|
});
|
|
2661
|
-
});
|
|
2623
|
+
}));
|
|
2662
2624
|
//#endregion
|
|
2663
2625
|
//#region src/file/drawing/text-wrap/wrap-top-and-bottom.ts
|
|
2664
2626
|
var createWrapTopAndBottom;
|
|
2665
|
-
var init_wrap_top_and_bottom = __esmMin(() => {
|
|
2627
|
+
var init_wrap_top_and_bottom = __esmMin((() => {
|
|
2666
2628
|
init_xml_components();
|
|
2667
2629
|
createWrapTopAndBottom = (margins = {
|
|
2668
2630
|
bottom: 0,
|
|
@@ -2680,21 +2642,21 @@ var init_wrap_top_and_bottom = __esmMin(() => {
|
|
|
2680
2642
|
},
|
|
2681
2643
|
name: "wp:wrapTopAndBottom"
|
|
2682
2644
|
});
|
|
2683
|
-
});
|
|
2645
|
+
}));
|
|
2684
2646
|
//#endregion
|
|
2685
2647
|
//#region src/file/drawing/text-wrap/index.ts
|
|
2686
|
-
var init_text_wrap = __esmMin(() => {
|
|
2648
|
+
var init_text_wrap = __esmMin((() => {
|
|
2687
2649
|
init_text_wrapping();
|
|
2688
2650
|
init_wrap_none();
|
|
2689
2651
|
init_wrap_square();
|
|
2690
2652
|
init_wrap_tight();
|
|
2691
2653
|
init_wrap_through();
|
|
2692
2654
|
init_wrap_top_and_bottom();
|
|
2693
|
-
});
|
|
2655
|
+
}));
|
|
2694
2656
|
//#endregion
|
|
2695
2657
|
//#region src/file/drawing/doc-properties/doc-properties.ts
|
|
2696
2658
|
var HYPERLINK_RELATIONSHIP_TYPE, globalDocPropertiesIdGen, DocProperties;
|
|
2697
|
-
var init_doc_properties = __esmMin(() => {
|
|
2659
|
+
var init_doc_properties = __esmMin((() => {
|
|
2698
2660
|
init_hyperlink();
|
|
2699
2661
|
init_relationship();
|
|
2700
2662
|
init_xml_components();
|
|
@@ -2719,7 +2681,8 @@ var init_doc_properties = __esmMin(() => {
|
|
|
2719
2681
|
if (title !== null && title !== void 0) attributes.title = title;
|
|
2720
2682
|
this.root.push({ _attr: attributes });
|
|
2721
2683
|
}
|
|
2722
|
-
|
|
2684
|
+
toXml(context) {
|
|
2685
|
+
const start = this.root.length;
|
|
2723
2686
|
let hasStackClick = false;
|
|
2724
2687
|
for (let i = context.stack.length - 1; i >= 0; i--) {
|
|
2725
2688
|
const element = context.stack[i];
|
|
@@ -2740,50 +2703,52 @@ var init_doc_properties = __esmMin(() => {
|
|
|
2740
2703
|
this.root.push(buildHyperlinkHoverObj(linkId, true));
|
|
2741
2704
|
}
|
|
2742
2705
|
}
|
|
2743
|
-
|
|
2706
|
+
const result = super.toXml(context);
|
|
2707
|
+
this.root.length = start;
|
|
2708
|
+
return result;
|
|
2744
2709
|
}
|
|
2745
2710
|
};
|
|
2746
|
-
});
|
|
2711
|
+
}));
|
|
2747
2712
|
//#endregion
|
|
2748
2713
|
//#region src/file/drawing/effect-extent/effect-extent.ts
|
|
2749
2714
|
var buildEffectExtentObj;
|
|
2750
|
-
var init_effect_extent = __esmMin(() => {
|
|
2715
|
+
var init_effect_extent = __esmMin((() => {
|
|
2751
2716
|
buildEffectExtentObj = ({ top, right, bottom, left }) => ({ "wp:effectExtent": { _attr: {
|
|
2752
2717
|
t: top,
|
|
2753
2718
|
r: right,
|
|
2754
2719
|
b: bottom,
|
|
2755
2720
|
l: left
|
|
2756
2721
|
} } });
|
|
2757
|
-
});
|
|
2722
|
+
}));
|
|
2758
2723
|
//#endregion
|
|
2759
2724
|
//#region src/file/drawing/extent/extent.ts
|
|
2760
2725
|
var buildExtentObj;
|
|
2761
|
-
var init_extent = __esmMin(() => {
|
|
2726
|
+
var init_extent = __esmMin((() => {
|
|
2762
2727
|
buildExtentObj = ({ x, y }) => ({ "wp:extent": { _attr: {
|
|
2763
2728
|
cx: x,
|
|
2764
2729
|
cy: y
|
|
2765
2730
|
} } });
|
|
2766
|
-
});
|
|
2731
|
+
}));
|
|
2767
2732
|
//#endregion
|
|
2768
2733
|
//#region src/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.ts
|
|
2769
2734
|
var buildGraphicFrameLocksObj;
|
|
2770
|
-
var init_graphic_frame_locks = __esmMin(() => {
|
|
2735
|
+
var init_graphic_frame_locks = __esmMin((() => {
|
|
2771
2736
|
buildGraphicFrameLocksObj = () => ({ "a:graphicFrameLocks": { _attr: {
|
|
2772
2737
|
noChangeAspect: 1,
|
|
2773
2738
|
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main"
|
|
2774
2739
|
} } });
|
|
2775
|
-
});
|
|
2740
|
+
}));
|
|
2776
2741
|
//#endregion
|
|
2777
2742
|
//#region src/file/drawing/graphic-frame/graphic-frame-properties.ts
|
|
2778
2743
|
var buildGraphicFramePropertiesObj;
|
|
2779
|
-
var init_graphic_frame_properties = __esmMin(() => {
|
|
2744
|
+
var init_graphic_frame_properties = __esmMin((() => {
|
|
2780
2745
|
init_graphic_frame_locks();
|
|
2781
2746
|
buildGraphicFramePropertiesObj = () => ({ "wp:cNvGraphicFramePr": [buildGraphicFrameLocksObj()] });
|
|
2782
|
-
});
|
|
2747
|
+
}));
|
|
2783
2748
|
//#endregion
|
|
2784
2749
|
//#region src/file/drawing/anchor/anchor.ts
|
|
2785
2750
|
var Anchor;
|
|
2786
|
-
var init_anchor$1 = __esmMin(() => {
|
|
2751
|
+
var init_anchor$1 = __esmMin((() => {
|
|
2787
2752
|
init_xml_components();
|
|
2788
2753
|
init_floating();
|
|
2789
2754
|
init_graphic();
|
|
@@ -2866,16 +2831,16 @@ var init_anchor$1 = __esmMin(() => {
|
|
|
2866
2831
|
}));
|
|
2867
2832
|
}
|
|
2868
2833
|
};
|
|
2869
|
-
});
|
|
2834
|
+
}));
|
|
2870
2835
|
//#endregion
|
|
2871
2836
|
//#region src/file/drawing/anchor/index.ts
|
|
2872
|
-
var init_anchor = __esmMin(() => {
|
|
2837
|
+
var init_anchor = __esmMin((() => {
|
|
2873
2838
|
init_anchor$1();
|
|
2874
|
-
});
|
|
2839
|
+
}));
|
|
2875
2840
|
//#endregion
|
|
2876
2841
|
//#region src/file/drawing/inline/inline.ts
|
|
2877
2842
|
var createInline;
|
|
2878
|
-
var init_inline$1 = __esmMin(() => {
|
|
2843
|
+
var init_inline$1 = __esmMin((() => {
|
|
2879
2844
|
init_xml_components();
|
|
2880
2845
|
init_doc_properties();
|
|
2881
2846
|
init_effect_extent();
|
|
@@ -2932,16 +2897,16 @@ var init_inline$1 = __esmMin(() => {
|
|
|
2932
2897
|
],
|
|
2933
2898
|
name: "wp:inline"
|
|
2934
2899
|
});
|
|
2935
|
-
});
|
|
2900
|
+
}));
|
|
2936
2901
|
//#endregion
|
|
2937
2902
|
//#region src/file/drawing/inline/index.ts
|
|
2938
|
-
var init_inline = __esmMin(() => {
|
|
2903
|
+
var init_inline = __esmMin((() => {
|
|
2939
2904
|
init_inline$1();
|
|
2940
|
-
});
|
|
2905
|
+
}));
|
|
2941
2906
|
//#endregion
|
|
2942
2907
|
//#region src/file/drawing/drawing.ts
|
|
2943
2908
|
var Drawing;
|
|
2944
|
-
var init_drawing$1 = __esmMin(() => {
|
|
2909
|
+
var init_drawing$1 = __esmMin((() => {
|
|
2945
2910
|
init_xml_components();
|
|
2946
2911
|
init_anchor();
|
|
2947
2912
|
init_inline();
|
|
@@ -2965,18 +2930,18 @@ var init_drawing$1 = __esmMin(() => {
|
|
|
2965
2930
|
}));
|
|
2966
2931
|
}
|
|
2967
2932
|
};
|
|
2968
|
-
});
|
|
2933
|
+
}));
|
|
2969
2934
|
//#endregion
|
|
2970
2935
|
//#region src/file/drawing/index.ts
|
|
2971
|
-
var init_drawing = __esmMin(() => {
|
|
2936
|
+
var init_drawing = __esmMin((() => {
|
|
2972
2937
|
init_drawing$1();
|
|
2973
2938
|
init_text_wrap();
|
|
2974
2939
|
init_floating();
|
|
2975
|
-
});
|
|
2940
|
+
}));
|
|
2976
2941
|
//#endregion
|
|
2977
2942
|
//#region src/file/media/media.ts
|
|
2978
2943
|
var createTransformation, Media;
|
|
2979
|
-
var init_media$1 = __esmMin(() => {
|
|
2944
|
+
var init_media$1 = __esmMin((() => {
|
|
2980
2945
|
createTransformation = (options) => ({
|
|
2981
2946
|
emus: {
|
|
2982
2947
|
x: convertPixelsToEmu(options.width),
|
|
@@ -3022,23 +2987,23 @@ var init_media$1 = __esmMin(() => {
|
|
|
3022
2987
|
return [...this.map.values()];
|
|
3023
2988
|
}
|
|
3024
2989
|
};
|
|
3025
|
-
});
|
|
2990
|
+
}));
|
|
3026
2991
|
//#endregion
|
|
3027
2992
|
//#region src/file/media/data.ts
|
|
3028
2993
|
var WORKAROUND2;
|
|
3029
|
-
var init_data = __esmMin(() => {
|
|
2994
|
+
var init_data = __esmMin((() => {
|
|
3030
2995
|
WORKAROUND2 = "";
|
|
3031
|
-
});
|
|
2996
|
+
}));
|
|
3032
2997
|
//#endregion
|
|
3033
2998
|
//#region src/file/media/index.ts
|
|
3034
|
-
var init_media = __esmMin(() => {
|
|
2999
|
+
var init_media = __esmMin((() => {
|
|
3035
3000
|
init_media$1();
|
|
3036
3001
|
init_data();
|
|
3037
|
-
});
|
|
3002
|
+
}));
|
|
3038
3003
|
//#endregion
|
|
3039
3004
|
//#region src/file/paragraph/run/image-run.ts
|
|
3040
3005
|
var createImageData, ImageRun;
|
|
3041
|
-
var init_image_run = __esmMin(() => {
|
|
3006
|
+
var init_image_run = __esmMin((() => {
|
|
3042
3007
|
init_convenience_functions();
|
|
3043
3008
|
init_drawing();
|
|
3044
3009
|
init_media();
|
|
@@ -3086,14 +3051,14 @@ var init_image_run = __esmMin(() => {
|
|
|
3086
3051
|
return super.prepForXml(context);
|
|
3087
3052
|
}
|
|
3088
3053
|
};
|
|
3089
|
-
});
|
|
3054
|
+
}));
|
|
3090
3055
|
//#endregion
|
|
3091
3056
|
//#region src/file/chart/chart-space.ts
|
|
3092
|
-
var init_chart_space = __esmMin(() => {});
|
|
3057
|
+
var init_chart_space = __esmMin((() => {}));
|
|
3093
3058
|
//#endregion
|
|
3094
3059
|
//#region src/file/paragraph/run/chart-run.ts
|
|
3095
3060
|
var ChartRun;
|
|
3096
|
-
var init_chart_run = __esmMin(() => {
|
|
3061
|
+
var init_chart_run = __esmMin((() => {
|
|
3097
3062
|
init_chart_space();
|
|
3098
3063
|
init_drawing();
|
|
3099
3064
|
init_media();
|
|
@@ -3141,14 +3106,14 @@ var init_chart_run = __esmMin(() => {
|
|
|
3141
3106
|
return Math.abs(hash);
|
|
3142
3107
|
}
|
|
3143
3108
|
};
|
|
3144
|
-
});
|
|
3109
|
+
}));
|
|
3145
3110
|
//#endregion
|
|
3146
3111
|
//#region src/file/smartart/tree-to-model.ts
|
|
3147
|
-
var init_tree_to_model = __esmMin(() => {});
|
|
3112
|
+
var init_tree_to_model = __esmMin((() => {}));
|
|
3148
3113
|
//#endregion
|
|
3149
3114
|
//#region src/file/paragraph/run/smartart-run.ts
|
|
3150
3115
|
var SmartArtRun;
|
|
3151
|
-
var init_smartart_run = __esmMin(() => {
|
|
3116
|
+
var init_smartart_run = __esmMin((() => {
|
|
3152
3117
|
init_drawing();
|
|
3153
3118
|
init_media();
|
|
3154
3119
|
init_tree_to_model();
|
|
@@ -3195,11 +3160,11 @@ var init_smartart_run = __esmMin(() => {
|
|
|
3195
3160
|
return Math.abs(hash);
|
|
3196
3161
|
}
|
|
3197
3162
|
};
|
|
3198
|
-
});
|
|
3163
|
+
}));
|
|
3199
3164
|
//#endregion
|
|
3200
3165
|
//#region src/file/paragraph/run/wps-shape-run.ts
|
|
3201
3166
|
var WpsShapeRun;
|
|
3202
|
-
var init_wps_shape_run = __esmMin(() => {
|
|
3167
|
+
var init_wps_shape_run = __esmMin((() => {
|
|
3203
3168
|
init_drawing();
|
|
3204
3169
|
init_media();
|
|
3205
3170
|
init_run();
|
|
@@ -3222,11 +3187,11 @@ var init_wps_shape_run = __esmMin(() => {
|
|
|
3222
3187
|
this.extraChildren.push(drawing);
|
|
3223
3188
|
}
|
|
3224
3189
|
};
|
|
3225
|
-
});
|
|
3190
|
+
}));
|
|
3226
3191
|
//#endregion
|
|
3227
3192
|
//#region src/file/paragraph/run/wpg-group-run.ts
|
|
3228
3193
|
var WpgGroupRun;
|
|
3229
|
-
var init_wpg_group_run = __esmMin(() => {
|
|
3194
|
+
var init_wpg_group_run = __esmMin((() => {
|
|
3230
3195
|
init_run();
|
|
3231
3196
|
init_drawing();
|
|
3232
3197
|
init_media();
|
|
@@ -3256,11 +3221,11 @@ var init_wpg_group_run = __esmMin(() => {
|
|
|
3256
3221
|
return super.prepForXml(context);
|
|
3257
3222
|
}
|
|
3258
3223
|
};
|
|
3259
|
-
});
|
|
3224
|
+
}));
|
|
3260
3225
|
//#endregion
|
|
3261
3226
|
//#region src/file/paragraph/run/sequential-identifier-instruction.ts
|
|
3262
3227
|
var SequentialIdentifierInstruction;
|
|
3263
|
-
var init_sequential_identifier_instruction = __esmMin(() => {
|
|
3228
|
+
var init_sequential_identifier_instruction = __esmMin((() => {
|
|
3264
3229
|
init_shared();
|
|
3265
3230
|
init_xml_components();
|
|
3266
3231
|
SequentialIdentifierInstruction = class extends XmlComponent {
|
|
@@ -3270,11 +3235,11 @@ var init_sequential_identifier_instruction = __esmMin(() => {
|
|
|
3270
3235
|
this.root.push(`SEQ ${identifier}`);
|
|
3271
3236
|
}
|
|
3272
3237
|
};
|
|
3273
|
-
});
|
|
3238
|
+
}));
|
|
3274
3239
|
//#endregion
|
|
3275
3240
|
//#region src/file/paragraph/run/sequential-identifier.ts
|
|
3276
3241
|
var SequentialIdentifier;
|
|
3277
|
-
var init_sequential_identifier = __esmMin(() => {
|
|
3242
|
+
var init_sequential_identifier = __esmMin((() => {
|
|
3278
3243
|
init_run();
|
|
3279
3244
|
init_field();
|
|
3280
3245
|
init_sequential_identifier_instruction();
|
|
@@ -3287,11 +3252,11 @@ var init_sequential_identifier = __esmMin(() => {
|
|
|
3287
3252
|
this.extraChildren.push(createEnd());
|
|
3288
3253
|
}
|
|
3289
3254
|
};
|
|
3290
|
-
});
|
|
3255
|
+
}));
|
|
3291
3256
|
//#endregion
|
|
3292
3257
|
//#region src/file/paragraph/run/simple-field.ts
|
|
3293
3258
|
var SimpleField, SimpleMailMergeField;
|
|
3294
|
-
var init_simple_field = __esmMin(() => {
|
|
3259
|
+
var init_simple_field = __esmMin((() => {
|
|
3295
3260
|
init_xml_components();
|
|
3296
3261
|
init_text_run();
|
|
3297
3262
|
SimpleField = class extends XmlComponent {
|
|
@@ -3306,19 +3271,19 @@ var init_simple_field = __esmMin(() => {
|
|
|
3306
3271
|
super(` MERGEFIELD ${fieldName} `, `«${fieldName}»`);
|
|
3307
3272
|
}
|
|
3308
3273
|
};
|
|
3309
|
-
});
|
|
3274
|
+
}));
|
|
3310
3275
|
//#endregion
|
|
3311
3276
|
//#region src/file/relationships/relationships.ts
|
|
3312
|
-
var init_relationships$1 = __esmMin(() => {});
|
|
3277
|
+
var init_relationships$1 = __esmMin((() => {}));
|
|
3313
3278
|
//#endregion
|
|
3314
3279
|
//#region src/file/relationships/index.ts
|
|
3315
|
-
var init_relationships = __esmMin(() => {
|
|
3280
|
+
var init_relationships = __esmMin((() => {
|
|
3316
3281
|
init_relationships$1();
|
|
3317
|
-
});
|
|
3282
|
+
}));
|
|
3318
3283
|
//#endregion
|
|
3319
3284
|
//#region src/file/fonts/font.ts
|
|
3320
3285
|
var CharacterSet, createFontRelationship, createFont;
|
|
3321
|
-
var init_font = __esmMin(() => {
|
|
3286
|
+
var init_font = __esmMin((() => {
|
|
3322
3287
|
init_xml_components();
|
|
3323
3288
|
CharacterSet = {
|
|
3324
3289
|
ANSI: "00",
|
|
@@ -3403,11 +3368,11 @@ var init_font = __esmMin(() => {
|
|
|
3403
3368
|
],
|
|
3404
3369
|
name: "w:font"
|
|
3405
3370
|
});
|
|
3406
|
-
});
|
|
3371
|
+
}));
|
|
3407
3372
|
//#endregion
|
|
3408
3373
|
//#region src/file/fonts/create-regular-font.ts
|
|
3409
3374
|
var createRegularFont;
|
|
3410
|
-
var init_create_regular_font = __esmMin(() => {
|
|
3375
|
+
var init_create_regular_font = __esmMin((() => {
|
|
3411
3376
|
init_font();
|
|
3412
3377
|
createRegularFont = ({ name, index, fontKey, characterSet }) => createFont({
|
|
3413
3378
|
charset: characterSet,
|
|
@@ -3427,11 +3392,11 @@ var init_create_regular_font = __esmMin(() => {
|
|
|
3427
3392
|
usb3: "00000000"
|
|
3428
3393
|
}
|
|
3429
3394
|
});
|
|
3430
|
-
});
|
|
3395
|
+
}));
|
|
3431
3396
|
//#endregion
|
|
3432
3397
|
//#region src/file/fonts/font-table.ts
|
|
3433
3398
|
var createFontTable;
|
|
3434
|
-
var init_font_table = __esmMin(() => {
|
|
3399
|
+
var init_font_table = __esmMin((() => {
|
|
3435
3400
|
init_xml_components();
|
|
3436
3401
|
init_create_regular_font();
|
|
3437
3402
|
createFontTable = (fonts) => new BuilderElement({
|
|
@@ -3489,11 +3454,11 @@ var init_font_table = __esmMin(() => {
|
|
|
3489
3454
|
})),
|
|
3490
3455
|
name: "w:fonts"
|
|
3491
3456
|
});
|
|
3492
|
-
});
|
|
3457
|
+
}));
|
|
3493
3458
|
//#endregion
|
|
3494
3459
|
//#region src/file/fonts/font-wrapper.ts
|
|
3495
3460
|
var FontWrapper;
|
|
3496
|
-
var init_font_wrapper = __esmMin(() => {
|
|
3461
|
+
var init_font_wrapper = __esmMin((() => {
|
|
3497
3462
|
init_relationships();
|
|
3498
3463
|
init_convenience_functions();
|
|
3499
3464
|
init_font_table();
|
|
@@ -3515,11 +3480,11 @@ var init_font_wrapper = __esmMin(() => {
|
|
|
3515
3480
|
return this.fontTable;
|
|
3516
3481
|
}
|
|
3517
3482
|
};
|
|
3518
|
-
});
|
|
3483
|
+
}));
|
|
3519
3484
|
//#endregion
|
|
3520
3485
|
//#region src/file/track-revision/track-revision-components/deleted-page-number.ts
|
|
3521
3486
|
var DeletedPage, DeletedNumberOfPages, DeletedNumberOfPagesSection;
|
|
3522
|
-
var init_deleted_page_number = __esmMin(() => {
|
|
3487
|
+
var init_deleted_page_number = __esmMin((() => {
|
|
3523
3488
|
init_shared();
|
|
3524
3489
|
init_xml_components();
|
|
3525
3490
|
DeletedPage = class extends XmlComponent {
|
|
@@ -3543,11 +3508,11 @@ var init_deleted_page_number = __esmMin(() => {
|
|
|
3543
3508
|
this.root.push("SECTIONPAGES");
|
|
3544
3509
|
}
|
|
3545
3510
|
};
|
|
3546
|
-
});
|
|
3511
|
+
}));
|
|
3547
3512
|
//#endregion
|
|
3548
3513
|
//#region src/file/track-revision/track-revision-components/deleted-text.ts
|
|
3549
3514
|
var DeletedText;
|
|
3550
|
-
var init_deleted_text = __esmMin(() => {
|
|
3515
|
+
var init_deleted_text = __esmMin((() => {
|
|
3551
3516
|
init_shared();
|
|
3552
3517
|
init_xml_components();
|
|
3553
3518
|
DeletedText = class extends XmlComponent {
|
|
@@ -3557,11 +3522,11 @@ var init_deleted_text = __esmMin(() => {
|
|
|
3557
3522
|
this.root.push(text);
|
|
3558
3523
|
}
|
|
3559
3524
|
};
|
|
3560
|
-
});
|
|
3525
|
+
}));
|
|
3561
3526
|
//#endregion
|
|
3562
3527
|
//#region src/file/track-revision/track-revision-components/deleted-text-run.ts
|
|
3563
3528
|
var DeletedTextRun, DeletedTextRunWrapper;
|
|
3564
|
-
var init_deleted_text_run = __esmMin(() => {
|
|
3529
|
+
var init_deleted_text_run = __esmMin((() => {
|
|
3565
3530
|
init_xml_components();
|
|
3566
3531
|
init_break$1();
|
|
3567
3532
|
init_field();
|
|
@@ -3619,11 +3584,11 @@ var init_deleted_text_run = __esmMin(() => {
|
|
|
3619
3584
|
if (options.break) for (let i = 0; i < options.break; i++) this.root.splice(1, 0, createBreak());
|
|
3620
3585
|
}
|
|
3621
3586
|
};
|
|
3622
|
-
});
|
|
3587
|
+
}));
|
|
3623
3588
|
//#endregion
|
|
3624
3589
|
//#region src/file/track-revision/track-revision-components/inserted-text-run.ts
|
|
3625
3590
|
var InsertedTextRun;
|
|
3626
|
-
var init_inserted_text_run = __esmMin(() => {
|
|
3591
|
+
var init_inserted_text_run = __esmMin((() => {
|
|
3627
3592
|
init_xml_components();
|
|
3628
3593
|
init_run();
|
|
3629
3594
|
InsertedTextRun = class extends XmlComponent {
|
|
@@ -3637,11 +3602,11 @@ var init_inserted_text_run = __esmMin(() => {
|
|
|
3637
3602
|
this.addChildElement(new TextRun(options));
|
|
3638
3603
|
}
|
|
3639
3604
|
};
|
|
3640
|
-
});
|
|
3605
|
+
}));
|
|
3641
3606
|
//#endregion
|
|
3642
3607
|
//#region src/file/paragraph/links/bookmark.ts
|
|
3643
3608
|
var Bookmark, BookmarkStart, BookmarkEnd;
|
|
3644
|
-
var init_bookmark = __esmMin(() => {
|
|
3609
|
+
var init_bookmark = __esmMin((() => {
|
|
3645
3610
|
init_xml_components();
|
|
3646
3611
|
init_convenience_functions();
|
|
3647
3612
|
Bookmark = class {
|
|
@@ -3671,11 +3636,11 @@ var init_bookmark = __esmMin(() => {
|
|
|
3671
3636
|
this.root.push({ _attr: { "w:id": linkId } });
|
|
3672
3637
|
}
|
|
3673
3638
|
};
|
|
3674
|
-
});
|
|
3639
|
+
}));
|
|
3675
3640
|
//#endregion
|
|
3676
3641
|
//#region src/file/paragraph/links/move-bookmark.ts
|
|
3677
3642
|
var buildMoveBookmarkAttr, MoveFromRangeStart, MoveFromRangeEnd, MoveToRangeStart, MoveToRangeEnd;
|
|
3678
|
-
var init_move_bookmark = __esmMin(() => {
|
|
3643
|
+
var init_move_bookmark = __esmMin((() => {
|
|
3679
3644
|
init_xml_components();
|
|
3680
3645
|
buildMoveBookmarkAttr = (id, name, author, date) => {
|
|
3681
3646
|
const attrs = { "w:id": id };
|
|
@@ -3708,11 +3673,11 @@ var init_move_bookmark = __esmMin(() => {
|
|
|
3708
3673
|
this.root.push({ _attr: { "w:id": id } });
|
|
3709
3674
|
}
|
|
3710
3675
|
};
|
|
3711
|
-
});
|
|
3676
|
+
}));
|
|
3712
3677
|
//#endregion
|
|
3713
3678
|
//#region src/file/paragraph/links/div-id.ts
|
|
3714
3679
|
var createDivId, buildDivIdObj;
|
|
3715
|
-
var init_div_id = __esmMin(() => {
|
|
3680
|
+
var init_div_id = __esmMin((() => {
|
|
3716
3681
|
init_xml_components();
|
|
3717
3682
|
createDivId = (id) => new BuilderElement({
|
|
3718
3683
|
attributes: { val: {
|
|
@@ -3722,11 +3687,11 @@ var init_div_id = __esmMin(() => {
|
|
|
3722
3687
|
name: "w:divId"
|
|
3723
3688
|
});
|
|
3724
3689
|
buildDivIdObj = (id) => numberValObj("w:divId", id);
|
|
3725
|
-
});
|
|
3690
|
+
}));
|
|
3726
3691
|
//#endregion
|
|
3727
3692
|
//#region src/file/paragraph/links/numbered-item-ref.ts
|
|
3728
3693
|
var NumberedItemReferenceFormat, SWITCH_MAP, NumberedItemReference;
|
|
3729
|
-
var init_numbered_item_ref = __esmMin(() => {
|
|
3694
|
+
var init_numbered_item_ref = __esmMin((() => {
|
|
3730
3695
|
init_simple_field();
|
|
3731
3696
|
NumberedItemReferenceFormat = /* @__PURE__ */ function(NumberedItemReferenceFormat) {
|
|
3732
3697
|
NumberedItemReferenceFormat["NONE"] = "none";
|
|
@@ -3757,11 +3722,11 @@ var init_numbered_item_ref = __esmMin(() => {
|
|
|
3757
3722
|
super(instruction, cachedValue);
|
|
3758
3723
|
}
|
|
3759
3724
|
};
|
|
3760
|
-
});
|
|
3725
|
+
}));
|
|
3761
3726
|
//#endregion
|
|
3762
3727
|
//#region src/file/paragraph/links/outline-level.ts
|
|
3763
3728
|
var createOutlineLevel, buildOutlineLevelObj;
|
|
3764
|
-
var init_outline_level = __esmMin(() => {
|
|
3729
|
+
var init_outline_level = __esmMin((() => {
|
|
3765
3730
|
init_xml_components();
|
|
3766
3731
|
createOutlineLevel = (level) => new BuilderElement({
|
|
3767
3732
|
attributes: { val: {
|
|
@@ -3771,11 +3736,11 @@ var init_outline_level = __esmMin(() => {
|
|
|
3771
3736
|
name: "w:outlineLvl"
|
|
3772
3737
|
});
|
|
3773
3738
|
buildOutlineLevelObj = (level) => numberValObj("w:outlineLvl", level);
|
|
3774
|
-
});
|
|
3739
|
+
}));
|
|
3775
3740
|
//#endregion
|
|
3776
3741
|
//#region src/file/paragraph/links/pageref-field-instruction.ts
|
|
3777
3742
|
var PageReferenceFieldInstruction;
|
|
3778
|
-
var init_pageref_field_instruction = __esmMin(() => {
|
|
3743
|
+
var init_pageref_field_instruction = __esmMin((() => {
|
|
3779
3744
|
init_shared();
|
|
3780
3745
|
init_xml_components();
|
|
3781
3746
|
PageReferenceFieldInstruction = class extends XmlComponent {
|
|
@@ -3788,11 +3753,11 @@ var init_pageref_field_instruction = __esmMin(() => {
|
|
|
3788
3753
|
this.root.push(instruction);
|
|
3789
3754
|
}
|
|
3790
3755
|
};
|
|
3791
|
-
});
|
|
3756
|
+
}));
|
|
3792
3757
|
//#endregion
|
|
3793
3758
|
//#region src/file/paragraph/links/pageref.ts
|
|
3794
3759
|
var PageReference;
|
|
3795
|
-
var init_pageref = __esmMin(() => {
|
|
3760
|
+
var init_pageref = __esmMin((() => {
|
|
3796
3761
|
init_field();
|
|
3797
3762
|
init_run();
|
|
3798
3763
|
init_pageref_field_instruction();
|
|
@@ -3805,11 +3770,11 @@ var init_pageref = __esmMin(() => {
|
|
|
3805
3770
|
] });
|
|
3806
3771
|
}
|
|
3807
3772
|
};
|
|
3808
|
-
});
|
|
3773
|
+
}));
|
|
3809
3774
|
//#endregion
|
|
3810
3775
|
//#region src/file/paragraph/links/bidi.ts
|
|
3811
3776
|
var Dir, Bdo;
|
|
3812
|
-
var init_bidi = __esmMin(() => {
|
|
3777
|
+
var init_bidi = __esmMin((() => {
|
|
3813
3778
|
init_xml_components();
|
|
3814
3779
|
Dir = class extends XmlComponent {
|
|
3815
3780
|
constructor(options) {
|
|
@@ -3825,10 +3790,10 @@ var init_bidi = __esmMin(() => {
|
|
|
3825
3790
|
for (const child of options.children) this.root.push(child);
|
|
3826
3791
|
}
|
|
3827
3792
|
};
|
|
3828
|
-
});
|
|
3793
|
+
}));
|
|
3829
3794
|
//#endregion
|
|
3830
3795
|
//#region src/file/paragraph/links/index.ts
|
|
3831
|
-
var init_links = __esmMin(() => {
|
|
3796
|
+
var init_links = __esmMin((() => {
|
|
3832
3797
|
init_hyperlink();
|
|
3833
3798
|
init_bookmark();
|
|
3834
3799
|
init_move_bookmark();
|
|
@@ -3837,11 +3802,11 @@ var init_links = __esmMin(() => {
|
|
|
3837
3802
|
init_outline_level();
|
|
3838
3803
|
init_pageref();
|
|
3839
3804
|
init_bidi();
|
|
3840
|
-
});
|
|
3805
|
+
}));
|
|
3841
3806
|
//#endregion
|
|
3842
3807
|
//#region src/file/paragraph/math/n-ary/math-accent-character.ts
|
|
3843
3808
|
var createMathAccentCharacter;
|
|
3844
|
-
var init_math_accent_character = __esmMin(() => {
|
|
3809
|
+
var init_math_accent_character = __esmMin((() => {
|
|
3845
3810
|
init_xml_components();
|
|
3846
3811
|
createMathAccentCharacter = ({ accent }) => new BuilderElement({
|
|
3847
3812
|
attributes: { accent: {
|
|
@@ -3850,21 +3815,21 @@ var init_math_accent_character = __esmMin(() => {
|
|
|
3850
3815
|
} },
|
|
3851
3816
|
name: "m:chr"
|
|
3852
3817
|
});
|
|
3853
|
-
});
|
|
3818
|
+
}));
|
|
3854
3819
|
//#endregion
|
|
3855
3820
|
//#region src/file/paragraph/math/n-ary/math-base.ts
|
|
3856
3821
|
var createMathBase;
|
|
3857
|
-
var init_math_base = __esmMin(() => {
|
|
3822
|
+
var init_math_base = __esmMin((() => {
|
|
3858
3823
|
init_xml_components();
|
|
3859
3824
|
createMathBase = ({ children }) => new BuilderElement({
|
|
3860
3825
|
children,
|
|
3861
3826
|
name: "m:e"
|
|
3862
3827
|
});
|
|
3863
|
-
});
|
|
3828
|
+
}));
|
|
3864
3829
|
//#endregion
|
|
3865
3830
|
//#region src/file/paragraph/math/n-ary/math-limit-location.ts
|
|
3866
3831
|
var createMathLimitLocation;
|
|
3867
|
-
var init_math_limit_location = __esmMin(() => {
|
|
3832
|
+
var init_math_limit_location = __esmMin((() => {
|
|
3868
3833
|
init_xml_components();
|
|
3869
3834
|
createMathLimitLocation = ({ value }) => new BuilderElement({
|
|
3870
3835
|
attributes: { value: {
|
|
@@ -3873,11 +3838,11 @@ var init_math_limit_location = __esmMin(() => {
|
|
|
3873
3838
|
} },
|
|
3874
3839
|
name: "m:limLoc"
|
|
3875
3840
|
});
|
|
3876
|
-
});
|
|
3841
|
+
}));
|
|
3877
3842
|
//#endregion
|
|
3878
3843
|
//#region src/file/paragraph/math/n-ary/math-sub-script-hide.ts
|
|
3879
3844
|
var createMathSubScriptHide;
|
|
3880
|
-
var init_math_sub_script_hide = __esmMin(() => {
|
|
3845
|
+
var init_math_sub_script_hide = __esmMin((() => {
|
|
3881
3846
|
init_xml_components();
|
|
3882
3847
|
createMathSubScriptHide = () => new BuilderElement({
|
|
3883
3848
|
attributes: { hide: {
|
|
@@ -3886,11 +3851,11 @@ var init_math_sub_script_hide = __esmMin(() => {
|
|
|
3886
3851
|
} },
|
|
3887
3852
|
name: "m:subHide"
|
|
3888
3853
|
});
|
|
3889
|
-
});
|
|
3854
|
+
}));
|
|
3890
3855
|
//#endregion
|
|
3891
3856
|
//#region src/file/paragraph/math/n-ary/math-super-script-hide.ts
|
|
3892
3857
|
var createMathSuperScriptHide;
|
|
3893
|
-
var init_math_super_script_hide = __esmMin(() => {
|
|
3858
|
+
var init_math_super_script_hide = __esmMin((() => {
|
|
3894
3859
|
init_xml_components();
|
|
3895
3860
|
createMathSuperScriptHide = () => new BuilderElement({
|
|
3896
3861
|
attributes: { hide: {
|
|
@@ -3899,11 +3864,11 @@ var init_math_super_script_hide = __esmMin(() => {
|
|
|
3899
3864
|
} },
|
|
3900
3865
|
name: "m:supHide"
|
|
3901
3866
|
});
|
|
3902
|
-
});
|
|
3867
|
+
}));
|
|
3903
3868
|
//#endregion
|
|
3904
3869
|
//#region src/file/paragraph/math/n-ary/math-n-ary-properties.ts
|
|
3905
3870
|
var createMathNAryProperties;
|
|
3906
|
-
var init_math_n_ary_properties = __esmMin(() => {
|
|
3871
|
+
var init_math_n_ary_properties = __esmMin((() => {
|
|
3907
3872
|
init_xml_components();
|
|
3908
3873
|
init_math_accent_character();
|
|
3909
3874
|
init_math_limit_location();
|
|
@@ -3921,31 +3886,31 @@ var init_math_n_ary_properties = __esmMin(() => {
|
|
|
3921
3886
|
name: "m:naryPr"
|
|
3922
3887
|
});
|
|
3923
3888
|
};
|
|
3924
|
-
});
|
|
3889
|
+
}));
|
|
3925
3890
|
//#endregion
|
|
3926
3891
|
//#region src/file/paragraph/math/n-ary/math-sub-script.ts
|
|
3927
3892
|
var createMathSubScriptElement;
|
|
3928
|
-
var init_math_sub_script = __esmMin(() => {
|
|
3893
|
+
var init_math_sub_script = __esmMin((() => {
|
|
3929
3894
|
init_xml_components();
|
|
3930
3895
|
createMathSubScriptElement = ({ children }) => new BuilderElement({
|
|
3931
3896
|
children,
|
|
3932
3897
|
name: "m:sub"
|
|
3933
3898
|
});
|
|
3934
|
-
});
|
|
3899
|
+
}));
|
|
3935
3900
|
//#endregion
|
|
3936
3901
|
//#region src/file/paragraph/math/n-ary/math-super-script.ts
|
|
3937
3902
|
var createMathSuperScriptElement;
|
|
3938
|
-
var init_math_super_script = __esmMin(() => {
|
|
3903
|
+
var init_math_super_script = __esmMin((() => {
|
|
3939
3904
|
init_xml_components();
|
|
3940
3905
|
createMathSuperScriptElement = ({ children }) => new BuilderElement({
|
|
3941
3906
|
children,
|
|
3942
3907
|
name: "m:sup"
|
|
3943
3908
|
});
|
|
3944
|
-
});
|
|
3909
|
+
}));
|
|
3945
3910
|
//#endregion
|
|
3946
3911
|
//#region src/file/paragraph/math/n-ary/math-sum.ts
|
|
3947
3912
|
var MathSum;
|
|
3948
|
-
var init_math_sum = __esmMin(() => {
|
|
3913
|
+
var init_math_sum = __esmMin((() => {
|
|
3949
3914
|
init_xml_components();
|
|
3950
3915
|
init_math_base();
|
|
3951
3916
|
init_math_n_ary_properties();
|
|
@@ -3964,11 +3929,11 @@ var init_math_sum = __esmMin(() => {
|
|
|
3964
3929
|
this.root.push(createMathBase({ children: options.children }));
|
|
3965
3930
|
}
|
|
3966
3931
|
};
|
|
3967
|
-
});
|
|
3932
|
+
}));
|
|
3968
3933
|
//#endregion
|
|
3969
3934
|
//#region src/file/paragraph/math/n-ary/math-integral.ts
|
|
3970
3935
|
var MathIntegral;
|
|
3971
|
-
var init_math_integral = __esmMin(() => {
|
|
3936
|
+
var init_math_integral = __esmMin((() => {
|
|
3972
3937
|
init_xml_components();
|
|
3973
3938
|
init_math_base();
|
|
3974
3939
|
init_math_n_ary_properties();
|
|
@@ -3988,11 +3953,11 @@ var init_math_integral = __esmMin(() => {
|
|
|
3988
3953
|
this.root.push(createMathBase({ children: options.children }));
|
|
3989
3954
|
}
|
|
3990
3955
|
};
|
|
3991
|
-
});
|
|
3956
|
+
}));
|
|
3992
3957
|
//#endregion
|
|
3993
3958
|
//#region src/file/paragraph/math/n-ary/math-limit.ts
|
|
3994
3959
|
var MathLimit;
|
|
3995
|
-
var init_math_limit = __esmMin(() => {
|
|
3960
|
+
var init_math_limit = __esmMin((() => {
|
|
3996
3961
|
init_xml_components();
|
|
3997
3962
|
MathLimit = class extends XmlComponent {
|
|
3998
3963
|
constructor(children) {
|
|
@@ -4000,11 +3965,11 @@ var init_math_limit = __esmMin(() => {
|
|
|
4000
3965
|
for (const child of children) this.root.push(child);
|
|
4001
3966
|
}
|
|
4002
3967
|
};
|
|
4003
|
-
});
|
|
3968
|
+
}));
|
|
4004
3969
|
//#endregion
|
|
4005
3970
|
//#region src/file/paragraph/math/math-control-properties.ts
|
|
4006
3971
|
var createMathControlProperties;
|
|
4007
|
-
var init_math_control_properties = __esmMin(() => {
|
|
3972
|
+
var init_math_control_properties = __esmMin((() => {
|
|
4008
3973
|
init_xml_components();
|
|
4009
3974
|
createMathControlProperties = (options) => {
|
|
4010
3975
|
const children = [];
|
|
@@ -4027,11 +3992,11 @@ var init_math_control_properties = __esmMin(() => {
|
|
|
4027
3992
|
name: "m:ctrlPr"
|
|
4028
3993
|
});
|
|
4029
3994
|
};
|
|
4030
|
-
});
|
|
3995
|
+
}));
|
|
4031
3996
|
//#endregion
|
|
4032
3997
|
//#region src/file/paragraph/math/n-ary/math-limit-upper-properties.ts
|
|
4033
3998
|
var createMathLimitUpperProperties;
|
|
4034
|
-
var init_math_limit_upper_properties = __esmMin(() => {
|
|
3999
|
+
var init_math_limit_upper_properties = __esmMin((() => {
|
|
4035
4000
|
init_xml_components();
|
|
4036
4001
|
init_math_control_properties();
|
|
4037
4002
|
createMathLimitUpperProperties = (options) => {
|
|
@@ -4042,11 +4007,11 @@ var init_math_limit_upper_properties = __esmMin(() => {
|
|
|
4042
4007
|
name: "m:limUppPr"
|
|
4043
4008
|
});
|
|
4044
4009
|
};
|
|
4045
|
-
});
|
|
4010
|
+
}));
|
|
4046
4011
|
//#endregion
|
|
4047
4012
|
//#region src/file/paragraph/math/n-ary/math-limit-upper.ts
|
|
4048
4013
|
var MathLimitUpper;
|
|
4049
|
-
var init_math_limit_upper = __esmMin(() => {
|
|
4014
|
+
var init_math_limit_upper = __esmMin((() => {
|
|
4050
4015
|
init_xml_components();
|
|
4051
4016
|
init_math_base();
|
|
4052
4017
|
init_math_limit();
|
|
@@ -4059,11 +4024,11 @@ var init_math_limit_upper = __esmMin(() => {
|
|
|
4059
4024
|
this.root.push(new MathLimit(options.limit));
|
|
4060
4025
|
}
|
|
4061
4026
|
};
|
|
4062
|
-
});
|
|
4027
|
+
}));
|
|
4063
4028
|
//#endregion
|
|
4064
4029
|
//#region src/file/paragraph/math/n-ary/math-limit-low-properties.ts
|
|
4065
4030
|
var createMathLimitLowProperties;
|
|
4066
|
-
var init_math_limit_low_properties = __esmMin(() => {
|
|
4031
|
+
var init_math_limit_low_properties = __esmMin((() => {
|
|
4067
4032
|
init_xml_components();
|
|
4068
4033
|
init_math_control_properties();
|
|
4069
4034
|
createMathLimitLowProperties = (options) => {
|
|
@@ -4074,11 +4039,11 @@ var init_math_limit_low_properties = __esmMin(() => {
|
|
|
4074
4039
|
name: "m:limLowPr"
|
|
4075
4040
|
});
|
|
4076
4041
|
};
|
|
4077
|
-
});
|
|
4042
|
+
}));
|
|
4078
4043
|
//#endregion
|
|
4079
4044
|
//#region src/file/paragraph/math/n-ary/math-limit-lower.ts
|
|
4080
4045
|
var MathLimitLower;
|
|
4081
|
-
var init_math_limit_lower = __esmMin(() => {
|
|
4046
|
+
var init_math_limit_lower = __esmMin((() => {
|
|
4082
4047
|
init_xml_components();
|
|
4083
4048
|
init_math_base();
|
|
4084
4049
|
init_math_limit();
|
|
@@ -4091,10 +4056,10 @@ var init_math_limit_lower = __esmMin(() => {
|
|
|
4091
4056
|
this.root.push(new MathLimit(options.limit));
|
|
4092
4057
|
}
|
|
4093
4058
|
};
|
|
4094
|
-
});
|
|
4059
|
+
}));
|
|
4095
4060
|
//#endregion
|
|
4096
4061
|
//#region src/file/paragraph/math/n-ary/index.ts
|
|
4097
|
-
var init_n_ary = __esmMin(() => {
|
|
4062
|
+
var init_n_ary = __esmMin((() => {
|
|
4098
4063
|
init_math_accent_character();
|
|
4099
4064
|
init_math_base();
|
|
4100
4065
|
init_math_limit_location();
|
|
@@ -4108,11 +4073,11 @@ var init_n_ary = __esmMin(() => {
|
|
|
4108
4073
|
init_math_limit_upper_properties();
|
|
4109
4074
|
init_math_limit_lower();
|
|
4110
4075
|
init_math_limit_low_properties();
|
|
4111
|
-
});
|
|
4076
|
+
}));
|
|
4112
4077
|
//#endregion
|
|
4113
4078
|
//#region src/file/paragraph/math/accent/math-accent-properties.ts
|
|
4114
4079
|
var createMathAccentProperties;
|
|
4115
|
-
var init_math_accent_properties = __esmMin(() => {
|
|
4080
|
+
var init_math_accent_properties = __esmMin((() => {
|
|
4116
4081
|
init_xml_components();
|
|
4117
4082
|
createMathAccentProperties = (options) => new BuilderElement({
|
|
4118
4083
|
children: [new BuilderElement({
|
|
@@ -4124,11 +4089,11 @@ var init_math_accent_properties = __esmMin(() => {
|
|
|
4124
4089
|
})],
|
|
4125
4090
|
name: "m:accPr"
|
|
4126
4091
|
});
|
|
4127
|
-
});
|
|
4092
|
+
}));
|
|
4128
4093
|
//#endregion
|
|
4129
4094
|
//#region src/file/paragraph/math/accent/math-accent.ts
|
|
4130
4095
|
var createMathAccent;
|
|
4131
|
-
var init_math_accent = __esmMin(() => {
|
|
4096
|
+
var init_math_accent = __esmMin((() => {
|
|
4132
4097
|
init_xml_components();
|
|
4133
4098
|
init_n_ary();
|
|
4134
4099
|
init_math_accent_properties();
|
|
@@ -4138,17 +4103,17 @@ var init_math_accent = __esmMin(() => {
|
|
|
4138
4103
|
name: "m:acc"
|
|
4139
4104
|
});
|
|
4140
4105
|
};
|
|
4141
|
-
});
|
|
4106
|
+
}));
|
|
4142
4107
|
//#endregion
|
|
4143
4108
|
//#region src/file/paragraph/math/accent/index.ts
|
|
4144
|
-
var init_accent = __esmMin(() => {
|
|
4109
|
+
var init_accent = __esmMin((() => {
|
|
4145
4110
|
init_math_accent();
|
|
4146
4111
|
init_math_accent_properties();
|
|
4147
|
-
});
|
|
4112
|
+
}));
|
|
4148
4113
|
//#endregion
|
|
4149
4114
|
//#region src/file/paragraph/math/bar/math-bar-pos.ts
|
|
4150
4115
|
var createMathBarPos;
|
|
4151
|
-
var init_math_bar_pos = __esmMin(() => {
|
|
4116
|
+
var init_math_bar_pos = __esmMin((() => {
|
|
4152
4117
|
init_xml_components();
|
|
4153
4118
|
createMathBarPos = ({ val }) => new BuilderElement({
|
|
4154
4119
|
attributes: { val: {
|
|
@@ -4157,22 +4122,22 @@ var init_math_bar_pos = __esmMin(() => {
|
|
|
4157
4122
|
} },
|
|
4158
4123
|
name: "m:pos"
|
|
4159
4124
|
});
|
|
4160
|
-
});
|
|
4125
|
+
}));
|
|
4161
4126
|
//#endregion
|
|
4162
4127
|
//#region src/file/paragraph/math/bar/math-bar-properties.ts
|
|
4163
4128
|
var createMathBarProperties;
|
|
4164
|
-
var init_math_bar_properties = __esmMin(() => {
|
|
4129
|
+
var init_math_bar_properties = __esmMin((() => {
|
|
4165
4130
|
init_xml_components();
|
|
4166
4131
|
init_math_bar_pos();
|
|
4167
4132
|
createMathBarProperties = ({ type }) => new BuilderElement({
|
|
4168
4133
|
children: [createMathBarPos({ val: type })],
|
|
4169
4134
|
name: "m:barPr"
|
|
4170
4135
|
});
|
|
4171
|
-
});
|
|
4136
|
+
}));
|
|
4172
4137
|
//#endregion
|
|
4173
4138
|
//#region src/file/paragraph/math/bar/math-bar.ts
|
|
4174
4139
|
var createMathBar;
|
|
4175
|
-
var init_math_bar = __esmMin(() => {
|
|
4140
|
+
var init_math_bar = __esmMin((() => {
|
|
4176
4141
|
init_xml_components();
|
|
4177
4142
|
init_n_ary();
|
|
4178
4143
|
init_math_bar_properties();
|
|
@@ -4180,17 +4145,17 @@ var init_math_bar = __esmMin(() => {
|
|
|
4180
4145
|
children: [createMathBarProperties({ type }), createMathBase({ children })],
|
|
4181
4146
|
name: "m:bar"
|
|
4182
4147
|
});
|
|
4183
|
-
});
|
|
4148
|
+
}));
|
|
4184
4149
|
//#endregion
|
|
4185
4150
|
//#region src/file/paragraph/math/bar/index.ts
|
|
4186
|
-
var init_bar = __esmMin(() => {
|
|
4151
|
+
var init_bar = __esmMin((() => {
|
|
4187
4152
|
init_math_bar();
|
|
4188
4153
|
init_math_bar_properties();
|
|
4189
|
-
});
|
|
4154
|
+
}));
|
|
4190
4155
|
//#endregion
|
|
4191
4156
|
//#region src/file/paragraph/math/border-box/math-border-box-properties.ts
|
|
4192
4157
|
var createMathBorderBoxProperties;
|
|
4193
|
-
var init_math_border_box_properties = __esmMin(() => {
|
|
4158
|
+
var init_math_border_box_properties = __esmMin((() => {
|
|
4194
4159
|
init_xml_components();
|
|
4195
4160
|
createMathBorderBoxProperties = (options) => {
|
|
4196
4161
|
const children = [];
|
|
@@ -4207,11 +4172,11 @@ var init_math_border_box_properties = __esmMin(() => {
|
|
|
4207
4172
|
name: "m:borderBoxPr"
|
|
4208
4173
|
});
|
|
4209
4174
|
};
|
|
4210
|
-
});
|
|
4175
|
+
}));
|
|
4211
4176
|
//#endregion
|
|
4212
4177
|
//#region src/file/paragraph/math/border-box/math-border-box.ts
|
|
4213
4178
|
var MathBorderBox;
|
|
4214
|
-
var init_math_border_box = __esmMin(() => {
|
|
4179
|
+
var init_math_border_box = __esmMin((() => {
|
|
4215
4180
|
init_xml_components();
|
|
4216
4181
|
init_n_ary();
|
|
4217
4182
|
init_math_border_box_properties();
|
|
@@ -4222,17 +4187,17 @@ var init_math_border_box = __esmMin(() => {
|
|
|
4222
4187
|
this.root.push(createMathBase({ children: options.children }));
|
|
4223
4188
|
}
|
|
4224
4189
|
};
|
|
4225
|
-
});
|
|
4190
|
+
}));
|
|
4226
4191
|
//#endregion
|
|
4227
4192
|
//#region src/file/paragraph/math/border-box/index.ts
|
|
4228
|
-
var init_border_box = __esmMin(() => {
|
|
4193
|
+
var init_border_box = __esmMin((() => {
|
|
4229
4194
|
init_math_border_box();
|
|
4230
4195
|
init_math_border_box_properties();
|
|
4231
|
-
});
|
|
4196
|
+
}));
|
|
4232
4197
|
//#endregion
|
|
4233
4198
|
//#region src/file/paragraph/math/box/math-box-properties.ts
|
|
4234
4199
|
var createMathBoxProperties;
|
|
4235
|
-
var init_math_box_properties = __esmMin(() => {
|
|
4200
|
+
var init_math_box_properties = __esmMin((() => {
|
|
4236
4201
|
init_xml_components();
|
|
4237
4202
|
createMathBoxProperties = (options) => {
|
|
4238
4203
|
const children = [];
|
|
@@ -4245,11 +4210,11 @@ var init_math_box_properties = __esmMin(() => {
|
|
|
4245
4210
|
name: "m:boxPr"
|
|
4246
4211
|
});
|
|
4247
4212
|
};
|
|
4248
|
-
});
|
|
4213
|
+
}));
|
|
4249
4214
|
//#endregion
|
|
4250
4215
|
//#region src/file/paragraph/math/box/math-box.ts
|
|
4251
4216
|
var MathBox;
|
|
4252
|
-
var init_math_box = __esmMin(() => {
|
|
4217
|
+
var init_math_box = __esmMin((() => {
|
|
4253
4218
|
init_xml_components();
|
|
4254
4219
|
init_n_ary();
|
|
4255
4220
|
init_math_box_properties();
|
|
@@ -4260,17 +4225,17 @@ var init_math_box = __esmMin(() => {
|
|
|
4260
4225
|
this.root.push(createMathBase({ children: options.children }));
|
|
4261
4226
|
}
|
|
4262
4227
|
};
|
|
4263
|
-
});
|
|
4228
|
+
}));
|
|
4264
4229
|
//#endregion
|
|
4265
4230
|
//#region src/file/paragraph/math/box/index.ts
|
|
4266
|
-
var init_box = __esmMin(() => {
|
|
4231
|
+
var init_box = __esmMin((() => {
|
|
4267
4232
|
init_math_box();
|
|
4268
4233
|
init_math_box_properties();
|
|
4269
|
-
});
|
|
4234
|
+
}));
|
|
4270
4235
|
//#endregion
|
|
4271
4236
|
//#region src/file/paragraph/math/brackets/math-beginning-character.ts
|
|
4272
4237
|
var createMathBeginningCharacter;
|
|
4273
|
-
var init_math_beginning_character = __esmMin(() => {
|
|
4238
|
+
var init_math_beginning_character = __esmMin((() => {
|
|
4274
4239
|
init_xml_components();
|
|
4275
4240
|
createMathBeginningCharacter = ({ character }) => new BuilderElement({
|
|
4276
4241
|
attributes: { character: {
|
|
@@ -4279,11 +4244,11 @@ var init_math_beginning_character = __esmMin(() => {
|
|
|
4279
4244
|
} },
|
|
4280
4245
|
name: "m:begChr"
|
|
4281
4246
|
});
|
|
4282
|
-
});
|
|
4247
|
+
}));
|
|
4283
4248
|
//#endregion
|
|
4284
4249
|
//#region src/file/paragraph/math/brackets/math-ending-char.ts
|
|
4285
4250
|
var createMathEndingCharacter;
|
|
4286
|
-
var init_math_ending_char = __esmMin(() => {
|
|
4251
|
+
var init_math_ending_char = __esmMin((() => {
|
|
4287
4252
|
init_xml_components();
|
|
4288
4253
|
createMathEndingCharacter = ({ character }) => new BuilderElement({
|
|
4289
4254
|
attributes: { character: {
|
|
@@ -4292,11 +4257,11 @@ var init_math_ending_char = __esmMin(() => {
|
|
|
4292
4257
|
} },
|
|
4293
4258
|
name: "m:endChr"
|
|
4294
4259
|
});
|
|
4295
|
-
});
|
|
4260
|
+
}));
|
|
4296
4261
|
//#endregion
|
|
4297
4262
|
//#region src/file/paragraph/math/brackets/math-bracket-properties.ts
|
|
4298
4263
|
var createMathBracketProperties;
|
|
4299
|
-
var init_math_bracket_properties = __esmMin(() => {
|
|
4264
|
+
var init_math_bracket_properties = __esmMin((() => {
|
|
4300
4265
|
init_xml_components();
|
|
4301
4266
|
init_math_beginning_character();
|
|
4302
4267
|
init_math_ending_char();
|
|
@@ -4324,11 +4289,11 @@ var init_math_bracket_properties = __esmMin(() => {
|
|
|
4324
4289
|
name: "m:dPr"
|
|
4325
4290
|
});
|
|
4326
4291
|
};
|
|
4327
|
-
});
|
|
4292
|
+
}));
|
|
4328
4293
|
//#endregion
|
|
4329
4294
|
//#region src/file/paragraph/math/brackets/math-round-brackets.ts
|
|
4330
4295
|
var MathRoundBrackets;
|
|
4331
|
-
var init_math_round_brackets = __esmMin(() => {
|
|
4296
|
+
var init_math_round_brackets = __esmMin((() => {
|
|
4332
4297
|
init_xml_components();
|
|
4333
4298
|
init_n_ary();
|
|
4334
4299
|
init_math_bracket_properties();
|
|
@@ -4339,11 +4304,11 @@ var init_math_round_brackets = __esmMin(() => {
|
|
|
4339
4304
|
this.root.push(createMathBase({ children: options.children }));
|
|
4340
4305
|
}
|
|
4341
4306
|
};
|
|
4342
|
-
});
|
|
4307
|
+
}));
|
|
4343
4308
|
//#endregion
|
|
4344
4309
|
//#region src/file/paragraph/math/brackets/math-square-brackets.ts
|
|
4345
4310
|
var MathSquareBrackets;
|
|
4346
|
-
var init_math_square_brackets = __esmMin(() => {
|
|
4311
|
+
var init_math_square_brackets = __esmMin((() => {
|
|
4347
4312
|
init_xml_components();
|
|
4348
4313
|
init_n_ary();
|
|
4349
4314
|
init_math_bracket_properties();
|
|
@@ -4357,11 +4322,11 @@ var init_math_square_brackets = __esmMin(() => {
|
|
|
4357
4322
|
this.root.push(createMathBase({ children: options.children }));
|
|
4358
4323
|
}
|
|
4359
4324
|
};
|
|
4360
|
-
});
|
|
4325
|
+
}));
|
|
4361
4326
|
//#endregion
|
|
4362
4327
|
//#region src/file/paragraph/math/brackets/math-curly-brackets.ts
|
|
4363
4328
|
var MathCurlyBrackets;
|
|
4364
|
-
var init_math_curly_brackets = __esmMin(() => {
|
|
4329
|
+
var init_math_curly_brackets = __esmMin((() => {
|
|
4365
4330
|
init_xml_components();
|
|
4366
4331
|
init_n_ary();
|
|
4367
4332
|
init_math_bracket_properties();
|
|
@@ -4375,11 +4340,11 @@ var init_math_curly_brackets = __esmMin(() => {
|
|
|
4375
4340
|
this.root.push(createMathBase({ children: options.children }));
|
|
4376
4341
|
}
|
|
4377
4342
|
};
|
|
4378
|
-
});
|
|
4343
|
+
}));
|
|
4379
4344
|
//#endregion
|
|
4380
4345
|
//#region src/file/paragraph/math/brackets/math-angled-brackets.ts
|
|
4381
4346
|
var MathAngledBrackets;
|
|
4382
|
-
var init_math_angled_brackets = __esmMin(() => {
|
|
4347
|
+
var init_math_angled_brackets = __esmMin((() => {
|
|
4383
4348
|
init_xml_components();
|
|
4384
4349
|
init_n_ary();
|
|
4385
4350
|
init_math_bracket_properties();
|
|
@@ -4393,19 +4358,19 @@ var init_math_angled_brackets = __esmMin(() => {
|
|
|
4393
4358
|
this.root.push(createMathBase({ children: options.children }));
|
|
4394
4359
|
}
|
|
4395
4360
|
};
|
|
4396
|
-
});
|
|
4361
|
+
}));
|
|
4397
4362
|
//#endregion
|
|
4398
4363
|
//#region src/file/paragraph/math/brackets/index.ts
|
|
4399
|
-
var init_brackets = __esmMin(() => {
|
|
4364
|
+
var init_brackets = __esmMin((() => {
|
|
4400
4365
|
init_math_round_brackets();
|
|
4401
4366
|
init_math_square_brackets();
|
|
4402
4367
|
init_math_curly_brackets();
|
|
4403
4368
|
init_math_angled_brackets();
|
|
4404
|
-
});
|
|
4369
|
+
}));
|
|
4405
4370
|
//#endregion
|
|
4406
4371
|
//#region src/file/paragraph/math/eq-arr/math-eq-arr-properties.ts
|
|
4407
4372
|
var createMathEqArrProperties;
|
|
4408
|
-
var init_math_eq_arr_properties = __esmMin(() => {
|
|
4373
|
+
var init_math_eq_arr_properties = __esmMin((() => {
|
|
4409
4374
|
init_xml_components();
|
|
4410
4375
|
createMathEqArrProperties = (options) => {
|
|
4411
4376
|
const children = [];
|
|
@@ -4437,11 +4402,11 @@ var init_math_eq_arr_properties = __esmMin(() => {
|
|
|
4437
4402
|
name: "m:eqArrPr"
|
|
4438
4403
|
});
|
|
4439
4404
|
};
|
|
4440
|
-
});
|
|
4405
|
+
}));
|
|
4441
4406
|
//#endregion
|
|
4442
4407
|
//#region src/file/paragraph/math/eq-arr/math-eq-arr.ts
|
|
4443
4408
|
var MathEqArr;
|
|
4444
|
-
var init_math_eq_arr = __esmMin(() => {
|
|
4409
|
+
var init_math_eq_arr = __esmMin((() => {
|
|
4445
4410
|
init_xml_components();
|
|
4446
4411
|
init_n_ary();
|
|
4447
4412
|
init_math_eq_arr_properties();
|
|
@@ -4452,17 +4417,17 @@ var init_math_eq_arr = __esmMin(() => {
|
|
|
4452
4417
|
for (const row of options.rows) this.root.push(createMathBase({ children: row }));
|
|
4453
4418
|
}
|
|
4454
4419
|
};
|
|
4455
|
-
});
|
|
4420
|
+
}));
|
|
4456
4421
|
//#endregion
|
|
4457
4422
|
//#region src/file/paragraph/math/eq-arr/index.ts
|
|
4458
|
-
var init_eq_arr = __esmMin(() => {
|
|
4423
|
+
var init_eq_arr = __esmMin((() => {
|
|
4459
4424
|
init_math_eq_arr();
|
|
4460
4425
|
init_math_eq_arr_properties();
|
|
4461
|
-
});
|
|
4426
|
+
}));
|
|
4462
4427
|
//#endregion
|
|
4463
4428
|
//#region src/file/paragraph/math/fraction/math-denominator.ts
|
|
4464
4429
|
var MathDenominator;
|
|
4465
|
-
var init_math_denominator = __esmMin(() => {
|
|
4430
|
+
var init_math_denominator = __esmMin((() => {
|
|
4466
4431
|
init_xml_components();
|
|
4467
4432
|
MathDenominator = class extends XmlComponent {
|
|
4468
4433
|
constructor(children) {
|
|
@@ -4470,11 +4435,11 @@ var init_math_denominator = __esmMin(() => {
|
|
|
4470
4435
|
for (const child of children) this.root.push(child);
|
|
4471
4436
|
}
|
|
4472
4437
|
};
|
|
4473
|
-
});
|
|
4438
|
+
}));
|
|
4474
4439
|
//#endregion
|
|
4475
4440
|
//#region src/file/paragraph/math/fraction/math-fraction-properties.ts
|
|
4476
4441
|
var FractionType, createMathFractionProperties;
|
|
4477
|
-
var init_math_fraction_properties = __esmMin(() => {
|
|
4442
|
+
var init_math_fraction_properties = __esmMin((() => {
|
|
4478
4443
|
init_xml_components();
|
|
4479
4444
|
FractionType = {
|
|
4480
4445
|
/** Standard fraction with horizontal bar: a/b */
|
|
@@ -4500,11 +4465,11 @@ var init_math_fraction_properties = __esmMin(() => {
|
|
|
4500
4465
|
name: "m:fPr"
|
|
4501
4466
|
});
|
|
4502
4467
|
};
|
|
4503
|
-
});
|
|
4468
|
+
}));
|
|
4504
4469
|
//#endregion
|
|
4505
4470
|
//#region src/file/paragraph/math/fraction/math-numerator.ts
|
|
4506
4471
|
var MathNumerator;
|
|
4507
|
-
var init_math_numerator = __esmMin(() => {
|
|
4472
|
+
var init_math_numerator = __esmMin((() => {
|
|
4508
4473
|
init_xml_components();
|
|
4509
4474
|
MathNumerator = class extends XmlComponent {
|
|
4510
4475
|
constructor(children) {
|
|
@@ -4512,11 +4477,11 @@ var init_math_numerator = __esmMin(() => {
|
|
|
4512
4477
|
for (const child of children) this.root.push(child);
|
|
4513
4478
|
}
|
|
4514
4479
|
};
|
|
4515
|
-
});
|
|
4480
|
+
}));
|
|
4516
4481
|
//#endregion
|
|
4517
4482
|
//#region src/file/paragraph/math/fraction/math-fraction.ts
|
|
4518
4483
|
var MathFraction;
|
|
4519
|
-
var init_math_fraction = __esmMin(() => {
|
|
4484
|
+
var init_math_fraction = __esmMin((() => {
|
|
4520
4485
|
init_xml_components();
|
|
4521
4486
|
init_math_denominator();
|
|
4522
4487
|
init_math_fraction_properties();
|
|
@@ -4529,19 +4494,19 @@ var init_math_fraction = __esmMin(() => {
|
|
|
4529
4494
|
this.root.push(new MathDenominator(options.denominator));
|
|
4530
4495
|
}
|
|
4531
4496
|
};
|
|
4532
|
-
});
|
|
4497
|
+
}));
|
|
4533
4498
|
//#endregion
|
|
4534
4499
|
//#region src/file/paragraph/math/fraction/index.ts
|
|
4535
|
-
var init_fraction = __esmMin(() => {
|
|
4500
|
+
var init_fraction = __esmMin((() => {
|
|
4536
4501
|
init_math_fraction();
|
|
4537
4502
|
init_math_fraction_properties();
|
|
4538
4503
|
init_math_denominator();
|
|
4539
4504
|
init_math_numerator();
|
|
4540
|
-
});
|
|
4505
|
+
}));
|
|
4541
4506
|
//#endregion
|
|
4542
4507
|
//#region src/file/paragraph/math/function/math-function-name.ts
|
|
4543
4508
|
var MathFunctionName;
|
|
4544
|
-
var init_math_function_name = __esmMin(() => {
|
|
4509
|
+
var init_math_function_name = __esmMin((() => {
|
|
4545
4510
|
init_xml_components();
|
|
4546
4511
|
MathFunctionName = class extends XmlComponent {
|
|
4547
4512
|
constructor(children) {
|
|
@@ -4549,11 +4514,11 @@ var init_math_function_name = __esmMin(() => {
|
|
|
4549
4514
|
for (const child of children) this.root.push(child);
|
|
4550
4515
|
}
|
|
4551
4516
|
};
|
|
4552
|
-
});
|
|
4517
|
+
}));
|
|
4553
4518
|
//#endregion
|
|
4554
4519
|
//#region src/file/paragraph/math/function/math-function-properties.ts
|
|
4555
4520
|
var createMathFunctionProperties;
|
|
4556
|
-
var init_math_function_properties = __esmMin(() => {
|
|
4521
|
+
var init_math_function_properties = __esmMin((() => {
|
|
4557
4522
|
init_xml_components();
|
|
4558
4523
|
init_math_control_properties();
|
|
4559
4524
|
createMathFunctionProperties = (options) => {
|
|
@@ -4564,11 +4529,11 @@ var init_math_function_properties = __esmMin(() => {
|
|
|
4564
4529
|
name: "m:funcPr"
|
|
4565
4530
|
});
|
|
4566
4531
|
};
|
|
4567
|
-
});
|
|
4532
|
+
}));
|
|
4568
4533
|
//#endregion
|
|
4569
4534
|
//#region src/file/paragraph/math/function/math-function.ts
|
|
4570
4535
|
var MathFunction;
|
|
4571
|
-
var init_math_function = __esmMin(() => {
|
|
4536
|
+
var init_math_function = __esmMin((() => {
|
|
4572
4537
|
init_xml_components();
|
|
4573
4538
|
init_n_ary();
|
|
4574
4539
|
init_math_function_name();
|
|
@@ -4581,18 +4546,18 @@ var init_math_function = __esmMin(() => {
|
|
|
4581
4546
|
this.root.push(createMathBase({ children: options.children }));
|
|
4582
4547
|
}
|
|
4583
4548
|
};
|
|
4584
|
-
});
|
|
4549
|
+
}));
|
|
4585
4550
|
//#endregion
|
|
4586
4551
|
//#region src/file/paragraph/math/function/index.ts
|
|
4587
|
-
var init_function = __esmMin(() => {
|
|
4552
|
+
var init_function = __esmMin((() => {
|
|
4588
4553
|
init_math_function();
|
|
4589
4554
|
init_math_function_name();
|
|
4590
4555
|
init_math_function_properties();
|
|
4591
|
-
});
|
|
4556
|
+
}));
|
|
4592
4557
|
//#endregion
|
|
4593
4558
|
//#region src/file/paragraph/math/group-chr/math-group-chr-properties.ts
|
|
4594
4559
|
var createMathGroupChrProperties;
|
|
4595
|
-
var init_math_group_chr_properties = __esmMin(() => {
|
|
4560
|
+
var init_math_group_chr_properties = __esmMin((() => {
|
|
4596
4561
|
init_xml_components();
|
|
4597
4562
|
createMathGroupChrProperties = (options) => {
|
|
4598
4563
|
const children = [];
|
|
@@ -4622,11 +4587,11 @@ var init_math_group_chr_properties = __esmMin(() => {
|
|
|
4622
4587
|
name: "m:groupChrPr"
|
|
4623
4588
|
});
|
|
4624
4589
|
};
|
|
4625
|
-
});
|
|
4590
|
+
}));
|
|
4626
4591
|
//#endregion
|
|
4627
4592
|
//#region src/file/paragraph/math/group-chr/math-group-chr.ts
|
|
4628
4593
|
var MathGroupChr;
|
|
4629
|
-
var init_math_group_chr = __esmMin(() => {
|
|
4594
|
+
var init_math_group_chr = __esmMin((() => {
|
|
4630
4595
|
init_xml_components();
|
|
4631
4596
|
init_n_ary();
|
|
4632
4597
|
init_math_group_chr_properties();
|
|
@@ -4637,17 +4602,17 @@ var init_math_group_chr = __esmMin(() => {
|
|
|
4637
4602
|
this.root.push(createMathBase({ children: options.children }));
|
|
4638
4603
|
}
|
|
4639
4604
|
};
|
|
4640
|
-
});
|
|
4605
|
+
}));
|
|
4641
4606
|
//#endregion
|
|
4642
4607
|
//#region src/file/paragraph/math/group-chr/index.ts
|
|
4643
|
-
var init_group_chr = __esmMin(() => {
|
|
4608
|
+
var init_group_chr = __esmMin((() => {
|
|
4644
4609
|
init_math_group_chr();
|
|
4645
4610
|
init_math_group_chr_properties();
|
|
4646
|
-
});
|
|
4611
|
+
}));
|
|
4647
4612
|
//#endregion
|
|
4648
4613
|
//#region src/file/paragraph/math/math-run-properties.ts
|
|
4649
4614
|
var createMathRunProperties;
|
|
4650
|
-
var init_math_run_properties = __esmMin(() => {
|
|
4615
|
+
var init_math_run_properties = __esmMin((() => {
|
|
4651
4616
|
init_xml_components();
|
|
4652
4617
|
createMathRunProperties = (options) => {
|
|
4653
4618
|
const children = [];
|
|
@@ -4682,11 +4647,11 @@ var init_math_run_properties = __esmMin(() => {
|
|
|
4682
4647
|
name: "m:rPr"
|
|
4683
4648
|
});
|
|
4684
4649
|
};
|
|
4685
|
-
});
|
|
4650
|
+
}));
|
|
4686
4651
|
//#endregion
|
|
4687
4652
|
//#region src/file/paragraph/math/math-text.ts
|
|
4688
4653
|
var MathText;
|
|
4689
|
-
var init_math_text = __esmMin(() => {
|
|
4654
|
+
var init_math_text = __esmMin((() => {
|
|
4690
4655
|
init_xml_components();
|
|
4691
4656
|
MathText = class extends XmlComponent {
|
|
4692
4657
|
constructor(text) {
|
|
@@ -4694,11 +4659,11 @@ var init_math_text = __esmMin(() => {
|
|
|
4694
4659
|
this.root.push(text);
|
|
4695
4660
|
}
|
|
4696
4661
|
};
|
|
4697
|
-
});
|
|
4662
|
+
}));
|
|
4698
4663
|
//#endregion
|
|
4699
4664
|
//#region src/file/paragraph/math/math-run.ts
|
|
4700
4665
|
var MathRun;
|
|
4701
|
-
var init_math_run = __esmMin(() => {
|
|
4666
|
+
var init_math_run = __esmMin((() => {
|
|
4702
4667
|
init_xml_components();
|
|
4703
4668
|
init_math_run_properties();
|
|
4704
4669
|
init_math_text();
|
|
@@ -4710,11 +4675,11 @@ var init_math_run = __esmMin(() => {
|
|
|
4710
4675
|
this.root.push(new MathText(options.text));
|
|
4711
4676
|
}
|
|
4712
4677
|
};
|
|
4713
|
-
});
|
|
4678
|
+
}));
|
|
4714
4679
|
//#endregion
|
|
4715
4680
|
//#region src/file/paragraph/math/matrix/math-matrix-properties.ts
|
|
4716
4681
|
var createMathMatrixProperties;
|
|
4717
|
-
var init_math_matrix_properties = __esmMin(() => {
|
|
4682
|
+
var init_math_matrix_properties = __esmMin((() => {
|
|
4718
4683
|
init_xml_components();
|
|
4719
4684
|
createMathMatrixProperties = (options) => {
|
|
4720
4685
|
const children = [];
|
|
@@ -4766,11 +4731,11 @@ var init_math_matrix_properties = __esmMin(() => {
|
|
|
4766
4731
|
name: "m:mPr"
|
|
4767
4732
|
});
|
|
4768
4733
|
};
|
|
4769
|
-
});
|
|
4734
|
+
}));
|
|
4770
4735
|
//#endregion
|
|
4771
4736
|
//#region src/file/paragraph/math/matrix/math-matrix.ts
|
|
4772
4737
|
var MathMatrix;
|
|
4773
|
-
var init_math_matrix = __esmMin(() => {
|
|
4738
|
+
var init_math_matrix = __esmMin((() => {
|
|
4774
4739
|
init_xml_components();
|
|
4775
4740
|
init_n_ary();
|
|
4776
4741
|
init_math_matrix_properties();
|
|
@@ -4784,11 +4749,11 @@ var init_math_matrix = __esmMin(() => {
|
|
|
4784
4749
|
}));
|
|
4785
4750
|
}
|
|
4786
4751
|
};
|
|
4787
|
-
});
|
|
4752
|
+
}));
|
|
4788
4753
|
//#endregion
|
|
4789
4754
|
//#region src/file/paragraph/math/phant/math-phant-properties.ts
|
|
4790
4755
|
var createMathPhantProperties;
|
|
4791
|
-
var init_math_phant_properties = __esmMin(() => {
|
|
4756
|
+
var init_math_phant_properties = __esmMin((() => {
|
|
4792
4757
|
init_xml_components();
|
|
4793
4758
|
createMathPhantProperties = (options) => {
|
|
4794
4759
|
const children = [];
|
|
@@ -4802,11 +4767,11 @@ var init_math_phant_properties = __esmMin(() => {
|
|
|
4802
4767
|
name: "m:phantPr"
|
|
4803
4768
|
});
|
|
4804
4769
|
};
|
|
4805
|
-
});
|
|
4770
|
+
}));
|
|
4806
4771
|
//#endregion
|
|
4807
4772
|
//#region src/file/paragraph/math/phant/math-phant.ts
|
|
4808
4773
|
var MathPhant;
|
|
4809
|
-
var init_math_phant = __esmMin(() => {
|
|
4774
|
+
var init_math_phant = __esmMin((() => {
|
|
4810
4775
|
init_xml_components();
|
|
4811
4776
|
init_n_ary();
|
|
4812
4777
|
init_math_phant_properties();
|
|
@@ -4817,11 +4782,11 @@ var init_math_phant = __esmMin(() => {
|
|
|
4817
4782
|
this.root.push(createMathBase({ children: options.children }));
|
|
4818
4783
|
}
|
|
4819
4784
|
};
|
|
4820
|
-
});
|
|
4785
|
+
}));
|
|
4821
4786
|
//#endregion
|
|
4822
4787
|
//#region src/file/paragraph/math/radical/math-degree.ts
|
|
4823
4788
|
var MathDegree;
|
|
4824
|
-
var init_math_degree = __esmMin(() => {
|
|
4789
|
+
var init_math_degree = __esmMin((() => {
|
|
4825
4790
|
init_xml_components();
|
|
4826
4791
|
MathDegree = class extends XmlComponent {
|
|
4827
4792
|
constructor(children) {
|
|
@@ -4829,11 +4794,11 @@ var init_math_degree = __esmMin(() => {
|
|
|
4829
4794
|
if (children) for (const child of children) this.root.push(child);
|
|
4830
4795
|
}
|
|
4831
4796
|
};
|
|
4832
|
-
});
|
|
4797
|
+
}));
|
|
4833
4798
|
//#endregion
|
|
4834
4799
|
//#region src/file/paragraph/math/radical/math-degree-hide.ts
|
|
4835
4800
|
var MathDegreeHide;
|
|
4836
|
-
var init_math_degree_hide = __esmMin(() => {
|
|
4801
|
+
var init_math_degree_hide = __esmMin((() => {
|
|
4837
4802
|
init_xml_components();
|
|
4838
4803
|
MathDegreeHide = class extends XmlComponent {
|
|
4839
4804
|
constructor() {
|
|
@@ -4841,11 +4806,11 @@ var init_math_degree_hide = __esmMin(() => {
|
|
|
4841
4806
|
this.root.push({ _attr: { "m:val": 1 } });
|
|
4842
4807
|
}
|
|
4843
4808
|
};
|
|
4844
|
-
});
|
|
4809
|
+
}));
|
|
4845
4810
|
//#endregion
|
|
4846
4811
|
//#region src/file/paragraph/math/radical/math-radical-properties.ts
|
|
4847
4812
|
var MathRadicalProperties;
|
|
4848
|
-
var init_math_radical_properties = __esmMin(() => {
|
|
4813
|
+
var init_math_radical_properties = __esmMin((() => {
|
|
4849
4814
|
init_xml_components();
|
|
4850
4815
|
init_math_degree_hide();
|
|
4851
4816
|
MathRadicalProperties = class extends XmlComponent {
|
|
@@ -4854,11 +4819,11 @@ var init_math_radical_properties = __esmMin(() => {
|
|
|
4854
4819
|
if (!hasDegree) this.root.push(new MathDegreeHide());
|
|
4855
4820
|
}
|
|
4856
4821
|
};
|
|
4857
|
-
});
|
|
4822
|
+
}));
|
|
4858
4823
|
//#endregion
|
|
4859
4824
|
//#region src/file/paragraph/math/radical/math-radical.ts
|
|
4860
4825
|
var MathRadical;
|
|
4861
|
-
var init_math_radical = __esmMin(() => {
|
|
4826
|
+
var init_math_radical = __esmMin((() => {
|
|
4862
4827
|
init_xml_components();
|
|
4863
4828
|
init_n_ary();
|
|
4864
4829
|
init_math_degree();
|
|
@@ -4871,18 +4836,18 @@ var init_math_radical = __esmMin(() => {
|
|
|
4871
4836
|
this.root.push(createMathBase({ children: options.children }));
|
|
4872
4837
|
}
|
|
4873
4838
|
};
|
|
4874
|
-
});
|
|
4839
|
+
}));
|
|
4875
4840
|
//#endregion
|
|
4876
4841
|
//#region src/file/paragraph/math/script/super-script/math-super-script-function-properties.ts
|
|
4877
4842
|
var createMathSuperScriptProperties;
|
|
4878
|
-
var init_math_super_script_function_properties = __esmMin(() => {
|
|
4843
|
+
var init_math_super_script_function_properties = __esmMin((() => {
|
|
4879
4844
|
init_xml_components();
|
|
4880
4845
|
createMathSuperScriptProperties = () => new BuilderElement({ name: "m:sSupPr" });
|
|
4881
|
-
});
|
|
4846
|
+
}));
|
|
4882
4847
|
//#endregion
|
|
4883
4848
|
//#region src/file/paragraph/math/script/super-script/math-super-script-function.ts
|
|
4884
4849
|
var MathSuperScript;
|
|
4885
|
-
var init_math_super_script_function = __esmMin(() => {
|
|
4850
|
+
var init_math_super_script_function = __esmMin((() => {
|
|
4886
4851
|
init_xml_components();
|
|
4887
4852
|
init_n_ary();
|
|
4888
4853
|
init_math_super_script_function_properties();
|
|
@@ -4894,24 +4859,24 @@ var init_math_super_script_function = __esmMin(() => {
|
|
|
4894
4859
|
this.root.push(createMathSuperScriptElement({ children: options.superScript }));
|
|
4895
4860
|
}
|
|
4896
4861
|
};
|
|
4897
|
-
});
|
|
4862
|
+
}));
|
|
4898
4863
|
//#endregion
|
|
4899
4864
|
//#region src/file/paragraph/math/script/super-script/index.ts
|
|
4900
|
-
var init_super_script = __esmMin(() => {
|
|
4865
|
+
var init_super_script = __esmMin((() => {
|
|
4901
4866
|
init_math_super_script_function();
|
|
4902
4867
|
init_math_super_script_function_properties();
|
|
4903
|
-
});
|
|
4868
|
+
}));
|
|
4904
4869
|
//#endregion
|
|
4905
4870
|
//#region src/file/paragraph/math/script/sub-script/math-sub-script-function-properties.ts
|
|
4906
4871
|
var createMathSubScriptProperties;
|
|
4907
|
-
var init_math_sub_script_function_properties = __esmMin(() => {
|
|
4872
|
+
var init_math_sub_script_function_properties = __esmMin((() => {
|
|
4908
4873
|
init_xml_components();
|
|
4909
4874
|
createMathSubScriptProperties = () => new BuilderElement({ name: "m:sSubPr" });
|
|
4910
|
-
});
|
|
4875
|
+
}));
|
|
4911
4876
|
//#endregion
|
|
4912
4877
|
//#region src/file/paragraph/math/script/sub-script/math-sub-script-function.ts
|
|
4913
4878
|
var MathSubScript;
|
|
4914
|
-
var init_math_sub_script_function = __esmMin(() => {
|
|
4879
|
+
var init_math_sub_script_function = __esmMin((() => {
|
|
4915
4880
|
init_xml_components();
|
|
4916
4881
|
init_n_ary();
|
|
4917
4882
|
init_math_sub_script_function_properties();
|
|
@@ -4923,17 +4888,17 @@ var init_math_sub_script_function = __esmMin(() => {
|
|
|
4923
4888
|
this.root.push(createMathSubScriptElement({ children: options.subScript }));
|
|
4924
4889
|
}
|
|
4925
4890
|
};
|
|
4926
|
-
});
|
|
4891
|
+
}));
|
|
4927
4892
|
//#endregion
|
|
4928
4893
|
//#region src/file/paragraph/math/script/sub-script/index.ts
|
|
4929
|
-
var init_sub_script = __esmMin(() => {
|
|
4894
|
+
var init_sub_script = __esmMin((() => {
|
|
4930
4895
|
init_math_sub_script_function();
|
|
4931
4896
|
init_math_sub_script_function_properties();
|
|
4932
|
-
});
|
|
4897
|
+
}));
|
|
4933
4898
|
//#endregion
|
|
4934
4899
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.ts
|
|
4935
4900
|
var createMathSubSuperScriptProperties;
|
|
4936
|
-
var init_math_sub_super_script_function_properties = __esmMin(() => {
|
|
4901
|
+
var init_math_sub_super_script_function_properties = __esmMin((() => {
|
|
4937
4902
|
init_xml_components();
|
|
4938
4903
|
createMathSubSuperScriptProperties = (options) => {
|
|
4939
4904
|
const children = [];
|
|
@@ -4943,11 +4908,11 @@ var init_math_sub_super_script_function_properties = __esmMin(() => {
|
|
|
4943
4908
|
name: "m:sSubSupPr"
|
|
4944
4909
|
});
|
|
4945
4910
|
};
|
|
4946
|
-
});
|
|
4911
|
+
}));
|
|
4947
4912
|
//#endregion
|
|
4948
4913
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.ts
|
|
4949
4914
|
var MathSubSuperScript;
|
|
4950
|
-
var init_math_sub_super_script_function = __esmMin(() => {
|
|
4915
|
+
var init_math_sub_super_script_function = __esmMin((() => {
|
|
4951
4916
|
init_xml_components();
|
|
4952
4917
|
init_n_ary();
|
|
4953
4918
|
init_math_sub_super_script_function_properties();
|
|
@@ -4960,24 +4925,24 @@ var init_math_sub_super_script_function = __esmMin(() => {
|
|
|
4960
4925
|
this.root.push(createMathSuperScriptElement({ children: options.superScript }));
|
|
4961
4926
|
}
|
|
4962
4927
|
};
|
|
4963
|
-
});
|
|
4928
|
+
}));
|
|
4964
4929
|
//#endregion
|
|
4965
4930
|
//#region src/file/paragraph/math/script/sub-super-script/index.ts
|
|
4966
|
-
var init_sub_super_script = __esmMin(() => {
|
|
4931
|
+
var init_sub_super_script = __esmMin((() => {
|
|
4967
4932
|
init_math_sub_super_script_function();
|
|
4968
4933
|
init_math_sub_super_script_function_properties();
|
|
4969
|
-
});
|
|
4934
|
+
}));
|
|
4970
4935
|
//#endregion
|
|
4971
4936
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.ts
|
|
4972
4937
|
var createMathPreSubSuperScriptProperties;
|
|
4973
|
-
var init_math_pre_sub_super_script_function_properties = __esmMin(() => {
|
|
4938
|
+
var init_math_pre_sub_super_script_function_properties = __esmMin((() => {
|
|
4974
4939
|
init_xml_components();
|
|
4975
4940
|
createMathPreSubSuperScriptProperties = () => new BuilderElement({ name: "m:sPrePr" });
|
|
4976
|
-
});
|
|
4941
|
+
}));
|
|
4977
4942
|
//#endregion
|
|
4978
4943
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.ts
|
|
4979
4944
|
var MathPreSubSuperScript;
|
|
4980
|
-
var init_math_pre_sub_super_script_function = __esmMin(() => {
|
|
4945
|
+
var init_math_pre_sub_super_script_function = __esmMin((() => {
|
|
4981
4946
|
init_xml_components();
|
|
4982
4947
|
init_n_ary();
|
|
4983
4948
|
init_math_pre_sub_super_script_function_properties();
|
|
@@ -4994,21 +4959,21 @@ var init_math_pre_sub_super_script_function = __esmMin(() => {
|
|
|
4994
4959
|
});
|
|
4995
4960
|
}
|
|
4996
4961
|
};
|
|
4997
|
-
});
|
|
4962
|
+
}));
|
|
4998
4963
|
//#endregion
|
|
4999
4964
|
//#region src/file/paragraph/math/script/pre-sub-super-script/index.ts
|
|
5000
|
-
var init_pre_sub_super_script = __esmMin(() => {
|
|
4965
|
+
var init_pre_sub_super_script = __esmMin((() => {
|
|
5001
4966
|
init_math_pre_sub_super_script_function();
|
|
5002
4967
|
init_math_pre_sub_super_script_function_properties();
|
|
5003
|
-
});
|
|
4968
|
+
}));
|
|
5004
4969
|
//#endregion
|
|
5005
4970
|
//#region src/file/paragraph/math/script/index.ts
|
|
5006
|
-
var init_script = __esmMin(() => {
|
|
4971
|
+
var init_script = __esmMin((() => {
|
|
5007
4972
|
init_super_script();
|
|
5008
4973
|
init_sub_script();
|
|
5009
4974
|
init_sub_super_script();
|
|
5010
4975
|
init_pre_sub_super_script();
|
|
5011
|
-
});
|
|
4976
|
+
}));
|
|
5012
4977
|
//#endregion
|
|
5013
4978
|
//#region src/file/paragraph/math/math-coerce.ts
|
|
5014
4979
|
/** Coerce an array of MathJson values to MathComponent instances. */
|
|
@@ -5172,7 +5137,7 @@ function coerceMathJson(value) {
|
|
|
5172
5137
|
properties: value.properties
|
|
5173
5138
|
});
|
|
5174
5139
|
}
|
|
5175
|
-
var init_math_coerce = __esmMin(() => {
|
|
5140
|
+
var init_math_coerce = __esmMin((() => {
|
|
5176
5141
|
init_xml_components();
|
|
5177
5142
|
init_math_accent();
|
|
5178
5143
|
init_math_bar();
|
|
@@ -5189,11 +5154,11 @@ var init_math_coerce = __esmMin(() => {
|
|
|
5189
5154
|
init_math_phant();
|
|
5190
5155
|
init_math_radical();
|
|
5191
5156
|
init_script();
|
|
5192
|
-
});
|
|
5157
|
+
}));
|
|
5193
5158
|
//#endregion
|
|
5194
5159
|
//#region src/file/paragraph/math/math.ts
|
|
5195
5160
|
var Math$1;
|
|
5196
|
-
var init_math$1 = __esmMin(() => {
|
|
5161
|
+
var init_math$1 = __esmMin((() => {
|
|
5197
5162
|
init_xml_components();
|
|
5198
5163
|
Math$1 = class extends XmlComponent {
|
|
5199
5164
|
constructor(options) {
|
|
@@ -5201,7 +5166,7 @@ var init_math$1 = __esmMin(() => {
|
|
|
5201
5166
|
for (const child of options.children) this.root.push(child);
|
|
5202
5167
|
}
|
|
5203
5168
|
};
|
|
5204
|
-
});
|
|
5169
|
+
}));
|
|
5205
5170
|
//#endregion
|
|
5206
5171
|
//#region src/file/paragraph/math/math-parse.ts
|
|
5207
5172
|
/**
|
|
@@ -5429,17 +5394,17 @@ function parseMathArg(parent, childName) {
|
|
|
5429
5394
|
if (!container) return [];
|
|
5430
5395
|
return parseMathChildren(container);
|
|
5431
5396
|
}
|
|
5432
|
-
var init_math_parse = __esmMin(() => {});
|
|
5397
|
+
var init_math_parse = __esmMin((() => {}));
|
|
5433
5398
|
//#endregion
|
|
5434
5399
|
//#region src/file/paragraph/math/math-component.ts
|
|
5435
5400
|
var WORKAROUND4;
|
|
5436
|
-
var init_math_component = __esmMin(() => {
|
|
5401
|
+
var init_math_component = __esmMin((() => {
|
|
5437
5402
|
WORKAROUND4 = "";
|
|
5438
|
-
});
|
|
5403
|
+
}));
|
|
5439
5404
|
//#endregion
|
|
5440
5405
|
//#region src/file/paragraph/math/math-para.ts
|
|
5441
5406
|
var createMathParagraphProperties, MathParagraph;
|
|
5442
|
-
var init_math_para = __esmMin(() => {
|
|
5407
|
+
var init_math_para = __esmMin((() => {
|
|
5443
5408
|
init_xml_components();
|
|
5444
5409
|
init_math$1();
|
|
5445
5410
|
createMathParagraphProperties = (justification) => new BuilderElement({
|
|
@@ -5459,11 +5424,11 @@ var init_math_para = __esmMin(() => {
|
|
|
5459
5424
|
for (const child of options.children) this.root.push(new Math$1(child));
|
|
5460
5425
|
}
|
|
5461
5426
|
};
|
|
5462
|
-
});
|
|
5427
|
+
}));
|
|
5463
5428
|
//#endregion
|
|
5464
5429
|
//#region src/file/paragraph/math/math-pr.ts
|
|
5465
5430
|
var createMathProperties;
|
|
5466
|
-
var init_math_pr = __esmMin(() => {
|
|
5431
|
+
var init_math_pr = __esmMin((() => {
|
|
5467
5432
|
init_xml_components();
|
|
5468
5433
|
createMathProperties = (options) => {
|
|
5469
5434
|
const children = [];
|
|
@@ -5566,29 +5531,29 @@ var init_math_pr = __esmMin(() => {
|
|
|
5566
5531
|
name: "m:mathPr"
|
|
5567
5532
|
});
|
|
5568
5533
|
};
|
|
5569
|
-
});
|
|
5534
|
+
}));
|
|
5570
5535
|
//#endregion
|
|
5571
5536
|
//#region src/file/paragraph/math/matrix/index.ts
|
|
5572
|
-
var init_matrix = __esmMin(() => {
|
|
5537
|
+
var init_matrix = __esmMin((() => {
|
|
5573
5538
|
init_math_matrix();
|
|
5574
5539
|
init_math_matrix_properties();
|
|
5575
|
-
});
|
|
5540
|
+
}));
|
|
5576
5541
|
//#endregion
|
|
5577
5542
|
//#region src/file/paragraph/math/phant/index.ts
|
|
5578
|
-
var init_phant = __esmMin(() => {
|
|
5543
|
+
var init_phant = __esmMin((() => {
|
|
5579
5544
|
init_math_phant();
|
|
5580
5545
|
init_math_phant_properties();
|
|
5581
|
-
});
|
|
5546
|
+
}));
|
|
5582
5547
|
//#endregion
|
|
5583
5548
|
//#region src/file/paragraph/math/radical/index.ts
|
|
5584
|
-
var init_radical = __esmMin(() => {
|
|
5549
|
+
var init_radical = __esmMin((() => {
|
|
5585
5550
|
init_math_degree();
|
|
5586
5551
|
init_math_radical();
|
|
5587
5552
|
init_math_radical_properties();
|
|
5588
|
-
});
|
|
5553
|
+
}));
|
|
5589
5554
|
//#endregion
|
|
5590
5555
|
//#region src/file/paragraph/math/index.ts
|
|
5591
|
-
var init_math = __esmMin(() => {
|
|
5556
|
+
var init_math = __esmMin((() => {
|
|
5592
5557
|
init_accent();
|
|
5593
5558
|
init_bar();
|
|
5594
5559
|
init_border_box();
|
|
@@ -5612,11 +5577,11 @@ var init_math = __esmMin(() => {
|
|
|
5612
5577
|
init_phant();
|
|
5613
5578
|
init_radical();
|
|
5614
5579
|
init_script();
|
|
5615
|
-
});
|
|
5580
|
+
}));
|
|
5616
5581
|
//#endregion
|
|
5617
5582
|
//#region src/file/endnotes/endnote/run/reference-run.ts
|
|
5618
5583
|
var EndnoteIdReference, EndnoteReferenceRun;
|
|
5619
|
-
var init_reference_run$1 = __esmMin(() => {
|
|
5584
|
+
var init_reference_run$1 = __esmMin((() => {
|
|
5620
5585
|
init_run();
|
|
5621
5586
|
init_xml_components();
|
|
5622
5587
|
EndnoteIdReference = class extends XmlComponent {
|
|
@@ -5631,11 +5596,11 @@ var init_reference_run$1 = __esmMin(() => {
|
|
|
5631
5596
|
this.extraChildren.push(new EndnoteIdReference(id));
|
|
5632
5597
|
}
|
|
5633
5598
|
};
|
|
5634
|
-
});
|
|
5599
|
+
}));
|
|
5635
5600
|
//#endregion
|
|
5636
5601
|
//#region src/file/footnotes/footnote/run/reference-run.ts
|
|
5637
5602
|
var FootnoteReference, FootnoteReferenceRun;
|
|
5638
|
-
var init_reference_run = __esmMin(() => {
|
|
5603
|
+
var init_reference_run = __esmMin((() => {
|
|
5639
5604
|
init_run();
|
|
5640
5605
|
init_xml_components();
|
|
5641
5606
|
FootnoteReference = class extends XmlComponent {
|
|
@@ -5655,11 +5620,11 @@ var init_reference_run = __esmMin(() => {
|
|
|
5655
5620
|
this.extraChildren.push(new FootnoteReference(id));
|
|
5656
5621
|
}
|
|
5657
5622
|
};
|
|
5658
|
-
});
|
|
5623
|
+
}));
|
|
5659
5624
|
//#endregion
|
|
5660
5625
|
//#region src/file/paragraph/formatting/spacing.ts
|
|
5661
5626
|
var LineRuleType, createSpacing, buildSpacingObj;
|
|
5662
|
-
var init_spacing = __esmMin(() => {
|
|
5627
|
+
var init_spacing = __esmMin((() => {
|
|
5663
5628
|
init_xml_components();
|
|
5664
5629
|
init_values();
|
|
5665
5630
|
LineRuleType = {
|
|
@@ -5719,11 +5684,11 @@ var init_spacing = __esmMin(() => {
|
|
|
5719
5684
|
"w:line": line,
|
|
5720
5685
|
"w:lineRule": lineRule
|
|
5721
5686
|
});
|
|
5722
|
-
});
|
|
5687
|
+
}));
|
|
5723
5688
|
//#endregion
|
|
5724
5689
|
//#region src/file/paragraph/formatting/style.ts
|
|
5725
5690
|
var HeadingLevel, createParagraphStyle;
|
|
5726
|
-
var init_style = __esmMin(() => {
|
|
5691
|
+
var init_style = __esmMin((() => {
|
|
5727
5692
|
init_xml_components();
|
|
5728
5693
|
HeadingLevel = {
|
|
5729
5694
|
/** Heading 1 style */
|
|
@@ -5748,11 +5713,11 @@ var init_style = __esmMin(() => {
|
|
|
5748
5713
|
} },
|
|
5749
5714
|
name: "w:pStyle"
|
|
5750
5715
|
});
|
|
5751
|
-
});
|
|
5716
|
+
}));
|
|
5752
5717
|
//#endregion
|
|
5753
5718
|
//#region src/file/paragraph/formatting/tab-stop.ts
|
|
5754
5719
|
var TabStopType, LeaderType, TabStopPosition, createTabStopItem, createTabStop, buildTabStopObj;
|
|
5755
|
-
var init_tab_stop = __esmMin(() => {
|
|
5720
|
+
var init_tab_stop = __esmMin((() => {
|
|
5756
5721
|
init_xml_components();
|
|
5757
5722
|
TabStopType = {
|
|
5758
5723
|
/** Left-aligned tab stop */
|
|
@@ -5817,7 +5782,7 @@ MAX: 9026 };
|
|
|
5817
5782
|
"w:pos": position,
|
|
5818
5783
|
"w:leader": leader
|
|
5819
5784
|
})) });
|
|
5820
|
-
});
|
|
5785
|
+
}));
|
|
5821
5786
|
//#endregion
|
|
5822
5787
|
//#region src/file/paragraph/formatting/unordered-list.ts
|
|
5823
5788
|
/**
|
|
@@ -5868,7 +5833,7 @@ function buildNumberProperties(numberId, indentLevel) {
|
|
|
5868
5833
|
return { "w:numPr": [{ "w:ilvl": { _attr: { "w:val": Math.min(indentLevel, 9) } } }, { "w:numId": { _attr: { "w:val": typeof numberId === "string" ? `{${numberId}}` : numberId } } }] };
|
|
5869
5834
|
}
|
|
5870
5835
|
var NumberProperties, IndentLevel, NumberId;
|
|
5871
|
-
var init_unordered_list = __esmMin(() => {
|
|
5836
|
+
var init_unordered_list = __esmMin((() => {
|
|
5872
5837
|
init_xml_components();
|
|
5873
5838
|
NumberProperties = class extends XmlComponent {
|
|
5874
5839
|
constructor(numberId, indentLevel) {
|
|
@@ -5889,11 +5854,11 @@ var init_unordered_list = __esmMin(() => {
|
|
|
5889
5854
|
this.root.push({ _attr: { "w:val": typeof id === "string" ? `{${id}}` : id } });
|
|
5890
5855
|
}
|
|
5891
5856
|
};
|
|
5892
|
-
});
|
|
5857
|
+
}));
|
|
5893
5858
|
//#endregion
|
|
5894
5859
|
//#region src/file/paragraph/formatting/word-wrap.ts
|
|
5895
5860
|
var createWordWrap;
|
|
5896
|
-
var init_word_wrap = __esmMin(() => {
|
|
5861
|
+
var init_word_wrap = __esmMin((() => {
|
|
5897
5862
|
init_xml_components();
|
|
5898
5863
|
createWordWrap = () => new BuilderElement({
|
|
5899
5864
|
attributes: { val: {
|
|
@@ -5902,11 +5867,11 @@ var init_word_wrap = __esmMin(() => {
|
|
|
5902
5867
|
} },
|
|
5903
5868
|
name: "w:wordWrap"
|
|
5904
5869
|
});
|
|
5905
|
-
});
|
|
5870
|
+
}));
|
|
5906
5871
|
//#endregion
|
|
5907
5872
|
//#region src/file/paragraph/frame/frame-properties.ts
|
|
5908
5873
|
var DropCapType, FrameAnchorType, FrameWrap, createFrameProperties, buildFramePropertiesObj;
|
|
5909
|
-
var init_frame_properties = __esmMin(() => {
|
|
5874
|
+
var init_frame_properties = __esmMin((() => {
|
|
5910
5875
|
init_xml_components();
|
|
5911
5876
|
DropCapType = {
|
|
5912
5877
|
/** No drop cap effect */
|
|
@@ -6020,7 +5985,7 @@ var init_frame_properties = __esmMin(() => {
|
|
|
6020
5985
|
"w:x": options.position ? options.position.x : void 0,
|
|
6021
5986
|
"w:y": options.position ? options.position.y : void 0
|
|
6022
5987
|
});
|
|
6023
|
-
});
|
|
5988
|
+
}));
|
|
6024
5989
|
//#endregion
|
|
6025
5990
|
//#region src/file/paragraph/properties.ts
|
|
6026
5991
|
/**
|
|
@@ -6141,7 +6106,7 @@ function buildParagraphProperties(options) {
|
|
|
6141
6106
|
};
|
|
6142
6107
|
}
|
|
6143
6108
|
var TextAlignmentType, TextboxTightWrapType, ParagraphProperties, ParagraphPropertiesChange;
|
|
6144
|
-
var init_properties = __esmMin(() => {
|
|
6109
|
+
var init_properties = __esmMin((() => {
|
|
6145
6110
|
init_xml_components();
|
|
6146
6111
|
init_font_wrapper();
|
|
6147
6112
|
init_shading();
|
|
@@ -6283,22 +6248,7 @@ var init_properties = __esmMin(() => {
|
|
|
6283
6248
|
this.root.push(item);
|
|
6284
6249
|
}
|
|
6285
6250
|
/**
|
|
6286
|
-
* Prepares the paragraph properties for XML serialization.
|
|
6287
|
-
*
|
|
6288
|
-
* This method creates concrete numbering instances for any numbering references
|
|
6289
|
-
* before the properties are converted to XML.
|
|
6290
|
-
*
|
|
6291
|
-
* @param context - The XML context containing document and file information
|
|
6292
|
-
* @returns The prepared XML object, or undefined if the component should be ignored
|
|
6293
|
-
*/
|
|
6294
|
-
prepForXml(context) {
|
|
6295
|
-
if (!(context.viewWrapper instanceof FontWrapper)) for (const reference of this.numberingReferences) context.file.numbering.createConcreteNumberingInstance(reference.reference, reference.instance);
|
|
6296
|
-
return super.prepForXml(context);
|
|
6297
|
-
}
|
|
6298
|
-
/**
|
|
6299
6251
|
* Register numbering references (side effect) before serialization.
|
|
6300
|
-
* toXml() bypasses prepForXml(), so numbering registration must be
|
|
6301
|
-
* triggered explicitly here.
|
|
6302
6252
|
*/
|
|
6303
6253
|
toXml(context) {
|
|
6304
6254
|
if (!(context.viewWrapper instanceof FontWrapper)) for (const reference of this.numberingReferences) context.file.numbering.createConcreteNumberingInstance(reference.reference, reference.instance);
|
|
@@ -6319,11 +6269,11 @@ var init_properties = __esmMin(() => {
|
|
|
6319
6269
|
}));
|
|
6320
6270
|
}
|
|
6321
6271
|
};
|
|
6322
|
-
});
|
|
6272
|
+
}));
|
|
6323
6273
|
//#endregion
|
|
6324
6274
|
//#region src/file/paragraph/paragraph.ts
|
|
6325
6275
|
var Paragraph;
|
|
6326
|
-
var init_paragraph$1 = __esmMin(() => {
|
|
6276
|
+
var init_paragraph$1 = __esmMin((() => {
|
|
6327
6277
|
init_xml_components();
|
|
6328
6278
|
init_convenience_functions();
|
|
6329
6279
|
init_font_wrapper();
|
|
@@ -6357,102 +6307,6 @@ var init_paragraph$1 = __esmMin(() => {
|
|
|
6357
6307
|
this._props = buildParagraphProperties(this.options);
|
|
6358
6308
|
this._textRun = this.options.text ? new TextRun(this.options.text) : void 0;
|
|
6359
6309
|
}
|
|
6360
|
-
prepForXml(context) {
|
|
6361
|
-
const children = [];
|
|
6362
|
-
const { xml: pPrObj, numberingReferences } = this._props;
|
|
6363
|
-
if (!(context.viewWrapper instanceof FontWrapper)) for (const reference of numberingReferences) context.file.numbering.createConcreteNumberingInstance(reference.reference, reference.instance);
|
|
6364
|
-
let finalPPrObj = pPrObj;
|
|
6365
|
-
if (this.sectionProperties) {
|
|
6366
|
-
const sectPrObj = this.sectionProperties.prepForXml(context);
|
|
6367
|
-
if (sectPrObj) if (finalPPrObj) finalPPrObj["w:pPr"].push(sectPrObj);
|
|
6368
|
-
else finalPPrObj = { "w:pPr": [sectPrObj] };
|
|
6369
|
-
}
|
|
6370
|
-
if (finalPPrObj) children.push(finalPPrObj);
|
|
6371
|
-
for (const run of this.frontRuns) {
|
|
6372
|
-
const obj = run.prepForXml(context);
|
|
6373
|
-
if (obj) children.push(obj);
|
|
6374
|
-
}
|
|
6375
|
-
if (this._textRun) {
|
|
6376
|
-
const obj = this._textRun.prepForXml(context);
|
|
6377
|
-
if (obj) children.push(obj);
|
|
6378
|
-
}
|
|
6379
|
-
if (this.options.children) for (const rawChild of this.options.children) {
|
|
6380
|
-
if (rawChild instanceof ExternalHyperlink) {
|
|
6381
|
-
const concreteHyperlink = new ConcreteHyperlink(rawChild.options.children, uniqueId(), { tooltip: rawChild.options.tooltip });
|
|
6382
|
-
context.viewWrapper.relationships.addRelationship(concreteHyperlink.linkId, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", rawChild.options.link, TargetModeType.EXTERNAL);
|
|
6383
|
-
const obj = concreteHyperlink.prepForXml(context);
|
|
6384
|
-
if (obj) children.push(obj);
|
|
6385
|
-
continue;
|
|
6386
|
-
}
|
|
6387
|
-
if (rawChild instanceof Bookmark) {
|
|
6388
|
-
const startObj = rawChild.start.prepForXml(context);
|
|
6389
|
-
if (startObj) children.push(startObj);
|
|
6390
|
-
for (const textRun of rawChild.children) if (textRun instanceof BaseXmlComponent) {
|
|
6391
|
-
const obj = textRun.prepForXml(context);
|
|
6392
|
-
if (obj) children.push(obj);
|
|
6393
|
-
}
|
|
6394
|
-
const endObj = rawChild.end.prepForXml(context);
|
|
6395
|
-
if (endObj) children.push(endObj);
|
|
6396
|
-
continue;
|
|
6397
|
-
}
|
|
6398
|
-
let child;
|
|
6399
|
-
if (typeof rawChild === "string") child = new TextRun(rawChild);
|
|
6400
|
-
else if (rawChild instanceof BaseXmlComponent) child = rawChild;
|
|
6401
|
-
else if ("chart" in rawChild) child = new ChartRun(rawChild.chart);
|
|
6402
|
-
else if ("smartArt" in rawChild) child = new SmartArtRun(rawChild.smartArt);
|
|
6403
|
-
else if ("image" in rawChild) child = new ImageRun(rawChild.image);
|
|
6404
|
-
else if (typeof rawChild === "object" && rawChild !== null && "hyperlink" in rawChild) {
|
|
6405
|
-
const { hyperlink, ...runOpts } = rawChild;
|
|
6406
|
-
const hlChildren = hyperlink.children;
|
|
6407
|
-
const textRuns = [];
|
|
6408
|
-
if (hlChildren && hlChildren.length > 0) for (const rc of hlChildren) textRuns.push(new TextRun(rc));
|
|
6409
|
-
else textRuns.push(new TextRun(runOpts));
|
|
6410
|
-
if ("link" in hyperlink) {
|
|
6411
|
-
const ext = new ExternalHyperlink({
|
|
6412
|
-
link: hyperlink.link,
|
|
6413
|
-
tooltip: hyperlink.tooltip,
|
|
6414
|
-
children: textRuns
|
|
6415
|
-
});
|
|
6416
|
-
const concrete = new ConcreteHyperlink(ext.options.children, uniqueId(), { tooltip: ext.options.tooltip });
|
|
6417
|
-
context.viewWrapper.relationships.addRelationship(concrete.linkId, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", ext.options.link, TargetModeType.EXTERNAL);
|
|
6418
|
-
const obj = concrete.prepForXml(context);
|
|
6419
|
-
if (obj) children.push(obj);
|
|
6420
|
-
} else if ("anchor" in hyperlink) {
|
|
6421
|
-
const obj = new InternalHyperlink({
|
|
6422
|
-
anchor: hyperlink.anchor,
|
|
6423
|
-
tooltip: hyperlink.tooltip,
|
|
6424
|
-
children: textRuns
|
|
6425
|
-
}).prepForXml(context);
|
|
6426
|
-
if (obj) children.push(obj);
|
|
6427
|
-
}
|
|
6428
|
-
continue;
|
|
6429
|
-
} else if ("math" in rawChild && typeof rawChild === "object" && rawChild !== null && typeof rawChild.math === "object" && rawChild.math !== null) {
|
|
6430
|
-
const coercedChildren = rawChild.math.children?.map(coerceMathJson);
|
|
6431
|
-
child = new Math$1(coercedChildren ? { children: coercedChildren } : { children: [] });
|
|
6432
|
-
} else if ("symbolRun" in rawChild) child = new SymbolRun(rawChild.symbolRun);
|
|
6433
|
-
else if ("footnoteReference" in rawChild) child = new FootnoteReferenceRun(rawChild.footnoteReference);
|
|
6434
|
-
else if ("endnoteReference" in rawChild) child = new EndnoteReferenceRun(rawChild.endnoteReference);
|
|
6435
|
-
else if ("pageBreak" in rawChild) child = new PageBreak();
|
|
6436
|
-
else if ("columnBreak" in rawChild) child = new ColumnBreak();
|
|
6437
|
-
else if ("commentRangeStart" in rawChild) child = new CommentRangeStart(rawChild.commentRangeStart);
|
|
6438
|
-
else if ("commentRangeEnd" in rawChild) child = new CommentRangeEnd(rawChild.commentRangeEnd);
|
|
6439
|
-
else if ("commentReference" in rawChild) child = new TextRun({ children: [new CommentReference(rawChild.commentReference)] });
|
|
6440
|
-
else if ("bookmarkStart" in rawChild) {
|
|
6441
|
-
const startObj = new BookmarkStart(rawChild.bookmarkStart.name, rawChild.bookmarkStart.id).prepForXml(context);
|
|
6442
|
-
if (startObj) children.push(startObj);
|
|
6443
|
-
continue;
|
|
6444
|
-
} else if ("bookmarkEnd" in rawChild) {
|
|
6445
|
-
const endObj = new BookmarkEnd(rawChild.bookmarkEnd).prepForXml(context);
|
|
6446
|
-
if (endObj) children.push(endObj);
|
|
6447
|
-
continue;
|
|
6448
|
-
} else if ("insertion" in rawChild) child = new InsertedTextRun(rawChild.insertion);
|
|
6449
|
-
else if ("deletion" in rawChild) child = new DeletedTextRun(rawChild.deletion);
|
|
6450
|
-
else child = new TextRun(rawChild);
|
|
6451
|
-
const obj = child.prepForXml(context);
|
|
6452
|
-
if (obj) children.push(obj);
|
|
6453
|
-
}
|
|
6454
|
-
return { "w:p": children.length > 0 ? children : {} };
|
|
6455
|
-
}
|
|
6456
6310
|
addRunToFront(run) {
|
|
6457
6311
|
this.frontRuns.push(run);
|
|
6458
6312
|
return this;
|
|
@@ -6559,11 +6413,11 @@ var init_paragraph$1 = __esmMin(() => {
|
|
|
6559
6413
|
return new TextRun(rawChild);
|
|
6560
6414
|
}
|
|
6561
6415
|
};
|
|
6562
|
-
});
|
|
6416
|
+
}));
|
|
6563
6417
|
//#endregion
|
|
6564
6418
|
//#region src/file/paragraph/run/comment-run.ts
|
|
6565
6419
|
var CommentRangeStart, CommentRangeEnd, CommentReference, Comment, Comments;
|
|
6566
|
-
var init_comment_run = __esmMin(() => {
|
|
6420
|
+
var init_comment_run = __esmMin((() => {
|
|
6567
6421
|
init_paragraph$1();
|
|
6568
6422
|
init_relationships();
|
|
6569
6423
|
init_xml_components();
|
|
@@ -6640,11 +6494,11 @@ var init_comment_run = __esmMin(() => {
|
|
|
6640
6494
|
this.relationships = new Relationships();
|
|
6641
6495
|
}
|
|
6642
6496
|
};
|
|
6643
|
-
});
|
|
6497
|
+
}));
|
|
6644
6498
|
//#endregion
|
|
6645
6499
|
//#region src/file/paragraph/run/empty-children.ts
|
|
6646
6500
|
var NoBreakHyphen, SoftHyphen, DayShort, MonthShort, YearShort, DayLong, MonthLong, YearLong, AnnotationReference, FootnoteReferenceElement, EndnoteReference, Separator, ContinuationSeparator, PageNumberElement, CarriageReturn, Tab, LastRenderedPageBreak;
|
|
6647
|
-
var init_empty_children = __esmMin(() => {
|
|
6501
|
+
var init_empty_children = __esmMin((() => {
|
|
6648
6502
|
init_xml_components();
|
|
6649
6503
|
NoBreakHyphen = class extends EmptyElement {
|
|
6650
6504
|
constructor() {
|
|
@@ -6731,11 +6585,11 @@ var init_empty_children = __esmMin(() => {
|
|
|
6731
6585
|
super("w:lastRenderedPageBreak");
|
|
6732
6586
|
}
|
|
6733
6587
|
};
|
|
6734
|
-
});
|
|
6588
|
+
}));
|
|
6735
6589
|
//#endregion
|
|
6736
6590
|
//#region src/file/paragraph/run/positional-tab.ts
|
|
6737
6591
|
var PositionalTabAlignment, PositionalTabRelativeTo, PositionalTabLeader, PositionalTab;
|
|
6738
|
-
var init_positional_tab = __esmMin(() => {
|
|
6592
|
+
var init_positional_tab = __esmMin((() => {
|
|
6739
6593
|
init_xml_components();
|
|
6740
6594
|
PositionalTabAlignment = {
|
|
6741
6595
|
/** Left-aligned tab */
|
|
@@ -6773,11 +6627,11 @@ var init_positional_tab = __esmMin(() => {
|
|
|
6773
6627
|
} });
|
|
6774
6628
|
}
|
|
6775
6629
|
};
|
|
6776
|
-
});
|
|
6630
|
+
}));
|
|
6777
6631
|
//#endregion
|
|
6778
6632
|
//#region src/file/paragraph/run/ruby.ts
|
|
6779
6633
|
var RubyAlign, createRubyContent, createRuby;
|
|
6780
|
-
var init_ruby = __esmMin(() => {
|
|
6634
|
+
var init_ruby = __esmMin((() => {
|
|
6781
6635
|
init_xml_components();
|
|
6782
6636
|
init_text();
|
|
6783
6637
|
RubyAlign = {
|
|
@@ -6855,10 +6709,10 @@ var init_ruby = __esmMin(() => {
|
|
|
6855
6709
|
name: "w:ruby"
|
|
6856
6710
|
});
|
|
6857
6711
|
};
|
|
6858
|
-
});
|
|
6712
|
+
}));
|
|
6859
6713
|
//#endregion
|
|
6860
6714
|
//#region src/file/paragraph/run/index.ts
|
|
6861
|
-
var init_run = __esmMin(() => {
|
|
6715
|
+
var init_run = __esmMin((() => {
|
|
6862
6716
|
init_run$1();
|
|
6863
6717
|
init_properties$1();
|
|
6864
6718
|
init_text_run();
|
|
@@ -6879,11 +6733,11 @@ var init_run = __esmMin(() => {
|
|
|
6879
6733
|
init_ruby();
|
|
6880
6734
|
init_form_field();
|
|
6881
6735
|
init_break$1();
|
|
6882
|
-
});
|
|
6736
|
+
}));
|
|
6883
6737
|
//#endregion
|
|
6884
6738
|
//#region src/file/paragraph/formatting/break.ts
|
|
6885
6739
|
var BreakType, Break, PageBreak, ColumnBreak, PageBreakBefore;
|
|
6886
|
-
var init_break = __esmMin(() => {
|
|
6740
|
+
var init_break = __esmMin((() => {
|
|
6887
6741
|
init_xml_components();
|
|
6888
6742
|
init_run();
|
|
6889
6743
|
BreakType = {
|
|
@@ -6915,10 +6769,10 @@ var init_break = __esmMin(() => {
|
|
|
6915
6769
|
super("w:pageBreakBefore");
|
|
6916
6770
|
}
|
|
6917
6771
|
};
|
|
6918
|
-
});
|
|
6772
|
+
}));
|
|
6919
6773
|
//#endregion
|
|
6920
6774
|
//#region src/file/paragraph/formatting/index.ts
|
|
6921
|
-
var init_formatting = __esmMin(() => {
|
|
6775
|
+
var init_formatting = __esmMin((() => {
|
|
6922
6776
|
init_alignment$1();
|
|
6923
6777
|
init_border();
|
|
6924
6778
|
init_cnf_style();
|
|
@@ -6928,15 +6782,15 @@ var init_formatting = __esmMin(() => {
|
|
|
6928
6782
|
init_style();
|
|
6929
6783
|
init_tab_stop();
|
|
6930
6784
|
init_unordered_list();
|
|
6931
|
-
});
|
|
6785
|
+
}));
|
|
6932
6786
|
//#endregion
|
|
6933
6787
|
//#region src/file/paragraph/frame/index.ts
|
|
6934
|
-
var init_frame = __esmMin(() => {
|
|
6788
|
+
var init_frame = __esmMin((() => {
|
|
6935
6789
|
init_frame_properties();
|
|
6936
|
-
});
|
|
6790
|
+
}));
|
|
6937
6791
|
//#endregion
|
|
6938
6792
|
//#region src/file/paragraph/index.ts
|
|
6939
|
-
var init_paragraph = __esmMin(() => {
|
|
6793
|
+
var init_paragraph = __esmMin((() => {
|
|
6940
6794
|
init_formatting();
|
|
6941
6795
|
init_paragraph$1();
|
|
6942
6796
|
init_properties();
|
|
@@ -6944,7 +6798,7 @@ var init_paragraph = __esmMin(() => {
|
|
|
6944
6798
|
init_links();
|
|
6945
6799
|
init_math();
|
|
6946
6800
|
init_frame();
|
|
6947
|
-
});
|
|
6801
|
+
}));
|
|
6948
6802
|
//#endregion
|
|
6949
6803
|
//#region src/file/alt-chunk/alt-chunk.ts
|
|
6950
6804
|
function wrapHtmlDocument(fragment) {
|
|
@@ -6952,7 +6806,7 @@ function wrapHtmlDocument(fragment) {
|
|
|
6952
6806
|
return `<!DOCTYPE html>\n<html><head><meta charset="utf-8"></head>\n<body>${fragment}</body></html>`;
|
|
6953
6807
|
}
|
|
6954
6808
|
var ALTCHUNK_RELATIONSHIP_TYPE, AltChunk;
|
|
6955
|
-
var init_alt_chunk = __esmMin(() => {
|
|
6809
|
+
var init_alt_chunk = __esmMin((() => {
|
|
6956
6810
|
init_xml_components();
|
|
6957
6811
|
init_convenience_functions();
|
|
6958
6812
|
ALTCHUNK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk";
|
|
@@ -6968,10 +6822,9 @@ var init_alt_chunk = __esmMin(() => {
|
|
|
6968
6822
|
this.root.push(altChunkPr);
|
|
6969
6823
|
}
|
|
6970
6824
|
}
|
|
6971
|
-
|
|
6825
|
+
toXml(context) {
|
|
6972
6826
|
const relId = uniqueId();
|
|
6973
6827
|
const extension = this.options.extension;
|
|
6974
|
-
this.root.splice(0, 0, { _attr: { "r:id": `rId${relId}` } });
|
|
6975
6828
|
const partPath = `afchunks/afchunk${relId}.${extension}`;
|
|
6976
6829
|
const rawData = typeof this.options.data === "string" ? new TextEncoder().encode(this.options.data) : this.options.data;
|
|
6977
6830
|
const data = this.options.contentType === "text/html" && typeof this.options.data === "string" ? new TextEncoder().encode(wrapHtmlDocument(this.options.data)) : rawData;
|
|
@@ -6984,14 +6837,17 @@ var init_alt_chunk = __esmMin(() => {
|
|
|
6984
6837
|
contentType: this.options.contentType
|
|
6985
6838
|
});
|
|
6986
6839
|
context.file.contentTypes.addAltChunk(`/word/${partPath}`, this.options.contentType, extension);
|
|
6987
|
-
|
|
6840
|
+
this.root.splice(0, 0, { _attr: { "r:id": `rId${relId}` } });
|
|
6841
|
+
const result = super.toXml(context);
|
|
6842
|
+
this.root.splice(0, 1);
|
|
6843
|
+
return result;
|
|
6988
6844
|
}
|
|
6989
6845
|
};
|
|
6990
|
-
});
|
|
6846
|
+
}));
|
|
6991
6847
|
//#endregion
|
|
6992
6848
|
//#region src/file/table-of-contents/field-instruction.ts
|
|
6993
6849
|
var FieldInstruction;
|
|
6994
|
-
var init_field_instruction = __esmMin(() => {
|
|
6850
|
+
var init_field_instruction = __esmMin((() => {
|
|
6995
6851
|
init_shared();
|
|
6996
6852
|
init_xml_components();
|
|
6997
6853
|
FieldInstruction = class extends XmlComponent {
|
|
@@ -7023,22 +6879,22 @@ var init_field_instruction = __esmMin(() => {
|
|
|
7023
6879
|
this.root.push(instruction);
|
|
7024
6880
|
}
|
|
7025
6881
|
};
|
|
7026
|
-
});
|
|
6882
|
+
}));
|
|
7027
6883
|
//#endregion
|
|
7028
6884
|
//#region src/file/table-of-contents/sdt-content.ts
|
|
7029
6885
|
var StructuredDocumentTagContent;
|
|
7030
|
-
var init_sdt_content = __esmMin(() => {
|
|
6886
|
+
var init_sdt_content = __esmMin((() => {
|
|
7031
6887
|
init_xml_components();
|
|
7032
6888
|
StructuredDocumentTagContent = class extends XmlComponent {
|
|
7033
6889
|
constructor() {
|
|
7034
6890
|
super("w:sdtContent");
|
|
7035
6891
|
}
|
|
7036
6892
|
};
|
|
7037
|
-
});
|
|
6893
|
+
}));
|
|
7038
6894
|
//#endregion
|
|
7039
6895
|
//#region src/file/table-of-contents/sdt-properties.ts
|
|
7040
6896
|
var SdtLock, SdtDateMappingType, createListItem, createListType, createDate, createDataBinding, createDocPart, StructuredDocumentTagProperties;
|
|
7041
|
-
var init_sdt_properties = __esmMin(() => {
|
|
6897
|
+
var init_sdt_properties = __esmMin((() => {
|
|
7042
6898
|
init_xml_components();
|
|
7043
6899
|
SdtLock = {
|
|
7044
6900
|
/** Lock the SDT itself (cannot delete the control) */
|
|
@@ -7215,11 +7071,11 @@ var init_sdt_properties = __esmMin(() => {
|
|
|
7215
7071
|
else if (options.bibliography) this.root.push(new BuilderElement({ name: "w:bibliography" }));
|
|
7216
7072
|
}
|
|
7217
7073
|
};
|
|
7218
|
-
});
|
|
7074
|
+
}));
|
|
7219
7075
|
//#endregion
|
|
7220
7076
|
//#region src/file/table-of-contents/table-of-contents.ts
|
|
7221
7077
|
var TableOfContents;
|
|
7222
|
-
var init_table_of_contents$1 = __esmMin(() => {
|
|
7078
|
+
var init_table_of_contents$1 = __esmMin((() => {
|
|
7223
7079
|
init_paragraph();
|
|
7224
7080
|
init_run();
|
|
7225
7081
|
init_field();
|
|
@@ -7295,11 +7151,11 @@ var init_table_of_contents$1 = __esmMin(() => {
|
|
|
7295
7151
|
return run;
|
|
7296
7152
|
}
|
|
7297
7153
|
};
|
|
7298
|
-
});
|
|
7154
|
+
}));
|
|
7299
7155
|
//#endregion
|
|
7300
7156
|
//#region src/file/table-of-contents/table-of-contents-properties.ts
|
|
7301
7157
|
var StyleLevel;
|
|
7302
|
-
var init_table_of_contents_properties = __esmMin(() => {
|
|
7158
|
+
var init_table_of_contents_properties = __esmMin((() => {
|
|
7303
7159
|
StyleLevel = class {
|
|
7304
7160
|
/** The name of the paragraph style. */
|
|
7305
7161
|
styleName;
|
|
@@ -7310,19 +7166,19 @@ var init_table_of_contents_properties = __esmMin(() => {
|
|
|
7310
7166
|
this.level = level;
|
|
7311
7167
|
}
|
|
7312
7168
|
};
|
|
7313
|
-
});
|
|
7169
|
+
}));
|
|
7314
7170
|
//#endregion
|
|
7315
7171
|
//#region src/file/table-of-contents/index.ts
|
|
7316
|
-
var init_table_of_contents = __esmMin(() => {
|
|
7172
|
+
var init_table_of_contents = __esmMin((() => {
|
|
7317
7173
|
init_table_of_contents$1();
|
|
7318
7174
|
init_table_of_contents_properties();
|
|
7319
7175
|
init_sdt_properties();
|
|
7320
7176
|
init_sdt_content();
|
|
7321
|
-
});
|
|
7177
|
+
}));
|
|
7322
7178
|
//#endregion
|
|
7323
7179
|
//#region src/file/sdt/sdt.ts
|
|
7324
7180
|
var StructuredDocumentTagRun, StructuredDocumentTagBlock;
|
|
7325
|
-
var init_sdt$1 = __esmMin(() => {
|
|
7181
|
+
var init_sdt$1 = __esmMin((() => {
|
|
7326
7182
|
init_xml_components();
|
|
7327
7183
|
init_table_of_contents();
|
|
7328
7184
|
StructuredDocumentTagRun = class extends XmlComponent {
|
|
@@ -7348,11 +7204,11 @@ var init_sdt$1 = __esmMin(() => {
|
|
|
7348
7204
|
}
|
|
7349
7205
|
}
|
|
7350
7206
|
};
|
|
7351
|
-
});
|
|
7207
|
+
}));
|
|
7352
7208
|
//#endregion
|
|
7353
7209
|
//#region src/file/sub-doc/sub-doc.ts
|
|
7354
7210
|
var SUBDOC_RELATIONSHIP_TYPE, SubDoc;
|
|
7355
|
-
var init_sub_doc = __esmMin(() => {
|
|
7211
|
+
var init_sub_doc = __esmMin((() => {
|
|
7356
7212
|
init_xml_components();
|
|
7357
7213
|
init_convenience_functions();
|
|
7358
7214
|
SUBDOC_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument";
|
|
@@ -7363,10 +7219,9 @@ var init_sub_doc = __esmMin(() => {
|
|
|
7363
7219
|
super("w:subDoc");
|
|
7364
7220
|
this.options = options;
|
|
7365
7221
|
}
|
|
7366
|
-
|
|
7222
|
+
toXml(context) {
|
|
7367
7223
|
const relId = uniqueId();
|
|
7368
7224
|
const partPath = `subdocs/subdoc${relId}.docx`;
|
|
7369
|
-
this.root.splice(0, 0, { _attr: { "r:id": `rId${relId}` } });
|
|
7370
7225
|
const data = typeof this.options.data === "string" ? new TextEncoder().encode(this.options.data) : this.options.data;
|
|
7371
7226
|
context.viewWrapper.relationships.addRelationship(relId, SUBDOC_RELATIONSHIP_TYPE, partPath);
|
|
7372
7227
|
context.file.subDocs.addSubDoc(relId, {
|
|
@@ -7374,14 +7229,17 @@ var init_sub_doc = __esmMin(() => {
|
|
|
7374
7229
|
path: partPath
|
|
7375
7230
|
});
|
|
7376
7231
|
context.file.contentTypes.addSubDoc(`/word/${partPath}`);
|
|
7377
|
-
|
|
7232
|
+
this.root.splice(0, 0, { _attr: { "r:id": `rId${relId}` } });
|
|
7233
|
+
const result = super.toXml(context);
|
|
7234
|
+
this.root.splice(0, 1);
|
|
7235
|
+
return result;
|
|
7378
7236
|
}
|
|
7379
7237
|
};
|
|
7380
|
-
});
|
|
7238
|
+
}));
|
|
7381
7239
|
//#endregion
|
|
7382
7240
|
//#region src/file/sdt/sdt-cell.ts
|
|
7383
7241
|
var StructuredDocumentTagCell;
|
|
7384
|
-
var init_sdt_cell = __esmMin(() => {
|
|
7242
|
+
var init_sdt_cell = __esmMin((() => {
|
|
7385
7243
|
init_xml_components();
|
|
7386
7244
|
init_table_of_contents();
|
|
7387
7245
|
StructuredDocumentTagCell = class extends XmlComponent {
|
|
@@ -7397,11 +7255,11 @@ var init_sdt_cell = __esmMin(() => {
|
|
|
7397
7255
|
}
|
|
7398
7256
|
}
|
|
7399
7257
|
};
|
|
7400
|
-
});
|
|
7258
|
+
}));
|
|
7401
7259
|
//#endregion
|
|
7402
7260
|
//#region src/file/track-revision/track-revision-components/moved-text-run.ts
|
|
7403
7261
|
var MovedFromTextRun, MovedToTextRun, MovedFromRunWrapper, MovedToRunWrapper;
|
|
7404
|
-
var init_moved_text_run = __esmMin(() => {
|
|
7262
|
+
var init_moved_text_run = __esmMin((() => {
|
|
7405
7263
|
init_xml_components();
|
|
7406
7264
|
init_break$1();
|
|
7407
7265
|
init_field();
|
|
@@ -7476,7 +7334,7 @@ var init_moved_text_run = __esmMin(() => {
|
|
|
7476
7334
|
if (options.break) for (let i = 0; i < options.break; i++) this.root.splice(1, 0, createBreak());
|
|
7477
7335
|
}
|
|
7478
7336
|
};
|
|
7479
|
-
});
|
|
7337
|
+
}));
|
|
7480
7338
|
//#endregion
|
|
7481
7339
|
//#region src/file/track-revision/track-revision-components/inserted-table-row.ts
|
|
7482
7340
|
function buildInsertedTableRowObj(options) {
|
|
@@ -7487,7 +7345,7 @@ function buildInsertedTableRowObj(options) {
|
|
|
7487
7345
|
} } };
|
|
7488
7346
|
}
|
|
7489
7347
|
var InsertedTableRow;
|
|
7490
|
-
var init_inserted_table_row = __esmMin(() => {
|
|
7348
|
+
var init_inserted_table_row = __esmMin((() => {
|
|
7491
7349
|
init_xml_components();
|
|
7492
7350
|
InsertedTableRow = class extends XmlComponent {
|
|
7493
7351
|
constructor(options) {
|
|
@@ -7499,7 +7357,7 @@ var init_inserted_table_row = __esmMin(() => {
|
|
|
7499
7357
|
} });
|
|
7500
7358
|
}
|
|
7501
7359
|
};
|
|
7502
|
-
});
|
|
7360
|
+
}));
|
|
7503
7361
|
//#endregion
|
|
7504
7362
|
//#region src/file/track-revision/track-revision-components/deleted-table-row.ts
|
|
7505
7363
|
function buildDeletedTableRowObj(options) {
|
|
@@ -7510,7 +7368,7 @@ function buildDeletedTableRowObj(options) {
|
|
|
7510
7368
|
} } };
|
|
7511
7369
|
}
|
|
7512
7370
|
var DeletedTableRow;
|
|
7513
|
-
var init_deleted_table_row = __esmMin(() => {
|
|
7371
|
+
var init_deleted_table_row = __esmMin((() => {
|
|
7514
7372
|
init_xml_components();
|
|
7515
7373
|
DeletedTableRow = class extends XmlComponent {
|
|
7516
7374
|
constructor(options) {
|
|
@@ -7522,7 +7380,7 @@ var init_deleted_table_row = __esmMin(() => {
|
|
|
7522
7380
|
} });
|
|
7523
7381
|
}
|
|
7524
7382
|
};
|
|
7525
|
-
});
|
|
7383
|
+
}));
|
|
7526
7384
|
//#endregion
|
|
7527
7385
|
//#region src/file/track-revision/track-revision-components/inserted-table-cell.ts
|
|
7528
7386
|
function buildInsertedTableCellObj(options) {
|
|
@@ -7533,7 +7391,7 @@ function buildInsertedTableCellObj(options) {
|
|
|
7533
7391
|
} } };
|
|
7534
7392
|
}
|
|
7535
7393
|
var InsertedTableCell;
|
|
7536
|
-
var init_inserted_table_cell = __esmMin(() => {
|
|
7394
|
+
var init_inserted_table_cell = __esmMin((() => {
|
|
7537
7395
|
init_xml_components();
|
|
7538
7396
|
InsertedTableCell = class extends XmlComponent {
|
|
7539
7397
|
constructor(options) {
|
|
@@ -7545,7 +7403,7 @@ var init_inserted_table_cell = __esmMin(() => {
|
|
|
7545
7403
|
} });
|
|
7546
7404
|
}
|
|
7547
7405
|
};
|
|
7548
|
-
});
|
|
7406
|
+
}));
|
|
7549
7407
|
//#endregion
|
|
7550
7408
|
//#region src/file/track-revision/track-revision-components/deleted-table-cell.ts
|
|
7551
7409
|
function buildDeletedTableCellObj(options) {
|
|
@@ -7556,7 +7414,7 @@ function buildDeletedTableCellObj(options) {
|
|
|
7556
7414
|
} } };
|
|
7557
7415
|
}
|
|
7558
7416
|
var DeletedTableCell;
|
|
7559
|
-
var init_deleted_table_cell = __esmMin(() => {
|
|
7417
|
+
var init_deleted_table_cell = __esmMin((() => {
|
|
7560
7418
|
init_xml_components();
|
|
7561
7419
|
DeletedTableCell = class extends XmlComponent {
|
|
7562
7420
|
constructor(options) {
|
|
@@ -7568,7 +7426,7 @@ var init_deleted_table_cell = __esmMin(() => {
|
|
|
7568
7426
|
} });
|
|
7569
7427
|
}
|
|
7570
7428
|
};
|
|
7571
|
-
});
|
|
7429
|
+
}));
|
|
7572
7430
|
//#endregion
|
|
7573
7431
|
//#region src/file/track-revision/track-revision-components/cell-merge.ts
|
|
7574
7432
|
function buildCellMergeObj(options) {
|
|
@@ -7582,7 +7440,7 @@ function buildCellMergeObj(options) {
|
|
|
7582
7440
|
return { "w:cellMerge": { _attr: attrs } };
|
|
7583
7441
|
}
|
|
7584
7442
|
var VerticalMergeRevisionType, CellMerge;
|
|
7585
|
-
var init_cell_merge = __esmMin(() => {
|
|
7443
|
+
var init_cell_merge = __esmMin((() => {
|
|
7586
7444
|
init_xml_components();
|
|
7587
7445
|
VerticalMergeRevisionType = {
|
|
7588
7446
|
/**
|
|
@@ -7607,10 +7465,10 @@ var init_cell_merge = __esmMin(() => {
|
|
|
7607
7465
|
this.root.push({ _attr: attrs });
|
|
7608
7466
|
}
|
|
7609
7467
|
};
|
|
7610
|
-
});
|
|
7468
|
+
}));
|
|
7611
7469
|
//#endregion
|
|
7612
7470
|
//#region src/file/track-revision/index.ts
|
|
7613
|
-
var init_track_revision = __esmMin(() => {
|
|
7471
|
+
var init_track_revision = __esmMin((() => {
|
|
7614
7472
|
init_inserted_text_run();
|
|
7615
7473
|
init_deleted_text_run();
|
|
7616
7474
|
init_moved_text_run();
|
|
@@ -7619,11 +7477,11 @@ var init_track_revision = __esmMin(() => {
|
|
|
7619
7477
|
init_inserted_table_cell();
|
|
7620
7478
|
init_deleted_table_cell();
|
|
7621
7479
|
init_cell_merge();
|
|
7622
|
-
});
|
|
7480
|
+
}));
|
|
7623
7481
|
//#endregion
|
|
7624
7482
|
//#region src/file/vertical-align/vertical-align.ts
|
|
7625
7483
|
var VerticalAlignTable, VerticalAlignSection, createVerticalAlign;
|
|
7626
|
-
var init_vertical_align$1 = __esmMin(() => {
|
|
7484
|
+
var init_vertical_align$1 = __esmMin((() => {
|
|
7627
7485
|
init_xml_components();
|
|
7628
7486
|
VerticalAlignTable = {
|
|
7629
7487
|
BOTTOM: "bottom",
|
|
@@ -7641,12 +7499,12 @@ var init_vertical_align$1 = __esmMin(() => {
|
|
|
7641
7499
|
} },
|
|
7642
7500
|
name: "w:vAlign"
|
|
7643
7501
|
});
|
|
7644
|
-
});
|
|
7502
|
+
}));
|
|
7645
7503
|
//#endregion
|
|
7646
7504
|
//#region src/file/vertical-align/index.ts
|
|
7647
|
-
var init_vertical_align = __esmMin(() => {
|
|
7505
|
+
var init_vertical_align = __esmMin((() => {
|
|
7648
7506
|
init_vertical_align$1();
|
|
7649
|
-
});
|
|
7507
|
+
}));
|
|
7650
7508
|
//#endregion
|
|
7651
7509
|
//#region src/file/table/table-cell/table-cell-components.ts
|
|
7652
7510
|
/**
|
|
@@ -7715,7 +7573,7 @@ function buildTextDirection(value) {
|
|
|
7715
7573
|
return stringEnumValObj("w:textDirection", value);
|
|
7716
7574
|
}
|
|
7717
7575
|
var TableCellBorders, GridSpan, VerticalMergeType, VerticalMerge, TextDirection, TDirection;
|
|
7718
|
-
var init_table_cell_components = __esmMin(() => {
|
|
7576
|
+
var init_table_cell_components = __esmMin((() => {
|
|
7719
7577
|
init_border$1();
|
|
7720
7578
|
init_xml_components();
|
|
7721
7579
|
init_values();
|
|
@@ -7768,17 +7626,17 @@ var init_table_cell_components = __esmMin(() => {
|
|
|
7768
7626
|
this.root.push({ _attr: { "w:val": value } });
|
|
7769
7627
|
}
|
|
7770
7628
|
};
|
|
7771
|
-
});
|
|
7629
|
+
}));
|
|
7772
7630
|
//#endregion
|
|
7773
7631
|
//#region src/file/table/table-cell/index.ts
|
|
7774
|
-
var init_table_cell$1 = __esmMin(() => {
|
|
7632
|
+
var init_table_cell$1 = __esmMin((() => {
|
|
7775
7633
|
init_table_cell();
|
|
7776
7634
|
init_table_cell_components();
|
|
7777
|
-
});
|
|
7635
|
+
}));
|
|
7778
7636
|
//#endregion
|
|
7779
7637
|
//#region src/file/table/table-cell-spacing.ts
|
|
7780
7638
|
var CellSpacingType, createTableCellSpacing;
|
|
7781
|
-
var init_table_cell_spacing = __esmMin(() => {
|
|
7639
|
+
var init_table_cell_spacing = __esmMin((() => {
|
|
7782
7640
|
init_xml_components();
|
|
7783
7641
|
init_values();
|
|
7784
7642
|
CellSpacingType = {
|
|
@@ -7800,11 +7658,11 @@ var init_table_cell_spacing = __esmMin(() => {
|
|
|
7800
7658
|
},
|
|
7801
7659
|
name: "w:tblCellSpacing"
|
|
7802
7660
|
});
|
|
7803
|
-
});
|
|
7661
|
+
}));
|
|
7804
7662
|
//#endregion
|
|
7805
7663
|
//#region src/file/table/table-width.ts
|
|
7806
7664
|
var WidthType, buildTableWidthObj, createTableWidthElement;
|
|
7807
|
-
var init_table_width = __esmMin(() => {
|
|
7665
|
+
var init_table_width = __esmMin((() => {
|
|
7808
7666
|
init_xml_components();
|
|
7809
7667
|
init_values();
|
|
7810
7668
|
WidthType = {
|
|
@@ -7842,7 +7700,7 @@ var init_table_width = __esmMin(() => {
|
|
|
7842
7700
|
name
|
|
7843
7701
|
});
|
|
7844
7702
|
};
|
|
7845
|
-
});
|
|
7703
|
+
}));
|
|
7846
7704
|
//#endregion
|
|
7847
7705
|
//#region src/file/table/table-properties/table-borders.ts
|
|
7848
7706
|
/**
|
|
@@ -7879,7 +7737,7 @@ function buildTableBorders(options) {
|
|
|
7879
7737
|
] };
|
|
7880
7738
|
}
|
|
7881
7739
|
var NONE_BORDER, DEFAULT_BORDER, TableBorders;
|
|
7882
|
-
var init_table_borders = __esmMin(() => {
|
|
7740
|
+
var init_table_borders = __esmMin((() => {
|
|
7883
7741
|
init_border$1();
|
|
7884
7742
|
init_xml_components();
|
|
7885
7743
|
NONE_BORDER = {
|
|
@@ -7911,11 +7769,11 @@ var init_table_borders = __esmMin(() => {
|
|
|
7911
7769
|
this.root.push(createBorderElement("w:insideV", options.insideVertical ?? DEFAULT_BORDER));
|
|
7912
7770
|
}
|
|
7913
7771
|
};
|
|
7914
|
-
});
|
|
7772
|
+
}));
|
|
7915
7773
|
//#endregion
|
|
7916
7774
|
//#region src/file/table/table-properties/table-float-properties.ts
|
|
7917
7775
|
var TableAnchorType, RelativeHorizontalPosition, RelativeVerticalPosition, OverlapType, createOverlapElement, createTableFloatProperties, buildTableFloatPropertiesObj, createTableOverlap;
|
|
7918
|
-
var init_table_float_properties = __esmMin(() => {
|
|
7776
|
+
var init_table_float_properties = __esmMin((() => {
|
|
7919
7777
|
init_xml_components();
|
|
7920
7778
|
init_values();
|
|
7921
7779
|
TableAnchorType = {
|
|
@@ -8007,11 +7865,11 @@ var init_table_float_properties = __esmMin(() => {
|
|
|
8007
7865
|
"w:rightFromText": rightFromText !== void 0 ? (0, values_exports.twipsMeasureValue)(rightFromText) : void 0
|
|
8008
7866
|
});
|
|
8009
7867
|
createTableOverlap = (overlap) => createOverlapElement(overlap);
|
|
8010
|
-
});
|
|
7868
|
+
}));
|
|
8011
7869
|
//#endregion
|
|
8012
7870
|
//#region src/file/table/table-properties/table-layout.ts
|
|
8013
7871
|
var TableLayoutType, createTableLayout;
|
|
8014
|
-
var init_table_layout = __esmMin(() => {
|
|
7872
|
+
var init_table_layout = __esmMin((() => {
|
|
8015
7873
|
init_xml_components();
|
|
8016
7874
|
TableLayoutType = {
|
|
8017
7875
|
/** Auto-fit layout - column widths are adjusted based on content */
|
|
@@ -8026,11 +7884,11 @@ var init_table_layout = __esmMin(() => {
|
|
|
8026
7884
|
} },
|
|
8027
7885
|
name: "w:tblLayout"
|
|
8028
7886
|
});
|
|
8029
|
-
});
|
|
7887
|
+
}));
|
|
8030
7888
|
//#endregion
|
|
8031
7889
|
//#region src/file/table/table-properties/table-look.ts
|
|
8032
7890
|
var createTableLook;
|
|
8033
|
-
var init_table_look = __esmMin(() => {
|
|
7891
|
+
var init_table_look = __esmMin((() => {
|
|
8034
7892
|
init_xml_components();
|
|
8035
7893
|
createTableLook = ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }) => new BuilderElement({
|
|
8036
7894
|
attributes: {
|
|
@@ -8061,7 +7919,7 @@ var init_table_look = __esmMin(() => {
|
|
|
8061
7919
|
},
|
|
8062
7920
|
name: "w:tblLook"
|
|
8063
7921
|
});
|
|
8064
|
-
});
|
|
7922
|
+
}));
|
|
8065
7923
|
//#endregion
|
|
8066
7924
|
//#region src/file/table/table-properties/table-properties.ts
|
|
8067
7925
|
/**
|
|
@@ -8119,7 +7977,7 @@ function buildTableProperties(options) {
|
|
|
8119
7977
|
if (options.includeIfEmpty || children.length > 0) return { "w:tblPr": children };
|
|
8120
7978
|
}
|
|
8121
7979
|
var TableProperties, TablePropertiesChange;
|
|
8122
|
-
var init_table_properties$1 = __esmMin(() => {
|
|
7980
|
+
var init_table_properties$1 = __esmMin((() => {
|
|
8123
7981
|
init_xml_components();
|
|
8124
7982
|
init_values();
|
|
8125
7983
|
init_paragraph();
|
|
@@ -8185,11 +8043,11 @@ var init_table_properties$1 = __esmMin(() => {
|
|
|
8185
8043
|
}));
|
|
8186
8044
|
}
|
|
8187
8045
|
};
|
|
8188
|
-
});
|
|
8046
|
+
}));
|
|
8189
8047
|
//#endregion
|
|
8190
8048
|
//#region src/file/table/table-properties/table-property-exceptions.ts
|
|
8191
8049
|
var TablePropertyExceptions;
|
|
8192
|
-
var init_table_property_exceptions = __esmMin(() => {
|
|
8050
|
+
var init_table_property_exceptions = __esmMin((() => {
|
|
8193
8051
|
init_xml_components();
|
|
8194
8052
|
init_paragraph();
|
|
8195
8053
|
init_shading();
|
|
@@ -8216,21 +8074,21 @@ var init_table_property_exceptions = __esmMin(() => {
|
|
|
8216
8074
|
if (options.tableLook) this.root.push(createTableLook(options.tableLook));
|
|
8217
8075
|
}
|
|
8218
8076
|
};
|
|
8219
|
-
});
|
|
8077
|
+
}));
|
|
8220
8078
|
//#endregion
|
|
8221
8079
|
//#region src/file/table/table-properties/index.ts
|
|
8222
|
-
var init_table_properties = __esmMin(() => {
|
|
8080
|
+
var init_table_properties = __esmMin((() => {
|
|
8223
8081
|
init_table_properties$1();
|
|
8224
8082
|
init_table_float_properties();
|
|
8225
8083
|
init_table_layout();
|
|
8226
8084
|
init_table_borders();
|
|
8227
8085
|
init_table_look();
|
|
8228
8086
|
init_table_property_exceptions();
|
|
8229
|
-
});
|
|
8087
|
+
}));
|
|
8230
8088
|
//#endregion
|
|
8231
8089
|
//#region src/file/table/table-row/table-row-height.ts
|
|
8232
8090
|
var HeightRule, createTableRowHeight;
|
|
8233
|
-
var init_table_row_height = __esmMin(() => {
|
|
8091
|
+
var init_table_row_height = __esmMin((() => {
|
|
8234
8092
|
init_xml_components();
|
|
8235
8093
|
init_values();
|
|
8236
8094
|
HeightRule = {
|
|
@@ -8254,7 +8112,7 @@ var init_table_row_height = __esmMin(() => {
|
|
|
8254
8112
|
},
|
|
8255
8113
|
name: "w:trHeight"
|
|
8256
8114
|
});
|
|
8257
|
-
});
|
|
8115
|
+
}));
|
|
8258
8116
|
//#endregion
|
|
8259
8117
|
//#region src/file/table/table-row/table-row-properties.ts
|
|
8260
8118
|
/**
|
|
@@ -8304,7 +8162,7 @@ function buildTableRowProperties(options) {
|
|
|
8304
8162
|
if (options.includeIfEmpty || children.length > 0) return { "w:trPr": children };
|
|
8305
8163
|
}
|
|
8306
8164
|
var TableRowProperties, TableRowPropertiesChange;
|
|
8307
|
-
var init_table_row_properties = __esmMin(() => {
|
|
8165
|
+
var init_table_row_properties = __esmMin((() => {
|
|
8308
8166
|
init_track_revision();
|
|
8309
8167
|
init_xml_components();
|
|
8310
8168
|
init_values();
|
|
@@ -8377,11 +8235,11 @@ var init_table_row_properties = __esmMin(() => {
|
|
|
8377
8235
|
}));
|
|
8378
8236
|
}
|
|
8379
8237
|
};
|
|
8380
|
-
});
|
|
8238
|
+
}));
|
|
8381
8239
|
//#endregion
|
|
8382
8240
|
//#region src/file/table/table-row/table-row.ts
|
|
8383
8241
|
var TableRow;
|
|
8384
|
-
var init_table_row$1 = __esmMin(() => {
|
|
8242
|
+
var init_table_row$1 = __esmMin((() => {
|
|
8385
8243
|
init_xml_components();
|
|
8386
8244
|
init_sdt();
|
|
8387
8245
|
init_table_cell$1();
|
|
@@ -8431,26 +8289,6 @@ var init_table_row$1 = __esmMin(() => {
|
|
|
8431
8289
|
}
|
|
8432
8290
|
return idx;
|
|
8433
8291
|
}
|
|
8434
|
-
prepForXml(context) {
|
|
8435
|
-
const children = [];
|
|
8436
|
-
if (this.options.propertyExceptions) {
|
|
8437
|
-
const obj = new TablePropertyExceptions(this.options.propertyExceptions).prepForXml(context);
|
|
8438
|
-
if (obj) children.push(obj);
|
|
8439
|
-
}
|
|
8440
|
-
const trPrObj = buildTableRowProperties(this.options);
|
|
8441
|
-
if (trPrObj) children.push(trPrObj);
|
|
8442
|
-
const prefixCount = children.length;
|
|
8443
|
-
for (const child of this.coercedChildren) {
|
|
8444
|
-
const obj = child.prepForXml(context);
|
|
8445
|
-
if (obj) children.push(obj);
|
|
8446
|
-
}
|
|
8447
|
-
if (this.extraCells.length > 0) for (const { cell, columnIndex } of this.extraCells) {
|
|
8448
|
-
const insertIdx = this.findInsertIndex(columnIndex, prefixCount);
|
|
8449
|
-
const obj = cell.prepForXml(context);
|
|
8450
|
-
if (obj) children.splice(insertIdx, 0, obj);
|
|
8451
|
-
}
|
|
8452
|
-
return { "w:tr": children.length ? children : EMPTY_OBJECT };
|
|
8453
|
-
}
|
|
8454
8292
|
toXml(context) {
|
|
8455
8293
|
const parts = [];
|
|
8456
8294
|
if (this.options.propertyExceptions) parts.push(new TablePropertyExceptions(this.options.propertyExceptions).toXml(context));
|
|
@@ -8474,27 +8312,27 @@ var init_table_row$1 = __esmMin(() => {
|
|
|
8474
8312
|
return this.coercedChildren.length + prefixCount;
|
|
8475
8313
|
}
|
|
8476
8314
|
};
|
|
8477
|
-
});
|
|
8315
|
+
}));
|
|
8478
8316
|
//#endregion
|
|
8479
8317
|
//#region src/file/table/table-row/index.ts
|
|
8480
|
-
var init_table_row = __esmMin(() => {
|
|
8318
|
+
var init_table_row = __esmMin((() => {
|
|
8481
8319
|
init_table_row$1();
|
|
8482
8320
|
init_table_row_properties();
|
|
8483
8321
|
init_table_row_height();
|
|
8484
|
-
});
|
|
8322
|
+
}));
|
|
8485
8323
|
//#endregion
|
|
8486
8324
|
//#region src/file/table/index.ts
|
|
8487
|
-
var init_table$1 = __esmMin(() => {
|
|
8325
|
+
var init_table$1 = __esmMin((() => {
|
|
8488
8326
|
init_table();
|
|
8489
8327
|
init_table_cell$1();
|
|
8490
8328
|
init_table_properties();
|
|
8491
8329
|
init_table_row();
|
|
8492
8330
|
init_table_width();
|
|
8493
|
-
});
|
|
8331
|
+
}));
|
|
8494
8332
|
//#endregion
|
|
8495
8333
|
//#region src/file/table/table-properties/table-cell-margin.ts
|
|
8496
8334
|
var buildMarginChildren, createTableCellMargin, buildMarginChildrenObjs, buildTableCellMarginObj, buildCellMarginObj;
|
|
8497
|
-
var init_table_cell_margin = __esmMin(() => {
|
|
8335
|
+
var init_table_cell_margin = __esmMin((() => {
|
|
8498
8336
|
init_table$1();
|
|
8499
8337
|
init_xml_components();
|
|
8500
8338
|
buildMarginChildren = ({ marginUnitType = WidthType.DXA, top, left, bottom, right }) => [
|
|
@@ -8554,7 +8392,7 @@ var init_table_cell_margin = __esmMin(() => {
|
|
|
8554
8392
|
const children = buildMarginChildrenObjs(options);
|
|
8555
8393
|
return children.length > 0 ? { "w:tcMar": children } : void 0;
|
|
8556
8394
|
};
|
|
8557
|
-
});
|
|
8395
|
+
}));
|
|
8558
8396
|
//#endregion
|
|
8559
8397
|
//#region src/file/table/table-cell/table-cell-properties.ts
|
|
8560
8398
|
/**
|
|
@@ -8611,7 +8449,7 @@ function buildTableCellProperties(options) {
|
|
|
8611
8449
|
if (options.cellMerge) children.push(buildCellMergeObj(options.cellMerge));
|
|
8612
8450
|
if (options.includeIfEmpty || children.length > 0) return { "w:tcPr": children };
|
|
8613
8451
|
}
|
|
8614
|
-
var init_table_cell_properties = __esmMin(() => {
|
|
8452
|
+
var init_table_cell_properties = __esmMin((() => {
|
|
8615
8453
|
init_track_revision();
|
|
8616
8454
|
init_vertical_align();
|
|
8617
8455
|
init_xml_components();
|
|
@@ -8619,7 +8457,7 @@ var init_table_cell_properties = __esmMin(() => {
|
|
|
8619
8457
|
init_table_cell_margin();
|
|
8620
8458
|
init_table_width();
|
|
8621
8459
|
init_table_cell_components();
|
|
8622
|
-
});
|
|
8460
|
+
}));
|
|
8623
8461
|
//#endregion
|
|
8624
8462
|
//#region src/file/table/table-cell/table-cell.ts
|
|
8625
8463
|
function lazyCoerce(child) {
|
|
@@ -8627,7 +8465,7 @@ function lazyCoerce(child) {
|
|
|
8627
8465
|
return _coerce(child);
|
|
8628
8466
|
}
|
|
8629
8467
|
var _coerce, TableCell;
|
|
8630
|
-
var init_table_cell = __esmMin(() => {
|
|
8468
|
+
var init_table_cell = __esmMin((() => {
|
|
8631
8469
|
init_paragraph();
|
|
8632
8470
|
init_xml_components();
|
|
8633
8471
|
init_table_cell_properties();
|
|
@@ -8636,18 +8474,6 @@ var init_table_cell = __esmMin(() => {
|
|
|
8636
8474
|
super("w:tc");
|
|
8637
8475
|
this.options = options;
|
|
8638
8476
|
}
|
|
8639
|
-
prepForXml(context) {
|
|
8640
|
-
const children = [];
|
|
8641
|
-
const tPrObj = buildTableCellProperties(this.options);
|
|
8642
|
-
if (tPrObj) children.push(tPrObj);
|
|
8643
|
-
const coerced = this.options.children.map((c) => c instanceof BaseXmlComponent ? c : lazyCoerce(c));
|
|
8644
|
-
for (const child of coerced) {
|
|
8645
|
-
const obj = child.prepForXml(context);
|
|
8646
|
-
if (obj) children.push(obj);
|
|
8647
|
-
}
|
|
8648
|
-
if (!(coerced[coerced.length - 1] instanceof Paragraph)) children.push(new Paragraph({}).prepForXml(context));
|
|
8649
|
-
return { "w:tc": children };
|
|
8650
|
-
}
|
|
8651
8477
|
toXml(context) {
|
|
8652
8478
|
const parts = [];
|
|
8653
8479
|
const tPrObj = buildTableCellProperties(this.options);
|
|
@@ -8658,11 +8484,11 @@ var init_table_cell = __esmMin(() => {
|
|
|
8658
8484
|
return `<w:tc>${parts.join("")}</w:tc>`;
|
|
8659
8485
|
}
|
|
8660
8486
|
};
|
|
8661
|
-
});
|
|
8487
|
+
}));
|
|
8662
8488
|
//#endregion
|
|
8663
8489
|
//#region src/file/sdt/sdt-row.ts
|
|
8664
8490
|
var StructuredDocumentTagRow;
|
|
8665
|
-
var init_sdt_row = __esmMin(() => {
|
|
8491
|
+
var init_sdt_row = __esmMin((() => {
|
|
8666
8492
|
init_xml_components();
|
|
8667
8493
|
init_table_of_contents();
|
|
8668
8494
|
init_table_cell();
|
|
@@ -8688,18 +8514,18 @@ var init_sdt_row = __esmMin(() => {
|
|
|
8688
8514
|
if (this.rows.length > 0) this.rows[0].addCellToColumnIndex(cell, columnIndex);
|
|
8689
8515
|
}
|
|
8690
8516
|
};
|
|
8691
|
-
});
|
|
8517
|
+
}));
|
|
8692
8518
|
//#endregion
|
|
8693
8519
|
//#region src/file/sdt/index.ts
|
|
8694
|
-
var init_sdt = __esmMin(() => {
|
|
8520
|
+
var init_sdt = __esmMin((() => {
|
|
8695
8521
|
init_sdt$1();
|
|
8696
8522
|
init_sdt_cell();
|
|
8697
8523
|
init_sdt_row();
|
|
8698
|
-
});
|
|
8524
|
+
}));
|
|
8699
8525
|
//#endregion
|
|
8700
8526
|
//#region src/file/table/grid.ts
|
|
8701
8527
|
var createGridCol, TableGrid, TableGridChange;
|
|
8702
|
-
var init_grid = __esmMin(() => {
|
|
8528
|
+
var init_grid = __esmMin((() => {
|
|
8703
8529
|
init_xml_components();
|
|
8704
8530
|
init_values();
|
|
8705
8531
|
createGridCol = (width) => new BuilderElement({
|
|
@@ -8723,11 +8549,11 @@ var init_grid = __esmMin(() => {
|
|
|
8723
8549
|
this.root.push(new TableGrid(options.columnWidths));
|
|
8724
8550
|
}
|
|
8725
8551
|
};
|
|
8726
|
-
});
|
|
8552
|
+
}));
|
|
8727
8553
|
//#endregion
|
|
8728
8554
|
//#region src/file/table/table.ts
|
|
8729
8555
|
var Table;
|
|
8730
|
-
var init_table = __esmMin(() => {
|
|
8556
|
+
var init_table = __esmMin((() => {
|
|
8731
8557
|
init_xml_components();
|
|
8732
8558
|
init_sdt();
|
|
8733
8559
|
init_grid();
|
|
@@ -8766,35 +8592,6 @@ var init_table = __esmMin(() => {
|
|
|
8766
8592
|
});
|
|
8767
8593
|
});
|
|
8768
8594
|
}
|
|
8769
|
-
prepForXml(context) {
|
|
8770
|
-
const children = [];
|
|
8771
|
-
const tblPrObj = new TableProperties({
|
|
8772
|
-
alignment: this.options.alignment,
|
|
8773
|
-
borders: this.options.borders ?? {},
|
|
8774
|
-
caption: this.options.caption,
|
|
8775
|
-
cellMargin: this.options.margins,
|
|
8776
|
-
cellSpacing: this.options.cellSpacing,
|
|
8777
|
-
description: this.options.description,
|
|
8778
|
-
float: this.options.float,
|
|
8779
|
-
indent: this.options.indent,
|
|
8780
|
-
layout: this.options.layout,
|
|
8781
|
-
revision: this.options.revision,
|
|
8782
|
-
style: this.options.style,
|
|
8783
|
-
styleColBandSize: this.options.styleColBandSize,
|
|
8784
|
-
styleRowBandSize: this.options.styleRowBandSize,
|
|
8785
|
-
tableLook: this.options.tableLook,
|
|
8786
|
-
visuallyRightToLeft: this.options.visuallyRightToLeft,
|
|
8787
|
-
width: this.options.width ?? { size: 100 }
|
|
8788
|
-
}).prepForXml(context);
|
|
8789
|
-
if (tblPrObj) children.push(tblPrObj);
|
|
8790
|
-
const gridObj = new TableGrid(this.columnWidths, this.options.columnWidthsRevision).prepForXml(context);
|
|
8791
|
-
if (gridObj) children.push(gridObj);
|
|
8792
|
-
for (const row of this.rows) {
|
|
8793
|
-
const obj = row.prepForXml(context);
|
|
8794
|
-
if (obj) children.push(obj);
|
|
8795
|
-
}
|
|
8796
|
-
return { "w:tbl": children };
|
|
8797
|
-
}
|
|
8798
8595
|
toXml(context) {
|
|
8799
8596
|
const parts = [];
|
|
8800
8597
|
const tblPr = new TableProperties({
|
|
@@ -8821,31 +8618,31 @@ var init_table = __esmMin(() => {
|
|
|
8821
8618
|
return `<w:tbl>${parts.join("")}</w:tbl>`;
|
|
8822
8619
|
}
|
|
8823
8620
|
};
|
|
8824
|
-
});
|
|
8621
|
+
}));
|
|
8825
8622
|
//#endregion
|
|
8826
8623
|
//#region src/file/textbox/pict-element/pict-element.ts
|
|
8827
8624
|
var createPictElement;
|
|
8828
|
-
var init_pict_element = __esmMin(() => {
|
|
8625
|
+
var init_pict_element = __esmMin((() => {
|
|
8829
8626
|
init_xml_components();
|
|
8830
8627
|
createPictElement = ({ shape }) => new BuilderElement({
|
|
8831
8628
|
children: [shape],
|
|
8832
8629
|
name: "w:pict"
|
|
8833
8630
|
});
|
|
8834
|
-
});
|
|
8631
|
+
}));
|
|
8835
8632
|
//#endregion
|
|
8836
8633
|
//#region src/file/textbox/texbox-content/textbox-content.ts
|
|
8837
8634
|
var createTextboxContent;
|
|
8838
|
-
var init_textbox_content = __esmMin(() => {
|
|
8635
|
+
var init_textbox_content = __esmMin((() => {
|
|
8839
8636
|
init_xml_components();
|
|
8840
8637
|
createTextboxContent = ({ children = [] }) => new BuilderElement({
|
|
8841
8638
|
children,
|
|
8842
8639
|
name: "w:txbxContent"
|
|
8843
8640
|
});
|
|
8844
|
-
});
|
|
8641
|
+
}));
|
|
8845
8642
|
//#endregion
|
|
8846
8643
|
//#region src/file/textbox/vml-textbox/vml-texbox.ts
|
|
8847
8644
|
var createVmlTextbox;
|
|
8848
|
-
var init_vml_texbox = __esmMin(() => {
|
|
8645
|
+
var init_vml_texbox = __esmMin((() => {
|
|
8849
8646
|
init_xml_components();
|
|
8850
8647
|
init_textbox_content();
|
|
8851
8648
|
createVmlTextbox = ({ style, children, inset }) => new BuilderElement({
|
|
@@ -8866,11 +8663,11 @@ var init_vml_texbox = __esmMin(() => {
|
|
|
8866
8663
|
children: [createTextboxContent({ children })],
|
|
8867
8664
|
name: "v:textbox"
|
|
8868
8665
|
});
|
|
8869
|
-
});
|
|
8666
|
+
}));
|
|
8870
8667
|
//#endregion
|
|
8871
8668
|
//#region src/file/textbox/shape/shape.ts
|
|
8872
8669
|
var SHAPE_TYPE, styleToKeyMap, formatShapeStyle, createShape;
|
|
8873
|
-
var init_shape = __esmMin(() => {
|
|
8670
|
+
var init_shape = __esmMin((() => {
|
|
8874
8671
|
init_xml_components();
|
|
8875
8672
|
init_vml_texbox();
|
|
8876
8673
|
SHAPE_TYPE = "#_x0000_t202";
|
|
@@ -8921,11 +8718,11 @@ var init_shape = __esmMin(() => {
|
|
|
8921
8718
|
})],
|
|
8922
8719
|
name: "v:shape"
|
|
8923
8720
|
});
|
|
8924
|
-
});
|
|
8721
|
+
}));
|
|
8925
8722
|
//#endregion
|
|
8926
8723
|
//#region src/file/textbox/textbox.ts
|
|
8927
8724
|
var Textbox;
|
|
8928
|
-
var init_textbox = __esmMin(() => {
|
|
8725
|
+
var init_textbox = __esmMin((() => {
|
|
8929
8726
|
init_paragraph();
|
|
8930
8727
|
init_xml_components();
|
|
8931
8728
|
init_convenience_functions();
|
|
@@ -8943,7 +8740,7 @@ var init_textbox = __esmMin(() => {
|
|
|
8943
8740
|
}) }));
|
|
8944
8741
|
}
|
|
8945
8742
|
};
|
|
8946
|
-
});
|
|
8743
|
+
}));
|
|
8947
8744
|
//#endregion
|
|
8948
8745
|
//#region src/file/coerce.ts
|
|
8949
8746
|
var coerce_exports = /* @__PURE__ */ __exportAll({ coerceSectionChild: () => coerceSectionChild });
|
|
@@ -8979,7 +8776,7 @@ function coerceSectionChild(child) {
|
|
|
8979
8776
|
if ("subDoc" in child) return new SubDoc(child.subDoc);
|
|
8980
8777
|
throw new Error("Unknown section child type");
|
|
8981
8778
|
}
|
|
8982
|
-
var init_coerce = __esmMin(() => {
|
|
8779
|
+
var init_coerce = __esmMin((() => {
|
|
8983
8780
|
init_alt_chunk();
|
|
8984
8781
|
init_paragraph$1();
|
|
8985
8782
|
init_sdt$1();
|
|
@@ -8988,7 +8785,7 @@ var init_coerce = __esmMin(() => {
|
|
|
8988
8785
|
init_table();
|
|
8989
8786
|
init_textbox();
|
|
8990
8787
|
init_xml_components();
|
|
8991
|
-
});
|
|
8788
|
+
}));
|
|
8992
8789
|
//#endregion
|
|
8993
8790
|
//#region src/file/alt-chunk/alt-chunk-collection.ts
|
|
8994
8791
|
init_coerce();
|
|
@@ -9478,12 +9275,10 @@ var CustomProperties = class extends XmlComponent {
|
|
|
9478
9275
|
this.nextId = 2;
|
|
9479
9276
|
for (const property of properties) this.addCustomProperty(property);
|
|
9480
9277
|
}
|
|
9481
|
-
prepForXml(context) {
|
|
9482
|
-
this.properties.forEach((x) => this.root.push(x));
|
|
9483
|
-
return super.prepForXml(context);
|
|
9484
|
-
}
|
|
9485
9278
|
addCustomProperty(property) {
|
|
9486
|
-
|
|
9279
|
+
const prop = new CustomProperty(this.nextId++, property);
|
|
9280
|
+
this.properties.push(prop);
|
|
9281
|
+
this.root.push(prop);
|
|
9487
9282
|
}
|
|
9488
9283
|
};
|
|
9489
9284
|
//#endregion
|
|
@@ -10575,20 +10370,15 @@ var Body = class extends XmlComponent {
|
|
|
10575
10370
|
this.sections.push(new SectionProperties(options));
|
|
10576
10371
|
}
|
|
10577
10372
|
/**
|
|
10578
|
-
*
|
|
10579
|
-
*
|
|
10580
|
-
* Ensures that the last section's properties are placed as a direct child of the body
|
|
10581
|
-
* element, as required by the OOXML specification.
|
|
10582
|
-
*
|
|
10583
|
-
* @param context - The XML serialization context
|
|
10584
|
-
* @returns The prepared XML object or undefined
|
|
10373
|
+
* Direct XML serialization — ensures section properties are appended
|
|
10374
|
+
* before delegating to the default XmlComponent.toXml() traversal.
|
|
10585
10375
|
*/
|
|
10586
|
-
|
|
10376
|
+
toXml(context) {
|
|
10587
10377
|
if (this.sections.length === 1) {
|
|
10588
10378
|
this.root.splice(0, 1);
|
|
10589
10379
|
this.root.push(this.sections.pop());
|
|
10590
10380
|
}
|
|
10591
|
-
return super.
|
|
10381
|
+
return super.toXml(context);
|
|
10592
10382
|
}
|
|
10593
10383
|
/**
|
|
10594
10384
|
* Adds a block-level component to the body.
|
|
@@ -10702,7 +10492,7 @@ var DocumentBackground = class extends XmlComponent {
|
|
|
10702
10492
|
};
|
|
10703
10493
|
}
|
|
10704
10494
|
}
|
|
10705
|
-
|
|
10495
|
+
toXml(context) {
|
|
10706
10496
|
if (this.imageData) {
|
|
10707
10497
|
context.file.media.addImage(this.imageData.fileName, {
|
|
10708
10498
|
type: this.imageData.type,
|
|
@@ -10748,7 +10538,7 @@ var DocumentBackground = class extends XmlComponent {
|
|
|
10748
10538
|
name: "v:background"
|
|
10749
10539
|
}));
|
|
10750
10540
|
}
|
|
10751
|
-
return super.
|
|
10541
|
+
return super.toXml(context);
|
|
10752
10542
|
}
|
|
10753
10543
|
};
|
|
10754
10544
|
//#endregion
|
|
@@ -12378,18 +12168,13 @@ var Numbering = class extends XmlComponent {
|
|
|
12378
12168
|
this.referenceConfigMap.set(con.reference, con.levels);
|
|
12379
12169
|
}
|
|
12380
12170
|
}
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
*
|
|
12384
|
-
* Adds all abstract and concrete numbering definitions to the XML tree.
|
|
12385
|
-
*
|
|
12386
|
-
* @param context - The XML context
|
|
12387
|
-
* @returns The prepared XML object
|
|
12388
|
-
*/
|
|
12389
|
-
prepForXml(context) {
|
|
12171
|
+
toXml(context) {
|
|
12172
|
+
const start = this.root.length;
|
|
12390
12173
|
for (const numbering of this.abstractNumberingMap.values()) this.root.push(numbering);
|
|
12391
12174
|
for (const numbering of this.concreteNumberingMap.values()) this.root.push(numbering);
|
|
12392
|
-
|
|
12175
|
+
const result = super.toXml(context);
|
|
12176
|
+
this.root.length = start;
|
|
12177
|
+
return result;
|
|
12393
12178
|
}
|
|
12394
12179
|
/**
|
|
12395
12180
|
* Creates a concrete numbering instance from an abstract numbering definition.
|
|
@@ -14256,7 +14041,6 @@ var file_exports = /* @__PURE__ */ __exportAll({
|
|
|
14256
14041
|
AltChunk: () => AltChunk,
|
|
14257
14042
|
AltChunkCollection: () => AltChunkCollection,
|
|
14258
14043
|
AnnotationReference: () => AnnotationReference,
|
|
14259
|
-
Attributes: () => Attributes,
|
|
14260
14044
|
BaseXmlComponent: () => BaseXmlComponent,
|
|
14261
14045
|
Bdo: () => Bdo,
|
|
14262
14046
|
Bibliography: () => Bibliography,
|
|
@@ -14391,7 +14175,6 @@ var file_exports = /* @__PURE__ */ __exportAll({
|
|
|
14391
14175
|
MoveToRangeStart: () => MoveToRangeStart,
|
|
14392
14176
|
MovedFromTextRun: () => MovedFromTextRun,
|
|
14393
14177
|
MovedToTextRun: () => MovedToTextRun,
|
|
14394
|
-
NextAttributeComponent: () => NextAttributeComponent,
|
|
14395
14178
|
NoBreakHyphen: () => NoBreakHyphen,
|
|
14396
14179
|
NumberFormat: () => NumberFormat,
|
|
14397
14180
|
NumberProperties: () => NumberProperties,
|
|
@@ -14501,7 +14284,6 @@ var file_exports = /* @__PURE__ */ __exportAll({
|
|
|
14501
14284
|
WidthType: () => WidthType,
|
|
14502
14285
|
WpgGroupRun: () => WpgGroupRun,
|
|
14503
14286
|
WpsShapeRun: () => WpsShapeRun,
|
|
14504
|
-
XmlAttributeComponent: () => XmlAttributeComponent,
|
|
14505
14287
|
XmlComponent: () => XmlComponent,
|
|
14506
14288
|
YearLong: () => YearLong,
|
|
14507
14289
|
YearShort: () => YearShort,
|
|
@@ -14700,7 +14482,7 @@ const obfuscate = (buf, fontKey) => {
|
|
|
14700
14482
|
//#region src/export/packer/numbering-placeholders.ts
|
|
14701
14483
|
function replaceNumberingPlaceholders(xml, concreteNumberings) {
|
|
14702
14484
|
let result = xml;
|
|
14703
|
-
for (const { reference, instance, numId } of concreteNumberings) result = result.
|
|
14485
|
+
for (const { reference, instance, numId } of concreteNumberings) result = result.replaceAll(`{${reference}-${instance}}`, numId.toString());
|
|
14704
14486
|
return result;
|
|
14705
14487
|
}
|
|
14706
14488
|
//#endregion
|
|
@@ -14772,32 +14554,20 @@ var Compiler = class {
|
|
|
14772
14554
|
viewWrapper
|
|
14773
14555
|
});
|
|
14774
14556
|
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"
|
|
14778
|
-
});
|
|
14557
|
+
const documentXmlData = this.formatter.formatToXml(file.document.view, mkCtx(file.document));
|
|
14779
14558
|
const commentRelationshipCount = file.comments.relationships.relationshipCount + 1;
|
|
14780
14559
|
const commentXmlData = this.formatter.formatToXml(file.comments, mkCtx({
|
|
14781
14560
|
relationships: file.comments.relationships,
|
|
14782
14561
|
view: file.comments
|
|
14783
|
-
})
|
|
14784
|
-
encoding: "UTF-8",
|
|
14785
|
-
standalone: "yes"
|
|
14786
|
-
});
|
|
14562
|
+
}));
|
|
14787
14563
|
const footnoteRelationshipCount = file.footNotes.relationships.relationshipCount + 1;
|
|
14788
|
-
const footnoteXmlData = this.formatter.formatToXml(file.footNotes.view, mkCtx(file.footNotes)
|
|
14789
|
-
encoding: "UTF-8",
|
|
14790
|
-
standalone: "yes"
|
|
14791
|
-
});
|
|
14564
|
+
const footnoteXmlData = this.formatter.formatToXml(file.footNotes.view, mkCtx(file.footNotes));
|
|
14792
14565
|
const documentMediaDatas = hasPlaceholders(documentXmlData) ? getReferencedMedia(documentXmlData, file.media.array) : [];
|
|
14793
14566
|
const commentMediaDatas = hasPlaceholders(commentXmlData) ? getReferencedMedia(commentXmlData, file.media.array) : [];
|
|
14794
14567
|
const footnoteMediaDatas = hasPlaceholders(footnoteXmlData) ? getReferencedMedia(footnoteXmlData, file.media.array) : [];
|
|
14795
14568
|
return {
|
|
14796
14569
|
AppProperties: {
|
|
14797
|
-
data: this.formatter.formatToXml(file.appProperties, mkCtx(file.document),
|
|
14798
|
-
encoding: "UTF-8",
|
|
14799
|
-
standalone: "yes"
|
|
14800
|
-
}),
|
|
14570
|
+
data: this.formatter.formatToXml(file.appProperties, mkCtx(file.document)),
|
|
14801
14571
|
path: "docProps/app.xml"
|
|
14802
14572
|
},
|
|
14803
14573
|
Comments: {
|
|
@@ -14812,7 +14582,7 @@ var Compiler = class {
|
|
|
14812
14582
|
return this.formatter.formatToXml(file.comments.relationships, mkCtx({
|
|
14813
14583
|
relationships: file.comments.relationships,
|
|
14814
14584
|
view: file.comments
|
|
14815
|
-
})
|
|
14585
|
+
}));
|
|
14816
14586
|
})(),
|
|
14817
14587
|
path: "word/_rels/comments.xml.rels"
|
|
14818
14588
|
},
|
|
@@ -14828,15 +14598,12 @@ var Compiler = class {
|
|
|
14828
14598
|
file.contentTypes.addDiagramColors(i + 1);
|
|
14829
14599
|
file.contentTypes.addDiagramDrawing(i + 1);
|
|
14830
14600
|
});
|
|
14831
|
-
return this.formatter.formatToXml(file.contentTypes, mkCtx(file.document)
|
|
14601
|
+
return this.formatter.formatToXml(file.contentTypes, mkCtx(file.document));
|
|
14832
14602
|
})(),
|
|
14833
14603
|
path: "[Content_Types].xml"
|
|
14834
14604
|
},
|
|
14835
14605
|
CustomProperties: {
|
|
14836
|
-
data: this.formatter.formatToXml(file.customProperties, mkCtx(file.document),
|
|
14837
|
-
encoding: "UTF-8",
|
|
14838
|
-
standalone: "yes"
|
|
14839
|
-
}),
|
|
14606
|
+
data: this.formatter.formatToXml(file.customProperties, mkCtx(file.document)),
|
|
14840
14607
|
path: "docProps/custom.xml"
|
|
14841
14608
|
},
|
|
14842
14609
|
Document: {
|
|
@@ -14852,26 +14619,23 @@ var Compiler = class {
|
|
|
14852
14619
|
path: "word/document.xml"
|
|
14853
14620
|
},
|
|
14854
14621
|
Endnotes: {
|
|
14855
|
-
data: this.formatter.formatToXml(file.endnotes.view, mkCtx(file.endnotes)
|
|
14622
|
+
data: this.formatter.formatToXml(file.endnotes.view, mkCtx(file.endnotes)),
|
|
14856
14623
|
path: "word/endnotes.xml"
|
|
14857
14624
|
},
|
|
14858
14625
|
EndnotesRelationships: {
|
|
14859
|
-
data: this.formatter.formatToXml(file.endnotes.relationships, mkCtx(file.endnotes)
|
|
14626
|
+
data: this.formatter.formatToXml(file.endnotes.relationships, mkCtx(file.endnotes)),
|
|
14860
14627
|
path: "word/_rels/endnotes.xml.rels"
|
|
14861
14628
|
},
|
|
14862
14629
|
FileRelationships: {
|
|
14863
|
-
data: this.formatter.formatToXml(file.fileRelationships, mkCtx(file.document)
|
|
14630
|
+
data: this.formatter.formatToXml(file.fileRelationships, mkCtx(file.document)),
|
|
14864
14631
|
path: "_rels/.rels"
|
|
14865
14632
|
},
|
|
14866
14633
|
FontTable: {
|
|
14867
|
-
data: this.formatter.formatToXml(file.fontTable.view, mkCtx(file.document),
|
|
14868
|
-
encoding: "UTF-8",
|
|
14869
|
-
standalone: "yes"
|
|
14870
|
-
}),
|
|
14634
|
+
data: this.formatter.formatToXml(file.fontTable.view, mkCtx(file.document)),
|
|
14871
14635
|
path: "word/fontTable.xml"
|
|
14872
14636
|
},
|
|
14873
14637
|
FontTableRelationships: {
|
|
14874
|
-
data: this.formatter.formatToXml(file.fontTable.relationships, mkCtx(file.document)
|
|
14638
|
+
data: this.formatter.formatToXml(file.fontTable.relationships, mkCtx(file.document)),
|
|
14875
14639
|
path: "word/_rels/fontTable.xml.rels"
|
|
14876
14640
|
},
|
|
14877
14641
|
FootNotes: {
|
|
@@ -14883,18 +14647,18 @@ var Compiler = class {
|
|
|
14883
14647
|
footnoteMediaDatas.forEach((mediaData, i) => {
|
|
14884
14648
|
file.footNotes.relationships.addRelationship(footnoteRelationshipCount + i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14885
14649
|
});
|
|
14886
|
-
return this.formatter.formatToXml(file.footNotes.relationships, mkCtx(file.footNotes)
|
|
14650
|
+
return this.formatter.formatToXml(file.footNotes.relationships, mkCtx(file.footNotes));
|
|
14887
14651
|
})(),
|
|
14888
14652
|
path: "word/_rels/footnotes.xml.rels"
|
|
14889
14653
|
},
|
|
14890
14654
|
FooterRelationships: file.footers.map((footerWrapper, index) => {
|
|
14891
|
-
const xmlData = this.formatter.formatToXml(footerWrapper.view, mkCtx(footerWrapper)
|
|
14655
|
+
const xmlData = this.formatter.formatToXml(footerWrapper.view, mkCtx(footerWrapper));
|
|
14892
14656
|
footerFormattedViews.set(index, xmlData);
|
|
14893
14657
|
getReferencedMedia(xmlData, file.media.array).forEach((mediaData, i) => {
|
|
14894
14658
|
footerWrapper.relationships.addRelationship(i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14895
14659
|
});
|
|
14896
14660
|
return {
|
|
14897
|
-
data: this.formatter.formatToXml(footerWrapper.relationships, mkCtx(footerWrapper)
|
|
14661
|
+
data: this.formatter.formatToXml(footerWrapper.relationships, mkCtx(footerWrapper)),
|
|
14898
14662
|
path: `word/_rels/footer${index + 1}.xml.rels`
|
|
14899
14663
|
};
|
|
14900
14664
|
}),
|
|
@@ -14907,13 +14671,13 @@ var Compiler = class {
|
|
|
14907
14671
|
};
|
|
14908
14672
|
}),
|
|
14909
14673
|
HeaderRelationships: file.headers.map((headerWrapper, index) => {
|
|
14910
|
-
const xmlData = this.formatter.formatToXml(headerWrapper.view, mkCtx(headerWrapper)
|
|
14674
|
+
const xmlData = this.formatter.formatToXml(headerWrapper.view, mkCtx(headerWrapper));
|
|
14911
14675
|
headerFormattedViews.set(index, xmlData);
|
|
14912
14676
|
getReferencedMedia(xmlData, file.media.array).forEach((mediaData, i) => {
|
|
14913
14677
|
headerWrapper.relationships.addRelationship(i, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${mediaData.fileName}`);
|
|
14914
14678
|
});
|
|
14915
14679
|
return {
|
|
14916
|
-
data: this.formatter.formatToXml(headerWrapper.relationships, mkCtx(headerWrapper)
|
|
14680
|
+
data: this.formatter.formatToXml(headerWrapper.relationships, mkCtx(headerWrapper)),
|
|
14917
14681
|
path: `word/_rels/header${index + 1}.xml.rels`
|
|
14918
14682
|
};
|
|
14919
14683
|
}),
|
|
@@ -14926,17 +14690,11 @@ var Compiler = class {
|
|
|
14926
14690
|
};
|
|
14927
14691
|
}),
|
|
14928
14692
|
Numbering: {
|
|
14929
|
-
data: this.formatter.formatToXml(file.numbering, mkCtx(file.document),
|
|
14930
|
-
encoding: "UTF-8",
|
|
14931
|
-
standalone: "yes"
|
|
14932
|
-
}),
|
|
14693
|
+
data: this.formatter.formatToXml(file.numbering, mkCtx(file.document)),
|
|
14933
14694
|
path: "word/numbering.xml"
|
|
14934
14695
|
},
|
|
14935
14696
|
Properties: {
|
|
14936
|
-
data: this.formatter.formatToXml(file.coreProperties, mkCtx(file.document),
|
|
14937
|
-
encoding: "UTF-8",
|
|
14938
|
-
standalone: "yes"
|
|
14939
|
-
}),
|
|
14697
|
+
data: this.formatter.formatToXml(file.coreProperties, mkCtx(file.document)),
|
|
14940
14698
|
path: "docProps/core.xml"
|
|
14941
14699
|
},
|
|
14942
14700
|
Relationships: {
|
|
@@ -14955,53 +14713,35 @@ var Compiler = class {
|
|
|
14955
14713
|
styleRelType: "http://schemas.microsoft.com/office/2007/relationships/diagramStyle"
|
|
14956
14714
|
});
|
|
14957
14715
|
file.document.relationships.addRelationship(file.document.relationships.relationshipCount + 1, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", "fontTable.xml");
|
|
14958
|
-
return this.formatter.formatToXml(file.document.relationships, mkCtx(file.document)
|
|
14716
|
+
return this.formatter.formatToXml(file.document.relationships, mkCtx(file.document));
|
|
14959
14717
|
})(),
|
|
14960
14718
|
path: "word/_rels/document.xml.rels"
|
|
14961
14719
|
},
|
|
14962
14720
|
Settings: {
|
|
14963
|
-
data: this.formatter.formatToXml(file.settings, mkCtx(file.document),
|
|
14964
|
-
encoding: "UTF-8",
|
|
14965
|
-
standalone: "yes"
|
|
14966
|
-
}),
|
|
14721
|
+
data: this.formatter.formatToXml(file.settings, mkCtx(file.document)),
|
|
14967
14722
|
path: "word/settings.xml"
|
|
14968
14723
|
},
|
|
14969
14724
|
Styles: {
|
|
14970
|
-
data: replaceNumberingPlaceholders(this.formatter.formatToXml(file.styles, mkCtx(file.document),
|
|
14971
|
-
encoding: "UTF-8",
|
|
14972
|
-
standalone: "yes"
|
|
14973
|
-
}), file.numbering.concreteNumbering),
|
|
14725
|
+
data: replaceNumberingPlaceholders(this.formatter.formatToXml(file.styles, mkCtx(file.document)), file.numbering.concreteNumbering),
|
|
14974
14726
|
path: "word/styles.xml"
|
|
14975
14727
|
},
|
|
14976
14728
|
...file.bibliography ? { Bibliography: {
|
|
14977
14729
|
data: this.formatter.formatToXml(file.bibliography, mkCtx({
|
|
14978
14730
|
relationships: file.bibliography.relationships,
|
|
14979
14731
|
view: file.bibliography
|
|
14980
|
-
}),
|
|
14981
|
-
encoding: "UTF-8",
|
|
14982
|
-
standalone: "yes"
|
|
14983
|
-
}),
|
|
14732
|
+
})),
|
|
14984
14733
|
path: "word/bibliography.xml"
|
|
14985
14734
|
} } : {},
|
|
14986
14735
|
...file.charts.array.length > 0 ? { Charts: file.charts.array.flatMap((chartData, i) => [{
|
|
14987
|
-
data: this.formatter.formatToXml(chartData.chartSpace, mkCtx(file.document),
|
|
14988
|
-
encoding: "UTF-8",
|
|
14989
|
-
standalone: "yes"
|
|
14990
|
-
}),
|
|
14736
|
+
data: this.formatter.formatToXml(chartData.chartSpace, mkCtx(file.document)),
|
|
14991
14737
|
path: `word/charts/chart${i + 1}.xml`
|
|
14992
14738
|
}, {
|
|
14993
|
-
data: xml({ Relationships: { _attr: { xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" } } },
|
|
14994
|
-
encoding: "UTF-8",
|
|
14995
|
-
standalone: "yes"
|
|
14996
|
-
} }),
|
|
14739
|
+
data: xml({ Relationships: { _attr: { xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" } } }),
|
|
14997
14740
|
path: `word/charts/_rels/chart${i + 1}.xml.rels`
|
|
14998
14741
|
}]) } : {},
|
|
14999
14742
|
...file.smartArts.array.length > 0 ? {
|
|
15000
14743
|
DiagramData: file.smartArts.array.map((smartArtData, i) => ({
|
|
15001
|
-
data: this.formatter.formatToXml(smartArtData.dataModel, mkCtx(file.document),
|
|
15002
|
-
encoding: "UTF-8",
|
|
15003
|
-
standalone: "yes"
|
|
15004
|
-
}),
|
|
14744
|
+
data: this.formatter.formatToXml(smartArtData.dataModel, mkCtx(file.document)),
|
|
15005
14745
|
path: `word/diagrams/data${i + 1}.xml`
|
|
15006
14746
|
})),
|
|
15007
14747
|
DiagramLayout: file.smartArts.array.map((smartArtData, i) => ({
|
|
@@ -17856,7 +17596,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
17856
17596
|
AltChunk: () => AltChunk,
|
|
17857
17597
|
AltChunkCollection: () => AltChunkCollection,
|
|
17858
17598
|
AnnotationReference: () => AnnotationReference,
|
|
17859
|
-
Attributes: () => Attributes,
|
|
17860
17599
|
BaseXmlComponent: () => BaseXmlComponent,
|
|
17861
17600
|
Bdo: () => Bdo,
|
|
17862
17601
|
Bibliography: () => Bibliography,
|
|
@@ -17991,7 +17730,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
17991
17730
|
MoveToRangeStart: () => MoveToRangeStart,
|
|
17992
17731
|
MovedFromTextRun: () => MovedFromTextRun,
|
|
17993
17732
|
MovedToTextRun: () => MovedToTextRun,
|
|
17994
|
-
NextAttributeComponent: () => NextAttributeComponent,
|
|
17995
17733
|
NoBreakHyphen: () => NoBreakHyphen,
|
|
17996
17734
|
NumberFormat: () => NumberFormat,
|
|
17997
17735
|
NumberProperties: () => NumberProperties,
|
|
@@ -18103,7 +17841,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
18103
17841
|
WidthType: () => WidthType,
|
|
18104
17842
|
WpgGroupRun: () => WpgGroupRun,
|
|
18105
17843
|
WpsShapeRun: () => WpsShapeRun,
|
|
18106
|
-
XmlAttributeComponent: () => XmlAttributeComponent,
|
|
18107
17844
|
XmlComponent: () => XmlComponent,
|
|
18108
17845
|
YearLong: () => YearLong,
|
|
18109
17846
|
YearShort: () => YearShort,
|
|
@@ -18250,6 +17987,6 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
18250
17987
|
__reExport(src_exports, file_exports);
|
|
18251
17988
|
__reExport(src_exports, util_exports);
|
|
18252
17989
|
//#endregion
|
|
18253
|
-
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference,
|
|
17990
|
+
export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, 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, 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, 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 };
|
|
18254
17991
|
|
|
18255
|
-
//# sourceMappingURL=index.
|
|
17992
|
+
//# sourceMappingURL=index.mjs.map
|