@progress/kendo-vue-editor 5.3.0-dev.202409130647 → 5.3.0-develop.1

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 (361) hide show
  1. package/Editor.js +8 -0
  2. package/Editor.mjs +584 -0
  3. package/README.md +25 -31
  4. package/config/defaultStyles.js +204 -0
  5. package/config/defaultStyles.mjs +209 -0
  6. package/config/schema.js +8 -0
  7. package/config/schema.mjs +44 -0
  8. package/config/shortcuts.js +8 -0
  9. package/config/shortcuts.mjs +41 -0
  10. package/config/toolsSettings.js +8 -0
  11. package/config/toolsSettings.mjs +558 -0
  12. package/dialogs/FindReplace.js +8 -0
  13. package/dialogs/FindReplace.mjs +366 -0
  14. package/dialogs/insertImage.js +8 -0
  15. package/dialogs/insertImage.mjs +211 -0
  16. package/dialogs/insertLink.js +8 -0
  17. package/dialogs/insertLink.mjs +164 -0
  18. package/dialogs/viewHtml.js +8 -0
  19. package/dialogs/viewHtml.mjs +128 -0
  20. package/dist/cdn/js/kendo-vue-editor.js +8 -1
  21. package/index.d.mts +2936 -0
  22. package/index.d.ts +2936 -0
  23. package/index.js +8 -0
  24. package/index.mjs +207 -0
  25. package/messages/main.js +8 -0
  26. package/messages/main.mjs +182 -0
  27. package/package-metadata.js +8 -0
  28. package/package-metadata.mjs +18 -0
  29. package/package.json +23 -62
  30. package/tools/align.js +8 -0
  31. package/tools/align.mjs +69 -0
  32. package/tools/applyColor.js +8 -0
  33. package/tools/applyColor.mjs +71 -0
  34. package/tools/cleanFormatting.js +8 -0
  35. package/tools/cleanFormatting.mjs +65 -0
  36. package/tools/findReplace.js +8 -0
  37. package/tools/findReplace.mjs +67 -0
  38. package/tools/fontStyle.js +8 -0
  39. package/tools/fontStyle.mjs +104 -0
  40. package/tools/formatBlock.js +8 -0
  41. package/tools/formatBlock.mjs +96 -0
  42. package/tools/indent.js +8 -0
  43. package/tools/indent.mjs +63 -0
  44. package/tools/inlineFormat.js +8 -0
  45. package/tools/inlineFormat.mjs +80 -0
  46. package/tools/insertImage.js +8 -0
  47. package/tools/insertImage.mjs +77 -0
  48. package/tools/insertLink.js +8 -0
  49. package/tools/insertLink.mjs +76 -0
  50. package/tools/insertTable/popup.js +8 -0
  51. package/tools/insertTable/popup.mjs +105 -0
  52. package/tools/insertTable/popupGrid.js +8 -0
  53. package/tools/insertTable/popupGrid.mjs +83 -0
  54. package/tools/insertTable/tool.js +8 -0
  55. package/tools/insertTable/tool.mjs +98 -0
  56. package/tools/lists.js +8 -0
  57. package/tools/lists.mjs +77 -0
  58. package/tools/outdent.js +8 -0
  59. package/tools/outdent.mjs +75 -0
  60. package/tools/pdf.js +8 -0
  61. package/tools/pdf.mjs +63 -0
  62. package/tools/print.js +8 -0
  63. package/tools/print.mjs +58 -0
  64. package/tools/proseMirrorTool.js +8 -0
  65. package/tools/proseMirrorTool.mjs +61 -0
  66. package/tools/selectAll.js +8 -0
  67. package/tools/selectAll.mjs +56 -0
  68. package/tools/unlink.js +8 -0
  69. package/tools/unlink.mjs +64 -0
  70. package/tools/utils.js +8 -0
  71. package/tools/utils.mjs +18 -0
  72. package/tools/viewHtml.js +8 -0
  73. package/tools/viewHtml.mjs +72 -0
  74. package/utils/browser-detection.js +8 -0
  75. package/utils/browser-detection.mjs +11 -0
  76. package/utils/controlled-value.js +8 -0
  77. package/utils/controlled-value.mjs +18 -0
  78. package/utils/main.js +8 -0
  79. package/utils/main.mjs +162 -0
  80. package/utils/props-key.js +8 -0
  81. package/utils/props-key.mjs +12 -0
  82. package/dist/es/Editor.d.ts +0 -283
  83. package/dist/es/Editor.js +0 -812
  84. package/dist/es/EditorProps.d.ts +0 -194
  85. package/dist/es/EditorProps.js +0 -1
  86. package/dist/es/additionalTypes.ts +0 -21
  87. package/dist/es/config/defaultStyles.d.ts +0 -12
  88. package/dist/es/config/defaultStyles.js +0 -12
  89. package/dist/es/config/pasteSettings.d.ts +0 -6
  90. package/dist/es/config/pasteSettings.js +0 -1
  91. package/dist/es/config/schema.d.ts +0 -8
  92. package/dist/es/config/schema.js +0 -51
  93. package/dist/es/config/shortcuts.d.ts +0 -24
  94. package/dist/es/config/shortcuts.js +0 -61
  95. package/dist/es/config/toolsSettings.d.ts +0 -489
  96. package/dist/es/config/toolsSettings.js +0 -528
  97. package/dist/es/dialogs/EditorDialogProps.d.ts +0 -23
  98. package/dist/es/dialogs/EditorDialogProps.js +0 -1
  99. package/dist/es/dialogs/FindReplace.d.ts +0 -70
  100. package/dist/es/dialogs/FindReplace.js +0 -909
  101. package/dist/es/dialogs/insertImage.d.ts +0 -54
  102. package/dist/es/dialogs/insertImage.js +0 -1164
  103. package/dist/es/dialogs/insertLink.d.ts +0 -52
  104. package/dist/es/dialogs/insertLink.js +0 -826
  105. package/dist/es/dialogs/main.d.ts +0 -1
  106. package/dist/es/dialogs/main.js +0 -42
  107. package/dist/es/dialogs/viewHtml.d.ts +0 -51
  108. package/dist/es/dialogs/viewHtml.js +0 -201
  109. package/dist/es/main.d.ts +0 -192
  110. package/dist/es/main.js +0 -217
  111. package/dist/es/messages/main.d.ts +0 -172
  112. package/dist/es/messages/main.js +0 -503
  113. package/dist/es/package-metadata.d.ts +0 -5
  114. package/dist/es/package-metadata.js +0 -11
  115. package/dist/es/tools/ToolProps.d.ts +0 -35
  116. package/dist/es/tools/ToolProps.js +0 -1
  117. package/dist/es/tools/align.d.ts +0 -42
  118. package/dist/es/tools/align.js +0 -111
  119. package/dist/es/tools/applyColor.d.ts +0 -45
  120. package/dist/es/tools/applyColor.js +0 -100
  121. package/dist/es/tools/cleanFormatting.d.ts +0 -49
  122. package/dist/es/tools/cleanFormatting.js +0 -107
  123. package/dist/es/tools/findReplace.d.ts +0 -43
  124. package/dist/es/tools/findReplace.js +0 -115
  125. package/dist/es/tools/fontStyle.d.ts +0 -55
  126. package/dist/es/tools/fontStyle.js +0 -150
  127. package/dist/es/tools/formatBlock.d.ts +0 -45
  128. package/dist/es/tools/formatBlock.js +0 -145
  129. package/dist/es/tools/history.d.ts +0 -18
  130. package/dist/es/tools/history.js +0 -3
  131. package/dist/es/tools/indent.d.ts +0 -44
  132. package/dist/es/tools/indent.js +0 -121
  133. package/dist/es/tools/inlineFormat.d.ts +0 -74
  134. package/dist/es/tools/inlineFormat.js +0 -120
  135. package/dist/es/tools/insertImage.d.ts +0 -46
  136. package/dist/es/tools/insertImage.js +0 -126
  137. package/dist/es/tools/insertLink.d.ts +0 -46
  138. package/dist/es/tools/insertLink.js +0 -126
  139. package/dist/es/tools/insertTable/popup.d.ts +0 -80
  140. package/dist/es/tools/insertTable/popup.js +0 -177
  141. package/dist/es/tools/insertTable/popupGrid.d.ts +0 -51
  142. package/dist/es/tools/insertTable/popupGrid.js +0 -131
  143. package/dist/es/tools/insertTable/tool.d.ts +0 -53
  144. package/dist/es/tools/insertTable/tool.js +0 -157
  145. package/dist/es/tools/lists.d.ts +0 -48
  146. package/dist/es/tools/lists.js +0 -124
  147. package/dist/es/tools/main.d.ts +0 -95
  148. package/dist/es/tools/main.js +0 -1
  149. package/dist/es/tools/outdent.d.ts +0 -44
  150. package/dist/es/tools/outdent.js +0 -123
  151. package/dist/es/tools/pdf.d.ts +0 -58
  152. package/dist/es/tools/pdf.js +0 -100
  153. package/dist/es/tools/print.d.ts +0 -49
  154. package/dist/es/tools/print.js +0 -103
  155. package/dist/es/tools/proseMirrorTool.d.ts +0 -48
  156. package/dist/es/tools/proseMirrorTool.js +0 -104
  157. package/dist/es/tools/selectAll.d.ts +0 -49
  158. package/dist/es/tools/selectAll.js +0 -97
  159. package/dist/es/tools/tableEdit.d.ts +0 -51
  160. package/dist/es/tools/tableEdit.js +0 -34
  161. package/dist/es/tools/unlink.d.ts +0 -47
  162. package/dist/es/tools/unlink.js +0 -104
  163. package/dist/es/tools/utils.d.ts +0 -18
  164. package/dist/es/tools/utils.js +0 -31
  165. package/dist/es/tools/viewHtml.d.ts +0 -54
  166. package/dist/es/tools/viewHtml.js +0 -121
  167. package/dist/es/utils/browser-detection.d.ts +0 -4
  168. package/dist/es/utils/browser-detection.js +0 -5
  169. package/dist/es/utils/controlled-value.d.ts +0 -5
  170. package/dist/es/utils/controlled-value.js +0 -31
  171. package/dist/es/utils/main.d.ts +0 -357
  172. package/dist/es/utils/main.js +0 -422
  173. package/dist/es/utils/props-key.d.ts +0 -5
  174. package/dist/es/utils/props-key.js +0 -5
  175. package/dist/esm/Editor.d.ts +0 -283
  176. package/dist/esm/Editor.js +0 -812
  177. package/dist/esm/EditorProps.d.ts +0 -194
  178. package/dist/esm/EditorProps.js +0 -1
  179. package/dist/esm/additionalTypes.ts +0 -21
  180. package/dist/esm/config/defaultStyles.d.ts +0 -12
  181. package/dist/esm/config/defaultStyles.js +0 -12
  182. package/dist/esm/config/pasteSettings.d.ts +0 -6
  183. package/dist/esm/config/pasteSettings.js +0 -1
  184. package/dist/esm/config/schema.d.ts +0 -8
  185. package/dist/esm/config/schema.js +0 -51
  186. package/dist/esm/config/shortcuts.d.ts +0 -24
  187. package/dist/esm/config/shortcuts.js +0 -61
  188. package/dist/esm/config/toolsSettings.d.ts +0 -489
  189. package/dist/esm/config/toolsSettings.js +0 -528
  190. package/dist/esm/dialogs/EditorDialogProps.d.ts +0 -23
  191. package/dist/esm/dialogs/EditorDialogProps.js +0 -1
  192. package/dist/esm/dialogs/FindReplace.d.ts +0 -70
  193. package/dist/esm/dialogs/FindReplace.js +0 -909
  194. package/dist/esm/dialogs/insertImage.d.ts +0 -54
  195. package/dist/esm/dialogs/insertImage.js +0 -1164
  196. package/dist/esm/dialogs/insertLink.d.ts +0 -52
  197. package/dist/esm/dialogs/insertLink.js +0 -826
  198. package/dist/esm/dialogs/main.d.ts +0 -1
  199. package/dist/esm/dialogs/main.js +0 -42
  200. package/dist/esm/dialogs/viewHtml.d.ts +0 -51
  201. package/dist/esm/dialogs/viewHtml.js +0 -201
  202. package/dist/esm/main.d.ts +0 -192
  203. package/dist/esm/main.js +0 -217
  204. package/dist/esm/messages/main.d.ts +0 -172
  205. package/dist/esm/messages/main.js +0 -503
  206. package/dist/esm/package-metadata.d.ts +0 -5
  207. package/dist/esm/package-metadata.js +0 -11
  208. package/dist/esm/package.json +0 -3
  209. package/dist/esm/tools/ToolProps.d.ts +0 -35
  210. package/dist/esm/tools/ToolProps.js +0 -1
  211. package/dist/esm/tools/align.d.ts +0 -42
  212. package/dist/esm/tools/align.js +0 -111
  213. package/dist/esm/tools/applyColor.d.ts +0 -45
  214. package/dist/esm/tools/applyColor.js +0 -100
  215. package/dist/esm/tools/cleanFormatting.d.ts +0 -49
  216. package/dist/esm/tools/cleanFormatting.js +0 -107
  217. package/dist/esm/tools/findReplace.d.ts +0 -43
  218. package/dist/esm/tools/findReplace.js +0 -115
  219. package/dist/esm/tools/fontStyle.d.ts +0 -55
  220. package/dist/esm/tools/fontStyle.js +0 -150
  221. package/dist/esm/tools/formatBlock.d.ts +0 -45
  222. package/dist/esm/tools/formatBlock.js +0 -145
  223. package/dist/esm/tools/history.d.ts +0 -18
  224. package/dist/esm/tools/history.js +0 -3
  225. package/dist/esm/tools/indent.d.ts +0 -44
  226. package/dist/esm/tools/indent.js +0 -121
  227. package/dist/esm/tools/inlineFormat.d.ts +0 -74
  228. package/dist/esm/tools/inlineFormat.js +0 -120
  229. package/dist/esm/tools/insertImage.d.ts +0 -46
  230. package/dist/esm/tools/insertImage.js +0 -126
  231. package/dist/esm/tools/insertLink.d.ts +0 -46
  232. package/dist/esm/tools/insertLink.js +0 -126
  233. package/dist/esm/tools/insertTable/popup.d.ts +0 -80
  234. package/dist/esm/tools/insertTable/popup.js +0 -177
  235. package/dist/esm/tools/insertTable/popupGrid.d.ts +0 -51
  236. package/dist/esm/tools/insertTable/popupGrid.js +0 -131
  237. package/dist/esm/tools/insertTable/tool.d.ts +0 -53
  238. package/dist/esm/tools/insertTable/tool.js +0 -157
  239. package/dist/esm/tools/lists.d.ts +0 -48
  240. package/dist/esm/tools/lists.js +0 -124
  241. package/dist/esm/tools/main.d.ts +0 -95
  242. package/dist/esm/tools/main.js +0 -1
  243. package/dist/esm/tools/outdent.d.ts +0 -44
  244. package/dist/esm/tools/outdent.js +0 -123
  245. package/dist/esm/tools/pdf.d.ts +0 -58
  246. package/dist/esm/tools/pdf.js +0 -100
  247. package/dist/esm/tools/print.d.ts +0 -49
  248. package/dist/esm/tools/print.js +0 -103
  249. package/dist/esm/tools/proseMirrorTool.d.ts +0 -48
  250. package/dist/esm/tools/proseMirrorTool.js +0 -104
  251. package/dist/esm/tools/selectAll.d.ts +0 -49
  252. package/dist/esm/tools/selectAll.js +0 -97
  253. package/dist/esm/tools/tableEdit.d.ts +0 -51
  254. package/dist/esm/tools/tableEdit.js +0 -34
  255. package/dist/esm/tools/unlink.d.ts +0 -47
  256. package/dist/esm/tools/unlink.js +0 -104
  257. package/dist/esm/tools/utils.d.ts +0 -18
  258. package/dist/esm/tools/utils.js +0 -31
  259. package/dist/esm/tools/viewHtml.d.ts +0 -54
  260. package/dist/esm/tools/viewHtml.js +0 -121
  261. package/dist/esm/utils/browser-detection.d.ts +0 -4
  262. package/dist/esm/utils/browser-detection.js +0 -5
  263. package/dist/esm/utils/controlled-value.d.ts +0 -5
  264. package/dist/esm/utils/controlled-value.js +0 -31
  265. package/dist/esm/utils/main.d.ts +0 -357
  266. package/dist/esm/utils/main.js +0 -422
  267. package/dist/esm/utils/props-key.d.ts +0 -5
  268. package/dist/esm/utils/props-key.js +0 -5
  269. package/dist/npm/Editor.d.ts +0 -283
  270. package/dist/npm/Editor.js +0 -819
  271. package/dist/npm/EditorProps.d.ts +0 -194
  272. package/dist/npm/EditorProps.js +0 -2
  273. package/dist/npm/additionalTypes.ts +0 -21
  274. package/dist/npm/config/defaultStyles.d.ts +0 -12
  275. package/dist/npm/config/defaultStyles.js +0 -15
  276. package/dist/npm/config/pasteSettings.d.ts +0 -6
  277. package/dist/npm/config/pasteSettings.js +0 -2
  278. package/dist/npm/config/schema.d.ts +0 -8
  279. package/dist/npm/config/schema.js +0 -55
  280. package/dist/npm/config/shortcuts.d.ts +0 -24
  281. package/dist/npm/config/shortcuts.js +0 -68
  282. package/dist/npm/config/toolsSettings.d.ts +0 -489
  283. package/dist/npm/config/toolsSettings.js +0 -531
  284. package/dist/npm/dialogs/EditorDialogProps.d.ts +0 -23
  285. package/dist/npm/dialogs/EditorDialogProps.js +0 -2
  286. package/dist/npm/dialogs/FindReplace.d.ts +0 -70
  287. package/dist/npm/dialogs/FindReplace.js +0 -916
  288. package/dist/npm/dialogs/insertImage.d.ts +0 -54
  289. package/dist/npm/dialogs/insertImage.js +0 -1171
  290. package/dist/npm/dialogs/insertLink.d.ts +0 -52
  291. package/dist/npm/dialogs/insertLink.js +0 -833
  292. package/dist/npm/dialogs/main.d.ts +0 -1
  293. package/dist/npm/dialogs/main.js +0 -42
  294. package/dist/npm/dialogs/viewHtml.d.ts +0 -51
  295. package/dist/npm/dialogs/viewHtml.js +0 -208
  296. package/dist/npm/main.d.ts +0 -192
  297. package/dist/npm/main.js +0 -217
  298. package/dist/npm/messages/main.d.ts +0 -172
  299. package/dist/npm/messages/main.js +0 -506
  300. package/dist/npm/package-metadata.d.ts +0 -5
  301. package/dist/npm/package-metadata.js +0 -14
  302. package/dist/npm/tools/ToolProps.d.ts +0 -35
  303. package/dist/npm/tools/ToolProps.js +0 -2
  304. package/dist/npm/tools/align.d.ts +0 -42
  305. package/dist/npm/tools/align.js +0 -118
  306. package/dist/npm/tools/applyColor.d.ts +0 -45
  307. package/dist/npm/tools/applyColor.js +0 -107
  308. package/dist/npm/tools/cleanFormatting.d.ts +0 -49
  309. package/dist/npm/tools/cleanFormatting.js +0 -114
  310. package/dist/npm/tools/findReplace.d.ts +0 -43
  311. package/dist/npm/tools/findReplace.js +0 -122
  312. package/dist/npm/tools/fontStyle.d.ts +0 -55
  313. package/dist/npm/tools/fontStyle.js +0 -157
  314. package/dist/npm/tools/formatBlock.d.ts +0 -45
  315. package/dist/npm/tools/formatBlock.js +0 -152
  316. package/dist/npm/tools/history.d.ts +0 -18
  317. package/dist/npm/tools/history.js +0 -8
  318. package/dist/npm/tools/indent.d.ts +0 -44
  319. package/dist/npm/tools/indent.js +0 -128
  320. package/dist/npm/tools/inlineFormat.d.ts +0 -74
  321. package/dist/npm/tools/inlineFormat.js +0 -127
  322. package/dist/npm/tools/insertImage.d.ts +0 -46
  323. package/dist/npm/tools/insertImage.js +0 -133
  324. package/dist/npm/tools/insertLink.d.ts +0 -46
  325. package/dist/npm/tools/insertLink.js +0 -133
  326. package/dist/npm/tools/insertTable/popup.d.ts +0 -80
  327. package/dist/npm/tools/insertTable/popup.js +0 -184
  328. package/dist/npm/tools/insertTable/popupGrid.d.ts +0 -51
  329. package/dist/npm/tools/insertTable/popupGrid.js +0 -138
  330. package/dist/npm/tools/insertTable/tool.d.ts +0 -53
  331. package/dist/npm/tools/insertTable/tool.js +0 -164
  332. package/dist/npm/tools/lists.d.ts +0 -48
  333. package/dist/npm/tools/lists.js +0 -131
  334. package/dist/npm/tools/main.d.ts +0 -95
  335. package/dist/npm/tools/main.js +0 -5
  336. package/dist/npm/tools/outdent.d.ts +0 -44
  337. package/dist/npm/tools/outdent.js +0 -130
  338. package/dist/npm/tools/pdf.d.ts +0 -58
  339. package/dist/npm/tools/pdf.js +0 -107
  340. package/dist/npm/tools/print.d.ts +0 -49
  341. package/dist/npm/tools/print.js +0 -110
  342. package/dist/npm/tools/proseMirrorTool.d.ts +0 -48
  343. package/dist/npm/tools/proseMirrorTool.js +0 -111
  344. package/dist/npm/tools/selectAll.d.ts +0 -49
  345. package/dist/npm/tools/selectAll.js +0 -104
  346. package/dist/npm/tools/tableEdit.d.ts +0 -51
  347. package/dist/npm/tools/tableEdit.js +0 -39
  348. package/dist/npm/tools/unlink.d.ts +0 -47
  349. package/dist/npm/tools/unlink.js +0 -111
  350. package/dist/npm/tools/utils.d.ts +0 -18
  351. package/dist/npm/tools/utils.js +0 -39
  352. package/dist/npm/tools/viewHtml.d.ts +0 -54
  353. package/dist/npm/tools/viewHtml.js +0 -128
  354. package/dist/npm/utils/browser-detection.d.ts +0 -4
  355. package/dist/npm/utils/browser-detection.js +0 -8
  356. package/dist/npm/utils/controlled-value.d.ts +0 -5
  357. package/dist/npm/utils/controlled-value.js +0 -35
  358. package/dist/npm/utils/main.d.ts +0 -357
  359. package/dist/npm/utils/main.js +0 -425
  360. package/dist/npm/utils/props-key.d.ts +0 -5
  361. package/dist/npm/utils/props-key.js +0 -8
@@ -1,1171 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.InsertImageDialogVue2 = exports.InsertImageDialog = void 0;
7
- // @ts-ignore
8
- var Vue = require("vue");
9
- var allVue = Vue;
10
- var gh = allVue.h;
11
- var isV3 = allVue.version && allVue.version[0] === '3';
12
- var kendo_vue_dialogs_1 = require("@progress/kendo-vue-dialogs");
13
- var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
- var kendo_editor_common_1 = require("@progress/kendo-editor-common");
15
- var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
16
- var main_1 = require("../messages/main");
17
- var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
- var kendo_vue_form_1 = require("@progress/kendo-vue-form");
19
- var kendo_vue_inputs_1 = require("@progress/kendo-vue-inputs");
20
- /**
21
- * @hidden
22
- */
23
- var InsertImageDialogVue2 = {
24
- name: 'KendoInsertImageDialog',
25
- // @ts-ignore
26
- emits: {
27
- close: null
28
- },
29
- props: {
30
- view: Object,
31
- settings: Object,
32
- dir: String
33
- },
34
- inject: {
35
- kendoLocalizationService: {
36
- default: null
37
- }
38
- },
39
- data: function data() {
40
- var _a = this.$props,
41
- view = _a.view,
42
- settings = _a.settings;
43
- var state = view && view.state;
44
- var attrs = {};
45
- if (state && state.selection instanceof kendo_editor_common_1.NodeSelection && state.selection.node.type === state.schema.nodes[settings.node]) {
46
- attrs = state.selection.node.attrs;
47
- }
48
- return {
49
- srcValue: attrs.src,
50
- altValue: attrs.alt,
51
- titleValue: attrs.title,
52
- widthValue: attrs.width,
53
- heightValue: attrs.height
54
- };
55
- },
56
- mounted: function mounted() {
57
- this.src = (0, kendo_vue_common_1.getRef)(this, 'src');
58
- this.altText = (0, kendo_vue_common_1.getRef)(this, 'altText');
59
- this.title = (0, kendo_vue_common_1.getRef)(this, 'title');
60
- this.width = (0, kendo_vue_common_1.getRef)(this, 'width');
61
- this.height = (0, kendo_vue_common_1.getRef)(this, 'height');
62
- if (this.src) {
63
- this.src.focus();
64
- }
65
- },
66
- // @ts-ignore
67
- setup: !isV3 ? undefined : function () {
68
- var v3 = !!isV3;
69
- return {
70
- v3: v3
71
- };
72
- },
73
- // @ts-ignore
74
- render: function render(createElement) {
75
- var _this = this;
76
- var h = gh || createElement;
77
- var _a = this.$props,
78
- view = _a.view,
79
- settings = _a.settings,
80
- dir = _a.dir;
81
- var _b = settings.messages,
82
- insertImageDialogTitle = _b.insertImageDialogTitle,
83
- insertImageAddress = _b.insertImageAddress,
84
- insertImageTitle = _b.insertImageTitle,
85
- insertImageAltText = _b.insertImageAltText,
86
- insertImageWidth = _b.insertImageWidth,
87
- insertImageHeight = _b.insertImageHeight,
88
- insertImageCancel = _b.insertImageCancel,
89
- insertImageInsert = _b.insertImageInsert;
90
- var localization = (0, kendo_vue_intl_1.provideLocalizationService)(this);
91
- var state = view && view.state;
92
- var attrs = {};
93
- if (state && state.selection instanceof kendo_editor_common_1.NodeSelection && state.selection.node.type === state.schema.nodes[settings.node]) {
94
- attrs = state.selection.node.attrs;
95
- }
96
- var content =
97
- // @ts-ignore function children
98
- h(kendo_vue_form_1.Form, this.v3 ? function () {
99
- return [
100
- // @ts-ignore function children
101
- h(kendo_vue_form_1.FormElement, {
102
- horizontal: true,
103
- attrs: _this.v3 ? undefined : {
104
- horizontal: true
105
- }
106
- }, _this.v3 ? function () {
107
- return [
108
- // @ts-ignore function children
109
- h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
110
- return [h("label", {
111
- "for": 'k-editor-image-url',
112
- attrs: _this.v3 ? undefined : {
113
- "for": 'k-editor-image-url'
114
- },
115
- "class": 'k-form-label'
116
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
117
- "class": 'k-form-field-wrap'
118
- }, [h(kendo_vue_inputs_1.Input, {
119
- type: "text",
120
- attrs: _this.v3 ? undefined : {
121
- type: "text",
122
- id: 'k-editor-image-url',
123
- value: _this.srcValue
124
- },
125
- id: 'k-editor-image-url',
126
- value: _this.srcValue,
127
- onInput: _this.handleSrcInput,
128
- on: _this.v3 ? undefined : {
129
- "input": _this.handleSrcInput
130
- },
131
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
132
- })])];
133
- } : [h("label", {
134
- "for": 'k-editor-image-url',
135
- attrs: _this.v3 ? undefined : {
136
- "for": 'k-editor-image-url'
137
- },
138
- "class": 'k-form-label'
139
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
140
- "class": 'k-form-field-wrap'
141
- }, [h(kendo_vue_inputs_1.Input, {
142
- type: "text",
143
- attrs: _this.v3 ? undefined : {
144
- type: "text",
145
- id: 'k-editor-image-url',
146
- value: _this.srcValue
147
- },
148
- id: 'k-editor-image-url',
149
- value: _this.srcValue,
150
- onInput: _this.handleSrcInput,
151
- on: _this.v3 ? undefined : {
152
- "input": _this.handleSrcInput
153
- },
154
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
155
- })])]),
156
- // @ts-ignore function children
157
- h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
158
- return [h("label", {
159
- "for": 'k-editor-image-url',
160
- attrs: _this.v3 ? undefined : {
161
- "for": 'k-editor-image-url'
162
- },
163
- "class": 'k-form-label'
164
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
165
- "class": 'k-form-field-wrap'
166
- }, [h(kendo_vue_inputs_1.Input, {
167
- type: 'text',
168
- attrs: _this.v3 ? undefined : {
169
- type: 'text',
170
- id: "k-editor-image-alt",
171
- value: _this.altValue
172
- },
173
- id: "k-editor-image-alt",
174
- value: _this.altValue,
175
- onInput: _this.handleAltInput,
176
- on: _this.v3 ? undefined : {
177
- "input": _this.handleAltInput
178
- },
179
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
180
- })])];
181
- } : [h("label", {
182
- "for": 'k-editor-image-url',
183
- attrs: _this.v3 ? undefined : {
184
- "for": 'k-editor-image-url'
185
- },
186
- "class": 'k-form-label'
187
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
188
- "class": 'k-form-field-wrap'
189
- }, [h(kendo_vue_inputs_1.Input, {
190
- type: 'text',
191
- attrs: _this.v3 ? undefined : {
192
- type: 'text',
193
- id: "k-editor-image-alt",
194
- value: _this.altValue
195
- },
196
- id: "k-editor-image-alt",
197
- value: _this.altValue,
198
- onInput: _this.handleAltInput,
199
- on: _this.v3 ? undefined : {
200
- "input": _this.handleAltInput
201
- },
202
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
203
- })])]),
204
- // @ts-ignore function children
205
- h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
206
- return [h("label", {
207
- htmlFor: 'k-editor-image-title',
208
- attrs: _this.v3 ? undefined : {
209
- htmlFor: 'k-editor-image-title'
210
- },
211
- "class": 'k-form-label'
212
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
213
- "class": 'k-form-field-wrap'
214
- }, [h(kendo_vue_inputs_1.Input, {
215
- type: 'text',
216
- attrs: _this.v3 ? undefined : {
217
- type: 'text',
218
- id: "k-editor-image-title",
219
- value: _this.titleValue
220
- },
221
- id: "k-editor-image-title",
222
- value: _this.titleValue,
223
- onInput: _this.handleTitleInput,
224
- on: _this.v3 ? undefined : {
225
- "input": _this.handleTitleInput
226
- },
227
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
228
- })])];
229
- } : [h("label", {
230
- htmlFor: 'k-editor-image-title',
231
- attrs: _this.v3 ? undefined : {
232
- htmlFor: 'k-editor-image-title'
233
- },
234
- "class": 'k-form-label'
235
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
236
- "class": 'k-form-field-wrap'
237
- }, [h(kendo_vue_inputs_1.Input, {
238
- type: 'text',
239
- attrs: _this.v3 ? undefined : {
240
- type: 'text',
241
- id: "k-editor-image-title",
242
- value: _this.titleValue
243
- },
244
- id: "k-editor-image-title",
245
- value: _this.titleValue,
246
- onInput: _this.handleTitleInput,
247
- on: _this.v3 ? undefined : {
248
- "input": _this.handleTitleInput
249
- },
250
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
251
- })])]),
252
- // @ts-ignore function children
253
- h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
254
- return [h("label", {
255
- "for": 'k-editor-image-width',
256
- attrs: _this.v3 ? undefined : {
257
- "for": 'k-editor-image-width'
258
- },
259
- "class": 'k-form-label'
260
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
261
- "class": 'k-form-field-wrap'
262
- }, [h(kendo_vue_inputs_1.Input, {
263
- type: 'text',
264
- attrs: _this.v3 ? undefined : {
265
- type: 'text',
266
- id: "k-editor-image-width",
267
- value: _this.widthValue
268
- },
269
- id: "k-editor-image-width",
270
- value: _this.widthValue,
271
- onInput: _this.handleWidthInput,
272
- on: _this.v3 ? undefined : {
273
- "input": _this.handleWidthInput
274
- },
275
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
276
- })])];
277
- } : [h("label", {
278
- "for": 'k-editor-image-width',
279
- attrs: _this.v3 ? undefined : {
280
- "for": 'k-editor-image-width'
281
- },
282
- "class": 'k-form-label'
283
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
284
- "class": 'k-form-field-wrap'
285
- }, [h(kendo_vue_inputs_1.Input, {
286
- type: 'text',
287
- attrs: _this.v3 ? undefined : {
288
- type: 'text',
289
- id: "k-editor-image-width",
290
- value: _this.widthValue
291
- },
292
- id: "k-editor-image-width",
293
- value: _this.widthValue,
294
- onInput: _this.handleWidthInput,
295
- on: _this.v3 ? undefined : {
296
- "input": _this.handleWidthInput
297
- },
298
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
299
- })])]),
300
- // @ts-ignore function children
301
- h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
302
- return [h("label", {
303
- htmlFor: 'k-editor-image-height',
304
- attrs: _this.v3 ? undefined : {
305
- htmlFor: 'k-editor-image-height'
306
- },
307
- "class": 'k-form-label'
308
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
309
- "class": 'k-form-field-wrap'
310
- }, [h(kendo_vue_inputs_1.Input, {
311
- id: "k-editor-image-height",
312
- attrs: _this.v3 ? undefined : {
313
- id: "k-editor-image-height",
314
- value: _this.heightValue
315
- },
316
- value: _this.heightValue,
317
- onInput: _this.handleHeightInput,
318
- on: _this.v3 ? undefined : {
319
- "input": _this.handleHeightInput
320
- },
321
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
322
- })])];
323
- } : [h("label", {
324
- htmlFor: 'k-editor-image-height',
325
- attrs: _this.v3 ? undefined : {
326
- htmlFor: 'k-editor-image-height'
327
- },
328
- "class": 'k-form-label'
329
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
330
- "class": 'k-form-field-wrap'
331
- }, [h(kendo_vue_inputs_1.Input, {
332
- id: "k-editor-image-height",
333
- attrs: _this.v3 ? undefined : {
334
- id: "k-editor-image-height",
335
- value: _this.heightValue
336
- },
337
- value: _this.heightValue,
338
- onInput: _this.handleHeightInput,
339
- on: _this.v3 ? undefined : {
340
- "input": _this.handleHeightInput
341
- },
342
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
343
- })])])];
344
- } : [h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
345
- return [h("label", {
346
- "for": 'k-editor-image-url',
347
- attrs: _this.v3 ? undefined : {
348
- "for": 'k-editor-image-url'
349
- },
350
- "class": 'k-form-label'
351
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
352
- "class": 'k-form-field-wrap'
353
- }, [h(kendo_vue_inputs_1.Input, {
354
- type: "text",
355
- attrs: _this.v3 ? undefined : {
356
- type: "text",
357
- id: 'k-editor-image-url',
358
- value: _this.srcValue
359
- },
360
- id: 'k-editor-image-url',
361
- value: _this.srcValue,
362
- onInput: _this.handleSrcInput,
363
- on: _this.v3 ? undefined : {
364
- "input": _this.handleSrcInput
365
- },
366
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
367
- })])];
368
- } : [h("label", {
369
- "for": 'k-editor-image-url',
370
- attrs: _this.v3 ? undefined : {
371
- "for": 'k-editor-image-url'
372
- },
373
- "class": 'k-form-label'
374
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
375
- "class": 'k-form-field-wrap'
376
- }, [h(kendo_vue_inputs_1.Input, {
377
- type: "text",
378
- attrs: _this.v3 ? undefined : {
379
- type: "text",
380
- id: 'k-editor-image-url',
381
- value: _this.srcValue
382
- },
383
- id: 'k-editor-image-url',
384
- value: _this.srcValue,
385
- onInput: _this.handleSrcInput,
386
- on: _this.v3 ? undefined : {
387
- "input": _this.handleSrcInput
388
- },
389
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
390
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
391
- return [h("label", {
392
- "for": 'k-editor-image-url',
393
- attrs: _this.v3 ? undefined : {
394
- "for": 'k-editor-image-url'
395
- },
396
- "class": 'k-form-label'
397
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
398
- "class": 'k-form-field-wrap'
399
- }, [h(kendo_vue_inputs_1.Input, {
400
- type: 'text',
401
- attrs: _this.v3 ? undefined : {
402
- type: 'text',
403
- id: "k-editor-image-alt",
404
- value: _this.altValue
405
- },
406
- id: "k-editor-image-alt",
407
- value: _this.altValue,
408
- onInput: _this.handleAltInput,
409
- on: _this.v3 ? undefined : {
410
- "input": _this.handleAltInput
411
- },
412
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
413
- })])];
414
- } : [h("label", {
415
- "for": 'k-editor-image-url',
416
- attrs: _this.v3 ? undefined : {
417
- "for": 'k-editor-image-url'
418
- },
419
- "class": 'k-form-label'
420
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
421
- "class": 'k-form-field-wrap'
422
- }, [h(kendo_vue_inputs_1.Input, {
423
- type: 'text',
424
- attrs: _this.v3 ? undefined : {
425
- type: 'text',
426
- id: "k-editor-image-alt",
427
- value: _this.altValue
428
- },
429
- id: "k-editor-image-alt",
430
- value: _this.altValue,
431
- onInput: _this.handleAltInput,
432
- on: _this.v3 ? undefined : {
433
- "input": _this.handleAltInput
434
- },
435
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
436
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
437
- return [h("label", {
438
- htmlFor: 'k-editor-image-title',
439
- attrs: _this.v3 ? undefined : {
440
- htmlFor: 'k-editor-image-title'
441
- },
442
- "class": 'k-form-label'
443
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
444
- "class": 'k-form-field-wrap'
445
- }, [h(kendo_vue_inputs_1.Input, {
446
- type: 'text',
447
- attrs: _this.v3 ? undefined : {
448
- type: 'text',
449
- id: "k-editor-image-title",
450
- value: _this.titleValue
451
- },
452
- id: "k-editor-image-title",
453
- value: _this.titleValue,
454
- onInput: _this.handleTitleInput,
455
- on: _this.v3 ? undefined : {
456
- "input": _this.handleTitleInput
457
- },
458
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
459
- })])];
460
- } : [h("label", {
461
- htmlFor: 'k-editor-image-title',
462
- attrs: _this.v3 ? undefined : {
463
- htmlFor: 'k-editor-image-title'
464
- },
465
- "class": 'k-form-label'
466
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
467
- "class": 'k-form-field-wrap'
468
- }, [h(kendo_vue_inputs_1.Input, {
469
- type: 'text',
470
- attrs: _this.v3 ? undefined : {
471
- type: 'text',
472
- id: "k-editor-image-title",
473
- value: _this.titleValue
474
- },
475
- id: "k-editor-image-title",
476
- value: _this.titleValue,
477
- onInput: _this.handleTitleInput,
478
- on: _this.v3 ? undefined : {
479
- "input": _this.handleTitleInput
480
- },
481
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
482
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
483
- return [h("label", {
484
- "for": 'k-editor-image-width',
485
- attrs: _this.v3 ? undefined : {
486
- "for": 'k-editor-image-width'
487
- },
488
- "class": 'k-form-label'
489
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
490
- "class": 'k-form-field-wrap'
491
- }, [h(kendo_vue_inputs_1.Input, {
492
- type: 'text',
493
- attrs: _this.v3 ? undefined : {
494
- type: 'text',
495
- id: "k-editor-image-width",
496
- value: _this.widthValue
497
- },
498
- id: "k-editor-image-width",
499
- value: _this.widthValue,
500
- onInput: _this.handleWidthInput,
501
- on: _this.v3 ? undefined : {
502
- "input": _this.handleWidthInput
503
- },
504
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
505
- })])];
506
- } : [h("label", {
507
- "for": 'k-editor-image-width',
508
- attrs: _this.v3 ? undefined : {
509
- "for": 'k-editor-image-width'
510
- },
511
- "class": 'k-form-label'
512
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
513
- "class": 'k-form-field-wrap'
514
- }, [h(kendo_vue_inputs_1.Input, {
515
- type: 'text',
516
- attrs: _this.v3 ? undefined : {
517
- type: 'text',
518
- id: "k-editor-image-width",
519
- value: _this.widthValue
520
- },
521
- id: "k-editor-image-width",
522
- value: _this.widthValue,
523
- onInput: _this.handleWidthInput,
524
- on: _this.v3 ? undefined : {
525
- "input": _this.handleWidthInput
526
- },
527
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
528
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
529
- return [h("label", {
530
- htmlFor: 'k-editor-image-height',
531
- attrs: _this.v3 ? undefined : {
532
- htmlFor: 'k-editor-image-height'
533
- },
534
- "class": 'k-form-label'
535
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
536
- "class": 'k-form-field-wrap'
537
- }, [h(kendo_vue_inputs_1.Input, {
538
- id: "k-editor-image-height",
539
- attrs: _this.v3 ? undefined : {
540
- id: "k-editor-image-height",
541
- value: _this.heightValue
542
- },
543
- value: _this.heightValue,
544
- onInput: _this.handleHeightInput,
545
- on: _this.v3 ? undefined : {
546
- "input": _this.handleHeightInput
547
- },
548
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
549
- })])];
550
- } : [h("label", {
551
- htmlFor: 'k-editor-image-height',
552
- attrs: _this.v3 ? undefined : {
553
- htmlFor: 'k-editor-image-height'
554
- },
555
- "class": 'k-form-label'
556
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
557
- "class": 'k-form-field-wrap'
558
- }, [h(kendo_vue_inputs_1.Input, {
559
- id: "k-editor-image-height",
560
- attrs: _this.v3 ? undefined : {
561
- id: "k-editor-image-height",
562
- value: _this.heightValue
563
- },
564
- value: _this.heightValue,
565
- onInput: _this.handleHeightInput,
566
- on: _this.v3 ? undefined : {
567
- "input": _this.handleHeightInput
568
- },
569
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
570
- })])])])];
571
- } : [h(kendo_vue_form_1.FormElement, {
572
- horizontal: true,
573
- attrs: _this.v3 ? undefined : {
574
- horizontal: true
575
- }
576
- }, _this.v3 ? function () {
577
- return [h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
578
- return [h("label", {
579
- "for": 'k-editor-image-url',
580
- attrs: _this.v3 ? undefined : {
581
- "for": 'k-editor-image-url'
582
- },
583
- "class": 'k-form-label'
584
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
585
- "class": 'k-form-field-wrap'
586
- }, [h(kendo_vue_inputs_1.Input, {
587
- type: "text",
588
- attrs: _this.v3 ? undefined : {
589
- type: "text",
590
- id: 'k-editor-image-url',
591
- value: _this.srcValue
592
- },
593
- id: 'k-editor-image-url',
594
- value: _this.srcValue,
595
- onInput: _this.handleSrcInput,
596
- on: _this.v3 ? undefined : {
597
- "input": _this.handleSrcInput
598
- },
599
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
600
- })])];
601
- } : [h("label", {
602
- "for": 'k-editor-image-url',
603
- attrs: _this.v3 ? undefined : {
604
- "for": 'k-editor-image-url'
605
- },
606
- "class": 'k-form-label'
607
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
608
- "class": 'k-form-field-wrap'
609
- }, [h(kendo_vue_inputs_1.Input, {
610
- type: "text",
611
- attrs: _this.v3 ? undefined : {
612
- type: "text",
613
- id: 'k-editor-image-url',
614
- value: _this.srcValue
615
- },
616
- id: 'k-editor-image-url',
617
- value: _this.srcValue,
618
- onInput: _this.handleSrcInput,
619
- on: _this.v3 ? undefined : {
620
- "input": _this.handleSrcInput
621
- },
622
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
623
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
624
- return [h("label", {
625
- "for": 'k-editor-image-url',
626
- attrs: _this.v3 ? undefined : {
627
- "for": 'k-editor-image-url'
628
- },
629
- "class": 'k-form-label'
630
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
631
- "class": 'k-form-field-wrap'
632
- }, [h(kendo_vue_inputs_1.Input, {
633
- type: 'text',
634
- attrs: _this.v3 ? undefined : {
635
- type: 'text',
636
- id: "k-editor-image-alt",
637
- value: _this.altValue
638
- },
639
- id: "k-editor-image-alt",
640
- value: _this.altValue,
641
- onInput: _this.handleAltInput,
642
- on: _this.v3 ? undefined : {
643
- "input": _this.handleAltInput
644
- },
645
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
646
- })])];
647
- } : [h("label", {
648
- "for": 'k-editor-image-url',
649
- attrs: _this.v3 ? undefined : {
650
- "for": 'k-editor-image-url'
651
- },
652
- "class": 'k-form-label'
653
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
654
- "class": 'k-form-field-wrap'
655
- }, [h(kendo_vue_inputs_1.Input, {
656
- type: 'text',
657
- attrs: _this.v3 ? undefined : {
658
- type: 'text',
659
- id: "k-editor-image-alt",
660
- value: _this.altValue
661
- },
662
- id: "k-editor-image-alt",
663
- value: _this.altValue,
664
- onInput: _this.handleAltInput,
665
- on: _this.v3 ? undefined : {
666
- "input": _this.handleAltInput
667
- },
668
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
669
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
670
- return [h("label", {
671
- htmlFor: 'k-editor-image-title',
672
- attrs: _this.v3 ? undefined : {
673
- htmlFor: 'k-editor-image-title'
674
- },
675
- "class": 'k-form-label'
676
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
677
- "class": 'k-form-field-wrap'
678
- }, [h(kendo_vue_inputs_1.Input, {
679
- type: 'text',
680
- attrs: _this.v3 ? undefined : {
681
- type: 'text',
682
- id: "k-editor-image-title",
683
- value: _this.titleValue
684
- },
685
- id: "k-editor-image-title",
686
- value: _this.titleValue,
687
- onInput: _this.handleTitleInput,
688
- on: _this.v3 ? undefined : {
689
- "input": _this.handleTitleInput
690
- },
691
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
692
- })])];
693
- } : [h("label", {
694
- htmlFor: 'k-editor-image-title',
695
- attrs: _this.v3 ? undefined : {
696
- htmlFor: 'k-editor-image-title'
697
- },
698
- "class": 'k-form-label'
699
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
700
- "class": 'k-form-field-wrap'
701
- }, [h(kendo_vue_inputs_1.Input, {
702
- type: 'text',
703
- attrs: _this.v3 ? undefined : {
704
- type: 'text',
705
- id: "k-editor-image-title",
706
- value: _this.titleValue
707
- },
708
- id: "k-editor-image-title",
709
- value: _this.titleValue,
710
- onInput: _this.handleTitleInput,
711
- on: _this.v3 ? undefined : {
712
- "input": _this.handleTitleInput
713
- },
714
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
715
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
716
- return [h("label", {
717
- "for": 'k-editor-image-width',
718
- attrs: _this.v3 ? undefined : {
719
- "for": 'k-editor-image-width'
720
- },
721
- "class": 'k-form-label'
722
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
723
- "class": 'k-form-field-wrap'
724
- }, [h(kendo_vue_inputs_1.Input, {
725
- type: 'text',
726
- attrs: _this.v3 ? undefined : {
727
- type: 'text',
728
- id: "k-editor-image-width",
729
- value: _this.widthValue
730
- },
731
- id: "k-editor-image-width",
732
- value: _this.widthValue,
733
- onInput: _this.handleWidthInput,
734
- on: _this.v3 ? undefined : {
735
- "input": _this.handleWidthInput
736
- },
737
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
738
- })])];
739
- } : [h("label", {
740
- "for": 'k-editor-image-width',
741
- attrs: _this.v3 ? undefined : {
742
- "for": 'k-editor-image-width'
743
- },
744
- "class": 'k-form-label'
745
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
746
- "class": 'k-form-field-wrap'
747
- }, [h(kendo_vue_inputs_1.Input, {
748
- type: 'text',
749
- attrs: _this.v3 ? undefined : {
750
- type: 'text',
751
- id: "k-editor-image-width",
752
- value: _this.widthValue
753
- },
754
- id: "k-editor-image-width",
755
- value: _this.widthValue,
756
- onInput: _this.handleWidthInput,
757
- on: _this.v3 ? undefined : {
758
- "input": _this.handleWidthInput
759
- },
760
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
761
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
762
- return [h("label", {
763
- htmlFor: 'k-editor-image-height',
764
- attrs: _this.v3 ? undefined : {
765
- htmlFor: 'k-editor-image-height'
766
- },
767
- "class": 'k-form-label'
768
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
769
- "class": 'k-form-field-wrap'
770
- }, [h(kendo_vue_inputs_1.Input, {
771
- id: "k-editor-image-height",
772
- attrs: _this.v3 ? undefined : {
773
- id: "k-editor-image-height",
774
- value: _this.heightValue
775
- },
776
- value: _this.heightValue,
777
- onInput: _this.handleHeightInput,
778
- on: _this.v3 ? undefined : {
779
- "input": _this.handleHeightInput
780
- },
781
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
782
- })])];
783
- } : [h("label", {
784
- htmlFor: 'k-editor-image-height',
785
- attrs: _this.v3 ? undefined : {
786
- htmlFor: 'k-editor-image-height'
787
- },
788
- "class": 'k-form-label'
789
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
790
- "class": 'k-form-field-wrap'
791
- }, [h(kendo_vue_inputs_1.Input, {
792
- id: "k-editor-image-height",
793
- attrs: _this.v3 ? undefined : {
794
- id: "k-editor-image-height",
795
- value: _this.heightValue
796
- },
797
- value: _this.heightValue,
798
- onInput: _this.handleHeightInput,
799
- on: _this.v3 ? undefined : {
800
- "input": _this.handleHeightInput
801
- },
802
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
803
- })])])];
804
- } : [h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
805
- return [h("label", {
806
- "for": 'k-editor-image-url',
807
- attrs: _this.v3 ? undefined : {
808
- "for": 'k-editor-image-url'
809
- },
810
- "class": 'k-form-label'
811
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
812
- "class": 'k-form-field-wrap'
813
- }, [h(kendo_vue_inputs_1.Input, {
814
- type: "text",
815
- attrs: _this.v3 ? undefined : {
816
- type: "text",
817
- id: 'k-editor-image-url',
818
- value: _this.srcValue
819
- },
820
- id: 'k-editor-image-url',
821
- value: _this.srcValue,
822
- onInput: _this.handleSrcInput,
823
- on: _this.v3 ? undefined : {
824
- "input": _this.handleSrcInput
825
- },
826
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
827
- })])];
828
- } : [h("label", {
829
- "for": 'k-editor-image-url',
830
- attrs: _this.v3 ? undefined : {
831
- "for": 'k-editor-image-url'
832
- },
833
- "class": 'k-form-label'
834
- }, [localization.toLanguageString(insertImageAddress, main_1.messages[insertImageAddress])]), h("div", {
835
- "class": 'k-form-field-wrap'
836
- }, [h(kendo_vue_inputs_1.Input, {
837
- type: "text",
838
- attrs: _this.v3 ? undefined : {
839
- type: "text",
840
- id: 'k-editor-image-url',
841
- value: _this.srcValue
842
- },
843
- id: 'k-editor-image-url',
844
- value: _this.srcValue,
845
- onInput: _this.handleSrcInput,
846
- on: _this.v3 ? undefined : {
847
- "input": _this.handleSrcInput
848
- },
849
- ref: (0, kendo_vue_common_1.setRef)(_this, 'src')
850
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
851
- return [h("label", {
852
- "for": 'k-editor-image-url',
853
- attrs: _this.v3 ? undefined : {
854
- "for": 'k-editor-image-url'
855
- },
856
- "class": 'k-form-label'
857
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
858
- "class": 'k-form-field-wrap'
859
- }, [h(kendo_vue_inputs_1.Input, {
860
- type: 'text',
861
- attrs: _this.v3 ? undefined : {
862
- type: 'text',
863
- id: "k-editor-image-alt",
864
- value: _this.altValue
865
- },
866
- id: "k-editor-image-alt",
867
- value: _this.altValue,
868
- onInput: _this.handleAltInput,
869
- on: _this.v3 ? undefined : {
870
- "input": _this.handleAltInput
871
- },
872
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
873
- })])];
874
- } : [h("label", {
875
- "for": 'k-editor-image-url',
876
- attrs: _this.v3 ? undefined : {
877
- "for": 'k-editor-image-url'
878
- },
879
- "class": 'k-form-label'
880
- }, [localization.toLanguageString(insertImageAltText, main_1.messages[insertImageAltText])]), h("div", {
881
- "class": 'k-form-field-wrap'
882
- }, [h(kendo_vue_inputs_1.Input, {
883
- type: 'text',
884
- attrs: _this.v3 ? undefined : {
885
- type: 'text',
886
- id: "k-editor-image-alt",
887
- value: _this.altValue
888
- },
889
- id: "k-editor-image-alt",
890
- value: _this.altValue,
891
- onInput: _this.handleAltInput,
892
- on: _this.v3 ? undefined : {
893
- "input": _this.handleAltInput
894
- },
895
- ref: (0, kendo_vue_common_1.setRef)(_this, 'altText')
896
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
897
- return [h("label", {
898
- htmlFor: 'k-editor-image-title',
899
- attrs: _this.v3 ? undefined : {
900
- htmlFor: 'k-editor-image-title'
901
- },
902
- "class": 'k-form-label'
903
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
904
- "class": 'k-form-field-wrap'
905
- }, [h(kendo_vue_inputs_1.Input, {
906
- type: 'text',
907
- attrs: _this.v3 ? undefined : {
908
- type: 'text',
909
- id: "k-editor-image-title",
910
- value: _this.titleValue
911
- },
912
- id: "k-editor-image-title",
913
- value: _this.titleValue,
914
- onInput: _this.handleTitleInput,
915
- on: _this.v3 ? undefined : {
916
- "input": _this.handleTitleInput
917
- },
918
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
919
- })])];
920
- } : [h("label", {
921
- htmlFor: 'k-editor-image-title',
922
- attrs: _this.v3 ? undefined : {
923
- htmlFor: 'k-editor-image-title'
924
- },
925
- "class": 'k-form-label'
926
- }, [localization.toLanguageString(insertImageTitle, main_1.messages[insertImageTitle])]), h("div", {
927
- "class": 'k-form-field-wrap'
928
- }, [h(kendo_vue_inputs_1.Input, {
929
- type: 'text',
930
- attrs: _this.v3 ? undefined : {
931
- type: 'text',
932
- id: "k-editor-image-title",
933
- value: _this.titleValue
934
- },
935
- id: "k-editor-image-title",
936
- value: _this.titleValue,
937
- onInput: _this.handleTitleInput,
938
- on: _this.v3 ? undefined : {
939
- "input": _this.handleTitleInput
940
- },
941
- ref: (0, kendo_vue_common_1.setRef)(_this, 'title')
942
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
943
- return [h("label", {
944
- "for": 'k-editor-image-width',
945
- attrs: _this.v3 ? undefined : {
946
- "for": 'k-editor-image-width'
947
- },
948
- "class": 'k-form-label'
949
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
950
- "class": 'k-form-field-wrap'
951
- }, [h(kendo_vue_inputs_1.Input, {
952
- type: 'text',
953
- attrs: _this.v3 ? undefined : {
954
- type: 'text',
955
- id: "k-editor-image-width",
956
- value: _this.widthValue
957
- },
958
- id: "k-editor-image-width",
959
- value: _this.widthValue,
960
- onInput: _this.handleWidthInput,
961
- on: _this.v3 ? undefined : {
962
- "input": _this.handleWidthInput
963
- },
964
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
965
- })])];
966
- } : [h("label", {
967
- "for": 'k-editor-image-width',
968
- attrs: _this.v3 ? undefined : {
969
- "for": 'k-editor-image-width'
970
- },
971
- "class": 'k-form-label'
972
- }, [localization.toLanguageString(insertImageWidth, main_1.messages[insertImageWidth])]), h("div", {
973
- "class": 'k-form-field-wrap'
974
- }, [h(kendo_vue_inputs_1.Input, {
975
- type: 'text',
976
- attrs: _this.v3 ? undefined : {
977
- type: 'text',
978
- id: "k-editor-image-width",
979
- value: _this.widthValue
980
- },
981
- id: "k-editor-image-width",
982
- value: _this.widthValue,
983
- onInput: _this.handleWidthInput,
984
- on: _this.v3 ? undefined : {
985
- "input": _this.handleWidthInput
986
- },
987
- ref: (0, kendo_vue_common_1.setRef)(_this, 'width')
988
- })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
989
- return [h("label", {
990
- htmlFor: 'k-editor-image-height',
991
- attrs: _this.v3 ? undefined : {
992
- htmlFor: 'k-editor-image-height'
993
- },
994
- "class": 'k-form-label'
995
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
996
- "class": 'k-form-field-wrap'
997
- }, [h(kendo_vue_inputs_1.Input, {
998
- id: "k-editor-image-height",
999
- attrs: _this.v3 ? undefined : {
1000
- id: "k-editor-image-height",
1001
- value: _this.heightValue
1002
- },
1003
- value: _this.heightValue,
1004
- onInput: _this.handleHeightInput,
1005
- on: _this.v3 ? undefined : {
1006
- "input": _this.handleHeightInput
1007
- },
1008
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
1009
- })])];
1010
- } : [h("label", {
1011
- htmlFor: 'k-editor-image-height',
1012
- attrs: _this.v3 ? undefined : {
1013
- htmlFor: 'k-editor-image-height'
1014
- },
1015
- "class": 'k-form-label'
1016
- }, [localization.toLanguageString(insertImageHeight, main_1.messages[insertImageHeight])]), h("div", {
1017
- "class": 'k-form-field-wrap'
1018
- }, [h(kendo_vue_inputs_1.Input, {
1019
- id: "k-editor-image-height",
1020
- attrs: _this.v3 ? undefined : {
1021
- id: "k-editor-image-height",
1022
- value: _this.heightValue
1023
- },
1024
- value: _this.heightValue,
1025
- onInput: _this.handleHeightInput,
1026
- on: _this.v3 ? undefined : {
1027
- "input": _this.handleHeightInput
1028
- },
1029
- ref: (0, kendo_vue_common_1.setRef)(_this, 'height')
1030
- })])])])]);
1031
- var actionButtons = [
1032
- // @ts-ignore function children
1033
- h(kendo_vue_buttons_1.Button, {
1034
- type: "button",
1035
- attrs: this.v3 ? undefined : {
1036
- type: "button",
1037
- dir: dir
1038
- },
1039
- onClick: this.onClose,
1040
- on: this.v3 ? undefined : {
1041
- "click": this.onClose
1042
- },
1043
- dir: dir,
1044
- key: "cancel"
1045
- }, this.v3 ? function () {
1046
- return [localization.toLanguageString(insertImageCancel, main_1.messages[insertImageCancel])];
1047
- } : [localization.toLanguageString(insertImageCancel, main_1.messages[insertImageCancel])]),
1048
- // @ts-ignore function children
1049
- h(kendo_vue_buttons_1.Button, {
1050
- type: "button",
1051
- attrs: this.v3 ? undefined : {
1052
- type: "button",
1053
- disabled: !this.srcValue,
1054
- themeColor: 'primary',
1055
- dir: dir
1056
- },
1057
- disabled: !this.srcValue,
1058
- onClick: this.onInsert,
1059
- on: this.v3 ? undefined : {
1060
- "click": this.onInsert
1061
- },
1062
- themeColor: 'primary',
1063
- dir: dir,
1064
- key: "insert"
1065
- }, this.v3 ? function () {
1066
- return [localization.toLanguageString(insertImageInsert, main_1.messages[insertImageInsert])];
1067
- } : [localization.toLanguageString(insertImageInsert, main_1.messages[insertImageInsert])])];
1068
- var dialog =
1069
- // @ts-ignore function children
1070
- h(kendo_vue_dialogs_1.Window, {
1071
- initialWidth: 500,
1072
- attrs: this.v3 ? undefined : {
1073
- initialWidth: 500,
1074
- initialHeight: 360,
1075
- windowClass: 'k-editor-window',
1076
- title: localization.toLanguageString(insertImageDialogTitle, main_1.messages[insertImageDialogTitle]),
1077
- dir: dir,
1078
- modal: true,
1079
- minimizeButton: function minimizeButton() {
1080
- return null;
1081
- },
1082
- maximizeButton: function maximizeButton() {
1083
- return null;
1084
- },
1085
- resizable: false
1086
- },
1087
- initialHeight: 360,
1088
- windowClass: 'k-editor-window',
1089
- title: localization.toLanguageString(insertImageDialogTitle, main_1.messages[insertImageDialogTitle]),
1090
- onClose: this.onClose,
1091
- on: this.v3 ? undefined : {
1092
- "close": this.onClose
1093
- },
1094
- key: "dialog",
1095
- dir: dir,
1096
- style: dir === 'rtl' ? {
1097
- textAlign: 'right'
1098
- } : undefined,
1099
- modal: true,
1100
- minimizeButton: function minimizeButton() {
1101
- return null;
1102
- },
1103
- maximizeButton: function maximizeButton() {
1104
- return null;
1105
- },
1106
- resizable: false
1107
- }, this.v3 ? function () {
1108
- return [content,
1109
- // @ts-ignore function children
1110
- h(kendo_vue_dialogs_1.DialogActionsBar, _this.v3 ? function () {
1111
- return [actionButtons];
1112
- } : [actionButtons])];
1113
- } : [content, h(kendo_vue_dialogs_1.DialogActionsBar, _this.v3 ? function () {
1114
- return [actionButtons];
1115
- } : [actionButtons])]);
1116
- return dialog;
1117
- },
1118
- methods: {
1119
- handleSrcInput: function handleSrcInput(e) {
1120
- this.srcValue = e.value;
1121
- },
1122
- handleAltInput: function handleAltInput(e) {
1123
- this.altValue = e.value;
1124
- },
1125
- handleTitleInput: function handleTitleInput(e) {
1126
- this.titleValue = e.value;
1127
- },
1128
- handleWidthInput: function handleWidthInput(e) {
1129
- this.widthValue = e.value;
1130
- },
1131
- handleHeightInput: function handleHeightInput(e) {
1132
- this.heightValue = e.value;
1133
- },
1134
- onClose: function onClose() {
1135
- this.$props.view.focus();
1136
- this.$emit('close');
1137
- },
1138
- onInsert: function onInsert() {
1139
- var _a = this.$props,
1140
- view = _a.view,
1141
- settings = _a.settings;
1142
- var nodes = view.state.schema.nodes;
1143
- var nodeType = nodes[settings.node];
1144
- var data = {
1145
- src: this.src ? this.srcValue : null,
1146
- title: this.title ? this.titleValue : null,
1147
- alt: this.altText ? this.altValue : null,
1148
- width: this.width ? this.widthValue : null,
1149
- height: this.height ? this.heightValue : null
1150
- };
1151
- var attrs = Object.keys(data).filter(function (key) {
1152
- return data[key] !== null && data[key] !== '';
1153
- }).reduce(function (acc, curr) {
1154
- var _a;
1155
- return Object.assign(acc, (_a = {}, _a[curr] = data[curr], _a));
1156
- }, {});
1157
- var newImage = nodeType.createAndFill(attrs);
1158
- var insertImageCmd = (0, kendo_editor_common_1.insertNode)(newImage, true);
1159
- insertImageCmd(view.state, function (tr) {
1160
- return view.dispatch(tr.setMeta('commandName', settings.commandName).setMeta('args', attrs));
1161
- });
1162
- this.onClose();
1163
- }
1164
- }
1165
- };
1166
- exports.InsertImageDialogVue2 = InsertImageDialogVue2;
1167
- /**
1168
- * @hidden
1169
- */
1170
- var InsertImageDialog = InsertImageDialogVue2;
1171
- exports.InsertImageDialog = InsertImageDialog;