@progress/kendo-vue-editor 5.3.0-dev.202410141143 → 5.3.0-develop.2

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,826 +0,0 @@
1
- // @ts-ignore
2
- import * as Vue from 'vue';
3
- var allVue = Vue;
4
- var gh = allVue.h;
5
- var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { Window, DialogActionsBar } from '@progress/kendo-vue-dialogs';
7
- import { Button as KButton } from '@progress/kendo-vue-buttons';
8
- import { getMark, applyLink } from '@progress/kendo-editor-common';
9
- import { provideLocalizationService } from '@progress/kendo-vue-intl';
10
- import { messages } from '../messages/main.js';
11
- import { getRef, setRef } from '@progress/kendo-vue-common';
12
- import { Form as KForm, FormElement, FieldWrapper } from '@progress/kendo-vue-form';
13
- import { Input, Checkbox } from '@progress/kendo-vue-inputs';
14
- /**
15
- * @hidden
16
- */
17
- var InsertLinkDialogVue2 = {
18
- name: 'KendoInsertLinkDialog',
19
- // @ts-ignore
20
- emits: {
21
- close: null
22
- },
23
- props: {
24
- view: Object,
25
- settings: Object,
26
- dir: String
27
- },
28
- data: function data() {
29
- var _a = this.$props,
30
- view = _a.view,
31
- settings = _a.settings;
32
- var linkMark = view ? getMark(view.state, view.state.schema.marks[settings.mark]) : false;
33
- return {
34
- hrefValue: linkMark && linkMark.attrs.href || undefined,
35
- titleValue: linkMark && linkMark.attrs.title || undefined,
36
- targetValue: linkMark && !!linkMark.attrs.target || undefined
37
- };
38
- },
39
- inject: {
40
- kendoLocalizationService: {
41
- default: null
42
- }
43
- },
44
- // @ts-ignore
45
- setup: !isV3 ? undefined : function () {
46
- var v3 = !!isV3;
47
- return {
48
- v3: v3
49
- };
50
- },
51
- mounted: function mounted() {
52
- this.href = getRef(this, 'href');
53
- this.title = getRef(this, 'title');
54
- this.target = getRef(this, 'target');
55
- if (this.href) {
56
- this.href.focus();
57
- }
58
- },
59
- // @ts-ignore
60
- render: function render(createElement) {
61
- var _this = this;
62
- var h = gh || createElement;
63
- var _a = this.$props,
64
- settings = _a.settings,
65
- dir = _a.dir;
66
- var localization = provideLocalizationService(this);
67
- var _b = settings.messages,
68
- insertHyperlinkDialogTitle = _b.insertHyperlinkDialogTitle,
69
- insertHyperlinkAddress = _b.insertHyperlinkAddress,
70
- insertHyperlinkTitle = _b.insertHyperlinkTitle,
71
- insertHyperlinkNewWindow = _b.insertHyperlinkNewWindow,
72
- insertHyperlinkCancel = _b.insertHyperlinkCancel,
73
- insertHyperlinkInsert = _b.insertHyperlinkInsert;
74
- var checkboxLabel = localization.toLanguageString(insertHyperlinkNewWindow, messages[insertHyperlinkNewWindow]);
75
- var content =
76
- // @ts-ignore function children
77
- h(KForm, this.v3 ? function () {
78
- return [
79
- // @ts-ignore function children
80
- h(FormElement, {
81
- horizontal: true,
82
- attrs: _this.v3 ? undefined : {
83
- horizontal: true
84
- }
85
- }, _this.v3 ? function () {
86
- return [
87
- // @ts-ignore function children
88
- h(FieldWrapper, _this.v3 ? function () {
89
- return [h("label", {
90
- "for": 'k-editor-link-url',
91
- attrs: _this.v3 ? undefined : {
92
- "for": 'k-editor-link-url'
93
- },
94
- "class": 'k-form-label'
95
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
96
- "class": 'k-form-field-wrap'
97
- }, [h(Input, {
98
- type: "text",
99
- attrs: _this.v3 ? undefined : {
100
- type: "text",
101
- id: 'k-editor-link-url',
102
- value: _this.hrefValue
103
- },
104
- id: 'k-editor-link-url',
105
- ref: setRef(_this, 'href'),
106
- onInput: _this.hrefChange,
107
- on: _this.v3 ? undefined : {
108
- "input": _this.hrefChange
109
- },
110
- value: _this.hrefValue
111
- })])];
112
- } : [h("label", {
113
- "for": 'k-editor-link-url',
114
- attrs: _this.v3 ? undefined : {
115
- "for": 'k-editor-link-url'
116
- },
117
- "class": 'k-form-label'
118
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
119
- "class": 'k-form-field-wrap'
120
- }, [h(Input, {
121
- type: "text",
122
- attrs: _this.v3 ? undefined : {
123
- type: "text",
124
- id: 'k-editor-link-url',
125
- value: _this.hrefValue
126
- },
127
- id: 'k-editor-link-url',
128
- ref: setRef(_this, 'href'),
129
- onInput: _this.hrefChange,
130
- on: _this.v3 ? undefined : {
131
- "input": _this.hrefChange
132
- },
133
- value: _this.hrefValue
134
- })])]),
135
- // @ts-ignore function children
136
- h(FieldWrapper, _this.v3 ? function () {
137
- return [h("label", {
138
- "for": 'k-editor-link-text',
139
- attrs: _this.v3 ? undefined : {
140
- "for": 'k-editor-link-text'
141
- },
142
- "class": 'k-form-label'
143
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
144
- "class": 'k-form-field-wrap'
145
- }, [h(Input, {
146
- type: "text",
147
- attrs: _this.v3 ? undefined : {
148
- type: "text",
149
- id: 'k-editor-link-text',
150
- value: _this.titleValue
151
- },
152
- id: 'k-editor-link-text',
153
- ref: setRef(_this, 'title'),
154
- onInput: _this.titleChange,
155
- on: _this.v3 ? undefined : {
156
- "input": _this.titleChange
157
- },
158
- value: _this.titleValue
159
- })])];
160
- } : [h("label", {
161
- "for": 'k-editor-link-text',
162
- attrs: _this.v3 ? undefined : {
163
- "for": 'k-editor-link-text'
164
- },
165
- "class": 'k-form-label'
166
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
167
- "class": 'k-form-field-wrap'
168
- }, [h(Input, {
169
- type: "text",
170
- attrs: _this.v3 ? undefined : {
171
- type: "text",
172
- id: 'k-editor-link-text',
173
- value: _this.titleValue
174
- },
175
- id: 'k-editor-link-text',
176
- ref: setRef(_this, 'title'),
177
- onInput: _this.titleChange,
178
- on: _this.v3 ? undefined : {
179
- "input": _this.titleChange
180
- },
181
- value: _this.titleValue
182
- })])]), settings.linkTarget !== false &&
183
- // @ts-ignore function children
184
- h(FieldWrapper, _this.v3 ? function () {
185
- return [h("div", {
186
- "class": 'k-form-label'
187
- }), h("div", {
188
- "class": 'k-form-field-wrap'
189
- }, [h(Checkbox, {
190
- id: 'k-editor-link-target',
191
- attrs: _this.v3 ? undefined : {
192
- id: 'k-editor-link-target',
193
- label: checkboxLabel,
194
- checked: _this.targetValue
195
- },
196
- ref: setRef(_this, 'target'),
197
- label: checkboxLabel,
198
- onChange: _this.targetChange,
199
- on: _this.v3 ? undefined : {
200
- "change": _this.targetChange
201
- },
202
- checked: _this.targetValue
203
- })])];
204
- } : [h("div", {
205
- "class": 'k-form-label'
206
- }), h("div", {
207
- "class": 'k-form-field-wrap'
208
- }, [h(Checkbox, {
209
- id: 'k-editor-link-target',
210
- attrs: _this.v3 ? undefined : {
211
- id: 'k-editor-link-target',
212
- label: checkboxLabel,
213
- checked: _this.targetValue
214
- },
215
- ref: setRef(_this, 'target'),
216
- label: checkboxLabel,
217
- onChange: _this.targetChange,
218
- on: _this.v3 ? undefined : {
219
- "change": _this.targetChange
220
- },
221
- checked: _this.targetValue
222
- })])])];
223
- } : [h(FieldWrapper, _this.v3 ? function () {
224
- return [h("label", {
225
- "for": 'k-editor-link-url',
226
- attrs: _this.v3 ? undefined : {
227
- "for": 'k-editor-link-url'
228
- },
229
- "class": 'k-form-label'
230
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
231
- "class": 'k-form-field-wrap'
232
- }, [h(Input, {
233
- type: "text",
234
- attrs: _this.v3 ? undefined : {
235
- type: "text",
236
- id: 'k-editor-link-url',
237
- value: _this.hrefValue
238
- },
239
- id: 'k-editor-link-url',
240
- ref: setRef(_this, 'href'),
241
- onInput: _this.hrefChange,
242
- on: _this.v3 ? undefined : {
243
- "input": _this.hrefChange
244
- },
245
- value: _this.hrefValue
246
- })])];
247
- } : [h("label", {
248
- "for": 'k-editor-link-url',
249
- attrs: _this.v3 ? undefined : {
250
- "for": 'k-editor-link-url'
251
- },
252
- "class": 'k-form-label'
253
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
254
- "class": 'k-form-field-wrap'
255
- }, [h(Input, {
256
- type: "text",
257
- attrs: _this.v3 ? undefined : {
258
- type: "text",
259
- id: 'k-editor-link-url',
260
- value: _this.hrefValue
261
- },
262
- id: 'k-editor-link-url',
263
- ref: setRef(_this, 'href'),
264
- onInput: _this.hrefChange,
265
- on: _this.v3 ? undefined : {
266
- "input": _this.hrefChange
267
- },
268
- value: _this.hrefValue
269
- })])]), h(FieldWrapper, _this.v3 ? function () {
270
- return [h("label", {
271
- "for": 'k-editor-link-text',
272
- attrs: _this.v3 ? undefined : {
273
- "for": 'k-editor-link-text'
274
- },
275
- "class": 'k-form-label'
276
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
277
- "class": 'k-form-field-wrap'
278
- }, [h(Input, {
279
- type: "text",
280
- attrs: _this.v3 ? undefined : {
281
- type: "text",
282
- id: 'k-editor-link-text',
283
- value: _this.titleValue
284
- },
285
- id: 'k-editor-link-text',
286
- ref: setRef(_this, 'title'),
287
- onInput: _this.titleChange,
288
- on: _this.v3 ? undefined : {
289
- "input": _this.titleChange
290
- },
291
- value: _this.titleValue
292
- })])];
293
- } : [h("label", {
294
- "for": 'k-editor-link-text',
295
- attrs: _this.v3 ? undefined : {
296
- "for": 'k-editor-link-text'
297
- },
298
- "class": 'k-form-label'
299
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
300
- "class": 'k-form-field-wrap'
301
- }, [h(Input, {
302
- type: "text",
303
- attrs: _this.v3 ? undefined : {
304
- type: "text",
305
- id: 'k-editor-link-text',
306
- value: _this.titleValue
307
- },
308
- id: 'k-editor-link-text',
309
- ref: setRef(_this, 'title'),
310
- onInput: _this.titleChange,
311
- on: _this.v3 ? undefined : {
312
- "input": _this.titleChange
313
- },
314
- value: _this.titleValue
315
- })])]), settings.linkTarget !== false && h(FieldWrapper, _this.v3 ? function () {
316
- return [h("div", {
317
- "class": 'k-form-label'
318
- }), h("div", {
319
- "class": 'k-form-field-wrap'
320
- }, [h(Checkbox, {
321
- id: 'k-editor-link-target',
322
- attrs: _this.v3 ? undefined : {
323
- id: 'k-editor-link-target',
324
- label: checkboxLabel,
325
- checked: _this.targetValue
326
- },
327
- ref: setRef(_this, 'target'),
328
- label: checkboxLabel,
329
- onChange: _this.targetChange,
330
- on: _this.v3 ? undefined : {
331
- "change": _this.targetChange
332
- },
333
- checked: _this.targetValue
334
- })])];
335
- } : [h("div", {
336
- "class": 'k-form-label'
337
- }), h("div", {
338
- "class": 'k-form-field-wrap'
339
- }, [h(Checkbox, {
340
- id: 'k-editor-link-target',
341
- attrs: _this.v3 ? undefined : {
342
- id: 'k-editor-link-target',
343
- label: checkboxLabel,
344
- checked: _this.targetValue
345
- },
346
- ref: setRef(_this, 'target'),
347
- label: checkboxLabel,
348
- onChange: _this.targetChange,
349
- on: _this.v3 ? undefined : {
350
- "change": _this.targetChange
351
- },
352
- checked: _this.targetValue
353
- })])])])];
354
- } : [h(FormElement, {
355
- horizontal: true,
356
- attrs: _this.v3 ? undefined : {
357
- horizontal: true
358
- }
359
- }, _this.v3 ? function () {
360
- return [h(FieldWrapper, _this.v3 ? function () {
361
- return [h("label", {
362
- "for": 'k-editor-link-url',
363
- attrs: _this.v3 ? undefined : {
364
- "for": 'k-editor-link-url'
365
- },
366
- "class": 'k-form-label'
367
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
368
- "class": 'k-form-field-wrap'
369
- }, [h(Input, {
370
- type: "text",
371
- attrs: _this.v3 ? undefined : {
372
- type: "text",
373
- id: 'k-editor-link-url',
374
- value: _this.hrefValue
375
- },
376
- id: 'k-editor-link-url',
377
- ref: setRef(_this, 'href'),
378
- onInput: _this.hrefChange,
379
- on: _this.v3 ? undefined : {
380
- "input": _this.hrefChange
381
- },
382
- value: _this.hrefValue
383
- })])];
384
- } : [h("label", {
385
- "for": 'k-editor-link-url',
386
- attrs: _this.v3 ? undefined : {
387
- "for": 'k-editor-link-url'
388
- },
389
- "class": 'k-form-label'
390
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
391
- "class": 'k-form-field-wrap'
392
- }, [h(Input, {
393
- type: "text",
394
- attrs: _this.v3 ? undefined : {
395
- type: "text",
396
- id: 'k-editor-link-url',
397
- value: _this.hrefValue
398
- },
399
- id: 'k-editor-link-url',
400
- ref: setRef(_this, 'href'),
401
- onInput: _this.hrefChange,
402
- on: _this.v3 ? undefined : {
403
- "input": _this.hrefChange
404
- },
405
- value: _this.hrefValue
406
- })])]), h(FieldWrapper, _this.v3 ? function () {
407
- return [h("label", {
408
- "for": 'k-editor-link-text',
409
- attrs: _this.v3 ? undefined : {
410
- "for": 'k-editor-link-text'
411
- },
412
- "class": 'k-form-label'
413
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
414
- "class": 'k-form-field-wrap'
415
- }, [h(Input, {
416
- type: "text",
417
- attrs: _this.v3 ? undefined : {
418
- type: "text",
419
- id: 'k-editor-link-text',
420
- value: _this.titleValue
421
- },
422
- id: 'k-editor-link-text',
423
- ref: setRef(_this, 'title'),
424
- onInput: _this.titleChange,
425
- on: _this.v3 ? undefined : {
426
- "input": _this.titleChange
427
- },
428
- value: _this.titleValue
429
- })])];
430
- } : [h("label", {
431
- "for": 'k-editor-link-text',
432
- attrs: _this.v3 ? undefined : {
433
- "for": 'k-editor-link-text'
434
- },
435
- "class": 'k-form-label'
436
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
437
- "class": 'k-form-field-wrap'
438
- }, [h(Input, {
439
- type: "text",
440
- attrs: _this.v3 ? undefined : {
441
- type: "text",
442
- id: 'k-editor-link-text',
443
- value: _this.titleValue
444
- },
445
- id: 'k-editor-link-text',
446
- ref: setRef(_this, 'title'),
447
- onInput: _this.titleChange,
448
- on: _this.v3 ? undefined : {
449
- "input": _this.titleChange
450
- },
451
- value: _this.titleValue
452
- })])]), settings.linkTarget !== false && h(FieldWrapper, _this.v3 ? function () {
453
- return [h("div", {
454
- "class": 'k-form-label'
455
- }), h("div", {
456
- "class": 'k-form-field-wrap'
457
- }, [h(Checkbox, {
458
- id: 'k-editor-link-target',
459
- attrs: _this.v3 ? undefined : {
460
- id: 'k-editor-link-target',
461
- label: checkboxLabel,
462
- checked: _this.targetValue
463
- },
464
- ref: setRef(_this, 'target'),
465
- label: checkboxLabel,
466
- onChange: _this.targetChange,
467
- on: _this.v3 ? undefined : {
468
- "change": _this.targetChange
469
- },
470
- checked: _this.targetValue
471
- })])];
472
- } : [h("div", {
473
- "class": 'k-form-label'
474
- }), h("div", {
475
- "class": 'k-form-field-wrap'
476
- }, [h(Checkbox, {
477
- id: 'k-editor-link-target',
478
- attrs: _this.v3 ? undefined : {
479
- id: 'k-editor-link-target',
480
- label: checkboxLabel,
481
- checked: _this.targetValue
482
- },
483
- ref: setRef(_this, 'target'),
484
- label: checkboxLabel,
485
- onChange: _this.targetChange,
486
- on: _this.v3 ? undefined : {
487
- "change": _this.targetChange
488
- },
489
- checked: _this.targetValue
490
- })])])];
491
- } : [h(FieldWrapper, _this.v3 ? function () {
492
- return [h("label", {
493
- "for": 'k-editor-link-url',
494
- attrs: _this.v3 ? undefined : {
495
- "for": 'k-editor-link-url'
496
- },
497
- "class": 'k-form-label'
498
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
499
- "class": 'k-form-field-wrap'
500
- }, [h(Input, {
501
- type: "text",
502
- attrs: _this.v3 ? undefined : {
503
- type: "text",
504
- id: 'k-editor-link-url',
505
- value: _this.hrefValue
506
- },
507
- id: 'k-editor-link-url',
508
- ref: setRef(_this, 'href'),
509
- onInput: _this.hrefChange,
510
- on: _this.v3 ? undefined : {
511
- "input": _this.hrefChange
512
- },
513
- value: _this.hrefValue
514
- })])];
515
- } : [h("label", {
516
- "for": 'k-editor-link-url',
517
- attrs: _this.v3 ? undefined : {
518
- "for": 'k-editor-link-url'
519
- },
520
- "class": 'k-form-label'
521
- }, [localization.toLanguageString(insertHyperlinkAddress, messages[insertHyperlinkAddress])]), h("div", {
522
- "class": 'k-form-field-wrap'
523
- }, [h(Input, {
524
- type: "text",
525
- attrs: _this.v3 ? undefined : {
526
- type: "text",
527
- id: 'k-editor-link-url',
528
- value: _this.hrefValue
529
- },
530
- id: 'k-editor-link-url',
531
- ref: setRef(_this, 'href'),
532
- onInput: _this.hrefChange,
533
- on: _this.v3 ? undefined : {
534
- "input": _this.hrefChange
535
- },
536
- value: _this.hrefValue
537
- })])]), h(FieldWrapper, _this.v3 ? function () {
538
- return [h("label", {
539
- "for": 'k-editor-link-text',
540
- attrs: _this.v3 ? undefined : {
541
- "for": 'k-editor-link-text'
542
- },
543
- "class": 'k-form-label'
544
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
545
- "class": 'k-form-field-wrap'
546
- }, [h(Input, {
547
- type: "text",
548
- attrs: _this.v3 ? undefined : {
549
- type: "text",
550
- id: 'k-editor-link-text',
551
- value: _this.titleValue
552
- },
553
- id: 'k-editor-link-text',
554
- ref: setRef(_this, 'title'),
555
- onInput: _this.titleChange,
556
- on: _this.v3 ? undefined : {
557
- "input": _this.titleChange
558
- },
559
- value: _this.titleValue
560
- })])];
561
- } : [h("label", {
562
- "for": 'k-editor-link-text',
563
- attrs: _this.v3 ? undefined : {
564
- "for": 'k-editor-link-text'
565
- },
566
- "class": 'k-form-label'
567
- }, [localization.toLanguageString(insertHyperlinkTitle, messages[insertHyperlinkTitle])]), h("div", {
568
- "class": 'k-form-field-wrap'
569
- }, [h(Input, {
570
- type: "text",
571
- attrs: _this.v3 ? undefined : {
572
- type: "text",
573
- id: 'k-editor-link-text',
574
- value: _this.titleValue
575
- },
576
- id: 'k-editor-link-text',
577
- ref: setRef(_this, 'title'),
578
- onInput: _this.titleChange,
579
- on: _this.v3 ? undefined : {
580
- "input": _this.titleChange
581
- },
582
- value: _this.titleValue
583
- })])]), settings.linkTarget !== false && h(FieldWrapper, _this.v3 ? function () {
584
- return [h("div", {
585
- "class": 'k-form-label'
586
- }), h("div", {
587
- "class": 'k-form-field-wrap'
588
- }, [h(Checkbox, {
589
- id: 'k-editor-link-target',
590
- attrs: _this.v3 ? undefined : {
591
- id: 'k-editor-link-target',
592
- label: checkboxLabel,
593
- checked: _this.targetValue
594
- },
595
- ref: setRef(_this, 'target'),
596
- label: checkboxLabel,
597
- onChange: _this.targetChange,
598
- on: _this.v3 ? undefined : {
599
- "change": _this.targetChange
600
- },
601
- checked: _this.targetValue
602
- })])];
603
- } : [h("div", {
604
- "class": 'k-form-label'
605
- }), h("div", {
606
- "class": 'k-form-field-wrap'
607
- }, [h(Checkbox, {
608
- id: 'k-editor-link-target',
609
- attrs: _this.v3 ? undefined : {
610
- id: 'k-editor-link-target',
611
- label: checkboxLabel,
612
- checked: _this.targetValue
613
- },
614
- ref: setRef(_this, 'target'),
615
- label: checkboxLabel,
616
- onChange: _this.targetChange,
617
- on: _this.v3 ? undefined : {
618
- "change": _this.targetChange
619
- },
620
- checked: _this.targetValue
621
- })])])])]);
622
- var dialog =
623
- // @ts-ignore function children
624
- h(Window, {
625
- initialWidth: 450,
626
- attrs: this.v3 ? undefined : {
627
- initialWidth: 450,
628
- initialHeight: 250,
629
- windowClass: 'k-editor-window',
630
- title: localization.toLanguageString(insertHyperlinkDialogTitle, messages[insertHyperlinkDialogTitle]),
631
- dir: dir,
632
- modal: true,
633
- minimizeButton: function minimizeButton() {
634
- return null;
635
- },
636
- maximizeButton: function maximizeButton() {
637
- return null;
638
- },
639
- resizable: false
640
- },
641
- initialHeight: 250,
642
- windowClass: 'k-editor-window',
643
- title: localization.toLanguageString(insertHyperlinkDialogTitle, messages[insertHyperlinkDialogTitle]),
644
- onClose: this.onClose,
645
- on: this.v3 ? undefined : {
646
- "close": this.onClose
647
- },
648
- dir: dir,
649
- modal: true,
650
- minimizeButton: function minimizeButton() {
651
- return null;
652
- },
653
- maximizeButton: function maximizeButton() {
654
- return null;
655
- },
656
- resizable: false
657
- }, this.v3 ? function () {
658
- return [content,
659
- // @ts-ignore function children
660
- h(DialogActionsBar, _this.v3 ? function () {
661
- return [
662
- // @ts-ignore function children
663
- h(KButton, {
664
- type: "button",
665
- attrs: _this.v3 ? undefined : {
666
- type: "button",
667
- dir: dir
668
- },
669
- onClick: _this.onClose,
670
- on: _this.v3 ? undefined : {
671
- "click": _this.onClose
672
- },
673
- dir: dir,
674
- key: "cancel"
675
- }, _this.v3 ? function () {
676
- return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
677
- } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]),
678
- // @ts-ignore function children
679
- h(KButton, {
680
- type: "button",
681
- attrs: _this.v3 ? undefined : {
682
- type: "button",
683
- themeColor: 'primary',
684
- dir: dir
685
- },
686
- onClick: _this.onInsert,
687
- on: _this.v3 ? undefined : {
688
- "click": _this.onInsert
689
- },
690
- themeColor: 'primary',
691
- dir: dir,
692
- key: "insert"
693
- }, _this.v3 ? function () {
694
- return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
695
- } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])];
696
- } : [h(KButton, {
697
- type: "button",
698
- attrs: _this.v3 ? undefined : {
699
- type: "button",
700
- dir: dir
701
- },
702
- onClick: _this.onClose,
703
- on: _this.v3 ? undefined : {
704
- "click": _this.onClose
705
- },
706
- dir: dir,
707
- key: "cancel"
708
- }, _this.v3 ? function () {
709
- return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
710
- } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), h(KButton, {
711
- type: "button",
712
- attrs: _this.v3 ? undefined : {
713
- type: "button",
714
- themeColor: 'primary',
715
- dir: dir
716
- },
717
- onClick: _this.onInsert,
718
- on: _this.v3 ? undefined : {
719
- "click": _this.onInsert
720
- },
721
- themeColor: 'primary',
722
- dir: dir,
723
- key: "insert"
724
- }, _this.v3 ? function () {
725
- return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
726
- } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])])];
727
- } : [content, h(DialogActionsBar, _this.v3 ? function () {
728
- return [h(KButton, {
729
- type: "button",
730
- attrs: _this.v3 ? undefined : {
731
- type: "button",
732
- dir: dir
733
- },
734
- onClick: _this.onClose,
735
- on: _this.v3 ? undefined : {
736
- "click": _this.onClose
737
- },
738
- dir: dir,
739
- key: "cancel"
740
- }, _this.v3 ? function () {
741
- return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
742
- } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), h(KButton, {
743
- type: "button",
744
- attrs: _this.v3 ? undefined : {
745
- type: "button",
746
- themeColor: 'primary',
747
- dir: dir
748
- },
749
- onClick: _this.onInsert,
750
- on: _this.v3 ? undefined : {
751
- "click": _this.onInsert
752
- },
753
- themeColor: 'primary',
754
- dir: dir,
755
- key: "insert"
756
- }, _this.v3 ? function () {
757
- return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
758
- } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])];
759
- } : [h(KButton, {
760
- type: "button",
761
- attrs: _this.v3 ? undefined : {
762
- type: "button",
763
- dir: dir
764
- },
765
- onClick: _this.onClose,
766
- on: _this.v3 ? undefined : {
767
- "click": _this.onClose
768
- },
769
- dir: dir,
770
- key: "cancel"
771
- }, _this.v3 ? function () {
772
- return [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])];
773
- } : [localization.toLanguageString(insertHyperlinkCancel, messages[insertHyperlinkCancel])]), h(KButton, {
774
- type: "button",
775
- attrs: _this.v3 ? undefined : {
776
- type: "button",
777
- themeColor: 'primary',
778
- dir: dir
779
- },
780
- onClick: _this.onInsert,
781
- on: _this.v3 ? undefined : {
782
- "click": _this.onInsert
783
- },
784
- themeColor: 'primary',
785
- dir: dir,
786
- key: "insert"
787
- }, _this.v3 ? function () {
788
- return [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])];
789
- } : [localization.toLanguageString(insertHyperlinkInsert, messages[insertHyperlinkInsert])])])]);
790
- return dialog;
791
- },
792
- methods: {
793
- hrefChange: function hrefChange(e) {
794
- this.hrefValue = e.value;
795
- },
796
- titleChange: function titleChange(e) {
797
- this.titleValue = e.value;
798
- },
799
- targetChange: function targetChange(e) {
800
- this.targetValue = e.value;
801
- },
802
- onClose: function onClose() {
803
- this.$props.view.focus();
804
- this.$emit('close');
805
- },
806
- onInsert: function onInsert() {
807
- var view = this.$props.view;
808
- var mark = this.$props.settings.mark;
809
- var attrs = {
810
- href: this.href ? this.hrefValue : undefined,
811
- title: this.title ? this.titleValue : undefined,
812
- target: this.target && this.targetValue ? '_blank' : undefined
813
- };
814
- applyLink({
815
- mark: mark,
816
- attrs: attrs
817
- }, this.$props.settings.commandName)(view.state, view.dispatch);
818
- this.onClose();
819
- }
820
- }
821
- };
822
- /**
823
- * @hidden
824
- */
825
- var InsertLinkDialog = InsertLinkDialogVue2;
826
- export { InsertLinkDialog, InsertLinkDialogVue2 };