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