@progress/kendo-vue-editor 3.5.0 → 3.5.1-dev.202208100944

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