@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
package/format.d.ts
ADDED
package/format.js
ADDED
package/helper.d.ts
ADDED
package/helper.js
ADDED
package/index.d.ts
ADDED
package/index.js
ADDED
package/license
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
|
|
2
|
+
|
|
3
|
+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
|
|
4
|
+
|
|
5
|
+
Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
|
|
6
|
+
|
|
7
|
+
Under no circumstances you can use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
|
|
8
|
+
|
|
9
|
+
The Syncfusion license that contains the terms and conditions can be found at
|
|
10
|
+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
|
package/list.d.ts
ADDED
package/list.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "@syncfusion/ej2-docx-renderer",
|
|
3
|
+
"version": "35.2.15",
|
|
4
|
+
"description": "Feature-rich DOCX layout and rendering engine with built-in support for document canvas, tables, shapes, and charts.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ej2",
|
|
7
|
+
"docx-renderer",
|
|
8
|
+
"syncfusion"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
11
|
+
"author": "Syncfusion Inc.",
|
|
12
|
+
"license": "SEE LICENSE IN license",
|
|
13
|
+
"main": "./dist/ej2-docx-renderer.umd.min.js",
|
|
14
|
+
"module": "./index.js",
|
|
15
|
+
"es2015": "./dist/es6/ej2-docx-renderer.es5.js",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@syncfusion/ej2-base": "~35.2.12",
|
|
18
|
+
"@syncfusion/ej2-dropdowns": "~35.2.15",
|
|
19
|
+
"@syncfusion/ej2-office-chart": "~35.2.12"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"typings": "index.d.ts"
|
|
6
28
|
}
|
package/parser.d.ts
ADDED
package/parser.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export interface DictionaryInfo<K, V> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare class Dictionary<K, V> implements DictionaryInfo<K, V> {
|
|
10
|
+
private keysInternal;
|
|
11
|
+
private valuesInternal;
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
readonly length: number;
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
readonly keys: K[];
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
readonly values: V[];
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
add(key: K, value: V): number;
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
get(key: K): V;
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
set(key: K, value: V): void;
|
|
36
|
+
/**
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
remove(key: K): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
*/
|
|
43
|
+
containsKey(key: K): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
clear(): void;
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
destroy(): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
var Dictionary = /** @class */ (function () {
|
|
7
|
+
function Dictionary() {
|
|
8
|
+
this.keysInternal = [];
|
|
9
|
+
this.valuesInternal = [];
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(Dictionary.prototype, "length", {
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
get: function () {
|
|
16
|
+
return this.keysInternal.length;
|
|
17
|
+
},
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(Dictionary.prototype, "keys", {
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
get: function () {
|
|
26
|
+
return this.keysInternal;
|
|
27
|
+
},
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(Dictionary.prototype, "values", {
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
get: function () {
|
|
36
|
+
return this.valuesInternal;
|
|
37
|
+
},
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
Dictionary.prototype.add = function (key, value) {
|
|
45
|
+
if (isNullOrUndefined(key)) {
|
|
46
|
+
throw new ReferenceError('Provided key or value is not valid.');
|
|
47
|
+
}
|
|
48
|
+
var index = this.keysInternal.indexOf(key);
|
|
49
|
+
// if (index < 0 || index > this.keysInternal.length - 1) {
|
|
50
|
+
if (index < 0) {
|
|
51
|
+
this.keysInternal.push(key);
|
|
52
|
+
this.valuesInternal.push(value);
|
|
53
|
+
}
|
|
54
|
+
return 1;
|
|
55
|
+
// else {
|
|
56
|
+
// throw new RangeError('An item with the same key has already been added.');
|
|
57
|
+
// }
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @private
|
|
61
|
+
*/
|
|
62
|
+
Dictionary.prototype.get = function (key) {
|
|
63
|
+
if (isNullOrUndefined(key)) {
|
|
64
|
+
throw new ReferenceError('Provided key is not valid.');
|
|
65
|
+
}
|
|
66
|
+
var index = this.keysInternal.indexOf(key);
|
|
67
|
+
if (index < 0 || index > this.keysInternal.length - 1) {
|
|
68
|
+
return undefined;
|
|
69
|
+
//throw new RangeError('No item with the specified key has been added.');
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return this.valuesInternal[index];
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* @private
|
|
77
|
+
*/
|
|
78
|
+
Dictionary.prototype.set = function (key, value) {
|
|
79
|
+
if (isNullOrUndefined(key)) {
|
|
80
|
+
throw new ReferenceError('Provided key is not valid.');
|
|
81
|
+
}
|
|
82
|
+
var index = this.keysInternal.indexOf(key);
|
|
83
|
+
if (index < 0 || index > this.keysInternal.length - 1) {
|
|
84
|
+
throw new RangeError('No item with the specified key has been added.');
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.valuesInternal[index] = value;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
Dictionary.prototype.remove = function (key) {
|
|
94
|
+
if (isNullOrUndefined(key)) {
|
|
95
|
+
throw new ReferenceError('Provided key is not valid.');
|
|
96
|
+
}
|
|
97
|
+
var index = this.keysInternal.indexOf(key);
|
|
98
|
+
if (index < 0 || index > this.keysInternal.length - 1) {
|
|
99
|
+
throw new RangeError('No item with the specified key has been added.');
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
this.keysInternal.splice(index, 1);
|
|
103
|
+
this.valuesInternal.splice(index, 1);
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* @private
|
|
109
|
+
*/
|
|
110
|
+
Dictionary.prototype.containsKey = function (key) {
|
|
111
|
+
if (isNullOrUndefined(key)) {
|
|
112
|
+
throw new ReferenceError('Provided key is not valid.');
|
|
113
|
+
}
|
|
114
|
+
var index = this.keysInternal.indexOf(key);
|
|
115
|
+
if (index < 0 || index > this.keysInternal.length - 1) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
return true;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
123
|
+
Dictionary.prototype.clear = function () {
|
|
124
|
+
this.keysInternal = [];
|
|
125
|
+
this.valuesInternal = [];
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
Dictionary.prototype.destroy = function () {
|
|
131
|
+
this.clear();
|
|
132
|
+
this.keysInternal = undefined;
|
|
133
|
+
this.valuesInternal = undefined;
|
|
134
|
+
};
|
|
135
|
+
return Dictionary;
|
|
136
|
+
}());
|
|
137
|
+
export { Dictionary };
|