@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,293 @@
1
+ import { CheckboxSymbolOptions, CompatibilityMode } from '../base/types';
2
+ import { FormFillingMode, FormattingExceptions } from '../base/index';
3
+ /**
4
+ * Class DocumentEditorSettings
5
+ */
6
+ /**
7
+ * @private
8
+ */
9
+ export declare class DocumentEditorSettingsModel {
10
+ /**
11
+ * Specifies the device pixel ratio for the image generated for printing.
12
+ * > Increasing the device pixel ratio will increase the image file size, due to high resolution of image.
13
+ */
14
+ /**
15
+ * @private
16
+ */
17
+ printDevicePixelRatio?: number;
18
+ /**
19
+ * Gets ot sets the collaborative editing settings.
20
+ */
21
+ /**
22
+ * @private
23
+ */
24
+ collaborativeEditingSettings: CollaborativeEditingSettingsModel;
25
+ /**
26
+ * @private
27
+ */
28
+ showBookmarks: boolean;
29
+ /**
30
+ * @private
31
+ */
32
+ highlightEditableRanges: boolean;
33
+ /**
34
+ * Gets or sets the comment settings.
35
+ */
36
+ /**
37
+ * @private
38
+ */
39
+ commentSettings: CommentSettingsModel;
40
+ /**
41
+ * @private
42
+ */
43
+ searchHighlightColor: string;
44
+ /**
45
+ * Gets or sets the form field settings.
46
+ */
47
+ /**
48
+ * @private
49
+ */
50
+ formFieldSettings: FormFieldSettingsModel;
51
+ /**
52
+ * @private
53
+ */
54
+ showHiddenMarks: boolean;
55
+ /**
56
+ * @private
57
+ */
58
+ revisionSettings: RevisionSettingsModel;
59
+ /**
60
+ * @private
61
+ */
62
+ openAsyncSettings: OpenAsyncSettingsModel;
63
+ /**
64
+ * @private
65
+ */
66
+ defaultCheckBoxOption: CheckboxSymbolOptions;
67
+ /**
68
+ * @private
69
+ */
70
+ allowHyphensInBookmarkNames: boolean;
71
+ }
72
+ /**
73
+ * Class DocumentSettings
74
+ */
75
+ /**
76
+ * @private
77
+ */
78
+ export declare class DocumentSettingsModel {
79
+ /**
80
+ * Gets or sets the compatibility mode of the current document.
81
+ */
82
+ /**
83
+ * @private
84
+ */
85
+ compatibilityMode: CompatibilityMode;
86
+ }
87
+ /**
88
+ * Interface for a class RevisionSettings
89
+ */
90
+ /**
91
+ * @private
92
+ */
93
+ export interface RevisionSettingsModel {
94
+ /**
95
+ * Gets or sets the custom data value
96
+ *
97
+ * @default ''
98
+ */
99
+ customData?: string;
100
+ /**
101
+ * Gets or sets a boolean value indicating whether to show custom data along with author in the Track Changes pane.
102
+ *
103
+ * @default false
104
+ *
105
+ */
106
+ showCustomDataWithAuthor?: boolean;
107
+ /**
108
+ * Gets or sets the array of colors used to render tracked revisions (insertions and deletions) in the document editor.
109
+ *
110
+ * Each author who makes a revision is assigned a color from this array in a round-robin fashion.
111
+ * The first author receives the color at index 0, the second author receives the color at index 1, and so on.
112
+ * When the number of authors exceeds the array length, the assignment wraps around to the beginning of the array.
113
+ *
114
+ * @default ['#b5082e', '#0e76b1', '#bb00ff', '#c14f16', '#128317', '#881824', '#a26400', '#50565e']
115
+ */
116
+ revisionColors?: string[];
117
+ /**
118
+ * Gets or sets the color value used for insert revisions for visual identification within the Document Editor.
119
+ * The default value is 'byAuthor'.
120
+ *
121
+ * This property accepts either 'byAuthor' or a hexadecimal color value string (for example, '#0e76b1').
122
+ * If the value is 'byAuthor', insert revisions (Insertion/MoveTo) are highlighted using the author-specific color.
123
+ * Otherwise, insert revisions are highlighted using the color value specified for this property.
124
+ *
125
+ * > * Application-level only; not maintained in the DOCX file.
126
+ *
127
+ * @default 'byAuthor'
128
+ * @returns {string}
129
+ */
130
+ insertRevisionColor?: string;
131
+ /**
132
+ * Gets or sets the color value used for delete revisions for visual identification within the Document Editor.
133
+ * The default value is 'byAuthor'.
134
+ *
135
+ * This property accepts either 'byAuthor' or a hexadecimal color value string (for example, '#b5082e').
136
+ * If the value is 'byAuthor', delete revisions (Deletion/MoveFrom) are highlighted using the author-specific color.
137
+ * Otherwise, delete revisions are highlighted using the color value specified for this property.
138
+ *
139
+ * > * Application-level only; not maintained in the DOCX file.
140
+ *
141
+ * @default 'byAuthor'
142
+ * @returns {string}
143
+ */
144
+ deleteRevisionColor?: string;
145
+ /**
146
+ * Gets or sets the background color used for inserted table-row for visual identification within the Document Editor.
147
+ * The default value is 'byAuthor'.
148
+ *
149
+ * This property accepts either 'byAuthor' or a hexadecimal color value string (for example, '#0e76b1').
150
+ * If the value is 'byAuthor', inserted row revisions (Insertion/MoveTo) use the author-specific color.
151
+ * Otherwise, inserted row revisions use the color value specified for this property.
152
+ *
153
+ * > * Application-level only; not maintained in the DOCX file.
154
+ *
155
+ * > * The applied color is automatically tinted by 10% and used as the row background color to ensure visibility of inserted content within the row.
156
+ *
157
+ * @default 'byAuthor'
158
+ * @returns {string}
159
+ */
160
+ insertedRowColor?: string;
161
+ /**
162
+ * Gets or sets the background color used for deleted table-row for visual identification within the Document Editor.
163
+ * The default value is 'byAuthor'.
164
+ *
165
+ * This property accepts either 'byAuthor' or a hexadecimal color value string (for example, '#b5082e').
166
+ * If the value is 'byAuthor', deleted row revisions (Deletion/MoveFrom) use the author-specific color.
167
+ * Otherwise, deleted row revisions use the color value specified for this property.
168
+ *
169
+ * > * Application-level only; not maintained in the DOCX file.
170
+ *
171
+ * > * The applied color is automatically tinted by 10% and used as the row background color to ensure visibility of deleted content within the row.
172
+ *
173
+ * @default 'byAuthor'
174
+ * @returns {string}
175
+ */
176
+ deletedRowColor?: string;
177
+ }
178
+ /**
179
+ * Interface for a class FormFieldSettings
180
+ */
181
+ /**
182
+ * @private
183
+ */
184
+ export interface FormFieldSettingsModel {
185
+ /**
186
+ * Gets or sets the form fields shading color.
187
+ * You can customize shading color in application level, but cannot be exported in file level
188
+ *
189
+ * @default '#cfcfcf'
190
+ */
191
+ shadingColor?: string;
192
+ /**
193
+ * Gets or sets the whether apply shadings for field or not.
194
+ *
195
+ * @default true
196
+ */
197
+ applyShading?: boolean;
198
+ /**
199
+ * Gets or sets the field selection color.
200
+ *
201
+ * @default '#cccccc'
202
+ */
203
+ selectionColor?: string;
204
+ /**
205
+ * Gets or sets the form filling mode type.
206
+ *
207
+ * @default 'Popup'
208
+ */
209
+ formFillingMode?: FormFillingMode;
210
+ /**
211
+ * Gets or sets the formatting exception.
212
+ *
213
+ * @default []
214
+ */
215
+ formattingExceptions?: FormattingExceptions[];
216
+ }
217
+ /**
218
+ * @private
219
+ */
220
+ export interface CommentSettingsModel {
221
+ /**
222
+ * Gets or sets a value indicating whether comments from each author are highlighted using a color derived from the author's avatar.
223
+ * These highlight colors are used only for visual identification within the editor and are not preserved when the document is exported.
224
+ *
225
+ * @default false
226
+ * @aspType bool
227
+ */
228
+ highlightCommentsByAuthor?: boolean;
229
+ }
230
+ /**
231
+ * Interface for a class CollaborativeEditingSettings
232
+ */
233
+ /**
234
+ * @private
235
+ */
236
+ export interface CollaborativeEditingSettingsModel {
237
+ /**
238
+ * Gets or sets the collaborative editing room name.
239
+ *
240
+ * @default ''
241
+ */
242
+ roomName?: string;
243
+ /**
244
+ * Gets or sets the editable region color.
245
+ */
246
+ editableRegionColor?: string;
247
+ /**
248
+ * Gets or sets the locked region color.
249
+ */
250
+ lockedRegionColor?: string;
251
+ /**
252
+ * Gets or sets the timeout for syncing content in milliseconds.
253
+ */
254
+ saveTimeout?: number;
255
+ }
256
+ /**
257
+ * Interface for a class OpenAsyncSettings
258
+ */
259
+ /**
260
+ * @private
261
+ */
262
+ export interface OpenAsyncSettingsModel {
263
+ /**
264
+ * Gets or sets a value indicating whether to enable asynchronous page loading.
265
+ *
266
+ * @default false
267
+ *
268
+ * @remarks
269
+ * This property is intended for UI interaction scenarios (document opening through the UI) only.
270
+ * It does not affect the behavior of the `openAsync` API, which controls asynchronous
271
+ * document loading at the API level.
272
+ *
273
+ * When asynchronous loading is in progress, user interactions with the document
274
+ * are restricted until the required pages are fully loaded.
275
+ *
276
+ * @returns {boolean}
277
+ */
278
+ enable?: boolean;
279
+ /**
280
+ * Gets or sets the number of pages to be loaded initially during asynchronous document loading operation.
281
+ *
282
+ * @default 5
283
+ * @returns {number}
284
+ */
285
+ initialPageLoadCount?: number;
286
+ /**
287
+ * Gets or sets the number of pages to be incrementally loaded after initial pages loaded, during asynchronous document loading operation.
288
+ *
289
+ * @default 3
290
+ * @returns {number}
291
+ */
292
+ incrementalPageLoadCount?: number;
293
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Class DocumentEditorSettings
3
+ */
4
+ /**
5
+ * @private
6
+ */
7
+ var DocumentEditorSettingsModel = /** @class */ (function () {
8
+ function DocumentEditorSettingsModel() {
9
+ /**
10
+ * Specifies the device pixel ratio for the image generated for printing.
11
+ * > Increasing the device pixel ratio will increase the image file size, due to high resolution of image.
12
+ */
13
+ /**
14
+ * @private
15
+ */
16
+ this.printDevicePixelRatio = 1;
17
+ /**
18
+ * Gets ot sets the collaborative editing settings.
19
+ */
20
+ /**
21
+ * @private
22
+ */
23
+ this.collaborativeEditingSettings = {
24
+ roomName: '', editableRegionColor: '#22b24b', lockedRegionColor: '#f44336'
25
+ };
26
+ /**
27
+ * @private
28
+ */
29
+ this.showBookmarks = false;
30
+ /**
31
+ * @private
32
+ */
33
+ this.highlightEditableRanges = true;
34
+ /**
35
+ * Gets or sets the comment settings.
36
+ */
37
+ /**
38
+ * @private
39
+ */
40
+ this.commentSettings = { highlightCommentsByAuthor: false };
41
+ /**
42
+ * @private
43
+ */
44
+ this.searchHighlightColor = '#FFE97F';
45
+ /**
46
+ * Gets or sets the form field settings.
47
+ */
48
+ /**
49
+ * @private
50
+ */
51
+ this.formFieldSettings = { shadingColor: '#cfcfcf', applyShading: true, selectionColor: '#cccccc', formFillingMode: 'Popup' };
52
+ /**
53
+ * @private
54
+ */
55
+ this.showHiddenMarks = false;
56
+ /**
57
+ * @private
58
+ */
59
+ this.revisionSettings = { customData: '', showCustomDataWithAuthor: false, revisionColors: ['#b5082e', '#0e76b1', '#bb00ff', '#c14f16', '#128317', '#881824', '#a26400', '#50565e'], insertRevisionColor: 'byAuthor', deleteRevisionColor: 'byAuthor', insertedRowColor: 'byAuthor', deletedRowColor: 'byAuthor' };
60
+ /**
61
+ * @private
62
+ */
63
+ this.openAsyncSettings = { enable: false, initialPageLoadCount: 5, incrementalPageLoadCount: 3 };
64
+ /**
65
+ * @private
66
+ */
67
+ this.defaultCheckBoxOption = 'Tick';
68
+ /**
69
+ * @private
70
+ */
71
+ this.allowHyphensInBookmarkNames = false;
72
+ }
73
+ return DocumentEditorSettingsModel;
74
+ }());
75
+ export { DocumentEditorSettingsModel };
76
+ /**
77
+ * Class DocumentSettings
78
+ */
79
+ /**
80
+ * @private
81
+ */
82
+ var DocumentSettingsModel = /** @class */ (function () {
83
+ function DocumentSettingsModel() {
84
+ /**
85
+ * Gets or sets the compatibility mode of the current document.
86
+ */
87
+ /**
88
+ * @private
89
+ */
90
+ this.compatibilityMode = 'Word2013';
91
+ }
92
+ return DocumentSettingsModel;
93
+ }());
94
+ export { DocumentSettingsModel };
@@ -0,0 +1,5 @@
1
+ export * from './layout-helper-methods';
2
+ export * from './revision-helper-methods';
3
+ export * from './document-editor-helper';
4
+ export * from './document-editor-settings';
5
+ export * from './renderer-hooks';
@@ -0,0 +1,5 @@
1
+ export * from './layout-helper-methods';
2
+ export * from './revision-helper-methods';
3
+ export * from './document-editor-helper';
4
+ export * from './document-editor-settings';
5
+ export * from './renderer-hooks';