@progress/kendo-vue-editor 2.7.2-dev.202201020746 → 2.7.3

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 (30) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -0
  2. package/dist/es/Editor.d.ts +36 -36
  3. package/dist/es/Editor.js +31 -23
  4. package/dist/es/config/toolsSettings.js +2 -2
  5. package/dist/es/package-metadata.js +1 -1
  6. package/dist/es/tools/{Align.d.ts → align.d.ts} +0 -0
  7. package/dist/es/tools/{Align.js → align.js} +0 -0
  8. package/dist/es/tools/fontStyle.js +9 -4
  9. package/dist/es/tools/formatBlock.js +8 -3
  10. package/dist/es/tools/{Indent.d.ts → indent.d.ts} +0 -0
  11. package/dist/es/tools/{Indent.js → indent.js} +0 -0
  12. package/dist/es/tools/{InlineFormat.d.ts → inlineFormat.d.ts} +0 -0
  13. package/dist/es/tools/{InlineFormat.js → inlineFormat.js} +0 -0
  14. package/dist/es/tools/{Outdent.d.ts → outdent.d.ts} +0 -0
  15. package/dist/es/tools/{Outdent.js → outdent.js} +0 -0
  16. package/dist/npm/Editor.d.ts +36 -36
  17. package/dist/npm/Editor.js +44 -36
  18. package/dist/npm/config/toolsSettings.js +1 -1
  19. package/dist/npm/package-metadata.js +1 -1
  20. package/dist/npm/tools/{Align.d.ts → align.d.ts} +0 -0
  21. package/dist/npm/tools/{Align.js → align.js} +0 -0
  22. package/dist/npm/tools/fontStyle.js +9 -4
  23. package/dist/npm/tools/formatBlock.js +8 -3
  24. package/dist/npm/tools/{Indent.d.ts → indent.d.ts} +0 -0
  25. package/dist/npm/tools/{Indent.js → indent.js} +0 -0
  26. package/dist/npm/tools/{InlineFormat.d.ts → inlineFormat.d.ts} +0 -0
  27. package/dist/npm/tools/{InlineFormat.js → inlineFormat.js} +0 -0
  28. package/dist/npm/tools/{Outdent.d.ts → outdent.d.ts} +0 -0
  29. package/dist/npm/tools/{Outdent.js → outdent.js} +0 -0
  30. package/package.json +12 -12
@@ -70,15 +70,15 @@ var browser_detection_1 = require("./utils/browser-detection");
70
70
 
71
71
  var package_metadata_1 = require("./package-metadata");
72
72
 
73
- var Align_1 = require("./tools/Align");
73
+ var align_1 = require("./tools/align");
74
74
 
75
- var Indent_1 = require("./tools/Indent");
75
+ var indent_1 = require("./tools/indent");
76
76
 
77
77
  var lists_1 = require("./tools/lists");
78
78
 
79
- var Outdent_1 = require("./tools/Outdent");
79
+ var outdent_1 = require("./tools/outdent");
80
80
 
81
- var InlineFormat_1 = require("./tools/InlineFormat");
81
+ var inlineFormat_1 = require("./tools/inlineFormat");
82
82
 
83
83
  var fontStyle_1 = require("./tools/fontStyle");
84
84
 
@@ -94,7 +94,7 @@ var cleanFormatting_1 = require("./tools/cleanFormatting");
94
94
 
95
95
  var selectAll_1 = require("./tools/selectAll");
96
96
 
97
- var InsertImage_1 = require("./tools/InsertImage");
97
+ var insertImage_1 = require("./tools/insertImage");
98
98
 
99
99
  var tool_1 = require("./tools/insertTable/tool");
100
100
 
@@ -110,51 +110,51 @@ var applyColor_1 = require("./tools/applyColor");
110
110
 
111
111
  exports.allTools = {
112
112
  'Bold': {
113
- comp: InlineFormat_1.InlineFormat,
113
+ comp: inlineFormat_1.InlineFormat,
114
114
  props: toolsSettings_1.EditorToolsSettings.bold
115
115
  },
116
116
  'Italic': {
117
- comp: InlineFormat_1.InlineFormat,
117
+ comp: inlineFormat_1.InlineFormat,
118
118
  props: toolsSettings_1.EditorToolsSettings.italic
119
119
  },
120
120
  'Underline': {
121
- comp: InlineFormat_1.InlineFormat,
121
+ comp: inlineFormat_1.InlineFormat,
122
122
  props: toolsSettings_1.EditorToolsSettings.underline
123
123
  },
124
124
  'Strikethrough': {
125
- comp: InlineFormat_1.InlineFormat,
125
+ comp: inlineFormat_1.InlineFormat,
126
126
  props: toolsSettings_1.EditorToolsSettings.strikethrough
127
127
  },
128
128
  'Subscript': {
129
- comp: InlineFormat_1.InlineFormat,
129
+ comp: inlineFormat_1.InlineFormat,
130
130
  props: toolsSettings_1.EditorToolsSettings.subscript
131
131
  },
132
132
  'Superscript': {
133
- comp: InlineFormat_1.InlineFormat,
133
+ comp: inlineFormat_1.InlineFormat,
134
134
  props: toolsSettings_1.EditorToolsSettings.superscript
135
135
  },
136
136
  'AlignLeft': {
137
- comp: Align_1.Align,
137
+ comp: align_1.Align,
138
138
  props: toolsSettings_1.EditorToolsSettings.alignLeft
139
139
  },
140
140
  'AlignCenter': {
141
- comp: Align_1.Align,
141
+ comp: align_1.Align,
142
142
  props: toolsSettings_1.EditorToolsSettings.alignCenter
143
143
  },
144
144
  'AlignRight': {
145
- comp: Align_1.Align,
145
+ comp: align_1.Align,
146
146
  props: toolsSettings_1.EditorToolsSettings.alignRight
147
147
  },
148
148
  'AlignJustify': {
149
- comp: Align_1.Align,
149
+ comp: align_1.Align,
150
150
  props: toolsSettings_1.EditorToolsSettings.alignJustify
151
151
  },
152
152
  'Indent': {
153
- comp: Indent_1.Indent,
153
+ comp: indent_1.Indent,
154
154
  props: toolsSettings_1.EditorToolsSettings.indent
155
155
  },
156
156
  'Outdent': {
157
- comp: Outdent_1.Outdent,
157
+ comp: outdent_1.Outdent,
158
158
  props: toolsSettings_1.EditorToolsSettings.outdent
159
159
  },
160
160
  'OrderedList': {
@@ -194,7 +194,7 @@ exports.allTools = {
194
194
  props: toolsSettings_1.EditorToolsSettings.unlink
195
195
  },
196
196
  'InsertImage': {
197
- comp: InsertImage_1.InsertImage,
197
+ comp: insertImage_1.InsertImage,
198
198
  props: toolsSettings_1.EditorToolsSettings.image
199
199
  },
200
200
  'ViewHtml': {
@@ -307,6 +307,7 @@ var Editor = {
307
307
  };
308
308
  },
309
309
  created: function created() {
310
+ this._view = undefined;
310
311
  kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
311
312
  },
312
313
  mounted: function mounted() {
@@ -324,7 +325,7 @@ var Editor = {
324
325
  },
325
326
  updated: function updated() {
326
327
  var value = this.$props.value;
327
- var view = this.view;
328
+ var view = this._view;
328
329
 
329
330
  if (value === undefined || !view) {
330
331
  return;
@@ -343,8 +344,8 @@ var Editor = {
343
344
  },
344
345
  // @ts-ignore
345
346
  unmounted: function unmounted() {
346
- if (this.view) {
347
- this.view.destroy();
347
+ if (this._view) {
348
+ this._view.destroy();
348
349
  }
349
350
 
350
351
  this.view = undefined;
@@ -355,8 +356,8 @@ var Editor = {
355
356
  return this.trOnChange.doc;
356
357
  } else if (this.$props.value !== undefined) {
357
358
  return this.$props.value;
358
- } else if (this.view) {
359
- return this.view.state.doc;
359
+ } else if (this._view) {
360
+ return this._view.state.doc;
360
361
  }
361
362
 
362
363
  return this.$props.defaultContent || '';
@@ -382,9 +383,10 @@ var Editor = {
382
383
  _d = _a.preserveWhitespace,
383
384
  preserveWhitespace = _d === void 0 ? 'full' : _d,
384
385
  style = _a.style;
386
+ var view = this.v3 ? this._view : this.view;
385
387
 
386
- if (this.view) {
387
- var editorProps = props_key_1.editorPropsKey.getState(this.view.state);
388
+ if (view) {
389
+ var editorProps = props_key_1.editorPropsKey.getState(view.state);
388
390
  editorProps.preserveWhitespace = preserveWhitespace;
389
391
  }
390
392
 
@@ -399,9 +401,9 @@ var Editor = {
399
401
  var renderDialog = function renderDialog() {
400
402
  return this.linkDialog && // @ts-ignore function children
401
403
  h(insertLink_1.InsertLinkDialog, {
402
- view: this.view,
404
+ view: view,
403
405
  attrs: this.v3 ? undefined : {
404
- view: this.view,
406
+ view: view,
405
407
  settings: link,
406
408
  dir: this.$props.dir
407
409
  },
@@ -419,7 +421,7 @@ var Editor = {
419
421
 
420
422
  if (exports.allTools[currentTool]) {
421
423
  var toolProps = __assign({
422
- view: this.view,
424
+ view: view,
423
425
  dir: this.$props.dir,
424
426
  key: kendo_vue_common_1.guid(),
425
427
  settings: exports.allTools[currentTool].props
@@ -436,7 +438,7 @@ var Editor = {
436
438
  defaultRendering: null,
437
439
  additionalListeners: {},
438
440
  additionalProps: {
439
- view: this.view,
441
+ view: view,
440
442
  dir: this.$props.dir,
441
443
  key: index
442
444
  }
@@ -508,12 +510,17 @@ var Editor = {
508
510
  },
509
511
  methods: {
510
512
  focus: function focus() {
511
- if (this.view) {
512
- this.view.focus();
513
+ if (this._view) {
514
+ this._view.focus();
513
515
  }
514
516
  },
515
517
  updateTools: function updateTools(view) {
516
518
  this.view = view;
519
+
520
+ if (this.v3) {
521
+ this._view = view;
522
+ this.$forceUpdate();
523
+ }
517
524
  },
518
525
  iframeLoad: function iframeLoad() {
519
526
  if (browser_detection_1.firefox) {
@@ -591,7 +598,7 @@ var Editor = {
591
598
  })), {
592
599
  'Mod-k': function ModK() {
593
600
  var linkDialog = _this.$data.linkDialog;
594
- var editorView = _this.view;
601
+ var editorView = _this._view;
595
602
 
596
603
  if (editorView) {
597
604
  var editorState = editorView.state;
@@ -639,7 +646,7 @@ var Editor = {
639
646
  viewProps: viewProps,
640
647
  dom: dom
641
648
  };
642
- var view = this.view = onMount && onMount.call(undefined, mountEvent) || new kendo_editor_common_1.EditorView({
649
+ var view = this._view = onMount && onMount.call(undefined, mountEvent) || new kendo_editor_common_1.EditorView({
643
650
  mount: dom
644
651
  }, viewProps);
645
652
  this.view = view;
@@ -650,7 +657,8 @@ var Editor = {
650
657
  transaction: transaction,
651
658
  state: state
652
659
  };
653
- return this.$emit('execute', event);
660
+ this.$emit('execute', event);
661
+ return true;
654
662
  },
655
663
  onPasteHtml: function onPasteHtml(html) {
656
664
  if (this.$props.onPasteHtml && this.pasteEvent) {
@@ -695,8 +703,8 @@ var Editor = {
695
703
  this.$emit('change', event_2);
696
704
  }
697
705
 
698
- if (this.view && (this.$props.value === undefined || !docChanged)) {
699
- this.view.updateState(this.view.state.apply(transaction));
706
+ if (this._view && (this.$props.value === undefined || !docChanged)) {
707
+ this._view.updateState(this._view.state.apply(transaction));
700
708
  }
701
709
  },
702
710
  onFocus: function onFocus(_view, nativeEvent) {
@@ -130,7 +130,7 @@ var EditorToolsSettings;
130
130
  * The object of the AddColumnBefore tool settings.
131
131
  */
132
132
  EditorToolsSettings.addColumnBefore = {
133
- command: kendo_editor_common_1.addRowBefore,
133
+ command: kendo_editor_common_1.addColumnBefore,
134
134
  props: __assign({ icon: 'table-column-insert-left' }, buttonCommonProps),
135
135
  messages: {
136
136
  title: messages_1.keys.addColumnBefore
@@ -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: 1641109077,
11
+ publishDate: 1641561315,
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
  };
File without changes
File without changes
@@ -141,9 +141,14 @@ var FontName = {
141
141
  },
142
142
  methods: {
143
143
  customItemRender: function customItemRender(h, li, itemProps) {
144
- return itemProps.dataItem.style ? h('li', __assign({}, li.data), [h('span', {
145
- style: itemProps.dataItem.style,
146
- onClick: itemProps.onChange
144
+ return itemProps.dataItem.style ? h('li', {
145
+ class: itemProps.itemClass,
146
+ onClick: itemProps.onClick,
147
+ on: {
148
+ click: itemProps.onClick
149
+ }
150
+ }, [h('span', {
151
+ style: itemProps.dataItem.style
147
152
  }, __spreadArrays(li.children))]) : li;
148
153
  },
149
154
  onChange: function onChange(e) {
@@ -153,7 +158,7 @@ var FontName = {
153
158
  settings = _a.settings;
154
159
  var style = settings.style;
155
160
 
156
- if (view) {
161
+ if (view && item) {
157
162
  kendo_editor_common_1.applyInlineStyle({
158
163
  style: style,
159
164
  value: item.value
@@ -138,9 +138,14 @@ var FormatBlock = {
138
138
  },
139
139
  methods: {
140
140
  customItemRender: function customItemRender(h, li, itemProps) {
141
- return itemProps.dataItem.style ? h('li', __assign({}, li.data), [h('span', {
142
- style: itemProps.dataItem.style,
143
- onClick: itemProps.onChange
141
+ return itemProps.dataItem.style ? h('li', {
142
+ class: itemProps.itemClass,
143
+ onClick: itemProps.onClick,
144
+ on: {
145
+ click: itemProps.onClick
146
+ }
147
+ }, [h('span', {
148
+ style: itemProps.dataItem.style
144
149
  }, __spreadArrays(li.children))]) : li;
145
150
  },
146
151
  onChange: function onChange(e) {
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-editor",
3
3
  "description": "Kendo UI for Vue Editor package",
4
- "version": "2.7.2-dev.202201020746",
4
+ "version": "2.7.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -43,21 +43,21 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@progress/kendo-editor-common": "1.6.0",
46
- "@progress/kendo-vue-common": "2.7.2-dev.202201020746"
46
+ "@progress/kendo-vue-common": "2.7.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@progress/kendo-drawing": "^1.8.0",
50
50
  "@progress/kendo-licensing": "^1.0.1",
51
- "@progress/kendo-vue-buttons": "2.7.2-dev.202201020746",
52
- "@progress/kendo-vue-dialogs": "2.7.2-dev.202201020746",
53
- "@progress/kendo-vue-dropdowns": "2.7.2-dev.202201020746",
54
- "@progress/kendo-vue-form": "2.7.2-dev.202201020746",
55
- "@progress/kendo-vue-inputs": "2.7.2-dev.202201020746",
56
- "@progress/kendo-vue-intl": "2.7.2-dev.202201020746",
57
- "@progress/kendo-vue-layout": "2.7.2-dev.202201020746",
58
- "@progress/kendo-vue-pdf": "2.7.2-dev.202201020746",
59
- "@progress/kendo-vue-popup": "2.7.2-dev.202201020746",
60
- "@progress/kendo-vue-upload": "2.7.2-dev.202201020746"
51
+ "@progress/kendo-vue-buttons": "2.7.3",
52
+ "@progress/kendo-vue-dialogs": "2.7.3",
53
+ "@progress/kendo-vue-dropdowns": "2.7.3",
54
+ "@progress/kendo-vue-form": "2.7.3",
55
+ "@progress/kendo-vue-inputs": "2.7.3",
56
+ "@progress/kendo-vue-intl": "2.7.3",
57
+ "@progress/kendo-vue-layout": "2.7.3",
58
+ "@progress/kendo-vue-pdf": "2.7.3",
59
+ "@progress/kendo-vue-popup": "2.7.3",
60
+ "@progress/kendo-vue-upload": "2.7.3"
61
61
  },
62
62
  "@progress": {
63
63
  "friendlyName": "Editor",