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