@progress/kendo-vue-editor 2.8.0-dev.202201121019 → 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.js +3 -5
- package/dist/es/dialogs/FindReplace.d.ts +1 -1
- package/dist/es/dialogs/FindReplace.js +122 -105
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/Editor.js +3 -5
- package/dist/npm/dialogs/FindReplace.d.ts +1 -1
- package/dist/npm/dialogs/FindReplace.js +122 -105
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +12 -12
|
@@ -48,7 +48,8 @@ var FindAndReplaceDialogVue2 = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
created: function created() {
|
|
51
|
-
this.
|
|
51
|
+
this._prevMatch = undefined;
|
|
52
|
+
this.nextMatch = undefined;
|
|
52
53
|
},
|
|
53
54
|
data: function data() {
|
|
54
55
|
return {
|
|
@@ -59,24 +60,26 @@ var FindAndReplaceDialogVue2 = {
|
|
|
59
60
|
matchWord: false,
|
|
60
61
|
matchCyclic: false,
|
|
61
62
|
useRegExp: false,
|
|
62
|
-
|
|
63
|
+
matches: [],
|
|
64
|
+
hasMounted: false
|
|
63
65
|
};
|
|
64
66
|
},
|
|
65
67
|
mounted: function mounted() {
|
|
66
68
|
if (this.$el) {
|
|
67
69
|
document.body.append(this.$el);
|
|
68
70
|
}
|
|
71
|
+
|
|
72
|
+
this.setNextState();
|
|
73
|
+
this.hasMounted = true;
|
|
69
74
|
},
|
|
70
75
|
|
|
71
76
|
/**
|
|
72
77
|
* @hidden
|
|
73
78
|
*/
|
|
74
79
|
updated: function updated() {
|
|
80
|
+
var matches = this.matches || [];
|
|
81
|
+
var nextMatch = this.nextMatch;
|
|
75
82
|
var view = this.$props.view;
|
|
76
|
-
var _a = this.$data,
|
|
77
|
-
_b = _a.matches,
|
|
78
|
-
matches = _b === void 0 ? [] : _b,
|
|
79
|
-
nextMatch = _a.nextMatch;
|
|
80
83
|
|
|
81
84
|
if (this._prevMatch !== nextMatch) {
|
|
82
85
|
var state = view.state; // highlight selection
|
|
@@ -108,11 +111,6 @@ var FindAndReplaceDialogVue2 = {
|
|
|
108
111
|
this.$el.remove();
|
|
109
112
|
}
|
|
110
113
|
},
|
|
111
|
-
watch: {
|
|
112
|
-
nextMatch: function nextMatch(_newNextMatch, oldMatch) {
|
|
113
|
-
this._prevMatch = oldMatch;
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
114
|
// @ts-ignore
|
|
117
115
|
setup: !gh ? undefined : function () {
|
|
118
116
|
var v3 = !!gh;
|
|
@@ -242,80 +240,92 @@ var FindAndReplaceDialogVue2 = {
|
|
|
242
240
|
},
|
|
243
241
|
"class": "k-checkbox-label"
|
|
244
242
|
}, [localization.toLanguageString(findReplaceUseRegExp, messages_1.messages[findReplaceUseRegExp])])])]);
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
243
|
+
|
|
244
|
+
var navigation = function navigation(findWhatRef) {
|
|
245
|
+
return h("div", {
|
|
246
|
+
"class": "k-matches-container"
|
|
247
|
+
}, [// @ts-ignore function children
|
|
248
|
+
h(kendo_vue_buttons_1.Button, {
|
|
251
249
|
fillMode: 'flat',
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
250
|
+
attrs: this.v3 ? undefined : {
|
|
251
|
+
fillMode: 'flat',
|
|
252
|
+
themeColor: 'primary'
|
|
253
|
+
},
|
|
254
|
+
themeColor: 'primary',
|
|
255
|
+
onClick: this.onFindPrev,
|
|
256
|
+
on: this.v3 ? undefined : {
|
|
257
|
+
"click": this.onFindPrev
|
|
258
|
+
}
|
|
259
|
+
}, this.v3 ? function () {
|
|
260
|
+
return [h("span", {
|
|
261
|
+
"class": "k-icon k-i-arrow-chevron-left"
|
|
262
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])];
|
|
263
|
+
} : [h("span", {
|
|
261
264
|
"class": "k-icon k-i-arrow-chevron-left"
|
|
262
|
-
}), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])]
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
h(kendo_vue_buttons_1.Button, {
|
|
267
|
-
fillMode: 'flat',
|
|
268
|
-
attrs: this.v3 ? undefined : {
|
|
265
|
+
}), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])]), this.hasMounted && h("span", {
|
|
266
|
+
ref: findWhatRef
|
|
267
|
+
}, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))]), // @ts-ignore function children
|
|
268
|
+
h(kendo_vue_buttons_1.Button, {
|
|
269
269
|
fillMode: 'flat',
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
270
|
+
attrs: this.v3 ? undefined : {
|
|
271
|
+
fillMode: 'flat',
|
|
272
|
+
themeColor: 'primary'
|
|
273
|
+
},
|
|
274
|
+
themeColor: 'primary',
|
|
275
|
+
onClick: this.onFindNext,
|
|
276
|
+
on: this.v3 ? undefined : {
|
|
277
|
+
"click": this.onFindNext
|
|
278
|
+
}
|
|
279
|
+
}, this.v3 ? function () {
|
|
280
|
+
return [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
|
|
281
|
+
"class": "k-icon k-i-arrow-chevron-right"
|
|
282
|
+
})];
|
|
283
|
+
} : [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
|
|
279
284
|
"class": "k-icon k-i-arrow-chevron-right"
|
|
280
|
-
})];
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
285
|
+
})])]);
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
var findWhatLabel = function findWhatLabel(findWhatId) {
|
|
289
|
+
return h("div", {
|
|
290
|
+
"class": "k-edit-label"
|
|
291
|
+
}, [h("label", {
|
|
292
|
+
ref: findWhatId,
|
|
293
|
+
"for": findWhatId,
|
|
294
|
+
attrs: this.v3 ? undefined : {
|
|
295
|
+
"for": findWhatId
|
|
296
|
+
}
|
|
297
|
+
}, [localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])])]);
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
var findWhat = function findWhat(findWhatId) {
|
|
301
|
+
return h("div", {
|
|
302
|
+
"class": "k-edit-field"
|
|
303
|
+
}, [h("span", {
|
|
304
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
305
|
+
}, [h("input", {
|
|
306
|
+
id: findWhatId,
|
|
307
|
+
attrs: this.v3 ? undefined : {
|
|
308
|
+
id: findWhatId,
|
|
309
|
+
type: "text"
|
|
310
|
+
},
|
|
311
|
+
ref: findWhatId,
|
|
300
312
|
type: "text",
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
autoFocus: true
|
|
318
|
-
})])]);
|
|
313
|
+
"class": "k-input-inner",
|
|
314
|
+
value: this.v3 ? searchText : null,
|
|
315
|
+
domProps: this.v3 ? undefined : {
|
|
316
|
+
"value": searchText
|
|
317
|
+
},
|
|
318
|
+
onInput: this.onSearchChange,
|
|
319
|
+
on: this.v3 ? undefined : {
|
|
320
|
+
"input": this.onSearchChange,
|
|
321
|
+
"focus": this.onSearchChange,
|
|
322
|
+
"keydown": this.onKeyDown
|
|
323
|
+
},
|
|
324
|
+
onFocus: this.onSearchChange,
|
|
325
|
+
onKeydown: this.onKeyDown
|
|
326
|
+
})])]);
|
|
327
|
+
};
|
|
328
|
+
|
|
319
329
|
var replaceWithLabel = h("div", {
|
|
320
330
|
"class": "k-edit-label"
|
|
321
331
|
}, [h("label", {
|
|
@@ -403,10 +413,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
403
413
|
}, _this.v3 ? function () {
|
|
404
414
|
return [h("div", {
|
|
405
415
|
"class": "k-edit-form-container"
|
|
406
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
416
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
407
417
|
} : [h("div", {
|
|
408
418
|
"class": "k-edit-form-container"
|
|
409
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
|
|
419
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
|
|
410
420
|
h(kendo_vue_layout_1.TabStripTab, {
|
|
411
421
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
412
422
|
attrs: _this.v3 ? undefined : {
|
|
@@ -415,7 +425,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
415
425
|
}, _this.v3 ? function () {
|
|
416
426
|
return [h("div", {
|
|
417
427
|
"class": "k-edit-form-container"
|
|
418
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
428
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
419
429
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
420
430
|
}, [// @ts-ignore function children
|
|
421
431
|
h(kendo_vue_buttons_1.Button, {
|
|
@@ -441,10 +451,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
441
451
|
}
|
|
442
452
|
}, _this.v3 ? function () {
|
|
443
453
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
444
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
454
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
445
455
|
} : [h("div", {
|
|
446
456
|
"class": "k-edit-form-container"
|
|
447
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
457
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
448
458
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
449
459
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
450
460
|
disabled: !Boolean(nextMatch),
|
|
@@ -468,7 +478,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
468
478
|
}
|
|
469
479
|
}, _this.v3 ? function () {
|
|
470
480
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
471
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
|
|
481
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
472
482
|
} : [h(kendo_vue_layout_1.TabStripTab, {
|
|
473
483
|
title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
|
|
474
484
|
attrs: _this.v3 ? undefined : {
|
|
@@ -477,10 +487,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
477
487
|
}, _this.v3 ? function () {
|
|
478
488
|
return [h("div", {
|
|
479
489
|
"class": "k-edit-form-container"
|
|
480
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
490
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
481
491
|
} : [h("div", {
|
|
482
492
|
"class": "k-edit-form-container"
|
|
483
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
|
|
493
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
|
|
484
494
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
485
495
|
attrs: _this.v3 ? undefined : {
|
|
486
496
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
|
|
@@ -488,7 +498,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
488
498
|
}, _this.v3 ? function () {
|
|
489
499
|
return [h("div", {
|
|
490
500
|
"class": "k-edit-form-container"
|
|
491
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
501
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
492
502
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
493
503
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
494
504
|
disabled: !Boolean(nextMatch),
|
|
@@ -512,10 +522,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
512
522
|
}
|
|
513
523
|
}, _this.v3 ? function () {
|
|
514
524
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
515
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
525
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
516
526
|
} : [h("div", {
|
|
517
527
|
"class": "k-edit-form-container"
|
|
518
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
528
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
519
529
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
520
530
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
521
531
|
disabled: !Boolean(nextMatch),
|
|
@@ -539,7 +549,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
539
549
|
}
|
|
540
550
|
}, _this.v3 ? function () {
|
|
541
551
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
542
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])];
|
|
552
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
|
|
543
553
|
} : [h(kendo_vue_layout_1.TabStrip, {
|
|
544
554
|
selected: _this.selectedTab,
|
|
545
555
|
attrs: _this.v3 ? undefined : {
|
|
@@ -561,10 +571,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
561
571
|
}, _this.v3 ? function () {
|
|
562
572
|
return [h("div", {
|
|
563
573
|
"class": "k-edit-form-container"
|
|
564
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
574
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
565
575
|
} : [h("div", {
|
|
566
576
|
"class": "k-edit-form-container"
|
|
567
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
|
|
577
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
|
|
568
578
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
569
579
|
attrs: _this.v3 ? undefined : {
|
|
570
580
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
|
|
@@ -572,7 +582,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
572
582
|
}, _this.v3 ? function () {
|
|
573
583
|
return [h("div", {
|
|
574
584
|
"class": "k-edit-form-container"
|
|
575
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
585
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
576
586
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
577
587
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
578
588
|
disabled: !Boolean(nextMatch),
|
|
@@ -596,10 +606,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
596
606
|
}
|
|
597
607
|
}, _this.v3 ? function () {
|
|
598
608
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
599
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
609
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
600
610
|
} : [h("div", {
|
|
601
611
|
"class": "k-edit-form-container"
|
|
602
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
612
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
603
613
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
604
614
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
605
615
|
disabled: !Boolean(nextMatch),
|
|
@@ -623,7 +633,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
623
633
|
}
|
|
624
634
|
}, _this.v3 ? function () {
|
|
625
635
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
626
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
|
|
636
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
|
|
627
637
|
} : [h(kendo_vue_layout_1.TabStripTab, {
|
|
628
638
|
title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
|
|
629
639
|
attrs: _this.v3 ? undefined : {
|
|
@@ -632,10 +642,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
632
642
|
}, _this.v3 ? function () {
|
|
633
643
|
return [h("div", {
|
|
634
644
|
"class": "k-edit-form-container"
|
|
635
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation];
|
|
645
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
|
|
636
646
|
} : [h("div", {
|
|
637
647
|
"class": "k-edit-form-container"
|
|
638
|
-
}, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
|
|
648
|
+
}, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
|
|
639
649
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
|
|
640
650
|
attrs: _this.v3 ? undefined : {
|
|
641
651
|
title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
|
|
@@ -643,7 +653,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
643
653
|
}, _this.v3 ? function () {
|
|
644
654
|
return [h("div", {
|
|
645
655
|
"class": "k-edit-form-container"
|
|
646
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
656
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
647
657
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
648
658
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
649
659
|
disabled: !Boolean(nextMatch),
|
|
@@ -667,10 +677,10 @@ var FindAndReplaceDialogVue2 = {
|
|
|
667
677
|
}
|
|
668
678
|
}, _this.v3 ? function () {
|
|
669
679
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
670
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
|
|
680
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
|
|
671
681
|
} : [h("div", {
|
|
672
682
|
"class": "k-edit-form-container"
|
|
673
|
-
}, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
|
|
683
|
+
}, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
|
|
674
684
|
"class": "k-actions k-hstack k-justify-content-end"
|
|
675
685
|
}, [h(kendo_vue_buttons_1.Button, {
|
|
676
686
|
disabled: !Boolean(nextMatch),
|
|
@@ -694,7 +704,7 @@ var FindAndReplaceDialogVue2 = {
|
|
|
694
704
|
}
|
|
695
705
|
}, _this.v3 ? function () {
|
|
696
706
|
return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
|
|
697
|
-
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])])
|
|
707
|
+
} : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
|
|
698
708
|
); // document.body);
|
|
699
709
|
},
|
|
700
710
|
methods: {
|
|
@@ -757,7 +767,12 @@ var FindAndReplaceDialogVue2 = {
|
|
|
757
767
|
var transaction = view.state.tr.setSelection(selectionResult);
|
|
758
768
|
transaction.scrollIntoView();
|
|
759
769
|
view.updateState(view.state.apply(transaction));
|
|
770
|
+
this._prevMatch = this.nextMatch;
|
|
760
771
|
this.nextMatch = selectionResult;
|
|
772
|
+
|
|
773
|
+
if (this._prevMatch !== this.nextMatch) {
|
|
774
|
+
this.$forceUpdate();
|
|
775
|
+
}
|
|
761
776
|
}
|
|
762
777
|
},
|
|
763
778
|
onReplace: function onReplace() {
|
|
@@ -838,10 +853,12 @@ var FindAndReplaceDialogVue2 = {
|
|
|
838
853
|
var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
|
|
839
854
|
return match.from >= selection_1.from;
|
|
840
855
|
}) || this.matchCyclic && matches[0] || undefined;
|
|
856
|
+
this._prevMatch = this.nextMatch;
|
|
841
857
|
this.matches = matches;
|
|
842
858
|
this.nextMatch = nextMatch;
|
|
843
859
|
} else {
|
|
844
|
-
this.
|
|
860
|
+
this._prevMatch = this.nextMatch;
|
|
861
|
+
this.matches = [];
|
|
845
862
|
this.nextMatch = undefined;
|
|
846
863
|
}
|
|
847
864
|
}
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-editor',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1642086914,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-editor",
|
|
3
3
|
"description": "Kendo UI for Vue Editor package",
|
|
4
|
-
"version": "2.8.0-dev.
|
|
4
|
+
"version": "2.8.0-dev.202201131525",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@progress/kendo-editor-common": "1.6.0",
|
|
46
|
-
"@progress/kendo-vue-common": "2.8.0-dev.
|
|
46
|
+
"@progress/kendo-vue-common": "2.8.0-dev.202201131525"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@progress/kendo-drawing": "^1.8.0",
|
|
50
50
|
"@progress/kendo-licensing": "^1.0.1",
|
|
51
|
-
"@progress/kendo-vue-buttons": "2.8.0-dev.
|
|
52
|
-
"@progress/kendo-vue-dialogs": "2.8.0-dev.
|
|
53
|
-
"@progress/kendo-vue-dropdowns": "2.8.0-dev.
|
|
54
|
-
"@progress/kendo-vue-form": "2.8.0-dev.
|
|
55
|
-
"@progress/kendo-vue-inputs": "2.8.0-dev.
|
|
56
|
-
"@progress/kendo-vue-intl": "2.8.0-dev.
|
|
57
|
-
"@progress/kendo-vue-layout": "2.8.0-dev.
|
|
58
|
-
"@progress/kendo-vue-pdf": "2.8.0-dev.
|
|
59
|
-
"@progress/kendo-vue-popup": "2.8.0-dev.
|
|
60
|
-
"@progress/kendo-vue-upload": "2.8.0-dev.
|
|
51
|
+
"@progress/kendo-vue-buttons": "2.8.0-dev.202201131525",
|
|
52
|
+
"@progress/kendo-vue-dialogs": "2.8.0-dev.202201131525",
|
|
53
|
+
"@progress/kendo-vue-dropdowns": "2.8.0-dev.202201131525",
|
|
54
|
+
"@progress/kendo-vue-form": "2.8.0-dev.202201131525",
|
|
55
|
+
"@progress/kendo-vue-inputs": "2.8.0-dev.202201131525",
|
|
56
|
+
"@progress/kendo-vue-intl": "2.8.0-dev.202201131525",
|
|
57
|
+
"@progress/kendo-vue-layout": "2.8.0-dev.202201131525",
|
|
58
|
+
"@progress/kendo-vue-pdf": "2.8.0-dev.202201131525",
|
|
59
|
+
"@progress/kendo-vue-popup": "2.8.0-dev.202201131525",
|
|
60
|
+
"@progress/kendo-vue-upload": "2.8.0-dev.202201131525"
|
|
61
61
|
},
|
|
62
62
|
"@progress": {
|
|
63
63
|
"friendlyName": "Editor",
|