abstract-document 16.0.39 → 16.1.1

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/lib/abstract-document/markdown/markdown.d.ts.map +1 -1
  3. package/lib/abstract-document/markdown/markdown.js +1 -10
  4. package/lib/abstract-document/markdown/markdown.js.map +1 -1
  5. package/lib/abstract-document/section-elements/paragraph.d.ts +0 -2
  6. package/lib/abstract-document/section-elements/paragraph.d.ts.map +1 -1
  7. package/lib/abstract-document/section-elements/paragraph.js +1 -2
  8. package/lib/abstract-document/section-elements/paragraph.js.map +1 -1
  9. package/lib/abstract-document/styles/text-style.d.ts +0 -3
  10. package/lib/abstract-document/styles/text-style.d.ts.map +1 -1
  11. package/lib/abstract-document/styles/text-style.js +0 -1
  12. package/lib/abstract-document/styles/text-style.js.map +1 -1
  13. package/lib/abstract-document-exporters/pdf/measure.js +13 -3
  14. package/lib/abstract-document-exporters/pdf/measure.js.map +1 -1
  15. package/lib/abstract-document-exporters/pdf/pre-process.js +23 -1
  16. package/lib/abstract-document-exporters/pdf/pre-process.js.map +1 -1
  17. package/lib/abstract-document-exporters/pdf/render.d.ts.map +1 -1
  18. package/lib/abstract-document-exporters/pdf/render.js +116 -152
  19. package/lib/abstract-document-exporters/pdf/render.js.map +1 -1
  20. package/lib/abstract-document-exporters/pdf/textRunRow.d.ts +8 -0
  21. package/lib/abstract-document-exporters/pdf/textRunRow.d.ts.map +1 -0
  22. package/lib/abstract-document-exporters/pdf/textRunRow.js +225 -0
  23. package/lib/abstract-document-exporters/pdf/textRunRow.js.map +1 -0
  24. package/lib/abstract-document-xml/xsd-template/styles.d.ts +2 -2
  25. package/lib/abstract-document-xml/xsd-template/styles.d.ts.map +1 -1
  26. package/lib/abstract-document-xml/xsd-template/styles.js +4 -14
  27. package/lib/abstract-document-xml/xsd-template/styles.js.map +1 -1
  28. package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts +2 -2
  29. package/lib/abstract-document-xml/xsd-template/xsd-template.d.ts.map +1 -1
  30. package/package.json +2 -2
  31. package/src/abstract-document/markdown/markdown.ts +1 -11
  32. package/src/abstract-document/section-elements/paragraph.ts +1 -4
  33. package/src/abstract-document/styles/text-style.ts +0 -4
  34. package/src/abstract-document-exporters/pdf/measure.ts +15 -3
  35. package/src/abstract-document-exporters/pdf/pre-process.ts +22 -1
  36. package/src/abstract-document-exporters/pdf/render.ts +93 -172
  37. package/src/abstract-document-exporters/pdf/textRunRow.ts +222 -0
  38. package/src/abstract-document-xml/xsd-template/styles.ts +4 -14
  39. package/lib/abstract-document-exporters/shared/to-base-64.d.ts +0 -3
  40. package/lib/abstract-document-exporters/shared/to-base-64.d.ts.map +0 -1
  41. package/lib/abstract-document-exporters/shared/to-base-64.js +0 -19
  42. package/lib/abstract-document-exporters/shared/to-base-64.js.map +0 -1
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.rowsSplit = rowsSplit;
37
+ exports.rowsCombineTextRuns = rowsCombineTextRuns;
38
+ const AD = __importStar(require("../../abstract-document/index.js"));
39
+ const font_js_1 = require("./font.js");
40
+ function rowsSplit(rows, availableWidth, desiredSizes, alignment) {
41
+ const newRows = [];
42
+ for (const row of rows) {
43
+ if (row.length <= 1) {
44
+ newRows.push(row);
45
+ continue;
46
+ }
47
+ const width = row.reduce((a, b) => a + getDesiredSize(b, desiredSizes).width, 0);
48
+ if (width <= availableWidth) {
49
+ newRows.push(row);
50
+ continue;
51
+ }
52
+ //we need to split it, because it doesn't fit
53
+ let currentRow = [];
54
+ let currentWidth = 0;
55
+ let lastWasSpace = false;
56
+ for (let i = 0; i < row.length; i++) {
57
+ const atom = row[i];
58
+ const width = getDesiredSize(atom, desiredSizes).width;
59
+ if (atom.type !== "TextRun") {
60
+ currentRow.push(atom);
61
+ currentWidth += width;
62
+ continue;
63
+ }
64
+ const isSpace = atom.text.replaceAll(/[\p{Zs}]/ug, "").length === 0;
65
+ const lastSpace = lastWasSpace;
66
+ lastWasSpace = isSpace;
67
+ //if the next atom is a space, we need to split this row early if it doesnt fit
68
+ const nextAtom = row[i + 1];
69
+ const nextWidthIfSpace = !isSpace
70
+ && nextAtom
71
+ && nextAtom.type === "TextRun"
72
+ && nextAtom.text.replaceAll(/[\p{Zs}]/ug, "").length === 0
73
+ ? getDesiredSize(nextAtom, desiredSizes).width
74
+ : 0;
75
+ if (isSpace && currentWidth === 0 && i !== 0 && (alignment === "left" || alignment === "justify")) {
76
+ continue;
77
+ }
78
+ if ((currentWidth + width + nextWidthIfSpace) < availableWidth) {
79
+ currentRow.push(atom);
80
+ currentWidth += width;
81
+ continue;
82
+ }
83
+ //was it a space??
84
+ if (isSpace) {
85
+ newRows.push(currentRow);
86
+ currentRow = [];
87
+ currentWidth = 0;
88
+ continue;
89
+ }
90
+ newRows.push((lastSpace && (alignment === "right" || alignment === "justify")) ? currentRow.slice(0, -1) : currentRow);
91
+ currentRow = [atom];
92
+ currentWidth = width;
93
+ }
94
+ newRows.push((lastWasSpace && (alignment === "right" || alignment === "justify")) ? currentRow.slice(0, -1) : currentRow);
95
+ }
96
+ return newRows;
97
+ }
98
+ function rowsCombineTextRuns(resources, pdf, rows, desiredSizes, alignment, defaultStyle) {
99
+ if (alignment === "justify") {
100
+ return { combinedRows: rows, newDesiredSizes: desiredSizes };
101
+ }
102
+ let currentString = "";
103
+ let currentHeight = 0;
104
+ let current = undefined;
105
+ let currentStyle = "";
106
+ const newRows = [];
107
+ for (const row of rows) {
108
+ const newRow = [];
109
+ let isFirst = true;
110
+ for (let i = 0; i < row.length; i++) {
111
+ const atom = row[i];
112
+ const isLast = i === row.length - 1;
113
+ const measurement = getDesiredSize(atom, desiredSizes);
114
+ if (atom.type !== "TextRun") {
115
+ if (current !== undefined) {
116
+ const newTextRun = {
117
+ ...current,
118
+ text: currentString
119
+ };
120
+ if (isFirst && alignment === "left") {
121
+ while (currentString.startsWith(" ")) {
122
+ currentString = currentString.slice(1);
123
+ }
124
+ isFirst = false;
125
+ }
126
+ else if (isFirst) {
127
+ isFirst = false;
128
+ }
129
+ newRow.push(newTextRun);
130
+ desiredSizes.set(newTextRun, { width: stringWidth(pdf, currentString, current.style ?? defaultStyle), height: currentHeight });
131
+ currentString = "";
132
+ currentStyle = "";
133
+ currentHeight = 0;
134
+ current = undefined;
135
+ }
136
+ newRow.push(atom);
137
+ continue;
138
+ }
139
+ const style = JSON.stringify(AD.Resources.getNestedStyle(defaultStyle, atom.style, "TextStyle", atom.styleName, resources, atom.nestedStyleNames || []));
140
+ if (current === undefined) {
141
+ currentString = atom.text;
142
+ current = atom;
143
+ currentHeight = Math.max(measurement.height, currentHeight);
144
+ currentStyle = style;
145
+ }
146
+ else if (style !== currentStyle) {
147
+ const newTextRun = {
148
+ ...current,
149
+ text: currentString
150
+ };
151
+ if (isFirst && alignment === "left") {
152
+ while (currentString.startsWith(" ")) {
153
+ currentString = currentString.slice(1);
154
+ }
155
+ isFirst = false;
156
+ }
157
+ else if (isFirst) {
158
+ isFirst = false;
159
+ }
160
+ newRow.push(newTextRun);
161
+ desiredSizes.set(newTextRun, { width: stringWidth(pdf, currentString, current.style ?? defaultStyle), height: currentHeight });
162
+ currentString = atom.text;
163
+ currentHeight = Math.max(measurement.height, currentHeight);
164
+ current = atom;
165
+ currentStyle = style;
166
+ }
167
+ else {
168
+ currentString += atom.text;
169
+ currentHeight = Math.max(measurement.height, currentHeight);
170
+ }
171
+ if (isLast) {
172
+ if (current) {
173
+ //does the last contain spaces at the end?
174
+ if (alignment === "right") {
175
+ while (currentString.endsWith(" ")) {
176
+ currentString = currentString.slice(0, -1);
177
+ }
178
+ }
179
+ if (isFirst && alignment === "left") {
180
+ while (currentString.startsWith(" ")) {
181
+ currentString = currentString.slice(1);
182
+ }
183
+ isFirst = false;
184
+ }
185
+ const newTextRun = {
186
+ ...current,
187
+ text: currentString,
188
+ };
189
+ newRow.push(newTextRun);
190
+ desiredSizes.set(newTextRun, { width: stringWidth(pdf, currentString, current.style ?? defaultStyle), height: currentHeight });
191
+ }
192
+ }
193
+ }
194
+ current = undefined;
195
+ currentHeight = 0;
196
+ currentString = "";
197
+ currentStyle = "";
198
+ newRows.push(newRow);
199
+ }
200
+ return { newDesiredSizes: desiredSizes, combinedRows: newRows };
201
+ }
202
+ function stringWidth(pdf, text, textStyle) {
203
+ const font = (0, font_js_1.getFontNameStyle)(textStyle);
204
+ const fontSize = AD.TextStyle.calculateFontSize(textStyle, 10);
205
+ pdf
206
+ .font(font)
207
+ .fontSize(fontSize)
208
+ .fillColor(textStyle.color || "black");
209
+ const textOptions = {
210
+ underline: textStyle.underline || false,
211
+ indent: textStyle.indent || 0,
212
+ lineBreak: false,
213
+ ...(textStyle.characterSpacing !== undefined ? { characterSpacing: textStyle.characterSpacing } : {}),
214
+ ...(textStyle.lineGap !== undefined ? { lineGap: textStyle.lineGap } : {}),
215
+ };
216
+ return pdf.widthOfString(text, textOptions);
217
+ }
218
+ function getDesiredSize(element, desiredSizes) {
219
+ const size = desiredSizes.get(element);
220
+ if (size) {
221
+ return size;
222
+ }
223
+ throw new Error("Could not find size for element!");
224
+ }
225
+ //# sourceMappingURL=textRunRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textRunRow.js","sourceRoot":"","sources":["../../../src/abstract-document-exporters/pdf/textRunRow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,8BAsEC;AAED,kDAkHC;AA/LD,qEAAuD;AACvD,uCAA6C;AAI7C,SAAgB,SAAS,CAAC,IAAgD,EAAE,cAAsB,EAAE,YAAmC,EAAE,SAA0B;IACjK,MAAM,OAAO,GAAuC,EAAE,CAAC;IAEvD,KAAI,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACtB,IAAG,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,SAAS;QACX,CAAC;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACjF,IAAG,KAAK,IAAI,cAAc,EAAE,CAAC;YAC3B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,SAAS;QACX,CAAC;QAED,6CAA6C;QAC7C,IAAI,UAAU,GAAwB,EAAE,CAAC;QACzC,IAAI,YAAY,GAAG,CAAC,CAAC;QACrB,I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C,CAAC;IACvC,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACtD,CAAC"}
@@ -1,10 +1,10 @@
1
1
  export declare const StyleNames = "<xs:complexType name=\"StyleNames\">\n\t<xs:sequence>\n\t\t<xs:element name=\"StyleName\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n\t</xs:sequence>\n</xs:complexType>";
2
- export declare const StyleName = "<xs:complexType name=\"StyleName\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"type\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>The type of style used. One of: \"GroupStyle\", \"TableStyle\", \"TableCellStyle\", \"ParagraphStyle\", \"TextStyle\", </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"GroupStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableCellStyle\" />\n\t\t\t\t<xs:enumeration value=\"ParagraphStyle\" />\n\t\t\t\t<xs:enumeration value=\"TextStyle\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" />\n\t<xs:attribute name=\"position\" type=\"Position\"/>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" />\n\t<xs:attribute name=\"borders\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" />\n\t<xs:attribute name=\"padding\" type=\"xs:string\" />\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
2
+ export declare const StyleName = "<xs:complexType name=\"StyleName\">\n\t<xs:attribute name=\"name\" type=\"xs:string\" use=\"required\" />\n\t<xs:attribute name=\"type\" use=\"required\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>The type of style used. One of: \"GroupStyle\", \"TableStyle\", \"TableCellStyle\", \"ParagraphStyle\", \"TextStyle\", </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"GroupStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableStyle\" />\n\t\t\t\t<xs:enumeration value=\"TableCellStyle\" />\n\t\t\t\t<xs:enumeration value=\"ParagraphStyle\" />\n\t\t\t\t<xs:enumeration value=\"TextStyle\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" />\n\t<xs:attribute name=\"position\" type=\"Position\"/>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" />\n\t<xs:attribute name=\"borders\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" />\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" />\n\t<xs:attribute name=\"padding\" type=\"xs:string\" />\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
3
3
  export declare const groupStyle = "<xs:complexType name=\"GroupStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Group style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n</xs:complexType>";
4
4
  export declare const tableCellStyle = "<xs:complexType name=\"TableCellStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table cell style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"background\" type=\"xs:string\" />\n\t<xs:attribute name=\"border\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borders\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Border \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColor\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"borderColors\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Bordercolor \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"padding\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Padding \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"verticalAlignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Vertical alignment possible values \"Top\" | \"Middle\" | \"Bottom\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Top\" />\n\t\t\t\t<xs:enumeration value=\"Middle\" />\n\t\t\t\t<xs:enumeration value=\"Bottom\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
5
5
  export declare const tableStyle = "<xs:complexType name=\"TableStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Table style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"cellStyle\" type=\"TableCellStyle\" minOccurs=\"0\" maxOccurs=\"1\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Left\" | \"Center\" | \"Right\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Left\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"Right\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
6
6
  export declare const paragraphStyle = "<xs:complexType name=\"ParagraphStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Paragraph style</xs:documentation>\n\t</xs:annotation>\n\t<xs:sequence>\n\t\t<xs:element name=\"textStyle\" type=\"TextStyle\" minOccurs=\"0\" />\n\t</xs:sequence>\n\t<xs:attribute name=\"position\" type=\"Position\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"margins\" type=\"xs:string\" >\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Margin \"top right bottom left\"</xs:documentation>\n\t\t</xs:annotation>\n\t</xs:attribute>\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:annotation>\n\t\t\t<xs:documentation>Alignment possible values \"Start\" | \"Center\" | \"End\" | \"Justify\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Start\" />\n\t\t\t\t<xs:enumeration value=\"Center\" />\n\t\t\t\t<xs:enumeration value=\"End\" />\n\t\t\t\t<xs:enumeration value=\"Justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
7
- export declare const textStyle = "<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"alignment\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"left\" />\n\t\t\t\t<xs:enumeration value=\"center\" />\n\t\t\t\t<xs:enumeration value=\"right\" />\n\t\t\t\t<xs:enumeration value=\"justify\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
7
+ export declare const textStyle = "<xs:complexType name=\"TextStyle\">\n\t<xs:annotation>\n\t\t<xs:documentation>Text style</xs:documentation>\n\t</xs:annotation>\n\t<xs:attribute name=\"underline\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"superScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"subScript\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"italic\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"lineBreak\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"mediumBold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"bold\" type=\"xs:boolean\" />\n\t<xs:attribute name=\"fontScale\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"fontSize\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"lineGap\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"characterSpacing\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"verticalPosition\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"indent\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"color\" type=\"xs:string\" />\n\t<xs:attribute name=\"fontFamily\" type=\"xs:string\" />\n\t<xs:attribute name=\"baseline\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"top\" />\n\t\t\t\t<xs:enumeration value=\"bottom\" />\n\t\t\t\t<xs:enumeration value=\"middle\" />\n\t\t\t\t<xs:enumeration value=\"alphabetic\" />\n\t\t\t\t<xs:enumeration value=\"hanging\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n</xs:complexType>";
8
8
  export declare const masterPageStyle = "<xs:complexType name=\"MasterPageStyle\">\n\t<xs:all>\n\t\t<xs:element name=\"headerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"footerMargins\" type=\"LayoutFoundation\" />\n\t\t<xs:element name=\"firstPageHeaderMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"firstPageFooterMargins\" type=\"LayoutFoundation\" minOccurs=\"0\" />\n\t\t<xs:element name=\"contentMargins\" type=\"LayoutFoundation\" />\n\t</xs:all>\n\t<xs:attribute name=\"paperSize\" use=\"required\">\n\t\t<xs:simpleType>\n\t\t<xs:annotation>\n\t\t<xs:documentation>PaperSize possible values \"A4\" | \"Letter\" </xs:documentation>\n\t\t</xs:annotation>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"A4\" />\n\t\t\t\t<xs:enumeration value=\"Letter\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"orientation\">\n\t\t<xs:simpleType>\n\t\t\t<xs:restriction base=\"xs:string\">\n\t\t\t\t<xs:enumeration value=\"Portrait\" />\n\t\t\t\t<xs:enumeration value=\"Landscape\" />\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>\n\t</xs:attribute>\n\t<xs:attribute name=\"noTopBottomMargin\" type=\"xs:boolean\" />\n</xs:complexType>";
9
9
  export declare const position = "<xs:simpleType name=\"Position\">\n\t<xs:annotation>\n\t<xs:documentation>Alignment possible values \"absolute\" | \"relative\" </xs:documentation>\n\t</xs:annotation>\n\t<xs:restriction base=\"xs:string\">\n\t\t<xs:enumeration value=\"absolute\" />\n\t\t<xs:enumeration value=\"relative\" />\n\t</xs:restriction>\n</xs:simpleType>";
10
10
  export declare const layoutFoundation = "<xs:complexType name=\"LayoutFoundation\">\n\t<xs:attribute name=\"top\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"bottom\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"left\" type=\"xs:decimal\" />\n\t<xs:attribute name=\"right\" type=\"xs:decimal\" />\n</xs:complexType>";
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,8KAIL,CAAC;AAEnB,eAAO,MAAM,SAAS,ilGAqEJ,CAAC;AAEnB,eAAO,MAAM,UAAU,kjBAcL,CAAC;AAEnB,eAAO,MAAM,cAAc,0oDA0CT,CAAC;AAEnB,eAAO,MAAM,UAAU,mnCA6BL,CAAC;AAEnB,eAAO,MAAM,cAAc,gqCA8BT,CAAC;AAEnB,eAAO,MAAM,SAAS,4uDAwCJ,CAAC;AAEnB,eAAO,MAAM,eAAe,msCA4BV,CAAC;AAEnB,eAAO,MAAM,QAAQ,gVAQJ,CAAC;AAElB,eAAO,MAAM,gBAAgB,4RAKX,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,8KAIL,CAAC;AAEnB,eAAO,MAAM,SAAS,glGAqEJ,CAAC;AAEnB,eAAO,MAAM,UAAU,kjBAcL,CAAC;AAEnB,eAAO,MAAM,cAAc,0oDA0CT,CAAC;AAEnB,eAAO,MAAM,UAAU,mnCA6BL,CAAC;AAEnB,eAAO,MAAM,cAAc,gqCA8BT,CAAC;AAEnB,eAAO,MAAM,SAAS,m5CA8BJ,CAAC;AAEnB,eAAO,MAAM,eAAe,msCA4BV,CAAC;AAEnB,eAAO,MAAM,QAAQ,gVAQJ,CAAC;AAElB,eAAO,MAAM,gBAAgB,4RAKX,CAAC"}
@@ -57,10 +57,10 @@ exports.StyleName = `<xs:complexType name="StyleName">
57
57
  <xs:attribute name="alignment">
58
58
  <xs:simpleType>
59
59
  <xs:restriction base="xs:string">
60
- <xs:enumeration value="left" />
61
- <xs:enumeration value="center" />
62
- <xs:enumeration value="right" />
63
- <xs:enumeration value="justify" />
60
+ <xs:enumeration value="Start" />
61
+ <xs:enumeration value="Center" />
62
+ <xs:enumeration value="End" />
63
+ <xs:enumeration value="Justify" />
64
64
  </xs:restriction>
65
65
  </xs:simpleType>
66
66
  </xs:attribute>
@@ -214,16 +214,6 @@ exports.textStyle = `<xs:complexType name="TextStyle">
214
214
  <xs:attribute name="indent" type="xs:decimal" />
215
215
  <xs:attribute name="color" type="xs:string" />
216
216
  <xs:attribute name="fontFamily" type="xs:string" />
217
- <xs:attribute name="alignment">
218
- <xs:simpleType>
219
- <xs:restriction base="xs:string">
220
- <xs:enumeration value="left" />
221
- <xs:enumeration value="center" />
222
- <xs:enumeration value="right" />
223
- <xs:enumeration value="justify" />
224
- </xs:restriction>
225
- </xs:simpleType>
226
- </xs:attribute>
227
217
  <xs:attribute name="baseline">
228
218
  <xs:simpleType>
229
219
  <xs:restriction base="xs:string">
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/abstract-document-xml/xsd-template/styles.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;kBAIR,CAAC;AAEN,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqEP,CAAC;AAEN,QAAA,UAAU,GAAG;;;;;;;;;;;;;;kBAcR,CAAC;AAEN,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kB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