@progress/kendo-vue-editor 2.7.3-dev.202201070829 → 2.8.0-dev.202201131525
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/dist/es/Editor.d.ts +49 -131
- package/dist/es/Editor.js +40 -21
- package/dist/es/EditorProps.d.ts +11 -5
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/dialogs/FindReplace.d.ts +6 -7
- package/dist/es/dialogs/FindReplace.js +190 -127
- package/dist/es/dialogs/insertImage.d.ts +5 -6
- package/dist/es/dialogs/insertImage.js +23 -13
- package/dist/es/dialogs/insertLink.d.ts +5 -6
- package/dist/es/dialogs/insertLink.js +12 -8
- package/dist/es/dialogs/viewHtml.d.ts +5 -6
- package/dist/es/dialogs/viewHtml.js +3 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/align.d.ts +5 -6
- package/dist/es/tools/align.js +3 -3
- package/dist/es/tools/applyColor.d.ts +5 -6
- package/dist/es/tools/applyColor.js +3 -3
- package/dist/es/tools/cleanFormatting.d.ts +5 -6
- package/dist/es/tools/cleanFormatting.js +3 -3
- package/dist/es/tools/findReplace.d.ts +5 -6
- package/dist/es/tools/findReplace.js +3 -3
- package/dist/es/tools/fontStyle.d.ts +5 -6
- package/dist/es/tools/fontStyle.js +3 -3
- package/dist/es/tools/formatBlock.d.ts +5 -6
- package/dist/es/tools/formatBlock.js +3 -3
- package/dist/es/tools/indent.d.ts +5 -6
- package/dist/es/tools/indent.js +3 -3
- package/dist/es/tools/inlineFormat.d.ts +5 -6
- package/dist/es/tools/inlineFormat.js +3 -3
- package/dist/es/tools/insertImage.d.ts +5 -6
- package/dist/es/tools/insertImage.js +3 -3
- package/dist/es/tools/insertLink.d.ts +5 -6
- package/dist/es/tools/insertLink.js +3 -3
- package/dist/es/tools/insertTable/popup.d.ts +5 -6
- package/dist/es/tools/insertTable/popup.js +3 -3
- package/dist/es/tools/insertTable/popupGrid.d.ts +5 -6
- package/dist/es/tools/insertTable/popupGrid.js +3 -3
- package/dist/es/tools/insertTable/tool.d.ts +5 -6
- package/dist/es/tools/insertTable/tool.js +3 -3
- package/dist/es/tools/lists.d.ts +5 -6
- package/dist/es/tools/lists.js +3 -3
- package/dist/es/tools/outdent.d.ts +5 -6
- package/dist/es/tools/outdent.js +3 -3
- package/dist/es/tools/pdf.d.ts +5 -6
- package/dist/es/tools/pdf.js +3 -3
- package/dist/es/tools/print.d.ts +5 -6
- package/dist/es/tools/print.js +3 -3
- package/dist/es/tools/proseMirrorTool.d.ts +5 -6
- package/dist/es/tools/proseMirrorTool.js +3 -3
- package/dist/es/tools/selectAll.d.ts +5 -6
- package/dist/es/tools/selectAll.js +3 -3
- package/dist/es/tools/unlink.d.ts +5 -6
- package/dist/es/tools/unlink.js +3 -3
- package/dist/es/tools/viewHtml.d.ts +5 -6
- package/dist/es/tools/viewHtml.js +3 -3
- package/dist/npm/Editor.d.ts +49 -131
- package/dist/npm/Editor.js +42 -23
- package/dist/npm/EditorProps.d.ts +11 -5
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/dialogs/FindReplace.d.ts +6 -7
- package/dist/npm/dialogs/FindReplace.js +193 -129
- package/dist/npm/dialogs/insertImage.d.ts +5 -6
- package/dist/npm/dialogs/insertImage.js +25 -15
- package/dist/npm/dialogs/insertLink.d.ts +5 -6
- package/dist/npm/dialogs/insertLink.js +14 -10
- package/dist/npm/dialogs/viewHtml.d.ts +5 -6
- package/dist/npm/dialogs/viewHtml.js +5 -5
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/align.d.ts +5 -6
- package/dist/npm/tools/align.js +5 -5
- package/dist/npm/tools/applyColor.d.ts +5 -6
- package/dist/npm/tools/applyColor.js +5 -5
- package/dist/npm/tools/cleanFormatting.d.ts +5 -6
- package/dist/npm/tools/cleanFormatting.js +5 -5
- package/dist/npm/tools/findReplace.d.ts +5 -6
- package/dist/npm/tools/findReplace.js +5 -5
- package/dist/npm/tools/fontStyle.d.ts +5 -6
- package/dist/npm/tools/fontStyle.js +5 -5
- package/dist/npm/tools/formatBlock.d.ts +5 -6
- package/dist/npm/tools/formatBlock.js +5 -5
- package/dist/npm/tools/indent.d.ts +5 -6
- package/dist/npm/tools/indent.js +5 -5
- package/dist/npm/tools/inlineFormat.d.ts +5 -6
- package/dist/npm/tools/inlineFormat.js +5 -5
- package/dist/npm/tools/insertImage.d.ts +5 -6
- package/dist/npm/tools/insertImage.js +5 -5
- package/dist/npm/tools/insertLink.d.ts +5 -6
- package/dist/npm/tools/insertLink.js +5 -5
- package/dist/npm/tools/insertTable/popup.d.ts +5 -6
- package/dist/npm/tools/insertTable/popup.js +5 -5
- package/dist/npm/tools/insertTable/popupGrid.d.ts +5 -6
- package/dist/npm/tools/insertTable/popupGrid.js +5 -5
- package/dist/npm/tools/insertTable/tool.d.ts +5 -6
- package/dist/npm/tools/insertTable/tool.js +5 -5
- package/dist/npm/tools/lists.d.ts +5 -6
- package/dist/npm/tools/lists.js +5 -5
- package/dist/npm/tools/outdent.d.ts +5 -6
- package/dist/npm/tools/outdent.js +5 -5
- package/dist/npm/tools/pdf.d.ts +5 -6
- package/dist/npm/tools/pdf.js +5 -5
- package/dist/npm/tools/print.d.ts +5 -6
- package/dist/npm/tools/print.js +5 -5
- package/dist/npm/tools/proseMirrorTool.d.ts +5 -6
- package/dist/npm/tools/proseMirrorTool.js +5 -5
- package/dist/npm/tools/selectAll.d.ts +5 -6
- package/dist/npm/tools/selectAll.js +5 -5
- package/dist/npm/tools/unlink.d.ts +5 -6
- package/dist/npm/tools/unlink.js +5 -5
- package/dist/npm/tools/viewHtml.d.ts +5 -6
- package/dist/npm/tools/viewHtml.js +5 -5
- package/package.json +12 -12
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
import { Button } from '@progress/kendo-vue-buttons';
|
|
5
6
|
import { Window } from '@progress/kendo-vue-dialogs';
|
|
6
7
|
import { TabStrip, TabStripTab } from '@progress/kendo-vue-layout';
|
|
7
8
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
@@ -13,7 +14,7 @@ var enter = 13,
|
|
|
13
14
|
esc = 27;
|
|
14
15
|
var settings = EditorToolsSettings.findAndReplace; // tslint:enable:max-line-length
|
|
15
16
|
|
|
16
|
-
var
|
|
17
|
+
var FindAndReplaceDialogVue2 = {
|
|
17
18
|
name: 'KendoFindAndReplaceDialog',
|
|
18
19
|
props: {
|
|
19
20
|
view: Object,
|
|
@@ -30,6 +31,10 @@ var FindAndReplaceDialog = {
|
|
|
30
31
|
default: null
|
|
31
32
|
}
|
|
32
33
|
},
|
|
34
|
+
created: function created() {
|
|
35
|
+
this._prevMatch = undefined;
|
|
36
|
+
this.nextMatch = undefined;
|
|
37
|
+
},
|
|
33
38
|
data: function data() {
|
|
34
39
|
return {
|
|
35
40
|
selectedTab: 0,
|
|
@@ -39,24 +44,26 @@ var FindAndReplaceDialog = {
|
|
|
39
44
|
matchWord: false,
|
|
40
45
|
matchCyclic: false,
|
|
41
46
|
useRegExp: false,
|
|
42
|
-
|
|
47
|
+
matches: [],
|
|
48
|
+
hasMounted: false
|
|
43
49
|
};
|
|
44
50
|
},
|
|
45
51
|
mounted: function mounted() {
|
|
46
52
|
if (this.$el) {
|
|
47
53
|
document.body.append(this.$el);
|
|
48
54
|
}
|
|
55
|
+
|
|
56
|
+
this.setNextState();
|
|
57
|
+
this.hasMounted = true;
|
|
49
58
|
},
|
|
50
59
|
|
|
51
60
|
/**
|
|
52
61
|
* @hidden
|
|
53
62
|
*/
|
|
54
63
|
updated: function updated() {
|
|
64
|
+
var matches = this.matches || [];
|
|
65
|
+
var nextMatch = this.nextMatch;
|
|
55
66
|
var view = this.$props.view;
|
|
56
|
-
var _a = this.$data,
|
|
57
|
-
_b = _a.matches,
|
|
58
|
-
matches = _b === void 0 ? [] : _b,
|
|
59
|
-
nextMatch = _a.nextMatch;
|
|
60
67
|
|
|
61
68
|
if (this._prevMatch !== nextMatch) {
|
|
62
69
|
var state = view.state; // highlight selection
|
|
@@ -88,11 +95,6 @@ var FindAndReplaceDialog = {
|
|
|
88
95
|
this.$el.remove();
|
|
89
96
|
}
|
|
90
97
|
},
|
|
91
|
-
watch: {
|
|
92
|
-
nextMatch: function nextMatch(_newNextMatch, oldMatch) {
|
|
93
|
-
this._prevMatch = oldMatch;
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
98
|
// @ts-ignore
|
|
97
99
|
setup: !gh ? undefined : function () {
|
|
98
100
|
var v3 = !!gh;
|
|
@@ -134,7 +136,7 @@ var FindAndReplaceDialog = {
|
|
|
134
136
|
var checkboxes = h("div", {
|
|
135
137
|
"class": "k-search-options"
|
|
136
138
|
}, [h("span", [h("input", {
|
|
137
|
-
"class": "k-checkbox",
|
|
139
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
138
140
|
type: "checkbox",
|
|
139
141
|
attrs: this.v3 ? undefined : {
|
|
140
142
|
type: "checkbox",
|
|
@@ -156,7 +158,7 @@ var FindAndReplaceDialog = {
|
|
|
156
158
|
},
|
|
157
159
|
"class": "k-checkbox-label"
|
|
158
160
|
}, [localization.toLanguageString(findReplaceMatchCase, messages[findReplaceMatchCase])])]), h("span", [h("input", {
|
|
159
|
-
"class": "k-checkbox",
|
|
161
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
160
162
|
type: "checkbox",
|
|
161
163
|
attrs: this.v3 ? undefined : {
|
|
162
164
|
type: "checkbox",
|
|
@@ -178,7 +180,7 @@ var FindAndReplaceDialog = {
|
|
|
178
180
|
},
|
|
179
181
|
"class": "k-checkbox-label"
|
|
180
182
|
}, [localization.toLanguageString(findReplaceMatchWord, messages[findReplaceMatchWord])])]), h("span", [h("input", {
|
|
181
|
-
"class": "k-checkbox",
|
|
183
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
182
184
|
type: "checkbox",
|
|
183
185
|
attrs: this.v3 ? undefined : {
|
|
184
186
|
type: "checkbox",
|
|
@@ -200,7 +202,7 @@ var FindAndReplaceDialog = {
|
|
|
200
202
|
},
|
|
201
203
|
"class": "k-checkbox-label"
|
|
202
204
|
}, [localization.toLanguageString(findReplaceMatchCyclic, messages[findReplaceMatchCyclic])])]), h("span", [h("input", {
|
|
203
|
-
"class": "k-checkbox",
|
|
205
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
204
206
|
type: "checkbox",
|
|
205
207
|
attrs: this.v3 ? undefined : {
|
|
206
208
|
type: "checkbox",
|
|
@@ -222,58 +224,92 @@ var FindAndReplaceDialog = {
|
|
|
222
224
|
},
|
|
223
225
|
"class": "k-checkbox-label"
|
|
224
226
|
}, [localization.toLanguageString(findReplaceUseRegExp, messages[findReplaceUseRegExp])])])]);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
227
|
+
|
|
228
|
+
var navigation = function navigation(findWhatRef) {
|
|
229
|
+
return h("div", {
|
|
230
|
+
"class": "k-matches-container"
|
|
231
|
+
}, [// @ts-ignore function children
|
|
232
|
+
h(Button, {
|
|
233
|
+
fillMode: 'flat',
|
|
234
|
+
attrs: this.v3 ? undefined : {
|
|
235
|
+
fillMode: 'flat',
|
|
236
|
+
themeColor: 'primary'
|
|
237
|
+
},
|
|
238
|
+
themeColor: 'primary',
|
|
239
|
+
onClick: this.onFindPrev,
|
|
240
|
+
on: this.v3 ? undefined : {
|
|
241
|
+
"click": this.onFindPrev
|
|
242
|
+
}
|
|
243
|
+
}, this.v3 ? function () {
|
|
244
|
+
return [h("span", {
|
|
245
|
+
"class": "k-icon k-i-arrow-chevron-left"
|
|
246
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])];
|
|
247
|
+
} : [h("span", {
|
|
248
|
+
"class": "k-icon k-i-arrow-chevron-left"
|
|
249
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])]), this.hasMounted && h("span", {
|
|
250
|
+
ref: findWhatRef
|
|
251
|
+
}, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages[findReplaceMatches]))]), // @ts-ignore function children
|
|
252
|
+
h(Button, {
|
|
253
|
+
fillMode: 'flat',
|
|
254
|
+
attrs: this.v3 ? undefined : {
|
|
255
|
+
fillMode: 'flat',
|
|
256
|
+
themeColor: 'primary'
|
|
257
|
+
},
|
|
258
|
+
themeColor: 'primary',
|
|
259
|
+
onClick: this.onFindNext,
|
|
260
|
+
on: this.v3 ? undefined : {
|
|
261
|
+
"click": this.onFindNext
|
|
262
|
+
}
|
|
263
|
+
}, this.v3 ? function () {
|
|
264
|
+
return [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
|
|
265
|
+
"class": "k-icon k-i-arrow-chevron-right"
|
|
266
|
+
})];
|
|
267
|
+
} : [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
|
|
268
|
+
"class": "k-icon k-i-arrow-chevron-right"
|
|
269
|
+
})])]);
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
var findWhatLabel = function findWhatLabel(findWhatId) {
|
|
273
|
+
return h("div", {
|
|
274
|
+
"class": "k-edit-label"
|
|
275
|
+
}, [h("label", {
|
|
276
|
+
ref: findWhatId,
|
|
277
|
+
"for": findWhatId,
|
|
278
|
+
attrs: this.v3 ? undefined : {
|
|
279
|
+
"for": findWhatId
|
|
280
|
+
}
|
|
281
|
+
}, [localization.toLanguageString(findReplaceFindWhat, messages[findReplaceFindWhat])])]);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
var findWhat = function findWhat(findWhatId) {
|
|
285
|
+
return h("div", {
|
|
286
|
+
"class": "k-edit-field"
|
|
287
|
+
}, [h("span", {
|
|
288
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
289
|
+
}, [h("input", {
|
|
290
|
+
id: findWhatId,
|
|
291
|
+
attrs: this.v3 ? undefined : {
|
|
292
|
+
id: findWhatId,
|
|
293
|
+
type: "text"
|
|
294
|
+
},
|
|
295
|
+
ref: findWhatId,
|
|
258
296
|
type: "text",
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
autoFocus: true
|
|
276
|
-
})]);
|
|
297
|
+
"class": "k-input-inner",
|
|
298
|
+
value: this.v3 ? searchText : null,
|
|
299
|
+
domProps: this.v3 ? undefined : {
|
|
300
|
+
"value": searchText
|
|
301
|
+
},
|
|
302
|
+
onInput: this.onSearchChange,
|
|
303
|
+
on: this.v3 ? undefined : {
|
|
304
|
+
"input": this.onSearchChange,
|
|
305
|
+
"focus": this.onSearchChange,
|
|
306
|
+
"keydown": this.onKeyDown
|
|
307
|
+
},
|
|
308
|
+
onFocus: this.onSearchChange,
|
|
309
|
+
onKeydown: this.onKeyDown
|
|
310
|
+
})])]);
|
|
311
|
+
};
|
|
312
|
+
|
|
277
313
|
var replaceWithLabel = h("div", {
|
|
278
314
|
"class": "k-edit-label"
|
|
279
315
|
}, [h("label", {
|
|
@@ -284,13 +320,15 @@ var FindAndReplaceDialog = {
|
|
|
284
320
|
}, [localization.toLanguageString(findReplaceReplaceWith, messages[findReplaceReplaceWith])])]);
|
|
285
321
|
var replaceWith = h("div", {
|
|
286
322
|
"class": "k-edit-field"
|
|
323
|
+
}, [h("span", {
|
|
324
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
287
325
|
}, [h("input", {
|
|
288
326
|
id: "replaceWith",
|
|
289
327
|
attrs: this.v3 ? undefined : {
|
|
290
328
|
id: "replaceWith",
|
|
291
329
|
type: "text"
|
|
292
330
|
},
|
|
293
|
-
"class": "k-
|
|
331
|
+
"class": "k-input-inner",
|
|
294
332
|
type: "text",
|
|
295
333
|
value: this.v3 ? replaceText : null,
|
|
296
334
|
domProps: this.v3 ? undefined : {
|
|
@@ -300,7 +338,7 @@ var FindAndReplaceDialog = {
|
|
|
300
338
|
on: this.v3 ? undefined : {
|
|
301
339
|
"input": this.onReplaceChange
|
|
302
340
|
}
|
|
303
|
-
})]);
|
|
341
|
+
})])]);
|
|
304
342
|
return (// @ts-ignore function children
|
|
305
343
|
h(Window, {
|
|
306
344
|
title: localization.toLanguageString(findReplaceDialogTitle, messages[findReplaceDialogTitle]),
|
|
@@ -359,10 +397,10 @@ var FindAndReplaceDialog = {
|
|
|
359
397
|
}, _this.v3 ? function () {
|
|
360
398
|
return [h("div", {
|
|
361
399
|
"class": "k-edit-form-container"
|
|
362
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
400
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
363
401
|
} : [h("div", {
|
|
364
402
|
"class": "k-edit-form-container"
|
|
365
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
|
|
403
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
|
|
366
404
|
h(TabStripTab, {
|
|
367
405
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
368
406
|
attrs: _this.v3 ? undefined : {
|
|
@@ -371,10 +409,10 @@ var FindAndReplaceDialog = {
|
|
|
371
409
|
}, _this.v3 ? function () {
|
|
372
410
|
return [h("div", {
|
|
373
411
|
"class": "k-edit-form-container"
|
|
374
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
412
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
375
413
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
376
|
-
}, [
|
|
377
|
-
|
|
414
|
+
}, [// @ts-ignore function children
|
|
415
|
+
h(Button, {
|
|
378
416
|
disabled: !Boolean(nextMatch),
|
|
379
417
|
attrs: _this.v3 ? undefined : {
|
|
380
418
|
disabled: !Boolean(nextMatch)
|
|
@@ -383,8 +421,10 @@ var FindAndReplaceDialog = {
|
|
|
383
421
|
on: _this.v3 ? undefined : {
|
|
384
422
|
"click": _this.onReplace
|
|
385
423
|
}
|
|
386
|
-
},
|
|
387
|
-
|
|
424
|
+
}, _this.v3 ? function () {
|
|
425
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
426
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), // @ts-ignore function children
|
|
427
|
+
h(Button, {
|
|
388
428
|
disabled: !Boolean(nextMatch),
|
|
389
429
|
attrs: _this.v3 ? undefined : {
|
|
390
430
|
disabled: !Boolean(nextMatch)
|
|
@@ -393,13 +433,14 @@ var FindAndReplaceDialog = {
|
|
|
393
433
|
on: _this.v3 ? undefined : {
|
|
394
434
|
"click": _this.onReplaceAll
|
|
395
435
|
}
|
|
396
|
-
},
|
|
436
|
+
}, _this.v3 ? function () {
|
|
437
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
438
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
397
439
|
} : [h("div", {
|
|
398
440
|
"class": "k-edit-form-container"
|
|
399
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
441
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
400
442
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
401
|
-
}, [h(
|
|
402
|
-
"class": "k-button",
|
|
443
|
+
}, [h(Button, {
|
|
403
444
|
disabled: !Boolean(nextMatch),
|
|
404
445
|
attrs: _this.v3 ? undefined : {
|
|
405
446
|
disabled: !Boolean(nextMatch)
|
|
@@ -408,8 +449,9 @@ var FindAndReplaceDialog = {
|
|
|
408
449
|
on: _this.v3 ? undefined : {
|
|
409
450
|
"click": _this.onReplace
|
|
410
451
|
}
|
|
411
|
-
},
|
|
412
|
-
|
|
452
|
+
}, _this.v3 ? function () {
|
|
453
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
454
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
413
455
|
disabled: !Boolean(nextMatch),
|
|
414
456
|
attrs: _this.v3 ? undefined : {
|
|
415
457
|
disabled: !Boolean(nextMatch)
|
|
@@ -418,7 +460,9 @@ var FindAndReplaceDialog = {
|
|
|
418
460
|
on: _this.v3 ? undefined : {
|
|
419
461
|
"click": _this.onReplaceAll
|
|
420
462
|
}
|
|
421
|
-
},
|
|
463
|
+
}, _this.v3 ? function () {
|
|
464
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
465
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
422
466
|
} : [h(TabStripTab, {
|
|
423
467
|
title: localization.toLanguageString(findReplaceTabFind, messages[findReplaceTabFind]),
|
|
424
468
|
attrs: _this.v3 ? undefined : {
|
|
@@ -427,10 +471,10 @@ var FindAndReplaceDialog = {
|
|
|
427
471
|
}, _this.v3 ? function () {
|
|
428
472
|
return [h("div", {
|
|
429
473
|
"class": "k-edit-form-container"
|
|
430
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
474
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
431
475
|
} : [h("div", {
|
|
432
476
|
"class": "k-edit-form-container"
|
|
433
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
|
|
477
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
|
|
434
478
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
435
479
|
attrs: _this.v3 ? undefined : {
|
|
436
480
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
|
|
@@ -438,10 +482,9 @@ var FindAndReplaceDialog = {
|
|
|
438
482
|
}, _this.v3 ? function () {
|
|
439
483
|
return [h("div", {
|
|
440
484
|
"class": "k-edit-form-container"
|
|
441
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
485
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
442
486
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
443
|
-
}, [h(
|
|
444
|
-
"class": "k-button",
|
|
487
|
+
}, [h(Button, {
|
|
445
488
|
disabled: !Boolean(nextMatch),
|
|
446
489
|
attrs: _this.v3 ? undefined : {
|
|
447
490
|
disabled: !Boolean(nextMatch)
|
|
@@ -450,8 +493,9 @@ var FindAndReplaceDialog = {
|
|
|
450
493
|
on: _this.v3 ? undefined : {
|
|
451
494
|
"click": _this.onReplace
|
|
452
495
|
}
|
|
453
|
-
},
|
|
454
|
-
|
|
496
|
+
}, _this.v3 ? function () {
|
|
497
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
498
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
455
499
|
disabled: !Boolean(nextMatch),
|
|
456
500
|
attrs: _this.v3 ? undefined : {
|
|
457
501
|
disabled: !Boolean(nextMatch)
|
|
@@ -460,13 +504,14 @@ var FindAndReplaceDialog = {
|
|
|
460
504
|
on: _this.v3 ? undefined : {
|
|
461
505
|
"click": _this.onReplaceAll
|
|
462
506
|
}
|
|
463
|
-
},
|
|
507
|
+
}, _this.v3 ? function () {
|
|
508
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
509
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
464
510
|
} : [h("div", {
|
|
465
511
|
"class": "k-edit-form-container"
|
|
466
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
512
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
467
513
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
468
|
-
}, [h(
|
|
469
|
-
"class": "k-button",
|
|
514
|
+
}, [h(Button, {
|
|
470
515
|
disabled: !Boolean(nextMatch),
|
|
471
516
|
attrs: _this.v3 ? undefined : {
|
|
472
517
|
disabled: !Boolean(nextMatch)
|
|
@@ -475,8 +520,9 @@ var FindAndReplaceDialog = {
|
|
|
475
520
|
on: _this.v3 ? undefined : {
|
|
476
521
|
"click": _this.onReplace
|
|
477
522
|
}
|
|
478
|
-
},
|
|
479
|
-
|
|
523
|
+
}, _this.v3 ? function () {
|
|
524
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
525
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
480
526
|
disabled: !Boolean(nextMatch),
|
|
481
527
|
attrs: _this.v3 ? undefined : {
|
|
482
528
|
disabled: !Boolean(nextMatch)
|
|
@@ -485,7 +531,9 @@ var FindAndReplaceDialog = {
|
|
|
485
531
|
on: _this.v3 ? undefined : {
|
|
486
532
|
"click": _this.onReplaceAll
|
|
487
533
|
}
|
|
488
|
-
},
|
|
534
|
+
}, _this.v3 ? function () {
|
|
535
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
536
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
|
|
489
537
|
} : [h(TabStrip, {
|
|
490
538
|
selected: _this.selectedTab,
|
|
491
539
|
attrs: _this.v3 ? undefined : {
|
|
@@ -507,10 +555,10 @@ var FindAndReplaceDialog = {
|
|
|
507
555
|
}, _this.v3 ? function () {
|
|
508
556
|
return [h("div", {
|
|
509
557
|
"class": "k-edit-form-container"
|
|
510
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
558
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
511
559
|
} : [h("div", {
|
|
512
560
|
"class": "k-edit-form-container"
|
|
513
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
|
|
561
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
|
|
514
562
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
515
563
|
attrs: _this.v3 ? undefined : {
|
|
516
564
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
|
|
@@ -518,10 +566,9 @@ var FindAndReplaceDialog = {
|
|
|
518
566
|
}, _this.v3 ? function () {
|
|
519
567
|
return [h("div", {
|
|
520
568
|
"class": "k-edit-form-container"
|
|
521
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
569
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
522
570
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
523
|
-
}, [h(
|
|
524
|
-
"class": "k-button",
|
|
571
|
+
}, [h(Button, {
|
|
525
572
|
disabled: !Boolean(nextMatch),
|
|
526
573
|
attrs: _this.v3 ? undefined : {
|
|
527
574
|
disabled: !Boolean(nextMatch)
|
|
@@ -530,8 +577,9 @@ var FindAndReplaceDialog = {
|
|
|
530
577
|
on: _this.v3 ? undefined : {
|
|
531
578
|
"click": _this.onReplace
|
|
532
579
|
}
|
|
533
|
-
},
|
|
534
|
-
|
|
580
|
+
}, _this.v3 ? function () {
|
|
581
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
582
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
535
583
|
disabled: !Boolean(nextMatch),
|
|
536
584
|
attrs: _this.v3 ? undefined : {
|
|
537
585
|
disabled: !Boolean(nextMatch)
|
|
@@ -540,13 +588,14 @@ var FindAndReplaceDialog = {
|
|
|
540
588
|
on: _this.v3 ? undefined : {
|
|
541
589
|
"click": _this.onReplaceAll
|
|
542
590
|
}
|
|
543
|
-
},
|
|
591
|
+
}, _this.v3 ? function () {
|
|
592
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
593
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
544
594
|
} : [h("div", {
|
|
545
595
|
"class": "k-edit-form-container"
|
|
546
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
596
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
547
597
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
548
|
-
}, [h(
|
|
549
|
-
"class": "k-button",
|
|
598
|
+
}, [h(Button, {
|
|
550
599
|
disabled: !Boolean(nextMatch),
|
|
551
600
|
attrs: _this.v3 ? undefined : {
|
|
552
601
|
disabled: !Boolean(nextMatch)
|
|
@@ -555,8 +604,9 @@ var FindAndReplaceDialog = {
|
|
|
555
604
|
on: _this.v3 ? undefined : {
|
|
556
605
|
"click": _this.onReplace
|
|
557
606
|
}
|
|
558
|
-
},
|
|
559
|
-
|
|
607
|
+
}, _this.v3 ? function () {
|
|
608
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
609
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
560
610
|
disabled: !Boolean(nextMatch),
|
|
561
611
|
attrs: _this.v3 ? undefined : {
|
|
562
612
|
disabled: !Boolean(nextMatch)
|
|
@@ -565,7 +615,9 @@ var FindAndReplaceDialog = {
|
|
|
565
615
|
on: _this.v3 ? undefined : {
|
|
566
616
|
"click": _this.onReplaceAll
|
|
567
617
|
}
|
|
568
|
-
},
|
|
618
|
+
}, _this.v3 ? function () {
|
|
619
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
620
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
569
621
|
} : [h(TabStripTab, {
|
|
570
622
|
title: localization.toLanguageString(findReplaceTabFind, messages[findReplaceTabFind]),
|
|
571
623
|
attrs: _this.v3 ? undefined : {
|
|
@@ -574,10 +626,10 @@ var FindAndReplaceDialog = {
|
|
|
574
626
|
}, _this.v3 ? function () {
|
|
575
627
|
return [h("div", {
|
|
576
628
|
"class": "k-edit-form-container"
|
|
577
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
629
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
578
630
|
} : [h("div", {
|
|
579
631
|
"class": "k-edit-form-container"
|
|
580
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
|
|
632
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
|
|
581
633
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
582
634
|
attrs: _this.v3 ? undefined : {
|
|
583
635
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
|
|
@@ -585,10 +637,9 @@ var FindAndReplaceDialog = {
|
|
|
585
637
|
}, _this.v3 ? function () {
|
|
586
638
|
return [h("div", {
|
|
587
639
|
"class": "k-edit-form-container"
|
|
588
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
640
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
589
641
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
590
|
-
}, [h(
|
|
591
|
-
"class": "k-button",
|
|
642
|
+
}, [h(Button, {
|
|
592
643
|
disabled: !Boolean(nextMatch),
|
|
593
644
|
attrs: _this.v3 ? undefined : {
|
|
594
645
|
disabled: !Boolean(nextMatch)
|
|
@@ -597,8 +648,9 @@ var FindAndReplaceDialog = {
|
|
|
597
648
|
on: _this.v3 ? undefined : {
|
|
598
649
|
"click": _this.onReplace
|
|
599
650
|
}
|
|
600
|
-
},
|
|
601
|
-
|
|
651
|
+
}, _this.v3 ? function () {
|
|
652
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
653
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
602
654
|
disabled: !Boolean(nextMatch),
|
|
603
655
|
attrs: _this.v3 ? undefined : {
|
|
604
656
|
disabled: !Boolean(nextMatch)
|
|
@@ -607,13 +659,14 @@ var FindAndReplaceDialog = {
|
|
|
607
659
|
on: _this.v3 ? undefined : {
|
|
608
660
|
"click": _this.onReplaceAll
|
|
609
661
|
}
|
|
610
|
-
},
|
|
662
|
+
}, _this.v3 ? function () {
|
|
663
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
664
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
611
665
|
} : [h("div", {
|
|
612
666
|
"class": "k-edit-form-container"
|
|
613
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
667
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
614
668
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
615
|
-
}, [h(
|
|
616
|
-
"class": "k-button",
|
|
669
|
+
}, [h(Button, {
|
|
617
670
|
disabled: !Boolean(nextMatch),
|
|
618
671
|
attrs: _this.v3 ? undefined : {
|
|
619
672
|
disabled: !Boolean(nextMatch)
|
|
@@ -622,8 +675,9 @@ var FindAndReplaceDialog = {
|
|
|
622
675
|
on: _this.v3 ? undefined : {
|
|
623
676
|
"click": _this.onReplace
|
|
624
677
|
}
|
|
625
|
-
},
|
|
626
|
-
|
|
678
|
+
}, _this.v3 ? function () {
|
|
679
|
+
return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
|
|
680
|
+
} : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
|
|
627
681
|
disabled: !Boolean(nextMatch),
|
|
628
682
|
attrs: _this.v3 ? undefined : {
|
|
629
683
|
disabled: !Boolean(nextMatch)
|
|
@@ -632,7 +686,9 @@ var FindAndReplaceDialog = {
|
|
|
632
686
|
on: _this.v3 ? undefined : {
|
|
633
687
|
"click": _this.onReplaceAll
|
|
634
688
|
}
|
|
635
|
-
},
|
|
689
|
+
}, _this.v3 ? function () {
|
|
690
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
691
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
|
|
636
692
|
); // document.body);
|
|
637
693
|
},
|
|
638
694
|
methods: {
|
|
@@ -695,7 +751,12 @@ var FindAndReplaceDialog = {
|
|
|
695
751
|
var transaction = view.state.tr.setSelection(selectionResult);
|
|
696
752
|
transaction.scrollIntoView();
|
|
697
753
|
view.updateState(view.state.apply(transaction));
|
|
754
|
+
this._prevMatch = this.nextMatch;
|
|
698
755
|
this.nextMatch = selectionResult;
|
|
756
|
+
|
|
757
|
+
if (this._prevMatch !== this.nextMatch) {
|
|
758
|
+
this.$forceUpdate();
|
|
759
|
+
}
|
|
699
760
|
}
|
|
700
761
|
},
|
|
701
762
|
onReplace: function onReplace() {
|
|
@@ -776,14 +837,16 @@ var FindAndReplaceDialog = {
|
|
|
776
837
|
var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
|
|
777
838
|
return match.from >= selection_1.from;
|
|
778
839
|
}) || this.matchCyclic && matches[0] || undefined;
|
|
840
|
+
this._prevMatch = this.nextMatch;
|
|
779
841
|
this.matches = matches;
|
|
780
842
|
this.nextMatch = nextMatch;
|
|
781
843
|
} else {
|
|
782
|
-
this.
|
|
844
|
+
this._prevMatch = this.nextMatch;
|
|
845
|
+
this.matches = [];
|
|
783
846
|
this.nextMatch = undefined;
|
|
784
847
|
}
|
|
785
848
|
}
|
|
786
849
|
}
|
|
787
850
|
};
|
|
788
|
-
var
|
|
789
|
-
export { FindAndReplaceDialog,
|
|
851
|
+
var FindAndReplaceDialog = FindAndReplaceDialogVue2;
|
|
852
|
+
export { FindAndReplaceDialog, FindAndReplaceDialogVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -45,8 +44,8 @@ export interface InsertImageDialogData {
|
|
|
45
44
|
/**
|
|
46
45
|
* @hidden
|
|
47
46
|
*/
|
|
48
|
-
export interface InsertImageDialogAll extends
|
|
47
|
+
export interface InsertImageDialogAll extends Vue2type, InsertImageDialogMethods, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogState {
|
|
49
48
|
}
|
|
50
|
-
declare let
|
|
51
|
-
declare const
|
|
52
|
-
export { InsertImageDialog,
|
|
49
|
+
declare let InsertImageDialogVue2: ComponentOptions<InsertImageDialogAll, DefaultData<InsertImageDialogData>, DefaultMethods<InsertImageDialogAll>, InsertImageDialogComputed, RecordPropsDefinition<InsertImageDialogProps>>;
|
|
50
|
+
declare const InsertImageDialog: DefineComponent<InsertImageDialogProps, any, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogMethods, {}, {}, {}, string, InsertImageDialogProps, InsertImageDialogProps, {}>;
|
|
51
|
+
export { InsertImageDialog, InsertImageDialogVue2 };
|