@progress/kendo-react-editor 13.3.0 → 13.4.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor.d.ts +125 -0
- package/Editor.js +1 -1
- package/Editor.mjs +77 -77
- package/EditorProps.d.ts +406 -0
- package/config/defaultStyles.d.ts +19 -0
- package/config/pasteSettings.d.ts +13 -0
- package/config/schema.d.ts +8 -0
- package/config/shortcuts.d.ts +31 -0
- package/config/shortcuts.mjs +7 -7
- package/config/toolsSettings.d.ts +496 -0
- package/dialogs/EditorDialogProps.d.ts +33 -0
- package/dialogs/FindReplace.d.ts +79 -0
- package/dialogs/FindReplace.mjs +3 -3
- package/dialogs/index.d.ts +56 -0
- package/dialogs/insertImage.d.ts +35 -0
- package/dialogs/insertImage.mjs +3 -3
- package/dialogs/insertLink.d.ts +33 -0
- package/dialogs/insertLink.mjs +3 -3
- package/dialogs/viewHtml.d.ts +32 -0
- package/dialogs/viewHtml.mjs +3 -3
- package/dist/cdn/js/kendo-react-editor.js +1 -1
- package/index.d.mts +176 -3134
- package/index.d.ts +176 -3134
- package/index.mjs +139 -139
- package/messages/index.d.ts +359 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +12 -12
- package/tools/ToolProps.d.ts +41 -0
- package/tools/align.d.ts +14 -0
- package/tools/applyColor.d.ts +19 -0
- package/tools/cleanFormatting.d.ts +23 -0
- package/tools/findReplace.d.ts +36 -0
- package/tools/findReplace.mjs +3 -3
- package/tools/fontStyle.d.ts +35 -0
- package/tools/fontStyle.mjs +3 -3
- package/tools/formatBlock.d.ts +25 -0
- package/tools/formatBlock.mjs +3 -3
- package/tools/history.d.ts +33 -0
- package/tools/indent.d.ts +24 -0
- package/tools/index.d.ts +717 -0
- package/tools/index.mjs +1 -1
- package/tools/inlineFormat.d.ts +54 -0
- package/tools/inlineFormat.mjs +3 -3
- package/tools/insertImage.d.ts +20 -0
- package/tools/insertLink.d.ts +31 -0
- package/tools/insertTable/index.d.ts +10 -0
- package/tools/insertTable/popup.d.ts +100 -0
- package/tools/insertTable/popupGrid.d.ts +38 -0
- package/tools/insertTable/tool.d.ts +31 -0
- package/tools/lists-styled.d.ts +12 -0
- package/tools/lists.d.ts +34 -0
- package/tools/outdent.d.ts +24 -0
- package/tools/pdf.d.ts +32 -0
- package/tools/print.d.ts +23 -0
- package/tools/proseMirrorTool.d.ts +19 -0
- package/tools/selectAll.d.ts +23 -0
- package/tools/table-wizard/cellPropsUtils.d.ts +43 -0
- package/tools/table-wizard/cellPropsUtils.mjs +5 -5
- package/tools/table-wizard/tableCellProperties.d.ts +27 -0
- package/tools/table-wizard/tableProperties.d.ts +18 -0
- package/tools/table-wizard/tableProperties.mjs +13 -13
- package/tools/table-wizard/tablePropsUtils.d.ts +59 -0
- package/tools/table-wizard/tablePropsUtils.mjs +9 -9
- package/tools/table-wizard/utils.d.ts +46 -0
- package/tools/tableEdit.d.ts +105 -0
- package/tools/tableEdit.mjs +3 -3
- package/tools/unlink.d.ts +24 -0
- package/tools/utils.d.ts +57 -0
- package/tools/utils.mjs +1 -1
- package/tools/viewHtml.d.ts +31 -0
- package/utils/browser-detection.d.ts +11 -0
- package/utils/controlled-value.d.ts +12 -0
- package/utils/index.d.ts +370 -0
- package/utils/props-key.d.ts +12 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
import { ColorPickerProps } from '@progress/kendo-react-inputs';
|
|
10
|
+
import { PDFExportProps } from '@progress/kendo-react-pdf';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const listsTypes: {
|
|
15
|
+
orderedList: string;
|
|
16
|
+
bulletList: string;
|
|
17
|
+
listItem: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Represents a wrapping namespace for the tool settings of the Editor.
|
|
21
|
+
*/
|
|
22
|
+
export declare namespace EditorToolsSettings {
|
|
23
|
+
/**
|
|
24
|
+
* The type of the Editor command.
|
|
25
|
+
*/
|
|
26
|
+
type Command = 'Bold' | 'Italic' | 'Underline' | 'Strikethrough' | 'Subscript' | 'Superscript' | 'Undo' | 'Redo' | 'Link' | 'Unlink' | 'InsertImage' | 'InsertFile' | 'AlignLeft' | 'AlignCenter' | 'AlignRight' | 'AlignJustify' | 'AlignRemove' | 'OrderedList' | 'UnorderedList' | 'Indent' | 'Outdent' | 'SetContent' | 'FontSize' | 'FontName' | 'ForeColor' | 'BackColor' | 'FormatBlock' | 'InsertTable' | 'AddRowBefore' | 'AddRowAfter' | 'AddColumnBefore' | 'AddColumnAfter' | 'DeleteRow' | 'DeleteColumn' | 'DeleteTable' | 'MergeCells' | 'SplitCell' | 'CleanFormatting' | 'Custom';
|
|
27
|
+
/**
|
|
28
|
+
* The settings of the toolbar tools.
|
|
29
|
+
*/
|
|
30
|
+
interface ToolSettings {
|
|
31
|
+
/**
|
|
32
|
+
* The props which will be added to the Button component of the tool.
|
|
33
|
+
*/
|
|
34
|
+
props: ButtonProps;
|
|
35
|
+
/**
|
|
36
|
+
* The keys of the messages that are used by the tool.
|
|
37
|
+
*/
|
|
38
|
+
messages: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* The name of the command that is used by the tool.
|
|
43
|
+
*/
|
|
44
|
+
commandName?: Command;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The `AlignAction` object.
|
|
48
|
+
*/
|
|
49
|
+
interface AlignAction {
|
|
50
|
+
/**
|
|
51
|
+
* The name of the target node.
|
|
52
|
+
*/
|
|
53
|
+
node: string;
|
|
54
|
+
/**
|
|
55
|
+
* The styles that will be applied to the target node.
|
|
56
|
+
*/
|
|
57
|
+
style: Array<{
|
|
58
|
+
name: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The settings of the Align tool.
|
|
64
|
+
*/
|
|
65
|
+
interface AlignSettings extends ToolSettings {
|
|
66
|
+
/**
|
|
67
|
+
* A collection of `AlignAction` objects which defines the behavior of the Align tool.
|
|
68
|
+
*/
|
|
69
|
+
actions: Array<AlignAction>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The settings of the Style tool which is presented by a DropDownList component.
|
|
73
|
+
*/
|
|
74
|
+
interface StyleDropDownListSettings {
|
|
75
|
+
/**
|
|
76
|
+
* The name of the style which will be added or removed by the Style tool.
|
|
77
|
+
*/
|
|
78
|
+
style: string;
|
|
79
|
+
/**
|
|
80
|
+
* The default item of the Style tool.
|
|
81
|
+
*/
|
|
82
|
+
defaultItem?: {
|
|
83
|
+
text: string;
|
|
84
|
+
value: string;
|
|
85
|
+
localizationKey?: string;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The data items of the Style tool.
|
|
89
|
+
*/
|
|
90
|
+
items: Array<{
|
|
91
|
+
text: string;
|
|
92
|
+
value: string;
|
|
93
|
+
style?: React.CSSProperties;
|
|
94
|
+
}>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the command that is used by the Style tool.
|
|
97
|
+
*/
|
|
98
|
+
commandName?: Command;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The settings of the FormatBlock tool which is presented by a DropDownList.
|
|
102
|
+
*/
|
|
103
|
+
interface FormatBlockDropDownListSettings {
|
|
104
|
+
/**
|
|
105
|
+
* The default item of the FormatBlock tool.
|
|
106
|
+
*/
|
|
107
|
+
defaultItem: {
|
|
108
|
+
text: string;
|
|
109
|
+
value: string;
|
|
110
|
+
localizationKey?: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* The data items of the FormatBlock tool.
|
|
114
|
+
*/
|
|
115
|
+
items: Array<{
|
|
116
|
+
text: string;
|
|
117
|
+
value: string;
|
|
118
|
+
style?: React.CSSProperties;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* The name of the command that is used by the FormatBlock tool.
|
|
122
|
+
*/
|
|
123
|
+
commandName?: Command;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The inline-formatting options.
|
|
127
|
+
*/
|
|
128
|
+
interface InlineFormatOptions {
|
|
129
|
+
/**
|
|
130
|
+
* The mark which will be applied or stripped.
|
|
131
|
+
*/
|
|
132
|
+
mark: string;
|
|
133
|
+
/**
|
|
134
|
+
* The additional marks which will be stripped.
|
|
135
|
+
*/
|
|
136
|
+
altMarks?: Array<string>;
|
|
137
|
+
/**
|
|
138
|
+
* An object which holds the style that will be stripped by the tool.
|
|
139
|
+
*/
|
|
140
|
+
altStyle?: {
|
|
141
|
+
/**
|
|
142
|
+
* The name of the style.
|
|
143
|
+
*/
|
|
144
|
+
name: string;
|
|
145
|
+
/**
|
|
146
|
+
* The regular expression which will be matched with the value of the style.
|
|
147
|
+
*/
|
|
148
|
+
value: RegExp;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The settings of the tool which applies inline formatting.
|
|
153
|
+
*/
|
|
154
|
+
interface InlineFormatSettings extends ToolSettings, InlineFormatOptions {
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* The settings of the ForeColor and BackColor tools.
|
|
158
|
+
*/
|
|
159
|
+
interface ApplyColorSettings {
|
|
160
|
+
/**
|
|
161
|
+
* The applied style by the tool (`color` or `background-color`).
|
|
162
|
+
*/
|
|
163
|
+
style: string;
|
|
164
|
+
/**
|
|
165
|
+
* The props of the underlying [KendoReact ColorPicker component](https://www.telerik.com/kendo-react-ui/components/inputs/colorpicker).
|
|
166
|
+
*/
|
|
167
|
+
colorPickerProps: ColorPickerProps;
|
|
168
|
+
/**
|
|
169
|
+
* The name of the applied command.
|
|
170
|
+
*/
|
|
171
|
+
commandName: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The setting of the IndentAction tool.
|
|
175
|
+
*/
|
|
176
|
+
interface IndentAction {
|
|
177
|
+
node: string;
|
|
178
|
+
style: string;
|
|
179
|
+
rtlStyle: string;
|
|
180
|
+
step: number;
|
|
181
|
+
unit: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The settings of the tool which applies indentation.
|
|
185
|
+
*/
|
|
186
|
+
interface IndentationSettings extends ToolSettings {
|
|
187
|
+
actions: Array<IndentAction>;
|
|
188
|
+
/**
|
|
189
|
+
* The list node types of the Indent and Outdent tools.
|
|
190
|
+
*/
|
|
191
|
+
listsTypes: {
|
|
192
|
+
orderedList: string;
|
|
193
|
+
bulletList: string;
|
|
194
|
+
listItem: string;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The settings of the Link tool or dialog.
|
|
199
|
+
*/
|
|
200
|
+
interface LinkSettings extends ToolSettings {
|
|
201
|
+
mark: string;
|
|
202
|
+
linkTarget?: boolean;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The settings of the Unlink tool.
|
|
206
|
+
*/
|
|
207
|
+
interface UnlinkSettings extends ToolSettings {
|
|
208
|
+
mark: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* The settings of the InsertFile tool or dialog.
|
|
212
|
+
*/
|
|
213
|
+
interface InsertFileSettings extends LinkSettings {
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* The settings of the tool which toggles lists.
|
|
217
|
+
*/
|
|
218
|
+
interface ListSettings extends ToolSettings {
|
|
219
|
+
/**
|
|
220
|
+
* The list type of the tool.
|
|
221
|
+
*/
|
|
222
|
+
listType: string;
|
|
223
|
+
/**
|
|
224
|
+
* The types of the list nodes that are used by the tool.
|
|
225
|
+
*/
|
|
226
|
+
types: {
|
|
227
|
+
orderedList: string;
|
|
228
|
+
bulletList: string;
|
|
229
|
+
listItem: string;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The settings of the InsertTable tool.
|
|
234
|
+
*/
|
|
235
|
+
interface InsertTableSettings extends ToolSettings {
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* The settings of the AddRowBefore tool.
|
|
239
|
+
*/
|
|
240
|
+
interface AddRowBeforeSettings extends ToolSettings {
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The settings of the AddRowAfter tool.
|
|
244
|
+
*/
|
|
245
|
+
interface AddRowAfterSettings extends ToolSettings {
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* The settings of the AddColumnBefore tool.
|
|
249
|
+
*/
|
|
250
|
+
interface AddColumnBeforeSettings extends ToolSettings {
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* The settings of the AddColumnAfter tool.
|
|
254
|
+
*/
|
|
255
|
+
interface AddColumnAfterSettings extends ToolSettings {
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The settings of the DeleteRow tool.
|
|
259
|
+
*/
|
|
260
|
+
interface DeleteRowSettings extends ToolSettings {
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* The settings of the DeleteColumn tool.
|
|
264
|
+
*/
|
|
265
|
+
interface DeleteColumnSettings extends ToolSettings {
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* The settings of the DeleteTable tool.
|
|
269
|
+
*/
|
|
270
|
+
interface DeleteTableSettings extends ToolSettings {
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* The settings of the MergeCells tool.
|
|
274
|
+
*/
|
|
275
|
+
interface MergeCellsSettings extends ToolSettings {
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* The settings of the SplitCell tool.
|
|
279
|
+
*/
|
|
280
|
+
interface SplitCellSettings extends ToolSettings {
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The settings of the Print tool.
|
|
284
|
+
*/
|
|
285
|
+
interface PrintSettings extends ToolSettings {
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* The settings of the SelectAll tool.
|
|
289
|
+
*/
|
|
290
|
+
interface SelectAllSettings extends ToolSettings {
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* The settings of the Pdf tool.
|
|
294
|
+
*/
|
|
295
|
+
interface PdfSettings extends ToolSettings {
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The settings of the CleanFormatting tool.
|
|
299
|
+
*/
|
|
300
|
+
interface CleanFormattingSettings extends ToolSettings {
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The settings of the InsertImage tool or dialog.
|
|
304
|
+
*/
|
|
305
|
+
interface ImageSettings extends ToolSettings {
|
|
306
|
+
node: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* The settings of the ViewHtml tool or dialog.
|
|
310
|
+
*/
|
|
311
|
+
interface ViewHtmlSettings extends ToolSettings {
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* The settings of the Find and Replace tool or dialog.
|
|
315
|
+
*/
|
|
316
|
+
interface FindReplaceSettings extends ToolSettings {
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* The object of the Bold tool settings.
|
|
320
|
+
*/
|
|
321
|
+
const bold: InlineFormatSettings;
|
|
322
|
+
/**
|
|
323
|
+
* The object of the Italic tool settings.
|
|
324
|
+
*/
|
|
325
|
+
const italic: InlineFormatSettings;
|
|
326
|
+
/**
|
|
327
|
+
* The object of the Underline tool settings.
|
|
328
|
+
*/
|
|
329
|
+
const underline: InlineFormatSettings;
|
|
330
|
+
/**
|
|
331
|
+
* The object of the Strikethrough tool settings.
|
|
332
|
+
*/
|
|
333
|
+
const strikethrough: InlineFormatSettings;
|
|
334
|
+
/**
|
|
335
|
+
* The object of the Subscript tool settings.
|
|
336
|
+
*/
|
|
337
|
+
const subscript: InlineFormatSettings;
|
|
338
|
+
/**
|
|
339
|
+
* The object of the Superscript tool settings.
|
|
340
|
+
*/
|
|
341
|
+
const superscript: InlineFormatSettings;
|
|
342
|
+
/**
|
|
343
|
+
* The object of the Link tool settings.
|
|
344
|
+
*/
|
|
345
|
+
const link: LinkSettings;
|
|
346
|
+
/**
|
|
347
|
+
* The object of the Link tool settings.
|
|
348
|
+
*/
|
|
349
|
+
const insertFile: InsertFileSettings;
|
|
350
|
+
/**
|
|
351
|
+
* The object of the InsertTable tool settings.
|
|
352
|
+
*/
|
|
353
|
+
const insertTable: InsertTableSettings;
|
|
354
|
+
/**
|
|
355
|
+
* The object of the AddRowBefore tool settings.
|
|
356
|
+
*/
|
|
357
|
+
const addRowBefore: AddRowBeforeSettings;
|
|
358
|
+
/**
|
|
359
|
+
* The object of the AddRowAfter tool settings.
|
|
360
|
+
*/
|
|
361
|
+
const addRowAfter: AddRowAfterSettings;
|
|
362
|
+
/**
|
|
363
|
+
* The object of the AddColumnBefore tool settings.
|
|
364
|
+
*/
|
|
365
|
+
const addColumnBefore: AddColumnBeforeSettings;
|
|
366
|
+
/**
|
|
367
|
+
* The object of the AddColumnAfter tool settings.
|
|
368
|
+
*/
|
|
369
|
+
const addColumnAfter: AddColumnAfterSettings;
|
|
370
|
+
/**
|
|
371
|
+
* The object of the DeleteRow tool settings.
|
|
372
|
+
*/
|
|
373
|
+
const deleteRow: DeleteRowSettings;
|
|
374
|
+
/**
|
|
375
|
+
* The object of the DeleteColumn tool settings.
|
|
376
|
+
*/
|
|
377
|
+
const deleteColumn: DeleteColumnSettings;
|
|
378
|
+
/**
|
|
379
|
+
* The object of the DeleteTable tool settings.
|
|
380
|
+
*/
|
|
381
|
+
const deleteTable: DeleteTableSettings;
|
|
382
|
+
/**
|
|
383
|
+
* The object of the MergeCells tool settings.
|
|
384
|
+
*/
|
|
385
|
+
const mergeCells: MergeCellsSettings;
|
|
386
|
+
/**
|
|
387
|
+
* The object of the SplitCell tool settings.
|
|
388
|
+
*/
|
|
389
|
+
const splitCell: SplitCellSettings;
|
|
390
|
+
/**
|
|
391
|
+
* The object of the Print tool settings.
|
|
392
|
+
*/
|
|
393
|
+
const print: PrintSettings;
|
|
394
|
+
/**
|
|
395
|
+
* The object of the Print tool settings.
|
|
396
|
+
*/
|
|
397
|
+
const selectAll: SelectAllSettings;
|
|
398
|
+
/**
|
|
399
|
+
* The object of the Print tool settings.
|
|
400
|
+
*/
|
|
401
|
+
const pdf: PdfSettings;
|
|
402
|
+
/**
|
|
403
|
+
* The PDF export options.
|
|
404
|
+
*
|
|
405
|
+
* const savePdfOptions = {
|
|
406
|
+
* fileName: 'editor.pdf',
|
|
407
|
+
* paperSize: 'A4',
|
|
408
|
+
* margin: '1cm'
|
|
409
|
+
* };
|
|
410
|
+
*/
|
|
411
|
+
const savePdfOptions: PDFExportProps;
|
|
412
|
+
/**
|
|
413
|
+
* The object of the CleanFormatting tool settings.
|
|
414
|
+
*/
|
|
415
|
+
const cleanFormatting: CleanFormattingSettings;
|
|
416
|
+
/**
|
|
417
|
+
* The object of the InsertImage tool settings.
|
|
418
|
+
*/
|
|
419
|
+
const image: ImageSettings;
|
|
420
|
+
/**
|
|
421
|
+
* The object of the ViewHtml tool settings.
|
|
422
|
+
*/
|
|
423
|
+
const viewHtml: ViewHtmlSettings;
|
|
424
|
+
/**
|
|
425
|
+
* The object of the Find and Replace tool settings.
|
|
426
|
+
*/
|
|
427
|
+
const findAndReplace: FindReplaceSettings;
|
|
428
|
+
/**
|
|
429
|
+
* The object of the Unlink tool settings.
|
|
430
|
+
*/
|
|
431
|
+
const unlink: UnlinkSettings;
|
|
432
|
+
/**
|
|
433
|
+
* The object of the Undo tool settings.
|
|
434
|
+
*/
|
|
435
|
+
const undo: ToolSettings;
|
|
436
|
+
/**
|
|
437
|
+
* The object of the Redo tool settings.
|
|
438
|
+
*/
|
|
439
|
+
const redo: ToolSettings;
|
|
440
|
+
/**
|
|
441
|
+
* The object of the FontSize tool settings.
|
|
442
|
+
*/
|
|
443
|
+
const fontSize: StyleDropDownListSettings;
|
|
444
|
+
/**
|
|
445
|
+
* The object of the FontName tool settings.
|
|
446
|
+
*/
|
|
447
|
+
const fontName: StyleDropDownListSettings;
|
|
448
|
+
/**
|
|
449
|
+
* The object of the FormatBlock tool settings.
|
|
450
|
+
*/
|
|
451
|
+
const formatBlock: FormatBlockDropDownListSettings;
|
|
452
|
+
/**
|
|
453
|
+
* The object of the ForeColor tool settings.
|
|
454
|
+
*/
|
|
455
|
+
const foreColor: ApplyColorSettings;
|
|
456
|
+
/**
|
|
457
|
+
* The object of the BackColor tool settings.
|
|
458
|
+
*/
|
|
459
|
+
const backColor: ApplyColorSettings;
|
|
460
|
+
/**
|
|
461
|
+
* The object of the AlignLeft tool settings.
|
|
462
|
+
*/
|
|
463
|
+
const alignLeft: AlignSettings;
|
|
464
|
+
/**
|
|
465
|
+
* The object of the AlignRight tool settings.
|
|
466
|
+
*/
|
|
467
|
+
const alignRight: AlignSettings;
|
|
468
|
+
/**
|
|
469
|
+
* The object of the AlignCenter tool settings.
|
|
470
|
+
*/
|
|
471
|
+
const alignCenter: AlignSettings;
|
|
472
|
+
/**
|
|
473
|
+
* The object of the AlignJustify tool settings.
|
|
474
|
+
*/
|
|
475
|
+
const alignJustify: AlignSettings;
|
|
476
|
+
/**
|
|
477
|
+
* The object of the AlignRemove tool settings.
|
|
478
|
+
*/
|
|
479
|
+
const alignRemove: AlignSettings;
|
|
480
|
+
/**
|
|
481
|
+
* The object of the Indent tool settings.
|
|
482
|
+
*/
|
|
483
|
+
const indent: IndentationSettings;
|
|
484
|
+
/**
|
|
485
|
+
* The object of the Outdent tool settings.
|
|
486
|
+
*/
|
|
487
|
+
const outdent: IndentationSettings;
|
|
488
|
+
/**
|
|
489
|
+
* The object of the OrderedList tool settings.
|
|
490
|
+
*/
|
|
491
|
+
const orderedList: ListSettings;
|
|
492
|
+
/**
|
|
493
|
+
* The object of the UnorderedList tool settings.
|
|
494
|
+
*/
|
|
495
|
+
const bulletList: ListSettings;
|
|
496
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { EditorView } from '@progress/kendo-editor-common';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface EditorDialogProps {
|
|
13
|
+
/**
|
|
14
|
+
* The `EditorView` object.
|
|
15
|
+
*/
|
|
16
|
+
view: EditorView;
|
|
17
|
+
/**
|
|
18
|
+
* The `settings` object of the Dialog.
|
|
19
|
+
*/
|
|
20
|
+
settings: any;
|
|
21
|
+
/**
|
|
22
|
+
* Represents the `dir` HTML attribute.
|
|
23
|
+
*/
|
|
24
|
+
dir?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The `close` event which will be triggered when the Dialog is about to be unmounted.
|
|
27
|
+
*/
|
|
28
|
+
onClose: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Fires when a Dialog is about to be rendered. Used to override the default appearance of the Dialog.
|
|
31
|
+
*/
|
|
32
|
+
render?: (tool: React.ReactElement<any>, args?: any) => React.ReactNode;
|
|
33
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { EditorToolsSettings } from './../config/toolsSettings.js';
|
|
9
|
+
import { TextSelection, EditorView } from '@progress/kendo-editor-common';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
interface FindAndReplaceDialogState {
|
|
12
|
+
selectedTab: number;
|
|
13
|
+
matches?: TextSelection[];
|
|
14
|
+
nextMatch?: TextSelection;
|
|
15
|
+
searchText: string;
|
|
16
|
+
replaceText: string;
|
|
17
|
+
matchCase: boolean;
|
|
18
|
+
matchWord: boolean;
|
|
19
|
+
matchCyclic: boolean;
|
|
20
|
+
useRegExp: boolean;
|
|
21
|
+
error?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface FindAndReplaceDialogProps {
|
|
27
|
+
/**
|
|
28
|
+
* The `EditorView` object.
|
|
29
|
+
*/
|
|
30
|
+
view: EditorView;
|
|
31
|
+
/**
|
|
32
|
+
* The `settings` object of the Dialog.
|
|
33
|
+
*/
|
|
34
|
+
settings?: EditorToolsSettings.FindReplaceSettings;
|
|
35
|
+
/**
|
|
36
|
+
* Represents the `dir` HTML attribute.
|
|
37
|
+
*/
|
|
38
|
+
dir?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The `close` event which will be triggered when the Dialog is about to be unmounted.
|
|
41
|
+
*/
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare class FindAndReplaceDialog extends React.Component<FindAndReplaceDialogProps, FindAndReplaceDialogState> {
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
state: FindAndReplaceDialogState;
|
|
52
|
+
private get settings();
|
|
53
|
+
constructor(props: FindAndReplaceDialogProps);
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
componentDidUpdate(_: FindAndReplaceDialogProps, prevState: FindAndReplaceDialogState): void;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
render(): React.JSX.Element;
|
|
62
|
+
private onTabSelect;
|
|
63
|
+
private onClose;
|
|
64
|
+
private matchesMessage;
|
|
65
|
+
private onFindNext;
|
|
66
|
+
private onFindPrev;
|
|
67
|
+
private onFind;
|
|
68
|
+
private onReplace;
|
|
69
|
+
private onReplaceAll;
|
|
70
|
+
private onKeyDown;
|
|
71
|
+
private onMatchCaseChecked;
|
|
72
|
+
private onMatchWordChecked;
|
|
73
|
+
private onMatchCyclicChecked;
|
|
74
|
+
private onUseRegExpChecked;
|
|
75
|
+
private onSearchChange;
|
|
76
|
+
private onReplaceChange;
|
|
77
|
+
private setNextState;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
package/dialogs/FindReplace.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as t from "react";
|
|
|
9
9
|
import { Button as x } from "@progress/kendo-react-buttons";
|
|
10
10
|
import { Window as K } from "@progress/kendo-react-dialogs";
|
|
11
11
|
import { TabStrip as O, TabStripTab as y } from "@progress/kendo-react-layout";
|
|
12
|
-
import {
|
|
12
|
+
import { provideLocalizationService as U, registerForLocalization as B } from "@progress/kendo-react-intl";
|
|
13
13
|
import { messages as l } from "../messages/index.mjs";
|
|
14
14
|
import { EditorToolsSettings as P } from "../config/toolsSettings.mjs";
|
|
15
15
|
import { formatString as q } from "../tools/utils.mjs";
|
|
@@ -118,7 +118,7 @@ let te = class extends t.Component {
|
|
|
118
118
|
* @hidden
|
|
119
119
|
*/
|
|
120
120
|
render() {
|
|
121
|
-
const s =
|
|
121
|
+
const s = U(this), {
|
|
122
122
|
findReplaceDialogTitle: e,
|
|
123
123
|
findReplaceTabFind: a,
|
|
124
124
|
findReplaceTabReplace: c,
|
|
@@ -269,7 +269,7 @@ let te = class extends t.Component {
|
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
B(te);
|
|
273
273
|
export {
|
|
274
274
|
te as FindAndReplaceDialog
|
|
275
275
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { InsertLinkDialog as LinkDialog, InsertLinkDialogProps as LinkDialogProps } from './insertLink.js';
|
|
9
|
+
import { InsertImageDialog as ImageDialog, InsertImageDialogProps as ImageDialogProps } from './insertImage.js';
|
|
10
|
+
import { ViewHtmlDialog as ViewHtmlDialogX, ViewHtmlDialogProps as ViewHtmlDialogPropsX } from './viewHtml.js';
|
|
11
|
+
import { FindAndReplaceDialog as FindAndReplaceDialogX, FindAndReplaceDialogProps as FindAndReplaceDialogPropsX } from './FindReplace.js';
|
|
12
|
+
/**
|
|
13
|
+
* Represents a wrapping namespace for the dialog components and props of the Editor.
|
|
14
|
+
*/
|
|
15
|
+
export declare namespace EditorDialogs {
|
|
16
|
+
/**
|
|
17
|
+
* The InsertLinkDialog component.
|
|
18
|
+
*/
|
|
19
|
+
class InsertLinkDialog extends LinkDialog {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The props for the InsertLinkDialog component.
|
|
23
|
+
*/
|
|
24
|
+
interface InsertLinkDialogProps extends LinkDialogProps {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The InsertImageDialog component.
|
|
28
|
+
*/
|
|
29
|
+
class InsertImageDialog extends ImageDialog {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The props for the InsertImageDialog component.
|
|
33
|
+
*/
|
|
34
|
+
interface InsertImageDialogProps extends ImageDialogProps {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The ViewHtmlDialog component.
|
|
38
|
+
*/
|
|
39
|
+
class ViewHtmlDialog extends ViewHtmlDialogX {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The props for the ViewHtmlDialog component.
|
|
43
|
+
*/
|
|
44
|
+
interface ViewHtmlDialogProps extends ViewHtmlDialogPropsX {
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The FindAndReplaceDialog component.
|
|
48
|
+
*/
|
|
49
|
+
class FindAndReplaceDialog extends FindAndReplaceDialogX {
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The props for the FindAndReplaceDialog component.
|
|
53
|
+
*/
|
|
54
|
+
interface FindAndReplaceDialogProps extends FindAndReplaceDialogPropsX {
|
|
55
|
+
}
|
|
56
|
+
}
|