@progress/kendo-vue-editor 2.8.0-dev.202201131525 → 3.0.0-dev.202201171427

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 +34 -22
  3. package/dist/es/config/toolsSettings.d.ts +4 -0
  4. package/dist/es/dialogs/FindReplace.js +35 -15
  5. package/dist/es/dialogs/insertImage.js +10 -4
  6. package/dist/es/dialogs/insertLink.js +10 -4
  7. package/dist/es/dialogs/viewHtml.js +0 -4
  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 +7 -8
  16. package/dist/es/tools/formatBlock.js +9 -7
  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 +33 -21
  31. package/dist/npm/config/toolsSettings.d.ts +4 -0
  32. package/dist/npm/dialogs/FindReplace.js +35 -15
  33. package/dist/npm/dialogs/insertImage.js +10 -4
  34. package/dist/npm/dialogs/insertLink.js +10 -4
  35. package/dist/npm/dialogs/viewHtml.js +0 -4
  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 +7 -8
  44. package/dist/npm/tools/formatBlock.js +9 -7
  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
@@ -82,11 +82,11 @@ var InsertImageVue2 = {
82
82
  var localization = provideLocalizationService(this);
83
83
  var insertImage = settings.messages.insertImage;
84
84
 
85
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
85
+ var buttonProps = __assign(__assign(__assign({}, other), {
86
86
  key: 'insertImage',
87
87
  disabled: !nodeType || !state || !canInsert(state, nodeType),
88
88
  title: localization.toLanguageString(insertImage, messages[insertImage])
89
- });
89
+ }), settings.props);
90
90
 
91
91
  var button = h(kbutton, __assign({
92
92
  onClick: this.toggleDialog,
@@ -82,11 +82,11 @@ var LinkToolVue2 = {
82
82
  var localization = provideLocalizationService(this);
83
83
  var insertHyperlink = settings.messages.insertHyperlink;
84
84
 
85
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
85
+ var buttonProps = __assign(__assign(__assign({}, other), {
86
86
  key: 'link',
87
87
  disabled: collapsed && !linkMark,
88
88
  title: localization.toLanguageString(insertHyperlink, messages[insertHyperlink])
89
- });
89
+ }), settings.props);
90
90
 
91
91
  var button = h(kbutton, __assign({
92
92
  onClick: this.toggleDialog,
@@ -89,11 +89,11 @@ var InsertTableVue2 = {
89
89
  var createTableMsg = localization.toLanguageString(createTableMsgKey, messages[createTableMsgKey]);
90
90
  var createTableHintMsg = localization.toLanguageString(createTableHint, messages[createTableHint]);
91
91
 
92
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
92
+ var buttonProps = __assign(__assign(__assign({}, other), {
93
93
  disabled: !state || !canInsert(state, state.schema.nodes.table),
94
94
  key: 'InsertTable',
95
95
  title: createTableMsg
96
- });
96
+ }), settings.props);
97
97
 
98
98
  var button = h(KButton, __assign({
99
99
  ref: this.buttonRef,
@@ -90,11 +90,11 @@ var ListVue2 = {
90
90
  }
91
91
  }
92
92
 
93
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
93
+ var buttonProps = __assign(__assign(__assign({}, other), {
94
94
  selected: isActive,
95
95
  togglable: true,
96
96
  title: localization.toLanguageString(titleKey, messages[titleKey])
97
- });
97
+ }), settings.props);
98
98
 
99
99
  var button = h(kbutton, __assign({
100
100
  onClick: this.handleClick,
@@ -82,10 +82,10 @@ var OutdentVue2 = {
82
82
  var localization = provideLocalizationService(this);
83
83
  var titleKey = settings.messages.title;
84
84
 
85
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
85
+ var buttonProps = __assign(__assign(__assign({}, other), {
86
86
  disabled: !canOutdent,
87
87
  title: localization.toLanguageString(titleKey, messages[titleKey])
88
- });
88
+ }), settings.props);
89
89
 
90
90
  var button = h(kbutton, __assign({
91
91
  onClick: this.handleClick,
@@ -73,9 +73,9 @@ var PdfVue2 = {
73
73
  var titleKey = settings.messages.title;
74
74
  var localization = provideLocalizationService(this);
75
75
 
76
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
76
+ var buttonProps = __assign(__assign(__assign({}, other), {
77
77
  title: localization.toLanguageString(titleKey, messages[titleKey])
78
- });
78
+ }), settings.props);
79
79
 
80
80
  var button = h(kbutton, __assign({
81
81
  onClick: this.handleClick,
@@ -72,10 +72,10 @@ var PrintVue2 = {
72
72
  var titleKey = settings.messages.title;
73
73
  var localization = provideLocalizationService(this);
74
74
 
75
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
75
+ var buttonProps = __assign(__assign(__assign({}, other), {
76
76
  disabled: !editorWindow || editorWindow === window,
77
77
  title: localization.toLanguageString(titleKey, messages[titleKey])
78
- });
78
+ }), settings.props);
79
79
 
80
80
  var button = h(kbutton, __assign({
81
81
  onClick: this.handleClick,
@@ -80,10 +80,10 @@ var ProseMirrorVue2 = {
80
80
  var state = view && view.state;
81
81
  var disabled = state ? !this.command(state) : false;
82
82
 
83
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
83
+ var buttonProps = __assign(__assign(__assign({}, other), {
84
84
  disabled: disabled,
85
85
  title: localization.toLanguageString(titleKey, messages[titleKey])
86
- });
86
+ }), settings.props);
87
87
 
88
88
  var button = h(kbutton, __assign({
89
89
  onClick: this.handleClick,
@@ -69,9 +69,9 @@ var SelectAllVue2 = {
69
69
  var titleKey = settings.messages.title;
70
70
  var localization = provideLocalizationService(this);
71
71
 
72
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
72
+ var buttonProps = __assign(__assign(__assign({}, other), {
73
73
  title: localization.toLanguageString(titleKey, messages[titleKey])
74
- });
74
+ }), settings.props);
75
75
 
76
76
  var button = h(kbutton, __assign({
77
77
  onClick: this.handleClick,
@@ -77,10 +77,10 @@ var UnlinkVue2 = {
77
77
  var localization = provideLocalizationService(this);
78
78
  var titleKey = settings.messages.title;
79
79
 
80
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
80
+ var buttonProps = __assign(__assign(__assign({}, other), {
81
81
  disabled: !hasLink,
82
82
  title: localization.toLanguageString(titleKey, messages[titleKey])
83
- });
83
+ }), settings.props);
84
84
 
85
85
  var button = h(kbutton, __assign({
86
86
  onClick: this.handleClick,
@@ -78,10 +78,10 @@ var ViewHtmlVue2 = {
78
78
  var localization = provideLocalizationService(this);
79
79
  var titleKey = settings.messages.viewHtml;
80
80
 
81
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
81
+ var buttonProps = __assign(__assign(__assign({}, other), {
82
82
  key: 'viewHtml',
83
83
  title: localization.toLanguageString(titleKey, messages[titleKey])
84
- });
84
+ }), settings.props);
85
85
 
86
86
  var button = h(kbutton, __assign({
87
87
  onClick: this.toggleDialog,
@@ -307,12 +307,13 @@ var EditorVue2 = {
307
307
  },
308
308
  data: function data() {
309
309
  return {
310
+ updateGuid: kendo_vue_common_1.guid(),
310
311
  view: undefined,
311
312
  linkDialog: false
312
313
  };
313
314
  },
314
315
  created: function created() {
315
- this._view = undefined;
316
+ this.view = undefined;
316
317
  kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
317
318
  },
318
319
  mounted: function mounted() {
@@ -330,7 +331,7 @@ var EditorVue2 = {
330
331
  },
331
332
  updated: function updated() {
332
333
  var value = this.$props.value;
333
- var view = this._view;
334
+ var view = this.view;
334
335
 
335
336
  if (value === undefined || !view) {
336
337
  return;
@@ -349,8 +350,8 @@ var EditorVue2 = {
349
350
  },
350
351
  // @ts-ignore
351
352
  unmounted: function unmounted() {
352
- if (this._view) {
353
- this._view.destroy();
353
+ if (this.view) {
354
+ this.view.destroy();
354
355
  }
355
356
 
356
357
  this.view = undefined;
@@ -361,8 +362,8 @@ var EditorVue2 = {
361
362
  return this.trOnChange.doc;
362
363
  } else if (this.$props.value !== undefined) {
363
364
  return this.$props.value;
364
- } else if (this._view) {
365
- return this._view.state.doc;
365
+ } else if (this.view) {
366
+ return this.view.state.doc;
366
367
  }
367
368
 
368
369
  return this.$props.defaultContent || '';
@@ -380,6 +381,7 @@ var EditorVue2 = {
380
381
  var _this = this;
381
382
 
382
383
  var h = gh || createElement;
384
+ var toolindex = 100;
383
385
  var _a = this.$props,
384
386
  _b = _a.tools,
385
387
  tools = _b === void 0 ? [] : _b,
@@ -421,22 +423,31 @@ var EditorVue2 = {
421
423
  });
422
424
  };
423
425
 
424
- var renderTool = function renderTool(currentTool, index) {
426
+ var renderTool = function renderTool(currentTool, _index) {
425
427
  var ct = exports.allTools[currentTool] || currentTool;
426
428
 
427
429
  if (exports.allTools[currentTool]) {
430
+ toolindex++;
431
+
428
432
  var toolProps = __assign({
429
433
  view: view,
430
434
  dir: this.$props.dir,
431
- key: kendo_vue_common_1.guid(),
435
+ key: toolindex,
436
+ updateGuid: this.updateGuid,
432
437
  settings: exports.allTools[currentTool].props
433
438
  }, exports.allTools[currentTool].props);
434
439
 
435
440
  return h(this.v3 ? markRaw(exports.allTools[currentTool].comp) : exports.allTools[currentTool].comp, this.v3 ? toolProps : {
436
441
  props: toolProps
437
442
  });
443
+ } else if (ct === 'Separator') {
444
+ return (// @ts-ignore
445
+ h(kendo_vue_buttons_1.ToolbarSeparator, {
446
+ key: toolindex
447
+ })
448
+ );
438
449
  } else {
439
- var tool = kendo_vue_common_1.templateRendering.call(this, ct, kendo_vue_common_1.getListeners.call(this));
450
+ var tool = kendo_vue_common_1.templateRendering.call(this, ct.render, kendo_vue_common_1.getListeners.call(this));
440
451
  return kendo_vue_common_1.getTemplate.call(this, {
441
452
  h: h,
442
453
  template: tool,
@@ -445,11 +456,12 @@ var EditorVue2 = {
445
456
  additionalProps: {
446
457
  view: view,
447
458
  dir: this.$props.dir,
448
- key: index
459
+ updateGuid: this.updateGuid,
460
+ key: toolindex,
461
+ settings: ct.props
449
462
  }
450
463
  });
451
- } // return tool.type === ToolbarSeparator ? <Tool key={index} /> : tool;
452
-
464
+ }
453
465
  };
454
466
 
455
467
  var renderTools = function renderTools(item, index) {
@@ -511,7 +523,7 @@ var EditorVue2 = {
511
523
  },
512
524
  methods: {
513
525
  getView: function getView() {
514
- return this.v3 ? this._view : this.view;
526
+ return this.view;
515
527
  },
516
528
  getHTML: function getHTML() {
517
529
  var view = this.getView();
@@ -530,15 +542,15 @@ var EditorVue2 = {
530
542
  }
531
543
  },
532
544
  focus: function focus() {
533
- if (this._view) {
534
- this._view.focus();
545
+ if (this.view) {
546
+ this.view.focus();
535
547
  }
536
548
  },
537
549
  updateTools: function updateTools(view) {
538
550
  this.view = view;
539
551
 
540
552
  if (this.v3) {
541
- this._view = view;
553
+ this.updateGuid = kendo_vue_common_1.guid();
542
554
  }
543
555
  },
544
556
  iframeLoad: function iframeLoad() {
@@ -617,7 +629,7 @@ var EditorVue2 = {
617
629
  })), {
618
630
  'Mod-k': function ModK() {
619
631
  var linkDialog = _this.$data.linkDialog;
620
- var editorView = _this._view;
632
+ var editorView = _this.view;
621
633
 
622
634
  if (editorView) {
623
635
  var editorState = editorView.state;
@@ -665,10 +677,10 @@ var EditorVue2 = {
665
677
  dom: dom
666
678
  };
667
679
  this.$emit('loaded', mountEvent);
668
- var view = this._view = this.$props.extendView && this.$props.extendView(mountEvent) || new kendo_editor_common_1.EditorView({
680
+ var view = this.$props.extendView && this.$props.extendView(mountEvent) || new kendo_editor_common_1.EditorView({
669
681
  mount: dom
670
682
  }, viewProps);
671
- this.view = view;
683
+ this.view = this.v3 ? markRaw(view) : view;
672
684
  },
673
685
  filterTransaction: function filterTransaction(transaction, state) {
674
686
  var event = {
@@ -722,8 +734,8 @@ var EditorVue2 = {
722
734
  this.$emit('change', event_2);
723
735
  }
724
736
 
725
- if (this._view && (this.$props.value === undefined || !docChanged)) {
726
- this._view.updateState(this._view.state.apply(transaction));
737
+ if (this.view && (this.$props.value === undefined || !docChanged)) {
738
+ this.view.updateState(this.view.state.apply(transaction));
727
739
  }
728
740
  },
729
741
  onFocus: function onFocus(_view, nativeEvent) {
@@ -154,6 +154,10 @@ export declare namespace EditorToolsSettings {
154
154
  * The name of the applied command.
155
155
  */
156
156
  commandName: string;
157
+ /**
158
+ * The dir of the applied command.
159
+ */
160
+ dir?: String;
157
161
  }
158
162
  /**
159
163
  * The setting of the IndentAction tool.
@@ -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: {
@@ -71,6 +75,13 @@ var FindAndReplaceDialogVue2 = {
71
75
 
72
76
  this.setNextState();
73
77
  this.hasMounted = true;
78
+ setTimeout(function () {
79
+ var findInput = document.getElementById('findWhatFind');
80
+
81
+ if (findInput) {
82
+ findInput.focus();
83
+ }
84
+ }, 10);
74
85
  },
75
86
 
76
87
  /**
@@ -242,9 +253,8 @@ var FindAndReplaceDialogVue2 = {
242
253
  }, [localization.toLanguageString(findReplaceUseRegExp, messages_1.messages[findReplaceUseRegExp])])])]);
243
254
 
244
255
  var navigation = function navigation(findWhatRef) {
245
- return h("div", {
246
- "class": "k-matches-container"
247
- }, [// @ts-ignore function children
256
+ var isRtl = this.$props.dir === 'rtl';
257
+ var prevButton = // @ts-ignore function children
248
258
  h(kendo_vue_buttons_1.Button, {
249
259
  fillMode: 'flat',
250
260
  attrs: this.v3 ? undefined : {
@@ -258,13 +268,12 @@ var FindAndReplaceDialogVue2 = {
258
268
  }
259
269
  }, this.v3 ? function () {
260
270
  return [h("span", {
261
- "class": "k-icon k-i-arrow-chevron-left"
271
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
262
272
  }), localization.toLanguageString(findReplacePrevMatch, messages_1.messages[findReplacePrevMatch])];
263
273
  } : [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
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
268
277
  h(kendo_vue_buttons_1.Button, {
269
278
  fillMode: 'flat',
270
279
  attrs: this.v3 ? undefined : {
@@ -278,11 +287,16 @@ var FindAndReplaceDialogVue2 = {
278
287
  }
279
288
  }, this.v3 ? function () {
280
289
  return [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
281
- "class": "k-icon k-i-arrow-chevron-right"
290
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
282
291
  })];
283
292
  } : [localization.toLanguageString(findReplaceNextMatch, messages_1.messages[findReplaceNextMatch]), h("span", {
284
- "class": "k-icon k-i-arrow-chevron-right"
285
- })])]);
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]);
286
300
  };
287
301
 
288
302
  var findWhatLabel = function findWhatLabel(findWhatId) {
@@ -371,7 +385,8 @@ var FindAndReplaceDialogVue2 = {
371
385
  },
372
386
  maximizeButton: function maximizeButton() {
373
387
  return null;
374
- }
388
+ },
389
+ dir: this.$props.dir
375
390
  },
376
391
  onClose: this.onClose,
377
392
  on: this.v3 ? undefined : {
@@ -388,15 +403,18 @@ var FindAndReplaceDialogVue2 = {
388
403
  },
389
404
  maximizeButton: function maximizeButton() {
390
405
  return null;
391
- }
406
+ },
407
+ dir: this.$props.dir
392
408
  }, this.v3 ? function () {
393
409
  return [// @ts-ignore function children
394
410
  h(kendo_vue_layout_1.TabStrip, {
395
- selected: _this.selectedTab,
411
+ dir: _this.$props.dir,
396
412
  attrs: _this.v3 ? undefined : {
413
+ dir: _this.$props.dir,
397
414
  selected: _this.selectedTab,
398
415
  animation: false
399
416
  },
417
+ selected: _this.selectedTab,
400
418
  "class": "k-editor-find-replace",
401
419
  onSelect: _this.onTabSelect,
402
420
  on: _this.v3 ? undefined : {
@@ -551,11 +569,13 @@ var FindAndReplaceDialogVue2 = {
551
569
  return [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])];
552
570
  } : [localization.toLanguageString(findReplaceReplaceAll, messages_1.messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
553
571
  } : [h(kendo_vue_layout_1.TabStrip, {
554
- selected: _this.selectedTab,
572
+ dir: _this.$props.dir,
555
573
  attrs: _this.v3 ? undefined : {
574
+ dir: _this.$props.dir,
556
575
  selected: _this.selectedTab,
557
576
  animation: false
558
577
  },
578
+ selected: _this.selectedTab,
559
579
  "class": "k-editor-find-replace",
560
580
  onSelect: _this.onTabSelect,
561
581
  on: _this.v3 ? undefined : {
@@ -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: 1642086914,
11
+ publishDate: 1642429014,
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
  };
@@ -90,11 +90,11 @@ var AlignVue2 = {
90
90
  var localization = kendo_vue_intl_1.provideLocalizationService(this);
91
91
  var titleKey = settings.messages.title;
92
92
 
93
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
93
+ var buttonProps = __assign(__assign(__assign({}, other), {
94
94
  selected: aligned,
95
95
  togglable: true,
96
96
  title: localization.toLanguageString(titleKey, messages_1.messages[titleKey])
97
- });
97
+ }), settings.props);
98
98
 
99
99
  var button = h(kendo_vue_buttons_1.Button, __assign({
100
100
  onClick: this.handleClick,
@@ -41,7 +41,8 @@ var ApplyColorVue2 = {
41
41
  view: Object,
42
42
  color: String,
43
43
  colorPickerProps: Object,
44
- commandName: String
44
+ commandName: String,
45
+ dir: String
45
46
  },
46
47
  inject: {
47
48
  kendoLocalizationService: {
@@ -58,11 +59,14 @@ var ApplyColorVue2 = {
58
59
  // @ts-ignore
59
60
  render: function render(createElement) {
60
61
  var h = gh || createElement;
61
- var colorPickerProps = this.$props.colorPickerProps;
62
+ var _a = this.$props,
63
+ colorPickerProps = _a.colorPickerProps,
64
+ dir = _a.dir;
62
65
  var titleKey = colorPickerProps.title;
63
66
  var localization = kendo_vue_intl_1.provideLocalizationService(this);
64
67
 
65
68
  var cpProps = __assign(__assign({}, colorPickerProps), {
69
+ dir: dir,
66
70
  title: titleKey ? localization.toLanguageString(titleKey, messages_1.messages[titleKey]) : titleKey
67
71
  });
68
72