@progress/kendo-react-editor 6.1.1 → 7.0.0-develop.2

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