@progress/kendo-vue-editor 3.7.4-dev.202301151601 → 3.7.4-dev.202301171215

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.
@@ -11,7 +11,6 @@ var gh = allVue.h;
11
11
  var isV3 = allVue.version && allVue.version[0] === '3';
12
12
  var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
13
13
  var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
- var kendo_vue_inputs_1 = require("@progress/kendo-vue-inputs");
15
14
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
16
15
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
17
16
  var main_1 = require("../messages/main");
@@ -31,13 +30,25 @@ var ViewHtmlDialogVue2 = {
31
30
  settings: Object,
32
31
  dir: String
33
32
  },
33
+ created: function created() {
34
+ this.textAreaId = (0, kendo_vue_common_1.guid)();
35
+ },
34
36
  inject: {
35
37
  kendoLocalizationService: {
36
38
  default: null
37
39
  }
38
40
  },
41
+ data: function data() {
42
+ var view = this.$props.view;
43
+ return {
44
+ textAreaValue: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state))
45
+ };
46
+ },
39
47
  mounted: function mounted() {
40
48
  this.htmlArea = (0, kendo_vue_common_1.getRef)(this, 'htmlArea');
49
+ if (this.htmlArea) {
50
+ this.htmlArea.focus();
51
+ }
41
52
  },
42
53
  // @ts-ignore
43
54
  setup: !isV3 ? undefined : function () {
@@ -51,7 +62,6 @@ var ViewHtmlDialogVue2 = {
51
62
  var _this = this;
52
63
  var h = gh || createElement;
53
64
  var _a = this.$props,
54
- view = _a.view,
55
65
  settings = _a.settings,
56
66
  dir = _a.dir;
57
67
  var localization = (0, kendo_vue_intl_1.provideLocalizationService)(this);
@@ -59,23 +69,31 @@ var ViewHtmlDialogVue2 = {
59
69
  viewHtmlDialogTitle = _b.viewHtmlDialogTitle,
60
70
  viewHtmlCancel = _b.viewHtmlCancel,
61
71
  viewHtmlUpdate = _b.viewHtmlUpdate;
62
- var content = h(kendo_vue_inputs_1.TextArea, {
63
- "class": "k-editor-textarea",
64
- defaultValue: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state)),
65
- attrs: this.v3 ? undefined : {
66
- defaultValue: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state)),
67
- autoFocus: true,
68
- autoSize: false,
69
- value: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state))
72
+ var content = h("span", {
73
+ "class": "k-input k-textarea k-input-md k-input-solid k-rounded-md k-editor-textarea"
74
+ }, [h("textarea", {
75
+ ref: (0, kendo_vue_common_1.setRef)(this, 'htmlArea'),
76
+ onInput: this.textAreaChange,
77
+ on: this.v3 ? undefined : {
78
+ "input": this.textAreaChange
70
79
  },
71
- style: {
72
- height: '275px'
80
+ value: this.v3 ? this.textAreaValue : null,
81
+ domProps: this.v3 ? undefined : {
82
+ "value": this.textAreaValue
73
83
  },
74
- autoFocus: true,
75
- autoSize: false,
76
- ref: (0, kendo_vue_common_1.setRef)(this, 'htmlArea'),
77
- value: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state))
78
- });
84
+ id: this.textAreaId,
85
+ attrs: this.v3 ? undefined : {
86
+ id: this.textAreaId,
87
+ role: "textbox",
88
+ tabindex: "0",
89
+ "aria-multiline": "true"
90
+ },
91
+ role: "textbox",
92
+ "class": "k-input-inner !k-overflow-auto",
93
+ tabindex: "0",
94
+ "aria-multiline": "true",
95
+ style: "resize: none;"
96
+ })]);
79
97
  var actionButtons = [
80
98
  // @ts-ignore function children
81
99
  h(kendo_vue_buttons_1.Button, {
@@ -162,11 +180,14 @@ var ViewHtmlDialogVue2 = {
162
180
  return dialog;
163
181
  },
164
182
  methods: {
183
+ textAreaChange: function textAreaChange(e) {
184
+ this.textAreaValue = e.value;
185
+ },
165
186
  onUpdate: function onUpdate() {
166
187
  var _a = this.$props,
167
188
  view = _a.view,
168
189
  settings = _a.settings;
169
- var html = (0, kendo_editor_common_1.trimWhitespace)(this.htmlArea ? this.htmlArea.value : '');
190
+ var html = (0, kendo_editor_common_1.trimWhitespace)(this.htmlArea ? this.textAreaValue : '');
170
191
  var preserveWhitespace = props_key_1.editorPropsKey.getState(view.state).preserveWhitespace;
171
192
  (0, kendo_editor_common_1.setHtml)(html, settings.commandName, {
172
193
  preserveWhitespace: preserveWhitespace
@@ -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: 1673797735,
11
+ publishDate: 1673956950,
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
  };
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": "3.7.4-dev.202301151601",
4
+ "version": "3.7.4-dev.202301171215",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -41,6 +41,7 @@
41
41
  "@progress/kendo-vue-buttons": "^3.6.0",
42
42
  "@progress/kendo-vue-dialogs": "^3.6.0",
43
43
  "@progress/kendo-vue-dropdowns": "^3.6.0",
44
+ "@progress/kendo-vue-form": "^3.6.0",
44
45
  "@progress/kendo-vue-inputs": "^3.6.0",
45
46
  "@progress/kendo-vue-intl": "^3.6.0",
46
47
  "@progress/kendo-vue-layout": "^3.6.0",
@@ -50,22 +51,22 @@
50
51
  },
51
52
  "dependencies": {
52
53
  "@progress/kendo-editor-common": "1.9.3",
53
- "@progress/kendo-vue-common": "3.7.4-dev.202301151601"
54
+ "@progress/kendo-vue-common": "3.7.4-dev.202301171215"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@progress/kendo-drawing": "^1.8.0",
57
58
  "@progress/kendo-licensing": "^1.3.0",
58
59
  "@progress/kendo-svg-icons": "^1.0.0",
59
- "@progress/kendo-vue-buttons": "3.7.4-dev.202301151601",
60
- "@progress/kendo-vue-dialogs": "3.7.4-dev.202301151601",
61
- "@progress/kendo-vue-dropdowns": "3.7.4-dev.202301151601",
62
- "@progress/kendo-vue-form": "3.7.4-dev.202301151601",
63
- "@progress/kendo-vue-inputs": "3.7.4-dev.202301151601",
64
- "@progress/kendo-vue-intl": "3.7.4-dev.202301151601",
65
- "@progress/kendo-vue-layout": "3.7.4-dev.202301151601",
66
- "@progress/kendo-vue-pdf": "3.7.4-dev.202301151601",
67
- "@progress/kendo-vue-popup": "3.7.4-dev.202301151601",
68
- "@progress/kendo-vue-upload": "3.7.4-dev.202301151601",
60
+ "@progress/kendo-vue-buttons": "3.7.4-dev.202301171215",
61
+ "@progress/kendo-vue-dialogs": "3.7.4-dev.202301171215",
62
+ "@progress/kendo-vue-dropdowns": "3.7.4-dev.202301171215",
63
+ "@progress/kendo-vue-form": "3.7.4-dev.202301171215",
64
+ "@progress/kendo-vue-inputs": "3.7.4-dev.202301171215",
65
+ "@progress/kendo-vue-intl": "3.7.4-dev.202301171215",
66
+ "@progress/kendo-vue-layout": "3.7.4-dev.202301171215",
67
+ "@progress/kendo-vue-pdf": "3.7.4-dev.202301171215",
68
+ "@progress/kendo-vue-popup": "3.7.4-dev.202301171215",
69
+ "@progress/kendo-vue-upload": "3.7.4-dev.202301171215",
69
70
  "prosemirror-markdown": "1.10.1",
70
71
  "prosemirror-tables": "^1.2.5"
71
72
  },