@progress/kendo-react-editor 6.1.1-dev.202311151536 → 7.0.0-develop.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.
- package/{dist/es/Editor.d.ts → Editor.d.ts} +5 -1
- package/{dist/npm/EditorProps.d.ts → EditorProps.d.ts} +4 -1
- package/LICENSE.md +1 -1
- package/{dist/es/config → config}/defaultStyles.d.ts +4 -0
- package/config/pasteSettings.d.ts +10 -0
- package/config/schema.d.ts +5 -0
- package/{dist/es/config → config}/shortcuts.d.ts +10 -6
- package/{dist/es/config → config}/toolsSettings.d.ts +4 -1
- package/{dist/npm/dialogs → dialogs}/EditorDialogProps.d.ts +4 -1
- package/{dist/npm/dialogs → dialogs}/FindReplace.d.ts +5 -1
- package/{dist/npm/dialogs/main.d.ts → dialogs/index.d.ts} +4 -0
- package/{dist/npm/dialogs → dialogs}/insertImage.d.ts +5 -1
- package/{dist/es/dialogs → dialogs}/insertLink.d.ts +5 -1
- package/{dist/npm/dialogs → dialogs}/viewHtml.d.ts +5 -1
- package/dist/cdn/js/kendo-react-editor.js +226 -1
- package/{dist/es/main.d.ts → index.d.ts} +10 -6
- package/index.js +226 -0
- package/index.mjs +4133 -0
- package/{dist/npm/messages → messages}/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +37 -52
- package/{dist/es/tools → tools}/ToolProps.d.ts +4 -1
- package/tools/align.d.ts +11 -0
- package/{dist/es/tools → tools}/applyColor.d.ts +4 -0
- package/{dist/npm/tools → tools}/cleanFormatting.d.ts +4 -0
- package/{dist/npm/tools → tools}/findReplace.d.ts +5 -1
- package/{dist/npm/tools → tools}/fontStyle.d.ts +4 -0
- package/{dist/es/tools → tools}/formatBlock.d.ts +4 -0
- package/{dist/npm/tools → tools}/history.d.ts +4 -0
- package/{dist/npm/tools → tools}/indent.d.ts +4 -0
- package/{dist/npm/tools/main.d.ts → tools/index.d.ts} +6 -2
- package/{dist/es/tools → tools}/inlineFormat.d.ts +4 -0
- package/tools/insertImage.d.ts +17 -0
- package/{dist/npm/tools → tools}/insertLink.d.ts +4 -0
- package/tools/insertTable/index.d.ts +7 -0
- package/{dist/npm/tools → tools}/insertTable/popup.d.ts +5 -1
- package/{dist/npm/tools → tools}/insertTable/popupGrid.d.ts +6 -2
- package/{dist/es/tools → tools}/insertTable/tool.d.ts +4 -0
- package/tools/lists-styled.d.ts +8 -0
- package/{dist/es/tools → tools}/lists.d.ts +4 -0
- package/{dist/es/tools → tools}/outdent.d.ts +4 -0
- package/{dist/npm/tools → tools}/pdf.d.ts +4 -0
- package/{dist/npm/tools → tools}/print.d.ts +4 -0
- package/{dist/npm/tools → tools}/proseMirrorTool.d.ts +4 -0
- package/{dist/npm/tools → tools}/selectAll.d.ts +4 -0
- package/{dist/npm/tools → tools}/table-wizard/cellPropsUtils.d.ts +4 -0
- package/{dist/npm/tools → tools}/table-wizard/tableCellProperties.d.ts +5 -1
- package/tools/table-wizard/tableProperties.d.ts +15 -0
- package/{dist/es/tools → tools}/table-wizard/tablePropsUtils.d.ts +5 -1
- package/{dist/es/tools → tools}/table-wizard/utils.d.ts +4 -0
- package/{dist/npm/tools → tools}/tableEdit.d.ts +4 -0
- package/{dist/npm/tools → tools}/unlink.d.ts +4 -0
- package/{dist/npm/tools → tools}/utils.d.ts +4 -0
- package/{dist/es/tools → tools}/viewHtml.d.ts +4 -0
- package/utils/browser-detection.d.ts +8 -0
- package/utils/controlled-value.d.ts +9 -0
- package/{dist/npm/utils → utils}/index.d.ts +4 -0
- package/utils/props-key.d.ts +9 -0
- package/about.md +0 -3
- package/dist/es/Editor.js +0 -441
- package/dist/es/EditorProps.d.ts +0 -197
- package/dist/es/EditorProps.js +0 -1
- package/dist/es/config/defaultStyles.js +0 -12
- package/dist/es/config/pasteSettings.d.ts +0 -6
- package/dist/es/config/pasteSettings.js +0 -1
- package/dist/es/config/schema.d.ts +0 -1
- package/dist/es/config/schema.js +0 -1
- package/dist/es/config/shortcuts.js +0 -34
- package/dist/es/config/toolsSettings.js +0 -522
- package/dist/es/dialogs/EditorDialogProps.d.ts +0 -27
- package/dist/es/dialogs/EditorDialogProps.js +0 -1
- package/dist/es/dialogs/FindReplace.d.ts +0 -71
- package/dist/es/dialogs/FindReplace.js +0 -248
- package/dist/es/dialogs/insertImage.d.ts +0 -28
- package/dist/es/dialogs/insertImage.js +0 -119
- package/dist/es/dialogs/insertLink.js +0 -94
- package/dist/es/dialogs/main.d.ts +0 -49
- package/dist/es/dialogs/main.js +0 -69
- package/dist/es/dialogs/viewHtml.d.ts +0 -25
- package/dist/es/dialogs/viewHtml.js +0 -79
- package/dist/es/main.js +0 -201
- package/dist/es/messages/index.d.ts +0 -334
- package/dist/es/messages/index.js +0 -989
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/tools/ToolProps.js +0 -1
- package/dist/es/tools/align.d.ts +0 -7
- package/dist/es/tools/align.js +0 -70
- package/dist/es/tools/applyColor.js +0 -34
- package/dist/es/tools/cleanFormatting.d.ts +0 -16
- package/dist/es/tools/cleanFormatting.js +0 -50
- package/dist/es/tools/findReplace.d.ts +0 -29
- package/dist/es/tools/findReplace.js +0 -76
- package/dist/es/tools/fontStyle.d.ts +0 -28
- package/dist/es/tools/fontStyle.js +0 -91
- package/dist/es/tools/formatBlock.js +0 -89
- package/dist/es/tools/history.d.ts +0 -26
- package/dist/es/tools/history.js +0 -16
- package/dist/es/tools/indent.d.ts +0 -17
- package/dist/es/tools/indent.js +0 -90
- package/dist/es/tools/inlineFormat.js +0 -75
- package/dist/es/tools/insertImage.d.ts +0 -13
- package/dist/es/tools/insertImage.js +0 -78
- package/dist/es/tools/insertLink.d.ts +0 -24
- package/dist/es/tools/insertLink.js +0 -85
- package/dist/es/tools/insertTable/index.d.ts +0 -3
- package/dist/es/tools/insertTable/index.js +0 -3
- package/dist/es/tools/insertTable/popup.d.ts +0 -93
- package/dist/es/tools/insertTable/popup.js +0 -102
- package/dist/es/tools/insertTable/popupGrid.d.ts +0 -31
- package/dist/es/tools/insertTable/popupGrid.js +0 -54
- package/dist/es/tools/insertTable/tool.js +0 -106
- package/dist/es/tools/lists-styled.d.ts +0 -5
- package/dist/es/tools/lists-styled.js +0 -80
- package/dist/es/tools/lists.js +0 -84
- package/dist/es/tools/main.d.ts +0 -714
- package/dist/es/tools/main.js +0 -740
- package/dist/es/tools/outdent.js +0 -85
- package/dist/es/tools/pdf.d.ts +0 -25
- package/dist/es/tools/pdf.js +0 -44
- package/dist/es/tools/print.d.ts +0 -16
- package/dist/es/tools/print.js +0 -48
- package/dist/es/tools/proseMirrorTool.d.ts +0 -12
- package/dist/es/tools/proseMirrorTool.js +0 -67
- package/dist/es/tools/selectAll.d.ts +0 -16
- package/dist/es/tools/selectAll.js +0 -45
- package/dist/es/tools/table-wizard/cellPropsUtils.d.ts +0 -36
- package/dist/es/tools/table-wizard/cellPropsUtils.js +0 -203
- package/dist/es/tools/table-wizard/tableCellProperties.d.ts +0 -20
- package/dist/es/tools/table-wizard/tableCellProperties.js +0 -247
- package/dist/es/tools/table-wizard/tableProperties.d.ts +0 -11
- package/dist/es/tools/table-wizard/tableProperties.js +0 -294
- package/dist/es/tools/table-wizard/tablePropsUtils.js +0 -498
- package/dist/es/tools/table-wizard/utils.js +0 -144
- package/dist/es/tools/tableEdit.d.ts +0 -98
- package/dist/es/tools/tableEdit.js +0 -90
- package/dist/es/tools/unlink.d.ts +0 -17
- package/dist/es/tools/unlink.js +0 -77
- package/dist/es/tools/utils.d.ts +0 -50
- package/dist/es/tools/utils.js +0 -72
- package/dist/es/tools/viewHtml.js +0 -79
- package/dist/es/utils/browser-detection.d.ts +0 -4
- package/dist/es/utils/browser-detection.js +0 -5
- package/dist/es/utils/controlled-value.d.ts +0 -5
- package/dist/es/utils/controlled-value.js +0 -31
- package/dist/es/utils/index.d.ts +0 -363
- package/dist/es/utils/index.js +0 -431
- package/dist/es/utils/props-key.d.ts +0 -5
- package/dist/es/utils/props-key.js +0 -5
- package/dist/npm/Editor.d.ts +0 -118
- package/dist/npm/Editor.js +0 -444
- package/dist/npm/EditorProps.js +0 -2
- package/dist/npm/config/defaultStyles.d.ts +0 -12
- package/dist/npm/config/defaultStyles.js +0 -15
- package/dist/npm/config/pasteSettings.d.ts +0 -6
- package/dist/npm/config/pasteSettings.js +0 -2
- package/dist/npm/config/schema.d.ts +0 -1
- package/dist/npm/config/schema.js +0 -6
- package/dist/npm/config/shortcuts.d.ts +0 -24
- package/dist/npm/config/shortcuts.js +0 -38
- package/dist/npm/config/toolsSettings.d.ts +0 -490
- package/dist/npm/config/toolsSettings.js +0 -525
- package/dist/npm/dialogs/EditorDialogProps.js +0 -2
- package/dist/npm/dialogs/FindReplace.js +0 -251
- package/dist/npm/dialogs/insertImage.js +0 -122
- package/dist/npm/dialogs/insertLink.d.ts +0 -26
- package/dist/npm/dialogs/insertLink.js +0 -97
- package/dist/npm/dialogs/main.js +0 -72
- package/dist/npm/dialogs/viewHtml.js +0 -82
- package/dist/npm/main.d.ts +0 -176
- package/dist/npm/main.js +0 -189
- package/dist/npm/messages/index.js +0 -992
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/tools/ToolProps.d.ts +0 -38
- package/dist/npm/tools/ToolProps.js +0 -2
- package/dist/npm/tools/align.d.ts +0 -7
- package/dist/npm/tools/align.js +0 -74
- package/dist/npm/tools/applyColor.d.ts +0 -12
- package/dist/npm/tools/applyColor.js +0 -38
- package/dist/npm/tools/cleanFormatting.js +0 -54
- package/dist/npm/tools/findReplace.js +0 -79
- package/dist/npm/tools/fontStyle.js +0 -94
- package/dist/npm/tools/formatBlock.d.ts +0 -18
- package/dist/npm/tools/formatBlock.js +0 -92
- package/dist/npm/tools/history.js +0 -19
- package/dist/npm/tools/indent.js +0 -93
- package/dist/npm/tools/inlineFormat.d.ts +0 -47
- package/dist/npm/tools/inlineFormat.js +0 -78
- package/dist/npm/tools/insertImage.d.ts +0 -13
- package/dist/npm/tools/insertImage.js +0 -82
- package/dist/npm/tools/insertLink.js +0 -88
- package/dist/npm/tools/insertTable/index.d.ts +0 -3
- package/dist/npm/tools/insertTable/index.js +0 -7
- package/dist/npm/tools/insertTable/popup.js +0 -105
- package/dist/npm/tools/insertTable/popupGrid.js +0 -56
- package/dist/npm/tools/insertTable/tool.d.ts +0 -24
- package/dist/npm/tools/insertTable/tool.js +0 -109
- package/dist/npm/tools/lists-styled.d.ts +0 -5
- package/dist/npm/tools/lists-styled.js +0 -84
- package/dist/npm/tools/lists.d.ts +0 -27
- package/dist/npm/tools/lists.js +0 -87
- package/dist/npm/tools/main.js +0 -743
- package/dist/npm/tools/outdent.d.ts +0 -17
- package/dist/npm/tools/outdent.js +0 -88
- package/dist/npm/tools/pdf.js +0 -48
- package/dist/npm/tools/print.js +0 -52
- package/dist/npm/tools/proseMirrorTool.js +0 -71
- package/dist/npm/tools/selectAll.js +0 -49
- package/dist/npm/tools/table-wizard/cellPropsUtils.js +0 -208
- package/dist/npm/tools/table-wizard/tableCellProperties.js +0 -253
- package/dist/npm/tools/table-wizard/tableProperties.d.ts +0 -11
- package/dist/npm/tools/table-wizard/tableProperties.js +0 -298
- package/dist/npm/tools/table-wizard/tablePropsUtils.d.ts +0 -52
- package/dist/npm/tools/table-wizard/tablePropsUtils.js +0 -504
- package/dist/npm/tools/table-wizard/utils.d.ts +0 -39
- package/dist/npm/tools/table-wizard/utils.js +0 -153
- package/dist/npm/tools/tableEdit.js +0 -95
- package/dist/npm/tools/unlink.js +0 -80
- package/dist/npm/tools/utils.js +0 -82
- package/dist/npm/tools/viewHtml.d.ts +0 -24
- package/dist/npm/tools/viewHtml.js +0 -82
- package/dist/npm/utils/browser-detection.d.ts +0 -4
- package/dist/npm/utils/browser-detection.js +0 -8
- package/dist/npm/utils/controlled-value.d.ts +0 -5
- package/dist/npm/utils/controlled-value.js +0 -35
- package/dist/npm/utils/index.js +0 -434
- package/dist/npm/utils/props-key.d.ts +0 -5
- package/dist/npm/utils/props-key.js +0 -8
- package/dist/systemjs/kendo-react-editor.js +0 -1
- package/e2e-next/editor.basic.tests.ts +0 -24
package/dist/npm/tools/main.js
DELETED
|
@@ -1,743 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.EditorTools = void 0;
|
|
30
|
-
var React = require("react");
|
|
31
|
-
var toolsSettings_1 = require("../config/toolsSettings");
|
|
32
|
-
var insertTable_1 = require("./insertTable");
|
|
33
|
-
var AlignTool = require("./align");
|
|
34
|
-
var fontStyle_1 = require("./fontStyle");
|
|
35
|
-
var applyColor_1 = require("./applyColor");
|
|
36
|
-
var formatBlock_1 = require("./formatBlock");
|
|
37
|
-
var history_1 = require("./history");
|
|
38
|
-
var indent_1 = require("./indent");
|
|
39
|
-
var inlineFormat_1 = require("./inlineFormat");
|
|
40
|
-
var InsertImageTool = require("./insertImage");
|
|
41
|
-
var insertLink_1 = require("./insertLink");
|
|
42
|
-
var lists_1 = require("./lists");
|
|
43
|
-
var outdent_1 = require("./outdent");
|
|
44
|
-
var tableEdit_1 = require("./tableEdit");
|
|
45
|
-
var unlink_1 = require("./unlink");
|
|
46
|
-
var viewHtml_1 = require("./viewHtml");
|
|
47
|
-
var print_1 = require("./print");
|
|
48
|
-
var pdf_1 = require("./pdf");
|
|
49
|
-
var selectAll_1 = require("./selectAll");
|
|
50
|
-
var cleanFormatting_1 = require("./cleanFormatting");
|
|
51
|
-
var findReplace_1 = require("./findReplace");
|
|
52
|
-
var lists_styled_1 = require("./lists-styled");
|
|
53
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
54
|
-
var tableCellProperties_1 = require("./table-wizard/tableCellProperties");
|
|
55
|
-
var tableProperties_1 = require("./table-wizard/tableProperties");
|
|
56
|
-
/**
|
|
57
|
-
* Represents a wrapping namespace for the tool components, props, and functions of the Editor.
|
|
58
|
-
*/
|
|
59
|
-
var EditorTools;
|
|
60
|
-
(function (EditorTools) {
|
|
61
|
-
/**
|
|
62
|
-
* Creates the Align tool component of the Editor.
|
|
63
|
-
*
|
|
64
|
-
* @param {AlignSettings} settings
|
|
65
|
-
* @returns {React.ComponentClass<AlignToolProps>} - Editor's Align tool component.
|
|
66
|
-
*/
|
|
67
|
-
function createAlignTool(settings) { return AlignTool.createAlignTool(settings); }
|
|
68
|
-
EditorTools.createAlignTool = createAlignTool;
|
|
69
|
-
/**
|
|
70
|
-
* The AlignLeft tool component.
|
|
71
|
-
*/
|
|
72
|
-
var AlignLeft = /** @class */ (function (_super) {
|
|
73
|
-
__extends(AlignLeft, _super);
|
|
74
|
-
function AlignLeft() {
|
|
75
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
-
}
|
|
77
|
-
return AlignLeft;
|
|
78
|
-
}(createAlignTool(toolsSettings_1.EditorToolsSettings.alignLeft)));
|
|
79
|
-
EditorTools.AlignLeft = AlignLeft;
|
|
80
|
-
/**
|
|
81
|
-
* The AlignRight tool component.
|
|
82
|
-
*/
|
|
83
|
-
var AlignRight = /** @class */ (function (_super) {
|
|
84
|
-
__extends(AlignRight, _super);
|
|
85
|
-
function AlignRight() {
|
|
86
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
87
|
-
}
|
|
88
|
-
return AlignRight;
|
|
89
|
-
}(createAlignTool(toolsSettings_1.EditorToolsSettings.alignRight)));
|
|
90
|
-
EditorTools.AlignRight = AlignRight;
|
|
91
|
-
/**
|
|
92
|
-
* The AlignCenter tool component.
|
|
93
|
-
*/
|
|
94
|
-
var AlignCenter = /** @class */ (function (_super) {
|
|
95
|
-
__extends(AlignCenter, _super);
|
|
96
|
-
function AlignCenter() {
|
|
97
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
98
|
-
}
|
|
99
|
-
return AlignCenter;
|
|
100
|
-
}(createAlignTool(toolsSettings_1.EditorToolsSettings.alignCenter)));
|
|
101
|
-
EditorTools.AlignCenter = AlignCenter;
|
|
102
|
-
/**
|
|
103
|
-
* The AlignJustify tool component.
|
|
104
|
-
*/
|
|
105
|
-
var AlignJustify = /** @class */ (function (_super) {
|
|
106
|
-
__extends(AlignJustify, _super);
|
|
107
|
-
function AlignJustify() {
|
|
108
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
109
|
-
}
|
|
110
|
-
return AlignJustify;
|
|
111
|
-
}(createAlignTool(toolsSettings_1.EditorToolsSettings.alignJustify)));
|
|
112
|
-
EditorTools.AlignJustify = AlignJustify;
|
|
113
|
-
/**
|
|
114
|
-
* Creates the InsertTable tool component of the Editor.
|
|
115
|
-
*
|
|
116
|
-
* @param {InsertTableSettings} - The settings of the InsertTable tool.
|
|
117
|
-
* @returns {React.ComponentClass<InsertTableProps>} - The InsertTable tool component of the Editor.
|
|
118
|
-
*/
|
|
119
|
-
function createInsertTableTool(settings) { return insertTable_1.InsertTableToolNS.createInsertTableTool(settings); }
|
|
120
|
-
EditorTools.createInsertTableTool = createInsertTableTool;
|
|
121
|
-
/**
|
|
122
|
-
* The InsertTable tool component.
|
|
123
|
-
*/
|
|
124
|
-
var InsertTable = /** @class */ (function (_super) {
|
|
125
|
-
__extends(InsertTable, _super);
|
|
126
|
-
function InsertTable() {
|
|
127
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
128
|
-
}
|
|
129
|
-
return InsertTable;
|
|
130
|
-
}(createInsertTableTool(toolsSettings_1.EditorToolsSettings.insertTable)));
|
|
131
|
-
EditorTools.InsertTable = InsertTable;
|
|
132
|
-
/**
|
|
133
|
-
* The `InsertTablePopup` component.
|
|
134
|
-
*/
|
|
135
|
-
var InsertTablePopup = /** @class */ (function (_super) {
|
|
136
|
-
__extends(InsertTablePopup, _super);
|
|
137
|
-
function InsertTablePopup() {
|
|
138
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
139
|
-
}
|
|
140
|
-
return InsertTablePopup;
|
|
141
|
-
}(insertTable_1.InsertTablePopupNS.InsertTablePopup));
|
|
142
|
-
EditorTools.InsertTablePopup = InsertTablePopup;
|
|
143
|
-
/**
|
|
144
|
-
* Creates the DropDownList tool component of the Editor which applies inline styles to inline HTML elements.
|
|
145
|
-
*
|
|
146
|
-
* @param {StyleDropDownListSettings} settings
|
|
147
|
-
* @returns {React.ComponentClass<DropDownListToolProps>} - The DropDownList tool component of the Editor.
|
|
148
|
-
*/
|
|
149
|
-
function createStyleDropDownList(settings) { return fontStyle_1.FontStyleToolNS.createStyleDropDownList(settings); }
|
|
150
|
-
EditorTools.createStyleDropDownList = createStyleDropDownList;
|
|
151
|
-
/**
|
|
152
|
-
* The FontSize tool component.
|
|
153
|
-
*/
|
|
154
|
-
var FontSize = /** @class */ (function (_super) {
|
|
155
|
-
__extends(FontSize, _super);
|
|
156
|
-
function FontSize() {
|
|
157
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
158
|
-
}
|
|
159
|
-
return FontSize;
|
|
160
|
-
}(createStyleDropDownList(toolsSettings_1.EditorToolsSettings.fontSize)));
|
|
161
|
-
EditorTools.FontSize = FontSize;
|
|
162
|
-
/**
|
|
163
|
-
* The FontName tool component.
|
|
164
|
-
*/
|
|
165
|
-
var FontName = /** @class */ (function (_super) {
|
|
166
|
-
__extends(FontName, _super);
|
|
167
|
-
function FontName() {
|
|
168
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
169
|
-
}
|
|
170
|
-
return FontName;
|
|
171
|
-
}(createStyleDropDownList(toolsSettings_1.EditorToolsSettings.fontName)));
|
|
172
|
-
EditorTools.FontName = FontName;
|
|
173
|
-
/**
|
|
174
|
-
* The ForeColor tool component.
|
|
175
|
-
*/
|
|
176
|
-
EditorTools.ForeColor = function (props) {
|
|
177
|
-
return React.createElement(applyColor_1.ApplyColorTool, __assign({}, toolsSettings_1.EditorToolsSettings.foreColor, props));
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* The BackColor tool component.
|
|
181
|
-
*/
|
|
182
|
-
EditorTools.BackColor = function (props) {
|
|
183
|
-
return React.createElement(applyColor_1.ApplyColorTool, __assign({}, toolsSettings_1.EditorToolsSettings.backColor, props));
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* Creates the FormatBlock tool component of the Editor.
|
|
187
|
-
*
|
|
188
|
-
* @param {FormatBlockDropDownListSettings} settings
|
|
189
|
-
* @returns {React.ComponentClass<FormatBlockProps>} - The FormatBlock tool component of the Editor.
|
|
190
|
-
*/
|
|
191
|
-
function createFormatBlockDropDownList(settings) { return formatBlock_1.FormatBlockToolNS.createFormatBlockDropDownList(settings); }
|
|
192
|
-
EditorTools.createFormatBlockDropDownList = createFormatBlockDropDownList;
|
|
193
|
-
/**
|
|
194
|
-
* The FormatBlock tool component.
|
|
195
|
-
*/
|
|
196
|
-
var FormatBlock = /** @class */ (function (_super) {
|
|
197
|
-
__extends(FormatBlock, _super);
|
|
198
|
-
function FormatBlock() {
|
|
199
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
200
|
-
}
|
|
201
|
-
return FormatBlock;
|
|
202
|
-
}(createFormatBlockDropDownList(toolsSettings_1.EditorToolsSettings.formatBlock)));
|
|
203
|
-
EditorTools.FormatBlock = FormatBlock;
|
|
204
|
-
/**
|
|
205
|
-
* Creates the Undo tool component of the Editor.
|
|
206
|
-
*
|
|
207
|
-
* @param {ToolSettings} settings
|
|
208
|
-
* @returns {React.ComponentClass<UndoProps>} - The Undo tool component of the Editor.
|
|
209
|
-
*/
|
|
210
|
-
function createUndoTool(settings) { return history_1.HistoryToolNS.createUndoTool(settings); }
|
|
211
|
-
EditorTools.createUndoTool = createUndoTool;
|
|
212
|
-
/**
|
|
213
|
-
* Creates the Redo tool component of the Editor.
|
|
214
|
-
*
|
|
215
|
-
* @param {ToolSettings} settings
|
|
216
|
-
* @returns {React.ComponentClass<RedoProps>} - The Redo tool component of the Editor.
|
|
217
|
-
*/
|
|
218
|
-
function createRedoTool(settings) { return history_1.HistoryToolNS.createRedoTool(settings); }
|
|
219
|
-
EditorTools.createRedoTool = createRedoTool;
|
|
220
|
-
/**
|
|
221
|
-
* The Undo tool component of the Editor.
|
|
222
|
-
*/
|
|
223
|
-
var Undo = /** @class */ (function (_super) {
|
|
224
|
-
__extends(Undo, _super);
|
|
225
|
-
function Undo() {
|
|
226
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
227
|
-
}
|
|
228
|
-
return Undo;
|
|
229
|
-
}(createUndoTool(toolsSettings_1.EditorToolsSettings.undo)));
|
|
230
|
-
EditorTools.Undo = Undo;
|
|
231
|
-
/**
|
|
232
|
-
* The Redo tool component of the Editor.
|
|
233
|
-
*/
|
|
234
|
-
var Redo = /** @class */ (function (_super) {
|
|
235
|
-
__extends(Redo, _super);
|
|
236
|
-
function Redo() {
|
|
237
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
238
|
-
}
|
|
239
|
-
return Redo;
|
|
240
|
-
}(createRedoTool(toolsSettings_1.EditorToolsSettings.redo)));
|
|
241
|
-
EditorTools.Redo = Redo;
|
|
242
|
-
/**
|
|
243
|
-
* Creates the Indent tool component of the Editor.
|
|
244
|
-
*
|
|
245
|
-
* @param {IndentationSettings} settings
|
|
246
|
-
* @returns {React.ComponentClass<IndentProps>} - The Indent tool component of the Editor.
|
|
247
|
-
*/
|
|
248
|
-
function createIndentTool(settings) { return indent_1.IndentToolNS.createIndentTool(settings); }
|
|
249
|
-
EditorTools.createIndentTool = createIndentTool;
|
|
250
|
-
/**
|
|
251
|
-
* The Indent tool component.
|
|
252
|
-
*/
|
|
253
|
-
var Indent = /** @class */ (function (_super) {
|
|
254
|
-
__extends(Indent, _super);
|
|
255
|
-
function Indent() {
|
|
256
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
257
|
-
}
|
|
258
|
-
return Indent;
|
|
259
|
-
}(createIndentTool(toolsSettings_1.EditorToolsSettings.indent)));
|
|
260
|
-
EditorTools.Indent = Indent;
|
|
261
|
-
/**
|
|
262
|
-
* Creates the InlineFormat tool component of the Editor.
|
|
263
|
-
*
|
|
264
|
-
* @param {InlineFormatSettings} settings
|
|
265
|
-
* @returns {React.ComponentClass<InlineFormatToolProps>} - Editor's InlineFormat tool component.
|
|
266
|
-
*/
|
|
267
|
-
function createInlineFormatTool(settings) {
|
|
268
|
-
return inlineFormat_1.InlineFormatToolNS.createInlineFormatTool(settings);
|
|
269
|
-
}
|
|
270
|
-
EditorTools.createInlineFormatTool = createInlineFormatTool;
|
|
271
|
-
/**
|
|
272
|
-
* The Bold tool component.
|
|
273
|
-
*/
|
|
274
|
-
var Bold = /** @class */ (function (_super) {
|
|
275
|
-
__extends(Bold, _super);
|
|
276
|
-
function Bold() {
|
|
277
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
278
|
-
}
|
|
279
|
-
return Bold;
|
|
280
|
-
}(createInlineFormatTool(toolsSettings_1.EditorToolsSettings.bold)));
|
|
281
|
-
EditorTools.Bold = Bold;
|
|
282
|
-
/**
|
|
283
|
-
* The Italic tool component.
|
|
284
|
-
*/
|
|
285
|
-
var Italic = /** @class */ (function (_super) {
|
|
286
|
-
__extends(Italic, _super);
|
|
287
|
-
function Italic() {
|
|
288
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
289
|
-
}
|
|
290
|
-
return Italic;
|
|
291
|
-
}(createInlineFormatTool(toolsSettings_1.EditorToolsSettings.italic)));
|
|
292
|
-
EditorTools.Italic = Italic;
|
|
293
|
-
/**
|
|
294
|
-
* The Underline tool component.
|
|
295
|
-
*/
|
|
296
|
-
var Underline = /** @class */ (function (_super) {
|
|
297
|
-
__extends(Underline, _super);
|
|
298
|
-
function Underline() {
|
|
299
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
300
|
-
}
|
|
301
|
-
return Underline;
|
|
302
|
-
}(createInlineFormatTool(toolsSettings_1.EditorToolsSettings.underline)));
|
|
303
|
-
EditorTools.Underline = Underline;
|
|
304
|
-
/**
|
|
305
|
-
* The Strikethrough tool component.
|
|
306
|
-
*/
|
|
307
|
-
var Strikethrough = /** @class */ (function (_super) {
|
|
308
|
-
__extends(Strikethrough, _super);
|
|
309
|
-
function Strikethrough() {
|
|
310
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
311
|
-
}
|
|
312
|
-
return Strikethrough;
|
|
313
|
-
}(createInlineFormatTool(toolsSettings_1.EditorToolsSettings.strikethrough)));
|
|
314
|
-
EditorTools.Strikethrough = Strikethrough;
|
|
315
|
-
/**
|
|
316
|
-
* The Subscript tool component.
|
|
317
|
-
*/
|
|
318
|
-
var Subscript = /** @class */ (function (_super) {
|
|
319
|
-
__extends(Subscript, _super);
|
|
320
|
-
function Subscript() {
|
|
321
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
322
|
-
}
|
|
323
|
-
return Subscript;
|
|
324
|
-
}(createInlineFormatTool(toolsSettings_1.EditorToolsSettings.subscript)));
|
|
325
|
-
EditorTools.Subscript = Subscript;
|
|
326
|
-
/**
|
|
327
|
-
* The Superscript tool component.
|
|
328
|
-
*/
|
|
329
|
-
var Superscript = /** @class */ (function (_super) {
|
|
330
|
-
__extends(Superscript, _super);
|
|
331
|
-
function Superscript() {
|
|
332
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
333
|
-
}
|
|
334
|
-
return Superscript;
|
|
335
|
-
}(createInlineFormatTool(toolsSettings_1.EditorToolsSettings.superscript)));
|
|
336
|
-
EditorTools.Superscript = Superscript;
|
|
337
|
-
/**
|
|
338
|
-
* Creates the InsertImage tool component of the Editor.
|
|
339
|
-
*
|
|
340
|
-
* @param {ImageSettings} settings
|
|
341
|
-
* @returns {React.ComponentClass<InsertImageProps>} - The InsertImage tool component of the Editor.
|
|
342
|
-
*/
|
|
343
|
-
function createInsertImageTool(settings) { return InsertImageTool.createInsertImageTool(settings); }
|
|
344
|
-
EditorTools.createInsertImageTool = createInsertImageTool;
|
|
345
|
-
/**
|
|
346
|
-
* The InsertImage tool component.
|
|
347
|
-
*/
|
|
348
|
-
var InsertImage = /** @class */ (function (_super) {
|
|
349
|
-
__extends(InsertImage, _super);
|
|
350
|
-
function InsertImage() {
|
|
351
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
352
|
-
}
|
|
353
|
-
return InsertImage;
|
|
354
|
-
}(createInsertImageTool(toolsSettings_1.EditorToolsSettings.image)));
|
|
355
|
-
EditorTools.InsertImage = InsertImage;
|
|
356
|
-
/**
|
|
357
|
-
* Creates the Link tool component of the Editor.
|
|
358
|
-
*
|
|
359
|
-
* @param {LinkSettings} settings
|
|
360
|
-
* @returns {React.ComponentClass<LinkProps>} - The Link tool component of the Editor.
|
|
361
|
-
*/
|
|
362
|
-
function createLinkTool(settings) { return insertLink_1.LinkToolNS.createLinkTool(settings); }
|
|
363
|
-
EditorTools.createLinkTool = createLinkTool;
|
|
364
|
-
/**
|
|
365
|
-
* The Link tool component.
|
|
366
|
-
*/
|
|
367
|
-
var Link = /** @class */ (function (_super) {
|
|
368
|
-
__extends(Link, _super);
|
|
369
|
-
function Link() {
|
|
370
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
371
|
-
}
|
|
372
|
-
return Link;
|
|
373
|
-
}(createLinkTool(toolsSettings_1.EditorToolsSettings.link)));
|
|
374
|
-
EditorTools.Link = Link;
|
|
375
|
-
/**
|
|
376
|
-
* The InsertFile tool component.
|
|
377
|
-
*/
|
|
378
|
-
var InsertFile = /** @class */ (function (_super) {
|
|
379
|
-
__extends(InsertFile, _super);
|
|
380
|
-
function InsertFile() {
|
|
381
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
382
|
-
}
|
|
383
|
-
return InsertFile;
|
|
384
|
-
}(createLinkTool(toolsSettings_1.EditorToolsSettings.insertFile)));
|
|
385
|
-
EditorTools.InsertFile = InsertFile;
|
|
386
|
-
/**
|
|
387
|
-
* Creates the List tool component of the Editor.
|
|
388
|
-
*
|
|
389
|
-
* @param {ToolSettings} settings
|
|
390
|
-
* @returns {React.ComponentClass<ListToolProps>} - The List tool component of the Editor.
|
|
391
|
-
*/
|
|
392
|
-
function createListTool(settings) { return lists_1.ListToolNS.createListTool(settings); }
|
|
393
|
-
EditorTools.createListTool = createListTool;
|
|
394
|
-
/**
|
|
395
|
-
* The basic OrderedList tool component. Will render a button which applies `<ol>` HTML element.
|
|
396
|
-
*/
|
|
397
|
-
var OrderedList = /** @class */ (function (_super) {
|
|
398
|
-
__extends(OrderedList, _super);
|
|
399
|
-
function OrderedList() {
|
|
400
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
401
|
-
}
|
|
402
|
-
return OrderedList;
|
|
403
|
-
}(createListTool(toolsSettings_1.EditorToolsSettings.orderedList)));
|
|
404
|
-
EditorTools.OrderedList = OrderedList;
|
|
405
|
-
/**
|
|
406
|
-
* The basic UnorderedList tool component. Will render a button which applies `<ul>` HTML element.
|
|
407
|
-
*/
|
|
408
|
-
var UnorderedList = /** @class */ (function (_super) {
|
|
409
|
-
__extends(UnorderedList, _super);
|
|
410
|
-
function UnorderedList() {
|
|
411
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
412
|
-
}
|
|
413
|
-
return UnorderedList;
|
|
414
|
-
}(createListTool(toolsSettings_1.EditorToolsSettings.bulletList)));
|
|
415
|
-
EditorTools.UnorderedList = UnorderedList;
|
|
416
|
-
/**
|
|
417
|
-
* The BulletedList tool component.
|
|
418
|
-
* Will render a SplitButton which applies `<ol>` HTML element with predefined styles - disc and square.
|
|
419
|
-
*/
|
|
420
|
-
EditorTools.BulletedList = function (props) {
|
|
421
|
-
var ulItems = [
|
|
422
|
-
{ icon: 'list-unordered', svgIcon: kendo_svg_icons_1.listUnorderedIcon, text: 'Disc', style: 'disc' },
|
|
423
|
-
{ icon: 'list-unordered-outline', svgIcon: kendo_svg_icons_1.listUnorderedOutlineIcon, text: 'Circle', style: 'circle' },
|
|
424
|
-
{ icon: 'list-unordered-square', svgIcon: kendo_svg_icons_1.listUnorderedSquareIcon, text: 'Square', style: 'square' }
|
|
425
|
-
];
|
|
426
|
-
return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered", svgIcon: kendo_svg_icons_1.listUnorderedIcon, titleKey: toolsSettings_1.EditorToolsSettings.bulletList.messages.title }, props)));
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* The NumberedList tool component.
|
|
430
|
-
* Will render a SplitButton which applies `<ul>` HTML element with predefined styles - upper-roman, lower-roman, upper-latin and lower-latin.
|
|
431
|
-
*/
|
|
432
|
-
EditorTools.NumberedList = function (props) {
|
|
433
|
-
var olItems = [
|
|
434
|
-
{ icon: 'list-ordered', svgIcon: kendo_svg_icons_1.listOrderedIcon, text: 'Decimal' },
|
|
435
|
-
// { icon: 'list-leading-zero', text: 'Decimal with leading zero', styleType: 'decimal-leading-zero' },
|
|
436
|
-
{ icon: 'list-roman-upper', svgIcon: kendo_svg_icons_1.listRomanUpperIcon, text: 'Upper roman', style: 'upper-roman' },
|
|
437
|
-
{ icon: 'list-roman-lower', svgIcon: kendo_svg_icons_1.listRomanLowerIcon, text: 'Lower roman', style: 'lower-roman' },
|
|
438
|
-
{ icon: 'list-latin-big', svgIcon: kendo_svg_icons_1.listLatinBigIcon, text: 'Upper latin', style: 'upper-latin' },
|
|
439
|
-
{ icon: 'list-latin-small', svgIcon: kendo_svg_icons_1.listLatinSmallIcon, text: 'Lower latin', style: 'lower-latin' }
|
|
440
|
-
];
|
|
441
|
-
return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered", svgIcon: kendo_svg_icons_1.listOrderedIcon, titleKey: toolsSettings_1.EditorToolsSettings.orderedList.messages.title }, props)));
|
|
442
|
-
};
|
|
443
|
-
/**
|
|
444
|
-
* The TableCellProperties tool component.
|
|
445
|
-
*/
|
|
446
|
-
EditorTools.TableCellProperties = tableCellProperties_1.TableCellProperties;
|
|
447
|
-
;
|
|
448
|
-
/**
|
|
449
|
-
* The TableProperties tool component.
|
|
450
|
-
*/
|
|
451
|
-
EditorTools.TableProperties = tableProperties_1.TableProperties;
|
|
452
|
-
;
|
|
453
|
-
/**
|
|
454
|
-
* Creates the Outdent tool component of the Editor.
|
|
455
|
-
*
|
|
456
|
-
* @param {IndentationSettings} settings
|
|
457
|
-
* @returns {React.ComponentClass<OutdentProps>} - The Outdent tool component of the Editor.
|
|
458
|
-
*/
|
|
459
|
-
function createOutdentTool(settings) { return outdent_1.OutdentToolNS.createOutdentTool(settings); }
|
|
460
|
-
EditorTools.createOutdentTool = createOutdentTool;
|
|
461
|
-
/**
|
|
462
|
-
* The Outdent tool component.
|
|
463
|
-
*/
|
|
464
|
-
var Outdent = /** @class */ (function (_super) {
|
|
465
|
-
__extends(Outdent, _super);
|
|
466
|
-
function Outdent() {
|
|
467
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
468
|
-
}
|
|
469
|
-
return Outdent;
|
|
470
|
-
}(createOutdentTool(toolsSettings_1.EditorToolsSettings.outdent)));
|
|
471
|
-
EditorTools.Outdent = Outdent;
|
|
472
|
-
/**
|
|
473
|
-
* The Print tool component.
|
|
474
|
-
* Designed to work only if Editor's defaultEditMode prop is set to 'iframe'.
|
|
475
|
-
*/
|
|
476
|
-
EditorTools.Print = function (props) { return React.createElement(print_1.Print, __assign({}, props)); };
|
|
477
|
-
/**
|
|
478
|
-
* The Export to PDF tool component.
|
|
479
|
-
*
|
|
480
|
-
* To modify the default PDF export options, see the following example:
|
|
481
|
-
*
|
|
482
|
-
* @example
|
|
483
|
-
* ```tsx-no-run
|
|
484
|
-
* import { Editor, EditorTools } from '@progress/kendo-react-editor';
|
|
485
|
-
* const { Bold, Italic, Pdf } = EditorTools;
|
|
486
|
-
*
|
|
487
|
-
* const PdfTool = (props: EditorTools.PdfProps) => (
|
|
488
|
-
* <Pdf
|
|
489
|
-
* {...props}
|
|
490
|
-
* // https://www.telerik.com/kendo-react-ui/components/pdfprocessing/api/PDFExportProps/
|
|
491
|
-
* savePdfOptions={{
|
|
492
|
-
* fileName: 'editor-export.pdf',
|
|
493
|
-
* paperSize: 'A5',
|
|
494
|
-
* margin: '1cm'
|
|
495
|
-
* }}
|
|
496
|
-
* />
|
|
497
|
-
* );
|
|
498
|
-
*
|
|
499
|
-
* class App extends React.Component<any, any> {
|
|
500
|
-
* render() {
|
|
501
|
-
* return (
|
|
502
|
-
* <Editor
|
|
503
|
-
* tools={[[ Bold, Italic, PdfTool ]]}
|
|
504
|
-
* contentStyle={{ height: 100 }}
|
|
505
|
-
* defaultContent="<p>text</p>"
|
|
506
|
-
* />
|
|
507
|
-
* );
|
|
508
|
-
* }
|
|
509
|
-
* }
|
|
510
|
-
* ```
|
|
511
|
-
*/
|
|
512
|
-
EditorTools.Pdf = function (props) { return React.createElement(pdf_1.Pdf, __assign({}, props)); };
|
|
513
|
-
/**
|
|
514
|
-
* The SelectAll tool component.
|
|
515
|
-
*/
|
|
516
|
-
EditorTools.SelectAll = function (props) { return React.createElement(selectAll_1.SelectAll, __assign({}, props)); };
|
|
517
|
-
/**
|
|
518
|
-
* The CleanFormatting tool component.
|
|
519
|
-
*/
|
|
520
|
-
EditorTools.CleanFormatting = function (props) { return React.createElement(cleanFormatting_1.CleanFormatting, __assign({}, props)); };
|
|
521
|
-
/**
|
|
522
|
-
* Creates the AddRowBefore tool component of the Editor.
|
|
523
|
-
*
|
|
524
|
-
* @param {ToolSettings} - The settings of the AddRowBefore tool.
|
|
525
|
-
* @returns {React.ComponentClass<AddRowBeforeProps>} - The AddRowBefore tool component of the Editor.
|
|
526
|
-
*/
|
|
527
|
-
function createAddRowBeforeTool(settings) { return tableEdit_1.TableEditNS.createAddRowBeforeTool(settings); }
|
|
528
|
-
EditorTools.createAddRowBeforeTool = createAddRowBeforeTool;
|
|
529
|
-
/**
|
|
530
|
-
* Creates the AddRowAfter tool component of the Editor.
|
|
531
|
-
*
|
|
532
|
-
* @param {ToolSettings} - The settings of the AddRowAfter tool.
|
|
533
|
-
* @returns {React.ComponentClass<AddRowAfterProps>} - The AddRowAfter tool component of the Editor.
|
|
534
|
-
*/
|
|
535
|
-
function createAddRowAfterTool(settings) { return tableEdit_1.TableEditNS.createAddRowAfterTool(settings); }
|
|
536
|
-
EditorTools.createAddRowAfterTool = createAddRowAfterTool;
|
|
537
|
-
/**
|
|
538
|
-
* Creates the AddColumnBefore tool component of the Editor.
|
|
539
|
-
*
|
|
540
|
-
* @param {ToolSettings} - The settings of the AddColumnBefore tool.
|
|
541
|
-
* @returns {React.ComponentClass<AddColumnBeforeProps>} - The AddColumnBefore tool component of the Editor.
|
|
542
|
-
*/
|
|
543
|
-
function createAddColumnBeforeTool(settings) {
|
|
544
|
-
return tableEdit_1.TableEditNS.createAddColumnBeforeTool(settings);
|
|
545
|
-
}
|
|
546
|
-
EditorTools.createAddColumnBeforeTool = createAddColumnBeforeTool;
|
|
547
|
-
/**
|
|
548
|
-
* Creates the AddColumnAfter tool component of the Editor.
|
|
549
|
-
*
|
|
550
|
-
* @param {ToolSettings} - The settings of the AddColumnAfter tool.
|
|
551
|
-
* @returns {React.ComponentClass<AddColumnAfterProps>} - The AddColumnAfter tool component of the Editor.
|
|
552
|
-
*/
|
|
553
|
-
function createAddColumnAfterTool(settings) { return tableEdit_1.TableEditNS.createAddColumnAfterTool(settings); }
|
|
554
|
-
EditorTools.createAddColumnAfterTool = createAddColumnAfterTool;
|
|
555
|
-
/**
|
|
556
|
-
* Creates the DeleteRow tool component of the Editor.
|
|
557
|
-
*
|
|
558
|
-
* @param {ToolSettings} - The settings of the DeleteRow tool.
|
|
559
|
-
* @returns {React.ComponentClass<DeleteRowProps>} - The DeleteRow tool component of the Editor.
|
|
560
|
-
*/
|
|
561
|
-
function createDeleteRowTool(settings) { return tableEdit_1.TableEditNS.createDeleteRowTool(settings); }
|
|
562
|
-
EditorTools.createDeleteRowTool = createDeleteRowTool;
|
|
563
|
-
/**
|
|
564
|
-
* Creates the DeleteColumn tool component of the Editor.
|
|
565
|
-
*
|
|
566
|
-
* @param {ToolSettings} - The settings of the DeleteColumn tool.
|
|
567
|
-
* @returns {React.ComponentClass<DeleteColumnProps>} - The DeleteColumn tool component of the Editor.
|
|
568
|
-
*/
|
|
569
|
-
function createDeleteColumnTool(settings) { return tableEdit_1.TableEditNS.createDeleteColumnTool(settings); }
|
|
570
|
-
EditorTools.createDeleteColumnTool = createDeleteColumnTool;
|
|
571
|
-
/**
|
|
572
|
-
* Creates the DeleteTable tool component of the Editor.
|
|
573
|
-
*
|
|
574
|
-
* @param {ToolSettings} - The settings of the DeleteTable tool.
|
|
575
|
-
* @returns {React.ComponentClass<DeleteTableProps>} - The DeleteTable tool component of the Editor.
|
|
576
|
-
*/
|
|
577
|
-
function createDeleteTableTool(settings) { return tableEdit_1.TableEditNS.createDeleteTableTool(settings); }
|
|
578
|
-
EditorTools.createDeleteTableTool = createDeleteTableTool;
|
|
579
|
-
/**
|
|
580
|
-
* Creates the MergeCells tool component of the Editor.
|
|
581
|
-
*
|
|
582
|
-
* @param {ToolSettings} - The settings of the MergeCells tool
|
|
583
|
-
* @returns {React.ComponentClass<MergeCellsProps>} - The MergeCells tool component of the Editor.
|
|
584
|
-
*/
|
|
585
|
-
function createMergeCellsTool(settings) { return tableEdit_1.TableEditNS.createMergeCellsTool(settings); }
|
|
586
|
-
EditorTools.createMergeCellsTool = createMergeCellsTool;
|
|
587
|
-
/**
|
|
588
|
-
* Creates the SplitCell tool component of the Editor.
|
|
589
|
-
*
|
|
590
|
-
* @param {ToolSettings} - The settings of the SplitCell tool.
|
|
591
|
-
* @returns {React.ComponentClass<SplitCellProps>} - The SplitCell tool component of the Editor.
|
|
592
|
-
*/
|
|
593
|
-
function createSplitCellTool(settings) { return tableEdit_1.TableEditNS.createSplitCellTool(settings); }
|
|
594
|
-
EditorTools.createSplitCellTool = createSplitCellTool;
|
|
595
|
-
/**
|
|
596
|
-
* The AddRowBefore tool component.
|
|
597
|
-
*/
|
|
598
|
-
var AddRowBefore = /** @class */ (function (_super) {
|
|
599
|
-
__extends(AddRowBefore, _super);
|
|
600
|
-
function AddRowBefore() {
|
|
601
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
602
|
-
}
|
|
603
|
-
return AddRowBefore;
|
|
604
|
-
}(createAddRowBeforeTool(toolsSettings_1.EditorToolsSettings.addRowBefore)));
|
|
605
|
-
EditorTools.AddRowBefore = AddRowBefore;
|
|
606
|
-
/**
|
|
607
|
-
* The AddRowAfter tool component.
|
|
608
|
-
*/
|
|
609
|
-
var AddRowAfter = /** @class */ (function (_super) {
|
|
610
|
-
__extends(AddRowAfter, _super);
|
|
611
|
-
function AddRowAfter() {
|
|
612
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
613
|
-
}
|
|
614
|
-
return AddRowAfter;
|
|
615
|
-
}(createAddRowAfterTool(toolsSettings_1.EditorToolsSettings.addRowAfter)));
|
|
616
|
-
EditorTools.AddRowAfter = AddRowAfter;
|
|
617
|
-
/**
|
|
618
|
-
* The AddColumnBefore tool component.
|
|
619
|
-
*/
|
|
620
|
-
var AddColumnBefore = /** @class */ (function (_super) {
|
|
621
|
-
__extends(AddColumnBefore, _super);
|
|
622
|
-
function AddColumnBefore() {
|
|
623
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
624
|
-
}
|
|
625
|
-
return AddColumnBefore;
|
|
626
|
-
}(createAddColumnBeforeTool(toolsSettings_1.EditorToolsSettings.addColumnBefore)));
|
|
627
|
-
EditorTools.AddColumnBefore = AddColumnBefore;
|
|
628
|
-
/**
|
|
629
|
-
* The AddColumnAfter tool component.
|
|
630
|
-
*/
|
|
631
|
-
var AddColumnAfter = /** @class */ (function (_super) {
|
|
632
|
-
__extends(AddColumnAfter, _super);
|
|
633
|
-
function AddColumnAfter() {
|
|
634
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
635
|
-
}
|
|
636
|
-
return AddColumnAfter;
|
|
637
|
-
}(createAddColumnAfterTool(toolsSettings_1.EditorToolsSettings.addColumnAfter)));
|
|
638
|
-
EditorTools.AddColumnAfter = AddColumnAfter;
|
|
639
|
-
/**
|
|
640
|
-
* The DeleteRow tool component.
|
|
641
|
-
*/
|
|
642
|
-
var DeleteRow = /** @class */ (function (_super) {
|
|
643
|
-
__extends(DeleteRow, _super);
|
|
644
|
-
function DeleteRow() {
|
|
645
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
646
|
-
}
|
|
647
|
-
return DeleteRow;
|
|
648
|
-
}(createDeleteRowTool(toolsSettings_1.EditorToolsSettings.deleteRow)));
|
|
649
|
-
EditorTools.DeleteRow = DeleteRow;
|
|
650
|
-
/**
|
|
651
|
-
* The DeleteColumn tool component.
|
|
652
|
-
*/
|
|
653
|
-
var DeleteColumn = /** @class */ (function (_super) {
|
|
654
|
-
__extends(DeleteColumn, _super);
|
|
655
|
-
function DeleteColumn() {
|
|
656
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
657
|
-
}
|
|
658
|
-
return DeleteColumn;
|
|
659
|
-
}(createDeleteColumnTool(toolsSettings_1.EditorToolsSettings.deleteColumn)));
|
|
660
|
-
EditorTools.DeleteColumn = DeleteColumn;
|
|
661
|
-
/**
|
|
662
|
-
* The DeleteTable tool component.
|
|
663
|
-
*/
|
|
664
|
-
var DeleteTable = /** @class */ (function (_super) {
|
|
665
|
-
__extends(DeleteTable, _super);
|
|
666
|
-
function DeleteTable() {
|
|
667
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
668
|
-
}
|
|
669
|
-
return DeleteTable;
|
|
670
|
-
}(createDeleteTableTool(toolsSettings_1.EditorToolsSettings.deleteTable)));
|
|
671
|
-
EditorTools.DeleteTable = DeleteTable;
|
|
672
|
-
/**
|
|
673
|
-
* The MergeCells tool component.
|
|
674
|
-
*/
|
|
675
|
-
var MergeCells = /** @class */ (function (_super) {
|
|
676
|
-
__extends(MergeCells, _super);
|
|
677
|
-
function MergeCells() {
|
|
678
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
679
|
-
}
|
|
680
|
-
return MergeCells;
|
|
681
|
-
}(createMergeCellsTool(toolsSettings_1.EditorToolsSettings.mergeCells)));
|
|
682
|
-
EditorTools.MergeCells = MergeCells;
|
|
683
|
-
/**
|
|
684
|
-
* The SplitCell tool component.
|
|
685
|
-
*/
|
|
686
|
-
var SplitCell = /** @class */ (function (_super) {
|
|
687
|
-
__extends(SplitCell, _super);
|
|
688
|
-
function SplitCell() {
|
|
689
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
690
|
-
}
|
|
691
|
-
return SplitCell;
|
|
692
|
-
}(createSplitCellTool(toolsSettings_1.EditorToolsSettings.splitCell)));
|
|
693
|
-
EditorTools.SplitCell = SplitCell;
|
|
694
|
-
/**
|
|
695
|
-
* Creates the Unlink tool component of the Editor.
|
|
696
|
-
*
|
|
697
|
-
* @param {UnlinkSettings} settings
|
|
698
|
-
* @returns {React.ComponentClass<UnlinkProps>} - The Unlink tool component of the Editor.
|
|
699
|
-
*/
|
|
700
|
-
function createUnlinkTool(settings) { return unlink_1.UnlinkToolNS.createUnlinkTool(settings); }
|
|
701
|
-
EditorTools.createUnlinkTool = createUnlinkTool;
|
|
702
|
-
/**
|
|
703
|
-
* The Unlink tool component.
|
|
704
|
-
*/
|
|
705
|
-
var Unlink = /** @class */ (function (_super) {
|
|
706
|
-
__extends(Unlink, _super);
|
|
707
|
-
function Unlink() {
|
|
708
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
709
|
-
}
|
|
710
|
-
return Unlink;
|
|
711
|
-
}(createUnlinkTool(toolsSettings_1.EditorToolsSettings.unlink)));
|
|
712
|
-
EditorTools.Unlink = Unlink;
|
|
713
|
-
/**
|
|
714
|
-
* Creates the ViewHtml tool component of the Editor.
|
|
715
|
-
*
|
|
716
|
-
* @param {ViewHtmlSettings} settings
|
|
717
|
-
* @returns {React.ComponentClass<ViewHtmlProps>} - The ViewHtml tool component of the Editor.
|
|
718
|
-
*/
|
|
719
|
-
function createViewHtmlTool(settings) { return viewHtml_1.ViewHtmlToolNS.createViewHtmlTool(settings); }
|
|
720
|
-
EditorTools.createViewHtmlTool = createViewHtmlTool;
|
|
721
|
-
/**
|
|
722
|
-
* The ViewHtml tool component.
|
|
723
|
-
*/
|
|
724
|
-
var ViewHtml = /** @class */ (function (_super) {
|
|
725
|
-
__extends(ViewHtml, _super);
|
|
726
|
-
function ViewHtml() {
|
|
727
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
728
|
-
}
|
|
729
|
-
return ViewHtml;
|
|
730
|
-
}(createViewHtmlTool(toolsSettings_1.EditorToolsSettings.viewHtml)));
|
|
731
|
-
EditorTools.ViewHtml = ViewHtml;
|
|
732
|
-
/**
|
|
733
|
-
* The FindAndReplace tool component.
|
|
734
|
-
*/
|
|
735
|
-
var FindAndReplace = /** @class */ (function (_super) {
|
|
736
|
-
__extends(FindAndReplace, _super);
|
|
737
|
-
function FindAndReplace() {
|
|
738
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
739
|
-
}
|
|
740
|
-
return FindAndReplace;
|
|
741
|
-
}(findReplace_1.FindAndReplace));
|
|
742
|
-
EditorTools.FindAndReplace = FindAndReplace;
|
|
743
|
-
})(EditorTools = exports.EditorTools || (exports.EditorTools = {}));
|