@syncfusion/ej2-docx-renderer 0.0.0-stage → 35.2.15
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 +2 -2
- package/base.d.ts +4 -0
- package/base.js +4 -0
- package/dist/ej2-docx-renderer.umd.min.js +2 -0
- package/dist/ej2-docx-renderer.umd.min.js.map +1 -0
- package/dist/es6/ej2-docx-renderer.es2015.js +52432 -0
- package/dist/es6/ej2-docx-renderer.es2015.js.map +1 -0
- package/dist/es6/ej2-docx-renderer.es5.js +54425 -0
- package/dist/es6/ej2-docx-renderer.es5.js.map +1 -0
- package/dist/global/ej2-docx-renderer.min.js +2 -0
- package/dist/global/ej2-docx-renderer.min.js.map +1 -0
- package/dist/global/index.d.ts +5 -0
- package/format.d.ts +4 -0
- package/format.js +4 -0
- package/helper.d.ts +4 -0
- package/helper.js +4 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/license +10 -0
- package/list.d.ts +4 -0
- package/list.js +4 -0
- package/package.json +26 -4
- package/parser.d.ts +4 -0
- package/parser.js +4 -0
- package/src/base/constants.d.ts +2 -0
- package/src/base/constants.js +2 -0
- package/src/base/dictionary.d.ts +52 -0
- package/src/base/dictionary.js +137 -0
- package/src/base/index.d.ts +9 -0
- package/src/base/index.js +9 -0
- package/src/base/keywords.d.ts +422 -0
- package/src/base/keywords.js +422 -0
- package/src/base/types.d.ts +2590 -0
- package/src/base/types.js +1056 -0
- package/src/base/unique-format.d.ts +87 -0
- package/src/base/unique-format.js +858 -0
- package/src/base/unique-formats.d.ts +32 -0
- package/src/base/unique-formats.js +87 -0
- package/src/document-canvas.d.ts +61 -0
- package/src/document-canvas.js +221 -0
- package/src/docx-renderer.d.ts +941 -0
- package/src/docx-renderer.js +2251 -0
- package/src/format/border.d.ts +53 -0
- package/src/format/border.js +600 -0
- package/src/format/borders.d.ts +44 -0
- package/src/format/borders.js +314 -0
- package/src/format/cell-format.d.ts +42 -0
- package/src/format/cell-format.js +309 -0
- package/src/format/character-format.d.ts +152 -0
- package/src/format/character-format.js +1224 -0
- package/src/format/index.d.ts +14 -0
- package/src/format/index.js +14 -0
- package/src/format/list-format.d.ts +32 -0
- package/src/format/list-format.js +238 -0
- package/src/format/paragraph-format.d.ts +103 -0
- package/src/format/paragraph-format.js +854 -0
- package/src/format/row-format.d.ts +119 -0
- package/src/format/row-format.js +545 -0
- package/src/format/section-format.d.ts +89 -0
- package/src/format/section-format.js +689 -0
- package/src/format/shading.d.ts +24 -0
- package/src/format/shading.js +137 -0
- package/src/format/style.d.ts +106 -0
- package/src/format/style.js +286 -0
- package/src/format/table-format.d.ts +51 -0
- package/src/format/table-format.js +395 -0
- package/src/global.js +1 -0
- package/src/helper/document-editor-helper.d.ts +515 -0
- package/src/helper/document-editor-helper.js +1302 -0
- package/src/helper/document-editor-settings.d.ts +293 -0
- package/src/helper/document-editor-settings.js +94 -0
- package/src/helper/index.d.ts +5 -0
- package/src/helper/index.js +5 -0
- package/src/helper/layout-helper-methods.d.ts +539 -0
- package/src/helper/layout-helper-methods.js +1065 -0
- package/src/helper/renderer-hooks.d.ts +74 -0
- package/src/helper/renderer-hooks.js +14 -0
- package/src/helper/revision-helper-methods.d.ts +199 -0
- package/src/helper/revision-helper-methods.js +362 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +18 -0
- package/src/layout-helper.d.ts +190 -0
- package/src/layout-helper.js +1368 -0
- package/src/layout.d.ts +779 -0
- package/src/layout.js +17232 -0
- package/src/list/abstract-list.d.ts +25 -0
- package/src/list/abstract-list.js +67 -0
- package/src/list/index.d.ts +7 -0
- package/src/list/index.js +7 -0
- package/src/list/level-override.d.ts +22 -0
- package/src/list/level-override.js +43 -0
- package/src/list/list-level.d.ts +57 -0
- package/src/list/list-level.js +249 -0
- package/src/list/list.d.ts +30 -0
- package/src/list/list.js +100 -0
- package/src/page.d.ts +4155 -0
- package/src/page.js +11342 -0
- package/src/parser/index.d.ts +1 -0
- package/src/parser/index.js +1 -0
- package/src/parser/sfdt-reader.d.ts +254 -0
- package/src/parser/sfdt-reader.js +4569 -0
- package/src/render.d.ts +226 -0
- package/src/render.js +4222 -0
- package/src/text-helper.d.ts +144 -0
- package/src/text-helper.js +1079 -0
- package/src/text-helpers/index.d.ts +2 -0
- package/src/text-helpers/index.js +2 -0
- package/src/text-helpers/optimized.d.ts +45 -0
- package/src/text-helpers/optimized.js +121 -0
- package/src/text-helpers/regular.d.ts +37 -0
- package/src/text-helpers/regular.js +93 -0
- package/src/themes/font-scheme.d.ts +28 -0
- package/src/themes/font-scheme.js +107 -0
- package/src/themes/index.d.ts +6 -0
- package/src/themes/index.js +6 -0
- package/src/themes/major-minor-font-scheme.d.ts +14 -0
- package/src/themes/major-minor-font-scheme.js +45 -0
- package/src/themes/themes.d.ts +11 -0
- package/src/themes/themes.js +31 -0
- package/src/utility/index.d.ts +1 -0
- package/src/utility/index.js +1 -0
- package/src/utility/path-util.d.ts +133 -0
- package/src/utility/path-util.js +639 -0
- package/text-helpers.d.ts +4 -0
- package/text-helpers.js +4 -0
- package/themes.d.ts +4 -0
- package/themes.js +4 -0
- package/utility.d.ts +4 -0
- package/utility.js +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SfdtReader } from './sfdt-reader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SfdtReader } from './sfdt-reader';
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { WList } from '../list/list';
|
|
2
|
+
import { WAbstractList } from '../list/abstract-list';
|
|
3
|
+
import { WCharacterFormat } from '../format/character-format';
|
|
4
|
+
import { WParagraphFormat } from '../format/paragraph-format';
|
|
5
|
+
import { WCellFormat } from '../format/cell-format';
|
|
6
|
+
import { WTableFormat } from '../format/table-format';
|
|
7
|
+
import { WSectionFormat } from '../format/section-format';
|
|
8
|
+
import { WRowFormat } from '../format/row-format';
|
|
9
|
+
import { WStyles, WStyle } from '../format/style';
|
|
10
|
+
import { DocxRenderer } from '../docx-renderer';
|
|
11
|
+
import { Widget, BodyWidget, BlockWidget, HeaderFooters, CommentCharacterElementBox, CommentElementBox, FormField, ContentControlProperties, Footnote } from '../page';
|
|
12
|
+
import { Dictionary } from '../base/dictionary';
|
|
13
|
+
import { ListLevelPattern } from '../base/types';
|
|
14
|
+
import { Themes, MajorMinorFontScheme } from '../themes/index';
|
|
15
|
+
import { DocxRevision } from '../helper/revision-helper-methods';
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
export declare class SfdtReader {
|
|
20
|
+
private documentHelper;
|
|
21
|
+
private revisionHelper;
|
|
22
|
+
private fieldSeparator;
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
commentStarts: Dictionary<string, CommentCharacterElementBox>;
|
|
27
|
+
/**
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
30
|
+
commentEnds: Dictionary<string, CommentCharacterElementBox>;
|
|
31
|
+
/**
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
commentsCollection: Dictionary<string, CommentElementBox>;
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
revisionCollection: Dictionary<string, any>;
|
|
39
|
+
private isPageBreakInsideTable;
|
|
40
|
+
private editableRanges;
|
|
41
|
+
private fontInfoCollection;
|
|
42
|
+
private isParseHeader;
|
|
43
|
+
footnotes: Footnote;
|
|
44
|
+
endnotes: Footnote;
|
|
45
|
+
keywordIndex: number;
|
|
46
|
+
themes: Themes;
|
|
47
|
+
private stylesCollection;
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
isCutPerformed: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
isPaste: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
selectedBaseStyle: WStyle;
|
|
60
|
+
/**
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
63
|
+
isContextBasedPaste: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
isHtmlPaste: boolean;
|
|
68
|
+
private hasFieldSeparator;
|
|
69
|
+
private revisionMap;
|
|
70
|
+
constructor(documentHelper: DocxRenderer);
|
|
71
|
+
private readonly viewer;
|
|
72
|
+
convertJsonToDocument(json: string, incrementalOperations?: Record<string, any[]>): BodyWidget[];
|
|
73
|
+
private parseFontSubstitutionTable;
|
|
74
|
+
private removeUnmappedBookmark;
|
|
75
|
+
/**
|
|
76
|
+
* @private
|
|
77
|
+
*/
|
|
78
|
+
parseFootnotes(data: any, footnote: Footnote): void;
|
|
79
|
+
/**
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
parseImages(data: any): void;
|
|
83
|
+
private parseEndtnotes;
|
|
84
|
+
/**
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
parseCustomXml(data: any): void;
|
|
88
|
+
private parseDocumentProtection;
|
|
89
|
+
/**
|
|
90
|
+
* @private
|
|
91
|
+
*/
|
|
92
|
+
parseStyles(data: any, styles: WStyles): void;
|
|
93
|
+
/**
|
|
94
|
+
* @private
|
|
95
|
+
* Optional factory so the editor can replace a renderer DocxRevision with its Revision
|
|
96
|
+
* before the instance is stored in editor collections. Renderer callers leave this unset.
|
|
97
|
+
*/
|
|
98
|
+
revisionFactory: (source: DocxRevision) => any;
|
|
99
|
+
private toEditorRevision;
|
|
100
|
+
parseRevisions(data: any, revisions: any[]): void;
|
|
101
|
+
parseRevision(data: any): DocxRevision;
|
|
102
|
+
private checkAndApplyRevision;
|
|
103
|
+
private checkAndCreateNewRevision;
|
|
104
|
+
parseComments(data: any, comments: CommentElementBox[]): void;
|
|
105
|
+
private parseComment;
|
|
106
|
+
private parseCommentText;
|
|
107
|
+
private parseCommentMentions;
|
|
108
|
+
parseStyle(data: any, style: any, styles: WStyles, resetKeyIndex?: boolean): void;
|
|
109
|
+
private updateParagraphFormatFromBaseStyle;
|
|
110
|
+
private getStyle;
|
|
111
|
+
parseAbstractList(data: any, abstractLists: WAbstractList[]): void;
|
|
112
|
+
private parseListLevel;
|
|
113
|
+
parseList(data: any, listCollection: WList[]): void;
|
|
114
|
+
private parseLevelOverride;
|
|
115
|
+
private parseSections;
|
|
116
|
+
parseHeaderFooter(data: any, headersFooters: any): HeaderFooters;
|
|
117
|
+
private parseTextBody;
|
|
118
|
+
addCustomStyles(data: any): void;
|
|
119
|
+
/**
|
|
120
|
+
* The HTML to SFDT conversion adds a bare "Normal (Web)" style (without character format) to the pasted content.
|
|
121
|
+
* An internal copy exports the full "Normal (Web)" style definition, which has to be retained as it is.
|
|
122
|
+
*/
|
|
123
|
+
private isHtmlConvertedWebStyle;
|
|
124
|
+
parseBody(data: any, blocks: BlockWidget[], container?: Widget, isSectionBreak?: boolean, contentControlProperties?: ContentControlProperties, styles?: any, breakCode?: string, isFootnoteEndnote?: boolean): void;
|
|
125
|
+
private parseTable;
|
|
126
|
+
private parseTablePositioning;
|
|
127
|
+
private parseRowGridValues;
|
|
128
|
+
/**
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
131
|
+
parseContentControlProperties(wContentControlProperties: any, contentControlProperties: ContentControlProperties, keywordIndex?: number): void;
|
|
132
|
+
private parseSymbol;
|
|
133
|
+
private parseParagraph;
|
|
134
|
+
private parseShape;
|
|
135
|
+
private ParseChildShape;
|
|
136
|
+
private parseImage;
|
|
137
|
+
private parseChart;
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
*/
|
|
141
|
+
parseFormFieldData(keywordIndex: number, sourceData: any, formFieldData: FormField): FormField;
|
|
142
|
+
private applyCharacterStyle;
|
|
143
|
+
private parseEditableRangeStart;
|
|
144
|
+
private addEditRangeCollection;
|
|
145
|
+
private parseChartTitleArea;
|
|
146
|
+
private parseChartDataFormat;
|
|
147
|
+
private parseChartLayout;
|
|
148
|
+
private parseChartLegend;
|
|
149
|
+
private parseChartCategoryAxis;
|
|
150
|
+
private parseChartDataTable;
|
|
151
|
+
private parseChartArea;
|
|
152
|
+
private parseChartData;
|
|
153
|
+
private parseChartSeries;
|
|
154
|
+
private parseChartDataLabels;
|
|
155
|
+
private parseChartSeriesDataPoints;
|
|
156
|
+
private parseChartTrendLines;
|
|
157
|
+
/**
|
|
158
|
+
* @private
|
|
159
|
+
*/
|
|
160
|
+
parseTableFormat(sourceFormat: any, tableFormat: WTableFormat, keywordIndex: number): void;
|
|
161
|
+
/**
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
parseCellFormat(sourceFormat: any, cellFormat: WCellFormat, keyIndex: number): void;
|
|
165
|
+
private parseCellMargin;
|
|
166
|
+
/**
|
|
167
|
+
* @private
|
|
168
|
+
*/
|
|
169
|
+
parseRowFormat(sourceFormat: any, rowFormat: WRowFormat, keyIndex: number): void;
|
|
170
|
+
private parseBorders;
|
|
171
|
+
private parseBorder;
|
|
172
|
+
private parseShading;
|
|
173
|
+
/**
|
|
174
|
+
* @private
|
|
175
|
+
*/
|
|
176
|
+
parseCharacterFormat(keyIndex: number, sourceFormat: any, characterFormat: WCharacterFormat, writeInlineFormat?: boolean): void;
|
|
177
|
+
/**
|
|
178
|
+
* @private
|
|
179
|
+
* @returns {boolean}
|
|
180
|
+
*/
|
|
181
|
+
isFontInstalled(fontFamily: string): boolean;
|
|
182
|
+
private getWidth;
|
|
183
|
+
private getColor;
|
|
184
|
+
parseThemes(sourceFormat: any, themes: Themes): void;
|
|
185
|
+
parseFontScheme(sourceFormat: any, themes: Themes): void;
|
|
186
|
+
parseMajorMinorFontScheme(sourceFormat: any, majorMinor: MajorMinorFontScheme): void;
|
|
187
|
+
parseParagraphFormat(keyIndex: number, sourceFormat: any, paragraphFormat: WParagraphFormat): void;
|
|
188
|
+
private parseListFormat;
|
|
189
|
+
parseSectionFormat(keyIndex: number, data: any, sectionFormat: WSectionFormat, isNotInitialLoad?: boolean): void;
|
|
190
|
+
private parseColumns;
|
|
191
|
+
private parseTabStop;
|
|
192
|
+
private validateImageUrl;
|
|
193
|
+
private containsFieldBegin;
|
|
194
|
+
private getBaseAlignment;
|
|
195
|
+
private getUnderline;
|
|
196
|
+
private getFontHintType;
|
|
197
|
+
private getStrikethrough;
|
|
198
|
+
private getHighlightColor;
|
|
199
|
+
private getLineSpacingType;
|
|
200
|
+
private getOutlineLevel;
|
|
201
|
+
private getTextAlignment;
|
|
202
|
+
private getWidthType;
|
|
203
|
+
private getTableAlignment;
|
|
204
|
+
private getLineStyle;
|
|
205
|
+
private getTextureStyle;
|
|
206
|
+
private getLigature;
|
|
207
|
+
private getHeightType;
|
|
208
|
+
private getCellVerticalAlignment;
|
|
209
|
+
/**
|
|
210
|
+
* @private
|
|
211
|
+
*/
|
|
212
|
+
getListLevelPattern(listLevelPattern: number | ListLevelPattern): ListLevelPattern;
|
|
213
|
+
private getListNumberAlignment;
|
|
214
|
+
private getFollowCharacterType;
|
|
215
|
+
private getStyleType;
|
|
216
|
+
private getProtectionType;
|
|
217
|
+
private getRevisionType;
|
|
218
|
+
private getFootnoteType;
|
|
219
|
+
private getFootnoteRestartIndex;
|
|
220
|
+
private getFootEndNoteNumberFormat;
|
|
221
|
+
private getBiDirectionalOverride;
|
|
222
|
+
private getBreakClearType;
|
|
223
|
+
private getTextVerticalAlignment;
|
|
224
|
+
private getShapeVerticalAlignment;
|
|
225
|
+
private getShapeHorizontalAlignment;
|
|
226
|
+
private getVerticalOrigin;
|
|
227
|
+
private getHorizontalOrigin;
|
|
228
|
+
private getTableVerticalRelation;
|
|
229
|
+
private getTableHorizontalRelation;
|
|
230
|
+
private getTableVerticalPosition;
|
|
231
|
+
private getTableHorizontalPosition;
|
|
232
|
+
private getLineDashStyle;
|
|
233
|
+
private getFillType;
|
|
234
|
+
private getHorizontalPositionAbs;
|
|
235
|
+
private getTabJustification;
|
|
236
|
+
private getTabLeader;
|
|
237
|
+
private getTextFormFieldType;
|
|
238
|
+
private getTextFormFieldFormat;
|
|
239
|
+
private getCheckBoxSizeType;
|
|
240
|
+
private getContentControlAppearance;
|
|
241
|
+
private getContentControlType;
|
|
242
|
+
private getDateCalendarType;
|
|
243
|
+
private getDateStorageFormat;
|
|
244
|
+
private getTextWrappingStyle;
|
|
245
|
+
private getTextWrappingType;
|
|
246
|
+
private getCompatibilityMode;
|
|
247
|
+
private getLineFormatType;
|
|
248
|
+
private getAutoShapeType;
|
|
249
|
+
/**
|
|
250
|
+
* @private
|
|
251
|
+
* @returns {void}
|
|
252
|
+
*/
|
|
253
|
+
destroy(): void;
|
|
254
|
+
}
|