@progress/kendo-angular-editor 2.5.0-dev.202111240844 → 3.0.0-dev.202112211443

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 (194) hide show
  1. package/dist/cdn/js/kendo-angular-editor.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/common/error-messages.js +3 -2
  4. package/dist/es/editor.component.js +102 -69
  5. package/dist/es/index.js +1 -0
  6. package/dist/es/main.js +1 -0
  7. package/dist/es/package-metadata.js +1 -1
  8. package/dist/es/preventable-events/paste-event-data.js +4 -0
  9. package/dist/es/preventable-events/paste-event.js +25 -0
  10. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  11. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  12. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  13. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  14. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  15. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  16. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  17. package/dist/es/tools/format/editor-format.component.js +9 -3
  18. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  19. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  20. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  21. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  22. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  23. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  24. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  25. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  26. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  27. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  28. package/dist/es/tools/print/editor-print-button.directive.js +5 -3
  29. package/dist/es/tools/select-all/select-all-button.directive.js +5 -3
  30. package/dist/es/tools/shared/editor-command-base.js +3 -1
  31. package/dist/es/tools/shared/editor-command-button.js +3 -2
  32. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  33. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  34. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  35. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  39. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  40. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  41. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  42. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  43. package/dist/es/tools/tools.service.js +20 -0
  44. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  45. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  46. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  47. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  50. package/dist/es2015/common/error-messages.js +3 -2
  51. package/dist/es2015/common/paste-cleanup-settings.d.ts +14 -0
  52. package/dist/es2015/editor.component.d.ts +18 -11
  53. package/dist/es2015/editor.component.js +102 -69
  54. package/dist/es2015/index.d.ts +1 -0
  55. package/dist/es2015/index.js +1 -0
  56. package/dist/es2015/index.metadata.json +1 -1
  57. package/dist/es2015/main.d.ts +2 -0
  58. package/dist/es2015/main.js +1 -0
  59. package/dist/es2015/package-metadata.js +1 -1
  60. package/dist/es2015/preventable-events/paste-event-data.d.ts +21 -0
  61. package/dist/es2015/preventable-events/paste-event-data.js +4 -0
  62. package/dist/es2015/preventable-events/paste-event.d.ts +27 -0
  63. package/dist/es2015/preventable-events/paste-event.js +20 -0
  64. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  65. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  66. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  67. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  68. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  69. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  70. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  71. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  72. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  73. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  74. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  75. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  76. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  77. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  78. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  79. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  80. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  81. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  82. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  83. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  84. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  85. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  86. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  87. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  88. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  89. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  90. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  91. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  92. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  93. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  94. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  95. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  96. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  97. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  98. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  99. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  100. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +2 -1
  101. package/dist/es2015/tools/print/editor-print-button.directive.js +5 -3
  102. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +2 -1
  103. package/dist/es2015/tools/select-all/select-all-button.directive.js +5 -3
  104. package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -1
  105. package/dist/es2015/tools/shared/editor-command-base.js +3 -1
  106. package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -1
  107. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  108. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  109. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  110. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  111. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  112. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  113. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  114. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  115. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  116. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  117. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  118. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  119. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  120. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  121. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  122. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  123. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  124. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  125. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  126. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  127. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  128. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  129. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  130. package/dist/es2015/tools/tools.service.d.ts +11 -0
  131. package/dist/es2015/tools/tools.service.js +22 -0
  132. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  133. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  134. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  135. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  136. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  137. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  138. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  139. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  140. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  141. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  142. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  143. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  144. package/dist/fesm2015/index.js +301 -186
  145. package/dist/fesm5/index.js +302 -186
  146. package/dist/npm/common/error-messages.js +3 -1
  147. package/dist/npm/editor.component.js +98 -65
  148. package/dist/npm/index.js +2 -0
  149. package/dist/npm/main.js +2 -0
  150. package/dist/npm/package-metadata.js +1 -1
  151. package/dist/npm/preventable-events/paste-event-data.js +6 -0
  152. package/dist/npm/preventable-events/paste-event.js +27 -0
  153. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  154. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  155. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  156. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  157. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  158. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  159. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  160. package/dist/npm/tools/format/editor-format.component.js +9 -3
  161. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  162. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  163. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  164. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  165. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  166. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  167. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  168. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  169. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  170. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  171. package/dist/npm/tools/print/editor-print-button.directive.js +5 -3
  172. package/dist/npm/tools/select-all/select-all-button.directive.js +5 -3
  173. package/dist/npm/tools/shared/editor-command-base.js +3 -1
  174. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  175. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  176. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  177. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  178. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  179. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  180. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  181. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  182. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  183. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  184. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  186. package/dist/npm/tools/tools.service.js +22 -0
  187. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  188. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  189. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  190. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  191. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  192. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  193. package/dist/systemjs/kendo-angular-editor.js +1 -1
  194. package/package.json +4 -4
@@ -11,6 +11,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
11
11
  import { DialogService } from '@progress/kendo-angular-dialog';
12
12
  import { FontFamilyDialogComponent } from '../../dialogs/font-family-dialog.component';
13
13
  import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlist.component';
14
+ import { EditorToolsService } from '../tools.service';
14
15
  /**
15
16
  * A component which configures an existing `DropDownListComponent` as an Editor tool
16
17
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -24,11 +25,12 @@ import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlis
24
25
  */
25
26
  var EditorFontFamilyComponent = /** @class */ (function (_super) {
26
27
  tslib_1.__extends(EditorFontFamilyComponent, _super);
27
- function EditorFontFamilyComponent(editor, dialogService, localization) {
28
+ function EditorFontFamilyComponent(editor, dialogService, localization, toolsService) {
28
29
  var _this = _super.call(this) || this;
29
30
  _this.editor = editor;
30
31
  _this.dialogService = dialogService;
31
32
  _this.localization = localization;
33
+ _this.toolsService = toolsService;
32
34
  _this.disabled = false;
33
35
  _this.tabindex = -1;
34
36
  /**
@@ -77,7 +79,10 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
77
79
  return itemArgs.dataItem.fontName === null;
78
80
  }
79
81
  };
80
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, fontName: null }); });
82
+ setTimeout(function () {
83
+ _this.defaultItem = { text: _this.title, fontName: null };
84
+ _this.toolsService.needsCheck.next();
85
+ });
81
86
  this.subs = this.editor.stateChange.subscribe(function (_a) {
82
87
  var style = _a.style;
83
88
  _this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
@@ -198,7 +203,8 @@ var EditorFontFamilyComponent = /** @class */ (function (_super) {
198
203
  tslib_1.__param(0, Host()),
199
204
  tslib_1.__metadata("design:paramtypes", [EditorComponent,
200
205
  DialogService,
201
- EditorLocalizationService])
206
+ EditorLocalizationService,
207
+ EditorToolsService])
202
208
  ], EditorFontFamilyComponent);
203
209
  return EditorFontFamilyComponent;
204
210
  }(ToolBarToolComponent));
@@ -11,6 +11,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
11
11
  import { DialogService } from '@progress/kendo-angular-dialog';
12
12
  import { FontSizeDialogComponent } from '../../dialogs/font-size-dialog.component';
13
13
  import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.component';
14
+ import { EditorToolsService } from '../tools.service';
14
15
  /**
15
16
  * A component which configures an existing `DropDownListComponent` as an Editor tool
16
17
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -24,11 +25,12 @@ import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.co
24
25
  */
25
26
  var EditorFontSizeComponent = /** @class */ (function (_super) {
26
27
  tslib_1.__extends(EditorFontSizeComponent, _super);
27
- function EditorFontSizeComponent(editor, dialogService, localization) {
28
+ function EditorFontSizeComponent(editor, dialogService, localization, toolsService) {
28
29
  var _this = _super.call(this) || this;
29
30
  _this.editor = editor;
30
31
  _this.dialogService = dialogService;
31
32
  _this.localization = localization;
33
+ _this.toolsService = toolsService;
32
34
  _this.disabled = false;
33
35
  _this.tabindex = -1;
34
36
  /**
@@ -70,7 +72,10 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
70
72
  return itemArgs.dataItem.size === null;
71
73
  }
72
74
  };
73
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, size: null }); });
75
+ setTimeout(function () {
76
+ _this.defaultItem = { text: _this.title, size: null };
77
+ _this.toolsService.needsCheck.next();
78
+ });
74
79
  this.subs = this.editor.stateChange.subscribe(function (_a) {
75
80
  // remove units(px, em, rem...)
76
81
  // string#match returns array
@@ -193,7 +198,8 @@ var EditorFontSizeComponent = /** @class */ (function (_super) {
193
198
  tslib_1.__param(0, Host()),
194
199
  tslib_1.__metadata("design:paramtypes", [EditorComponent,
195
200
  DialogService,
196
- EditorLocalizationService])
201
+ EditorLocalizationService,
202
+ EditorToolsService])
197
203
  ], EditorFontSizeComponent);
198
204
  return EditorFontSizeComponent;
199
205
  }(ToolBarToolComponent));
@@ -11,6 +11,7 @@ import { EditorComponent } from '../../editor.component';
11
11
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
12
12
  import { FormatDialogComponent } from '../../dialogs/format-dialog.component';
13
13
  import { FormatDropDownListComponent } from './editor-format-dropdownlist.component';
14
+ import { EditorToolsService } from '../tools.service';
14
15
  /**
15
16
  * A component which configures an existing `DropDownListComponent` as an Editor tool
16
17
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -24,11 +25,12 @@ import { FormatDropDownListComponent } from './editor-format-dropdownlist.compon
24
25
  */
25
26
  var EditorFormatComponent = /** @class */ (function (_super) {
26
27
  tslib_1.__extends(EditorFormatComponent, _super);
27
- function EditorFormatComponent(editor, dialogService, localization) {
28
+ function EditorFormatComponent(editor, dialogService, localization, toolsService) {
28
29
  var _this = _super.call(this) || this;
29
30
  _this.editor = editor;
30
31
  _this.dialogService = dialogService;
31
32
  _this.localization = localization;
33
+ _this.toolsService = toolsService;
32
34
  _this.disabled = false;
33
35
  _this.tabindex = -1;
34
36
  /**
@@ -71,7 +73,10 @@ var EditorFormatComponent = /** @class */ (function (_super) {
71
73
  return itemArgs.dataItem.tag === null;
72
74
  }
73
75
  };
74
- setTimeout(function () { return (_this.defaultItem = { text: _this.title, tag: null }); });
76
+ setTimeout(function () {
77
+ _this.defaultItem = { text: _this.title, tag: null };
78
+ _this.toolsService.needsCheck.next();
79
+ });
75
80
  this.subs = this.editor.stateChange.subscribe(function (_a) {
76
81
  var format = _a.format;
77
82
  var index = _this.data.findIndex(function (item) { return item.tag === format.selected.tag; });
@@ -190,7 +195,8 @@ var EditorFormatComponent = /** @class */ (function (_super) {
190
195
  tslib_1.__param(0, Host()),
191
196
  tslib_1.__metadata("design:paramtypes", [EditorComponent,
192
197
  DialogService,
193
- EditorLocalizationService])
198
+ EditorLocalizationService,
199
+ EditorToolsService])
194
200
  ], EditorFormatComponent);
195
201
  return EditorFormatComponent;
196
202
  }(ToolBarToolComponent));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Redo tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorRedoButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorRedoButtonDirective, _super);
31
- function EditorRedoButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'redo', button, editor, localization) || this;
32
+ function EditorRedoButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'redo', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorRedoButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorRedoButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorRedoButtonDirective);
43
45
  return EditorRedoButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Undo tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorUndoButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorUndoButtonDirective, _super);
31
- function EditorUndoButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'undo', button, editor, localization) || this;
32
+ function EditorUndoButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'undo', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorUndoButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorUndoButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorUndoButtonDirective);
43
45
  return EditorUndoButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertImage tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  */
28
29
  var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
29
30
  tslib_1.__extends(EditorInsertImageButtonDirective, _super);
30
- function EditorInsertImageButtonDirective(button, editor, localization) {
31
- return _super.call(this, 'insertImage', button, editor, localization) || this;
31
+ function EditorInsertImageButtonDirective(button, editor, localization, toolsService) {
32
+ return _super.call(this, 'insertImage', button, editor, localization, toolsService) || this;
32
33
  }
33
34
  EditorInsertImageButtonDirective = tslib_1.__decorate([
34
35
  Directive({
@@ -37,7 +38,8 @@ var EditorInsertImageButtonDirective = /** @class */ (function (_super) {
37
38
  tslib_1.__param(1, Host()),
38
39
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
39
40
  EditorComponent,
40
- EditorLocalizationService])
41
+ EditorLocalizationService,
42
+ EditorToolsService])
41
43
  ], EditorInsertImageButtonDirective);
42
44
  return EditorInsertImageButtonDirective;
43
45
  }(EditorCommandDialog));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Indent tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorIndentButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorIndentButtonDirective, _super);
31
- function EditorIndentButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'indent', button, editor, localization) || this;
32
+ function EditorIndentButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'indent', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorIndentButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorIndentButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorIndentButtonDirective);
43
45
  return EditorIndentButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Outdent tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorOutdentButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorOutdentButtonDirective, _super);
31
- function EditorOutdentButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'outdent', button, editor, localization) || this;
32
+ function EditorOutdentButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'outdent', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorOutdentButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorOutdentButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorOutdentButtonDirective);
43
45
  return EditorOutdentButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor CreateLink tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorCreateLinkButtonDirective, _super);
31
- function EditorCreateLinkButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'createLink', button, editor, localization) || this;
32
+ function EditorCreateLinkButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'createLink', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorCreateLinkButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorCreateLinkButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorCreateLinkButtonDirective);
43
45
  return EditorCreateLinkButtonDirective;
44
46
  }(EditorCommandDialog));
@@ -8,6 +8,7 @@ import { EditorComponent } from '../../editor.component';
8
8
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
9
9
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from "../tools.service";
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor 'Insert File' tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -20,8 +21,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
20
21
  */
21
22
  var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
22
23
  tslib_1.__extends(EditorInsertFileButtonDirective, _super);
23
- function EditorInsertFileButtonDirective(button, editor, localization) {
24
- return _super.call(this, 'insertFile', button, editor, localization) || this;
24
+ function EditorInsertFileButtonDirective(button, editor, localization, toolsService) {
25
+ return _super.call(this, 'insertFile', button, editor, localization, toolsService) || this;
25
26
  }
26
27
  EditorInsertFileButtonDirective = tslib_1.__decorate([
27
28
  Directive({
@@ -30,7 +31,8 @@ var EditorInsertFileButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__param(1, Host()),
31
32
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
32
33
  EditorComponent,
33
- EditorLocalizationService])
34
+ EditorLocalizationService,
35
+ EditorToolsService])
34
36
  ], EditorInsertFileButtonDirective);
35
37
  return EditorInsertFileButtonDirective;
36
38
  }(EditorCommandDialog));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Unlink tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorUnlinkButtonDirective, _super);
31
- function EditorUnlinkButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'unlink', button, editor, localization) || this;
32
+ function EditorUnlinkButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'unlink', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorUnlinkButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorUnlinkButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorUnlinkButtonDirective);
43
45
  return EditorUnlinkButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertOrderedList tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorInsertOrderedListButtonDirective, _super);
31
- function EditorInsertOrderedListButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'insertOrderedList', button, editor, localization) || this;
32
+ function EditorInsertOrderedListButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'insertOrderedList', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorInsertOrderedListButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorInsertOrderedListButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorInsertOrderedListButtonDirective);
43
45
  return EditorInsertOrderedListButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertUnorderedList tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorInsertUnorderedListButtonDirective, _super);
31
- function EditorInsertUnorderedListButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'insertUnorderedList', button, editor, localization) || this;
32
+ function EditorInsertUnorderedListButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'insertUnorderedList', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super)
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorInsertUnorderedListButtonDirective);
43
45
  return EditorInsertUnorderedListButtonDirective;
44
46
  }(EditorCommandButton));
@@ -9,6 +9,7 @@ import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
11
  import { EditorErrorMessages } from '../../common/error-messages';
12
+ import { EditorToolsService } from '../tools.service';
12
13
  /**
13
14
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
14
15
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -30,8 +31,8 @@ import { EditorErrorMessages } from '../../common/error-messages';
30
31
  */
31
32
  var EditorPrintDirective = /** @class */ (function (_super) {
32
33
  tslib_1.__extends(EditorPrintDirective, _super);
33
- function EditorPrintDirective(button, editor, localization) {
34
- var _this = _super.call(this, 'print', button, editor, localization) || this;
34
+ function EditorPrintDirective(button, editor, localization, toolsService) {
35
+ var _this = _super.call(this, 'print', button, editor, localization, toolsService) || this;
35
36
  _this.editor = editor;
36
37
  return _this;
37
38
  }
@@ -60,7 +61,8 @@ var EditorPrintDirective = /** @class */ (function (_super) {
60
61
  tslib_1.__param(1, Host()),
61
62
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
62
63
  EditorComponent,
63
- EditorLocalizationService])
64
+ EditorLocalizationService,
65
+ EditorToolsService])
64
66
  ], EditorPrintDirective);
65
67
  return EditorPrintDirective;
66
68
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  */
28
29
  var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
29
30
  tslib_1.__extends(EditorSelectAllButtonDirective, _super);
30
- function EditorSelectAllButtonDirective(button, editor, localization) {
31
- return _super.call(this, 'selectAll', button, editor, localization) || this;
31
+ function EditorSelectAllButtonDirective(button, editor, localization, toolsService) {
32
+ return _super.call(this, 'selectAll', button, editor, localization, toolsService) || this;
32
33
  }
33
34
  EditorSelectAllButtonDirective.prototype.clickHandler = function () {
34
35
  this.editor.shouldEmitFocus = true;
@@ -41,7 +42,8 @@ var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
41
42
  tslib_1.__param(1, Host()),
42
43
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
43
44
  EditorComponent,
44
- EditorLocalizationService])
45
+ EditorLocalizationService,
46
+ EditorToolsService])
45
47
  ], EditorSelectAllButtonDirective);
46
48
  return EditorSelectAllButtonDirective;
47
49
  }(EditorCommandButton));
@@ -7,12 +7,13 @@ import { commandIcons } from '../../config/command-icons';
7
7
  * @hidden
8
8
  */
9
9
  var EditorCommandBase = /** @class */ (function () {
10
- function EditorCommandBase(command, button, editor, localization) {
10
+ function EditorCommandBase(command, button, editor, localization, toolsService) {
11
11
  var _this = this;
12
12
  this.command = command;
13
13
  this.button = button;
14
14
  this.editor = editor;
15
15
  this.localization = localization;
16
+ this.toolsService = toolsService;
16
17
  setTimeout(function () {
17
18
  var text = _this.localization.get(_this.command);
18
19
  if (text) {
@@ -24,6 +25,7 @@ var EditorCommandBase = /** @class */ (function () {
24
25
  _this.button.icon = commandIcons[_this.command];
25
26
  }
26
27
  _this.button.title = text;
28
+ _this.toolsService.needsCheck.next();
27
29
  });
28
30
  }
29
31
  EditorCommandBase.prototype.ngOnInit = function () {
@@ -9,12 +9,13 @@ import { EditorCommandBase } from './editor-command-base';
9
9
  */
10
10
  var EditorCommandButton = /** @class */ (function (_super) {
11
11
  tslib_1.__extends(EditorCommandButton, _super);
12
- function EditorCommandButton(command, button, editor, localization) {
13
- var _this = _super.call(this, command, button, editor, localization) || this;
12
+ function EditorCommandButton(command, button, editor, localization, toolsService) {
13
+ var _this = _super.call(this, command, button, editor, localization, toolsService) || this;
14
14
  _this.command = command;
15
15
  _this.button = button;
16
16
  _this.editor = editor;
17
17
  _this.localization = localization;
18
+ _this.toolsService = toolsService;
18
19
  return _this;
19
20
  }
20
21
  EditorCommandButton.prototype.clickHandler = function () {
@@ -9,12 +9,13 @@ import { EditorCommandBase } from './editor-command-base';
9
9
  */
10
10
  var EditorCommandDialog = /** @class */ (function (_super) {
11
11
  tslib_1.__extends(EditorCommandDialog, _super);
12
- function EditorCommandDialog(dialog, button, editor, localization) {
13
- var _this = _super.call(this, dialog, button, editor, localization) || this;
12
+ function EditorCommandDialog(dialog, button, editor, localization, toolsService) {
13
+ var _this = _super.call(this, dialog, button, editor, localization, toolsService) || this;
14
14
  _this.dialog = dialog;
15
15
  _this.button = button;
16
16
  _this.editor = editor;
17
17
  _this.localization = localization;
18
+ _this.toolsService = toolsService;
18
19
  return _this;
19
20
  }
20
21
  EditorCommandDialog.prototype.clickHandler = function () {
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor ViewSource tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  */
28
29
  var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
29
30
  tslib_1.__extends(EditorViewSourceButtonDirective, _super);
30
- function EditorViewSourceButtonDirective(button, editor, localization) {
31
- return _super.call(this, 'viewSource', button, editor, localization) || this;
31
+ function EditorViewSourceButtonDirective(button, editor, localization, toolsService) {
32
+ return _super.call(this, 'viewSource', button, editor, localization, toolsService) || this;
32
33
  }
33
34
  EditorViewSourceButtonDirective = tslib_1.__decorate([
34
35
  Directive({
@@ -37,7 +38,8 @@ var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
37
38
  tslib_1.__param(1, Host()),
38
39
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
39
40
  EditorComponent,
40
- EditorLocalizationService])
41
+ EditorLocalizationService,
42
+ EditorToolsService])
41
43
  ], EditorViewSourceButtonDirective);
42
44
  return EditorViewSourceButtonDirective;
43
45
  }(EditorCommandDialog));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnAfter tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorAddColumnAfterButtonDirective, _super);
24
- function EditorAddColumnAfterButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'addColumnAfter', button, editor, localization) || this;
25
+ function EditorAddColumnAfterButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'addColumnAfter', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorAddColumnAfterButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorAddColumnAfterButtonDirective);
36
38
  return EditorAddColumnAfterButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnBefore tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorAddColumnBeforeButtonDirective, _super);
24
- function EditorAddColumnBeforeButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'addColumnBefore', button, editor, localization) || this;
25
+ function EditorAddColumnBeforeButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'addColumnBefore', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorAddColumnBeforeButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorAddColumnBeforeButtonDirective);
36
38
  return EditorAddColumnBeforeButtonDirective;
37
39
  }(EditorCommandButton));