@progress/kendo-vue-editor 2.7.3-dev.202201070829 → 2.8.0-dev.202201131525

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  2. package/dist/es/Editor.d.ts +49 -131
  3. package/dist/es/Editor.js +40 -21
  4. package/dist/es/EditorProps.d.ts +11 -5
  5. package/dist/es/additionalTypes.ts +7 -1
  6. package/dist/es/dialogs/FindReplace.d.ts +6 -7
  7. package/dist/es/dialogs/FindReplace.js +190 -127
  8. package/dist/es/dialogs/insertImage.d.ts +5 -6
  9. package/dist/es/dialogs/insertImage.js +23 -13
  10. package/dist/es/dialogs/insertLink.d.ts +5 -6
  11. package/dist/es/dialogs/insertLink.js +12 -8
  12. package/dist/es/dialogs/viewHtml.d.ts +5 -6
  13. package/dist/es/dialogs/viewHtml.js +3 -3
  14. package/dist/es/package-metadata.js +1 -1
  15. package/dist/es/tools/align.d.ts +5 -6
  16. package/dist/es/tools/align.js +3 -3
  17. package/dist/es/tools/applyColor.d.ts +5 -6
  18. package/dist/es/tools/applyColor.js +3 -3
  19. package/dist/es/tools/cleanFormatting.d.ts +5 -6
  20. package/dist/es/tools/cleanFormatting.js +3 -3
  21. package/dist/es/tools/findReplace.d.ts +5 -6
  22. package/dist/es/tools/findReplace.js +3 -3
  23. package/dist/es/tools/fontStyle.d.ts +5 -6
  24. package/dist/es/tools/fontStyle.js +3 -3
  25. package/dist/es/tools/formatBlock.d.ts +5 -6
  26. package/dist/es/tools/formatBlock.js +3 -3
  27. package/dist/es/tools/indent.d.ts +5 -6
  28. package/dist/es/tools/indent.js +3 -3
  29. package/dist/es/tools/inlineFormat.d.ts +5 -6
  30. package/dist/es/tools/inlineFormat.js +3 -3
  31. package/dist/es/tools/insertImage.d.ts +5 -6
  32. package/dist/es/tools/insertImage.js +3 -3
  33. package/dist/es/tools/insertLink.d.ts +5 -6
  34. package/dist/es/tools/insertLink.js +3 -3
  35. package/dist/es/tools/insertTable/popup.d.ts +5 -6
  36. package/dist/es/tools/insertTable/popup.js +3 -3
  37. package/dist/es/tools/insertTable/popupGrid.d.ts +5 -6
  38. package/dist/es/tools/insertTable/popupGrid.js +3 -3
  39. package/dist/es/tools/insertTable/tool.d.ts +5 -6
  40. package/dist/es/tools/insertTable/tool.js +3 -3
  41. package/dist/es/tools/lists.d.ts +5 -6
  42. package/dist/es/tools/lists.js +3 -3
  43. package/dist/es/tools/outdent.d.ts +5 -6
  44. package/dist/es/tools/outdent.js +3 -3
  45. package/dist/es/tools/pdf.d.ts +5 -6
  46. package/dist/es/tools/pdf.js +3 -3
  47. package/dist/es/tools/print.d.ts +5 -6
  48. package/dist/es/tools/print.js +3 -3
  49. package/dist/es/tools/proseMirrorTool.d.ts +5 -6
  50. package/dist/es/tools/proseMirrorTool.js +3 -3
  51. package/dist/es/tools/selectAll.d.ts +5 -6
  52. package/dist/es/tools/selectAll.js +3 -3
  53. package/dist/es/tools/unlink.d.ts +5 -6
  54. package/dist/es/tools/unlink.js +3 -3
  55. package/dist/es/tools/viewHtml.d.ts +5 -6
  56. package/dist/es/tools/viewHtml.js +3 -3
  57. package/dist/npm/Editor.d.ts +49 -131
  58. package/dist/npm/Editor.js +42 -23
  59. package/dist/npm/EditorProps.d.ts +11 -5
  60. package/dist/npm/additionalTypes.ts +7 -1
  61. package/dist/npm/dialogs/FindReplace.d.ts +6 -7
  62. package/dist/npm/dialogs/FindReplace.js +193 -129
  63. package/dist/npm/dialogs/insertImage.d.ts +5 -6
  64. package/dist/npm/dialogs/insertImage.js +25 -15
  65. package/dist/npm/dialogs/insertLink.d.ts +5 -6
  66. package/dist/npm/dialogs/insertLink.js +14 -10
  67. package/dist/npm/dialogs/viewHtml.d.ts +5 -6
  68. package/dist/npm/dialogs/viewHtml.js +5 -5
  69. package/dist/npm/package-metadata.js +1 -1
  70. package/dist/npm/tools/align.d.ts +5 -6
  71. package/dist/npm/tools/align.js +5 -5
  72. package/dist/npm/tools/applyColor.d.ts +5 -6
  73. package/dist/npm/tools/applyColor.js +5 -5
  74. package/dist/npm/tools/cleanFormatting.d.ts +5 -6
  75. package/dist/npm/tools/cleanFormatting.js +5 -5
  76. package/dist/npm/tools/findReplace.d.ts +5 -6
  77. package/dist/npm/tools/findReplace.js +5 -5
  78. package/dist/npm/tools/fontStyle.d.ts +5 -6
  79. package/dist/npm/tools/fontStyle.js +5 -5
  80. package/dist/npm/tools/formatBlock.d.ts +5 -6
  81. package/dist/npm/tools/formatBlock.js +5 -5
  82. package/dist/npm/tools/indent.d.ts +5 -6
  83. package/dist/npm/tools/indent.js +5 -5
  84. package/dist/npm/tools/inlineFormat.d.ts +5 -6
  85. package/dist/npm/tools/inlineFormat.js +5 -5
  86. package/dist/npm/tools/insertImage.d.ts +5 -6
  87. package/dist/npm/tools/insertImage.js +5 -5
  88. package/dist/npm/tools/insertLink.d.ts +5 -6
  89. package/dist/npm/tools/insertLink.js +5 -5
  90. package/dist/npm/tools/insertTable/popup.d.ts +5 -6
  91. package/dist/npm/tools/insertTable/popup.js +5 -5
  92. package/dist/npm/tools/insertTable/popupGrid.d.ts +5 -6
  93. package/dist/npm/tools/insertTable/popupGrid.js +5 -5
  94. package/dist/npm/tools/insertTable/tool.d.ts +5 -6
  95. package/dist/npm/tools/insertTable/tool.js +5 -5
  96. package/dist/npm/tools/lists.d.ts +5 -6
  97. package/dist/npm/tools/lists.js +5 -5
  98. package/dist/npm/tools/outdent.d.ts +5 -6
  99. package/dist/npm/tools/outdent.js +5 -5
  100. package/dist/npm/tools/pdf.d.ts +5 -6
  101. package/dist/npm/tools/pdf.js +5 -5
  102. package/dist/npm/tools/print.d.ts +5 -6
  103. package/dist/npm/tools/print.js +5 -5
  104. package/dist/npm/tools/proseMirrorTool.d.ts +5 -6
  105. package/dist/npm/tools/proseMirrorTool.js +5 -5
  106. package/dist/npm/tools/selectAll.d.ts +5 -6
  107. package/dist/npm/tools/selectAll.js +5 -5
  108. package/dist/npm/tools/unlink.d.ts +5 -6
  109. package/dist/npm/tools/unlink.js +5 -5
  110. package/dist/npm/tools/viewHtml.d.ts +5 -6
  111. package/dist/npm/tools/viewHtml.js +5 -5
  112. package/package.json +12 -12
@@ -3,13 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.FindAndReplaceDialogVue3 = exports.FindAndReplaceDialog = void 0; // @ts-ignore
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 FindAndReplaceDialog = {
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
- nextMatch: undefined
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,92 @@ var FindAndReplaceDialog = {
237
240
  },
238
241
  "class": "k-checkbox-label"
239
242
  }, [localization.toLanguageString(findReplaceUseRegExp, messages_1.messages[findReplaceUseRegExp])])])]);
240
- var navigation = h("div", {
241
- "class": "k-matches-container"
242
- }, [h("button", {
243
- "class": "k-button k-flat k-primary",
244
- onClick: this.onFindPrev,
245
- on: this.v3 ? undefined : {
246
- "click": this.onFindPrev
247
- }
248
- }, [h("span", {
249
- "class": "k-icon k-i-arrow-chevron-left"
250
- }), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])]), h("span", [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))]), h("button", {
251
- "class": "k-button k-flat k-primary",
252
- onClick: this.onFindNext,
253
- on: this.v3 ? undefined : {
254
- "click": this.onFindNext
255
- }
256
- }, [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
257
- "class": "k-icon k-i-arrow-chevron-right"
258
- })])]);
259
- var findWhatLabel = h("div", {
260
- "class": "k-edit-label"
261
- }, [h("label", {
262
- "for": "findWhat",
263
- attrs: this.v3 ? undefined : {
264
- "for": "findWhat"
265
- }
266
- }, [localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])])]);
267
- var findWhat = h("div", {
268
- "class": "k-edit-field"
269
- }, [h("input", {
270
- id: "findWhat",
271
- attrs: this.v3 ? undefined : {
272
- id: "findWhat",
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, {
249
+ fillMode: 'flat',
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", {
264
+ "class": "k-icon k-i-arrow-chevron-left"
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
+ fillMode: 'flat',
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", {
284
+ "class": "k-icon k-i-arrow-chevron-right"
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,
273
312
  type: "text",
274
- autoFocus: true
275
- },
276
- type: "text",
277
- "class": "k-textbox",
278
- value: this.v3 ? searchText : null,
279
- domProps: this.v3 ? undefined : {
280
- "value": searchText
281
- },
282
- onInput: this.onSearchChange,
283
- on: this.v3 ? undefined : {
284
- "input": this.onSearchChange,
285
- "focus": this.onSearchChange,
286
- "keydown": this.onKeyDown
287
- },
288
- onFocus: this.onSearchChange,
289
- onKeydown: this.onKeyDown,
290
- autoFocus: true
291
- })]);
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
+
292
329
  var replaceWithLabel = h("div", {
293
330
  "class": "k-edit-label"
294
331
  }, [h("label", {
@@ -299,13 +336,15 @@ var FindAndReplaceDialog = {
299
336
  }, [localization.toLanguageString(findReplaceReplaceWith, messages_1.messages[findReplaceReplaceWith])])]);
300
337
  var replaceWith = h("div", {
301
338
  "class": "k-edit-field"
339
+ }, [h("span", {
340
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
302
341
  }, [h("input", {
303
342
  id: "replaceWith",
304
343
  attrs: this.v3 ? undefined : {
305
344
  id: "replaceWith",
306
345
  type: "text"
307
346
  },
308
- "class": "k-textbox",
347
+ "class": "k-input-inner",
309
348
  type: "text",
310
349
  value: this.v3 ? replaceText : null,
311
350
  domProps: this.v3 ? undefined : {
@@ -315,7 +354,7 @@ var FindAndReplaceDialog = {
315
354
  on: this.v3 ? undefined : {
316
355
  "input": this.onReplaceChange
317
356
  }
318
- })]);
357
+ })])]);
319
358
  return (// @ts-ignore function children
320
359
  h(kendo_vue_dialogs_1.Window, {
321
360
  title: localization.toLanguageString(findReplaceDialogTitle, messages_1.messages[findReplaceDialogTitle]),
@@ -374,10 +413,10 @@ var FindAndReplaceDialog = {
374
413
  }, _this.v3 ? function () {
375
414
  return [h("div", {
376
415
  "class": "k-edit-form-container"
377
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
416
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
378
417
  } : [h("div", {
379
418
  "class": "k-edit-form-container"
380
- }, [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
381
420
  h(kendo_vue_layout_1.TabStripTab, {
382
421
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
383
422
  attrs: _this.v3 ? undefined : {
@@ -386,10 +425,10 @@ var FindAndReplaceDialog = {
386
425
  }, _this.v3 ? function () {
387
426
  return [h("div", {
388
427
  "class": "k-edit-form-container"
389
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
428
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
390
429
  "class": "k-actions k-hstack k-justify-content-end"
391
- }, [h("button", {
392
- "class": "k-button",
430
+ }, [// @ts-ignore function children
431
+ h(kendo_vue_buttons_1.Button, {
393
432
  disabled: !Boolean(nextMatch),
394
433
  attrs: _this.v3 ? undefined : {
395
434
  disabled: !Boolean(nextMatch)
@@ -398,8 +437,10 @@ var FindAndReplaceDialog = {
398
437
  on: _this.v3 ? undefined : {
399
438
  "click": _this.onReplace
400
439
  }
401
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
402
- "class": "k-button",
440
+ }, _this.v3 ? function () {
441
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
442
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), // @ts-ignore function children
443
+ h(kendo_vue_buttons_1.Button, {
403
444
  disabled: !Boolean(nextMatch),
404
445
  attrs: _this.v3 ? undefined : {
405
446
  disabled: !Boolean(nextMatch)
@@ -408,13 +449,14 @@ var FindAndReplaceDialog = {
408
449
  on: _this.v3 ? undefined : {
409
450
  "click": _this.onReplaceAll
410
451
  }
411
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
452
+ }, _this.v3 ? function () {
453
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
454
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
412
455
  } : [h("div", {
413
456
  "class": "k-edit-form-container"
414
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
457
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
415
458
  "class": "k-actions k-hstack k-justify-content-end"
416
- }, [h("button", {
417
- "class": "k-button",
459
+ }, [h(kendo_vue_buttons_1.Button, {
418
460
  disabled: !Boolean(nextMatch),
419
461
  attrs: _this.v3 ? undefined : {
420
462
  disabled: !Boolean(nextMatch)
@@ -423,8 +465,9 @@ var FindAndReplaceDialog = {
423
465
  on: _this.v3 ? undefined : {
424
466
  "click": _this.onReplace
425
467
  }
426
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
427
- "class": "k-button",
468
+ }, _this.v3 ? function () {
469
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
470
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
428
471
  disabled: !Boolean(nextMatch),
429
472
  attrs: _this.v3 ? undefined : {
430
473
  disabled: !Boolean(nextMatch)
@@ -433,7 +476,9 @@ var FindAndReplaceDialog = {
433
476
  on: _this.v3 ? undefined : {
434
477
  "click": _this.onReplaceAll
435
478
  }
436
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
479
+ }, _this.v3 ? function () {
480
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
481
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
437
482
  } : [h(kendo_vue_layout_1.TabStripTab, {
438
483
  title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
439
484
  attrs: _this.v3 ? undefined : {
@@ -442,10 +487,10 @@ var FindAndReplaceDialog = {
442
487
  }, _this.v3 ? function () {
443
488
  return [h("div", {
444
489
  "class": "k-edit-form-container"
445
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
490
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
446
491
  } : [h("div", {
447
492
  "class": "k-edit-form-container"
448
- }, [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, {
449
494
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
450
495
  attrs: _this.v3 ? undefined : {
451
496
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -453,10 +498,9 @@ var FindAndReplaceDialog = {
453
498
  }, _this.v3 ? function () {
454
499
  return [h("div", {
455
500
  "class": "k-edit-form-container"
456
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
501
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
457
502
  "class": "k-actions k-hstack k-justify-content-end"
458
- }, [h("button", {
459
- "class": "k-button",
503
+ }, [h(kendo_vue_buttons_1.Button, {
460
504
  disabled: !Boolean(nextMatch),
461
505
  attrs: _this.v3 ? undefined : {
462
506
  disabled: !Boolean(nextMatch)
@@ -465,8 +509,9 @@ var FindAndReplaceDialog = {
465
509
  on: _this.v3 ? undefined : {
466
510
  "click": _this.onReplace
467
511
  }
468
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
469
- "class": "k-button",
512
+ }, _this.v3 ? function () {
513
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
514
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
470
515
  disabled: !Boolean(nextMatch),
471
516
  attrs: _this.v3 ? undefined : {
472
517
  disabled: !Boolean(nextMatch)
@@ -475,13 +520,14 @@ var FindAndReplaceDialog = {
475
520
  on: _this.v3 ? undefined : {
476
521
  "click": _this.onReplaceAll
477
522
  }
478
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
523
+ }, _this.v3 ? function () {
524
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
525
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
479
526
  } : [h("div", {
480
527
  "class": "k-edit-form-container"
481
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
528
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
482
529
  "class": "k-actions k-hstack k-justify-content-end"
483
- }, [h("button", {
484
- "class": "k-button",
530
+ }, [h(kendo_vue_buttons_1.Button, {
485
531
  disabled: !Boolean(nextMatch),
486
532
  attrs: _this.v3 ? undefined : {
487
533
  disabled: !Boolean(nextMatch)
@@ -490,8 +536,9 @@ var FindAndReplaceDialog = {
490
536
  on: _this.v3 ? undefined : {
491
537
  "click": _this.onReplace
492
538
  }
493
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
494
- "class": "k-button",
539
+ }, _this.v3 ? function () {
540
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
541
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
495
542
  disabled: !Boolean(nextMatch),
496
543
  attrs: _this.v3 ? undefined : {
497
544
  disabled: !Boolean(nextMatch)
@@ -500,7 +547,9 @@ var FindAndReplaceDialog = {
500
547
  on: _this.v3 ? undefined : {
501
548
  "click": _this.onReplaceAll
502
549
  }
503
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])];
550
+ }, _this.v3 ? function () {
551
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
552
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
504
553
  } : [h(kendo_vue_layout_1.TabStrip, {
505
554
  selected: _this.selectedTab,
506
555
  attrs: _this.v3 ? undefined : {
@@ -522,10 +571,10 @@ var FindAndReplaceDialog = {
522
571
  }, _this.v3 ? function () {
523
572
  return [h("div", {
524
573
  "class": "k-edit-form-container"
525
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
574
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
526
575
  } : [h("div", {
527
576
  "class": "k-edit-form-container"
528
- }, [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, {
529
578
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
530
579
  attrs: _this.v3 ? undefined : {
531
580
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -533,10 +582,9 @@ var FindAndReplaceDialog = {
533
582
  }, _this.v3 ? function () {
534
583
  return [h("div", {
535
584
  "class": "k-edit-form-container"
536
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
585
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
537
586
  "class": "k-actions k-hstack k-justify-content-end"
538
- }, [h("button", {
539
- "class": "k-button",
587
+ }, [h(kendo_vue_buttons_1.Button, {
540
588
  disabled: !Boolean(nextMatch),
541
589
  attrs: _this.v3 ? undefined : {
542
590
  disabled: !Boolean(nextMatch)
@@ -545,8 +593,9 @@ var FindAndReplaceDialog = {
545
593
  on: _this.v3 ? undefined : {
546
594
  "click": _this.onReplace
547
595
  }
548
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
549
- "class": "k-button",
596
+ }, _this.v3 ? function () {
597
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
598
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
550
599
  disabled: !Boolean(nextMatch),
551
600
  attrs: _this.v3 ? undefined : {
552
601
  disabled: !Boolean(nextMatch)
@@ -555,13 +604,14 @@ var FindAndReplaceDialog = {
555
604
  on: _this.v3 ? undefined : {
556
605
  "click": _this.onReplaceAll
557
606
  }
558
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
607
+ }, _this.v3 ? function () {
608
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
609
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
559
610
  } : [h("div", {
560
611
  "class": "k-edit-form-container"
561
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
612
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
562
613
  "class": "k-actions k-hstack k-justify-content-end"
563
- }, [h("button", {
564
- "class": "k-button",
614
+ }, [h(kendo_vue_buttons_1.Button, {
565
615
  disabled: !Boolean(nextMatch),
566
616
  attrs: _this.v3 ? undefined : {
567
617
  disabled: !Boolean(nextMatch)
@@ -570,8 +620,9 @@ var FindAndReplaceDialog = {
570
620
  on: _this.v3 ? undefined : {
571
621
  "click": _this.onReplace
572
622
  }
573
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
574
- "class": "k-button",
623
+ }, _this.v3 ? function () {
624
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
625
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
575
626
  disabled: !Boolean(nextMatch),
576
627
  attrs: _this.v3 ? undefined : {
577
628
  disabled: !Boolean(nextMatch)
@@ -580,7 +631,9 @@ var FindAndReplaceDialog = {
580
631
  on: _this.v3 ? undefined : {
581
632
  "click": _this.onReplaceAll
582
633
  }
583
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
634
+ }, _this.v3 ? function () {
635
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
636
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
584
637
  } : [h(kendo_vue_layout_1.TabStripTab, {
585
638
  title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
586
639
  attrs: _this.v3 ? undefined : {
@@ -589,10 +642,10 @@ var FindAndReplaceDialog = {
589
642
  }, _this.v3 ? function () {
590
643
  return [h("div", {
591
644
  "class": "k-edit-form-container"
592
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
645
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
593
646
  } : [h("div", {
594
647
  "class": "k-edit-form-container"
595
- }, [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, {
596
649
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
597
650
  attrs: _this.v3 ? undefined : {
598
651
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -600,10 +653,9 @@ var FindAndReplaceDialog = {
600
653
  }, _this.v3 ? function () {
601
654
  return [h("div", {
602
655
  "class": "k-edit-form-container"
603
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
656
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
604
657
  "class": "k-actions k-hstack k-justify-content-end"
605
- }, [h("button", {
606
- "class": "k-button",
658
+ }, [h(kendo_vue_buttons_1.Button, {
607
659
  disabled: !Boolean(nextMatch),
608
660
  attrs: _this.v3 ? undefined : {
609
661
  disabled: !Boolean(nextMatch)
@@ -612,8 +664,9 @@ var FindAndReplaceDialog = {
612
664
  on: _this.v3 ? undefined : {
613
665
  "click": _this.onReplace
614
666
  }
615
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
616
- "class": "k-button",
667
+ }, _this.v3 ? function () {
668
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
669
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
617
670
  disabled: !Boolean(nextMatch),
618
671
  attrs: _this.v3 ? undefined : {
619
672
  disabled: !Boolean(nextMatch)
@@ -622,13 +675,14 @@ var FindAndReplaceDialog = {
622
675
  on: _this.v3 ? undefined : {
623
676
  "click": _this.onReplaceAll
624
677
  }
625
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
678
+ }, _this.v3 ? function () {
679
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
680
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
626
681
  } : [h("div", {
627
682
  "class": "k-edit-form-container"
628
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
683
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
629
684
  "class": "k-actions k-hstack k-justify-content-end"
630
- }, [h("button", {
631
- "class": "k-button",
685
+ }, [h(kendo_vue_buttons_1.Button, {
632
686
  disabled: !Boolean(nextMatch),
633
687
  attrs: _this.v3 ? undefined : {
634
688
  disabled: !Boolean(nextMatch)
@@ -637,8 +691,9 @@ var FindAndReplaceDialog = {
637
691
  on: _this.v3 ? undefined : {
638
692
  "click": _this.onReplace
639
693
  }
640
- }, [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h("button", {
641
- "class": "k-button",
694
+ }, _this.v3 ? function () {
695
+ return [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])];
696
+ } : [localization.toLanguageString(findReplaceReplace, messages_1.messages[findReplaceReplace])]), h(kendo_vue_buttons_1.Button, {
642
697
  disabled: !Boolean(nextMatch),
643
698
  attrs: _this.v3 ? undefined : {
644
699
  disabled: !Boolean(nextMatch)
@@ -647,7 +702,9 @@ var FindAndReplaceDialog = {
647
702
  on: _this.v3 ? undefined : {
648
703
  "click": _this.onReplaceAll
649
704
  }
650
- }, [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])])
705
+ }, _this.v3 ? function () {
706
+ return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
707
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
651
708
  ); // document.body);
652
709
  },
653
710
  methods: {
@@ -710,7 +767,12 @@ var FindAndReplaceDialog = {
710
767
  var transaction = view.state.tr.setSelection(selectionResult);
711
768
  transaction.scrollIntoView();
712
769
  view.updateState(view.state.apply(transaction));
770
+ this._prevMatch = this.nextMatch;
713
771
  this.nextMatch = selectionResult;
772
+
773
+ if (this._prevMatch !== this.nextMatch) {
774
+ this.$forceUpdate();
775
+ }
714
776
  }
715
777
  },
716
778
  onReplace: function onReplace() {
@@ -791,15 +853,17 @@ var FindAndReplaceDialog = {
791
853
  var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
792
854
  return match.from >= selection_1.from;
793
855
  }) || this.matchCyclic && matches[0] || undefined;
856
+ this._prevMatch = this.nextMatch;
794
857
  this.matches = matches;
795
858
  this.nextMatch = nextMatch;
796
859
  } else {
797
- this.matches = undefined;
860
+ this._prevMatch = this.nextMatch;
861
+ this.matches = [];
798
862
  this.nextMatch = undefined;
799
863
  }
800
864
  }
801
865
  }
802
866
  };
803
- exports.FindAndReplaceDialog = FindAndReplaceDialog;
804
- var FindAndReplaceDialogVue3 = FindAndReplaceDialog;
805
- exports.FindAndReplaceDialogVue3 = FindAndReplaceDialogVue3;
867
+ exports.FindAndReplaceDialogVue2 = FindAndReplaceDialogVue2;
868
+ var FindAndReplaceDialog = FindAndReplaceDialogVue2;
869
+ exports.FindAndReplaceDialog = FindAndReplaceDialog;