@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,525 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.EditorToolsSettings = exports.listsTypes = void 0;
24
- var messages_1 = require("./../messages");
25
- var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
26
- var kendo_editor_common_1 = require("@progress/kendo-editor-common");
27
- /**
28
- * @hidden
29
- */
30
- exports.listsTypes = __assign({}, kendo_editor_common_1.indentRules.listsTypes);
31
- /**
32
- * Represents a wrapping namespace for the tool settings of the Editor.
33
- */
34
- var EditorToolsSettings;
35
- (function (EditorToolsSettings) {
36
- /**
37
- * @hidden
38
- */
39
- var buttonCommonProps = {
40
- type: 'button'
41
- };
42
- /**
43
- * The object of the Bold tool settings.
44
- */
45
- EditorToolsSettings.bold = __assign(__assign({}, kendo_editor_common_1.bold), { props: __assign({ icon: 'bold', svgIcon: kendo_svg_icons_1.boldIcon }, buttonCommonProps), messages: {
46
- title: messages_1.keys.bold
47
- }, commandName: 'Bold' });
48
- /**
49
- * The object of the Italic tool settings.
50
- */
51
- EditorToolsSettings.italic = __assign(__assign({}, kendo_editor_common_1.italic), { props: __assign({ icon: 'italic', svgIcon: kendo_svg_icons_1.italicIcon }, buttonCommonProps), messages: {
52
- title: messages_1.keys.italic
53
- }, commandName: 'Italic' });
54
- /**
55
- * The object of the Underline tool settings.
56
- */
57
- EditorToolsSettings.underline = __assign(__assign({}, kendo_editor_common_1.underline), { props: __assign({ icon: 'underline', svgIcon: kendo_svg_icons_1.underlineIcon }, buttonCommonProps), messages: {
58
- title: messages_1.keys.underline
59
- }, commandName: 'Underline' });
60
- /**
61
- * The object of the Strikethrough tool settings.
62
- */
63
- EditorToolsSettings.strikethrough = __assign(__assign({}, kendo_editor_common_1.strikethrough), { props: __assign({ icon: 'strikethrough', svgIcon: kendo_svg_icons_1.strikethroughIcon }, buttonCommonProps), messages: {
64
- title: messages_1.keys.strikethrough
65
- }, commandName: 'Strikethrough' });
66
- /**
67
- * The object of the Subscript tool settings.
68
- */
69
- EditorToolsSettings.subscript = __assign(__assign({}, kendo_editor_common_1.subscript), { props: __assign({ icon: 'subscript', svgIcon: kendo_svg_icons_1.subscriptIcon }, buttonCommonProps), messages: {
70
- title: messages_1.keys.subscript
71
- }, commandName: 'Subscript' });
72
- /**
73
- * The object of the Superscript tool settings.
74
- */
75
- EditorToolsSettings.superscript = __assign(__assign({}, kendo_editor_common_1.superscript), { props: __assign({ icon: 'supscript', svgIcon: kendo_svg_icons_1.supscriptIcon }, buttonCommonProps), messages: {
76
- title: messages_1.keys.superscript
77
- }, commandName: 'Superscript' });
78
- /**
79
- * The object of the Link tool settings.
80
- */
81
- EditorToolsSettings.link = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'link', svgIcon: kendo_svg_icons_1.linkIcon }, buttonCommonProps), messages: {
82
- insertHyperlink: messages_1.keys.insertHyperlink,
83
- insertHyperlinkDialogTitle: messages_1.keys.insertHyperlinkDialogTitle,
84
- insertHyperlinkAddress: messages_1.keys.insertHyperlinkAddress,
85
- insertHyperlinkTitle: messages_1.keys.insertHyperlinkTitle,
86
- insertHyperlinkNewWindow: messages_1.keys.insertHyperlinkNewWindow,
87
- insertHyperlinkCancel: messages_1.keys.insertHyperlinkCancel,
88
- insertHyperlinkInsert: messages_1.keys.insertHyperlinkInsert
89
- }, commandName: 'Link' });
90
- /**
91
- * The object of the Link tool settings.
92
- */
93
- EditorToolsSettings.insertFile = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'file-add', svgIcon: kendo_svg_icons_1.fileAddIcon }, buttonCommonProps), messages: {
94
- insertHyperlink: messages_1.keys.insertFile,
95
- insertHyperlinkDialogTitle: messages_1.keys.insertFileDialogTitle,
96
- insertHyperlinkAddress: messages_1.keys.insertFileAddress,
97
- insertHyperlinkTitle: messages_1.keys.insertFileTitle,
98
- insertHyperlinkNewWindow: '',
99
- insertHyperlinkCancel: messages_1.keys.insertFileCancel,
100
- insertHyperlinkInsert: messages_1.keys.insertFileInsert
101
- }, commandName: 'InsertFile', linkTarget: false });
102
- /**
103
- * The object of the InsertTable tool settings.
104
- */
105
- EditorToolsSettings.insertTable = {
106
- props: __assign({ icon: 'table-add', svgIcon: kendo_svg_icons_1.tableAddIcon }, buttonCommonProps),
107
- messages: {
108
- createTable: messages_1.keys.createTable,
109
- createTableHint: messages_1.keys.createTableHint
110
- },
111
- commandName: 'InsertTable'
112
- };
113
- /**
114
- * The object of the AddRowBefore tool settings.
115
- */
116
- EditorToolsSettings.addRowBefore = {
117
- props: __assign({ icon: 'table-row-insert-above', svgIcon: kendo_svg_icons_1.tableRowInsertAboveIcon }, buttonCommonProps),
118
- messages: {
119
- title: messages_1.keys.addRowBefore
120
- },
121
- commandName: 'AddRowBefore'
122
- };
123
- /**
124
- * The object of the AddRowAfter tool settings.
125
- */
126
- EditorToolsSettings.addRowAfter = {
127
- props: __assign({ icon: 'table-row-insert-below', svgIcon: kendo_svg_icons_1.tableRowInsertBelowIcon }, buttonCommonProps),
128
- messages: {
129
- title: messages_1.keys.addRowAfter
130
- },
131
- commandName: 'AddRowAfter'
132
- };
133
- /**
134
- * The object of the AddColumnBefore tool settings.
135
- */
136
- EditorToolsSettings.addColumnBefore = {
137
- props: __assign({ icon: 'table-column-insert-left', svgIcon: kendo_svg_icons_1.tableColumnInsertLeftIcon }, buttonCommonProps),
138
- messages: {
139
- title: messages_1.keys.addColumnBefore
140
- },
141
- commandName: 'AddColumnBefore'
142
- };
143
- /**
144
- * The object of the AddColumnAfter tool settings.
145
- */
146
- EditorToolsSettings.addColumnAfter = {
147
- props: __assign({ icon: 'table-column-insert-right', svgIcon: kendo_svg_icons_1.tableColumnInsertRightIcon }, buttonCommonProps),
148
- messages: {
149
- title: messages_1.keys.addColumnAfter
150
- },
151
- commandName: 'AddColumnAfter'
152
- };
153
- /**
154
- * The object of the DeleteRow tool settings.
155
- */
156
- EditorToolsSettings.deleteRow = {
157
- props: __assign({ icon: 'table-row-delete', svgIcon: kendo_svg_icons_1.tableRowDeleteIcon }, buttonCommonProps),
158
- messages: {
159
- title: messages_1.keys.deleteRow
160
- },
161
- commandName: 'DeleteRow'
162
- };
163
- /**
164
- * The object of the DeleteColumn tool settings.
165
- */
166
- EditorToolsSettings.deleteColumn = {
167
- props: __assign({ icon: 'table-column-delete', svgIcon: kendo_svg_icons_1.tableColumnDeleteIcon }, buttonCommonProps),
168
- messages: {
169
- title: messages_1.keys.deleteColumn
170
- },
171
- commandName: 'DeleteColumn'
172
- };
173
- /**
174
- * The object of the DeleteTable tool settings.
175
- */
176
- EditorToolsSettings.deleteTable = {
177
- props: __assign({ icon: 'table-delete', svgIcon: kendo_svg_icons_1.tableDeleteIcon }, buttonCommonProps),
178
- messages: {
179
- title: messages_1.keys.deleteTable
180
- },
181
- commandName: 'DeleteTable'
182
- };
183
- /**
184
- * The object of the MergeCells tool settings.
185
- */
186
- EditorToolsSettings.mergeCells = {
187
- props: __assign({ icon: 'cells-merge', svgIcon: kendo_svg_icons_1.cellsMergeIcon }, buttonCommonProps),
188
- messages: {
189
- title: messages_1.keys.mergeCells
190
- },
191
- commandName: 'MergeCells'
192
- };
193
- /**
194
- * The object of the SplitCell tool settings.
195
- */
196
- EditorToolsSettings.splitCell = {
197
- props: __assign({ icon: 'cell-split-horizontally', svgIcon: kendo_svg_icons_1.cellSplitHorizontallyIcon }, buttonCommonProps),
198
- messages: {
199
- title: messages_1.keys.splitCell
200
- },
201
- commandName: 'SplitCell'
202
- };
203
- /**
204
- * The object of the Print tool settings.
205
- */
206
- EditorToolsSettings.print = {
207
- props: __assign({ icon: 'print', svgIcon: kendo_svg_icons_1.printIcon }, buttonCommonProps),
208
- messages: {
209
- title: messages_1.keys.print
210
- }
211
- };
212
- /**
213
- * The object of the Print tool settings.
214
- */
215
- EditorToolsSettings.selectAll = {
216
- props: __assign({ icon: 'select-all', svgIcon: kendo_svg_icons_1.selectAllIcon }, buttonCommonProps),
217
- messages: {
218
- title: messages_1.keys.selectAll
219
- }
220
- };
221
- /**
222
- * The object of the Print tool settings.
223
- */
224
- EditorToolsSettings.pdf = {
225
- props: __assign({ icon: 'file-pdf', svgIcon: kendo_svg_icons_1.filePdfIcon }, buttonCommonProps),
226
- messages: {
227
- title: messages_1.keys.pdf
228
- }
229
- };
230
- /**
231
- * The PDF export options.
232
- *
233
- * const savePdfOptions = {
234
- * fileName: 'editor.pdf',
235
- * paperSize: 'A4',
236
- * margin: '1cm'
237
- * };
238
- */
239
- EditorToolsSettings.savePdfOptions = {
240
- fileName: 'editor.pdf',
241
- paperSize: 'A4',
242
- margin: '1cm'
243
- };
244
- /**
245
- * The object of the CleanFormatting tool settings.
246
- */
247
- EditorToolsSettings.cleanFormatting = {
248
- props: __assign({ icon: 'clear-css', svgIcon: kendo_svg_icons_1.clearCssIcon }, buttonCommonProps),
249
- messages: {
250
- title: messages_1.keys.cleanFormatting
251
- },
252
- commandName: 'CleanFormatting'
253
- };
254
- /**
255
- * The object of the InsertImage tool settings.
256
- */
257
- EditorToolsSettings.image = {
258
- node: 'image',
259
- props: __assign({ icon: 'image', svgIcon: kendo_svg_icons_1.imageIcon }, buttonCommonProps),
260
- messages: {
261
- insertImage: messages_1.keys.insertImage,
262
- insertImageDialogTitle: messages_1.keys.insertImageDialogTitle,
263
- insertImageAddress: messages_1.keys.insertImageAddress,
264
- insertImageTitle: messages_1.keys.insertImageTitle,
265
- insertImageAltText: messages_1.keys.insertImageAltText,
266
- insertImageWidth: messages_1.keys.insertImageWidth,
267
- insertImageHeight: messages_1.keys.insertImageHeight,
268
- insertImageCancel: messages_1.keys.insertImageCancel,
269
- insertImageInsert: messages_1.keys.insertImageInsert
270
- },
271
- commandName: 'InsertImage'
272
- };
273
- /**
274
- * The object of the ViewHtml tool settings.
275
- */
276
- EditorToolsSettings.viewHtml = {
277
- props: __assign({ icon: 'code', svgIcon: kendo_svg_icons_1.codeIcon }, buttonCommonProps),
278
- messages: {
279
- viewHtml: messages_1.keys.viewHtml,
280
- viewHtmlDialogTitle: messages_1.keys.viewHtmlDialogTitle,
281
- viewHtmlCancel: messages_1.keys.viewHtmlCancel,
282
- viewHtmlUpdate: messages_1.keys.viewHtmlUpdate
283
- },
284
- commandName: 'SetContent'
285
- };
286
- /**
287
- * The object of the Find and Replace tool settings.
288
- */
289
- EditorToolsSettings.findAndReplace = {
290
- props: __assign({ icon: 'find', svgIcon: kendo_svg_icons_1.binocularsIcon }, buttonCommonProps),
291
- messages: {
292
- findReplaceToolTitle: messages_1.keys.findReplaceToolTitle,
293
- findReplaceDialogTitle: messages_1.keys.findReplaceDialogTitle,
294
- findReplaceTabFind: messages_1.keys.findReplaceTabFind,
295
- findReplaceTabReplace: messages_1.keys.findReplaceTabReplace,
296
- findReplaceFindWhat: messages_1.keys.findReplaceFindWhat,
297
- findReplaceReplaceWith: messages_1.keys.findReplaceReplaceWith,
298
- findReplaceReplace: messages_1.keys.findReplaceReplace,
299
- findReplaceReplaceAll: messages_1.keys.findReplaceReplaceAll,
300
- findReplaceMatchCase: messages_1.keys.findReplaceMatchCase,
301
- findReplaceMatchWord: messages_1.keys.findReplaceMatchWord,
302
- findReplaceMatchCyclic: messages_1.keys.findReplaceMatchCyclic,
303
- findReplaceUseRegExp: messages_1.keys.findReplaceUseRegExp,
304
- findReplacePrevMatch: messages_1.keys.findReplacePrevMatch,
305
- findReplaceNextMatch: messages_1.keys.findReplaceNextMatch,
306
- findReplaceMatches: messages_1.keys.findReplaceMatches
307
- }
308
- };
309
- /**
310
- * The object of the Unlink tool settings.
311
- */
312
- EditorToolsSettings.unlink = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'unlink', svgIcon: kendo_svg_icons_1.unlinkIcon }, buttonCommonProps), messages: {
313
- title: messages_1.keys.unlink
314
- }, commandName: 'Unlink' });
315
- /**
316
- * The object of the Undo tool settings.
317
- */
318
- EditorToolsSettings.undo = {
319
- props: __assign({ icon: 'undo', svgIcon: kendo_svg_icons_1.undoIcon }, buttonCommonProps),
320
- messages: {
321
- title: messages_1.keys.undo
322
- },
323
- commandName: 'Undo'
324
- };
325
- /**
326
- * The object of the Redo tool settings.
327
- */
328
- EditorToolsSettings.redo = {
329
- props: __assign({ icon: 'redo', svgIcon: kendo_svg_icons_1.redoIcon }, buttonCommonProps),
330
- messages: {
331
- title: messages_1.keys.redo
332
- },
333
- commandName: 'Redo'
334
- };
335
- /**
336
- * The object of the FontSize tool settings.
337
- */
338
- EditorToolsSettings.fontSize = {
339
- style: 'font-size',
340
- defaultItem: { text: messages_1.messages[messages_1.keys.fontSize], value: '', localizationKey: messages_1.keys.fontSize },
341
- items: [
342
- { text: '1 (8pt)', value: 'xx-small' },
343
- { text: '2 (10pt)', value: 'x-small' },
344
- { text: '3 (12pt)', value: 'small' },
345
- { text: '4 (14pt)', value: 'medium' },
346
- { text: '5 (18pt)', value: 'large' },
347
- { text: '6 (24pt)', value: 'x-large' },
348
- { text: '7 (36pt)', value: 'xx-large' }
349
- ],
350
- commandName: 'FontSize'
351
- };
352
- /**
353
- * The object of the FontName tool settings.
354
- */
355
- EditorToolsSettings.fontName = {
356
- style: 'font-family',
357
- defaultItem: { text: messages_1.messages[messages_1.keys.fontName], value: '', localizationKey: messages_1.keys.fontName },
358
- items: [
359
- { text: 'Arial', value: 'Arial, Helvetica, sans-serif',
360
- style: { fontFamily: 'Arial, Helvetica, sans-serif' } },
361
- { text: 'Courier New', value: '\'Courier New\', Courier, monospace',
362
- style: { fontFamily: '\'Courier New\', Courier, monospace' } },
363
- { text: 'Georgia', value: 'Georgia, serif',
364
- style: { fontFamily: 'Georgia, serif' } },
365
- { text: 'Impact', value: 'Impact, Charcoal, sans-serif',
366
- style: { fontFamily: 'Impact, Charcoal, sans-serif' } },
367
- { text: 'Lucida Console', value: '\'Lucida Console\', Monaco, monospace',
368
- style: { fontFamily: '\'Lucida Console\', Monaco, monospace' } },
369
- { text: 'Tahoma', value: 'Tahoma, Geneva, sans-serif',
370
- style: { fontFamily: 'Tahoma, Geneva, sans-serif' } },
371
- { text: 'Times New Roman', value: '\'Times New Roman\', Times,serif',
372
- style: { fontFamily: '\'Times New Roman\', Times,serif' } },
373
- { text: 'Trebuchet MS', value: '\'Trebuchet MS\', Helvetica, sans-serif',
374
- style: { fontFamily: '\'Trebuchet MS\', Helvetica, sans-serif' } },
375
- { text: 'Verdana', value: 'Verdana, Geneva, sans-serif',
376
- style: { fontFamily: 'Verdana, Geneva, sans-serif' } }
377
- ],
378
- commandName: 'FontName'
379
- };
380
- /**
381
- * The object of the FormatBlock tool settings.
382
- */
383
- EditorToolsSettings.formatBlock = {
384
- defaultItem: { text: messages_1.messages[messages_1.keys.format], value: '', localizationKey: messages_1.keys.format },
385
- items: [
386
- { text: 'Paragraph', value: 'p', style: { display: 'block', marginLeft: 0 } },
387
- { text: 'Heading 1', value: 'h1', style: { display: 'block', fontSize: '2em', marginLeft: 0, fontWeight: 'bold' } },
388
- { text: 'Heading 2', value: 'h2', style: { display: 'block', fontSize: '1.5em', marginLeft: 0, fontWeight: 'bold' } },
389
- { text: 'Heading 3', value: 'h3', style: { display: 'block', fontSize: '1.17em', marginLeft: 0, fontWeight: 'bold' } },
390
- { text: 'Heading 4', value: 'h4', style: { display: 'block', fontSize: '1em', marginLeft: 0, fontWeight: 'bold' } },
391
- { text: 'Heading 5', value: 'h5', style: { display: 'block', fontSize: '0.83em', marginLeft: 0, fontWeight: 'bold' } },
392
- { text: 'Heading 6', value: 'h6', style: { display: 'block', fontSize: '0.67em', marginLeft: 0, fontWeight: 'bold' } }
393
- ],
394
- commandName: 'FormatBlock'
395
- };
396
- /**
397
- * The object of the ForeColor tool settings.
398
- */
399
- EditorToolsSettings.foreColor = {
400
- style: 'color',
401
- colorPickerProps: {
402
- icon: 'foreground-color',
403
- svgIcon: kendo_svg_icons_1.foregroundColorIcon,
404
- view: 'palette',
405
- title: messages_1.keys.foregroundColor,
406
- ariaLabel: messages_1.keys.foreColorLabel
407
- },
408
- commandName: 'ForeColor'
409
- };
410
- /**
411
- * The object of the BackColor tool settings.
412
- */
413
- EditorToolsSettings.backColor = {
414
- style: 'background-color',
415
- colorPickerProps: {
416
- icon: 'droplet',
417
- svgIcon: kendo_svg_icons_1.dropletIcon,
418
- view: 'palette',
419
- title: messages_1.keys.backgroundColor,
420
- ariaLabel: messages_1.keys.backColorLabel
421
- },
422
- commandName: 'BackColor'
423
- };
424
- /**
425
- * The object of the AlignLeft tool settings.
426
- */
427
- EditorToolsSettings.alignLeft = {
428
- actions: __spreadArray([], kendo_editor_common_1.alignLeftRules, true),
429
- props: __assign({ icon: 'align-left', svgIcon: kendo_svg_icons_1.alignLeftIcon }, buttonCommonProps),
430
- messages: {
431
- title: messages_1.keys.alignLeft
432
- },
433
- commandName: 'AlignLeft'
434
- };
435
- /**
436
- * The object of the AlignRight tool settings.
437
- */
438
- EditorToolsSettings.alignRight = {
439
- actions: __spreadArray([], kendo_editor_common_1.alignRightRules, true),
440
- props: __assign({ icon: 'align-right', svgIcon: kendo_svg_icons_1.alignRightIcon }, buttonCommonProps),
441
- messages: {
442
- title: messages_1.keys.alignRight
443
- },
444
- commandName: 'AlignRight'
445
- };
446
- /**
447
- * The object of the AlignCenter tool settings.
448
- */
449
- EditorToolsSettings.alignCenter = {
450
- actions: __spreadArray([], kendo_editor_common_1.alignCenterRules, true),
451
- props: __assign({ icon: 'align-center', svgIcon: kendo_svg_icons_1.alignCenterIcon }, buttonCommonProps),
452
- messages: {
453
- title: messages_1.keys.alignCenter
454
- },
455
- commandName: 'AlignCenter'
456
- };
457
- /**
458
- * The object of the AlignJustify tool settings.
459
- */
460
- EditorToolsSettings.alignJustify = {
461
- actions: __spreadArray([], kendo_editor_common_1.alignJustifyRules, true),
462
- props: __assign({ icon: 'align-justify', svgIcon: kendo_svg_icons_1.alignJustifyIcon }, buttonCommonProps),
463
- messages: {
464
- title: messages_1.keys.alignJustify
465
- },
466
- commandName: 'AlignJustify'
467
- };
468
- /**
469
- * The object of the AlignRemove tool settings.
470
- */
471
- EditorToolsSettings.alignRemove = {
472
- actions: __spreadArray([], kendo_editor_common_1.alignRemoveRules, true),
473
- props: __assign({ icon: 'align-remove', svgIcon: kendo_svg_icons_1.alignRemoveIcon }, buttonCommonProps),
474
- messages: {},
475
- commandName: 'AlignRemove'
476
- };
477
- /**
478
- * The object of the Indent tool settings.
479
- */
480
- EditorToolsSettings.indent = {
481
- actions: kendo_editor_common_1.indentRules.nodes,
482
- listsTypes: exports.listsTypes,
483
- props: __assign({ icon: 'indent', svgIcon: kendo_svg_icons_1.indentIcon }, buttonCommonProps),
484
- messages: {
485
- title: messages_1.keys.indent
486
- },
487
- commandName: 'Indent'
488
- };
489
- /**
490
- * The object of the Outdent tool settings.
491
- */
492
- EditorToolsSettings.outdent = {
493
- actions: kendo_editor_common_1.outdentRules.nodes,
494
- listsTypes: exports.listsTypes,
495
- props: __assign({ icon: 'outdent', svgIcon: kendo_svg_icons_1.outdentIcon }, buttonCommonProps),
496
- messages: {
497
- title: messages_1.keys.outdent
498
- },
499
- commandName: 'Outdent'
500
- };
501
- /**
502
- * The object of the OrderedList tool settings.
503
- */
504
- EditorToolsSettings.orderedList = {
505
- listType: exports.listsTypes.orderedList,
506
- props: __assign({ icon: 'list-ordered', svgIcon: kendo_svg_icons_1.listOrderedIcon }, buttonCommonProps),
507
- messages: {
508
- title: messages_1.keys.orderedList
509
- },
510
- commandName: 'OrderedList',
511
- types: __assign({}, exports.listsTypes)
512
- };
513
- /**
514
- * The object of the UnorderedList tool settings.
515
- */
516
- EditorToolsSettings.bulletList = {
517
- listType: exports.listsTypes.bulletList,
518
- props: __assign({ icon: 'list-unordered', svgIcon: kendo_svg_icons_1.listUnorderedIcon }, buttonCommonProps),
519
- messages: {
520
- title: messages_1.keys.bulletList
521
- },
522
- commandName: 'UnorderedList',
523
- types: __assign({}, exports.listsTypes)
524
- };
525
- })(EditorToolsSettings = exports.EditorToolsSettings || (exports.EditorToolsSettings = {}));
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });