@progress/kendo-react-editor 5.10.0-dev.202301092204 → 5.10.0-dev.202301111905
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-editor.js +1 -1
- package/dist/es/config/toolsSettings.js +41 -38
- package/dist/es/dialogs/FindReplace.js +4 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/lists-styled.js +1 -1
- package/dist/es/tools/main.js +11 -10
- package/dist/npm/config/toolsSettings.js +41 -38
- package/dist/npm/dialogs/FindReplace.js +3 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/lists-styled.js +1 -1
- package/dist/npm/tools/main.js +11 -10
- package/dist/systemjs/kendo-react-editor.js +1 -1
- package/package.json +16 -14
|
@@ -22,6 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.EditorToolsSettings = exports.listsTypes = void 0;
|
|
24
24
|
var messages_1 = require("./../messages");
|
|
25
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
25
26
|
var kendo_editor_common_1 = require("@progress/kendo-editor-common");
|
|
26
27
|
/**
|
|
27
28
|
* @hidden
|
|
@@ -41,43 +42,43 @@ var EditorToolsSettings;
|
|
|
41
42
|
/**
|
|
42
43
|
* The object of the Bold tool settings.
|
|
43
44
|
*/
|
|
44
|
-
EditorToolsSettings.bold = __assign(__assign({}, kendo_editor_common_1.bold), { props: __assign({ icon: 'bold' }, buttonCommonProps), messages: {
|
|
45
|
+
EditorToolsSettings.bold = __assign(__assign({}, kendo_editor_common_1.bold), { props: __assign({ icon: 'bold', svgIcon: kendo_svg_icons_1.boldIcon }, buttonCommonProps), messages: {
|
|
45
46
|
title: messages_1.keys.bold
|
|
46
47
|
}, commandName: 'Bold' });
|
|
47
48
|
/**
|
|
48
49
|
* The object of the Italic tool settings.
|
|
49
50
|
*/
|
|
50
|
-
EditorToolsSettings.italic = __assign(__assign({}, kendo_editor_common_1.italic), { props: __assign({ icon: 'italic' }, buttonCommonProps), messages: {
|
|
51
|
+
EditorToolsSettings.italic = __assign(__assign({}, kendo_editor_common_1.italic), { props: __assign({ icon: 'italic', svgIcon: kendo_svg_icons_1.italicIcon }, buttonCommonProps), messages: {
|
|
51
52
|
title: messages_1.keys.italic
|
|
52
53
|
}, commandName: 'Italic' });
|
|
53
54
|
/**
|
|
54
55
|
* The object of the Underline tool settings.
|
|
55
56
|
*/
|
|
56
|
-
EditorToolsSettings.underline = __assign(__assign({}, kendo_editor_common_1.underline), { props: __assign({ icon: 'underline' }, buttonCommonProps), messages: {
|
|
57
|
+
EditorToolsSettings.underline = __assign(__assign({}, kendo_editor_common_1.underline), { props: __assign({ icon: 'underline', svgIcon: kendo_svg_icons_1.underlineIcon }, buttonCommonProps), messages: {
|
|
57
58
|
title: messages_1.keys.underline
|
|
58
59
|
}, commandName: 'Underline' });
|
|
59
60
|
/**
|
|
60
61
|
* The object of the Strikethrough tool settings.
|
|
61
62
|
*/
|
|
62
|
-
EditorToolsSettings.strikethrough = __assign(__assign({}, kendo_editor_common_1.strikethrough), { props: __assign({ icon: 'strikethrough' }, buttonCommonProps), messages: {
|
|
63
|
+
EditorToolsSettings.strikethrough = __assign(__assign({}, kendo_editor_common_1.strikethrough), { props: __assign({ icon: 'strikethrough', svgIcon: kendo_svg_icons_1.strikethroughIcon }, buttonCommonProps), messages: {
|
|
63
64
|
title: messages_1.keys.strikethrough
|
|
64
65
|
}, commandName: 'Strikethrough' });
|
|
65
66
|
/**
|
|
66
67
|
* The object of the Subscript tool settings.
|
|
67
68
|
*/
|
|
68
|
-
EditorToolsSettings.subscript = __assign(__assign({}, kendo_editor_common_1.subscript), { props: __assign({ icon: 'subscript' }, buttonCommonProps), messages: {
|
|
69
|
+
EditorToolsSettings.subscript = __assign(__assign({}, kendo_editor_common_1.subscript), { props: __assign({ icon: 'subscript', svgIcon: kendo_svg_icons_1.subscriptIcon }, buttonCommonProps), messages: {
|
|
69
70
|
title: messages_1.keys.subscript
|
|
70
71
|
}, commandName: 'Subscript' });
|
|
71
72
|
/**
|
|
72
73
|
* The object of the Superscript tool settings.
|
|
73
74
|
*/
|
|
74
|
-
EditorToolsSettings.superscript = __assign(__assign({}, kendo_editor_common_1.superscript), { props: __assign({ icon: '
|
|
75
|
+
EditorToolsSettings.superscript = __assign(__assign({}, kendo_editor_common_1.superscript), { props: __assign({ icon: 'supscript', svgIcon: kendo_svg_icons_1.supscriptIcon }, buttonCommonProps), messages: {
|
|
75
76
|
title: messages_1.keys.superscript
|
|
76
77
|
}, commandName: 'Superscript' });
|
|
77
78
|
/**
|
|
78
79
|
* The object of the Link tool settings.
|
|
79
80
|
*/
|
|
80
|
-
EditorToolsSettings.link = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'link
|
|
81
|
+
EditorToolsSettings.link = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'link', svgIcon: kendo_svg_icons_1.linkIcon }, buttonCommonProps), messages: {
|
|
81
82
|
insertHyperlink: messages_1.keys.insertHyperlink,
|
|
82
83
|
insertHyperlinkDialogTitle: messages_1.keys.insertHyperlinkDialogTitle,
|
|
83
84
|
insertHyperlinkAddress: messages_1.keys.insertHyperlinkAddress,
|
|
@@ -89,7 +90,7 @@ var EditorToolsSettings;
|
|
|
89
90
|
/**
|
|
90
91
|
* The object of the Link tool settings.
|
|
91
92
|
*/
|
|
92
|
-
EditorToolsSettings.insertFile = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'file-add' }, buttonCommonProps), messages: {
|
|
93
|
+
EditorToolsSettings.insertFile = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'file-add', svgIcon: kendo_svg_icons_1.fileAddIcon }, buttonCommonProps), messages: {
|
|
93
94
|
insertHyperlink: messages_1.keys.insertFile,
|
|
94
95
|
insertHyperlinkDialogTitle: messages_1.keys.insertFileDialogTitle,
|
|
95
96
|
insertHyperlinkAddress: messages_1.keys.insertFileAddress,
|
|
@@ -102,7 +103,7 @@ var EditorToolsSettings;
|
|
|
102
103
|
* The object of the InsertTable tool settings.
|
|
103
104
|
*/
|
|
104
105
|
EditorToolsSettings.insertTable = {
|
|
105
|
-
props: __assign({ icon: 'table-
|
|
106
|
+
props: __assign({ icon: 'table-add', svgIcon: kendo_svg_icons_1.tableAddIcon }, buttonCommonProps),
|
|
106
107
|
messages: {
|
|
107
108
|
createTable: messages_1.keys.createTable,
|
|
108
109
|
createTableHint: messages_1.keys.createTableHint
|
|
@@ -113,7 +114,7 @@ var EditorToolsSettings;
|
|
|
113
114
|
* The object of the AddRowBefore tool settings.
|
|
114
115
|
*/
|
|
115
116
|
EditorToolsSettings.addRowBefore = {
|
|
116
|
-
props: __assign({ icon: 'table-row-insert-above' }, buttonCommonProps),
|
|
117
|
+
props: __assign({ icon: 'table-row-insert-above', svgIcon: kendo_svg_icons_1.tableRowInsertAboveIcon }, buttonCommonProps),
|
|
117
118
|
messages: {
|
|
118
119
|
title: messages_1.keys.addRowBefore
|
|
119
120
|
},
|
|
@@ -123,7 +124,7 @@ var EditorToolsSettings;
|
|
|
123
124
|
* The object of the AddRowAfter tool settings.
|
|
124
125
|
*/
|
|
125
126
|
EditorToolsSettings.addRowAfter = {
|
|
126
|
-
props: __assign({ icon: 'table-row-insert-below' }, buttonCommonProps),
|
|
127
|
+
props: __assign({ icon: 'table-row-insert-below', svgIcon: kendo_svg_icons_1.tableRowInsertBelowIcon }, buttonCommonProps),
|
|
127
128
|
messages: {
|
|
128
129
|
title: messages_1.keys.addRowAfter
|
|
129
130
|
},
|
|
@@ -133,7 +134,7 @@ var EditorToolsSettings;
|
|
|
133
134
|
* The object of the AddColumnBefore tool settings.
|
|
134
135
|
*/
|
|
135
136
|
EditorToolsSettings.addColumnBefore = {
|
|
136
|
-
props: __assign({ icon: 'table-column-insert-left' }, buttonCommonProps),
|
|
137
|
+
props: __assign({ icon: 'table-column-insert-left', svgIcon: kendo_svg_icons_1.tableColumnInsertLeftIcon }, buttonCommonProps),
|
|
137
138
|
messages: {
|
|
138
139
|
title: messages_1.keys.addColumnBefore
|
|
139
140
|
},
|
|
@@ -143,7 +144,7 @@ var EditorToolsSettings;
|
|
|
143
144
|
* The object of the AddColumnAfter tool settings.
|
|
144
145
|
*/
|
|
145
146
|
EditorToolsSettings.addColumnAfter = {
|
|
146
|
-
props: __assign({ icon: 'table-column-insert-right' }, buttonCommonProps),
|
|
147
|
+
props: __assign({ icon: 'table-column-insert-right', svgIcon: kendo_svg_icons_1.tableColumnInsertRightIcon }, buttonCommonProps),
|
|
147
148
|
messages: {
|
|
148
149
|
title: messages_1.keys.addColumnAfter
|
|
149
150
|
},
|
|
@@ -153,7 +154,7 @@ var EditorToolsSettings;
|
|
|
153
154
|
* The object of the DeleteRow tool settings.
|
|
154
155
|
*/
|
|
155
156
|
EditorToolsSettings.deleteRow = {
|
|
156
|
-
props: __assign({ icon: 'table-row-delete' }, buttonCommonProps),
|
|
157
|
+
props: __assign({ icon: 'table-row-delete', svgIcon: kendo_svg_icons_1.tableRowDeleteIcon }, buttonCommonProps),
|
|
157
158
|
messages: {
|
|
158
159
|
title: messages_1.keys.deleteRow
|
|
159
160
|
},
|
|
@@ -163,7 +164,7 @@ var EditorToolsSettings;
|
|
|
163
164
|
* The object of the DeleteColumn tool settings.
|
|
164
165
|
*/
|
|
165
166
|
EditorToolsSettings.deleteColumn = {
|
|
166
|
-
props: __assign({ icon: 'table-column-delete' }, buttonCommonProps),
|
|
167
|
+
props: __assign({ icon: 'table-column-delete', svgIcon: kendo_svg_icons_1.tableColumnDeleteIcon }, buttonCommonProps),
|
|
167
168
|
messages: {
|
|
168
169
|
title: messages_1.keys.deleteColumn
|
|
169
170
|
},
|
|
@@ -173,7 +174,7 @@ var EditorToolsSettings;
|
|
|
173
174
|
* The object of the DeleteTable tool settings.
|
|
174
175
|
*/
|
|
175
176
|
EditorToolsSettings.deleteTable = {
|
|
176
|
-
props: __assign({ icon: 'table-delete' }, buttonCommonProps),
|
|
177
|
+
props: __assign({ icon: 'table-delete', svgIcon: kendo_svg_icons_1.tableDeleteIcon }, buttonCommonProps),
|
|
177
178
|
messages: {
|
|
178
179
|
title: messages_1.keys.deleteTable
|
|
179
180
|
},
|
|
@@ -183,7 +184,7 @@ var EditorToolsSettings;
|
|
|
183
184
|
* The object of the MergeCells tool settings.
|
|
184
185
|
*/
|
|
185
186
|
EditorToolsSettings.mergeCells = {
|
|
186
|
-
props: __assign({ icon: 'cells-merge' }, buttonCommonProps),
|
|
187
|
+
props: __assign({ icon: 'cells-merge', svgIcon: kendo_svg_icons_1.cellsMergeIcon }, buttonCommonProps),
|
|
187
188
|
messages: {
|
|
188
189
|
title: messages_1.keys.mergeCells
|
|
189
190
|
},
|
|
@@ -193,7 +194,7 @@ var EditorToolsSettings;
|
|
|
193
194
|
* The object of the SplitCell tool settings.
|
|
194
195
|
*/
|
|
195
196
|
EditorToolsSettings.splitCell = {
|
|
196
|
-
props: __assign({ icon: 'cell-split-horizontally' }, buttonCommonProps),
|
|
197
|
+
props: __assign({ icon: 'cell-split-horizontally', svgIcon: kendo_svg_icons_1.cellSplitHorizontallyIcon }, buttonCommonProps),
|
|
197
198
|
messages: {
|
|
198
199
|
title: messages_1.keys.splitCell
|
|
199
200
|
},
|
|
@@ -203,7 +204,7 @@ var EditorToolsSettings;
|
|
|
203
204
|
* The object of the Print tool settings.
|
|
204
205
|
*/
|
|
205
206
|
EditorToolsSettings.print = {
|
|
206
|
-
props: __assign({ icon: 'print' }, buttonCommonProps),
|
|
207
|
+
props: __assign({ icon: 'print', svgIcon: kendo_svg_icons_1.printIcon }, buttonCommonProps),
|
|
207
208
|
messages: {
|
|
208
209
|
title: messages_1.keys.print
|
|
209
210
|
}
|
|
@@ -212,7 +213,7 @@ var EditorToolsSettings;
|
|
|
212
213
|
* The object of the Print tool settings.
|
|
213
214
|
*/
|
|
214
215
|
EditorToolsSettings.selectAll = {
|
|
215
|
-
props: __assign({ icon: 'select-all' }, buttonCommonProps),
|
|
216
|
+
props: __assign({ icon: 'select-all', svgIcon: kendo_svg_icons_1.selectAllIcon }, buttonCommonProps),
|
|
216
217
|
messages: {
|
|
217
218
|
title: messages_1.keys.selectAll
|
|
218
219
|
}
|
|
@@ -221,7 +222,7 @@ var EditorToolsSettings;
|
|
|
221
222
|
* The object of the Print tool settings.
|
|
222
223
|
*/
|
|
223
224
|
EditorToolsSettings.pdf = {
|
|
224
|
-
props: __assign({ icon: 'pdf' }, buttonCommonProps),
|
|
225
|
+
props: __assign({ icon: 'file-pdf', svgIcon: kendo_svg_icons_1.filePdfIcon }, buttonCommonProps),
|
|
225
226
|
messages: {
|
|
226
227
|
title: messages_1.keys.pdf
|
|
227
228
|
}
|
|
@@ -244,7 +245,7 @@ var EditorToolsSettings;
|
|
|
244
245
|
* The object of the CleanFormatting tool settings.
|
|
245
246
|
*/
|
|
246
247
|
EditorToolsSettings.cleanFormatting = {
|
|
247
|
-
props: __assign({ icon: 'clear-css' }, buttonCommonProps),
|
|
248
|
+
props: __assign({ icon: 'clear-css', svgIcon: kendo_svg_icons_1.clearCssIcon }, buttonCommonProps),
|
|
248
249
|
messages: {
|
|
249
250
|
title: messages_1.keys.cleanFormatting
|
|
250
251
|
},
|
|
@@ -255,7 +256,7 @@ var EditorToolsSettings;
|
|
|
255
256
|
*/
|
|
256
257
|
EditorToolsSettings.image = {
|
|
257
258
|
node: 'image',
|
|
258
|
-
props: __assign({ icon: 'image' }, buttonCommonProps),
|
|
259
|
+
props: __assign({ icon: 'image', svgIcon: kendo_svg_icons_1.imageIcon }, buttonCommonProps),
|
|
259
260
|
messages: {
|
|
260
261
|
insertImage: messages_1.keys.insertImage,
|
|
261
262
|
insertImageDialogTitle: messages_1.keys.insertImageDialogTitle,
|
|
@@ -273,7 +274,7 @@ var EditorToolsSettings;
|
|
|
273
274
|
* The object of the ViewHtml tool settings.
|
|
274
275
|
*/
|
|
275
276
|
EditorToolsSettings.viewHtml = {
|
|
276
|
-
props: __assign({ icon: '
|
|
277
|
+
props: __assign({ icon: 'code', svgIcon: kendo_svg_icons_1.codeIcon }, buttonCommonProps),
|
|
277
278
|
messages: {
|
|
278
279
|
viewHtml: messages_1.keys.viewHtml,
|
|
279
280
|
viewHtmlDialogTitle: messages_1.keys.viewHtmlDialogTitle,
|
|
@@ -286,7 +287,7 @@ var EditorToolsSettings;
|
|
|
286
287
|
* The object of the Find and Replace tool settings.
|
|
287
288
|
*/
|
|
288
289
|
EditorToolsSettings.findAndReplace = {
|
|
289
|
-
props: __assign({ icon: 'find' }, buttonCommonProps),
|
|
290
|
+
props: __assign({ icon: 'find', svgIcon: kendo_svg_icons_1.searchIcon }, buttonCommonProps),
|
|
290
291
|
messages: {
|
|
291
292
|
findReplaceToolTitle: messages_1.keys.findReplaceToolTitle,
|
|
292
293
|
findReplaceDialogTitle: messages_1.keys.findReplaceDialogTitle,
|
|
@@ -308,14 +309,14 @@ var EditorToolsSettings;
|
|
|
308
309
|
/**
|
|
309
310
|
* The object of the Unlink tool settings.
|
|
310
311
|
*/
|
|
311
|
-
EditorToolsSettings.unlink = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'unlink
|
|
312
|
+
EditorToolsSettings.unlink = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'unlink', svgIcon: kendo_svg_icons_1.unlinkIcon }, buttonCommonProps), messages: {
|
|
312
313
|
title: messages_1.keys.unlink
|
|
313
314
|
}, commandName: 'Unlink' });
|
|
314
315
|
/**
|
|
315
316
|
* The object of the Undo tool settings.
|
|
316
317
|
*/
|
|
317
318
|
EditorToolsSettings.undo = {
|
|
318
|
-
props: __assign({ icon: 'undo' }, buttonCommonProps),
|
|
319
|
+
props: __assign({ icon: 'undo', svgIcon: kendo_svg_icons_1.undoIcon }, buttonCommonProps),
|
|
319
320
|
messages: {
|
|
320
321
|
title: messages_1.keys.undo
|
|
321
322
|
},
|
|
@@ -325,7 +326,7 @@ var EditorToolsSettings;
|
|
|
325
326
|
* The object of the Redo tool settings.
|
|
326
327
|
*/
|
|
327
328
|
EditorToolsSettings.redo = {
|
|
328
|
-
props: __assign({ icon: 'redo' }, buttonCommonProps),
|
|
329
|
+
props: __assign({ icon: 'redo', svgIcon: kendo_svg_icons_1.redoIcon }, buttonCommonProps),
|
|
329
330
|
messages: {
|
|
330
331
|
title: messages_1.keys.redo
|
|
331
332
|
},
|
|
@@ -399,6 +400,7 @@ var EditorToolsSettings;
|
|
|
399
400
|
style: 'color',
|
|
400
401
|
colorPickerProps: {
|
|
401
402
|
icon: 'foreground-color',
|
|
403
|
+
svgIcon: kendo_svg_icons_1.foregroundColorIcon,
|
|
402
404
|
view: 'palette',
|
|
403
405
|
title: messages_1.keys.foregroundColor
|
|
404
406
|
},
|
|
@@ -410,7 +412,8 @@ var EditorToolsSettings;
|
|
|
410
412
|
EditorToolsSettings.backColor = {
|
|
411
413
|
style: 'background-color',
|
|
412
414
|
colorPickerProps: {
|
|
413
|
-
icon: '
|
|
415
|
+
icon: 'droplet',
|
|
416
|
+
svgIcon: kendo_svg_icons_1.dropletIcon,
|
|
414
417
|
view: 'palette',
|
|
415
418
|
title: messages_1.keys.backgroundColor
|
|
416
419
|
},
|
|
@@ -421,7 +424,7 @@ var EditorToolsSettings;
|
|
|
421
424
|
*/
|
|
422
425
|
EditorToolsSettings.alignLeft = {
|
|
423
426
|
actions: __spreadArray([], kendo_editor_common_1.alignLeftRules, true),
|
|
424
|
-
props: __assign({ icon: 'align-left' }, buttonCommonProps),
|
|
427
|
+
props: __assign({ icon: 'align-left', svgIcon: kendo_svg_icons_1.alignLeftIcon }, buttonCommonProps),
|
|
425
428
|
messages: {
|
|
426
429
|
title: messages_1.keys.alignLeft
|
|
427
430
|
},
|
|
@@ -432,7 +435,7 @@ var EditorToolsSettings;
|
|
|
432
435
|
*/
|
|
433
436
|
EditorToolsSettings.alignRight = {
|
|
434
437
|
actions: __spreadArray([], kendo_editor_common_1.alignRightRules, true),
|
|
435
|
-
props: __assign({ icon: 'align-right' }, buttonCommonProps),
|
|
438
|
+
props: __assign({ icon: 'align-right', svgIcon: kendo_svg_icons_1.alignRightIcon }, buttonCommonProps),
|
|
436
439
|
messages: {
|
|
437
440
|
title: messages_1.keys.alignRight
|
|
438
441
|
},
|
|
@@ -443,7 +446,7 @@ var EditorToolsSettings;
|
|
|
443
446
|
*/
|
|
444
447
|
EditorToolsSettings.alignCenter = {
|
|
445
448
|
actions: __spreadArray([], kendo_editor_common_1.alignCenterRules, true),
|
|
446
|
-
props: __assign({ icon: 'align-center' }, buttonCommonProps),
|
|
449
|
+
props: __assign({ icon: 'align-center', svgIcon: kendo_svg_icons_1.alignCenterIcon }, buttonCommonProps),
|
|
447
450
|
messages: {
|
|
448
451
|
title: messages_1.keys.alignCenter
|
|
449
452
|
},
|
|
@@ -454,7 +457,7 @@ var EditorToolsSettings;
|
|
|
454
457
|
*/
|
|
455
458
|
EditorToolsSettings.alignJustify = {
|
|
456
459
|
actions: __spreadArray([], kendo_editor_common_1.alignJustifyRules, true),
|
|
457
|
-
props: __assign({ icon: 'align-justify' }, buttonCommonProps),
|
|
460
|
+
props: __assign({ icon: 'align-justify', svgIcon: kendo_svg_icons_1.alignJustifyIcon }, buttonCommonProps),
|
|
458
461
|
messages: {
|
|
459
462
|
title: messages_1.keys.alignJustify
|
|
460
463
|
},
|
|
@@ -465,7 +468,7 @@ var EditorToolsSettings;
|
|
|
465
468
|
*/
|
|
466
469
|
EditorToolsSettings.alignRemove = {
|
|
467
470
|
actions: __spreadArray([], kendo_editor_common_1.alignRemoveRules, true),
|
|
468
|
-
props: __assign({ icon: 'align-remove' }, buttonCommonProps),
|
|
471
|
+
props: __assign({ icon: 'align-remove', svgIcon: kendo_svg_icons_1.alignRemoveIcon }, buttonCommonProps),
|
|
469
472
|
messages: {},
|
|
470
473
|
commandName: 'AlignRemove'
|
|
471
474
|
};
|
|
@@ -475,7 +478,7 @@ var EditorToolsSettings;
|
|
|
475
478
|
EditorToolsSettings.indent = {
|
|
476
479
|
actions: kendo_editor_common_1.indentRules.nodes,
|
|
477
480
|
listsTypes: exports.listsTypes,
|
|
478
|
-
props: __assign({ icon: 'indent
|
|
481
|
+
props: __assign({ icon: 'indent', svgIcon: kendo_svg_icons_1.indentIcon }, buttonCommonProps),
|
|
479
482
|
messages: {
|
|
480
483
|
title: messages_1.keys.indent
|
|
481
484
|
},
|
|
@@ -487,7 +490,7 @@ var EditorToolsSettings;
|
|
|
487
490
|
EditorToolsSettings.outdent = {
|
|
488
491
|
actions: kendo_editor_common_1.outdentRules.nodes,
|
|
489
492
|
listsTypes: exports.listsTypes,
|
|
490
|
-
props: __assign({ icon: '
|
|
493
|
+
props: __assign({ icon: 'outdent', svgIcon: kendo_svg_icons_1.outdentIcon }, buttonCommonProps),
|
|
491
494
|
messages: {
|
|
492
495
|
title: messages_1.keys.outdent
|
|
493
496
|
},
|
|
@@ -498,7 +501,7 @@ var EditorToolsSettings;
|
|
|
498
501
|
*/
|
|
499
502
|
EditorToolsSettings.orderedList = {
|
|
500
503
|
listType: exports.listsTypes.orderedList,
|
|
501
|
-
props: __assign({ icon: 'list-ordered' }, buttonCommonProps),
|
|
504
|
+
props: __assign({ icon: 'list-ordered', svgIcon: kendo_svg_icons_1.listOrderedIcon }, buttonCommonProps),
|
|
502
505
|
messages: {
|
|
503
506
|
title: messages_1.keys.orderedList
|
|
504
507
|
},
|
|
@@ -510,7 +513,7 @@ var EditorToolsSettings;
|
|
|
510
513
|
*/
|
|
511
514
|
EditorToolsSettings.bulletList = {
|
|
512
515
|
listType: exports.listsTypes.bulletList,
|
|
513
|
-
props: __assign({ icon: 'list-unordered' }, buttonCommonProps),
|
|
516
|
+
props: __assign({ icon: 'list-unordered', svgIcon: kendo_svg_icons_1.listUnorderedIcon }, buttonCommonProps),
|
|
514
517
|
messages: {
|
|
515
518
|
title: messages_1.keys.bulletList
|
|
516
519
|
},
|
|
@@ -39,6 +39,7 @@ var kendo_editor_common_1 = require("@progress/kendo-editor-common");
|
|
|
39
39
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
40
40
|
var kendo_react_inputs_1 = require("@progress/kendo-react-inputs");
|
|
41
41
|
var kendo_react_form_1 = require("@progress/kendo-react-form");
|
|
42
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
42
43
|
var enter = 13, esc = 27;
|
|
43
44
|
var settings = toolsSettings_1.EditorToolsSettings.findAndReplace;
|
|
44
45
|
/**
|
|
@@ -213,12 +214,12 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
|
|
|
213
214
|
React.createElement("label", { htmlFor: "regular-expression", className: "k-checkbox-label" }, localization.toLanguageString(findReplaceUseRegExp, messages_1.messages[findReplaceUseRegExp])))));
|
|
214
215
|
var navigation = (React.createElement("div", { className: "k-matches-container" },
|
|
215
216
|
React.createElement(kendo_react_buttons_1.Button, { fillMode: 'flat', themeColor: 'primary', onClick: this.onFindPrev },
|
|
216
|
-
React.createElement(kendo_react_common_1.
|
|
217
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: "chevron-left", icon: kendo_svg_icons_1.chevronLeftIcon }),
|
|
217
218
|
localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])),
|
|
218
219
|
React.createElement("span", null, this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))),
|
|
219
220
|
React.createElement(kendo_react_buttons_1.Button, { fillMode: 'flat', themeColor: 'primary', onClick: this.onFindNext },
|
|
220
221
|
localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]),
|
|
221
|
-
React.createElement(kendo_react_common_1.
|
|
222
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: "chevron-right", icon: kendo_svg_icons_1.chevronRightIcon }))));
|
|
222
223
|
var findWhat = (React.createElement(kendo_react_form_1.Form, { render: function () { return (React.createElement(kendo_react_form_1.FormElement, { horizontal: true },
|
|
223
224
|
React.createElement(kendo_react_form_1.FieldWrapper, null,
|
|
224
225
|
React.createElement("label", { htmlFor: "findWhat", className: 'k-form-label' }, localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])),
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-editor',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673462656,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -79,6 +79,6 @@ var ListTool = function (props) {
|
|
|
79
79
|
items = items.map(function (item, index) { return (__assign(__assign({}, item), { selected: listStyleType_1 ? item.style === listStyleType_1 : index === 0 })); });
|
|
80
80
|
}
|
|
81
81
|
return (React.createElement("span", { onMouseDown: function (e) { e.preventDefault(); } },
|
|
82
|
-
React.createElement(kendo_react_buttons_1.SplitButton, { textField: "text", items: items, icon: props.icon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined, title: props.title !== undefined ? props.title : localization.toLanguageString(props.titleKey, messages_1.messages[props.titleKey]) })));
|
|
82
|
+
React.createElement(kendo_react_buttons_1.SplitButton, { textField: "text", items: items, icon: props.icon, svgIcon: props.svgIcon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined, title: props.title !== undefined ? props.title : localization.toLanguageString(props.titleKey, messages_1.messages[props.titleKey]) })));
|
|
83
83
|
};
|
|
84
84
|
exports.ListTool = ListTool;
|
package/dist/npm/tools/main.js
CHANGED
|
@@ -50,6 +50,7 @@ var selectAll_1 = require("./selectAll");
|
|
|
50
50
|
var cleanFormatting_1 = require("./cleanFormatting");
|
|
51
51
|
var findReplace_1 = require("./findReplace");
|
|
52
52
|
var lists_styled_1 = require("./lists-styled");
|
|
53
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
53
54
|
/**
|
|
54
55
|
* Represents a wrapping namespace for the tool components, props, and functions of the Editor.
|
|
55
56
|
*/
|
|
@@ -416,11 +417,11 @@ var EditorTools;
|
|
|
416
417
|
*/
|
|
417
418
|
EditorTools.BulletedList = function (props) {
|
|
418
419
|
var ulItems = [
|
|
419
|
-
{ icon: 'list-unordered', text: 'Disc', style: 'disc' },
|
|
420
|
-
{ icon: 'list-unordered-outline', text: 'Circle', style: 'circle' },
|
|
421
|
-
{ icon: 'list-unordered-square', text: 'Square', style: 'square' }
|
|
420
|
+
{ icon: 'list-unordered', svgIcon: kendo_svg_icons_1.listUnorderedIcon, text: 'Disc', style: 'disc' },
|
|
421
|
+
{ icon: 'list-unordered-outline', svgIcon: kendo_svg_icons_1.listUnorderedOutlineIcon, text: 'Circle', style: 'circle' },
|
|
422
|
+
{ icon: 'list-unordered-square', svgIcon: kendo_svg_icons_1.listUnorderedSquareIcon, text: 'Square', style: 'square' }
|
|
422
423
|
];
|
|
423
|
-
return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered", titleKey: toolsSettings_1.EditorToolsSettings.bulletList.messages.title }, props)));
|
|
424
|
+
return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered", svgIcon: kendo_svg_icons_1.listUnorderedIcon, titleKey: toolsSettings_1.EditorToolsSettings.bulletList.messages.title }, props)));
|
|
424
425
|
};
|
|
425
426
|
/**
|
|
426
427
|
* The NumberedList tool component.
|
|
@@ -428,14 +429,14 @@ var EditorTools;
|
|
|
428
429
|
*/
|
|
429
430
|
EditorTools.NumberedList = function (props) {
|
|
430
431
|
var olItems = [
|
|
431
|
-
{ icon: 'list-ordered', text: 'Decimal' },
|
|
432
|
+
{ icon: 'list-ordered', svgIcon: kendo_svg_icons_1.listOrderedIcon, text: 'Decimal' },
|
|
432
433
|
// { icon: 'list-leading-zero', text: 'Decimal with leading zero', styleType: 'decimal-leading-zero' },
|
|
433
|
-
{ icon: 'list-roman-upper', text: 'Upper roman', style: 'upper-roman' },
|
|
434
|
-
{ icon: 'list-roman-lower', text: 'Lower roman', style: 'lower-roman' },
|
|
435
|
-
{ icon: 'list-latin-big', text: 'Upper latin', style: 'upper-latin' },
|
|
436
|
-
{ icon: 'list-latin-small', text: 'Lower latin', style: 'lower-latin' }
|
|
434
|
+
{ icon: 'list-roman-upper', svgIcon: kendo_svg_icons_1.listRomanUpperIcon, text: 'Upper roman', style: 'upper-roman' },
|
|
435
|
+
{ icon: 'list-roman-lower', svgIcon: kendo_svg_icons_1.listRomanLowerIcon, text: 'Lower roman', style: 'lower-roman' },
|
|
436
|
+
{ icon: 'list-latin-big', svgIcon: kendo_svg_icons_1.listLatinBigIcon, text: 'Upper latin', style: 'upper-latin' },
|
|
437
|
+
{ icon: 'list-latin-small', svgIcon: kendo_svg_icons_1.listLatinSmallIcon, text: 'Lower latin', style: 'lower-latin' }
|
|
437
438
|
];
|
|
438
|
-
return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered", titleKey: toolsSettings_1.EditorToolsSettings.orderedList.messages.title }, props)));
|
|
439
|
+
return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered", svgIcon: kendo_svg_icons_1.listOrderedIcon, titleKey: toolsSettings_1.EditorToolsSettings.orderedList.messages.title }, props)));
|
|
439
440
|
};
|
|
440
441
|
/**
|
|
441
442
|
* Creates the Outdent tool component of the Editor.
|