@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.
Files changed (129) hide show
  1. package/README.md +2 -2
  2. package/base.d.ts +4 -0
  3. package/base.js +4 -0
  4. package/dist/ej2-docx-renderer.umd.min.js +2 -0
  5. package/dist/ej2-docx-renderer.umd.min.js.map +1 -0
  6. package/dist/es6/ej2-docx-renderer.es2015.js +52432 -0
  7. package/dist/es6/ej2-docx-renderer.es2015.js.map +1 -0
  8. package/dist/es6/ej2-docx-renderer.es5.js +54425 -0
  9. package/dist/es6/ej2-docx-renderer.es5.js.map +1 -0
  10. package/dist/global/ej2-docx-renderer.min.js +2 -0
  11. package/dist/global/ej2-docx-renderer.min.js.map +1 -0
  12. package/dist/global/index.d.ts +5 -0
  13. package/format.d.ts +4 -0
  14. package/format.js +4 -0
  15. package/helper.d.ts +4 -0
  16. package/helper.js +4 -0
  17. package/index.d.ts +4 -0
  18. package/index.js +4 -0
  19. package/license +10 -0
  20. package/list.d.ts +4 -0
  21. package/list.js +4 -0
  22. package/package.json +26 -4
  23. package/parser.d.ts +4 -0
  24. package/parser.js +4 -0
  25. package/src/base/constants.d.ts +2 -0
  26. package/src/base/constants.js +2 -0
  27. package/src/base/dictionary.d.ts +52 -0
  28. package/src/base/dictionary.js +137 -0
  29. package/src/base/index.d.ts +9 -0
  30. package/src/base/index.js +9 -0
  31. package/src/base/keywords.d.ts +422 -0
  32. package/src/base/keywords.js +422 -0
  33. package/src/base/types.d.ts +2590 -0
  34. package/src/base/types.js +1056 -0
  35. package/src/base/unique-format.d.ts +87 -0
  36. package/src/base/unique-format.js +858 -0
  37. package/src/base/unique-formats.d.ts +32 -0
  38. package/src/base/unique-formats.js +87 -0
  39. package/src/document-canvas.d.ts +61 -0
  40. package/src/document-canvas.js +221 -0
  41. package/src/docx-renderer.d.ts +941 -0
  42. package/src/docx-renderer.js +2251 -0
  43. package/src/format/border.d.ts +53 -0
  44. package/src/format/border.js +600 -0
  45. package/src/format/borders.d.ts +44 -0
  46. package/src/format/borders.js +314 -0
  47. package/src/format/cell-format.d.ts +42 -0
  48. package/src/format/cell-format.js +309 -0
  49. package/src/format/character-format.d.ts +152 -0
  50. package/src/format/character-format.js +1224 -0
  51. package/src/format/index.d.ts +14 -0
  52. package/src/format/index.js +14 -0
  53. package/src/format/list-format.d.ts +32 -0
  54. package/src/format/list-format.js +238 -0
  55. package/src/format/paragraph-format.d.ts +103 -0
  56. package/src/format/paragraph-format.js +854 -0
  57. package/src/format/row-format.d.ts +119 -0
  58. package/src/format/row-format.js +545 -0
  59. package/src/format/section-format.d.ts +89 -0
  60. package/src/format/section-format.js +689 -0
  61. package/src/format/shading.d.ts +24 -0
  62. package/src/format/shading.js +137 -0
  63. package/src/format/style.d.ts +106 -0
  64. package/src/format/style.js +286 -0
  65. package/src/format/table-format.d.ts +51 -0
  66. package/src/format/table-format.js +395 -0
  67. package/src/global.js +1 -0
  68. package/src/helper/document-editor-helper.d.ts +515 -0
  69. package/src/helper/document-editor-helper.js +1302 -0
  70. package/src/helper/document-editor-settings.d.ts +293 -0
  71. package/src/helper/document-editor-settings.js +94 -0
  72. package/src/helper/index.d.ts +5 -0
  73. package/src/helper/index.js +5 -0
  74. package/src/helper/layout-helper-methods.d.ts +539 -0
  75. package/src/helper/layout-helper-methods.js +1065 -0
  76. package/src/helper/renderer-hooks.d.ts +74 -0
  77. package/src/helper/renderer-hooks.js +14 -0
  78. package/src/helper/revision-helper-methods.d.ts +199 -0
  79. package/src/helper/revision-helper-methods.js +362 -0
  80. package/src/index.d.ts +18 -0
  81. package/src/index.js +18 -0
  82. package/src/layout-helper.d.ts +190 -0
  83. package/src/layout-helper.js +1368 -0
  84. package/src/layout.d.ts +779 -0
  85. package/src/layout.js +17232 -0
  86. package/src/list/abstract-list.d.ts +25 -0
  87. package/src/list/abstract-list.js +67 -0
  88. package/src/list/index.d.ts +7 -0
  89. package/src/list/index.js +7 -0
  90. package/src/list/level-override.d.ts +22 -0
  91. package/src/list/level-override.js +43 -0
  92. package/src/list/list-level.d.ts +57 -0
  93. package/src/list/list-level.js +249 -0
  94. package/src/list/list.d.ts +30 -0
  95. package/src/list/list.js +100 -0
  96. package/src/page.d.ts +4155 -0
  97. package/src/page.js +11342 -0
  98. package/src/parser/index.d.ts +1 -0
  99. package/src/parser/index.js +1 -0
  100. package/src/parser/sfdt-reader.d.ts +254 -0
  101. package/src/parser/sfdt-reader.js +4569 -0
  102. package/src/render.d.ts +226 -0
  103. package/src/render.js +4222 -0
  104. package/src/text-helper.d.ts +144 -0
  105. package/src/text-helper.js +1079 -0
  106. package/src/text-helpers/index.d.ts +2 -0
  107. package/src/text-helpers/index.js +2 -0
  108. package/src/text-helpers/optimized.d.ts +45 -0
  109. package/src/text-helpers/optimized.js +121 -0
  110. package/src/text-helpers/regular.d.ts +37 -0
  111. package/src/text-helpers/regular.js +93 -0
  112. package/src/themes/font-scheme.d.ts +28 -0
  113. package/src/themes/font-scheme.js +107 -0
  114. package/src/themes/index.d.ts +6 -0
  115. package/src/themes/index.js +6 -0
  116. package/src/themes/major-minor-font-scheme.d.ts +14 -0
  117. package/src/themes/major-minor-font-scheme.js +45 -0
  118. package/src/themes/themes.d.ts +11 -0
  119. package/src/themes/themes.js +31 -0
  120. package/src/utility/index.d.ts +1 -0
  121. package/src/utility/index.js +1 -0
  122. package/src/utility/path-util.d.ts +133 -0
  123. package/src/utility/path-util.js +639 -0
  124. package/text-helpers.d.ts +4 -0
  125. package/text-helpers.js +4 -0
  126. package/themes.d.ts +4 -0
  127. package/themes.js +4 -0
  128. package/utility.d.ts +4 -0
  129. 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
+ }