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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,8 @@ var kendo_editor_common_1 = require("@progress/kendo-editor-common");
15
15
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
16
16
  var main_1 = require("../messages/main");
17
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");
18
20
  /**
19
21
  * @hidden
20
22
  */
@@ -29,6 +31,17 @@ var InsertLinkDialogVue2 = {
29
31
  settings: Object,
30
32
  dir: String
31
33
  },
34
+ data: function data() {
35
+ var _a = this.$props,
36
+ view = _a.view,
37
+ settings = _a.settings;
38
+ var linkMark = view ? (0, kendo_editor_common_1.getMark)(view.state, view.state.schema.marks[settings.mark]) : false;
39
+ return {
40
+ hrefValue: linkMark && linkMark.attrs.href || undefined,
41
+ titleValue: linkMark && linkMark.attrs.title || undefined,
42
+ targetValue: linkMark && !!linkMark.attrs.target || undefined
43
+ };
44
+ },
32
45
  inject: {
33
46
  kendoLocalizationService: {
34
47
  default: null
@@ -54,7 +67,6 @@ var InsertLinkDialogVue2 = {
54
67
  var _this = this;
55
68
  var h = gh || createElement;
56
69
  var _a = this.$props,
57
- view = _a.view,
58
70
  settings = _a.settings,
59
71
  dir = _a.dir;
60
72
  var localization = (0, kendo_vue_intl_1.provideLocalizationService)(this);
@@ -65,79 +77,562 @@ var InsertLinkDialogVue2 = {
65
77
  insertHyperlinkNewWindow = _b.insertHyperlinkNewWindow,
66
78
  insertHyperlinkCancel = _b.insertHyperlinkCancel,
67
79
  insertHyperlinkInsert = _b.insertHyperlinkInsert;
68
- var linkMark = view ? (0, kendo_editor_common_1.getMark)(view.state, view.state.schema.marks[settings.mark]) : false;
69
- var content = h("div", {
70
- "class": "k-edit-form-container"
71
- }, [h("div", {
72
- "class": "k-edit-label"
73
- }, [h("label", {
74
- "for": "k-editor-link-url",
75
- attrs: this.v3 ? undefined : {
76
- "for": "k-editor-link-url"
80
+ var checkboxLabel = localization.toLanguageString(insertHyperlinkNewWindow, main_1.messages[insertHyperlinkNewWindow]);
81
+ var content =
82
+ // @ts-ignore function children
83
+ h(kendo_vue_form_1.Form, this.v3 ? function () {
84
+ return [
85
+ // @ts-ignore function children
86
+ h(kendo_vue_form_1.FormElement, {
87
+ horizontal: true,
88
+ attrs: _this.v3 ? undefined : {
89
+ horizontal: true
90
+ }
91
+ }, _this.v3 ? function () {
92
+ return [
93
+ // @ts-ignore function children
94
+ h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
95
+ return [h("label", {
96
+ "for": 'k-editor-link-url',
97
+ attrs: _this.v3 ? undefined : {
98
+ "for": 'k-editor-link-url'
99
+ },
100
+ "class": 'k-form-label'
101
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
102
+ "class": 'k-form-field-wrap'
103
+ }, [h(kendo_vue_inputs_1.Input, {
104
+ type: "text",
105
+ attrs: _this.v3 ? undefined : {
106
+ type: "text",
107
+ id: 'k-editor-link-url',
108
+ value: _this.hrefValue
109
+ },
110
+ id: 'k-editor-link-url',
111
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
112
+ onInput: _this.hrefChange,
113
+ on: _this.v3 ? undefined : {
114
+ "input": _this.hrefChange
115
+ },
116
+ value: _this.hrefValue
117
+ })])];
118
+ } : [h("label", {
119
+ "for": 'k-editor-link-url',
120
+ attrs: _this.v3 ? undefined : {
121
+ "for": 'k-editor-link-url'
122
+ },
123
+ "class": 'k-form-label'
124
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
125
+ "class": 'k-form-field-wrap'
126
+ }, [h(kendo_vue_inputs_1.Input, {
127
+ type: "text",
128
+ attrs: _this.v3 ? undefined : {
129
+ type: "text",
130
+ id: 'k-editor-link-url',
131
+ value: _this.hrefValue
132
+ },
133
+ id: 'k-editor-link-url',
134
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
135
+ onInput: _this.hrefChange,
136
+ on: _this.v3 ? undefined : {
137
+ "input": _this.hrefChange
138
+ },
139
+ value: _this.hrefValue
140
+ })])]),
141
+ // @ts-ignore function children
142
+ h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
143
+ return [h("label", {
144
+ "for": 'k-editor-link-text',
145
+ attrs: _this.v3 ? undefined : {
146
+ "for": 'k-editor-link-text'
147
+ },
148
+ "class": 'k-form-label'
149
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
150
+ "class": 'k-form-field-wrap'
151
+ }, [h(kendo_vue_inputs_1.Input, {
152
+ type: "text",
153
+ attrs: _this.v3 ? undefined : {
154
+ type: "text",
155
+ id: 'k-editor-link-text',
156
+ value: _this.titleValue
157
+ },
158
+ id: 'k-editor-link-text',
159
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
160
+ onInput: _this.titleChange,
161
+ on: _this.v3 ? undefined : {
162
+ "input": _this.titleChange
163
+ },
164
+ value: _this.titleValue
165
+ })])];
166
+ } : [h("label", {
167
+ "for": 'k-editor-link-text',
168
+ attrs: _this.v3 ? undefined : {
169
+ "for": 'k-editor-link-text'
170
+ },
171
+ "class": 'k-form-label'
172
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
173
+ "class": 'k-form-field-wrap'
174
+ }, [h(kendo_vue_inputs_1.Input, {
175
+ type: "text",
176
+ attrs: _this.v3 ? undefined : {
177
+ type: "text",
178
+ id: 'k-editor-link-text',
179
+ value: _this.titleValue
180
+ },
181
+ id: 'k-editor-link-text',
182
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
183
+ onInput: _this.titleChange,
184
+ on: _this.v3 ? undefined : {
185
+ "input": _this.titleChange
186
+ },
187
+ value: _this.titleValue
188
+ })])]), settings.linkTarget !== false &&
189
+ // @ts-ignore function children
190
+ h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
191
+ return [h("div", {
192
+ "class": 'k-form-label'
193
+ }), h("div", {
194
+ "class": 'k-form-field-wrap'
195
+ }, [h(kendo_vue_inputs_1.Checkbox, {
196
+ "class": 'k-checkbox-wrap',
197
+ id: 'k-editor-link-target',
198
+ attrs: _this.v3 ? undefined : {
199
+ id: 'k-editor-link-target',
200
+ label: checkboxLabel,
201
+ checked: _this.targetValue
202
+ },
203
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
204
+ label: checkboxLabel,
205
+ onChange: _this.targetChange,
206
+ on: _this.v3 ? undefined : {
207
+ "change": _this.targetChange
208
+ },
209
+ checked: _this.targetValue
210
+ })])];
211
+ } : [h("div", {
212
+ "class": 'k-form-label'
213
+ }), h("div", {
214
+ "class": 'k-form-field-wrap'
215
+ }, [h(kendo_vue_inputs_1.Checkbox, {
216
+ "class": 'k-checkbox-wrap',
217
+ id: 'k-editor-link-target',
218
+ attrs: _this.v3 ? undefined : {
219
+ id: 'k-editor-link-target',
220
+ label: checkboxLabel,
221
+ checked: _this.targetValue
222
+ },
223
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
224
+ label: checkboxLabel,
225
+ onChange: _this.targetChange,
226
+ on: _this.v3 ? undefined : {
227
+ "change": _this.targetChange
228
+ },
229
+ checked: _this.targetValue
230
+ })])])];
231
+ } : [h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
232
+ return [h("label", {
233
+ "for": 'k-editor-link-url',
234
+ attrs: _this.v3 ? undefined : {
235
+ "for": 'k-editor-link-url'
236
+ },
237
+ "class": 'k-form-label'
238
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
239
+ "class": 'k-form-field-wrap'
240
+ }, [h(kendo_vue_inputs_1.Input, {
241
+ type: "text",
242
+ attrs: _this.v3 ? undefined : {
243
+ type: "text",
244
+ id: 'k-editor-link-url',
245
+ value: _this.hrefValue
246
+ },
247
+ id: 'k-editor-link-url',
248
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
249
+ onInput: _this.hrefChange,
250
+ on: _this.v3 ? undefined : {
251
+ "input": _this.hrefChange
252
+ },
253
+ value: _this.hrefValue
254
+ })])];
255
+ } : [h("label", {
256
+ "for": 'k-editor-link-url',
257
+ attrs: _this.v3 ? undefined : {
258
+ "for": 'k-editor-link-url'
259
+ },
260
+ "class": 'k-form-label'
261
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
262
+ "class": 'k-form-field-wrap'
263
+ }, [h(kendo_vue_inputs_1.Input, {
264
+ type: "text",
265
+ attrs: _this.v3 ? undefined : {
266
+ type: "text",
267
+ id: 'k-editor-link-url',
268
+ value: _this.hrefValue
269
+ },
270
+ id: 'k-editor-link-url',
271
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
272
+ onInput: _this.hrefChange,
273
+ on: _this.v3 ? undefined : {
274
+ "input": _this.hrefChange
275
+ },
276
+ value: _this.hrefValue
277
+ })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
278
+ return [h("label", {
279
+ "for": 'k-editor-link-text',
280
+ attrs: _this.v3 ? undefined : {
281
+ "for": 'k-editor-link-text'
282
+ },
283
+ "class": 'k-form-label'
284
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
285
+ "class": 'k-form-field-wrap'
286
+ }, [h(kendo_vue_inputs_1.Input, {
287
+ type: "text",
288
+ attrs: _this.v3 ? undefined : {
289
+ type: "text",
290
+ id: 'k-editor-link-text',
291
+ value: _this.titleValue
292
+ },
293
+ id: 'k-editor-link-text',
294
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
295
+ onInput: _this.titleChange,
296
+ on: _this.v3 ? undefined : {
297
+ "input": _this.titleChange
298
+ },
299
+ value: _this.titleValue
300
+ })])];
301
+ } : [h("label", {
302
+ "for": 'k-editor-link-text',
303
+ attrs: _this.v3 ? undefined : {
304
+ "for": 'k-editor-link-text'
305
+ },
306
+ "class": 'k-form-label'
307
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
308
+ "class": 'k-form-field-wrap'
309
+ }, [h(kendo_vue_inputs_1.Input, {
310
+ type: "text",
311
+ attrs: _this.v3 ? undefined : {
312
+ type: "text",
313
+ id: 'k-editor-link-text',
314
+ value: _this.titleValue
315
+ },
316
+ id: 'k-editor-link-text',
317
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
318
+ onInput: _this.titleChange,
319
+ on: _this.v3 ? undefined : {
320
+ "input": _this.titleChange
321
+ },
322
+ value: _this.titleValue
323
+ })])]), settings.linkTarget !== false && h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
324
+ return [h("div", {
325
+ "class": 'k-form-label'
326
+ }), h("div", {
327
+ "class": 'k-form-field-wrap'
328
+ }, [h(kendo_vue_inputs_1.Checkbox, {
329
+ "class": 'k-checkbox-wrap',
330
+ id: 'k-editor-link-target',
331
+ attrs: _this.v3 ? undefined : {
332
+ id: 'k-editor-link-target',
333
+ label: checkboxLabel,
334
+ checked: _this.targetValue
335
+ },
336
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
337
+ label: checkboxLabel,
338
+ onChange: _this.targetChange,
339
+ on: _this.v3 ? undefined : {
340
+ "change": _this.targetChange
341
+ },
342
+ checked: _this.targetValue
343
+ })])];
344
+ } : [h("div", {
345
+ "class": 'k-form-label'
346
+ }), h("div", {
347
+ "class": 'k-form-field-wrap'
348
+ }, [h(kendo_vue_inputs_1.Checkbox, {
349
+ "class": 'k-checkbox-wrap',
350
+ id: 'k-editor-link-target',
351
+ attrs: _this.v3 ? undefined : {
352
+ id: 'k-editor-link-target',
353
+ label: checkboxLabel,
354
+ checked: _this.targetValue
355
+ },
356
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
357
+ label: checkboxLabel,
358
+ onChange: _this.targetChange,
359
+ on: _this.v3 ? undefined : {
360
+ "change": _this.targetChange
361
+ },
362
+ checked: _this.targetValue
363
+ })])])])];
364
+ } : [h(kendo_vue_form_1.FormElement, {
365
+ horizontal: true,
366
+ attrs: _this.v3 ? undefined : {
367
+ horizontal: true
77
368
  }
78
- }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])])]), h("div", {
79
- "class": "k-edit-field"
80
- }, [h("span", {
81
- "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
82
- }, [h("input", {
369
+ }, _this.v3 ? function () {
370
+ return [h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
371
+ return [h("label", {
372
+ "for": 'k-editor-link-url',
373
+ attrs: _this.v3 ? undefined : {
374
+ "for": 'k-editor-link-url'
375
+ },
376
+ "class": 'k-form-label'
377
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
378
+ "class": 'k-form-field-wrap'
379
+ }, [h(kendo_vue_inputs_1.Input, {
380
+ type: "text",
381
+ attrs: _this.v3 ? undefined : {
382
+ type: "text",
383
+ id: 'k-editor-link-url',
384
+ value: _this.hrefValue
385
+ },
386
+ id: 'k-editor-link-url',
387
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
388
+ onInput: _this.hrefChange,
389
+ on: _this.v3 ? undefined : {
390
+ "input": _this.hrefChange
391
+ },
392
+ value: _this.hrefValue
393
+ })])];
394
+ } : [h("label", {
395
+ "for": 'k-editor-link-url',
396
+ attrs: _this.v3 ? undefined : {
397
+ "for": 'k-editor-link-url'
398
+ },
399
+ "class": 'k-form-label'
400
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
401
+ "class": 'k-form-field-wrap'
402
+ }, [h(kendo_vue_inputs_1.Input, {
403
+ type: "text",
404
+ attrs: _this.v3 ? undefined : {
405
+ type: "text",
406
+ id: 'k-editor-link-url',
407
+ value: _this.hrefValue
408
+ },
409
+ id: 'k-editor-link-url',
410
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
411
+ onInput: _this.hrefChange,
412
+ on: _this.v3 ? undefined : {
413
+ "input": _this.hrefChange
414
+ },
415
+ value: _this.hrefValue
416
+ })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
417
+ return [h("label", {
418
+ "for": 'k-editor-link-text',
419
+ attrs: _this.v3 ? undefined : {
420
+ "for": 'k-editor-link-text'
421
+ },
422
+ "class": 'k-form-label'
423
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
424
+ "class": 'k-form-field-wrap'
425
+ }, [h(kendo_vue_inputs_1.Input, {
426
+ type: "text",
427
+ attrs: _this.v3 ? undefined : {
428
+ type: "text",
429
+ id: 'k-editor-link-text',
430
+ value: _this.titleValue
431
+ },
432
+ id: 'k-editor-link-text',
433
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
434
+ onInput: _this.titleChange,
435
+ on: _this.v3 ? undefined : {
436
+ "input": _this.titleChange
437
+ },
438
+ value: _this.titleValue
439
+ })])];
440
+ } : [h("label", {
441
+ "for": 'k-editor-link-text',
442
+ attrs: _this.v3 ? undefined : {
443
+ "for": 'k-editor-link-text'
444
+ },
445
+ "class": 'k-form-label'
446
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
447
+ "class": 'k-form-field-wrap'
448
+ }, [h(kendo_vue_inputs_1.Input, {
449
+ type: "text",
450
+ attrs: _this.v3 ? undefined : {
451
+ type: "text",
452
+ id: 'k-editor-link-text',
453
+ value: _this.titleValue
454
+ },
455
+ id: 'k-editor-link-text',
456
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
457
+ onInput: _this.titleChange,
458
+ on: _this.v3 ? undefined : {
459
+ "input": _this.titleChange
460
+ },
461
+ value: _this.titleValue
462
+ })])]), settings.linkTarget !== false && h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
463
+ return [h("div", {
464
+ "class": 'k-form-label'
465
+ }), h("div", {
466
+ "class": 'k-form-field-wrap'
467
+ }, [h(kendo_vue_inputs_1.Checkbox, {
468
+ "class": 'k-checkbox-wrap',
469
+ id: 'k-editor-link-target',
470
+ attrs: _this.v3 ? undefined : {
471
+ id: 'k-editor-link-target',
472
+ label: checkboxLabel,
473
+ checked: _this.targetValue
474
+ },
475
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
476
+ label: checkboxLabel,
477
+ onChange: _this.targetChange,
478
+ on: _this.v3 ? undefined : {
479
+ "change": _this.targetChange
480
+ },
481
+ checked: _this.targetValue
482
+ })])];
483
+ } : [h("div", {
484
+ "class": 'k-form-label'
485
+ }), h("div", {
486
+ "class": 'k-form-field-wrap'
487
+ }, [h(kendo_vue_inputs_1.Checkbox, {
488
+ "class": 'k-checkbox-wrap',
489
+ id: 'k-editor-link-target',
490
+ attrs: _this.v3 ? undefined : {
491
+ id: 'k-editor-link-target',
492
+ label: checkboxLabel,
493
+ checked: _this.targetValue
494
+ },
495
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
496
+ label: checkboxLabel,
497
+ onChange: _this.targetChange,
498
+ on: _this.v3 ? undefined : {
499
+ "change": _this.targetChange
500
+ },
501
+ checked: _this.targetValue
502
+ })])])];
503
+ } : [h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
504
+ return [h("label", {
505
+ "for": 'k-editor-link-url',
506
+ attrs: _this.v3 ? undefined : {
507
+ "for": 'k-editor-link-url'
508
+ },
509
+ "class": 'k-form-label'
510
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
511
+ "class": 'k-form-field-wrap'
512
+ }, [h(kendo_vue_inputs_1.Input, {
513
+ type: "text",
514
+ attrs: _this.v3 ? undefined : {
515
+ type: "text",
516
+ id: 'k-editor-link-url',
517
+ value: _this.hrefValue
518
+ },
519
+ id: 'k-editor-link-url',
520
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
521
+ onInput: _this.hrefChange,
522
+ on: _this.v3 ? undefined : {
523
+ "input": _this.hrefChange
524
+ },
525
+ value: _this.hrefValue
526
+ })])];
527
+ } : [h("label", {
528
+ "for": 'k-editor-link-url',
529
+ attrs: _this.v3 ? undefined : {
530
+ "for": 'k-editor-link-url'
531
+ },
532
+ "class": 'k-form-label'
533
+ }, [localization.toLanguageString(insertHyperlinkAddress, main_1.messages[insertHyperlinkAddress])]), h("div", {
534
+ "class": 'k-form-field-wrap'
535
+ }, [h(kendo_vue_inputs_1.Input, {
83
536
  type: "text",
84
- attrs: this.v3 ? undefined : {
537
+ attrs: _this.v3 ? undefined : {
85
538
  type: "text",
86
- id: "k-editor-link-url"
539
+ id: 'k-editor-link-url',
540
+ value: _this.hrefValue
87
541
  },
88
- "class": "k-input-inner",
89
- ref: (0, kendo_vue_common_1.setRef)(this, 'href'),
90
- id: "k-editor-link-url",
91
- value: this.v3 ? linkMark && linkMark.attrs.href || undefined : null,
92
- domProps: this.v3 ? undefined : {
93
- "value": linkMark && linkMark.attrs.href || undefined
94
- }
95
- })])]), h("div", {
96
- "class": "k-edit-label k-editor-link-text-row"
97
- }, [h("label", {
98
- "for": "k-editor-link-text",
99
- attrs: this.v3 ? undefined : {
100
- "for": "k-editor-link-text"
101
- }
102
- }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])])]), h("div", {
103
- "class": "k-edit-field k-editor-link-text-row"
104
- }, [h("span", {
105
- "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
106
- }, [h("input", {
542
+ id: 'k-editor-link-url',
543
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'href'),
544
+ onInput: _this.hrefChange,
545
+ on: _this.v3 ? undefined : {
546
+ "input": _this.hrefChange
547
+ },
548
+ value: _this.hrefValue
549
+ })])]), h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
550
+ return [h("label", {
551
+ "for": 'k-editor-link-text',
552
+ attrs: _this.v3 ? undefined : {
553
+ "for": 'k-editor-link-text'
554
+ },
555
+ "class": 'k-form-label'
556
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
557
+ "class": 'k-form-field-wrap'
558
+ }, [h(kendo_vue_inputs_1.Input, {
559
+ type: "text",
560
+ attrs: _this.v3 ? undefined : {
561
+ type: "text",
562
+ id: 'k-editor-link-text',
563
+ value: _this.titleValue
564
+ },
565
+ id: 'k-editor-link-text',
566
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
567
+ onInput: _this.titleChange,
568
+ on: _this.v3 ? undefined : {
569
+ "input": _this.titleChange
570
+ },
571
+ value: _this.titleValue
572
+ })])];
573
+ } : [h("label", {
574
+ "for": 'k-editor-link-text',
575
+ attrs: _this.v3 ? undefined : {
576
+ "for": 'k-editor-link-text'
577
+ },
578
+ "class": 'k-form-label'
579
+ }, [localization.toLanguageString(insertHyperlinkTitle, main_1.messages[insertHyperlinkTitle])]), h("div", {
580
+ "class": 'k-form-field-wrap'
581
+ }, [h(kendo_vue_inputs_1.Input, {
107
582
  type: "text",
108
- attrs: this.v3 ? undefined : {
583
+ attrs: _this.v3 ? undefined : {
109
584
  type: "text",
110
- id: "k-editor-link-text"
585
+ id: 'k-editor-link-text',
586
+ value: _this.titleValue
111
587
  },
112
- "class": "k-input-inner",
113
- id: "k-editor-link-text",
114
- ref: (0, kendo_vue_common_1.setRef)(this, 'title'),
115
- value: this.v3 ? linkMark && linkMark.attrs.title || undefined : null,
116
- domProps: this.v3 ? undefined : {
117
- "value": linkMark && linkMark.attrs.title || undefined
118
- }
119
- })])]), settings.linkTarget !== false && h("div", {
120
- "class": "k-edit-field"
121
- }, [h("input", {
122
- type: "checkbox",
123
- attrs: this.v3 ? undefined : {
124
- type: "checkbox",
125
- id: "k-editor-link-target"
588
+ id: 'k-editor-link-text',
589
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'title'),
590
+ onInput: _this.titleChange,
591
+ on: _this.v3 ? undefined : {
592
+ "input": _this.titleChange
126
593
  },
127
- "class": "k-checkbox k-checkbox-md k-rounded-md",
128
- id: "k-editor-link-target",
129
- ref: (0, kendo_vue_common_1.setRef)(this, 'target'),
130
- checked: this.v3 ? linkMark && !!linkMark.attrs.target || undefined : null,
131
- domProps: this.v3 ? undefined : {
132
- "checked": linkMark && !!linkMark.attrs.target || undefined
133
- }
134
- }), h("label", {
135
- "for": "k-editor-link-target",
136
- attrs: this.v3 ? undefined : {
137
- "for": "k-editor-link-target"
594
+ value: _this.titleValue
595
+ })])]), settings.linkTarget !== false && h(kendo_vue_form_1.FieldWrapper, _this.v3 ? function () {
596
+ return [h("div", {
597
+ "class": 'k-form-label'
598
+ }), h("div", {
599
+ "class": 'k-form-field-wrap'
600
+ }, [h(kendo_vue_inputs_1.Checkbox, {
601
+ "class": 'k-checkbox-wrap',
602
+ id: 'k-editor-link-target',
603
+ attrs: _this.v3 ? undefined : {
604
+ id: 'k-editor-link-target',
605
+ label: checkboxLabel,
606
+ checked: _this.targetValue
607
+ },
608
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
609
+ label: checkboxLabel,
610
+ onChange: _this.targetChange,
611
+ on: _this.v3 ? undefined : {
612
+ "change": _this.targetChange
613
+ },
614
+ checked: _this.targetValue
615
+ })])];
616
+ } : [h("div", {
617
+ "class": 'k-form-label'
618
+ }), h("div", {
619
+ "class": 'k-form-field-wrap'
620
+ }, [h(kendo_vue_inputs_1.Checkbox, {
621
+ "class": 'k-checkbox-wrap',
622
+ id: 'k-editor-link-target',
623
+ attrs: _this.v3 ? undefined : {
624
+ id: 'k-editor-link-target',
625
+ label: checkboxLabel,
626
+ checked: _this.targetValue
138
627
  },
139
- "class": "k-checkbox-label"
140
- }, [localization.toLanguageString(insertHyperlinkNewWindow, main_1.messages[insertHyperlinkNewWindow])])])]);
628
+ ref: (0, kendo_vue_common_1.setRef)(_this, 'target'),
629
+ label: checkboxLabel,
630
+ onChange: _this.targetChange,
631
+ on: _this.v3 ? undefined : {
632
+ "change": _this.targetChange
633
+ },
634
+ checked: _this.targetValue
635
+ })])])])]);
141
636
  var dialog =
142
637
  // @ts-ignore function children
143
638
  h(kendo_vue_dialogs_1.Window, {
@@ -309,6 +804,15 @@ var InsertLinkDialogVue2 = {
309
804
  return dialog;
310
805
  },
311
806
  methods: {
807
+ hrefChange: function hrefChange(e) {
808
+ this.hrefValue = e.value;
809
+ },
810
+ titleChange: function titleChange(e) {
811
+ this.titleValue = e.value;
812
+ },
813
+ targetChange: function targetChange(e) {
814
+ this.targetValue = e.value;
815
+ },
312
816
  onClose: function onClose() {
313
817
  this.$props.view.focus();
314
818
  this.$emit('close');
@@ -317,9 +821,9 @@ var InsertLinkDialogVue2 = {
317
821
  var view = this.$props.view;
318
822
  var mark = this.$props.settings.mark;
319
823
  var attrs = {
320
- href: this.href ? this.href.value : undefined,
321
- title: this.title ? this.title.value : undefined,
322
- target: this.target && this.target.checked ? '_blank' : undefined
824
+ href: this.href ? this.hrefValue : undefined,
825
+ title: this.title ? this.titleValue : undefined,
826
+ target: this.target && this.targetValue ? '_blank' : undefined
323
827
  };
324
828
  (0, kendo_editor_common_1.applyLink)({
325
829
  mark: mark,