@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
package/dist/es/Editor.js CHANGED
@@ -33,7 +33,7 @@ import * as Vue from 'vue';
33
33
  var allVue = Vue;
34
34
  var gh = allVue.h;
35
35
  var markRaw = allVue.markRaw;
36
- import { ButtonGroup, Toolbar } from '@progress/kendo-vue-buttons';
36
+ import { ButtonGroup, Toolbar, ToolbarSeparator } from '@progress/kendo-vue-buttons';
37
37
  import { classNames, validatePackage, getTemplate, getListeners, templateRendering, guid } from '@progress/kendo-vue-common';
38
38
  import { EditorState, Plugin, PluginKey, EditorView, Schema, baseKeymap, keymap, history, dropCursor, gapCursor, getMark, spacesFix, tableEditing } from '@progress/kendo-editor-common';
39
39
  import { marks, nodes } from './config/schema';
@@ -267,12 +267,13 @@ var EditorVue2 = {
267
267
  },
268
268
  data: function data() {
269
269
  return {
270
+ updateGuid: guid(),
270
271
  view: undefined,
271
272
  linkDialog: false
272
273
  };
273
274
  },
274
275
  created: function created() {
275
- this._view = undefined;
276
+ this.view = undefined;
276
277
  validatePackage(packageMetadata);
277
278
  },
278
279
  mounted: function mounted() {
@@ -290,7 +291,7 @@ var EditorVue2 = {
290
291
  },
291
292
  updated: function updated() {
292
293
  var value = this.$props.value;
293
- var view = this._view;
294
+ var view = this.view;
294
295
 
295
296
  if (value === undefined || !view) {
296
297
  return;
@@ -309,8 +310,8 @@ var EditorVue2 = {
309
310
  },
310
311
  // @ts-ignore
311
312
  unmounted: function unmounted() {
312
- if (this._view) {
313
- this._view.destroy();
313
+ if (this.view) {
314
+ this.view.destroy();
314
315
  }
315
316
 
316
317
  this.view = undefined;
@@ -321,8 +322,8 @@ var EditorVue2 = {
321
322
  return this.trOnChange.doc;
322
323
  } else if (this.$props.value !== undefined) {
323
324
  return this.$props.value;
324
- } else if (this._view) {
325
- return this._view.state.doc;
325
+ } else if (this.view) {
326
+ return this.view.state.doc;
326
327
  }
327
328
 
328
329
  return this.$props.defaultContent || '';
@@ -340,6 +341,7 @@ var EditorVue2 = {
340
341
  var _this = this;
341
342
 
342
343
  var h = gh || createElement;
344
+ var toolindex = 100;
343
345
  var _a = this.$props,
344
346
  _b = _a.tools,
345
347
  tools = _b === void 0 ? [] : _b,
@@ -381,22 +383,31 @@ var EditorVue2 = {
381
383
  });
382
384
  };
383
385
 
384
- var renderTool = function renderTool(currentTool, index) {
386
+ var renderTool = function renderTool(currentTool, _index) {
385
387
  var ct = allTools[currentTool] || currentTool;
386
388
 
387
389
  if (allTools[currentTool]) {
390
+ toolindex++;
391
+
388
392
  var toolProps = __assign({
389
393
  view: view,
390
394
  dir: this.$props.dir,
391
- key: guid(),
395
+ key: toolindex,
396
+ updateGuid: this.updateGuid,
392
397
  settings: allTools[currentTool].props
393
398
  }, allTools[currentTool].props);
394
399
 
395
400
  return h(this.v3 ? markRaw(allTools[currentTool].comp) : allTools[currentTool].comp, this.v3 ? toolProps : {
396
401
  props: toolProps
397
402
  });
403
+ } else if (ct === 'Separator') {
404
+ return (// @ts-ignore
405
+ h(ToolbarSeparator, {
406
+ key: toolindex
407
+ })
408
+ );
398
409
  } else {
399
- var tool = templateRendering.call(this, ct, getListeners.call(this));
410
+ var tool = templateRendering.call(this, ct.render, getListeners.call(this));
400
411
  return getTemplate.call(this, {
401
412
  h: h,
402
413
  template: tool,
@@ -405,11 +416,12 @@ var EditorVue2 = {
405
416
  additionalProps: {
406
417
  view: view,
407
418
  dir: this.$props.dir,
408
- key: index
419
+ updateGuid: this.updateGuid,
420
+ key: toolindex,
421
+ settings: ct.props
409
422
  }
410
423
  });
411
- } // return tool.type === ToolbarSeparator ? <Tool key={index} /> : tool;
412
-
424
+ }
413
425
  };
414
426
 
415
427
  var renderTools = function renderTools(item, index) {
@@ -471,7 +483,7 @@ var EditorVue2 = {
471
483
  },
472
484
  methods: {
473
485
  getView: function getView() {
474
- return this.v3 ? this._view : this.view;
486
+ return this.view;
475
487
  },
476
488
  getHTML: function getHTML() {
477
489
  var view = this.getView();
@@ -490,15 +502,15 @@ var EditorVue2 = {
490
502
  }
491
503
  },
492
504
  focus: function focus() {
493
- if (this._view) {
494
- this._view.focus();
505
+ if (this.view) {
506
+ this.view.focus();
495
507
  }
496
508
  },
497
509
  updateTools: function updateTools(view) {
498
510
  this.view = view;
499
511
 
500
512
  if (this.v3) {
501
- this._view = view;
513
+ this.updateGuid = guid();
502
514
  }
503
515
  },
504
516
  iframeLoad: function iframeLoad() {
@@ -577,7 +589,7 @@ var EditorVue2 = {
577
589
  })), {
578
590
  'Mod-k': function ModK() {
579
591
  var linkDialog = _this.$data.linkDialog;
580
- var editorView = _this._view;
592
+ var editorView = _this.view;
581
593
 
582
594
  if (editorView) {
583
595
  var editorState = editorView.state;
@@ -625,10 +637,10 @@ var EditorVue2 = {
625
637
  dom: dom
626
638
  };
627
639
  this.$emit('loaded', mountEvent);
628
- var view = this._view = this.$props.extendView && this.$props.extendView(mountEvent) || new EditorView({
640
+ var view = this.$props.extendView && this.$props.extendView(mountEvent) || new EditorView({
629
641
  mount: dom
630
642
  }, viewProps);
631
- this.view = view;
643
+ this.view = this.v3 ? markRaw(view) : view;
632
644
  },
633
645
  filterTransaction: function filterTransaction(transaction, state) {
634
646
  var event = {
@@ -682,8 +694,8 @@ var EditorVue2 = {
682
694
  this.$emit('change', event_2);
683
695
  }
684
696
 
685
- if (this._view && (this.$props.value === undefined || !docChanged)) {
686
- this._view.updateState(this._view.state.apply(transaction));
697
+ if (this.view && (this.$props.value === undefined || !docChanged)) {
698
+ this.view.updateState(this.view.state.apply(transaction));
687
699
  }
688
700
  },
689
701
  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.
@@ -16,6 +16,10 @@ var settings = EditorToolsSettings.findAndReplace; // tslint:enable:max-line-len
16
16
 
17
17
  var FindAndReplaceDialogVue2 = {
18
18
  name: 'KendoFindAndReplaceDialog',
19
+ // @ts-ignore
20
+ emits: {
21
+ close: null
22
+ },
19
23
  props: {
20
24
  view: Object,
21
25
  settings: {
@@ -55,6 +59,13 @@ var FindAndReplaceDialogVue2 = {
55
59
 
56
60
  this.setNextState();
57
61
  this.hasMounted = true;
62
+ setTimeout(function () {
63
+ var findInput = document.getElementById('findWhatFind');
64
+
65
+ if (findInput) {
66
+ findInput.focus();
67
+ }
68
+ }, 10);
58
69
  },
59
70
 
60
71
  /**
@@ -226,9 +237,8 @@ var FindAndReplaceDialogVue2 = {
226
237
  }, [localization.toLanguageString(findReplaceUseRegExp, messages[findReplaceUseRegExp])])])]);
227
238
 
228
239
  var navigation = function navigation(findWhatRef) {
229
- return h("div", {
230
- "class": "k-matches-container"
231
- }, [// @ts-ignore function children
240
+ var isRtl = this.$props.dir === 'rtl';
241
+ var prevButton = // @ts-ignore function children
232
242
  h(Button, {
233
243
  fillMode: 'flat',
234
244
  attrs: this.v3 ? undefined : {
@@ -242,13 +252,12 @@ var FindAndReplaceDialogVue2 = {
242
252
  }
243
253
  }, this.v3 ? function () {
244
254
  return [h("span", {
245
- "class": "k-icon k-i-arrow-chevron-left"
255
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
246
256
  }), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])];
247
257
  } : [h("span", {
248
- "class": "k-icon k-i-arrow-chevron-left"
249
- }), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])]), this.hasMounted && h("span", {
250
- ref: findWhatRef
251
- }, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages[findReplaceMatches]))]), // @ts-ignore function children
258
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'right' : 'left')
259
+ }), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])]);
260
+ var nextButton = // @ts-ignore function children
252
261
  h(Button, {
253
262
  fillMode: 'flat',
254
263
  attrs: this.v3 ? undefined : {
@@ -262,11 +271,16 @@ var FindAndReplaceDialogVue2 = {
262
271
  }
263
272
  }, this.v3 ? function () {
264
273
  return [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
265
- "class": "k-icon k-i-arrow-chevron-right"
274
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
266
275
  })];
267
276
  } : [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
268
- "class": "k-icon k-i-arrow-chevron-right"
269
- })])]);
277
+ "class": "k-icon k-i-arrow-chevron-" + (isRtl ? 'left' : 'right')
278
+ })]);
279
+ return h("div", {
280
+ "class": "k-matches-container"
281
+ }, [prevButton, this.hasMounted && h("span", {
282
+ ref: findWhatRef
283
+ }, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages[findReplaceMatches]))]), nextButton]);
270
284
  };
271
285
 
272
286
  var findWhatLabel = function findWhatLabel(findWhatId) {
@@ -355,7 +369,8 @@ var FindAndReplaceDialogVue2 = {
355
369
  },
356
370
  maximizeButton: function maximizeButton() {
357
371
  return null;
358
- }
372
+ },
373
+ dir: this.$props.dir
359
374
  },
360
375
  onClose: this.onClose,
361
376
  on: this.v3 ? undefined : {
@@ -372,15 +387,18 @@ var FindAndReplaceDialogVue2 = {
372
387
  },
373
388
  maximizeButton: function maximizeButton() {
374
389
  return null;
375
- }
390
+ },
391
+ dir: this.$props.dir
376
392
  }, this.v3 ? function () {
377
393
  return [// @ts-ignore function children
378
394
  h(TabStrip, {
379
- selected: _this.selectedTab,
395
+ dir: _this.$props.dir,
380
396
  attrs: _this.v3 ? undefined : {
397
+ dir: _this.$props.dir,
381
398
  selected: _this.selectedTab,
382
399
  animation: false
383
400
  },
401
+ selected: _this.selectedTab,
384
402
  "class": "k-editor-find-replace",
385
403
  onSelect: _this.onTabSelect,
386
404
  on: _this.v3 ? undefined : {
@@ -535,11 +553,13 @@ var FindAndReplaceDialogVue2 = {
535
553
  return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
536
554
  } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
537
555
  } : [h(TabStrip, {
538
- selected: _this.selectedTab,
556
+ dir: _this.$props.dir,
539
557
  attrs: _this.v3 ? undefined : {
558
+ dir: _this.$props.dir,
540
559
  selected: _this.selectedTab,
541
560
  animation: false
542
561
  },
562
+ selected: _this.selectedTab,
543
563
  "class": "k-editor-find-replace",
544
564
  onSelect: _this.onTabSelect,
545
565
  on: _this.v3 ? undefined : {
@@ -10,6 +10,10 @@ import { messages } from './../messages'; // tslint:enable:max-line-length
10
10
 
11
11
  var InsertImageDialogVue2 = {
12
12
  name: 'KendoInsertImageDialog',
13
+ // @ts-ignore
14
+ emits: {
15
+ close: null
16
+ },
13
17
  props: {
14
18
  view: Object,
15
19
  settings: Object,
@@ -26,6 +30,10 @@ var InsertImageDialogVue2 = {
26
30
  this.title = this.v3 ? this.titleRef : this.$refs.title;
27
31
  this.width = this.v3 ? this.widthRef : this.$refs.width;
28
32
  this.height = this.v3 ? this.heightRef : this.$refs.height;
33
+
34
+ if (this.src) {
35
+ this.src.focus();
36
+ }
29
37
  },
30
38
  // @ts-ignore
31
39
  setup: !gh ? undefined : function () {
@@ -79,8 +87,7 @@ var InsertImageDialogVue2 = {
79
87
  type: "text",
80
88
  attrs: this.v3 ? undefined : {
81
89
  type: "text",
82
- id: "k-editor-image-url",
83
- autoFocus: true
90
+ id: "k-editor-image-url"
84
91
  },
85
92
  "class": "k-input-inner",
86
93
  id: "k-editor-image-url",
@@ -90,8 +97,7 @@ var InsertImageDialogVue2 = {
90
97
  },
91
98
  ref: this.v3 ? function (el) {
92
99
  _this.srcRef = el;
93
- } : 'src',
94
- autoFocus: true
100
+ } : 'src'
95
101
  })])]), h("div", {
96
102
  "class": "k-edit-label"
97
103
  }, [h("label", {
@@ -10,6 +10,10 @@ import { messages } from './../messages'; // tslint:enable:max-line-length
10
10
 
11
11
  var InsertLinkDialogVue2 = {
12
12
  name: 'KendoInsertLinkDialog',
13
+ // @ts-ignore
14
+ emits: {
15
+ close: null
16
+ },
13
17
  props: {
14
18
  view: Object,
15
19
  settings: Object,
@@ -31,6 +35,10 @@ var InsertLinkDialogVue2 = {
31
35
  this.href = this.v3 ? this.hrefRef : this.$refs.href;
32
36
  this.title = this.v3 ? this.titleRef : this.$refs.title;
33
37
  this.target = this.v3 ? this.targetRef : this.$refs.target;
38
+
39
+ if (this.href) {
40
+ this.href.focus();
41
+ }
34
42
  },
35
43
  // @ts-ignore
36
44
  render: function render(createElement) {
@@ -69,8 +77,7 @@ var InsertLinkDialogVue2 = {
69
77
  type: "text",
70
78
  attrs: this.v3 ? undefined : {
71
79
  type: "text",
72
- id: "k-editor-link-url",
73
- autoFocus: true
80
+ id: "k-editor-link-url"
74
81
  },
75
82
  "class": "k-input-inner",
76
83
  ref: this.v3 ? function (el) {
@@ -80,8 +87,7 @@ var InsertLinkDialogVue2 = {
80
87
  value: this.v3 ? linkMark && linkMark.attrs.href || undefined : null,
81
88
  domProps: this.v3 ? undefined : {
82
89
  "value": linkMark && linkMark.attrs.href || undefined
83
- },
84
- autoFocus: true
90
+ }
85
91
  })])]), h("div", {
86
92
  "class": "k-edit-label k-editor-link-text-row"
87
93
  }, [h("label", {
@@ -59,10 +59,6 @@ var ViewHtmlDialogVue2 = {
59
59
  value: this.v3 ? indentHtml(getHtml(view.state)) : null,
60
60
  domProps: this.v3 ? undefined : {
61
61
  "value": indentHtml(getHtml(view.state))
62
- },
63
- autoFocus: true,
64
- attrs: this.v3 ? undefined : {
65
- autoFocus: true
66
62
  }
67
63
  });
68
64
  var actionButtons = [// @ts-ignore function children
package/dist/es/main.d.ts CHANGED
@@ -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/es/main.js CHANGED
@@ -107,4 +107,23 @@ export var ProseMirror = {
107
107
  goToNextCell: goToNextCell,
108
108
  deleteTable: deleteTable
109
109
  };
110
+ export { Align } from './tools/align';
111
+ export { Indent } from './tools/indent';
112
+ export { List } from './tools/lists';
113
+ export { Outdent } from './tools/outdent';
114
+ export { InlineFormat } from './tools/inlineFormat';
115
+ export { FontName } from './tools/fontStyle';
116
+ export { FormatBlock } from './tools/formatBlock';
117
+ export { ProseMirror as ProseMirrorTool } from './tools/proseMirrorTool';
118
+ export { LinkTool } from './tools/insertLink';
119
+ export { Unlink } from './tools/unlink';
120
+ export { CleanFormatting } from './tools/cleanFormatting';
121
+ export { SelectAll } from './tools/selectAll';
122
+ export { InsertImage } from './tools/insertImage';
123
+ export { InsertTable } from './tools/insertTable/tool';
124
+ export { ViewHtml } from './tools/viewHtml';
125
+ export { Pdf } from './tools/pdf';
126
+ export { Print } from './tools/print';
127
+ export { FindAndReplace } from './tools/findReplace';
128
+ export { ApplyColor } from './tools/applyColor';
110
129
  export { Editor, EditorToolsSettings, EditorUtils };
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-editor',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1642086914,
8
+ publishDate: 1642429014,
9
9
  version: '',
10
10
  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'
11
11
  };
@@ -77,11 +77,11 @@ var AlignVue2 = {
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
  selected: aligned,
82
82
  togglable: true,
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.handleClick,
@@ -29,7 +29,8 @@ var ApplyColorVue2 = {
29
29
  view: Object,
30
30
  color: String,
31
31
  colorPickerProps: Object,
32
- commandName: String
32
+ commandName: String,
33
+ dir: String
33
34
  },
34
35
  inject: {
35
36
  kendoLocalizationService: {
@@ -46,11 +47,14 @@ var ApplyColorVue2 = {
46
47
  // @ts-ignore
47
48
  render: function render(createElement) {
48
49
  var h = gh || createElement;
49
- var colorPickerProps = this.$props.colorPickerProps;
50
+ var _a = this.$props,
51
+ colorPickerProps = _a.colorPickerProps,
52
+ dir = _a.dir;
50
53
  var titleKey = colorPickerProps.title;
51
54
  var localization = provideLocalizationService(this);
52
55
 
53
56
  var cpProps = __assign(__assign({}, colorPickerProps), {
57
+ dir: dir,
54
58
  title: titleKey ? localization.toLanguageString(titleKey, messages[titleKey]) : titleKey
55
59
  });
56
60
 
@@ -75,10 +75,10 @@ var CleanFormattingVue2 = {
75
75
  var titleKey = settings.messages.title;
76
76
  var localization = provideLocalizationService(this);
77
77
 
78
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
78
+ var buttonProps = __assign(__assign(__assign({}, other), {
79
79
  disabled: !view || !command(view.state),
80
80
  title: localization.toLanguageString(titleKey, messages[titleKey])
81
- });
81
+ }), settings.props);
82
82
 
83
83
  var button = h(kbutton, __assign({
84
84
  onClick: this.handleClick,
@@ -71,11 +71,11 @@ var FindAndReplaceVue2 = {
71
71
  var localization = provideLocalizationService(this);
72
72
  var titleKey = settings.messages.findReplaceToolTitle;
73
73
 
74
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
74
+ var buttonProps = __assign(__assign(__assign({}, other), {
75
75
  key: 'tool',
76
76
  disabled: !view,
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.onOpen,
@@ -93,13 +93,13 @@ var FindAndReplaceVue2 = {
93
93
  view: view,
94
94
  attrs: this.v3 ? undefined : {
95
95
  view: view,
96
- dir: buttonProps.dir
96
+ dir: this.$props.dir
97
97
  },
98
98
  onClose: this.onClose,
99
99
  on: this.v3 ? undefined : {
100
100
  "close": this.onClose
101
101
  },
102
- dir: buttonProps.dir,
102
+ dir: this.$props.dir,
103
103
  key: "dialog"
104
104
  })]);
105
105
  },
@@ -89,12 +89,13 @@ var FontNameVue2 = {
89
89
  other = __rest(_a, ["view", "render", "dataItems", "settings", "defaultItem"]);
90
90
 
91
91
  var style = settings.style;
92
- var items = dataItems || settings.items;
93
- var defaultItem = defaultItemProps || settings.defaultItem;
94
92
  var styles = view ? getInlineStyles(view.state, {
95
93
  name: style,
96
94
  value: /^.+$/
97
95
  }) : [];
96
+ var value = new Set(styles).size === 1 ? styles[0] : null;
97
+ var items = dataItems || settings.items;
98
+ var defaultItem = defaultItemProps || settings.defaultItem;
98
99
  var localization = provideLocalizationService(this);
99
100
 
100
101
  if (defaultItem && defaultItem.localizationKey) {
@@ -102,9 +103,7 @@ var FontNameVue2 = {
102
103
  defaultItem.text = defaultItem.localizationKey ? localization.toLanguageString(defaultItem.localizationKey, messages[defaultItem.localizationKey]) : defaultItem.text;
103
104
  }
104
105
 
105
- var value = new Set(styles).size === 1 ? styles[0] : null;
106
-
107
- var ddlProps = __assign(__assign(__assign({}, other), settings.props), {
106
+ var ddlProps = __assign(__assign(__assign({}, other), {
108
107
  value: value ? items.find(function (i) {
109
108
  return i.value === value;
110
109
  }) : value,
@@ -114,7 +113,7 @@ var FontNameVue2 = {
114
113
  textField: 'text',
115
114
  dataItemKey: 'value',
116
115
  leftRightKeysNavigation: false
117
- });
116
+ }), settings.props);
118
117
 
119
118
  var dropdown = h(DropDownList, __assign({
120
119
  onChange: this.onChange,
@@ -139,13 +138,13 @@ var FontNameVue2 = {
139
138
  }, __spreadArrays(li.children))]) : li;
140
139
  },
141
140
  onChange: function onChange(e) {
142
- var item = e.target.value;
143
141
  var _a = this.$props,
144
142
  view = _a.view,
145
143
  settings = _a.settings;
146
144
  var style = settings.style;
145
+ var item = e.target.value;
147
146
 
148
- if (view && item) {
147
+ if (view) {
149
148
  applyInlineStyle({
150
149
  style: style,
151
150
  value: item.value
@@ -89,9 +89,10 @@ var FormatBlockVue2 = {
89
89
  other = __rest(_a, ["view", "render", "dataItems", "settings", "defaultItem"]);
90
90
 
91
91
  var items = dataItems || settings.items;
92
- var defaultItem = defaultItemProps || settings.defaultItem;
93
92
  var state = view && view.state;
94
93
  var formats = state ? getBlockFormats(state) : [];
94
+ var value = new Set(formats).size === 1 ? formats[0] : null;
95
+ var defaultItem = defaultItemProps || settings.defaultItem;
95
96
  var localization = provideLocalizationService(this);
96
97
 
97
98
  if (defaultItem && defaultItem.localizationKey) {
@@ -99,9 +100,7 @@ var FormatBlockVue2 = {
99
100
  defaultItem.text = defaultItem.localizationKey ? localization.toLanguageString(defaultItem.localizationKey, messages[defaultItem.localizationKey]) : defaultItem.text;
100
101
  }
101
102
 
102
- var value = new Set(formats).size === 1 ? formats[0] : null;
103
-
104
- var ddlProps = __assign(__assign(__assign({}, other), settings.props), {
103
+ var ddlProps = __assign(__assign(__assign({}, other), {
105
104
  value: value ? items.find(function (i) {
106
105
  return i.value === value;
107
106
  }) : value,
@@ -110,8 +109,11 @@ var FormatBlockVue2 = {
110
109
  itemRender: this.customItemRender,
111
110
  textField: 'text',
112
111
  dataItemKey: 'value',
113
- leftRightKeysNavigation: false
114
- });
112
+ leftRightKeysNavigation: false,
113
+ popupSettings: {
114
+ width: '170px'
115
+ }
116
+ }), settings.props);
115
117
 
116
118
  var dropdown = h(DropDownList, __assign({
117
119
  onChange: this.onChange,
@@ -136,10 +138,10 @@ var FormatBlockVue2 = {
136
138
  }, __spreadArrays(li.children))]) : li;
137
139
  },
138
140
  onChange: function onChange(e) {
139
- var item = e.target.value;
140
141
  var _a = this.$props,
141
142
  view = _a.view,
142
143
  settings = _a.settings;
144
+ var item = e.target.value;
143
145
 
144
146
  if (view && formatBlockElements(item.value, settings.commandName)(view.state, view.dispatch)) {
145
147
  var event_1 = e.event;
@@ -83,10 +83,10 @@ var IndentVue2 = {
83
83
  var localization = provideLocalizationService(this);
84
84
  var titleKey = settings.messages.title;
85
85
 
86
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
86
+ var buttonProps = __assign(__assign(__assign({}, other), {
87
87
  disabled: !canIndent,
88
88
  title: localization.toLanguageString(titleKey, messages[titleKey])
89
- });
89
+ }), settings.props);
90
90
 
91
91
  var button = h(kbutton, __assign({
92
92
  onClick: this.handleClick,
@@ -83,11 +83,11 @@ var InlineFormatVue2 = {
83
83
  var localization = provideLocalizationService(this);
84
84
  var titleKey = settings.messages.title;
85
85
 
86
- var buttonProps = __assign(__assign(__assign({}, other), settings.props), {
86
+ var buttonProps = __assign(__assign(__assign({}, other), {
87
87
  selected: !!state && hasMark(state, options),
88
88
  togglable: true,
89
89
  title: localization.toLanguageString(titleKey, messages[titleKey])
90
- });
90
+ }), settings.props);
91
91
 
92
92
  var button = h(kbutton, __assign({
93
93
  onClick: this.handleClick,