@progress/kendo-vue-editor 2.8.0-dev.202201121019 → 3.0.0-dev.202201170830
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.js +37 -27
- package/dist/es/config/toolsSettings.d.ts +4 -0
- package/dist/es/dialogs/FindReplace.d.ts +1 -1
- package/dist/es/dialogs/FindReplace.js +148 -111
- package/dist/es/dialogs/insertImage.js +10 -4
- package/dist/es/dialogs/insertLink.js +10 -4
- package/dist/es/dialogs/viewHtml.js +0 -4
- 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.js +2 -2
- package/dist/es/tools/applyColor.js +6 -2
- package/dist/es/tools/cleanFormatting.js +2 -2
- package/dist/es/tools/findReplace.js +4 -4
- package/dist/es/tools/fontStyle.js +7 -8
- package/dist/es/tools/formatBlock.js +9 -7
- package/dist/es/tools/indent.js +2 -2
- package/dist/es/tools/inlineFormat.js +2 -2
- package/dist/es/tools/insertImage.js +2 -2
- package/dist/es/tools/insertLink.js +2 -2
- package/dist/es/tools/insertTable/tool.js +2 -2
- package/dist/es/tools/lists.js +2 -2
- package/dist/es/tools/outdent.js +2 -2
- package/dist/es/tools/pdf.js +2 -2
- package/dist/es/tools/print.js +2 -2
- package/dist/es/tools/proseMirrorTool.js +2 -2
- package/dist/es/tools/selectAll.js +2 -2
- package/dist/es/tools/unlink.js +2 -2
- package/dist/es/tools/viewHtml.js +2 -2
- package/dist/npm/Editor.js +36 -26
- package/dist/npm/config/toolsSettings.d.ts +4 -0
- package/dist/npm/dialogs/FindReplace.d.ts +1 -1
- package/dist/npm/dialogs/FindReplace.js +148 -111
- package/dist/npm/dialogs/insertImage.js +10 -4
- package/dist/npm/dialogs/insertLink.js +10 -4
- package/dist/npm/dialogs/viewHtml.js +0 -4
- 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.js +2 -2
- package/dist/npm/tools/applyColor.js +6 -2
- package/dist/npm/tools/cleanFormatting.js +2 -2
- package/dist/npm/tools/findReplace.js +4 -4
- package/dist/npm/tools/fontStyle.js +7 -8
- package/dist/npm/tools/formatBlock.js +9 -7
- package/dist/npm/tools/indent.js +2 -2
- package/dist/npm/tools/inlineFormat.js +2 -2
- package/dist/npm/tools/insertImage.js +2 -2
- package/dist/npm/tools/insertLink.js +2 -2
- package/dist/npm/tools/insertTable/tool.js +2 -2
- package/dist/npm/tools/lists.js +2 -2
- package/dist/npm/tools/outdent.js +2 -2
- package/dist/npm/tools/pdf.js +2 -2
- package/dist/npm/tools/print.js +2 -2
- package/dist/npm/tools/proseMirrorTool.js +2 -2
- package/dist/npm/tools/selectAll.js +2 -2
- package/dist/npm/tools/unlink.js +2 -2
- package/dist/npm/tools/viewHtml.js +2 -2
- package/package.json +12 -12
|
@@ -16,6 +16,10 @@ var settings = EditorToolsSettings.findAndReplace; // tslint:enable:max-line-len
|
|
|
16
16
|
|
|
17
17
|
var FindAndReplaceDialogVue2 = {
|
|
18
18
|
name: 'KendoFindAndReplaceDialog',
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
emits: {
|
|
21
|
+
close: null
|
|
22
|
+
},
|
|
19
23
|
props: {
|
|
20
24
|
view: Object,
|
|
21
25
|
settings: {
|
|
@@ -32,7 +36,8 @@ var FindAndReplaceDialogVue2 = {
|
|
|
32
36
|
}
|
|
33
37
|
},
|
|
34
38
|
created: function created() {
|
|
35
|
-
this.
|
|
39
|
+
this._prevMatch = undefined;
|
|
40
|
+
this.nextMatch = undefined;
|
|
36
41
|
},
|
|
37
42
|
data: function data() {
|
|
38
43
|
return {
|
|
@@ -43,24 +48,33 @@ var FindAndReplaceDialogVue2 = {
|
|
|
43
48
|
matchWord: false,
|
|
44
49
|
matchCyclic: false,
|
|
45
50
|
useRegExp: false,
|
|
46
|
-
|
|
51
|
+
matches: [],
|
|
52
|
+
hasMounted: false
|
|
47
53
|
};
|
|
48
54
|
},
|
|
49
55
|
mounted: function mounted() {
|
|
50
56
|
if (this.$el) {
|
|
51
57
|
document.body.append(this.$el);
|
|
52
58
|
}
|
|
59
|
+
|
|
60
|
+
this.setNextState();
|
|
61
|
+
this.hasMounted = true;
|
|
62
|
+
setTimeout(function () {
|
|
63
|
+
var findInput = document.getElementById('findWhatFind');
|
|
64
|
+
|
|
65
|
+
if (findInput) {
|
|
66
|
+
findInput.focus();
|
|
67
|
+
}
|
|
68
|
+
}, 10);
|
|
53
69
|
},
|
|
54
70
|
|
|
55
71
|
/**
|
|
56
72
|
* @hidden
|
|
57
73
|
*/
|
|
58
74
|
updated: function updated() {
|
|
75
|
+
var matches = this.matches || [];
|
|
76
|
+
var nextMatch = this.nextMatch;
|
|
59
77
|
var view = this.$props.view;
|
|
60
|
-
var _a = this.$data,
|
|
61
|
-
_b = _a.matches,
|
|
62
|
-
matches = _b === void 0 ? [] : _b,
|
|
63
|
-
nextMatch = _a.nextMatch;
|
|
64
78
|
|
|
65
79
|
if (this._prevMatch !== nextMatch) {
|
|
66
80
|
var state = view.state; // highlight selection
|
|
@@ -92,11 +106,6 @@ var FindAndReplaceDialogVue2 = {
|
|
|
92
106
|
this.$el.remove();
|
|
93
107
|
}
|
|
94
108
|
},
|
|
95
|
-
watch: {
|
|
96
|
-
nextMatch: function nextMatch(_newNextMatch, oldMatch) {
|
|
97
|
-
this._prevMatch = oldMatch;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
109
|
// @ts-ignore
|
|
101
110
|
setup: !gh ? undefined : function () {
|
|
102
111
|
var v3 = !!gh;
|
|
@@ -226,80 +235,95 @@ var FindAndReplaceDialogVue2 = {
|
|
|
226
235
|
},
|
|
227
236
|
"class": "k-checkbox-label"
|
|
228
237
|
}, [localization.toLanguageString(findReplaceUseRegExp, messages[findReplaceUseRegExp])])])]);
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
attrs: this.v3 ? undefined : {
|
|
238
|
+
|
|
239
|
+
var navigation = function navigation(findWhatRef) {
|
|
240
|
+
var isRtl = this.$props.dir === 'rtl';
|
|
241
|
+
var prevButton = // @ts-ignore function children
|
|
242
|
+
h(Button, {
|
|
235
243
|
fillMode: 'flat',
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
244
|
+
attrs: this.v3 ? undefined : {
|
|
245
|
+
fillMode: 'flat',
|
|
246
|
+
themeColor: 'primary'
|
|
247
|
+
},
|
|
248
|
+
themeColor: 'primary',
|
|
249
|
+
onClick: this.onFindPrev,
|
|
250
|
+
on: this.v3 ? undefined : {
|
|
251
|
+
"click": this.onFindPrev
|
|
252
|
+
}
|
|
253
|
+
}, this.v3 ? function () {
|
|
254
|
+
return [h("span", {
|
|
255
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
|
|
256
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])];
|
|
257
|
+
} : [h("span", {
|
|
258
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
|
|
259
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])]);
|
|
260
|
+
var nextButton = // @ts-ignore function children
|
|
261
|
+
h(Button, {
|
|
253
262
|
fillMode: 'flat',
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
263
|
+
attrs: this.v3 ? undefined : {
|
|
264
|
+
fillMode: 'flat',
|
|
265
|
+
themeColor: 'primary'
|
|
266
|
+
},
|
|
267
|
+
themeColor: 'primary',
|
|
268
|
+
onClick: this.onFindNext,
|
|
269
|
+
on: this.v3 ? undefined : {
|
|
270
|
+
"click": this.onFindNext
|
|
271
|
+
}
|
|
272
|
+
}, this.v3 ? function () {
|
|
273
|
+
return [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
|
|
274
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
|
|
275
|
+
})];
|
|
276
|
+
} : [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
|
|
277
|
+
"class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
|
|
278
|
+
})]);
|
|
279
|
+
return h("div", {
|
|
280
|
+
"class": "k-matches-container"
|
|
281
|
+
}, [prevButton, this.hasMounted && h("span", {
|
|
282
|
+
ref: findWhatRef
|
|
283
|
+
}, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages[findReplaceMatches]))]), nextButton]);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
var findWhatLabel = function findWhatLabel(findWhatId) {
|
|
287
|
+
return h("div", {
|
|
288
|
+
"class": "k-edit-label"
|
|
289
|
+
}, [h("label", {
|
|
290
|
+
ref: findWhatId,
|
|
291
|
+
"for": findWhatId,
|
|
292
|
+
attrs: this.v3 ? undefined : {
|
|
293
|
+
"for": findWhatId
|
|
294
|
+
}
|
|
295
|
+
}, [localization.toLanguageString(findReplaceFindWhat, messages[findReplaceFindWhat])])]);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
var findWhat = function findWhat(findWhatId) {
|
|
299
|
+
return h("div", {
|
|
300
|
+
"class": "k-edit-field"
|
|
301
|
+
}, [h("span", {
|
|
302
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
303
|
+
}, [h("input", {
|
|
304
|
+
id: findWhatId,
|
|
305
|
+
attrs: this.v3 ? undefined : {
|
|
306
|
+
id: findWhatId,
|
|
307
|
+
type: "text"
|
|
308
|
+
},
|
|
309
|
+
ref: findWhatId,
|
|
284
310
|
type: "text",
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
autoFocus: true
|
|
302
|
-
})])]);
|
|
311
|
+
"class": "k-input-inner",
|
|
312
|
+
value: this.v3 ? searchText : null,
|
|
313
|
+
domProps: this.v3 ? undefined : {
|
|
314
|
+
"value": searchText
|
|
315
|
+
},
|
|
316
|
+
onInput: this.onSearchChange,
|
|
317
|
+
on: this.v3 ? undefined : {
|
|
318
|
+
"input": this.onSearchChange,
|
|
319
|
+
"focus": this.onSearchChange,
|
|
320
|
+
"keydown": this.onKeyDown
|
|
321
|
+
},
|
|
322
|
+
onFocus: this.onSearchChange,
|
|
323
|
+
onKeydown: this.onKeyDown
|
|
324
|
+
})])]);
|
|
325
|
+
};
|
|
326
|
+
|
|
303
327
|
var replaceWithLabel = h("div", {
|
|
304
328
|
"class": "k-edit-label"
|
|
305
329
|
}, [h("label", {
|
|
@@ -345,7 +369,8 @@ var FindAndReplaceDialogVue2 = {
|
|
|
345
369
|
},
|
|
346
370
|
maximizeButton: function maximizeButton() {
|
|
347
371
|
return null;
|
|
348
|
-
}
|
|
372
|
+
},
|
|
373
|
+
dir: this.$props.dir
|
|
349
374
|
},
|
|
350
375
|
onClose: this.onClose,
|
|
351
376
|
on: this.v3 ? undefined : {
|
|
@@ -362,15 +387,18 @@ var FindAndReplaceDialogVue2 = {
|
|
|
362
387
|
},
|
|
363
388
|
maximizeButton: function maximizeButton() {
|
|
364
389
|
return null;
|
|
365
|
-
}
|
|
390
|
+
},
|
|
391
|
+
dir: this.$props.dir
|
|
366
392
|
}, this.v3 ? function () {
|
|
367
393
|
return [// @ts-ignore function children
|
|
368
394
|
h(TabStrip, {
|
|
369
|
-
|
|
395
|
+
dir: _this.$props.dir,
|
|
370
396
|
attrs: _this.v3 ? undefined : {
|
|
397
|
+
dir: _this.$props.dir,
|
|
371
398
|
selected: _this.selectedTab,
|
|
372
399
|
animation: false
|
|
373
400
|
},
|
|
401
|
+
selected: _this.selectedTab,
|
|
374
402
|
"class": "k-editor-find-replace",
|
|
375
403
|
onSelect: _this.onTabSelect,
|
|
376
404
|
on: _this.v3 ? undefined : {
|
|
@@ -387,10 +415,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
387
415
|
}, _this.v3 ? function () {
|
|
388
416
|
return [h("div", {
|
|
389
417
|
"class": "k-edit-form-container"
|
|
390
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
418
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
391
419
|
} : [h("div", {
|
|
392
420
|
"class": "k-edit-form-container"
|
|
393
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
|
|
421
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
|
|
394
422
|
h(TabStripTab, {
|
|
395
423
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
396
424
|
attrs: _this.v3 ? undefined : {
|
|
@@ -399,7 +427,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
399
427
|
}, _this.v3 ? function () {
|
|
400
428
|
return [h("div", {
|
|
401
429
|
"class": "k-edit-form-container"
|
|
402
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
430
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
403
431
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
404
432
|
}, [// @ts-ignore function children
|
|
405
433
|
h(Button, {
|
|
@@ -425,10 +453,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
425
453
|
}
|
|
426
454
|
}, _this.v3 ? function () {
|
|
427
455
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
428
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
456
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
429
457
|
} : [h("div", {
|
|
430
458
|
"class": "k-edit-form-container"
|
|
431
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
459
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
432
460
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
433
461
|
}, [h(Button, {
|
|
434
462
|
disabled: !Boolean(nextMatch),
|
|
@@ -452,7 +480,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
452
480
|
}
|
|
453
481
|
}, _this.v3 ? function () {
|
|
454
482
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
455
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
|
|
483
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
456
484
|
} : [h(TabStripTab, {
|
|
457
485
|
title: localization.toLanguageString(findReplaceTabFind, messages[findReplaceTabFind]),
|
|
458
486
|
attrs: _this.v3 ? undefined : {
|
|
@@ -461,10 +489,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
461
489
|
}, _this.v3 ? function () {
|
|
462
490
|
return [h("div", {
|
|
463
491
|
"class": "k-edit-form-container"
|
|
464
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
492
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
465
493
|
} : [h("div", {
|
|
466
494
|
"class": "k-edit-form-container"
|
|
467
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
|
|
495
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
|
|
468
496
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
469
497
|
attrs: _this.v3 ? undefined : {
|
|
470
498
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
|
|
@@ -472,7 +500,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
472
500
|
}, _this.v3 ? function () {
|
|
473
501
|
return [h("div", {
|
|
474
502
|
"class": "k-edit-form-container"
|
|
475
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
503
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
476
504
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
477
505
|
}, [h(Button, {
|
|
478
506
|
disabled: !Boolean(nextMatch),
|
|
@@ -496,10 +524,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
496
524
|
}
|
|
497
525
|
}, _this.v3 ? function () {
|
|
498
526
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
499
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
527
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
500
528
|
} : [h("div", {
|
|
501
529
|
"class": "k-edit-form-container"
|
|
502
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
530
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
503
531
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
504
532
|
}, [h(Button, {
|
|
505
533
|
disabled: !Boolean(nextMatch),
|
|
@@ -523,13 +551,15 @@ var FindAndReplaceDialogVue2 = {
|
|
|
523
551
|
}
|
|
524
552
|
}, _this.v3 ? function () {
|
|
525
553
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
526
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])])];
|
|
554
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
|
|
527
555
|
} : [h(TabStrip, {
|
|
528
|
-
|
|
556
|
+
dir: _this.$props.dir,
|
|
529
557
|
attrs: _this.v3 ? undefined : {
|
|
558
|
+
dir: _this.$props.dir,
|
|
530
559
|
selected: _this.selectedTab,
|
|
531
560
|
animation: false
|
|
532
561
|
},
|
|
562
|
+
selected: _this.selectedTab,
|
|
533
563
|
"class": "k-editor-find-replace",
|
|
534
564
|
onSelect: _this.onTabSelect,
|
|
535
565
|
on: _this.v3 ? undefined : {
|
|
@@ -545,10 +575,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
545
575
|
}, _this.v3 ? function () {
|
|
546
576
|
return [h("div", {
|
|
547
577
|
"class": "k-edit-form-container"
|
|
548
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
578
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
549
579
|
} : [h("div", {
|
|
550
580
|
"class": "k-edit-form-container"
|
|
551
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
|
|
581
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
|
|
552
582
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
553
583
|
attrs: _this.v3 ? undefined : {
|
|
554
584
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
|
|
@@ -556,7 +586,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
556
586
|
}, _this.v3 ? function () {
|
|
557
587
|
return [h("div", {
|
|
558
588
|
"class": "k-edit-form-container"
|
|
559
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
589
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
560
590
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
561
591
|
}, [h(Button, {
|
|
562
592
|
disabled: !Boolean(nextMatch),
|
|
@@ -580,10 +610,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
580
610
|
}
|
|
581
611
|
}, _this.v3 ? function () {
|
|
582
612
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
583
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
613
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
584
614
|
} : [h("div", {
|
|
585
615
|
"class": "k-edit-form-container"
|
|
586
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
616
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
587
617
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
588
618
|
}, [h(Button, {
|
|
589
619
|
disabled: !Boolean(nextMatch),
|
|
@@ -607,7 +637,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
607
637
|
}
|
|
608
638
|
}, _this.v3 ? function () {
|
|
609
639
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
610
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
|
|
640
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
611
641
|
} : [h(TabStripTab, {
|
|
612
642
|
title: localization.toLanguageString(findReplaceTabFind, messages[findReplaceTabFind]),
|
|
613
643
|
attrs: _this.v3 ? undefined : {
|
|
@@ -616,10 +646,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
616
646
|
}, _this.v3 ? function () {
|
|
617
647
|
return [h("div", {
|
|
618
648
|
"class": "k-edit-form-container"
|
|
619
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
649
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
620
650
|
} : [h("div", {
|
|
621
651
|
"class": "k-edit-form-container"
|
|
622
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
|
|
652
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
|
|
623
653
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
|
|
624
654
|
attrs: _this.v3 ? undefined : {
|
|
625
655
|
title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
|
|
@@ -627,7 +657,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
627
657
|
}, _this.v3 ? function () {
|
|
628
658
|
return [h("div", {
|
|
629
659
|
"class": "k-edit-form-container"
|
|
630
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
660
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
631
661
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
632
662
|
}, [h(Button, {
|
|
633
663
|
disabled: !Boolean(nextMatch),
|
|
@@ -651,10 +681,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
651
681
|
}
|
|
652
682
|
}, _this.v3 ? function () {
|
|
653
683
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
654
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
684
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
655
685
|
} : [h("div", {
|
|
656
686
|
"class": "k-edit-form-container"
|
|
657
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
687
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
658
688
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
659
689
|
}, [h(Button, {
|
|
660
690
|
disabled: !Boolean(nextMatch),
|
|
@@ -678,7 +708,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
678
708
|
}
|
|
679
709
|
}, _this.v3 ? function () {
|
|
680
710
|
return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
|
|
681
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])])])
|
|
711
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
|
|
682
712
|
); // document.body);
|
|
683
713
|
},
|
|
684
714
|
methods: {
|
|
@@ -741,7 +771,12 @@ var FindAndReplaceDialogVue2 = {
|
|
|
741
771
|
var transaction = view.state.tr.setSelection(selectionResult);
|
|
742
772
|
transaction.scrollIntoView();
|
|
743
773
|
view.updateState(view.state.apply(transaction));
|
|
774
|
+
this._prevMatch = this.nextMatch;
|
|
744
775
|
this.nextMatch = selectionResult;
|
|
776
|
+
|
|
777
|
+
if (this._prevMatch !== this.nextMatch) {
|
|
778
|
+
this.$forceUpdate();
|
|
779
|
+
}
|
|
745
780
|
}
|
|
746
781
|
},
|
|
747
782
|
onReplace: function onReplace() {
|
|
@@ -822,10 +857,12 @@ var FindAndReplaceDialogVue2 = {
|
|
|
822
857
|
var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
|
|
823
858
|
return match.from >= selection_1.from;
|
|
824
859
|
}) || this.matchCyclic && matches[0] || undefined;
|
|
860
|
+
this._prevMatch = this.nextMatch;
|
|
825
861
|
this.matches = matches;
|
|
826
862
|
this.nextMatch = nextMatch;
|
|
827
863
|
} else {
|
|
828
|
-
this.
|
|
864
|
+
this._prevMatch = this.nextMatch;
|
|
865
|
+
this.matches = [];
|
|
829
866
|
this.nextMatch = undefined;
|
|
830
867
|
}
|
|
831
868
|
}
|
|
@@ -10,6 +10,10 @@ import { messages } from './../messages'; // tslint:enable:max-line-length
|
|
|
10
10
|
|
|
11
11
|
var InsertImageDialogVue2 = {
|
|
12
12
|
name: 'KendoInsertImageDialog',
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
emits: {
|
|
15
|
+
close: null
|
|
16
|
+
},
|
|
13
17
|
props: {
|
|
14
18
|
view: Object,
|
|
15
19
|
settings: Object,
|
|
@@ -26,6 +30,10 @@ var InsertImageDialogVue2 = {
|
|
|
26
30
|
this.title = this.v3 ? this.titleRef : this.$refs.title;
|
|
27
31
|
this.width = this.v3 ? this.widthRef : this.$refs.width;
|
|
28
32
|
this.height = this.v3 ? this.heightRef : this.$refs.height;
|
|
33
|
+
|
|
34
|
+
if (this.src) {
|
|
35
|
+
this.src.focus();
|
|
36
|
+
}
|
|
29
37
|
},
|
|
30
38
|
// @ts-ignore
|
|
31
39
|
setup: !gh ? undefined : function () {
|
|
@@ -79,8 +87,7 @@ var InsertImageDialogVue2 = {
|
|
|
79
87
|
type: "text",
|
|
80
88
|
attrs: this.v3 ? undefined : {
|
|
81
89
|
type: "text",
|
|
82
|
-
id: "k-editor-image-url"
|
|
83
|
-
autoFocus: true
|
|
90
|
+
id: "k-editor-image-url"
|
|
84
91
|
},
|
|
85
92
|
"class": "k-input-inner",
|
|
86
93
|
id: "k-editor-image-url",
|
|
@@ -90,8 +97,7 @@ var InsertImageDialogVue2 = {
|
|
|
90
97
|
},
|
|
91
98
|
ref: this.v3 ? function (el) {
|
|
92
99
|
_this.srcRef = el;
|
|
93
|
-
} : 'src'
|
|
94
|
-
autoFocus: true
|
|
100
|
+
} : 'src'
|
|
95
101
|
})])]), h("div", {
|
|
96
102
|
"class": "k-edit-label"
|
|
97
103
|
}, [h("label", {
|
|
@@ -10,6 +10,10 @@ import { messages } from './../messages'; // tslint:enable:max-line-length
|
|
|
10
10
|
|
|
11
11
|
var InsertLinkDialogVue2 = {
|
|
12
12
|
name: 'KendoInsertLinkDialog',
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
emits: {
|
|
15
|
+
close: null
|
|
16
|
+
},
|
|
13
17
|
props: {
|
|
14
18
|
view: Object,
|
|
15
19
|
settings: Object,
|
|
@@ -31,6 +35,10 @@ var InsertLinkDialogVue2 = {
|
|
|
31
35
|
this.href = this.v3 ? this.hrefRef : this.$refs.href;
|
|
32
36
|
this.title = this.v3 ? this.titleRef : this.$refs.title;
|
|
33
37
|
this.target = this.v3 ? this.targetRef : this.$refs.target;
|
|
38
|
+
|
|
39
|
+
if (this.href) {
|
|
40
|
+
this.href.focus();
|
|
41
|
+
}
|
|
34
42
|
},
|
|
35
43
|
// @ts-ignore
|
|
36
44
|
render: function render(createElement) {
|
|
@@ -69,8 +77,7 @@ var InsertLinkDialogVue2 = {
|
|
|
69
77
|
type: "text",
|
|
70
78
|
attrs: this.v3 ? undefined : {
|
|
71
79
|
type: "text",
|
|
72
|
-
id: "k-editor-link-url"
|
|
73
|
-
autoFocus: true
|
|
80
|
+
id: "k-editor-link-url"
|
|
74
81
|
},
|
|
75
82
|
"class": "k-input-inner",
|
|
76
83
|
ref: this.v3 ? function (el) {
|
|
@@ -80,8 +87,7 @@ var InsertLinkDialogVue2 = {
|
|
|
80
87
|
value: this.v3 ? linkMark && linkMark.attrs.href || undefined : null,
|
|
81
88
|
domProps: this.v3 ? undefined : {
|
|
82
89
|
"value": linkMark && linkMark.attrs.href || undefined
|
|
83
|
-
}
|
|
84
|
-
autoFocus: true
|
|
90
|
+
}
|
|
85
91
|
})])]), h("div", {
|
|
86
92
|
"class": "k-edit-label k-editor-link-text-row"
|
|
87
93
|
}, [h("label", {
|
|
@@ -59,10 +59,6 @@ var ViewHtmlDialogVue2 = {
|
|
|
59
59
|
value: this.v3 ? indentHtml(getHtml(view.state)) : null,
|
|
60
60
|
domProps: this.v3 ? undefined : {
|
|
61
61
|
"value": indentHtml(getHtml(view.state))
|
|
62
|
-
},
|
|
63
|
-
autoFocus: true,
|
|
64
|
-
attrs: this.v3 ? undefined : {
|
|
65
|
-
autoFocus: true
|
|
66
62
|
}
|
|
67
63
|
});
|
|
68
64
|
var actionButtons = [// @ts-ignore function children
|
package/dist/es/main.d.ts
CHANGED
|
@@ -163,4 +163,23 @@ export declare const ProseMirror: {
|
|
|
163
163
|
goToNextCell: typeof goToNextCell;
|
|
164
164
|
deleteTable: typeof deleteTable;
|
|
165
165
|
};
|
|
166
|
+
export { Align } from './tools/align';
|
|
167
|
+
export { Indent } from './tools/indent';
|
|
168
|
+
export { List } from './tools/lists';
|
|
169
|
+
export { Outdent } from './tools/outdent';
|
|
170
|
+
export { InlineFormat } from './tools/inlineFormat';
|
|
171
|
+
export { FontName } from './tools/fontStyle';
|
|
172
|
+
export { FormatBlock } from './tools/formatBlock';
|
|
173
|
+
export { ProseMirror as ProseMirrorTool } from './tools/proseMirrorTool';
|
|
174
|
+
export { LinkTool } from './tools/insertLink';
|
|
175
|
+
export { Unlink } from './tools/unlink';
|
|
176
|
+
export { CleanFormatting } from './tools/cleanFormatting';
|
|
177
|
+
export { SelectAll } from './tools/selectAll';
|
|
178
|
+
export { InsertImage } from './tools/insertImage';
|
|
179
|
+
export { InsertTable } from './tools/insertTable/tool';
|
|
180
|
+
export { ViewHtml } from './tools/viewHtml';
|
|
181
|
+
export { Pdf } from './tools/pdf';
|
|
182
|
+
export { Print } from './tools/print';
|
|
183
|
+
export { FindAndReplace } from './tools/findReplace';
|
|
184
|
+
export { ApplyColor } from './tools/applyColor';
|
|
166
185
|
export { Editor, EditorProps, EditorMountEvent, EditorPasteEvent, EditorChangeEvent, EditorExecuteEvent, EditorFocusEvent, EditorBlurEvent, EditorTools, EditorToolsSettings, EditorUtils };
|
package/dist/es/main.js
CHANGED
|
@@ -107,4 +107,23 @@ export var ProseMirror = {
|
|
|
107
107
|
goToNextCell: goToNextCell,
|
|
108
108
|
deleteTable: deleteTable
|
|
109
109
|
};
|
|
110
|
+
export { Align } from './tools/align';
|
|
111
|
+
export { Indent } from './tools/indent';
|
|
112
|
+
export { List } from './tools/lists';
|
|
113
|
+
export { Outdent } from './tools/outdent';
|
|
114
|
+
export { InlineFormat } from './tools/inlineFormat';
|
|
115
|
+
export { FontName } from './tools/fontStyle';
|
|
116
|
+
export { FormatBlock } from './tools/formatBlock';
|
|
117
|
+
export { ProseMirror as ProseMirrorTool } from './tools/proseMirrorTool';
|
|
118
|
+
export { LinkTool } from './tools/insertLink';
|
|
119
|
+
export { Unlink } from './tools/unlink';
|
|
120
|
+
export { CleanFormatting } from './tools/cleanFormatting';
|
|
121
|
+
export { SelectAll } from './tools/selectAll';
|
|
122
|
+
export { InsertImage } from './tools/insertImage';
|
|
123
|
+
export { InsertTable } from './tools/insertTable/tool';
|
|
124
|
+
export { ViewHtml } from './tools/viewHtml';
|
|
125
|
+
export { Pdf } from './tools/pdf';
|
|
126
|
+
export { Print } from './tools/print';
|
|
127
|
+
export { FindAndReplace } from './tools/findReplace';
|
|
128
|
+
export { ApplyColor } from './tools/applyColor';
|
|
110
129
|
export { Editor, EditorToolsSettings, EditorUtils };
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-editor',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1642407570,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/tools/align.js
CHANGED
|
@@ -77,11 +77,11 @@ var AlignVue2 = {
|
|
|
77
77
|
var localization = provideLocalizationService(this);
|
|
78
78
|
var titleKey = settings.messages.title;
|
|
79
79
|
|
|
80
|
-
var buttonProps = __assign(__assign(__assign({}, other),
|
|
80
|
+
var buttonProps = __assign(__assign(__assign({}, other), {
|
|
81
81
|
selected: aligned,
|
|
82
82
|
togglable: true,
|
|
83
83
|
title: localization.toLanguageString(titleKey, messages[titleKey])
|
|
84
|
-
});
|
|
84
|
+
}), settings.props);
|
|
85
85
|
|
|
86
86
|
var button = h(kbutton, __assign({
|
|
87
87
|
onClick: this.handleClick,
|