@progress/kendo-vue-editor 2.7.3-dev.202201070829 → 2.8.0-dev.202201131525

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 (112) hide show
  1. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  2. package/dist/es/Editor.d.ts +49 -131
  3. package/dist/es/Editor.js +40 -21
  4. package/dist/es/EditorProps.d.ts +11 -5
  5. package/dist/es/additionalTypes.ts +7 -1
  6. package/dist/es/dialogs/FindReplace.d.ts +6 -7
  7. package/dist/es/dialogs/FindReplace.js +190 -127
  8. package/dist/es/dialogs/insertImage.d.ts +5 -6
  9. package/dist/es/dialogs/insertImage.js +23 -13
  10. package/dist/es/dialogs/insertLink.d.ts +5 -6
  11. package/dist/es/dialogs/insertLink.js +12 -8
  12. package/dist/es/dialogs/viewHtml.d.ts +5 -6
  13. package/dist/es/dialogs/viewHtml.js +3 -3
  14. package/dist/es/package-metadata.js +1 -1
  15. package/dist/es/tools/align.d.ts +5 -6
  16. package/dist/es/tools/align.js +3 -3
  17. package/dist/es/tools/applyColor.d.ts +5 -6
  18. package/dist/es/tools/applyColor.js +3 -3
  19. package/dist/es/tools/cleanFormatting.d.ts +5 -6
  20. package/dist/es/tools/cleanFormatting.js +3 -3
  21. package/dist/es/tools/findReplace.d.ts +5 -6
  22. package/dist/es/tools/findReplace.js +3 -3
  23. package/dist/es/tools/fontStyle.d.ts +5 -6
  24. package/dist/es/tools/fontStyle.js +3 -3
  25. package/dist/es/tools/formatBlock.d.ts +5 -6
  26. package/dist/es/tools/formatBlock.js +3 -3
  27. package/dist/es/tools/indent.d.ts +5 -6
  28. package/dist/es/tools/indent.js +3 -3
  29. package/dist/es/tools/inlineFormat.d.ts +5 -6
  30. package/dist/es/tools/inlineFormat.js +3 -3
  31. package/dist/es/tools/insertImage.d.ts +5 -6
  32. package/dist/es/tools/insertImage.js +3 -3
  33. package/dist/es/tools/insertLink.d.ts +5 -6
  34. package/dist/es/tools/insertLink.js +3 -3
  35. package/dist/es/tools/insertTable/popup.d.ts +5 -6
  36. package/dist/es/tools/insertTable/popup.js +3 -3
  37. package/dist/es/tools/insertTable/popupGrid.d.ts +5 -6
  38. package/dist/es/tools/insertTable/popupGrid.js +3 -3
  39. package/dist/es/tools/insertTable/tool.d.ts +5 -6
  40. package/dist/es/tools/insertTable/tool.js +3 -3
  41. package/dist/es/tools/lists.d.ts +5 -6
  42. package/dist/es/tools/lists.js +3 -3
  43. package/dist/es/tools/outdent.d.ts +5 -6
  44. package/dist/es/tools/outdent.js +3 -3
  45. package/dist/es/tools/pdf.d.ts +5 -6
  46. package/dist/es/tools/pdf.js +3 -3
  47. package/dist/es/tools/print.d.ts +5 -6
  48. package/dist/es/tools/print.js +3 -3
  49. package/dist/es/tools/proseMirrorTool.d.ts +5 -6
  50. package/dist/es/tools/proseMirrorTool.js +3 -3
  51. package/dist/es/tools/selectAll.d.ts +5 -6
  52. package/dist/es/tools/selectAll.js +3 -3
  53. package/dist/es/tools/unlink.d.ts +5 -6
  54. package/dist/es/tools/unlink.js +3 -3
  55. package/dist/es/tools/viewHtml.d.ts +5 -6
  56. package/dist/es/tools/viewHtml.js +3 -3
  57. package/dist/npm/Editor.d.ts +49 -131
  58. package/dist/npm/Editor.js +42 -23
  59. package/dist/npm/EditorProps.d.ts +11 -5
  60. package/dist/npm/additionalTypes.ts +7 -1
  61. package/dist/npm/dialogs/FindReplace.d.ts +6 -7
  62. package/dist/npm/dialogs/FindReplace.js +193 -129
  63. package/dist/npm/dialogs/insertImage.d.ts +5 -6
  64. package/dist/npm/dialogs/insertImage.js +25 -15
  65. package/dist/npm/dialogs/insertLink.d.ts +5 -6
  66. package/dist/npm/dialogs/insertLink.js +14 -10
  67. package/dist/npm/dialogs/viewHtml.d.ts +5 -6
  68. package/dist/npm/dialogs/viewHtml.js +5 -5
  69. package/dist/npm/package-metadata.js +1 -1
  70. package/dist/npm/tools/align.d.ts +5 -6
  71. package/dist/npm/tools/align.js +5 -5
  72. package/dist/npm/tools/applyColor.d.ts +5 -6
  73. package/dist/npm/tools/applyColor.js +5 -5
  74. package/dist/npm/tools/cleanFormatting.d.ts +5 -6
  75. package/dist/npm/tools/cleanFormatting.js +5 -5
  76. package/dist/npm/tools/findReplace.d.ts +5 -6
  77. package/dist/npm/tools/findReplace.js +5 -5
  78. package/dist/npm/tools/fontStyle.d.ts +5 -6
  79. package/dist/npm/tools/fontStyle.js +5 -5
  80. package/dist/npm/tools/formatBlock.d.ts +5 -6
  81. package/dist/npm/tools/formatBlock.js +5 -5
  82. package/dist/npm/tools/indent.d.ts +5 -6
  83. package/dist/npm/tools/indent.js +5 -5
  84. package/dist/npm/tools/inlineFormat.d.ts +5 -6
  85. package/dist/npm/tools/inlineFormat.js +5 -5
  86. package/dist/npm/tools/insertImage.d.ts +5 -6
  87. package/dist/npm/tools/insertImage.js +5 -5
  88. package/dist/npm/tools/insertLink.d.ts +5 -6
  89. package/dist/npm/tools/insertLink.js +5 -5
  90. package/dist/npm/tools/insertTable/popup.d.ts +5 -6
  91. package/dist/npm/tools/insertTable/popup.js +5 -5
  92. package/dist/npm/tools/insertTable/popupGrid.d.ts +5 -6
  93. package/dist/npm/tools/insertTable/popupGrid.js +5 -5
  94. package/dist/npm/tools/insertTable/tool.d.ts +5 -6
  95. package/dist/npm/tools/insertTable/tool.js +5 -5
  96. package/dist/npm/tools/lists.d.ts +5 -6
  97. package/dist/npm/tools/lists.js +5 -5
  98. package/dist/npm/tools/outdent.d.ts +5 -6
  99. package/dist/npm/tools/outdent.js +5 -5
  100. package/dist/npm/tools/pdf.d.ts +5 -6
  101. package/dist/npm/tools/pdf.js +5 -5
  102. package/dist/npm/tools/print.d.ts +5 -6
  103. package/dist/npm/tools/print.js +5 -5
  104. package/dist/npm/tools/proseMirrorTool.d.ts +5 -6
  105. package/dist/npm/tools/proseMirrorTool.js +5 -5
  106. package/dist/npm/tools/selectAll.d.ts +5 -6
  107. package/dist/npm/tools/selectAll.js +5 -5
  108. package/dist/npm/tools/unlink.d.ts +5 -6
  109. package/dist/npm/tools/unlink.js +5 -5
  110. package/dist/npm/tools/viewHtml.d.ts +5 -6
  111. package/dist/npm/tools/viewHtml.js +5 -5
  112. package/package.json +12 -12
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ import { Button } from '@progress/kendo-vue-buttons';
5
6
  import { Window } from '@progress/kendo-vue-dialogs';
6
7
  import { TabStrip, TabStripTab } from '@progress/kendo-vue-layout';
7
8
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
@@ -13,7 +14,7 @@ var enter = 13,
13
14
  esc = 27;
14
15
  var settings = EditorToolsSettings.findAndReplace; // tslint:enable:max-line-length
15
16
 
16
- var FindAndReplaceDialog = {
17
+ var FindAndReplaceDialogVue2 = {
17
18
  name: 'KendoFindAndReplaceDialog',
18
19
  props: {
19
20
  view: Object,
@@ -30,6 +31,10 @@ var FindAndReplaceDialog = {
30
31
  default: null
31
32
  }
32
33
  },
34
+ created: function created() {
35
+ this._prevMatch = undefined;
36
+ this.nextMatch = undefined;
37
+ },
33
38
  data: function data() {
34
39
  return {
35
40
  selectedTab: 0,
@@ -39,24 +44,26 @@ var FindAndReplaceDialog = {
39
44
  matchWord: false,
40
45
  matchCyclic: false,
41
46
  useRegExp: false,
42
- nextMatch: undefined
47
+ matches: [],
48
+ hasMounted: false
43
49
  };
44
50
  },
45
51
  mounted: function mounted() {
46
52
  if (this.$el) {
47
53
  document.body.append(this.$el);
48
54
  }
55
+
56
+ this.setNextState();
57
+ this.hasMounted = true;
49
58
  },
50
59
 
51
60
  /**
52
61
  * @hidden
53
62
  */
54
63
  updated: function updated() {
64
+ var matches = this.matches || [];
65
+ var nextMatch = this.nextMatch;
55
66
  var view = this.$props.view;
56
- var _a = this.$data,
57
- _b = _a.matches,
58
- matches = _b === void 0 ? [] : _b,
59
- nextMatch = _a.nextMatch;
60
67
 
61
68
  if (this._prevMatch !== nextMatch) {
62
69
  var state = view.state; // highlight selection
@@ -88,11 +95,6 @@ var FindAndReplaceDialog = {
88
95
  this.$el.remove();
89
96
  }
90
97
  },
91
- watch: {
92
- nextMatch: function nextMatch(_newNextMatch, oldMatch) {
93
- this._prevMatch = oldMatch;
94
- }
95
- },
96
98
  // @ts-ignore
97
99
  setup: !gh ? undefined : function () {
98
100
  var v3 = !!gh;
@@ -134,7 +136,7 @@ var FindAndReplaceDialog = {
134
136
  var checkboxes = h("div", {
135
137
  "class": "k-search-options"
136
138
  }, [h("span", [h("input", {
137
- "class": "k-checkbox",
139
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
138
140
  type: "checkbox",
139
141
  attrs: this.v3 ? undefined : {
140
142
  type: "checkbox",
@@ -156,7 +158,7 @@ var FindAndReplaceDialog = {
156
158
  },
157
159
  "class": "k-checkbox-label"
158
160
  }, [localization.toLanguageString(findReplaceMatchCase, messages[findReplaceMatchCase])])]), h("span", [h("input", {
159
- "class": "k-checkbox",
161
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
160
162
  type: "checkbox",
161
163
  attrs: this.v3 ? undefined : {
162
164
  type: "checkbox",
@@ -178,7 +180,7 @@ var FindAndReplaceDialog = {
178
180
  },
179
181
  "class": "k-checkbox-label"
180
182
  }, [localization.toLanguageString(findReplaceMatchWord, messages[findReplaceMatchWord])])]), h("span", [h("input", {
181
- "class": "k-checkbox",
183
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
182
184
  type: "checkbox",
183
185
  attrs: this.v3 ? undefined : {
184
186
  type: "checkbox",
@@ -200,7 +202,7 @@ var FindAndReplaceDialog = {
200
202
  },
201
203
  "class": "k-checkbox-label"
202
204
  }, [localization.toLanguageString(findReplaceMatchCyclic, messages[findReplaceMatchCyclic])])]), h("span", [h("input", {
203
- "class": "k-checkbox",
205
+ "class": "k-checkbox k-checkbox-md k-rounded-md",
204
206
  type: "checkbox",
205
207
  attrs: this.v3 ? undefined : {
206
208
  type: "checkbox",
@@ -222,58 +224,92 @@ var FindAndReplaceDialog = {
222
224
  },
223
225
  "class": "k-checkbox-label"
224
226
  }, [localization.toLanguageString(findReplaceUseRegExp, messages[findReplaceUseRegExp])])])]);
225
- var navigation = h("div", {
226
- "class": "k-matches-container"
227
- }, [h("button", {
228
- "class": "k-button k-flat k-primary",
229
- onClick: this.onFindPrev,
230
- on: this.v3 ? undefined : {
231
- "click": this.onFindPrev
232
- }
233
- }, [h("span", {
234
- "class": "k-icon k-i-arrow-chevron-left"
235
- }), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])]), h("span", [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages[findReplaceMatches]))]), h("button", {
236
- "class": "k-button k-flat k-primary",
237
- onClick: this.onFindNext,
238
- on: this.v3 ? undefined : {
239
- "click": this.onFindNext
240
- }
241
- }, [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
242
- "class": "k-icon k-i-arrow-chevron-right"
243
- })])]);
244
- var findWhatLabel = h("div", {
245
- "class": "k-edit-label"
246
- }, [h("label", {
247
- "for": "findWhat",
248
- attrs: this.v3 ? undefined : {
249
- "for": "findWhat"
250
- }
251
- }, [localization.toLanguageString(findReplaceFindWhat, messages[findReplaceFindWhat])])]);
252
- var findWhat = h("div", {
253
- "class": "k-edit-field"
254
- }, [h("input", {
255
- id: "findWhat",
256
- attrs: this.v3 ? undefined : {
257
- id: "findWhat",
227
+
228
+ var navigation = function navigation(findWhatRef) {
229
+ return h("div", {
230
+ "class": "k-matches-container"
231
+ }, [// @ts-ignore function children
232
+ h(Button, {
233
+ fillMode: 'flat',
234
+ attrs: this.v3 ? undefined : {
235
+ fillMode: 'flat',
236
+ themeColor: 'primary'
237
+ },
238
+ themeColor: 'primary',
239
+ onClick: this.onFindPrev,
240
+ on: this.v3 ? undefined : {
241
+ "click": this.onFindPrev
242
+ }
243
+ }, this.v3 ? function () {
244
+ return [h("span", {
245
+ "class": "k-icon k-i-arrow-chevron-left"
246
+ }), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])];
247
+ } : [h("span", {
248
+ "class": "k-icon k-i-arrow-chevron-left"
249
+ }), localization.toLanguageString(findReplacePrevMatch, messages[findReplacePrevMatch])]), this.hasMounted && h("span", {
250
+ ref: findWhatRef
251
+ }, [this.matchesMessage(localization.toLanguageString(findReplaceMatches, messages[findReplaceMatches]))]), // @ts-ignore function children
252
+ h(Button, {
253
+ fillMode: 'flat',
254
+ attrs: this.v3 ? undefined : {
255
+ fillMode: 'flat',
256
+ themeColor: 'primary'
257
+ },
258
+ themeColor: 'primary',
259
+ onClick: this.onFindNext,
260
+ on: this.v3 ? undefined : {
261
+ "click": this.onFindNext
262
+ }
263
+ }, this.v3 ? function () {
264
+ return [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
265
+ "class": "k-icon k-i-arrow-chevron-right"
266
+ })];
267
+ } : [localization.toLanguageString(findReplaceNextMatch, messages[findReplaceNextMatch]), h("span", {
268
+ "class": "k-icon k-i-arrow-chevron-right"
269
+ })])]);
270
+ };
271
+
272
+ var findWhatLabel = function findWhatLabel(findWhatId) {
273
+ return h("div", {
274
+ "class": "k-edit-label"
275
+ }, [h("label", {
276
+ ref: findWhatId,
277
+ "for": findWhatId,
278
+ attrs: this.v3 ? undefined : {
279
+ "for": findWhatId
280
+ }
281
+ }, [localization.toLanguageString(findReplaceFindWhat, messages[findReplaceFindWhat])])]);
282
+ };
283
+
284
+ var findWhat = function findWhat(findWhatId) {
285
+ return h("div", {
286
+ "class": "k-edit-field"
287
+ }, [h("span", {
288
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
289
+ }, [h("input", {
290
+ id: findWhatId,
291
+ attrs: this.v3 ? undefined : {
292
+ id: findWhatId,
293
+ type: "text"
294
+ },
295
+ ref: findWhatId,
258
296
  type: "text",
259
- autoFocus: true
260
- },
261
- type: "text",
262
- "class": "k-textbox",
263
- value: this.v3 ? searchText : null,
264
- domProps: this.v3 ? undefined : {
265
- "value": searchText
266
- },
267
- onInput: this.onSearchChange,
268
- on: this.v3 ? undefined : {
269
- "input": this.onSearchChange,
270
- "focus": this.onSearchChange,
271
- "keydown": this.onKeyDown
272
- },
273
- onFocus: this.onSearchChange,
274
- onKeydown: this.onKeyDown,
275
- autoFocus: true
276
- })]);
297
+ "class": "k-input-inner",
298
+ value: this.v3 ? searchText : null,
299
+ domProps: this.v3 ? undefined : {
300
+ "value": searchText
301
+ },
302
+ onInput: this.onSearchChange,
303
+ on: this.v3 ? undefined : {
304
+ "input": this.onSearchChange,
305
+ "focus": this.onSearchChange,
306
+ "keydown": this.onKeyDown
307
+ },
308
+ onFocus: this.onSearchChange,
309
+ onKeydown: this.onKeyDown
310
+ })])]);
311
+ };
312
+
277
313
  var replaceWithLabel = h("div", {
278
314
  "class": "k-edit-label"
279
315
  }, [h("label", {
@@ -284,13 +320,15 @@ var FindAndReplaceDialog = {
284
320
  }, [localization.toLanguageString(findReplaceReplaceWith, messages[findReplaceReplaceWith])])]);
285
321
  var replaceWith = h("div", {
286
322
  "class": "k-edit-field"
323
+ }, [h("span", {
324
+ "class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
287
325
  }, [h("input", {
288
326
  id: "replaceWith",
289
327
  attrs: this.v3 ? undefined : {
290
328
  id: "replaceWith",
291
329
  type: "text"
292
330
  },
293
- "class": "k-textbox",
331
+ "class": "k-input-inner",
294
332
  type: "text",
295
333
  value: this.v3 ? replaceText : null,
296
334
  domProps: this.v3 ? undefined : {
@@ -300,7 +338,7 @@ var FindAndReplaceDialog = {
300
338
  on: this.v3 ? undefined : {
301
339
  "input": this.onReplaceChange
302
340
  }
303
- })]);
341
+ })])]);
304
342
  return (// @ts-ignore function children
305
343
  h(Window, {
306
344
  title: localization.toLanguageString(findReplaceDialogTitle, messages[findReplaceDialogTitle]),
@@ -359,10 +397,10 @@ var FindAndReplaceDialog = {
359
397
  }, _this.v3 ? function () {
360
398
  return [h("div", {
361
399
  "class": "k-edit-form-container"
362
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
400
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
363
401
  } : [h("div", {
364
402
  "class": "k-edit-form-container"
365
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), // @ts-ignore function children
403
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), // @ts-ignore function children
366
404
  h(TabStripTab, {
367
405
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
368
406
  attrs: _this.v3 ? undefined : {
@@ -371,10 +409,10 @@ var FindAndReplaceDialog = {
371
409
  }, _this.v3 ? function () {
372
410
  return [h("div", {
373
411
  "class": "k-edit-form-container"
374
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
412
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
375
413
  "class": "k-actions k-hstack k-justify-content-end"
376
- }, [h("button", {
377
- "class": "k-button",
414
+ }, [// @ts-ignore function children
415
+ h(Button, {
378
416
  disabled: !Boolean(nextMatch),
379
417
  attrs: _this.v3 ? undefined : {
380
418
  disabled: !Boolean(nextMatch)
@@ -383,8 +421,10 @@ var FindAndReplaceDialog = {
383
421
  on: _this.v3 ? undefined : {
384
422
  "click": _this.onReplace
385
423
  }
386
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
387
- "class": "k-button",
424
+ }, _this.v3 ? function () {
425
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
426
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), // @ts-ignore function children
427
+ h(Button, {
388
428
  disabled: !Boolean(nextMatch),
389
429
  attrs: _this.v3 ? undefined : {
390
430
  disabled: !Boolean(nextMatch)
@@ -393,13 +433,14 @@ var FindAndReplaceDialog = {
393
433
  on: _this.v3 ? undefined : {
394
434
  "click": _this.onReplaceAll
395
435
  }
396
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
436
+ }, _this.v3 ? function () {
437
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
438
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
397
439
  } : [h("div", {
398
440
  "class": "k-edit-form-container"
399
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
441
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
400
442
  "class": "k-actions k-hstack k-justify-content-end"
401
- }, [h("button", {
402
- "class": "k-button",
443
+ }, [h(Button, {
403
444
  disabled: !Boolean(nextMatch),
404
445
  attrs: _this.v3 ? undefined : {
405
446
  disabled: !Boolean(nextMatch)
@@ -408,8 +449,9 @@ var FindAndReplaceDialog = {
408
449
  on: _this.v3 ? undefined : {
409
450
  "click": _this.onReplace
410
451
  }
411
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
412
- "class": "k-button",
452
+ }, _this.v3 ? function () {
453
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
454
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
413
455
  disabled: !Boolean(nextMatch),
414
456
  attrs: _this.v3 ? undefined : {
415
457
  disabled: !Boolean(nextMatch)
@@ -418,7 +460,9 @@ var FindAndReplaceDialog = {
418
460
  on: _this.v3 ? undefined : {
419
461
  "click": _this.onReplaceAll
420
462
  }
421
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
463
+ }, _this.v3 ? function () {
464
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
465
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
422
466
  } : [h(TabStripTab, {
423
467
  title: localization.toLanguageString(findReplaceTabFind, messages[findReplaceTabFind]),
424
468
  attrs: _this.v3 ? undefined : {
@@ -427,10 +471,10 @@ var FindAndReplaceDialog = {
427
471
  }, _this.v3 ? function () {
428
472
  return [h("div", {
429
473
  "class": "k-edit-form-container"
430
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
474
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
431
475
  } : [h("div", {
432
476
  "class": "k-edit-form-container"
433
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
477
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
434
478
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
435
479
  attrs: _this.v3 ? undefined : {
436
480
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
@@ -438,10 +482,9 @@ var FindAndReplaceDialog = {
438
482
  }, _this.v3 ? function () {
439
483
  return [h("div", {
440
484
  "class": "k-edit-form-container"
441
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
485
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
442
486
  "class": "k-actions k-hstack k-justify-content-end"
443
- }, [h("button", {
444
- "class": "k-button",
487
+ }, [h(Button, {
445
488
  disabled: !Boolean(nextMatch),
446
489
  attrs: _this.v3 ? undefined : {
447
490
  disabled: !Boolean(nextMatch)
@@ -450,8 +493,9 @@ var FindAndReplaceDialog = {
450
493
  on: _this.v3 ? undefined : {
451
494
  "click": _this.onReplace
452
495
  }
453
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
454
- "class": "k-button",
496
+ }, _this.v3 ? function () {
497
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
498
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
455
499
  disabled: !Boolean(nextMatch),
456
500
  attrs: _this.v3 ? undefined : {
457
501
  disabled: !Boolean(nextMatch)
@@ -460,13 +504,14 @@ var FindAndReplaceDialog = {
460
504
  on: _this.v3 ? undefined : {
461
505
  "click": _this.onReplaceAll
462
506
  }
463
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
507
+ }, _this.v3 ? function () {
508
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
509
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
464
510
  } : [h("div", {
465
511
  "class": "k-edit-form-container"
466
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
512
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
467
513
  "class": "k-actions k-hstack k-justify-content-end"
468
- }, [h("button", {
469
- "class": "k-button",
514
+ }, [h(Button, {
470
515
  disabled: !Boolean(nextMatch),
471
516
  attrs: _this.v3 ? undefined : {
472
517
  disabled: !Boolean(nextMatch)
@@ -475,8 +520,9 @@ var FindAndReplaceDialog = {
475
520
  on: _this.v3 ? undefined : {
476
521
  "click": _this.onReplace
477
522
  }
478
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
479
- "class": "k-button",
523
+ }, _this.v3 ? function () {
524
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
525
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
480
526
  disabled: !Boolean(nextMatch),
481
527
  attrs: _this.v3 ? undefined : {
482
528
  disabled: !Boolean(nextMatch)
@@ -485,7 +531,9 @@ var FindAndReplaceDialog = {
485
531
  on: _this.v3 ? undefined : {
486
532
  "click": _this.onReplaceAll
487
533
  }
488
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])])];
534
+ }, _this.v3 ? function () {
535
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
536
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])];
489
537
  } : [h(TabStrip, {
490
538
  selected: _this.selectedTab,
491
539
  attrs: _this.v3 ? undefined : {
@@ -507,10 +555,10 @@ var FindAndReplaceDialog = {
507
555
  }, _this.v3 ? function () {
508
556
  return [h("div", {
509
557
  "class": "k-edit-form-container"
510
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
558
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
511
559
  } : [h("div", {
512
560
  "class": "k-edit-form-container"
513
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
561
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
514
562
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
515
563
  attrs: _this.v3 ? undefined : {
516
564
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
@@ -518,10 +566,9 @@ var FindAndReplaceDialog = {
518
566
  }, _this.v3 ? function () {
519
567
  return [h("div", {
520
568
  "class": "k-edit-form-container"
521
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
569
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
522
570
  "class": "k-actions k-hstack k-justify-content-end"
523
- }, [h("button", {
524
- "class": "k-button",
571
+ }, [h(Button, {
525
572
  disabled: !Boolean(nextMatch),
526
573
  attrs: _this.v3 ? undefined : {
527
574
  disabled: !Boolean(nextMatch)
@@ -530,8 +577,9 @@ var FindAndReplaceDialog = {
530
577
  on: _this.v3 ? undefined : {
531
578
  "click": _this.onReplace
532
579
  }
533
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
534
- "class": "k-button",
580
+ }, _this.v3 ? function () {
581
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
582
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
535
583
  disabled: !Boolean(nextMatch),
536
584
  attrs: _this.v3 ? undefined : {
537
585
  disabled: !Boolean(nextMatch)
@@ -540,13 +588,14 @@ var FindAndReplaceDialog = {
540
588
  on: _this.v3 ? undefined : {
541
589
  "click": _this.onReplaceAll
542
590
  }
543
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
591
+ }, _this.v3 ? function () {
592
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
593
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
544
594
  } : [h("div", {
545
595
  "class": "k-edit-form-container"
546
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
596
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
547
597
  "class": "k-actions k-hstack k-justify-content-end"
548
- }, [h("button", {
549
- "class": "k-button",
598
+ }, [h(Button, {
550
599
  disabled: !Boolean(nextMatch),
551
600
  attrs: _this.v3 ? undefined : {
552
601
  disabled: !Boolean(nextMatch)
@@ -555,8 +604,9 @@ var FindAndReplaceDialog = {
555
604
  on: _this.v3 ? undefined : {
556
605
  "click": _this.onReplace
557
606
  }
558
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
559
- "class": "k-button",
607
+ }, _this.v3 ? function () {
608
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
609
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
560
610
  disabled: !Boolean(nextMatch),
561
611
  attrs: _this.v3 ? undefined : {
562
612
  disabled: !Boolean(nextMatch)
@@ -565,7 +615,9 @@ var FindAndReplaceDialog = {
565
615
  on: _this.v3 ? undefined : {
566
616
  "click": _this.onReplaceAll
567
617
  }
568
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])];
618
+ }, _this.v3 ? function () {
619
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
620
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])];
569
621
  } : [h(TabStripTab, {
570
622
  title: localization.toLanguageString(findReplaceTabFind, messages[findReplaceTabFind]),
571
623
  attrs: _this.v3 ? undefined : {
@@ -574,10 +626,10 @@ var FindAndReplaceDialog = {
574
626
  }, _this.v3 ? function () {
575
627
  return [h("div", {
576
628
  "class": "k-edit-form-container"
577
- }, [findWhatLabel, findWhat]), checkboxes, navigation];
629
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')];
578
630
  } : [h("div", {
579
631
  "class": "k-edit-form-container"
580
- }, [findWhatLabel, findWhat]), checkboxes, navigation]), h(TabStripTab, {
632
+ }, [findWhatLabel.call(_this, 'findWhatFind'), findWhat.call(_this, 'findWhatFind')]), checkboxes, navigation.call(_this, 'findWhatFind')]), h(TabStripTab, {
581
633
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace]),
582
634
  attrs: _this.v3 ? undefined : {
583
635
  title: localization.toLanguageString(findReplaceTabReplace, messages[findReplaceTabReplace])
@@ -585,10 +637,9 @@ var FindAndReplaceDialog = {
585
637
  }, _this.v3 ? function () {
586
638
  return [h("div", {
587
639
  "class": "k-edit-form-container"
588
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
640
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
589
641
  "class": "k-actions k-hstack k-justify-content-end"
590
- }, [h("button", {
591
- "class": "k-button",
642
+ }, [h(Button, {
592
643
  disabled: !Boolean(nextMatch),
593
644
  attrs: _this.v3 ? undefined : {
594
645
  disabled: !Boolean(nextMatch)
@@ -597,8 +648,9 @@ var FindAndReplaceDialog = {
597
648
  on: _this.v3 ? undefined : {
598
649
  "click": _this.onReplace
599
650
  }
600
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
601
- "class": "k-button",
651
+ }, _this.v3 ? function () {
652
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
653
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
602
654
  disabled: !Boolean(nextMatch),
603
655
  attrs: _this.v3 ? undefined : {
604
656
  disabled: !Boolean(nextMatch)
@@ -607,13 +659,14 @@ var FindAndReplaceDialog = {
607
659
  on: _this.v3 ? undefined : {
608
660
  "click": _this.onReplaceAll
609
661
  }
610
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation];
662
+ }, _this.v3 ? function () {
663
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
664
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')];
611
665
  } : [h("div", {
612
666
  "class": "k-edit-form-container"
613
- }, [findWhatLabel, findWhat, replaceWithLabel, replaceWith]), h("div", {
667
+ }, [findWhatLabel.call(_this, 'findWhatReplace'), findWhat.call(_this, 'findWhatReplace'), replaceWithLabel, replaceWith]), h("div", {
614
668
  "class": "k-actions k-hstack k-justify-content-end"
615
- }, [h("button", {
616
- "class": "k-button",
669
+ }, [h(Button, {
617
670
  disabled: !Boolean(nextMatch),
618
671
  attrs: _this.v3 ? undefined : {
619
672
  disabled: !Boolean(nextMatch)
@@ -622,8 +675,9 @@ var FindAndReplaceDialog = {
622
675
  on: _this.v3 ? undefined : {
623
676
  "click": _this.onReplace
624
677
  }
625
- }, [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h("button", {
626
- "class": "k-button",
678
+ }, _this.v3 ? function () {
679
+ return [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])];
680
+ } : [localization.toLanguageString(findReplaceReplace, messages[findReplaceReplace])]), h(Button, {
627
681
  disabled: !Boolean(nextMatch),
628
682
  attrs: _this.v3 ? undefined : {
629
683
  disabled: !Boolean(nextMatch)
@@ -632,7 +686,9 @@ var FindAndReplaceDialog = {
632
686
  on: _this.v3 ? undefined : {
633
687
  "click": _this.onReplaceAll
634
688
  }
635
- }, [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation])])])
689
+ }, _this.v3 ? function () {
690
+ return [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])];
691
+ } : [localization.toLanguageString(findReplaceReplaceAll, messages[findReplaceReplaceAll])])]), checkboxes, navigation.call(_this, 'findWhatReplace')])])])
636
692
  ); // document.body);
637
693
  },
638
694
  methods: {
@@ -695,7 +751,12 @@ var FindAndReplaceDialog = {
695
751
  var transaction = view.state.tr.setSelection(selectionResult);
696
752
  transaction.scrollIntoView();
697
753
  view.updateState(view.state.apply(transaction));
754
+ this._prevMatch = this.nextMatch;
698
755
  this.nextMatch = selectionResult;
756
+
757
+ if (this._prevMatch !== this.nextMatch) {
758
+ this.$forceUpdate();
759
+ }
699
760
  }
700
761
  },
701
762
  onReplace: function onReplace() {
@@ -776,14 +837,16 @@ var FindAndReplaceDialog = {
776
837
  var nextMatch = !this.searchText && matches[0] || matches.find(function (match) {
777
838
  return match.from >= selection_1.from;
778
839
  }) || this.matchCyclic && matches[0] || undefined;
840
+ this._prevMatch = this.nextMatch;
779
841
  this.matches = matches;
780
842
  this.nextMatch = nextMatch;
781
843
  } else {
782
- this.matches = undefined;
844
+ this._prevMatch = this.nextMatch;
845
+ this.matches = [];
783
846
  this.nextMatch = undefined;
784
847
  }
785
848
  }
786
849
  }
787
850
  };
788
- var FindAndReplaceDialogVue3 = FindAndReplaceDialog;
789
- export { FindAndReplaceDialog, FindAndReplaceDialogVue3 };
851
+ var FindAndReplaceDialog = FindAndReplaceDialogVue2;
852
+ export { FindAndReplaceDialog, FindAndReplaceDialogVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -45,8 +44,8 @@ export interface InsertImageDialogData {
45
44
  /**
46
45
  * @hidden
47
46
  */
48
- export interface InsertImageDialogAll extends Vue, InsertImageDialogMethods, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogState {
47
+ export interface InsertImageDialogAll extends Vue2type, InsertImageDialogMethods, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogState {
49
48
  }
50
- declare let InsertImageDialog: ComponentOptions<InsertImageDialogAll, DefaultData<InsertImageDialogData>, DefaultMethods<InsertImageDialogAll>, InsertImageDialogComputed, RecordPropsDefinition<InsertImageDialogProps>>;
51
- declare const InsertImageDialogVue3: DefineComponent<InsertImageDialogProps, any, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogMethods, {}, {}, {}, string, InsertImageDialogProps, InsertImageDialogProps, {}>;
52
- export { InsertImageDialog, InsertImageDialogVue3 };
49
+ declare let InsertImageDialogVue2: ComponentOptions<InsertImageDialogAll, DefaultData<InsertImageDialogData>, DefaultMethods<InsertImageDialogAll>, InsertImageDialogComputed, RecordPropsDefinition<InsertImageDialogProps>>;
50
+ declare const InsertImageDialog: DefineComponent<InsertImageDialogProps, any, InsertImageDialogData, InsertImageDialogComputed, InsertImageDialogMethods, {}, {}, {}, string, InsertImageDialogProps, InsertImageDialogProps, {}>;
51
+ export { InsertImageDialog, InsertImageDialogVue2 };