@progress/kendo-vue-editor 2.7.3 → 3.0.0-dev.202201141128

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 (118) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  2. package/dist/es/Editor.d.ts +49 -131
  3. package/dist/es/Editor.js +51 -25
  4. package/dist/es/EditorProps.d.ts +11 -5
  5. package/dist/es/additionalTypes.ts +7 -1
  6. package/dist/es/config/toolsSettings.d.ts +4 -0
  7. package/dist/es/dialogs/FindReplace.d.ts +6 -7
  8. package/dist/es/dialogs/FindReplace.js +203 -131
  9. package/dist/es/dialogs/insertImage.d.ts +5 -6
  10. package/dist/es/dialogs/insertImage.js +23 -13
  11. package/dist/es/dialogs/insertLink.d.ts +5 -6
  12. package/dist/es/dialogs/insertLink.js +12 -8
  13. package/dist/es/dialogs/viewHtml.d.ts +5 -6
  14. package/dist/es/dialogs/viewHtml.js +3 -3
  15. package/dist/es/main.d.ts +19 -0
  16. package/dist/es/main.js +19 -0
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/tools/align.d.ts +5 -6
  19. package/dist/es/tools/align.js +5 -5
  20. package/dist/es/tools/applyColor.d.ts +5 -6
  21. package/dist/es/tools/applyColor.js +9 -5
  22. package/dist/es/tools/cleanFormatting.d.ts +5 -6
  23. package/dist/es/tools/cleanFormatting.js +5 -5
  24. package/dist/es/tools/findReplace.d.ts +5 -6
  25. package/dist/es/tools/findReplace.js +7 -7
  26. package/dist/es/tools/fontStyle.d.ts +5 -6
  27. package/dist/es/tools/fontStyle.js +5 -5
  28. package/dist/es/tools/formatBlock.d.ts +5 -6
  29. package/dist/es/tools/formatBlock.js +5 -5
  30. package/dist/es/tools/indent.d.ts +5 -6
  31. package/dist/es/tools/indent.js +5 -5
  32. package/dist/es/tools/inlineFormat.d.ts +5 -6
  33. package/dist/es/tools/inlineFormat.js +5 -5
  34. package/dist/es/tools/insertImage.d.ts +5 -6
  35. package/dist/es/tools/insertImage.js +5 -5
  36. package/dist/es/tools/insertLink.d.ts +5 -6
  37. package/dist/es/tools/insertLink.js +5 -5
  38. package/dist/es/tools/insertTable/popup.d.ts +5 -6
  39. package/dist/es/tools/insertTable/popup.js +3 -3
  40. package/dist/es/tools/insertTable/popupGrid.d.ts +5 -6
  41. package/dist/es/tools/insertTable/popupGrid.js +3 -3
  42. package/dist/es/tools/insertTable/tool.d.ts +5 -6
  43. package/dist/es/tools/insertTable/tool.js +5 -5
  44. package/dist/es/tools/lists.d.ts +5 -6
  45. package/dist/es/tools/lists.js +5 -5
  46. package/dist/es/tools/outdent.d.ts +5 -6
  47. package/dist/es/tools/outdent.js +5 -5
  48. package/dist/es/tools/pdf.d.ts +5 -6
  49. package/dist/es/tools/pdf.js +5 -5
  50. package/dist/es/tools/print.d.ts +5 -6
  51. package/dist/es/tools/print.js +5 -5
  52. package/dist/es/tools/proseMirrorTool.d.ts +5 -6
  53. package/dist/es/tools/proseMirrorTool.js +5 -5
  54. package/dist/es/tools/selectAll.d.ts +5 -6
  55. package/dist/es/tools/selectAll.js +5 -5
  56. package/dist/es/tools/unlink.d.ts +5 -6
  57. package/dist/es/tools/unlink.js +5 -5
  58. package/dist/es/tools/viewHtml.d.ts +5 -6
  59. package/dist/es/tools/viewHtml.js +5 -5
  60. package/dist/npm/Editor.d.ts +49 -131
  61. package/dist/npm/Editor.js +52 -26
  62. package/dist/npm/EditorProps.d.ts +11 -5
  63. package/dist/npm/additionalTypes.ts +7 -1
  64. package/dist/npm/config/toolsSettings.d.ts +4 -0
  65. package/dist/npm/dialogs/FindReplace.d.ts +6 -7
  66. package/dist/npm/dialogs/FindReplace.js +206 -133
  67. package/dist/npm/dialogs/insertImage.d.ts +5 -6
  68. package/dist/npm/dialogs/insertImage.js +25 -15
  69. package/dist/npm/dialogs/insertLink.d.ts +5 -6
  70. package/dist/npm/dialogs/insertLink.js +14 -10
  71. package/dist/npm/dialogs/viewHtml.d.ts +5 -6
  72. package/dist/npm/dialogs/viewHtml.js +5 -5
  73. package/dist/npm/main.d.ts +19 -0
  74. package/dist/npm/main.js +38 -0
  75. package/dist/npm/package-metadata.js +1 -1
  76. package/dist/npm/tools/align.d.ts +5 -6
  77. package/dist/npm/tools/align.js +7 -7
  78. package/dist/npm/tools/applyColor.d.ts +5 -6
  79. package/dist/npm/tools/applyColor.js +11 -7
  80. package/dist/npm/tools/cleanFormatting.d.ts +5 -6
  81. package/dist/npm/tools/cleanFormatting.js +7 -7
  82. package/dist/npm/tools/findReplace.d.ts +5 -6
  83. package/dist/npm/tools/findReplace.js +9 -9
  84. package/dist/npm/tools/fontStyle.d.ts +5 -6
  85. package/dist/npm/tools/fontStyle.js +7 -7
  86. package/dist/npm/tools/formatBlock.d.ts +5 -6
  87. package/dist/npm/tools/formatBlock.js +7 -7
  88. package/dist/npm/tools/indent.d.ts +5 -6
  89. package/dist/npm/tools/indent.js +7 -7
  90. package/dist/npm/tools/inlineFormat.d.ts +5 -6
  91. package/dist/npm/tools/inlineFormat.js +7 -7
  92. package/dist/npm/tools/insertImage.d.ts +5 -6
  93. package/dist/npm/tools/insertImage.js +7 -7
  94. package/dist/npm/tools/insertLink.d.ts +5 -6
  95. package/dist/npm/tools/insertLink.js +7 -7
  96. package/dist/npm/tools/insertTable/popup.d.ts +5 -6
  97. package/dist/npm/tools/insertTable/popup.js +5 -5
  98. package/dist/npm/tools/insertTable/popupGrid.d.ts +5 -6
  99. package/dist/npm/tools/insertTable/popupGrid.js +5 -5
  100. package/dist/npm/tools/insertTable/tool.d.ts +5 -6
  101. package/dist/npm/tools/insertTable/tool.js +7 -7
  102. package/dist/npm/tools/lists.d.ts +5 -6
  103. package/dist/npm/tools/lists.js +7 -7
  104. package/dist/npm/tools/outdent.d.ts +5 -6
  105. package/dist/npm/tools/outdent.js +7 -7
  106. package/dist/npm/tools/pdf.d.ts +5 -6
  107. package/dist/npm/tools/pdf.js +7 -7
  108. package/dist/npm/tools/print.d.ts +5 -6
  109. package/dist/npm/tools/print.js +7 -7
  110. package/dist/npm/tools/proseMirrorTool.d.ts +5 -6
  111. package/dist/npm/tools/proseMirrorTool.js +7 -7
  112. package/dist/npm/tools/selectAll.d.ts +5 -6
  113. package/dist/npm/tools/selectAll.js +7 -7
  114. package/dist/npm/tools/unlink.d.ts +5 -6
  115. package/dist/npm/tools/unlink.js +7 -7
  116. package/dist/npm/tools/viewHtml.d.ts +5 -6
  117. package/dist/npm/tools/viewHtml.js +7 -7
  118. package/package.json +12 -12
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -45,8 +44,8 @@ export interface InsertImageDialogData {
45
44
  /**
46
45
  * @hidden
47
46
  */
48
- export interface InsertImageDialogAll extends Vue, InsertImageDialogMethods, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogState {
47
+ export interface InsertImageDialogAll extends Vue2type, InsertImageDialogMethods, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogState {
49
48
  }
50
- declare let InsertImageDialog: ComponentOptions<InsertImageDialogAll, DefaultData<InsertImageDialogData>, DefaultMethods<InsertImageDialogAll>, InsertImageDialogComputed, RecordPropsDefinition<InsertImageDialogProps>>;
51
- declare const InsertImageDialogVue3: DefineComponent<InsertImageDialogProps, any, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogMethods, {}, {}, {}, string, InsertImageDialogProps, InsertImageDialogProps, {}>;
52
- export { InsertImageDialog, InsertImageDialogVue3 };
49
+ declare let InsertImageDialogVue2: ComponentOptions<InsertImageDialogAll, DefaultData<InsertImageDialogData>, DefaultMethods<InsertImageDialogAll>, InsertImageDialogComputed, RecordPropsDefinition<InsertImageDialogProps>>;
50
+ declare const InsertImageDialog: DefineComponent<InsertImageDialogProps, any, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogMethods, {}, {}, {}, string, InsertImageDialogProps, InsertImageDialogProps, {}>;
51
+ export { InsertImageDialog, InsertImageDialogVue2 };
@@ -8,7 +8,7 @@ import { NodeSelection, insertNode } from '@progress/kendo-editor-common';
8
8
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
9
  import { messages } from './../messages'; // tslint:enable:max-line-length
10
10
 
11
- var InsertImageDialog = {
11
+ var InsertImageDialogVue2 = {
12
12
  name: 'KendoInsertImageDialog',
13
13
  props: {
14
14
  view: Object,
@@ -73,6 +73,8 @@ var InsertImageDialog = {
73
73
  }
74
74
  }, [localization.toLanguageString(insertImageAddress, messages[insertImageAddress])])]), h("div", {
75
75
  "class": "k-edit-field"
76
+ }, [h("span", {
77
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
76
78
  }, [h("input", {
77
79
  type: "text",
78
80
  attrs: this.v3 ? undefined : {
@@ -80,7 +82,7 @@ var InsertImageDialog = {
80
82
  id: "k-editor-image-url",
81
83
  autoFocus: true
82
84
  },
83
- "class": "k-textbox",
85
+ "class": "k-input-inner",
84
86
  id: "k-editor-image-url",
85
87
  value: this.v3 ? attrs.src : null,
86
88
  domProps: this.v3 ? undefined : {
@@ -90,7 +92,7 @@ var InsertImageDialog = {
90
92
  _this.srcRef = el;
91
93
  } : 'src',
92
94
  autoFocus: true
93
- })]), h("div", {
95
+ })])]), h("div", {
94
96
  "class": "k-edit-label"
95
97
  }, [h("label", {
96
98
  "for": "k-editor-image-alt",
@@ -99,13 +101,15 @@ var InsertImageDialog = {
99
101
  }
100
102
  }, [localization.toLanguageString(insertImageAltText, messages[insertImageAltText])])]), h("div", {
101
103
  "class": "k-edit-field"
104
+ }, [h("span", {
105
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
102
106
  }, [h("input", {
103
107
  type: "text",
104
108
  attrs: this.v3 ? undefined : {
105
109
  type: "text",
106
110
  id: "k-editor-image-alt"
107
111
  },
108
- "class": "k-textbox",
112
+ "class": "k-input-inner",
109
113
  id: "k-editor-image-alt",
110
114
  value: this.v3 ? attrs.alt : null,
111
115
  domProps: this.v3 ? undefined : {
@@ -114,7 +118,7 @@ var InsertImageDialog = {
114
118
  ref: this.v3 ? function (el) {
115
119
  _this.altTextRef = el;
116
120
  } : 'altText'
117
- })]), h("div", {
121
+ })])]), h("div", {
118
122
  "class": "k-edit-label"
119
123
  }, [h("label", {
120
124
  "for": "k-editor-image-title",
@@ -123,13 +127,15 @@ var InsertImageDialog = {
123
127
  }
124
128
  }, [localization.toLanguageString(insertImageTitle, messages[insertImageTitle])])]), h("div", {
125
129
  "class": "k-edit-field"
130
+ }, [h("span", {
131
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
126
132
  }, [h("input", {
127
133
  type: "text",
128
134
  attrs: this.v3 ? undefined : {
129
135
  type: "text",
130
136
  id: "k-editor-image-title"
131
137
  },
132
- "class": "k-textbox",
138
+ "class": "k-input-inner",
133
139
  id: "k-editor-image-title",
134
140
  value: this.v3 ? attrs.title : null,
135
141
  domProps: this.v3 ? undefined : {
@@ -138,7 +144,7 @@ var InsertImageDialog = {
138
144
  ref: this.v3 ? function (el) {
139
145
  _this.titleRef = el;
140
146
  } : 'title'
141
- })]), h("div", {
147
+ })])]), h("div", {
142
148
  "class": "k-edit-label"
143
149
  }, [h("label", {
144
150
  "for": "k-editor-image-width",
@@ -147,13 +153,15 @@ var InsertImageDialog = {
147
153
  }
148
154
  }, [localization.toLanguageString(insertImageWidth, messages[insertImageWidth])])]), h("div", {
149
155
  "class": "k-edit-field"
156
+ }, [h("span", {
157
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
150
158
  }, [h("input", {
151
159
  type: "text",
152
160
  attrs: this.v3 ? undefined : {
153
161
  type: "text",
154
162
  id: "k-editor-image-width"
155
163
  },
156
- "class": "k-textbox",
164
+ "class": "k-input-inner",
157
165
  id: "k-editor-image-width",
158
166
  value: this.v3 ? attrs.width : null,
159
167
  domProps: this.v3 ? undefined : {
@@ -162,7 +170,7 @@ var InsertImageDialog = {
162
170
  ref: this.v3 ? function (el) {
163
171
  _this.widthRef = el;
164
172
  } : 'width'
165
- })]), h("div", {
173
+ })])]), h("div", {
166
174
  "class": "k-edit-label"
167
175
  }, [h("label", {
168
176
  "for": "k-editor-image-height",
@@ -171,13 +179,15 @@ var InsertImageDialog = {
171
179
  }
172
180
  }, [localization.toLanguageString(insertImageHeight, messages[insertImageHeight])])]), h("div", {
173
181
  "class": "k-edit-field"
182
+ }, [h("span", {
183
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
174
184
  }, [h("input", {
175
185
  type: "text",
176
186
  attrs: this.v3 ? undefined : {
177
187
  type: "text",
178
188
  id: "k-editor-image-height"
179
189
  },
180
- "class": "k-textbox",
190
+ "class": "k-input-inner",
181
191
  id: "k-editor-image-height",
182
192
  value: this.v3 ? attrs.height : null,
183
193
  domProps: this.v3 ? undefined : {
@@ -186,7 +196,7 @@ var InsertImageDialog = {
186
196
  ref: this.v3 ? function (el) {
187
197
  _this.heightRef = el;
188
198
  } : 'height'
189
- })])]);
199
+ })])])]);
190
200
  var actionButtons = [// @ts-ignore function children
191
201
  h(KButton, {
192
202
  onClick: this.onClose,
@@ -278,5 +288,5 @@ var InsertImageDialog = {
278
288
  }
279
289
  }
280
290
  };
281
- var InsertImageDialogVue3 = InsertImageDialog;
282
- export { InsertImageDialog, InsertImageDialogVue3 };
291
+ var InsertImageDialog = InsertImageDialogVue2;
292
+ export { InsertImageDialog, InsertImageDialogVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -43,8 +42,8 @@ export interface InsertLinkDialogData {
43
42
  /**
44
43
  * @hidden
45
44
  */
46
- export interface InsertLinkDialogAll extends Vue, InsertLinkDialogMethods, InsertLinkDialogData, InsertLinkDialogComputed, InsertLinkDialogState {
45
+ export interface InsertLinkDialogAll extends Vue2type, InsertLinkDialogMethods, InsertLinkDialogData, InsertLinkDialogComputed, InsertLinkDialogState {
47
46
  }
48
- declare let InsertLinkDialog: ComponentOptions<InsertLinkDialogAll, DefaultData<InsertLinkDialogData>, DefaultMethods<InsertLinkDialogAll>, InsertLinkDialogComputed, RecordPropsDefinition<InsertLinkDialogProps>>;
49
- declare const InsertLinkDialogVue3: DefineComponent<InsertLinkDialogProps, any, InsertLinkDialogData, InsertLinkDialogComputed, InsertLinkDialogMethods, {}, {}, {}, string, InsertLinkDialogProps, InsertLinkDialogProps, {}>;
50
- export { InsertLinkDialog, InsertLinkDialogVue3 };
47
+ declare let InsertLinkDialogVue2: ComponentOptions<InsertLinkDialogAll, DefaultData<InsertLinkDialogData>, DefaultMethods<InsertLinkDialogAll>, InsertLinkDialogComputed, RecordPropsDefinition<InsertLinkDialogProps>>;
48
+ declare const InsertLinkDialog: DefineComponent<InsertLinkDialogProps, any, InsertLinkDialogData, InsertLinkDialogComputed, InsertLinkDialogMethods, {}, {}, {}, string, InsertLinkDialogProps, InsertLinkDialogProps, {}>;
49
+ export { InsertLinkDialog, InsertLinkDialogVue2 };
@@ -8,7 +8,7 @@ import { getMark, applyLink } from '@progress/kendo-editor-common';
8
8
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
9
  import { messages } from './../messages'; // tslint:enable:max-line-length
10
10
 
11
- var InsertLinkDialog = {
11
+ var InsertLinkDialogVue2 = {
12
12
  name: 'KendoInsertLinkDialog',
13
13
  props: {
14
14
  view: Object,
@@ -63,6 +63,8 @@ var InsertLinkDialog = {
63
63
  }
64
64
  }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])])]), h("div", {
65
65
  "class": "k-edit-field"
66
+ }, [h("span", {
67
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
66
68
  }, [h("input", {
67
69
  type: "text",
68
70
  attrs: this.v3 ? undefined : {
@@ -70,7 +72,7 @@ var InsertLinkDialog = {
70
72
  id: "k-editor-link-url",
71
73
  autoFocus: true
72
74
  },
73
- "class": "k-textbox",
75
+ "class": "k-input-inner",
74
76
  ref: this.v3 ? function (el) {
75
77
  _this.hrefRef = el;
76
78
  } : 'href',
@@ -80,7 +82,7 @@ var InsertLinkDialog = {
80
82
  "value": linkMark && linkMark.attrs.href || undefined
81
83
  },
82
84
  autoFocus: true
83
- })]), h("div", {
85
+ })])]), h("div", {
84
86
  "class": "k-edit-label k-editor-link-text-row"
85
87
  }, [h("label", {
86
88
  "for": "k-editor-link-text",
@@ -89,13 +91,15 @@ var InsertLinkDialog = {
89
91
  }
90
92
  }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])])]), h("div", {
91
93
  "class": "k-edit-field k-editor-link-text-row"
94
+ }, [h("span", {
95
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
92
96
  }, [h("input", {
93
97
  type: "text",
94
98
  attrs: this.v3 ? undefined : {
95
99
  type: "text",
96
100
  id: "k-editor-link-text"
97
101
  },
98
- "class": "k-textbox",
102
+ "class": "k-input-inner",
99
103
  id: "k-editor-link-text",
100
104
  ref: this.v3 ? function (el) {
101
105
  _this.titleRef = el;
@@ -104,7 +108,7 @@ var InsertLinkDialog = {
104
108
  domProps: this.v3 ? undefined : {
105
109
  "value": linkMark && linkMark.attrs.title || undefined
106
110
  }
107
- })]), settings.linkTarget !== false && h("div", {
111
+ })])]), settings.linkTarget !== false && h("div", {
108
112
  "class": "k-edit-field"
109
113
  }, [h("input", {
110
114
  type: "checkbox",
@@ -112,7 +116,7 @@ var InsertLinkDialog = {
112
116
  type: "checkbox",
113
117
  id: "k-editor-link-target"
114
118
  },
115
- "class": "k-checkbox",
119
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
116
120
  id: "k-editor-link-target",
117
121
  ref: this.v3 ? function (el) {
118
122
  _this.targetRef = el;
@@ -282,5 +286,5 @@ var InsertLinkDialog = {
282
286
  }
283
287
  }
284
288
  };
285
- var InsertLinkDialogVue3 = InsertLinkDialog;
286
- export { InsertLinkDialog, InsertLinkDialogVue3 };
289
+ var InsertLinkDialog = InsertLinkDialogVue2;
290
+ export { InsertLinkDialog, InsertLinkDialogVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -42,8 +41,8 @@ export interface ViewHtmlDialogData {
42
41
  /**
43
42
  * @hidden
44
43
  */
45
- export interface ViewHtmlDialogAll extends Vue, ViewHtmlDialogMethods, ViewHtmlDialogData, ViewHtmlDialogComputed, ViewHtmlDialogState {
44
+ export interface ViewHtmlDialogAll extends Vue2type, ViewHtmlDialogMethods, ViewHtmlDialogData, ViewHtmlDialogComputed, ViewHtmlDialogState {
46
45
  }
47
- declare let ViewHtmlDialog: ComponentOptions<ViewHtmlDialogAll, DefaultData<ViewHtmlDialogData>, DefaultMethods<ViewHtmlDialogAll>, ViewHtmlDialogComputed, RecordPropsDefinition<ViewHtmlDialogProps>>;
48
- declare const ViewHtmlDialogVue3: DefineComponent<ViewHtmlDialogProps, any, ViewHtmlDialogData, ViewHtmlDialogComputed, ViewHtmlDialogMethods, {}, {}, {}, string, ViewHtmlDialogProps, ViewHtmlDialogProps, {}>;
49
- export { ViewHtmlDialog, ViewHtmlDialogVue3 };
46
+ declare let ViewHtmlDialogVue2: ComponentOptions<ViewHtmlDialogAll, DefaultData<ViewHtmlDialogData>, DefaultMethods<ViewHtmlDialogAll>, ViewHtmlDialogComputed, RecordPropsDefinition<ViewHtmlDialogProps>>;
47
+ declare const ViewHtmlDialog: DefineComponent<ViewHtmlDialogProps, any, ViewHtmlDialogData, ViewHtmlDialogComputed, ViewHtmlDialogMethods, {}, {}, {}, string, ViewHtmlDialogProps, ViewHtmlDialogProps, {}>;
48
+ export { ViewHtmlDialog, ViewHtmlDialogVue2 };
@@ -9,7 +9,7 @@ import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
9
  import { messages } from './../messages';
10
10
  import { editorPropsKey } from './../utils/props-key'; // tslint:enable:max-line-length
11
11
 
12
- var ViewHtmlDialog = {
12
+ var ViewHtmlDialogVue2 = {
13
13
  name: 'KendoViewHtmlDialog',
14
14
  props: {
15
15
  view: Object,
@@ -140,5 +140,5 @@ var ViewHtmlDialog = {
140
140
  }
141
141
  }
142
142
  };
143
- var ViewHtmlDialogVue3 = ViewHtmlDialog;
144
- export { ViewHtmlDialog, ViewHtmlDialogVue3 };
143
+ var ViewHtmlDialog = ViewHtmlDialogVue2;
144
+ export { ViewHtmlDialog, ViewHtmlDialogVue2 };
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: 1641561315,
8
+ publishDate: 1642159085,
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
  };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -30,8 +29,8 @@ export interface AlignData {
30
29
  /**
31
30
  * @hidden
32
31
  */
33
- export interface AlignAll extends Vue, AlignMethods, AlignData, AlignComputed, AlignState {
32
+ export interface AlignAll extends Vue2type, AlignMethods, AlignData, AlignComputed, AlignState {
34
33
  }
35
- declare let Align: ComponentOptions<AlignAll, DefaultData<AlignData>, DefaultMethods<AlignAll>, AlignComputed, RecordPropsDefinition<EditorTools.AlignToolProps>>;
36
- declare const AlignVue3: DefineComponent<EditorTools.AlignToolProps, any, AlignData, AlignComputed, AlignMethods, {}, {}, {}, string, EditorTools.AlignToolProps, EditorTools.AlignToolProps, {}>;
37
- export { Align, AlignVue3 };
34
+ declare let AlignVue2: ComponentOptions<AlignAll, DefaultData<AlignData>, DefaultMethods<AlignAll>, AlignComputed, RecordPropsDefinition<EditorTools.AlignToolProps>>;
35
+ declare const Align: DefineComponent<EditorTools.AlignToolProps, any, AlignData, AlignComputed, AlignMethods, {}, {}, {}, string, EditorTools.AlignToolProps, EditorTools.AlignToolProps, {}>;
36
+ export { Align, AlignVue2 };
@@ -38,7 +38,7 @@ import { provideLocalizationService } from '@progress/kendo-vue-intl';
38
38
  import { messages } from './../messages';
39
39
  var alignRemove = EditorToolsSettings.alignRemove; // tslint:enable:max-line-length
40
40
 
41
- var Align = {
41
+ var AlignVue2 = {
42
42
  name: 'KendoAlign',
43
43
  props: __assign({
44
44
  view: Object,
@@ -77,11 +77,11 @@ var Align = {
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,
@@ -112,5 +112,5 @@ var Align = {
112
112
  }
113
113
  }
114
114
  };
115
- var AlignVue3 = Align;
116
- export { Align, AlignVue3 };
115
+ var Align = AlignVue2;
116
+ export { Align, AlignVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -36,8 +35,8 @@ export interface ApplyColorData {
36
35
  /**
37
36
  * @hidden
38
37
  */
39
- export interface ApplyColorAll extends Vue, ApplyColorMethods, ApplyColorData, ApplyColorComputed, ApplyColorState {
38
+ export interface ApplyColorAll extends Vue2type, ApplyColorMethods, ApplyColorData, ApplyColorComputed, ApplyColorState {
40
39
  }
41
- declare let ApplyColor: ComponentOptions<ApplyColorAll, DefaultData<ApplyColorData>, DefaultMethods<ApplyColorAll>, ApplyColorComputed, RecordPropsDefinition<ApplyColorToolProps>>;
42
- declare const ApplyColorVue3: DefineComponent<ApplyColorToolProps, any, ApplyColorData, ApplyColorComputed, ApplyColorMethods, {}, {}, {}, string, ApplyColorToolProps, ApplyColorToolProps, {}>;
43
- export { ApplyColor, ApplyColorVue3 };
40
+ declare let ApplyColorVue2: ComponentOptions<ApplyColorAll, DefaultData<ApplyColorData>, DefaultMethods<ApplyColorAll>, ApplyColorComputed, RecordPropsDefinition<ApplyColorToolProps>>;
41
+ declare const ApplyColor: DefineComponent<ApplyColorToolProps, any, ApplyColorData, ApplyColorComputed, ApplyColorMethods, {}, {}, {}, string, ApplyColorToolProps, ApplyColorToolProps, {}>;
42
+ export { ApplyColor, ApplyColorVue2 };
@@ -23,13 +23,14 @@ import { applyInlineStyle } from '@progress/kendo-editor-common';
23
23
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
24
24
  import { messages } from '../messages'; // tslint:enable:max-line-length
25
25
 
26
- var ApplyColor = {
26
+ var ApplyColorVue2 = {
27
27
  name: 'KendoApplyColor',
28
28
  props: {
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 ApplyColor = {
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
 
@@ -88,5 +92,5 @@ var ApplyColor = {
88
92
  }
89
93
  }
90
94
  };
91
- var ApplyColorVue3 = ApplyColor;
92
- export { ApplyColor, ApplyColorVue3 };
95
+ var ApplyColor = ApplyColorVue2;
96
+ export { ApplyColor, ApplyColorVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -40,8 +39,8 @@ export interface CleanFormattingData {
40
39
  /**
41
40
  * @hidden
42
41
  */
43
- export interface CleanFormattingAll extends Vue, CleanFormattingMethods, CleanFormattingData, CleanFormattingComputed, CleanFormattingState {
42
+ export interface CleanFormattingAll extends Vue2type, CleanFormattingMethods, CleanFormattingData, CleanFormattingComputed, CleanFormattingState {
44
43
  }
45
- declare let CleanFormatting: ComponentOptions<CleanFormattingAll, DefaultData<CleanFormattingData>, DefaultMethods<CleanFormattingAll>, CleanFormattingComputed, RecordPropsDefinition<CleanFormattingProps>>;
46
- declare const CleanFormattingVue3: DefineComponent<CleanFormattingProps, any, CleanFormattingData, CleanFormattingComputed, CleanFormattingMethods, {}, {}, {}, string, CleanFormattingProps, CleanFormattingProps, {}>;
47
- export { CleanFormatting, CleanFormattingVue3 };
44
+ declare let CleanFormattingVue2: ComponentOptions<CleanFormattingAll, DefaultData<CleanFormattingData>, DefaultMethods<CleanFormattingAll>, CleanFormattingComputed, RecordPropsDefinition<CleanFormattingProps>>;
45
+ declare const CleanFormatting: DefineComponent<CleanFormattingProps, any, CleanFormattingData, CleanFormattingComputed, CleanFormattingMethods, {}, {}, {}, string, CleanFormattingProps, CleanFormattingProps, {}>;
46
+ export { CleanFormatting, CleanFormattingVue2 };
@@ -39,7 +39,7 @@ import { EditorToolsSettings } from './../config/toolsSettings';
39
39
  var cleanFormatting = EditorToolsSettings.cleanFormatting;
40
40
  var command = cleanFormattingCmd(); // tslint:enable:max-line-length
41
41
 
42
- var CleanFormatting = {
42
+ var CleanFormattingVue2 = {
43
43
  name: 'KendoCleanFormatting',
44
44
  props: __assign({
45
45
  view: Object,
@@ -75,10 +75,10 @@ var CleanFormatting = {
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,
@@ -110,5 +110,5 @@ var CleanFormatting = {
110
110
  }
111
111
  }
112
112
  };
113
- var CleanFormattingVue3 = CleanFormatting;
114
- export { CleanFormatting, CleanFormattingVue3 };
113
+ var CleanFormatting = CleanFormattingVue2;
114
+ export { CleanFormatting, CleanFormattingVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -34,8 +33,8 @@ export interface FindAndReplaceData {
34
33
  /**
35
34
  * @hidden
36
35
  */
37
- export interface FindAndReplaceAll extends Vue, FindAndReplaceMethods, FindAndReplaceData, FindAndReplaceComputed, FindAndReplaceState {
36
+ export interface FindAndReplaceAll extends Vue2type, FindAndReplaceMethods, FindAndReplaceData, FindAndReplaceComputed, FindAndReplaceState {
38
37
  }
39
- declare let FindAndReplace: ComponentOptions<FindAndReplaceAll, DefaultData<FindAndReplaceData>, DefaultMethods<FindAndReplaceAll>, FindAndReplaceComputed, RecordPropsDefinition<FindAndReplaceProps>>;
40
- declare const FindAndReplaceVue3: DefineComponent<FindAndReplaceProps, any, FindAndReplaceData, FindAndReplaceComputed, FindAndReplaceMethods, {}, {}, {}, string, FindAndReplaceProps, FindAndReplaceProps, {}>;
41
- export { FindAndReplace, FindAndReplaceVue3 };
38
+ declare let FindAndReplaceVue2: ComponentOptions<FindAndReplaceAll, DefaultData<FindAndReplaceData>, DefaultMethods<FindAndReplaceAll>, FindAndReplaceComputed, RecordPropsDefinition<FindAndReplaceProps>>;
39
+ declare const FindAndReplace: DefineComponent<FindAndReplaceProps, any, FindAndReplaceData, FindAndReplaceComputed, FindAndReplaceMethods, {}, {}, {}, string, FindAndReplaceProps, FindAndReplaceProps, {}>;
40
+ export { FindAndReplace, FindAndReplaceVue2 };
@@ -38,7 +38,7 @@ import { EditorToolsSettings } from './../config/toolsSettings';
38
38
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
39
39
  var settings = EditorToolsSettings.findAndReplace; // tslint:enable:max-line-length
40
40
 
41
- var FindAndReplace = {
41
+ var FindAndReplaceVue2 = {
42
42
  name: 'KendoFindAndReplace',
43
43
  props: __assign({
44
44
  view: Object
@@ -71,11 +71,11 @@ var FindAndReplace = {
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 FindAndReplace = {
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
  },
@@ -115,5 +115,5 @@ var FindAndReplace = {
115
115
  }
116
116
  }
117
117
  };
118
- var FindAndReplaceVue3 = FindAndReplace;
119
- export { FindAndReplace, FindAndReplaceVue3 };
118
+ var FindAndReplace = FindAndReplaceVue2;
119
+ export { FindAndReplace, FindAndReplaceVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -46,8 +45,8 @@ export interface FontNameData {
46
45
  /**
47
46
  * @hidden
48
47
  */
49
- export interface FontNameAll extends Vue, FontNameMethods, FontNameData, FontNameComputed, FontNameState {
48
+ export interface FontNameAll extends Vue2type, FontNameMethods, FontNameData, FontNameComputed, FontNameState {
50
49
  }
51
- declare let FontName: ComponentOptions<FontNameAll, DefaultData<FontNameData>, DefaultMethods<FontNameAll>, FontNameComputed, RecordPropsDefinition<FontNameProps>>;
52
- declare const FontNameVue3: DefineComponent<FontNameProps, any, FontNameData, FontNameComputed, FontNameMethods, {}, {}, {}, string, FontNameProps, FontNameProps, {}>;
53
- export { FontName, FontNameVue3 };
50
+ declare let FontNameVue2: ComponentOptions<FontNameAll, DefaultData<FontNameData>, DefaultMethods<FontNameAll>, FontNameComputed, RecordPropsDefinition<FontNameProps>>;
51
+ declare const FontName: DefineComponent<FontNameProps, any, FontNameData, FontNameComputed, FontNameMethods, {}, {}, {}, string, FontNameProps, FontNameProps, {}>;
52
+ export { FontName, FontNameVue2 };
@@ -51,7 +51,7 @@ import { userSelectNone } from './utils';
51
51
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
52
52
  import { messages } from './../messages'; // tslint:enable:max-line-length
53
53
 
54
- var FontName = {
54
+ var FontNameVue2 = {
55
55
  name: 'KendoFontName',
56
56
  props: __assign({
57
57
  view: Object,
@@ -104,7 +104,7 @@ var FontName = {
104
104
 
105
105
  var value = new Set(styles).size === 1 ? styles[0] : null;
106
106
 
107
- var ddlProps = __assign(__assign(__assign({}, other), settings.props), {
107
+ var ddlProps = __assign(__assign(__assign({}, other), {
108
108
  value: value ? items.find(function (i) {
109
109
  return i.value === value;
110
110
  }) : value,
@@ -114,7 +114,7 @@ var FontName = {
114
114
  textField: 'text',
115
115
  dataItemKey: 'value',
116
116
  leftRightKeysNavigation: false
117
- });
117
+ }), settings.props);
118
118
 
119
119
  var dropdown = h(DropDownList, __assign({
120
120
  onChange: this.onChange,
@@ -159,5 +159,5 @@ var FontName = {
159
159
  }
160
160
  }
161
161
  };
162
- var FontNameVue3 = FontName;
163
- export { FontName, FontNameVue3 };
162
+ var FontName = FontNameVue2;
163
+ export { FontName, FontNameVue2 };