@progress/kendo-vue-editor 2.8.0-dev.202201111325 → 3.0.0-dev.202201161025

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 (58) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  2. package/dist/es/Editor.js +14 -9
  3. package/dist/es/config/toolsSettings.d.ts +4 -0
  4. package/dist/es/dialogs/FindReplace.d.ts +1 -1
  5. package/dist/es/dialogs/FindReplace.js +145 -115
  6. package/dist/es/dialogs/insertImage.js +20 -10
  7. package/dist/es/dialogs/insertLink.js +9 -5
  8. package/dist/es/main.d.ts +19 -0
  9. package/dist/es/main.js +19 -0
  10. package/dist/es/package-metadata.js +1 -1
  11. package/dist/es/tools/align.js +2 -2
  12. package/dist/es/tools/applyColor.js +6 -2
  13. package/dist/es/tools/cleanFormatting.js +2 -2
  14. package/dist/es/tools/findReplace.js +4 -4
  15. package/dist/es/tools/fontStyle.js +56 -20
  16. package/dist/es/tools/formatBlock.js +50 -16
  17. package/dist/es/tools/indent.js +2 -2
  18. package/dist/es/tools/inlineFormat.js +2 -2
  19. package/dist/es/tools/insertImage.js +2 -2
  20. package/dist/es/tools/insertLink.js +2 -2
  21. package/dist/es/tools/insertTable/tool.js +2 -2
  22. package/dist/es/tools/lists.js +2 -2
  23. package/dist/es/tools/outdent.js +2 -2
  24. package/dist/es/tools/pdf.js +2 -2
  25. package/dist/es/tools/print.js +2 -2
  26. package/dist/es/tools/proseMirrorTool.js +2 -2
  27. package/dist/es/tools/selectAll.js +2 -2
  28. package/dist/es/tools/unlink.js +2 -2
  29. package/dist/es/tools/viewHtml.js +2 -2
  30. package/dist/npm/Editor.js +13 -8
  31. package/dist/npm/config/toolsSettings.d.ts +4 -0
  32. package/dist/npm/dialogs/FindReplace.d.ts +1 -1
  33. package/dist/npm/dialogs/FindReplace.js +145 -115
  34. package/dist/npm/dialogs/insertImage.js +20 -10
  35. package/dist/npm/dialogs/insertLink.js +9 -5
  36. package/dist/npm/main.d.ts +19 -0
  37. package/dist/npm/main.js +38 -0
  38. package/dist/npm/package-metadata.js +1 -1
  39. package/dist/npm/tools/align.js +2 -2
  40. package/dist/npm/tools/applyColor.js +6 -2
  41. package/dist/npm/tools/cleanFormatting.js +2 -2
  42. package/dist/npm/tools/findReplace.js +4 -4
  43. package/dist/npm/tools/fontStyle.js +57 -20
  44. package/dist/npm/tools/formatBlock.js +51 -16
  45. package/dist/npm/tools/indent.js +2 -2
  46. package/dist/npm/tools/inlineFormat.js +2 -2
  47. package/dist/npm/tools/insertImage.js +2 -2
  48. package/dist/npm/tools/insertLink.js +2 -2
  49. package/dist/npm/tools/insertTable/tool.js +2 -2
  50. package/dist/npm/tools/lists.js +2 -2
  51. package/dist/npm/tools/outdent.js +2 -2
  52. package/dist/npm/tools/pdf.js +2 -2
  53. package/dist/npm/tools/print.js +2 -2
  54. package/dist/npm/tools/proseMirrorTool.js +2 -2
  55. package/dist/npm/tools/selectAll.js +2 -2
  56. package/dist/npm/tools/unlink.js +2 -2
  57. package/dist/npm/tools/viewHtml.js +2 -2
  58. package/package.json +12 -12
@@ -48,7 +48,8 @@ var FindAndReplaceDialogVue2 = {
48
48
  }
49
49
  },
50
50
  created: function created() {
51
- this.matches = undefined;
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
- nextMatch: undefined
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;
@@ -154,7 +152,7 @@ var FindAndReplaceDialogVue2 = {
154
152
  var checkboxes = h("div", {
155
153
  "class": "k-search-options"
156
154
  }, [h("span", [h("input", {
157
- "class": "k-checkbox",
155
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
158
156
  type: "checkbox",
159
157
  attrs: this.v3 ? undefined : {
160
158
  type: "checkbox",
@@ -176,7 +174,7 @@ var FindAndReplaceDialogVue2 = {
176
174
  },
177
175
  "class": "k-checkbox-label"
178
176
  }, [localization.toLanguageString(findReplaceMatchCase, messages_1.messages[findReplaceMatchCase])])]), h("span", [h("input", {
179
- "class": "k-checkbox",
177
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
180
178
  type: "checkbox",
181
179
  attrs: this.v3 ? undefined : {
182
180
  type: "checkbox",
@@ -198,7 +196,7 @@ var FindAndReplaceDialogVue2 = {
198
196
  },
199
197
  "class": "k-checkbox-label"
200
198
  }, [localization.toLanguageString(findReplaceMatchWord, messages_1.messages[findReplaceMatchWord])])]), h("span", [h("input", {
201
- "class": "k-checkbox",
199
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
202
200
  type: "checkbox",
203
201
  attrs: this.v3 ? undefined : {
204
202
  type: "checkbox",
@@ -220,7 +218,7 @@ var FindAndReplaceDialogVue2 = {
220
218
  },
221
219
  "class": "k-checkbox-label"
222
220
  }, [localization.toLanguageString(findReplaceMatchCyclic, messages_1.messages[findReplaceMatchCyclic])])]), h("span", [h("input", {
223
- "class": "k-checkbox",
221
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
224
222
  type: "checkbox",
225
223
  attrs: this.v3 ? undefined : {
226
224
  type: "checkbox",
@@ -242,78 +240,95 @@ var FindAndReplaceDialogVue2 = {
242
240
  },
243
241
  "class": "k-checkbox-label"
244
242
  }, [localization.toLanguageString(findReplaceUseRegExp, messages_1.messages[findReplaceUseRegExp])])])]);
245
- var navigation = 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 : {
243
+
244
+ var navigation = function navigation(findWhatRef) {
245
+ var isRtl = this.$props.dir === 'rtl';
246
+ var prevButton = // @ts-ignore function children
247
+ h(kendo_vue_buttons_1.Button, {
251
248
  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])]), h("span", [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))]), // @ts-ignore function children
266
- h(kendo_vue_buttons_1.Button, {
267
- fillMode: 'flat',
268
- attrs: this.v3 ? undefined : {
249
+ attrs: this.v3 ? undefined : {
250
+ fillMode: 'flat',
251
+ themeColor: 'primary'
252
+ },
253
+ themeColor: 'primary',
254
+ onClick: this.onFindPrev,
255
+ on: this.v3 ? undefined : {
256
+ "click": this.onFindPrev
257
+ }
258
+ }, this.v3 ? function () {
259
+ return [h("span", {
260
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
261
+ }), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])];
262
+ } : [h("span", {
263
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
264
+ }), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])]);
265
+ var nextButton = // @ts-ignore function children
266
+ h(kendo_vue_buttons_1.Button, {
269
267
  fillMode: 'flat',
270
- themeColor: 'primary'
271
- },
272
- themeColor: 'primary',
273
- onClick: this.onFindNext,
274
- on: this.v3 ? undefined : {
275
- "click": this.onFindNext
276
- }
277
- }, this.v3 ? function () {
278
- return [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
279
- "class": "k-icon k-i-arrow-chevron-right"
280
- })];
281
- } : [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
282
- "class": "k-icon k-i-arrow-chevron-right"
283
- })])]);
284
- var findWhatLabel = h("div", {
285
- "class": "k-edit-label"
286
- }, [h("label", {
287
- "for": "findWhat",
288
- attrs: this.v3 ? undefined : {
289
- "for": "findWhat"
290
- }
291
- }, [localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])])]);
292
- var findWhat = h("div", {
293
- "class": "k-edit-field"
294
- }, [h("input", {
295
- id: "findWhat",
296
- attrs: this.v3 ? undefined : {
297
- id: "findWhat",
268
+ attrs: this.v3 ? undefined : {
269
+ fillMode: 'flat',
270
+ themeColor: 'primary'
271
+ },
272
+ themeColor: 'primary',
273
+ onClick: this.onFindNext,
274
+ on: this.v3 ? undefined : {
275
+ "click": this.onFindNext
276
+ }
277
+ }, this.v3 ? function () {
278
+ return [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
279
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
280
+ })];
281
+ } : [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
282
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
283
+ })]);
284
+ return h("div", {
285
+ "class": "k-matches-container"
286
+ }, [prevButton, this.hasMounted && h("span", {
287
+ ref: findWhatRef
288
+ }, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))]), nextButton]);
289
+ };
290
+
291
+ var findWhatLabel = function findWhatLabel(findWhatId) {
292
+ return h("div", {
293
+ "class": "k-edit-label"
294
+ }, [h("label", {
295
+ ref: findWhatId,
296
+ "for": findWhatId,
297
+ attrs: this.v3 ? undefined : {
298
+ "for": findWhatId
299
+ }
300
+ }, [localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])])]);
301
+ };
302
+
303
+ var findWhat = function findWhat(findWhatId) {
304
+ return h("div", {
305
+ "class": "k-edit-field"
306
+ }, [h("span", {
307
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
308
+ }, [h("input", {
309
+ id: findWhatId,
310
+ attrs: this.v3 ? undefined : {
311
+ id: findWhatId,
312
+ type: "text"
313
+ },
314
+ ref: findWhatId,
298
315
  type: "text",
299
- autoFocus: true
300
- },
301
- type: "text",
302
- "class": "k-input",
303
- value: this.v3 ? searchText : null,
304
- domProps: this.v3 ? undefined : {
305
- "value": searchText
306
- },
307
- onInput: this.onSearchChange,
308
- on: this.v3 ? undefined : {
309
- "input": this.onSearchChange,
310
- "focus": this.onSearchChange,
311
- "keydown": this.onKeyDown
312
- },
313
- onFocus: this.onSearchChange,
314
- onKeydown: this.onKeyDown,
315
- autoFocus: true
316
- })]);
316
+ "class": "k-input-inner",
317
+ value: this.v3 ? searchText : null,
318
+ domProps: this.v3 ? undefined : {
319
+ "value": searchText
320
+ },
321
+ onInput: this.onSearchChange,
322
+ on: this.v3 ? undefined : {
323
+ "input": this.onSearchChange,
324
+ "focus": this.onSearchChange,
325
+ "keydown": this.onKeyDown
326
+ },
327
+ onFocus: this.onSearchChange,
328
+ onKeydown: this.onKeyDown
329
+ })])]);
330
+ };
331
+
317
332
  var replaceWithLabel = h("div", {
318
333
  "class": "k-edit-label"
319
334
  }, [h("label", {
@@ -324,13 +339,15 @@ var FindAndReplaceDialogVue2 = {
324
339
  }, [localization.toLanguageString(findReplaceReplaceWith, messages_1.messages[findReplaceReplaceWith])])]);
325
340
  var replaceWith = h("div", {
326
341
  "class": "k-edit-field"
342
+ }, [h("span", {
343
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
327
344
  }, [h("input", {
328
345
  id: "replaceWith",
329
346
  attrs: this.v3 ? undefined : {
330
347
  id: "replaceWith",
331
348
  type: "text"
332
349
  },
333
- "class": "k-input",
350
+ "class": "k-input-inner",
334
351
  type: "text",
335
352
  value: this.v3 ? replaceText : null,
336
353
  domProps: this.v3 ? undefined : {
@@ -340,7 +357,7 @@ var FindAndReplaceDialogVue2 = {
340
357
  on: this.v3 ? undefined : {
341
358
  "input": this.onReplaceChange
342
359
  }
343
- })]);
360
+ })])]);
344
361
  return (// @ts-ignore function children
345
362
  h(kendo_vue_dialogs_1.Window, {
346
363
  title: localization.toLanguageString(findReplaceDialogTitle, messages_1.messages[findReplaceDialogTitle]),
@@ -357,7 +374,8 @@ var FindAndReplaceDialogVue2 = {
357
374
  },
358
375
  maximizeButton: function maximizeButton() {
359
376
  return null;
360
- }
377
+ },
378
+ dir: this.$props.dir
361
379
  },
362
380
  onClose: this.onClose,
363
381
  on: this.v3 ? undefined : {
@@ -374,15 +392,18 @@ var FindAndReplaceDialogVue2 = {
374
392
  },
375
393
  maximizeButton: function maximizeButton() {
376
394
  return null;
377
- }
395
+ },
396
+ dir: this.$props.dir
378
397
  }, this.v3 ? function () {
379
398
  return [// @ts-ignore function children
380
399
  h(kendo_vue_layout_1.TabStrip, {
381
- selected: _this.selectedTab,
400
+ dir: _this.$props.dir,
382
401
  attrs: _this.v3 ? undefined : {
402
+ dir: _this.$props.dir,
383
403
  selected: _this.selectedTab,
384
404
  animation: false
385
405
  },
406
+ selected: _this.selectedTab,
386
407
  "class": "k-editor-find-replace",
387
408
  onSelect: _this.onTabSelect,
388
409
  on: _this.v3 ? undefined : {
@@ -399,10 +420,10 @@ var FindAndReplaceDialogVue2 = {
399
420
  }, _this.v3 ? function () {
400
421
  return [h("div", {
401
422
  "class": "k-edit-form-container"
402
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
423
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
403
424
  } : [h("div", {
404
425
  "class": "k-edit-form-container"
405
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
426
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
406
427
  h(kendo_vue_layout_1.TabStripTab, {
407
428
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
408
429
  attrs: _this.v3 ? undefined : {
@@ -411,7 +432,7 @@ var FindAndReplaceDialogVue2 = {
411
432
  }, _this.v3 ? function () {
412
433
  return [h("div", {
413
434
  "class": "k-edit-form-container"
414
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
435
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
415
436
  "class": "k-actions k-hstack k-justify-content-end"
416
437
  }, [// @ts-ignore function children
417
438
  h(kendo_vue_buttons_1.Button, {
@@ -437,10 +458,10 @@ var FindAndReplaceDialogVue2 = {
437
458
  }
438
459
  }, _this.v3 ? function () {
439
460
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
440
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
461
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
441
462
  } : [h("div", {
442
463
  "class": "k-edit-form-container"
443
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
464
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
444
465
  "class": "k-actions k-hstack k-justify-content-end"
445
466
  }, [h(kendo_vue_buttons_1.Button, {
446
467
  disabled: !Boolean(nextMatch),
@@ -464,7 +485,7 @@ var FindAndReplaceDialogVue2 = {
464
485
  }
465
486
  }, _this.v3 ? function () {
466
487
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
467
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
488
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
468
489
  } : [h(kendo_vue_layout_1.TabStripTab, {
469
490
  title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
470
491
  attrs: _this.v3 ? undefined : {
@@ -473,10 +494,10 @@ var FindAndReplaceDialogVue2 = {
473
494
  }, _this.v3 ? function () {
474
495
  return [h("div", {
475
496
  "class": "k-edit-form-container"
476
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
497
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
477
498
  } : [h("div", {
478
499
  "class": "k-edit-form-container"
479
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
500
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
480
501
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
481
502
  attrs: _this.v3 ? undefined : {
482
503
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -484,7 +505,7 @@ var FindAndReplaceDialogVue2 = {
484
505
  }, _this.v3 ? function () {
485
506
  return [h("div", {
486
507
  "class": "k-edit-form-container"
487
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
508
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
488
509
  "class": "k-actions k-hstack k-justify-content-end"
489
510
  }, [h(kendo_vue_buttons_1.Button, {
490
511
  disabled: !Boolean(nextMatch),
@@ -508,10 +529,10 @@ var FindAndReplaceDialogVue2 = {
508
529
  }
509
530
  }, _this.v3 ? function () {
510
531
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
511
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
532
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
512
533
  } : [h("div", {
513
534
  "class": "k-edit-form-container"
514
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
535
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
515
536
  "class": "k-actions k-hstack k-justify-content-end"
516
537
  }, [h(kendo_vue_buttons_1.Button, {
517
538
  disabled: !Boolean(nextMatch),
@@ -535,13 +556,15 @@ var FindAndReplaceDialogVue2 = {
535
556
  }
536
557
  }, _this.v3 ? function () {
537
558
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
538
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])];
559
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
539
560
  } : [h(kendo_vue_layout_1.TabStrip, {
540
- selected: _this.selectedTab,
561
+ dir: _this.$props.dir,
541
562
  attrs: _this.v3 ? undefined : {
563
+ dir: _this.$props.dir,
542
564
  selected: _this.selectedTab,
543
565
  animation: false
544
566
  },
567
+ selected: _this.selectedTab,
545
568
  "class": "k-editor-find-replace",
546
569
  onSelect: _this.onTabSelect,
547
570
  on: _this.v3 ? undefined : {
@@ -557,10 +580,10 @@ var FindAndReplaceDialogVue2 = {
557
580
  }, _this.v3 ? function () {
558
581
  return [h("div", {
559
582
  "class": "k-edit-form-container"
560
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
583
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
561
584
  } : [h("div", {
562
585
  "class": "k-edit-form-container"
563
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
586
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
564
587
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
565
588
  attrs: _this.v3 ? undefined : {
566
589
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -568,7 +591,7 @@ var FindAndReplaceDialogVue2 = {
568
591
  }, _this.v3 ? function () {
569
592
  return [h("div", {
570
593
  "class": "k-edit-form-container"
571
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
594
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
572
595
  "class": "k-actions k-hstack k-justify-content-end"
573
596
  }, [h(kendo_vue_buttons_1.Button, {
574
597
  disabled: !Boolean(nextMatch),
@@ -592,10 +615,10 @@ var FindAndReplaceDialogVue2 = {
592
615
  }
593
616
  }, _this.v3 ? function () {
594
617
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
595
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
618
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
596
619
  } : [h("div", {
597
620
  "class": "k-edit-form-container"
598
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
621
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
599
622
  "class": "k-actions k-hstack k-justify-content-end"
600
623
  }, [h(kendo_vue_buttons_1.Button, {
601
624
  disabled: !Boolean(nextMatch),
@@ -619,7 +642,7 @@ var FindAndReplaceDialogVue2 = {
619
642
  }
620
643
  }, _this.v3 ? function () {
621
644
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
622
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
645
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
623
646
  } : [h(kendo_vue_layout_1.TabStripTab, {
624
647
  title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
625
648
  attrs: _this.v3 ? undefined : {
@@ -628,10 +651,10 @@ var FindAndReplaceDialogVue2 = {
628
651
  }, _this.v3 ? function () {
629
652
  return [h("div", {
630
653
  "class": "k-edit-form-container"
631
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
654
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
632
655
  } : [h("div", {
633
656
  "class": "k-edit-form-container"
634
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
657
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
635
658
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
636
659
  attrs: _this.v3 ? undefined : {
637
660
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -639,7 +662,7 @@ var FindAndReplaceDialogVue2 = {
639
662
  }, _this.v3 ? function () {
640
663
  return [h("div", {
641
664
  "class": "k-edit-form-container"
642
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
665
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
643
666
  "class": "k-actions k-hstack k-justify-content-end"
644
667
  }, [h(kendo_vue_buttons_1.Button, {
645
668
  disabled: !Boolean(nextMatch),
@@ -663,10 +686,10 @@ var FindAndReplaceDialogVue2 = {
663
686
  }
664
687
  }, _this.v3 ? function () {
665
688
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
666
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
689
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
667
690
  } : [h("div", {
668
691
  "class": "k-edit-form-container"
669
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
692
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
670
693
  "class": "k-actions k-hstack k-justify-content-end"
671
694
  }, [h(kendo_vue_buttons_1.Button, {
672
695
  disabled: !Boolean(nextMatch),
@@ -690,7 +713,7 @@ var FindAndReplaceDialogVue2 = {
690
713
  }
691
714
  }, _this.v3 ? function () {
692
715
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
693
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])])
716
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
694
717
  ); // document.body);
695
718
  },
696
719
  methods: {
@@ -753,7 +776,12 @@ var FindAndReplaceDialogVue2 = {
753
776
  var transaction = view.state.tr.setSelection(selectionResult);
754
777
  transaction.scrollIntoView();
755
778
  view.updateState(view.state.apply(transaction));
779
+ this._prevMatch = this.nextMatch;
756
780
  this.nextMatch = selectionResult;
781
+
782
+ if (this._prevMatch !== this.nextMatch) {
783
+ this.$forceUpdate();
784
+ }
757
785
  }
758
786
  },
759
787
  onReplace: function onReplace() {
@@ -834,10 +862,12 @@ var FindAndReplaceDialogVue2 = {
834
862
  var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
835
863
  return match.from >= selection_1.from;
836
864
  }) || this.matchCyclic && matches[0] || undefined;
865
+ this._prevMatch = this.nextMatch;
837
866
  this.matches = matches;
838
867
  this.nextMatch = nextMatch;
839
868
  } else {
840
- this.matches = undefined;
869
+ this._prevMatch = this.nextMatch;
870
+ this.matches = [];
841
871
  this.nextMatch = undefined;
842
872
  }
843
873
  }
@@ -86,6 +86,8 @@ var InsertImageDialogVue2 = {
86
86
  }
87
87
  }, [localization.toLanguageString(insertImageAddress, messages_1.messages[insertImageAddress])])]), h("div", {
88
88
  "class": "k-edit-field"
89
+ }, [h("span", {
90
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
89
91
  }, [h("input", {
90
92
  type: "text",
91
93
  attrs: this.v3 ? undefined : {
@@ -93,7 +95,7 @@ var InsertImageDialogVue2 = {
93
95
  id: "k-editor-image-url",
94
96
  autoFocus: true
95
97
  },
96
- "class": "k-input",
98
+ "class": "k-input-inner",
97
99
  id: "k-editor-image-url",
98
100
  value: this.v3 ? attrs.src : null,
99
101
  domProps: this.v3 ? undefined : {
@@ -103,7 +105,7 @@ var InsertImageDialogVue2 = {
103
105
  _this.srcRef = el;
104
106
  } : 'src',
105
107
  autoFocus: true
106
- })]), h("div", {
108
+ })])]), h("div", {
107
109
  "class": "k-edit-label"
108
110
  }, [h("label", {
109
111
  "for": "k-editor-image-alt",
@@ -112,13 +114,15 @@ var InsertImageDialogVue2 = {
112
114
  }
113
115
  }, [localization.toLanguageString(insertImageAltText, messages_1.messages[insertImageAltText])])]), h("div", {
114
116
  "class": "k-edit-field"
117
+ }, [h("span", {
118
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
115
119
  }, [h("input", {
116
120
  type: "text",
117
121
  attrs: this.v3 ? undefined : {
118
122
  type: "text",
119
123
  id: "k-editor-image-alt"
120
124
  },
121
- "class": "k-input",
125
+ "class": "k-input-inner",
122
126
  id: "k-editor-image-alt",
123
127
  value: this.v3 ? attrs.alt : null,
124
128
  domProps: this.v3 ? undefined : {
@@ -127,7 +131,7 @@ var InsertImageDialogVue2 = {
127
131
  ref: this.v3 ? function (el) {
128
132
  _this.altTextRef = el;
129
133
  } : 'altText'
130
- })]), h("div", {
134
+ })])]), h("div", {
131
135
  "class": "k-edit-label"
132
136
  }, [h("label", {
133
137
  "for": "k-editor-image-title",
@@ -136,13 +140,15 @@ var InsertImageDialogVue2 = {
136
140
  }
137
141
  }, [localization.toLanguageString(insertImageTitle, messages_1.messages[insertImageTitle])])]), h("div", {
138
142
  "class": "k-edit-field"
143
+ }, [h("span", {
144
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
139
145
  }, [h("input", {
140
146
  type: "text",
141
147
  attrs: this.v3 ? undefined : {
142
148
  type: "text",
143
149
  id: "k-editor-image-title"
144
150
  },
145
- "class": "k-input",
151
+ "class": "k-input-inner",
146
152
  id: "k-editor-image-title",
147
153
  value: this.v3 ? attrs.title : null,
148
154
  domProps: this.v3 ? undefined : {
@@ -151,7 +157,7 @@ var InsertImageDialogVue2 = {
151
157
  ref: this.v3 ? function (el) {
152
158
  _this.titleRef = el;
153
159
  } : 'title'
154
- })]), h("div", {
160
+ })])]), h("div", {
155
161
  "class": "k-edit-label"
156
162
  }, [h("label", {
157
163
  "for": "k-editor-image-width",
@@ -160,13 +166,15 @@ var InsertImageDialogVue2 = {
160
166
  }
161
167
  }, [localization.toLanguageString(insertImageWidth, messages_1.messages[insertImageWidth])])]), h("div", {
162
168
  "class": "k-edit-field"
169
+ }, [h("span", {
170
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
163
171
  }, [h("input", {
164
172
  type: "text",
165
173
  attrs: this.v3 ? undefined : {
166
174
  type: "text",
167
175
  id: "k-editor-image-width"
168
176
  },
169
- "class": "k-input",
177
+ "class": "k-input-inner",
170
178
  id: "k-editor-image-width",
171
179
  value: this.v3 ? attrs.width : null,
172
180
  domProps: this.v3 ? undefined : {
@@ -175,7 +183,7 @@ var InsertImageDialogVue2 = {
175
183
  ref: this.v3 ? function (el) {
176
184
  _this.widthRef = el;
177
185
  } : 'width'
178
- })]), h("div", {
186
+ })])]), h("div", {
179
187
  "class": "k-edit-label"
180
188
  }, [h("label", {
181
189
  "for": "k-editor-image-height",
@@ -184,13 +192,15 @@ var InsertImageDialogVue2 = {
184
192
  }
185
193
  }, [localization.toLanguageString(insertImageHeight, messages_1.messages[insertImageHeight])])]), h("div", {
186
194
  "class": "k-edit-field"
195
+ }, [h("span", {
196
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
187
197
  }, [h("input", {
188
198
  type: "text",
189
199
  attrs: this.v3 ? undefined : {
190
200
  type: "text",
191
201
  id: "k-editor-image-height"
192
202
  },
193
- "class": "k-input",
203
+ "class": "k-input-inner",
194
204
  id: "k-editor-image-height",
195
205
  value: this.v3 ? attrs.height : null,
196
206
  domProps: this.v3 ? undefined : {
@@ -199,7 +209,7 @@ var InsertImageDialogVue2 = {
199
209
  ref: this.v3 ? function (el) {
200
210
  _this.heightRef = el;
201
211
  } : 'height'
202
- })])]);
212
+ })])])]);
203
213
  var actionButtons = [// @ts-ignore function children
204
214
  h(kendo_vue_buttons_1.Button, {
205
215
  onClick: this.onClose,