@progress/kendo-vue-editor 2.8.0-dev.202201121019 → 3.0.0-dev.202201170830

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  2. package/dist/es/Editor.js +37 -27
  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 +148 -111
  6. package/dist/es/dialogs/insertImage.js +10 -4
  7. package/dist/es/dialogs/insertLink.js +10 -4
  8. package/dist/es/dialogs/viewHtml.js +0 -4
  9. package/dist/es/main.d.ts +19 -0
  10. package/dist/es/main.js +19 -0
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/tools/align.js +2 -2
  13. package/dist/es/tools/applyColor.js +6 -2
  14. package/dist/es/tools/cleanFormatting.js +2 -2
  15. package/dist/es/tools/findReplace.js +4 -4
  16. package/dist/es/tools/fontStyle.js +7 -8
  17. package/dist/es/tools/formatBlock.js +9 -7
  18. package/dist/es/tools/indent.js +2 -2
  19. package/dist/es/tools/inlineFormat.js +2 -2
  20. package/dist/es/tools/insertImage.js +2 -2
  21. package/dist/es/tools/insertLink.js +2 -2
  22. package/dist/es/tools/insertTable/tool.js +2 -2
  23. package/dist/es/tools/lists.js +2 -2
  24. package/dist/es/tools/outdent.js +2 -2
  25. package/dist/es/tools/pdf.js +2 -2
  26. package/dist/es/tools/print.js +2 -2
  27. package/dist/es/tools/proseMirrorTool.js +2 -2
  28. package/dist/es/tools/selectAll.js +2 -2
  29. package/dist/es/tools/unlink.js +2 -2
  30. package/dist/es/tools/viewHtml.js +2 -2
  31. package/dist/npm/Editor.js +36 -26
  32. package/dist/npm/config/toolsSettings.d.ts +4 -0
  33. package/dist/npm/dialogs/FindReplace.d.ts +1 -1
  34. package/dist/npm/dialogs/FindReplace.js +148 -111
  35. package/dist/npm/dialogs/insertImage.js +10 -4
  36. package/dist/npm/dialogs/insertLink.js +10 -4
  37. package/dist/npm/dialogs/viewHtml.js +0 -4
  38. package/dist/npm/main.d.ts +19 -0
  39. package/dist/npm/main.js +38 -0
  40. package/dist/npm/package-metadata.js +1 -1
  41. package/dist/npm/tools/align.js +2 -2
  42. package/dist/npm/tools/applyColor.js +6 -2
  43. package/dist/npm/tools/cleanFormatting.js +2 -2
  44. package/dist/npm/tools/findReplace.js +4 -4
  45. package/dist/npm/tools/fontStyle.js +7 -8
  46. package/dist/npm/tools/formatBlock.js +9 -7
  47. package/dist/npm/tools/indent.js +2 -2
  48. package/dist/npm/tools/inlineFormat.js +2 -2
  49. package/dist/npm/tools/insertImage.js +2 -2
  50. package/dist/npm/tools/insertLink.js +2 -2
  51. package/dist/npm/tools/insertTable/tool.js +2 -2
  52. package/dist/npm/tools/lists.js +2 -2
  53. package/dist/npm/tools/outdent.js +2 -2
  54. package/dist/npm/tools/pdf.js +2 -2
  55. package/dist/npm/tools/print.js +2 -2
  56. package/dist/npm/tools/proseMirrorTool.js +2 -2
  57. package/dist/npm/tools/selectAll.js +2 -2
  58. package/dist/npm/tools/unlink.js +2 -2
  59. package/dist/npm/tools/viewHtml.js +2 -2
  60. package/package.json +12 -12
@@ -32,6 +32,10 @@ var settings = toolsSettings_1.EditorToolsSettings.findAndReplace; // tslint:ena
32
32
 
33
33
  var FindAndReplaceDialogVue2 = {
34
34
  name: 'KendoFindAndReplaceDialog',
35
+ // @ts-ignore
36
+ emits: {
37
+ close: null
38
+ },
35
39
  props: {
36
40
  view: Object,
37
41
  settings: {
@@ -48,7 +52,8 @@ var FindAndReplaceDialogVue2 = {
48
52
  }
49
53
  },
50
54
  created: function created() {
51
- this.matches = undefined;
55
+ this._prevMatch = undefined;
56
+ this.nextMatch = undefined;
52
57
  },
53
58
  data: function data() {
54
59
  return {
@@ -59,24 +64,33 @@ var FindAndReplaceDialogVue2 = {
59
64
  matchWord: false,
60
65
  matchCyclic: false,
61
66
  useRegExp: false,
62
- nextMatch: undefined
67
+ matches: [],
68
+ hasMounted: false
63
69
  };
64
70
  },
65
71
  mounted: function mounted() {
66
72
  if (this.$el) {
67
73
  document.body.append(this.$el);
68
74
  }
75
+
76
+ this.setNextState();
77
+ this.hasMounted = true;
78
+ setTimeout(function () {
79
+ var findInput = document.getElementById('findWhatFind');
80
+
81
+ if (findInput) {
82
+ findInput.focus();
83
+ }
84
+ }, 10);
69
85
  },
70
86
 
71
87
  /**
72
88
  * @hidden
73
89
  */
74
90
  updated: function updated() {
91
+ var matches = this.matches || [];
92
+ var nextMatch = this.nextMatch;
75
93
  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
94
 
81
95
  if (this._prevMatch !== nextMatch) {
82
96
  var state = view.state; // highlight selection
@@ -108,11 +122,6 @@ var FindAndReplaceDialogVue2 = {
108
122
  this.$el.remove();
109
123
  }
110
124
  },
111
- watch: {
112
- nextMatch: function nextMatch(_newNextMatch, oldMatch) {
113
- this._prevMatch = oldMatch;
114
- }
115
- },
116
125
  // @ts-ignore
117
126
  setup: !gh ? undefined : function () {
118
127
  var v3 = !!gh;
@@ -242,80 +251,95 @@ var FindAndReplaceDialogVue2 = {
242
251
  },
243
252
  "class": "k-checkbox-label"
244
253
  }, [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 : {
254
+
255
+ var navigation = function navigation(findWhatRef) {
256
+ var isRtl = this.$props.dir === 'rtl';
257
+ var prevButton = // @ts-ignore function children
258
+ h(kendo_vue_buttons_1.Button, {
251
259
  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 : {
260
+ attrs: this.v3 ? undefined : {
261
+ fillMode: 'flat',
262
+ themeColor: 'primary'
263
+ },
264
+ themeColor: 'primary',
265
+ onClick: this.onFindPrev,
266
+ on: this.v3 ? undefined : {
267
+ "click": this.onFindPrev
268
+ }
269
+ }, this.v3 ? function () {
270
+ return [h("span", {
271
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
272
+ }), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])];
273
+ } : [h("span", {
274
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
275
+ }), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])]);
276
+ var nextButton = // @ts-ignore function children
277
+ h(kendo_vue_buttons_1.Button, {
269
278
  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("span", {
295
- "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
296
- }, [h("input", {
297
- id: "findWhat",
298
- attrs: this.v3 ? undefined : {
299
- id: "findWhat",
279
+ attrs: this.v3 ? undefined : {
280
+ fillMode: 'flat',
281
+ themeColor: 'primary'
282
+ },
283
+ themeColor: 'primary',
284
+ onClick: this.onFindNext,
285
+ on: this.v3 ? undefined : {
286
+ "click": this.onFindNext
287
+ }
288
+ }, this.v3 ? function () {
289
+ return [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
290
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
291
+ })];
292
+ } : [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
293
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
294
+ })]);
295
+ return h("div", {
296
+ "class": "k-matches-container"
297
+ }, [prevButton, this.hasMounted && h("span", {
298
+ ref: findWhatRef
299
+ }, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages_1.messages[findReplaceMatches]))]), nextButton]);
300
+ };
301
+
302
+ var findWhatLabel = function findWhatLabel(findWhatId) {
303
+ return h("div", {
304
+ "class": "k-edit-label"
305
+ }, [h("label", {
306
+ ref: findWhatId,
307
+ "for": findWhatId,
308
+ attrs: this.v3 ? undefined : {
309
+ "for": findWhatId
310
+ }
311
+ }, [localization.toLanguageString(findReplaceFindWhat, messages_1.messages[findReplaceFindWhat])])]);
312
+ };
313
+
314
+ var findWhat = function findWhat(findWhatId) {
315
+ return h("div", {
316
+ "class": "k-edit-field"
317
+ }, [h("span", {
318
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
319
+ }, [h("input", {
320
+ id: findWhatId,
321
+ attrs: this.v3 ? undefined : {
322
+ id: findWhatId,
323
+ type: "text"
324
+ },
325
+ ref: findWhatId,
300
326
  type: "text",
301
- autoFocus: true
302
- },
303
- type: "text",
304
- "class": "k-input-inner",
305
- value: this.v3 ? searchText : null,
306
- domProps: this.v3 ? undefined : {
307
- "value": searchText
308
- },
309
- onInput: this.onSearchChange,
310
- on: this.v3 ? undefined : {
311
- "input": this.onSearchChange,
312
- "focus": this.onSearchChange,
313
- "keydown": this.onKeyDown
314
- },
315
- onFocus: this.onSearchChange,
316
- onKeydown: this.onKeyDown,
317
- autoFocus: true
318
- })])]);
327
+ "class": "k-input-inner",
328
+ value: this.v3 ? searchText : null,
329
+ domProps: this.v3 ? undefined : {
330
+ "value": searchText
331
+ },
332
+ onInput: this.onSearchChange,
333
+ on: this.v3 ? undefined : {
334
+ "input": this.onSearchChange,
335
+ "focus": this.onSearchChange,
336
+ "keydown": this.onKeyDown
337
+ },
338
+ onFocus: this.onSearchChange,
339
+ onKeydown: this.onKeyDown
340
+ })])]);
341
+ };
342
+
319
343
  var replaceWithLabel = h("div", {
320
344
  "class": "k-edit-label"
321
345
  }, [h("label", {
@@ -361,7 +385,8 @@ var FindAndReplaceDialogVue2 = {
361
385
  },
362
386
  maximizeButton: function maximizeButton() {
363
387
  return null;
364
- }
388
+ },
389
+ dir: this.$props.dir
365
390
  },
366
391
  onClose: this.onClose,
367
392
  on: this.v3 ? undefined : {
@@ -378,15 +403,18 @@ var FindAndReplaceDialogVue2 = {
378
403
  },
379
404
  maximizeButton: function maximizeButton() {
380
405
  return null;
381
- }
406
+ },
407
+ dir: this.$props.dir
382
408
  }, this.v3 ? function () {
383
409
  return [// @ts-ignore function children
384
410
  h(kendo_vue_layout_1.TabStrip, {
385
- selected: _this.selectedTab,
411
+ dir: _this.$props.dir,
386
412
  attrs: _this.v3 ? undefined : {
413
+ dir: _this.$props.dir,
387
414
  selected: _this.selectedTab,
388
415
  animation: false
389
416
  },
417
+ selected: _this.selectedTab,
390
418
  "class": "k-editor-find-replace",
391
419
  onSelect: _this.onTabSelect,
392
420
  on: _this.v3 ? undefined : {
@@ -403,10 +431,10 @@ var FindAndReplaceDialogVue2 = {
403
431
  }, _this.v3 ? function () {
404
432
  return [h("div", {
405
433
  "class": "k-edit-form-container"
406
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
434
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
407
435
  } : [h("div", {
408
436
  "class": "k-edit-form-container"
409
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
437
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
410
438
  h(kendo_vue_layout_1.TabStripTab, {
411
439
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
412
440
  attrs: _this.v3 ? undefined : {
@@ -415,7 +443,7 @@ var FindAndReplaceDialogVue2 = {
415
443
  }, _this.v3 ? function () {
416
444
  return [h("div", {
417
445
  "class": "k-edit-form-container"
418
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
446
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
419
447
  "class": "k-actions k-hstack k-justify-content-end"
420
448
  }, [// @ts-ignore function children
421
449
  h(kendo_vue_buttons_1.Button, {
@@ -441,10 +469,10 @@ var FindAndReplaceDialogVue2 = {
441
469
  }
442
470
  }, _this.v3 ? function () {
443
471
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
444
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
472
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
445
473
  } : [h("div", {
446
474
  "class": "k-edit-form-container"
447
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
475
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
448
476
  "class": "k-actions k-hstack k-justify-content-end"
449
477
  }, [h(kendo_vue_buttons_1.Button, {
450
478
  disabled: !Boolean(nextMatch),
@@ -468,7 +496,7 @@ var FindAndReplaceDialogVue2 = {
468
496
  }
469
497
  }, _this.v3 ? function () {
470
498
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
471
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
499
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
472
500
  } : [h(kendo_vue_layout_1.TabStripTab, {
473
501
  title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
474
502
  attrs: _this.v3 ? undefined : {
@@ -477,10 +505,10 @@ var FindAndReplaceDialogVue2 = {
477
505
  }, _this.v3 ? function () {
478
506
  return [h("div", {
479
507
  "class": "k-edit-form-container"
480
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
508
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
481
509
  } : [h("div", {
482
510
  "class": "k-edit-form-container"
483
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
511
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
484
512
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
485
513
  attrs: _this.v3 ? undefined : {
486
514
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -488,7 +516,7 @@ var FindAndReplaceDialogVue2 = {
488
516
  }, _this.v3 ? function () {
489
517
  return [h("div", {
490
518
  "class": "k-edit-form-container"
491
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
519
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
492
520
  "class": "k-actions k-hstack k-justify-content-end"
493
521
  }, [h(kendo_vue_buttons_1.Button, {
494
522
  disabled: !Boolean(nextMatch),
@@ -512,10 +540,10 @@ var FindAndReplaceDialogVue2 = {
512
540
  }
513
541
  }, _this.v3 ? function () {
514
542
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
515
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
543
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
516
544
  } : [h("div", {
517
545
  "class": "k-edit-form-container"
518
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
546
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
519
547
  "class": "k-actions k-hstack k-justify-content-end"
520
548
  }, [h(kendo_vue_buttons_1.Button, {
521
549
  disabled: !Boolean(nextMatch),
@@ -539,13 +567,15 @@ var FindAndReplaceDialogVue2 = {
539
567
  }
540
568
  }, _this.v3 ? function () {
541
569
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
542
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])];
570
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
543
571
  } : [h(kendo_vue_layout_1.TabStrip, {
544
- selected: _this.selectedTab,
572
+ dir: _this.$props.dir,
545
573
  attrs: _this.v3 ? undefined : {
574
+ dir: _this.$props.dir,
546
575
  selected: _this.selectedTab,
547
576
  animation: false
548
577
  },
578
+ selected: _this.selectedTab,
549
579
  "class": "k-editor-find-replace",
550
580
  onSelect: _this.onTabSelect,
551
581
  on: _this.v3 ? undefined : {
@@ -561,10 +591,10 @@ var FindAndReplaceDialogVue2 = {
561
591
  }, _this.v3 ? function () {
562
592
  return [h("div", {
563
593
  "class": "k-edit-form-container"
564
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
594
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
565
595
  } : [h("div", {
566
596
  "class": "k-edit-form-container"
567
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
597
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
568
598
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
569
599
  attrs: _this.v3 ? undefined : {
570
600
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -572,7 +602,7 @@ var FindAndReplaceDialogVue2 = {
572
602
  }, _this.v3 ? function () {
573
603
  return [h("div", {
574
604
  "class": "k-edit-form-container"
575
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
605
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
576
606
  "class": "k-actions k-hstack k-justify-content-end"
577
607
  }, [h(kendo_vue_buttons_1.Button, {
578
608
  disabled: !Boolean(nextMatch),
@@ -596,10 +626,10 @@ var FindAndReplaceDialogVue2 = {
596
626
  }
597
627
  }, _this.v3 ? function () {
598
628
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
599
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
629
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
600
630
  } : [h("div", {
601
631
  "class": "k-edit-form-container"
602
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
632
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
603
633
  "class": "k-actions k-hstack k-justify-content-end"
604
634
  }, [h(kendo_vue_buttons_1.Button, {
605
635
  disabled: !Boolean(nextMatch),
@@ -623,7 +653,7 @@ var FindAndReplaceDialogVue2 = {
623
653
  }
624
654
  }, _this.v3 ? function () {
625
655
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
626
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
656
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
627
657
  } : [h(kendo_vue_layout_1.TabStripTab, {
628
658
  title: localization.toLanguageString(findReplaceTabFind, messages_1.messages[findReplaceTabFind]),
629
659
  attrs: _this.v3 ? undefined : {
@@ -632,10 +662,10 @@ var FindAndReplaceDialogVue2 = {
632
662
  }, _this.v3 ? function () {
633
663
  return [h("div", {
634
664
  "class": "k-edit-form-container"
635
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
665
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
636
666
  } : [h("div", {
637
667
  "class": "k-edit-form-container"
638
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(kendo_vue_layout_1.TabStripTab, {
668
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(kendo_vue_layout_1.TabStripTab, {
639
669
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace]),
640
670
  attrs: _this.v3 ? undefined : {
641
671
  title: localization.toLanguageString(findReplaceTabReplace, messages_1.messages[findReplaceTabReplace])
@@ -643,7 +673,7 @@ var FindAndReplaceDialogVue2 = {
643
673
  }, _this.v3 ? function () {
644
674
  return [h("div", {
645
675
  "class": "k-edit-form-container"
646
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
676
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
647
677
  "class": "k-actions k-hstack k-justify-content-end"
648
678
  }, [h(kendo_vue_buttons_1.Button, {
649
679
  disabled: !Boolean(nextMatch),
@@ -667,10 +697,10 @@ var FindAndReplaceDialogVue2 = {
667
697
  }
668
698
  }, _this.v3 ? function () {
669
699
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
670
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation];
700
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
671
701
  } : [h("div", {
672
702
  "class": "k-edit-form-container"
673
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
703
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
674
704
  "class": "k-actions k-hstack k-justify-content-end"
675
705
  }, [h(kendo_vue_buttons_1.Button, {
676
706
  disabled: !Boolean(nextMatch),
@@ -694,7 +724,7 @@ var FindAndReplaceDialogVue2 = {
694
724
  }
695
725
  }, _this.v3 ? function () {
696
726
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
697
- } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation])])])
727
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
698
728
  ); // document.body);
699
729
  },
700
730
  methods: {
@@ -757,7 +787,12 @@ var FindAndReplaceDialogVue2 = {
757
787
  var transaction = view.state.tr.setSelection(selectionResult);
758
788
  transaction.scrollIntoView();
759
789
  view.updateState(view.state.apply(transaction));
790
+ this._prevMatch = this.nextMatch;
760
791
  this.nextMatch = selectionResult;
792
+
793
+ if (this._prevMatch !== this.nextMatch) {
794
+ this.$forceUpdate();
795
+ }
761
796
  }
762
797
  },
763
798
  onReplace: function onReplace() {
@@ -838,10 +873,12 @@ var FindAndReplaceDialogVue2 = {
838
873
  var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
839
874
  return match.from >= selection_1.from;
840
875
  }) || this.matchCyclic && matches[0] || undefined;
876
+ this._prevMatch = this.nextMatch;
841
877
  this.matches = matches;
842
878
  this.nextMatch = nextMatch;
843
879
  } else {
844
- this.matches = undefined;
880
+ this._prevMatch = this.nextMatch;
881
+ this.matches = [];
845
882
  this.nextMatch = undefined;
846
883
  }
847
884
  }
@@ -23,6 +23,10 @@ var messages_1 = require("./../messages"); // tslint:enable:max-line-length
23
23
 
24
24
  var InsertImageDialogVue2 = {
25
25
  name: 'KendoInsertImageDialog',
26
+ // @ts-ignore
27
+ emits: {
28
+ close: null
29
+ },
26
30
  props: {
27
31
  view: Object,
28
32
  settings: Object,
@@ -39,6 +43,10 @@ var InsertImageDialogVue2 = {
39
43
  this.title = this.v3 ? this.titleRef : this.$refs.title;
40
44
  this.width = this.v3 ? this.widthRef : this.$refs.width;
41
45
  this.height = this.v3 ? this.heightRef : this.$refs.height;
46
+
47
+ if (this.src) {
48
+ this.src.focus();
49
+ }
42
50
  },
43
51
  // @ts-ignore
44
52
  setup: !gh ? undefined : function () {
@@ -92,8 +100,7 @@ var InsertImageDialogVue2 = {
92
100
  type: "text",
93
101
  attrs: this.v3 ? undefined : {
94
102
  type: "text",
95
- id: "k-editor-image-url",
96
- autoFocus: true
103
+ id: "k-editor-image-url"
97
104
  },
98
105
  "class": "k-input-inner",
99
106
  id: "k-editor-image-url",
@@ -103,8 +110,7 @@ var InsertImageDialogVue2 = {
103
110
  },
104
111
  ref: this.v3 ? function (el) {
105
112
  _this.srcRef = el;
106
- } : 'src',
107
- autoFocus: true
113
+ } : 'src'
108
114
  })])]), h("div", {
109
115
  "class": "k-edit-label"
110
116
  }, [h("label", {
@@ -23,6 +23,10 @@ var messages_1 = require("./../messages"); // tslint:enable:max-line-length
23
23
 
24
24
  var InsertLinkDialogVue2 = {
25
25
  name: 'KendoInsertLinkDialog',
26
+ // @ts-ignore
27
+ emits: {
28
+ close: null
29
+ },
26
30
  props: {
27
31
  view: Object,
28
32
  settings: Object,
@@ -44,6 +48,10 @@ var InsertLinkDialogVue2 = {
44
48
  this.href = this.v3 ? this.hrefRef : this.$refs.href;
45
49
  this.title = this.v3 ? this.titleRef : this.$refs.title;
46
50
  this.target = this.v3 ? this.targetRef : this.$refs.target;
51
+
52
+ if (this.href) {
53
+ this.href.focus();
54
+ }
47
55
  },
48
56
  // @ts-ignore
49
57
  render: function render(createElement) {
@@ -82,8 +90,7 @@ var InsertLinkDialogVue2 = {
82
90
  type: "text",
83
91
  attrs: this.v3 ? undefined : {
84
92
  type: "text",
85
- id: "k-editor-link-url",
86
- autoFocus: true
93
+ id: "k-editor-link-url"
87
94
  },
88
95
  "class": "k-input-inner",
89
96
  ref: this.v3 ? function (el) {
@@ -93,8 +100,7 @@ var InsertLinkDialogVue2 = {
93
100
  value: this.v3 ? linkMark && linkMark.attrs.href || undefined : null,
94
101
  domProps: this.v3 ? undefined : {
95
102
  "value": linkMark && linkMark.attrs.href || undefined
96
- },
97
- autoFocus: true
103
+ }
98
104
  })])]), h("div", {
99
105
  "class": "k-edit-label k-editor-link-text-row"
100
106
  }, [h("label", {
@@ -73,10 +73,6 @@ var ViewHtmlDialogVue2 = {
73
73
  value: this.v3 ? kendo_editor_common_1.indentHtml(kendo_editor_common_1.getHtml(view.state)) : null,
74
74
  domProps: this.v3 ? undefined : {
75
75
  "value": kendo_editor_common_1.indentHtml(kendo_editor_common_1.getHtml(view.state))
76
- },
77
- autoFocus: true,
78
- attrs: this.v3 ? undefined : {
79
- autoFocus: true
80
76
  }
81
77
  });
82
78
  var actionButtons = [// @ts-ignore function children
@@ -163,4 +163,23 @@ export declare const ProseMirror: {
163
163
  goToNextCell: typeof goToNextCell;
164
164
  deleteTable: typeof deleteTable;
165
165
  };
166
+ export { Align } from './tools/align';
167
+ export { Indent } from './tools/indent';
168
+ export { List } from './tools/lists';
169
+ export { Outdent } from './tools/outdent';
170
+ export { InlineFormat } from './tools/inlineFormat';
171
+ export { FontName } from './tools/fontStyle';
172
+ export { FormatBlock } from './tools/formatBlock';
173
+ export { ProseMirror as ProseMirrorTool } from './tools/proseMirrorTool';
174
+ export { LinkTool } from './tools/insertLink';
175
+ export { Unlink } from './tools/unlink';
176
+ export { CleanFormatting } from './tools/cleanFormatting';
177
+ export { SelectAll } from './tools/selectAll';
178
+ export { InsertImage } from './tools/insertImage';
179
+ export { InsertTable } from './tools/insertTable/tool';
180
+ export { ViewHtml } from './tools/viewHtml';
181
+ export { Pdf } from './tools/pdf';
182
+ export { Print } from './tools/print';
183
+ export { FindAndReplace } from './tools/findReplace';
184
+ export { ApplyColor } from './tools/applyColor';
166
185
  export { Editor, EditorProps, EditorMountEvent, EditorPasteEvent, EditorChangeEvent, EditorExecuteEvent, EditorFocusEvent, EditorBlurEvent, EditorTools, EditorToolsSettings, EditorUtils };
package/dist/npm/main.js CHANGED
@@ -89,3 +89,41 @@ exports.ProseMirror = {
89
89
  goToNextCell: kendo_editor_common_1.goToNextCell,
90
90
  deleteTable: kendo_editor_common_1.deleteTable
91
91
  };
92
+ var align_1 = require("./tools/align");
93
+ Object.defineProperty(exports, "Align", { enumerable: true, get: function () { return align_1.Align; } });
94
+ var indent_1 = require("./tools/indent");
95
+ Object.defineProperty(exports, "Indent", { enumerable: true, get: function () { return indent_1.Indent; } });
96
+ var lists_1 = require("./tools/lists");
97
+ Object.defineProperty(exports, "List", { enumerable: true, get: function () { return lists_1.List; } });
98
+ var outdent_1 = require("./tools/outdent");
99
+ Object.defineProperty(exports, "Outdent", { enumerable: true, get: function () { return outdent_1.Outdent; } });
100
+ var inlineFormat_1 = require("./tools/inlineFormat");
101
+ Object.defineProperty(exports, "InlineFormat", { enumerable: true, get: function () { return inlineFormat_1.InlineFormat; } });
102
+ var fontStyle_1 = require("./tools/fontStyle");
103
+ Object.defineProperty(exports, "FontName", { enumerable: true, get: function () { return fontStyle_1.FontName; } });
104
+ var formatBlock_1 = require("./tools/formatBlock");
105
+ Object.defineProperty(exports, "FormatBlock", { enumerable: true, get: function () { return formatBlock_1.FormatBlock; } });
106
+ var proseMirrorTool_1 = require("./tools/proseMirrorTool");
107
+ Object.defineProperty(exports, "ProseMirrorTool", { enumerable: true, get: function () { return proseMirrorTool_1.ProseMirror; } });
108
+ var insertLink_1 = require("./tools/insertLink");
109
+ Object.defineProperty(exports, "LinkTool", { enumerable: true, get: function () { return insertLink_1.LinkTool; } });
110
+ var unlink_1 = require("./tools/unlink");
111
+ Object.defineProperty(exports, "Unlink", { enumerable: true, get: function () { return unlink_1.Unlink; } });
112
+ var cleanFormatting_1 = require("./tools/cleanFormatting");
113
+ Object.defineProperty(exports, "CleanFormatting", { enumerable: true, get: function () { return cleanFormatting_1.CleanFormatting; } });
114
+ var selectAll_1 = require("./tools/selectAll");
115
+ Object.defineProperty(exports, "SelectAll", { enumerable: true, get: function () { return selectAll_1.SelectAll; } });
116
+ var insertImage_1 = require("./tools/insertImage");
117
+ Object.defineProperty(exports, "InsertImage", { enumerable: true, get: function () { return insertImage_1.InsertImage; } });
118
+ var tool_1 = require("./tools/insertTable/tool");
119
+ Object.defineProperty(exports, "InsertTable", { enumerable: true, get: function () { return tool_1.InsertTable; } });
120
+ var viewHtml_1 = require("./tools/viewHtml");
121
+ Object.defineProperty(exports, "ViewHtml", { enumerable: true, get: function () { return viewHtml_1.ViewHtml; } });
122
+ var pdf_1 = require("./tools/pdf");
123
+ Object.defineProperty(exports, "Pdf", { enumerable: true, get: function () { return pdf_1.Pdf; } });
124
+ var print_1 = require("./tools/print");
125
+ Object.defineProperty(exports, "Print", { enumerable: true, get: function () { return print_1.Print; } });
126
+ var findReplace_1 = require("./tools/findReplace");
127
+ Object.defineProperty(exports, "FindAndReplace", { enumerable: true, get: function () { return findReplace_1.FindAndReplace; } });
128
+ var applyColor_1 = require("./tools/applyColor");
129
+ Object.defineProperty(exports, "ApplyColor", { enumerable: true, get: function () { return applyColor_1.ApplyColor; } });
@@ -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: 1641982194,
11
+ publishDate: 1642407570,
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
  };