@progress/kendo-vue-editor 2.7.3 → 3.0.0-dev.202201141128
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 +51 -25
- package/dist/es/EditorProps.d.ts +11 -5
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/config/toolsSettings.d.ts +4 -0
- package/dist/es/dialogs/FindReplace.d.ts +6 -7
- package/dist/es/dialogs/FindReplace.js +203 -131
- 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/main.d.ts +19 -0
- package/dist/es/main.js +19 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/align.d.ts +5 -6
- package/dist/es/tools/align.js +5 -5
- package/dist/es/tools/applyColor.d.ts +5 -6
- package/dist/es/tools/applyColor.js +9 -5
- package/dist/es/tools/cleanFormatting.d.ts +5 -6
- package/dist/es/tools/cleanFormatting.js +5 -5
- package/dist/es/tools/findReplace.d.ts +5 -6
- package/dist/es/tools/findReplace.js +7 -7
- package/dist/es/tools/fontStyle.d.ts +5 -6
- package/dist/es/tools/fontStyle.js +5 -5
- package/dist/es/tools/formatBlock.d.ts +5 -6
- package/dist/es/tools/formatBlock.js +5 -5
- package/dist/es/tools/indent.d.ts +5 -6
- package/dist/es/tools/indent.js +5 -5
- package/dist/es/tools/inlineFormat.d.ts +5 -6
- package/dist/es/tools/inlineFormat.js +5 -5
- package/dist/es/tools/insertImage.d.ts +5 -6
- package/dist/es/tools/insertImage.js +5 -5
- package/dist/es/tools/insertLink.d.ts +5 -6
- package/dist/es/tools/insertLink.js +5 -5
- 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 +5 -5
- package/dist/es/tools/lists.d.ts +5 -6
- package/dist/es/tools/lists.js +5 -5
- package/dist/es/tools/outdent.d.ts +5 -6
- package/dist/es/tools/outdent.js +5 -5
- package/dist/es/tools/pdf.d.ts +5 -6
- package/dist/es/tools/pdf.js +5 -5
- package/dist/es/tools/print.d.ts +5 -6
- package/dist/es/tools/print.js +5 -5
- package/dist/es/tools/proseMirrorTool.d.ts +5 -6
- package/dist/es/tools/proseMirrorTool.js +5 -5
- package/dist/es/tools/selectAll.d.ts +5 -6
- package/dist/es/tools/selectAll.js +5 -5
- package/dist/es/tools/unlink.d.ts +5 -6
- package/dist/es/tools/unlink.js +5 -5
- package/dist/es/tools/viewHtml.d.ts +5 -6
- package/dist/es/tools/viewHtml.js +5 -5
- package/dist/npm/Editor.d.ts +49 -131
- package/dist/npm/Editor.js +52 -26
- package/dist/npm/EditorProps.d.ts +11 -5
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/config/toolsSettings.d.ts +4 -0
- package/dist/npm/dialogs/FindReplace.d.ts +6 -7
- package/dist/npm/dialogs/FindReplace.js +206 -133
- 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/main.d.ts +19 -0
- package/dist/npm/main.js +38 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/align.d.ts +5 -6
- package/dist/npm/tools/align.js +7 -7
- package/dist/npm/tools/applyColor.d.ts +5 -6
- package/dist/npm/tools/applyColor.js +11 -7
- package/dist/npm/tools/cleanFormatting.d.ts +5 -6
- package/dist/npm/tools/cleanFormatting.js +7 -7
- package/dist/npm/tools/findReplace.d.ts +5 -6
- package/dist/npm/tools/findReplace.js +9 -9
- package/dist/npm/tools/fontStyle.d.ts +5 -6
- package/dist/npm/tools/fontStyle.js +7 -7
- package/dist/npm/tools/formatBlock.d.ts +5 -6
- package/dist/npm/tools/formatBlock.js +7 -7
- package/dist/npm/tools/indent.d.ts +5 -6
- package/dist/npm/tools/indent.js +7 -7
- package/dist/npm/tools/inlineFormat.d.ts +5 -6
- package/dist/npm/tools/inlineFormat.js +7 -7
- package/dist/npm/tools/insertImage.d.ts +5 -6
- package/dist/npm/tools/insertImage.js +7 -7
- package/dist/npm/tools/insertLink.d.ts +5 -6
- package/dist/npm/tools/insertLink.js +7 -7
- 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 +7 -7
- package/dist/npm/tools/lists.d.ts +5 -6
- package/dist/npm/tools/lists.js +7 -7
- package/dist/npm/tools/outdent.d.ts +5 -6
- package/dist/npm/tools/outdent.js +7 -7
- package/dist/npm/tools/pdf.d.ts +5 -6
- package/dist/npm/tools/pdf.js +7 -7
- package/dist/npm/tools/print.d.ts +5 -6
- package/dist/npm/tools/print.js +7 -7
- package/dist/npm/tools/proseMirrorTool.d.ts +5 -6
- package/dist/npm/tools/proseMirrorTool.js +7 -7
- package/dist/npm/tools/selectAll.d.ts +5 -6
- package/dist/npm/tools/selectAll.js +7 -7
- package/dist/npm/tools/unlink.d.ts +5 -6
- package/dist/npm/tools/unlink.js +7 -7
- package/dist/npm/tools/viewHtml.d.ts +5 -6
- package/dist/npm/tools/viewHtml.js +7 -7
- package/package.json +12 -12
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.FindAndReplaceDialogVue2 = exports.FindAndReplaceDialog = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
|
|
13
|
+
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
14
|
+
|
|
13
15
|
var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
|
|
14
16
|
|
|
15
17
|
var kendo_vue_layout_1 = require("@progress/kendo-vue-layout");
|
|
@@ -28,7 +30,7 @@ var enter = 13,
|
|
|
28
30
|
esc = 27;
|
|
29
31
|
var settings = toolsSettings_1.EditorToolsSettings.findAndReplace; // tslint:enable:max-line-length
|
|
30
32
|
|
|
31
|
-
var
|
|
33
|
+
var FindAndReplaceDialogVue2 = {
|
|
32
34
|
name: 'KendoFindAndReplaceDialog',
|
|
33
35
|
props: {
|
|
34
36
|
view: Object,
|
|
@@ -45,6 +47,10 @@ var FindAndReplaceDialog = {
|
|
|
45
47
|
default: null
|
|
46
48
|
}
|
|
47
49
|
},
|
|
50
|
+
created: function created() {
|
|
51
|
+
this._prevMatch = undefined;
|
|
52
|
+
this.nextMatch = undefined;
|
|
53
|
+
},
|
|
48
54
|
data: function data() {
|
|
49
55
|
return {
|
|
50
56
|
selectedTab: 0,
|
|
@@ -54,24 +60,26 @@ var FindAndReplaceDialog = {
|
|
|
54
60
|
matchWord: false,
|
|
55
61
|
matchCyclic: false,
|
|
56
62
|
useRegExp: false,
|
|
57
|
-
|
|
63
|
+
matches: [],
|
|
64
|
+
hasMounted: false
|
|
58
65
|
};
|
|
59
66
|
},
|
|
60
67
|
mounted: function mounted() {
|
|
61
68
|
if (this.$el) {
|
|
62
69
|
document.body.append(this.$el);
|
|
63
70
|
}
|
|
71
|
+
|
|
72
|
+
this.setNextState();
|
|
73
|
+
this.hasMounted = true;
|
|
64
74
|
},
|
|
65
75
|
|
|
66
76
|
/**
|
|
67
77
|
* @hidden
|
|
68
78
|
*/
|
|
69
79
|
updated: function updated() {
|
|
80
|
+
var matches = this.matches || [];
|
|
81
|
+
var nextMatch = this.nextMatch;
|
|
70
82
|
var view = this.$props.view;
|
|
71
|
-
var _a = this.$data,
|
|
72
|
-
_b = _a.matches,
|
|
73
|
-
matches = _b === void 0 ? [] : _b,
|
|
74
|
-
nextMatch = _a.nextMatch;
|
|
75
83
|
|
|
76
84
|
if (this._prevMatch !== nextMatch) {
|
|
77
85
|
var state = view.state; // highlight selection
|
|
@@ -103,11 +111,6 @@ var FindAndReplaceDialog = {
|
|
|
103
111
|
this.$el.remove();
|
|
104
112
|
}
|
|
105
113
|
},
|
|
106
|
-
watch: {
|
|
107
|
-
nextMatch: function nextMatch(_newNextMatch, oldMatch) {
|
|
108
|
-
this._prevMatch = oldMatch;
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
114
|
// @ts-ignore
|
|
112
115
|
setup: !gh ? undefined : function () {
|
|
113
116
|
var v3 = !!gh;
|
|
@@ -149,7 +152,7 @@ var FindAndReplaceDialog = {
|
|
|
149
152
|
var checkboxes = h("div", {
|
|
150
153
|
"class": "k-search-options"
|
|
151
154
|
}, [h("span", [h("input", {
|
|
152
|
-
"class": "k-checkbox",
|
|
155
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
153
156
|
type: "checkbox",
|
|
154
157
|
attrs: this.v3 ? undefined : {
|
|
155
158
|
type: "checkbox",
|
|
@@ -171,7 +174,7 @@ var FindAndReplaceDialog = {
|
|
|
171
174
|
},
|
|
172
175
|
"class": "k-checkbox-label"
|
|
173
176
|
}, [localization.toLanguageString(findReplaceMatchCase, messages_1.messages[findReplaceMatchCase])])]), h("span", [h("input", {
|
|
174
|
-
"class": "k-checkbox",
|
|
177
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
175
178
|
type: "checkbox",
|
|
176
179
|
attrs: this.v3 ? undefined : {
|
|
177
180
|
type: "checkbox",
|
|
@@ -193,7 +196,7 @@ var FindAndReplaceDialog = {
|
|
|
193
196
|
},
|
|
194
197
|
"class": "k-checkbox-label"
|
|
195
198
|
}, [localization.toLanguageString(findReplaceMatchWord, messages_1.messages[findReplaceMatchWord])])]), h("span", [h("input", {
|
|
196
|
-
"class": "k-checkbox",
|
|
199
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
197
200
|
type: "checkbox",
|
|
198
201
|
attrs: this.v3 ? undefined : {
|
|
199
202
|
type: "checkbox",
|
|
@@ -215,7 +218,7 @@ var FindAndReplaceDialog = {
|
|
|
215
218
|
},
|
|
216
219
|
"class": "k-checkbox-label"
|
|
217
220
|
}, [localization.toLanguageString(findReplaceMatchCyclic, messages_1.messages[findReplaceMatchCyclic])])]), h("span", [h("input", {
|
|
218
|
-
"class": "k-checkbox",
|
|
221
|
+
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
219
222
|
type: "checkbox",
|
|
220
223
|
attrs: this.v3 ? undefined : {
|
|
221
224
|
type: "checkbox",
|
|
@@ -237,58 +240,95 @@ var FindAndReplaceDialog = {
|
|
|
237
240
|
},
|
|
238
241
|
"class": "k-checkbox-label"
|
|
239
242
|
}, [localization.toLanguageString(findReplaceUseRegExp, messages_1.messages[findReplaceUseRegExp])])])]);
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
243
|
+
|
|
244
|
+
var navigation = function navigation(findWhatRef) {
|
|
245
|
+
var isRtl = this.$props.dir === 'rtl';
|
|
246
|
+
var prevButton = // @ts-ignore function children
|
|
247
|
+
h(kendo_vue_buttons_1.Button, {
|
|
248
|
+
fillMode: 'flat',
|
|
249
|
+
attrs: this.v3 ? undefined : {
|
|
250
|
+
fillMode: 'flat',
|
|
251
|
+
themeColor: 'primary'
|
|
252
|
+
},
|
|
253
|
+
themeColor: 'primary',
|
|
254
|
+
onClick: this.onFindPrev,
|
|
255
|
+
on: this.v3 ? undefined : {
|
|
256
|
+
"click": this.onFindPrev
|
|
257
|
+
}
|
|
258
|
+
}, this.v3 ? function () {
|
|
259
|
+
return [h("span", {
|
|
260
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
|
|
261
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])];
|
|
262
|
+
} : [h("span", {
|
|
263
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
|
|
264
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])]);
|
|
265
|
+
var nextButton = // @ts-ignore function children
|
|
266
|
+
h(kendo_vue_buttons_1.Button, {
|
|
267
|
+
fillMode: 'flat',
|
|
268
|
+
attrs: this.v3 ? undefined : {
|
|
269
|
+
fillMode: 'flat',
|
|
270
|
+
themeColor: 'primary'
|
|
271
|
+
},
|
|
272
|
+
themeColor: 'primary',
|
|
273
|
+
onClick: this.onFindNext,
|
|
274
|
+
on: this.v3 ? undefined : {
|
|
275
|
+
"click": this.onFindNext
|
|
276
|
+
}
|
|
277
|
+
}, this.v3 ? function () {
|
|
278
|
+
return [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
|
|
279
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
|
|
280
|
+
})];
|
|
281
|
+
} : [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
|
|
282
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
|
|
283
|
+
})]);
|
|
284
|
+
return h("div", {
|
|
285
|
+
"class": "k-matches-container"
|
|
286
|
+
}, [prevButton, this.hasMounted && h("span", {
|
|
287
|
+
ref: findWhatRef
|
|
288
|
+
}, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))]), nextButton]);
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
var findWhatLabel = function findWhatLabel(findWhatId) {
|
|
292
|
+
return h("div", {
|
|
293
|
+
"class": "k-edit-label"
|
|
294
|
+
}, [h("label", {
|
|
295
|
+
ref: findWhatId,
|
|
296
|
+
"for": findWhatId,
|
|
297
|
+
attrs: this.v3 ? undefined : {
|
|
298
|
+
"for": findWhatId
|
|
299
|
+
}
|
|
300
|
+
}, [localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])])]);
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
var findWhat = function findWhat(findWhatId) {
|
|
304
|
+
return h("div", {
|
|
305
|
+
"class": "k-edit-field"
|
|
306
|
+
}, [h("span", {
|
|
307
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
308
|
+
}, [h("input", {
|
|
309
|
+
id: findWhatId,
|
|
310
|
+
attrs: this.v3 ? undefined : {
|
|
311
|
+
id: findWhatId,
|
|
312
|
+
type: "text"
|
|
313
|
+
},
|
|
314
|
+
ref: findWhatId,
|
|
273
315
|
type: "text",
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
autoFocus: true
|
|
291
|
-
})]);
|
|
316
|
+
"class": "k-input-inner",
|
|
317
|
+
value: this.v3 ? searchText : null,
|
|
318
|
+
domProps: this.v3 ? undefined : {
|
|
319
|
+
"value": searchText
|
|
320
|
+
},
|
|
321
|
+
onInput: this.onSearchChange,
|
|
322
|
+
on: this.v3 ? undefined : {
|
|
323
|
+
"input": this.onSearchChange,
|
|
324
|
+
"focus": this.onSearchChange,
|
|
325
|
+
"keydown": this.onKeyDown
|
|
326
|
+
},
|
|
327
|
+
onFocus: this.onSearchChange,
|
|
328
|
+
onKeydown: this.onKeyDown
|
|
329
|
+
})])]);
|
|
330
|
+
};
|
|
331
|
+
|
|
292
332
|
var replaceWithLabel = h("div", {
|
|
293
333
|
"class": "k-edit-label"
|
|
294
334
|
}, [h("label", {
|
|
@@ -299,13 +339,15 @@ var FindAndReplaceDialog = {
|
|
|
299
339
|
}, [localization.toLanguageString(findReplaceReplaceWith, messages_1.messages[findReplaceReplaceWith])])]);
|
|
300
340
|
var replaceWith = h("div", {
|
|
301
341
|
"class": "k-edit-field"
|
|
342
|
+
}, [h("span", {
|
|
343
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
302
344
|
}, [h("input", {
|
|
303
345
|
id: "replaceWith",
|
|
304
346
|
attrs: this.v3 ? undefined : {
|
|
305
347
|
id: "replaceWith",
|
|
306
348
|
type: "text"
|
|
307
349
|
},
|
|
308
|
-
"class": "k-
|
|
350
|
+
"class": "k-input-inner",
|
|
309
351
|
type: "text",
|
|
310
352
|
value: this.v3 ? replaceText : null,
|
|
311
353
|
domProps: this.v3 ? undefined : {
|
|
@@ -315,7 +357,7 @@ var FindAndReplaceDialog = {
|
|
|
315
357
|
on: this.v3 ? undefined : {
|
|
316
358
|
"input": this.onReplaceChange
|
|
317
359
|
}
|
|
318
|
-
})]);
|
|
360
|
+
})])]);
|
|
319
361
|
return (// @ts-ignore function children
|
|
320
362
|
h(kendo_vue_dialogs_1.Window, {
|
|
321
363
|
title: localization.toLanguageString(findReplaceDialogTitle, messages_1.messages[findReplaceDialogTitle]),
|
|
@@ -332,7 +374,8 @@ var FindAndReplaceDialog = {
|
|
|
332
374
|
},
|
|
333
375
|
maximizeButton: function maximizeButton() {
|
|
334
376
|
return null;
|
|
335
|
-
}
|
|
377
|
+
},
|
|
378
|
+
dir: this.$props.dir
|
|
336
379
|
},
|
|
337
380
|
onClose: this.onClose,
|
|
338
381
|
on: this.v3 ? undefined : {
|
|
@@ -349,15 +392,18 @@ var FindAndReplaceDialog = {
|
|
|
349
392
|
},
|
|
350
393
|
maximizeButton: function maximizeButton() {
|
|
351
394
|
return null;
|
|
352
|
-
}
|
|
395
|
+
},
|
|
396
|
+
dir: this.$props.dir
|
|
353
397
|
}, this.v3 ? function () {
|
|
354
398
|
return [// @ts-ignore function children
|
|
355
399
|
h(kendo_vue_layout_1.TabStrip, {
|
|
356
|
-
|
|
400
|
+
dir: _this.$props.dir,
|
|
357
401
|
attrs: _this.v3 ? undefined : {
|
|
402
|
+
dir: _this.$props.dir,
|
|
358
403
|
selected: _this.selectedTab,
|
|
359
404
|
animation: false
|
|
360
405
|
},
|
|
406
|
+
selected: _this.selectedTab,
|
|
361
407
|
"class": "k-editor-find-replace",
|
|
362
408
|
onSelect: _this.onTabSelect,
|
|
363
409
|
on: _this.v3 ? undefined : {
|
|
@@ -374,10 +420,10 @@ var FindAndReplaceDialog = {
|
|
|
374
420
|
}, _this.v3 ? function () {
|
|
375
421
|
return [h("div", {
|
|
376
422
|
"class": "k-edit-form-container"
|
|
377
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
423
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
378
424
|
} : [h("div", {
|
|
379
425
|
"class": "k-edit-form-container"
|
|
380
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
|
|
426
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
|
|
381
427
|
h(kendo_vue_layout_1.TabStripTab, {
|
|
382
428
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
383
429
|
attrs: _this.v3 ? undefined : {
|
|
@@ -386,10 +432,10 @@ var FindAndReplaceDialog = {
|
|
|
386
432
|
}, _this.v3 ? function () {
|
|
387
433
|
return [h("div", {
|
|
388
434
|
"class": "k-edit-form-container"
|
|
389
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
435
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
390
436
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
391
|
-
}, [
|
|
392
|
-
|
|
437
|
+
}, [// @ts-ignore function children
|
|
438
|
+
h(kendo_vue_buttons_1.Button, {
|
|
393
439
|
disabled: !Boolean(nextMatch),
|
|
394
440
|
attrs: _this.v3 ? undefined : {
|
|
395
441
|
disabled: !Boolean(nextMatch)
|
|
@@ -398,8 +444,10 @@ var FindAndReplaceDialog = {
|
|
|
398
444
|
on: _this.v3 ? undefined : {
|
|
399
445
|
"click": _this.onReplace
|
|
400
446
|
}
|
|
401
|
-
},
|
|
402
|
-
|
|
447
|
+
}, _this.v3 ? function () {
|
|
448
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
449
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), // @ts-ignore function children
|
|
450
|
+
h(kendo_vue_buttons_1.Button, {
|
|
403
451
|
disabled: !Boolean(nextMatch),
|
|
404
452
|
attrs: _this.v3 ? undefined : {
|
|
405
453
|
disabled: !Boolean(nextMatch)
|
|
@@ -408,13 +456,14 @@ var FindAndReplaceDialog = {
|
|
|
408
456
|
on: _this.v3 ? undefined : {
|
|
409
457
|
"click": _this.onReplaceAll
|
|
410
458
|
}
|
|
411
|
-
},
|
|
459
|
+
}, _this.v3 ? function () {
|
|
460
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
461
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
412
462
|
} : [h("div", {
|
|
413
463
|
"class": "k-edit-form-container"
|
|
414
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
464
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
415
465
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
416
|
-
}, [h(
|
|
417
|
-
"class": "k-button",
|
|
466
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
418
467
|
disabled: !Boolean(nextMatch),
|
|
419
468
|
attrs: _this.v3 ? undefined : {
|
|
420
469
|
disabled: !Boolean(nextMatch)
|
|
@@ -423,8 +472,9 @@ var FindAndReplaceDialog = {
|
|
|
423
472
|
on: _this.v3 ? undefined : {
|
|
424
473
|
"click": _this.onReplace
|
|
425
474
|
}
|
|
426
|
-
},
|
|
427
|
-
|
|
475
|
+
}, _this.v3 ? function () {
|
|
476
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
477
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
428
478
|
disabled: !Boolean(nextMatch),
|
|
429
479
|
attrs: _this.v3 ? undefined : {
|
|
430
480
|
disabled: !Boolean(nextMatch)
|
|
@@ -433,7 +483,9 @@ var FindAndReplaceDialog = {
|
|
|
433
483
|
on: _this.v3 ? undefined : {
|
|
434
484
|
"click": _this.onReplaceAll
|
|
435
485
|
}
|
|
436
|
-
},
|
|
486
|
+
}, _this.v3 ? function () {
|
|
487
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
488
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
437
489
|
} : [h(kendo_vue_layout_1.TabStripTab, {
|
|
438
490
|
title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
|
|
439
491
|
attrs: _this.v3 ? undefined : {
|
|
@@ -442,10 +494,10 @@ var FindAndReplaceDialog = {
|
|
|
442
494
|
}, _this.v3 ? function () {
|
|
443
495
|
return [h("div", {
|
|
444
496
|
"class": "k-edit-form-container"
|
|
445
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
497
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
446
498
|
} : [h("div", {
|
|
447
499
|
"class": "k-edit-form-container"
|
|
448
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
|
|
500
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
|
|
449
501
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
450
502
|
attrs: _this.v3 ? undefined : {
|
|
451
503
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
|
|
@@ -453,10 +505,9 @@ var FindAndReplaceDialog = {
|
|
|
453
505
|
}, _this.v3 ? function () {
|
|
454
506
|
return [h("div", {
|
|
455
507
|
"class": "k-edit-form-container"
|
|
456
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
508
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
457
509
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
458
|
-
}, [h(
|
|
459
|
-
"class": "k-button",
|
|
510
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
460
511
|
disabled: !Boolean(nextMatch),
|
|
461
512
|
attrs: _this.v3 ? undefined : {
|
|
462
513
|
disabled: !Boolean(nextMatch)
|
|
@@ -465,8 +516,9 @@ var FindAndReplaceDialog = {
|
|
|
465
516
|
on: _this.v3 ? undefined : {
|
|
466
517
|
"click": _this.onReplace
|
|
467
518
|
}
|
|
468
|
-
},
|
|
469
|
-
|
|
519
|
+
}, _this.v3 ? function () {
|
|
520
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
521
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
470
522
|
disabled: !Boolean(nextMatch),
|
|
471
523
|
attrs: _this.v3 ? undefined : {
|
|
472
524
|
disabled: !Boolean(nextMatch)
|
|
@@ -475,13 +527,14 @@ var FindAndReplaceDialog = {
|
|
|
475
527
|
on: _this.v3 ? undefined : {
|
|
476
528
|
"click": _this.onReplaceAll
|
|
477
529
|
}
|
|
478
|
-
},
|
|
530
|
+
}, _this.v3 ? function () {
|
|
531
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
532
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
479
533
|
} : [h("div", {
|
|
480
534
|
"class": "k-edit-form-container"
|
|
481
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
535
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
482
536
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
483
|
-
}, [h(
|
|
484
|
-
"class": "k-button",
|
|
537
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
485
538
|
disabled: !Boolean(nextMatch),
|
|
486
539
|
attrs: _this.v3 ? undefined : {
|
|
487
540
|
disabled: !Boolean(nextMatch)
|
|
@@ -490,8 +543,9 @@ var FindAndReplaceDialog = {
|
|
|
490
543
|
on: _this.v3 ? undefined : {
|
|
491
544
|
"click": _this.onReplace
|
|
492
545
|
}
|
|
493
|
-
},
|
|
494
|
-
|
|
546
|
+
}, _this.v3 ? function () {
|
|
547
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
548
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
495
549
|
disabled: !Boolean(nextMatch),
|
|
496
550
|
attrs: _this.v3 ? undefined : {
|
|
497
551
|
disabled: !Boolean(nextMatch)
|
|
@@ -500,13 +554,17 @@ var FindAndReplaceDialog = {
|
|
|
500
554
|
on: _this.v3 ? undefined : {
|
|
501
555
|
"click": _this.onReplaceAll
|
|
502
556
|
}
|
|
503
|
-
},
|
|
557
|
+
}, _this.v3 ? function () {
|
|
558
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
559
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
|
|
504
560
|
} : [h(kendo_vue_layout_1.TabStrip, {
|
|
505
|
-
|
|
561
|
+
dir: _this.$props.dir,
|
|
506
562
|
attrs: _this.v3 ? undefined : {
|
|
563
|
+
dir: _this.$props.dir,
|
|
507
564
|
selected: _this.selectedTab,
|
|
508
565
|
animation: false
|
|
509
566
|
},
|
|
567
|
+
selected: _this.selectedTab,
|
|
510
568
|
"class": "k-editor-find-replace",
|
|
511
569
|
onSelect: _this.onTabSelect,
|
|
512
570
|
on: _this.v3 ? undefined : {
|
|
@@ -522,10 +580,10 @@ var FindAndReplaceDialog = {
|
|
|
522
580
|
}, _this.v3 ? function () {
|
|
523
581
|
return [h("div", {
|
|
524
582
|
"class": "k-edit-form-container"
|
|
525
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
583
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
526
584
|
} : [h("div", {
|
|
527
585
|
"class": "k-edit-form-container"
|
|
528
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
|
|
586
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
|
|
529
587
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
530
588
|
attrs: _this.v3 ? undefined : {
|
|
531
589
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
|
|
@@ -533,10 +591,9 @@ var FindAndReplaceDialog = {
|
|
|
533
591
|
}, _this.v3 ? function () {
|
|
534
592
|
return [h("div", {
|
|
535
593
|
"class": "k-edit-form-container"
|
|
536
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
594
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
537
595
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
538
|
-
}, [h(
|
|
539
|
-
"class": "k-button",
|
|
596
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
540
597
|
disabled: !Boolean(nextMatch),
|
|
541
598
|
attrs: _this.v3 ? undefined : {
|
|
542
599
|
disabled: !Boolean(nextMatch)
|
|
@@ -545,8 +602,9 @@ var FindAndReplaceDialog = {
|
|
|
545
602
|
on: _this.v3 ? undefined : {
|
|
546
603
|
"click": _this.onReplace
|
|
547
604
|
}
|
|
548
|
-
},
|
|
549
|
-
|
|
605
|
+
}, _this.v3 ? function () {
|
|
606
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
607
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
550
608
|
disabled: !Boolean(nextMatch),
|
|
551
609
|
attrs: _this.v3 ? undefined : {
|
|
552
610
|
disabled: !Boolean(nextMatch)
|
|
@@ -555,13 +613,14 @@ var FindAndReplaceDialog = {
|
|
|
555
613
|
on: _this.v3 ? undefined : {
|
|
556
614
|
"click": _this.onReplaceAll
|
|
557
615
|
}
|
|
558
|
-
},
|
|
616
|
+
}, _this.v3 ? function () {
|
|
617
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
618
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
559
619
|
} : [h("div", {
|
|
560
620
|
"class": "k-edit-form-container"
|
|
561
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
621
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
562
622
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
563
|
-
}, [h(
|
|
564
|
-
"class": "k-button",
|
|
623
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
565
624
|
disabled: !Boolean(nextMatch),
|
|
566
625
|
attrs: _this.v3 ? undefined : {
|
|
567
626
|
disabled: !Boolean(nextMatch)
|
|
@@ -570,8 +629,9 @@ var FindAndReplaceDialog = {
|
|
|
570
629
|
on: _this.v3 ? undefined : {
|
|
571
630
|
"click": _this.onReplace
|
|
572
631
|
}
|
|
573
|
-
},
|
|
574
|
-
|
|
632
|
+
}, _this.v3 ? function () {
|
|
633
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
634
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
575
635
|
disabled: !Boolean(nextMatch),
|
|
576
636
|
attrs: _this.v3 ? undefined : {
|
|
577
637
|
disabled: !Boolean(nextMatch)
|
|
@@ -580,7 +640,9 @@ var FindAndReplaceDialog = {
|
|
|
580
640
|
on: _this.v3 ? undefined : {
|
|
581
641
|
"click": _this.onReplaceAll
|
|
582
642
|
}
|
|
583
|
-
},
|
|
643
|
+
}, _this.v3 ? function () {
|
|
644
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
645
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
584
646
|
} : [h(kendo_vue_layout_1.TabStripTab, {
|
|
585
647
|
title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
|
|
586
648
|
attrs: _this.v3 ? undefined : {
|
|
@@ -589,10 +651,10 @@ var FindAndReplaceDialog = {
|
|
|
589
651
|
}, _this.v3 ? function () {
|
|
590
652
|
return [h("div", {
|
|
591
653
|
"class": "k-edit-form-container"
|
|
592
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
654
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
593
655
|
} : [h("div", {
|
|
594
656
|
"class": "k-edit-form-container"
|
|
595
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
|
|
657
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
|
|
596
658
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
597
659
|
attrs: _this.v3 ? undefined : {
|
|
598
660
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
|
|
@@ -600,10 +662,9 @@ var FindAndReplaceDialog = {
|
|
|
600
662
|
}, _this.v3 ? function () {
|
|
601
663
|
return [h("div", {
|
|
602
664
|
"class": "k-edit-form-container"
|
|
603
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
665
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
604
666
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
605
|
-
}, [h(
|
|
606
|
-
"class": "k-button",
|
|
667
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
607
668
|
disabled: !Boolean(nextMatch),
|
|
608
669
|
attrs: _this.v3 ? undefined : {
|
|
609
670
|
disabled: !Boolean(nextMatch)
|
|
@@ -612,8 +673,9 @@ var FindAndReplaceDialog = {
|
|
|
612
673
|
on: _this.v3 ? undefined : {
|
|
613
674
|
"click": _this.onReplace
|
|
614
675
|
}
|
|
615
|
-
},
|
|
616
|
-
|
|
676
|
+
}, _this.v3 ? function () {
|
|
677
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
678
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
617
679
|
disabled: !Boolean(nextMatch),
|
|
618
680
|
attrs: _this.v3 ? undefined : {
|
|
619
681
|
disabled: !Boolean(nextMatch)
|
|
@@ -622,13 +684,14 @@ var FindAndReplaceDialog = {
|
|
|
622
684
|
on: _this.v3 ? undefined : {
|
|
623
685
|
"click": _this.onReplaceAll
|
|
624
686
|
}
|
|
625
|
-
},
|
|
687
|
+
}, _this.v3 ? function () {
|
|
688
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
689
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
626
690
|
} : [h("div", {
|
|
627
691
|
"class": "k-edit-form-container"
|
|
628
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
692
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
629
693
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
630
|
-
}, [h(
|
|
631
|
-
"class": "k-button",
|
|
694
|
+
}, [h(kendo_vue_buttons_1.Button, {
|
|
632
695
|
disabled: !Boolean(nextMatch),
|
|
633
696
|
attrs: _this.v3 ? undefined : {
|
|
634
697
|
disabled: !Boolean(nextMatch)
|
|
@@ -637,8 +700,9 @@ var FindAndReplaceDialog = {
|
|
|
637
700
|
on: _this.v3 ? undefined : {
|
|
638
701
|
"click": _this.onReplace
|
|
639
702
|
}
|
|
640
|
-
},
|
|
641
|
-
|
|
703
|
+
}, _this.v3 ? function () {
|
|
704
|
+
return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
|
|
705
|
+
} : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
|
|
642
706
|
disabled: !Boolean(nextMatch),
|
|
643
707
|
attrs: _this.v3 ? undefined : {
|
|
644
708
|
disabled: !Boolean(nextMatch)
|
|
@@ -647,7 +711,9 @@ var FindAndReplaceDialog = {
|
|
|
647
711
|
on: _this.v3 ? undefined : {
|
|
648
712
|
"click": _this.onReplaceAll
|
|
649
713
|
}
|
|
650
|
-
},
|
|
714
|
+
}, _this.v3 ? function () {
|
|
715
|
+
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
716
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
|
|
651
717
|
); // document.body);
|
|
652
718
|
},
|
|
653
719
|
methods: {
|
|
@@ -710,7 +776,12 @@ var FindAndReplaceDialog = {
|
|
|
710
776
|
var transaction = view.state.tr.setSelection(selectionResult);
|
|
711
777
|
transaction.scrollIntoView();
|
|
712
778
|
view.updateState(view.state.apply(transaction));
|
|
779
|
+
this._prevMatch = this.nextMatch;
|
|
713
780
|
this.nextMatch = selectionResult;
|
|
781
|
+
|
|
782
|
+
if (this._prevMatch !== this.nextMatch) {
|
|
783
|
+
this.$forceUpdate();
|
|
784
|
+
}
|
|
714
785
|
}
|
|
715
786
|
},
|
|
716
787
|
onReplace: function onReplace() {
|
|
@@ -791,15 +862,17 @@ var FindAndReplaceDialog = {
|
|
|
791
862
|
var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
|
|
792
863
|
return match.from >= selection_1.from;
|
|
793
864
|
}) || this.matchCyclic && matches[0] || undefined;
|
|
865
|
+
this._prevMatch = this.nextMatch;
|
|
794
866
|
this.matches = matches;
|
|
795
867
|
this.nextMatch = nextMatch;
|
|
796
868
|
} else {
|
|
797
|
-
this.
|
|
869
|
+
this._prevMatch = this.nextMatch;
|
|
870
|
+
this.matches = [];
|
|
798
871
|
this.nextMatch = undefined;
|
|
799
872
|
}
|
|
800
873
|
}
|
|
801
874
|
}
|
|
802
875
|
};
|
|
803
|
-
exports.
|
|
804
|
-
var
|
|
805
|
-
exports.
|
|
876
|
+
exports.FindAndReplaceDialogVue2 = FindAndReplaceDialogVue2;
|
|
877
|
+
var FindAndReplaceDialog = FindAndReplaceDialogVue2;
|
|
878
|
+
exports.FindAndReplaceDialog = FindAndReplaceDialog;
|