@progress/kendo-angular-editor 2.5.0-dev.202111161123 → 2.5.0-dev.202111291334

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 (199) 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 +2 -1
  4. package/dist/es/config/command-icons.js +4 -2
  5. package/dist/es/config/commands.js +32 -31
  6. package/dist/es/editor-toolbar-state.js +20 -2
  7. package/dist/es/editor.component.js +11 -5
  8. package/dist/es/editor.module.js +7 -1
  9. package/dist/es/index.js +3 -0
  10. package/dist/es/localization/messages.js +8 -0
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  13. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  14. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  15. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  16. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  17. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  18. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  19. package/dist/es/tools/format/editor-format.component.js +9 -3
  20. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  21. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  22. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  23. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  24. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  25. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  26. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  27. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  28. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  29. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  30. package/dist/es/tools/print/editor-print-button.directive.js +69 -0
  31. package/dist/es/tools/select-all/select-all-button.directive.js +50 -0
  32. package/dist/es/tools/shared/editor-command-base.js +13 -11
  33. package/dist/es/tools/shared/editor-command-button.js +3 -2
  34. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  35. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  39. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  40. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  41. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  42. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  43. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  44. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  45. package/dist/es/tools/tools.service.js +20 -0
  46. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  47. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  50. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  51. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  52. package/dist/es2015/common/commands.d.ts +5 -1
  53. package/dist/es2015/common/error-messages.js +2 -1
  54. package/dist/es2015/config/command-icons.d.ts +2 -2
  55. package/dist/es2015/config/command-icons.js +4 -2
  56. package/dist/es2015/config/commands.js +31 -30
  57. package/dist/es2015/editor-toolbar-state.js +20 -2
  58. package/dist/es2015/editor.component.d.ts +8 -1
  59. package/dist/es2015/editor.component.js +14 -4
  60. package/dist/es2015/editor.module.js +7 -1
  61. package/dist/es2015/index.d.ts +3 -0
  62. package/dist/es2015/index.js +3 -0
  63. package/dist/es2015/index.metadata.json +1 -1
  64. package/dist/es2015/localization/messages.d.ts +8 -0
  65. package/dist/es2015/localization/messages.js +8 -0
  66. package/dist/es2015/package-metadata.js +1 -1
  67. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  68. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  69. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  70. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  71. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  72. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  73. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  74. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  75. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  76. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  77. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  78. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  79. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  80. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  81. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  82. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  83. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  84. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  85. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  86. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  87. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  88. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  89. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  90. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  91. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  92. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  93. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  94. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  95. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  96. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  97. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  98. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  99. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  100. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  101. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  102. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  103. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
  104. package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
  105. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
  106. package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
  107. package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
  108. package/dist/es2015/tools/shared/editor-command-base.js +12 -10
  109. package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
  110. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  111. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  112. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  113. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  114. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  115. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  116. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  117. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  118. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  119. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  120. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  121. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  122. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  123. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  124. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  125. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  126. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  127. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  128. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  129. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  130. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  131. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  132. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  133. package/dist/es2015/tools/tools.service.d.ts +11 -0
  134. package/dist/es2015/tools/tools.service.js +22 -0
  135. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  136. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  137. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  138. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  139. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  140. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  141. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  142. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  143. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  144. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  145. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  146. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  147. package/dist/fesm2015/index.js +358 -159
  148. package/dist/fesm5/index.js +360 -162
  149. package/dist/npm/common/error-messages.js +2 -1
  150. package/dist/npm/config/command-icons.js +4 -2
  151. package/dist/npm/config/commands.js +33 -31
  152. package/dist/npm/editor-toolbar-state.js +20 -2
  153. package/dist/npm/editor.component.js +11 -5
  154. package/dist/npm/editor.module.js +7 -1
  155. package/dist/npm/index.js +6 -0
  156. package/dist/npm/localization/messages.js +8 -0
  157. package/dist/npm/package-metadata.js +1 -1
  158. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  159. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  160. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  161. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  162. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  163. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  164. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  165. package/dist/npm/tools/format/editor-format.component.js +9 -3
  166. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  167. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  168. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  169. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  170. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  171. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  172. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  173. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  174. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  175. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  176. package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
  177. package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
  178. package/dist/npm/tools/shared/editor-command-base.js +13 -11
  179. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  180. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  181. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  182. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  183. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  184. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  186. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  187. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  188. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  189. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  190. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  191. package/dist/npm/tools/tools.service.js +22 -0
  192. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  193. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  194. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  195. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  196. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  197. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  198. package/dist/systemjs/kendo-angular-editor.js +1 -1
  199. package/package.json +4 -4
@@ -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)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  * ```
28
29
  */
29
30
  let EditorIndentButtonDirective = class EditorIndentButtonDirective extends EditorCommandButton {
30
- constructor(button, editor, localization) {
31
- super('indent', button, editor, localization);
31
+ constructor(button, editor, localization, toolsService) {
32
+ super('indent', button, editor, localization, toolsService);
32
33
  }
33
34
  };
34
35
  EditorIndentButtonDirective = tslib_1.__decorate([
@@ -38,6 +39,7 @@ EditorIndentButtonDirective = tslib_1.__decorate([
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
  export { EditorIndentButtonDirective };
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
6
  import { EditorComponent } from '../../editor.component';
7
7
  import { EditorCommandButton } from '../shared/editor-command-button';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Outdent tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
25
26
  * ```
26
27
  */
27
28
  export declare class EditorOutdentButtonDirective extends EditorCommandButton {
28
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
29
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
29
30
  }
@@ -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)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  * ```
28
29
  */
29
30
  let EditorOutdentButtonDirective = class EditorOutdentButtonDirective extends EditorCommandButton {
30
- constructor(button, editor, localization) {
31
- super('outdent', button, editor, localization);
31
+ constructor(button, editor, localization, toolsService) {
32
+ super('outdent', button, editor, localization, toolsService);
32
33
  }
33
34
  };
34
35
  EditorOutdentButtonDirective = tslib_1.__decorate([
@@ -38,6 +39,7 @@ EditorOutdentButtonDirective = tslib_1.__decorate([
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
  export { EditorOutdentButtonDirective };
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
6
  import { EditorComponent } from '../../editor.component';
7
7
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor CreateLink tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
25
26
  * ```
26
27
  */
27
28
  export declare class EditorCreateLinkButtonDirective extends EditorCommandDialog {
28
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
29
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
29
30
  }
@@ -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)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  * ```
28
29
  */
29
30
  let EditorCreateLinkButtonDirective = class EditorCreateLinkButtonDirective extends EditorCommandDialog {
30
- constructor(button, editor, localization) {
31
- super('createLink', button, editor, localization);
31
+ constructor(button, editor, localization, toolsService) {
32
+ super('createLink', button, editor, localization, toolsService);
32
33
  }
33
34
  };
34
35
  EditorCreateLinkButtonDirective = tslib_1.__decorate([
@@ -38,6 +39,7 @@ EditorCreateLinkButtonDirective = tslib_1.__decorate([
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
  export { EditorCreateLinkButtonDirective };
@@ -6,6 +6,7 @@ import { EditorComponent } from '../../editor.component';
6
6
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
7
7
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from "../tools.service";
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor 'Insert File' tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -17,5 +18,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
17
18
  * ```
18
19
  */
19
20
  export declare class EditorInsertFileButtonDirective extends EditorCommandDialog {
20
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
21
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
21
22
  }
@@ -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)).
@@ -19,8 +20,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
19
20
  * ```
20
21
  */
21
22
  let EditorInsertFileButtonDirective = class EditorInsertFileButtonDirective extends EditorCommandDialog {
22
- constructor(button, editor, localization) {
23
- super('insertFile', button, editor, localization);
23
+ constructor(button, editor, localization, toolsService) {
24
+ super('insertFile', button, editor, localization, toolsService);
24
25
  }
25
26
  };
26
27
  EditorInsertFileButtonDirective = tslib_1.__decorate([
@@ -30,6 +31,7 @@ EditorInsertFileButtonDirective = tslib_1.__decorate([
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
  export { EditorInsertFileButtonDirective };
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
6
  import { EditorComponent } from '../../editor.component';
7
7
  import { EditorCommandButton } from '../shared/editor-command-button';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Unlink tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
25
26
  * ```
26
27
  */
27
28
  export declare class EditorUnlinkButtonDirective extends EditorCommandButton {
28
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
29
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
29
30
  }
@@ -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)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  * ```
28
29
  */
29
30
  let EditorUnlinkButtonDirective = class EditorUnlinkButtonDirective extends EditorCommandButton {
30
- constructor(button, editor, localization) {
31
- super('unlink', button, editor, localization);
31
+ constructor(button, editor, localization, toolsService) {
32
+ super('unlink', button, editor, localization, toolsService);
32
33
  }
33
34
  };
34
35
  EditorUnlinkButtonDirective = tslib_1.__decorate([
@@ -38,6 +39,7 @@ EditorUnlinkButtonDirective = tslib_1.__decorate([
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
  export { EditorUnlinkButtonDirective };
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
6
  import { EditorComponent } from '../../editor.component';
7
7
  import { EditorCommandButton } from '../shared/editor-command-button';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertOrderedList tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
25
26
  * ```
26
27
  */
27
28
  export declare class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
28
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
29
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
29
30
  }
@@ -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)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  * ```
28
29
  */
29
30
  let EditorInsertOrderedListButtonDirective = class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
30
- constructor(button, editor, localization) {
31
- super('insertOrderedList', button, editor, localization);
31
+ constructor(button, editor, localization, toolsService) {
32
+ super('insertOrderedList', button, editor, localization, toolsService);
32
33
  }
33
34
  };
34
35
  EditorInsertOrderedListButtonDirective = tslib_1.__decorate([
@@ -38,6 +39,7 @@ EditorInsertOrderedListButtonDirective = tslib_1.__decorate([
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
  export { EditorInsertOrderedListButtonDirective };
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
6
  import { EditorComponent } from '../../editor.component';
7
7
  import { EditorCommandButton } from '../shared/editor-command-button';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertUnorderedList tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
25
26
  * ```
26
27
  */
27
28
  export declare class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
28
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
29
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
29
30
  }
@@ -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)).
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
27
28
  * ```
28
29
  */
29
30
  let EditorInsertUnorderedListButtonDirective = class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
30
- constructor(button, editor, localization) {
31
- super('insertUnorderedList', button, editor, localization);
31
+ constructor(button, editor, localization, toolsService) {
32
+ super('insertUnorderedList', button, editor, localization, toolsService);
32
33
  }
33
34
  };
34
35
  EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
@@ -38,6 +39,7 @@ EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
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
  export { EditorInsertUnorderedListButtonDirective };
@@ -0,0 +1,34 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
+ import { EditorComponent } from '../../editor.component';
7
+ import { EditorCommandButton } from '../shared/editor-command-button';
8
+ import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
10
+ /**
11
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
12
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
13
+ * The directive will predefine the `icon` and `click` event handlers of the button.
14
+ *
15
+ * > The Editor Print tool is supported in the default [`iframe`](https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorComponent/#toc-iframe) mode only.
16
+ *
17
+ * @example
18
+ * ```ts-no-run
19
+ * <kendo-toolbar-button kendoEditorPrintButton></kendo-toolbar-button>
20
+ * ```
21
+ *
22
+ * The following example demonstrates how to change the default icon that is applied by the directive.
23
+ *
24
+ * @example
25
+ * ```ts-no-run
26
+ * <kendo-toolbar-button kendoEditorPrintButton icon="blogger"></kendo-toolbar-button>
27
+ * ```
28
+ */
29
+ export declare class EditorPrintDirective extends EditorCommandButton {
30
+ protected editor: EditorComponent;
31
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
32
+ ngAfterViewInit(): void;
33
+ protected clickHandler(): void;
34
+ }
@@ -0,0 +1,66 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as tslib_1 from "tslib";
6
+ import { Directive, Host, isDevMode } from '@angular/core';
7
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
+ import { EditorComponent } from '../../editor.component';
9
+ import { EditorCommandButton } from '../shared/editor-command-button';
10
+ import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorErrorMessages } from '../../common/error-messages';
12
+ import { EditorToolsService } from '../tools.service';
13
+ /**
14
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
15
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
16
+ * The directive will predefine the `icon` and `click` event handlers of the button.
17
+ *
18
+ * > The Editor Print tool is supported in the default [`iframe`](https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorComponent/#toc-iframe) mode only.
19
+ *
20
+ * @example
21
+ * ```ts-no-run
22
+ * <kendo-toolbar-button kendoEditorPrintButton></kendo-toolbar-button>
23
+ * ```
24
+ *
25
+ * The following example demonstrates how to change the default icon that is applied by the directive.
26
+ *
27
+ * @example
28
+ * ```ts-no-run
29
+ * <kendo-toolbar-button kendoEditorPrintButton icon="blogger"></kendo-toolbar-button>
30
+ * ```
31
+ */
32
+ let EditorPrintDirective = class EditorPrintDirective extends EditorCommandButton {
33
+ constructor(button, editor, localization, toolsService) {
34
+ super('print', button, editor, localization, toolsService);
35
+ this.editor = editor;
36
+ }
37
+ ngAfterViewInit() {
38
+ if (isDevMode) {
39
+ if (!this.editor.iframe) {
40
+ throw new Error(EditorErrorMessages.printTool);
41
+ }
42
+ }
43
+ }
44
+ clickHandler() {
45
+ if (this.editor.iframe) {
46
+ const view = this.editor.view;
47
+ const dom = view && view.dom;
48
+ const doc = dom && dom.ownerDocument;
49
+ const editorWindow = doc && doc.defaultView;
50
+ if (editorWindow) {
51
+ editorWindow.print();
52
+ }
53
+ }
54
+ }
55
+ };
56
+ EditorPrintDirective = tslib_1.__decorate([
57
+ Directive({
58
+ selector: 'kendo-toolbar-button[kendoEditorPrintButton]'
59
+ }),
60
+ tslib_1.__param(1, Host()),
61
+ tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
62
+ EditorComponent,
63
+ EditorLocalizationService,
64
+ EditorToolsService])
65
+ ], EditorPrintDirective);
66
+ export { EditorPrintDirective };
@@ -0,0 +1,30 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
+ import { EditorComponent } from '../../editor.component';
7
+ import { EditorCommandButton } from '../shared/editor-command-button';
8
+ import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
10
+ /**
11
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
12
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
13
+ * The directive will predefine the `icon` and `click` event handlers of the button.
14
+ *
15
+ * @example
16
+ * ```ts-no-run
17
+ * <kendo-toolbar-button kendoEditorSelectAllButton></kendo-toolbar-button>
18
+ * ```
19
+ *
20
+ * The following example demonstrates how to change the default icon that is applied by the directive.
21
+ *
22
+ * @example
23
+ * ```ts-no-run
24
+ * <kendo-toolbar-button kendoEditorSelectAllButton icon="blogger"></kendo-toolbar-button>
25
+ * ```
26
+ */
27
+ export declare class EditorSelectAllButtonDirective extends EditorCommandButton {
28
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
29
+ protected clickHandler(): void;
30
+ }
@@ -0,0 +1,48 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as tslib_1 from "tslib";
6
+ import { Directive, Host } from '@angular/core';
7
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
+ import { EditorComponent } from '../../editor.component';
9
+ import { EditorCommandButton } from '../shared/editor-command-button';
10
+ import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
12
+ /**
13
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
14
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
15
+ * The directive will predefine the `icon` and `click` event handlers of the button.
16
+ *
17
+ * @example
18
+ * ```ts-no-run
19
+ * <kendo-toolbar-button kendoEditorSelectAllButton></kendo-toolbar-button>
20
+ * ```
21
+ *
22
+ * The following example demonstrates how to change the default icon that is applied by the directive.
23
+ *
24
+ * @example
25
+ * ```ts-no-run
26
+ * <kendo-toolbar-button kendoEditorSelectAllButton icon="blogger"></kendo-toolbar-button>
27
+ * ```
28
+ */
29
+ let EditorSelectAllButtonDirective = class EditorSelectAllButtonDirective extends EditorCommandButton {
30
+ constructor(button, editor, localization, toolsService) {
31
+ super('selectAll', button, editor, localization, toolsService);
32
+ }
33
+ clickHandler() {
34
+ this.editor.shouldEmitFocus = true;
35
+ super.clickHandler();
36
+ }
37
+ };
38
+ EditorSelectAllButtonDirective = tslib_1.__decorate([
39
+ Directive({
40
+ selector: 'kendo-toolbar-button[kendoEditorSelectAllButton]'
41
+ }),
42
+ tslib_1.__param(1, Host()),
43
+ tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
44
+ EditorComponent,
45
+ EditorLocalizationService,
46
+ EditorToolsService])
47
+ ], EditorSelectAllButtonDirective);
48
+ export { EditorSelectAllButtonDirective };
@@ -5,18 +5,20 @@
5
5
  import { Subscription } from 'rxjs';
6
6
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
7
  import { EditorComponent } from '../../editor.component';
8
- import { EditorCommand, DialogCommand } from '../../common/commands';
8
+ import { EditorCommand, DialogCommand, EditorInternalCommand } from '../../common/commands';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { EditorToolsService } from '../tools.service';
10
11
  /**
11
12
  * @hidden
12
13
  */
13
14
  export declare abstract class EditorCommandBase {
14
- protected command: DialogCommand | EditorCommand;
15
+ protected command: DialogCommand | EditorCommand | EditorInternalCommand;
15
16
  protected button: ToolBarButtonComponent;
16
17
  protected editor: EditorComponent;
17
18
  protected localization: LocalizationService;
19
+ protected toolsService: EditorToolsService;
18
20
  protected subs: Subscription;
19
- constructor(command: DialogCommand | EditorCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService);
21
+ constructor(command: DialogCommand | EditorCommand | EditorInternalCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService, toolsService: EditorToolsService);
20
22
  ngOnInit(): void;
21
23
  ngOnDestroy(): void;
22
24
  protected clickHandler(): void;
@@ -7,29 +7,31 @@ import { commandIcons } from '../../config/command-icons';
7
7
  * @hidden
8
8
  */
9
9
  export class EditorCommandBase {
10
- constructor(command, button, editor, localization) {
10
+ constructor(command, button, editor, localization, toolsService) {
11
11
  this.command = command;
12
12
  this.button = button;
13
13
  this.editor = editor;
14
14
  this.localization = localization;
15
- }
16
- ngOnInit() {
17
- this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
18
- this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
19
- this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
20
- Promise.resolve(null).then(() => {
15
+ this.toolsService = toolsService;
16
+ setTimeout(() => {
21
17
  const text = this.localization.get(this.command);
22
18
  if (text) {
23
- this.button.showText = "overflow";
24
- this.button.showIcon = "both";
19
+ this.button.showText = 'overflow';
20
+ this.button.showIcon = 'both';
25
21
  this.button.text = text;
26
22
  }
27
- if (!this.button.icon) {
23
+ if (!this.button.toolbarOptions.icon) {
28
24
  this.button.icon = commandIcons[this.command];
29
25
  }
30
26
  this.button.title = text;
27
+ this.toolsService.needsCheck.next();
31
28
  });
32
29
  }
30
+ ngOnInit() {
31
+ this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
32
+ this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
33
+ this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
34
+ }
33
35
  ngOnDestroy() {
34
36
  if (this.subs) {
35
37
  this.subs.unsubscribe();
@@ -3,19 +3,21 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
- import { EditorCommand } from '../../common/commands';
6
+ import { EditorCommand, EditorInternalCommand } from '../../common/commands';
7
7
  import { EditorComponent } from '../../editor.component';
8
8
  import { EditorCommandBase } from './editor-command-base';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { EditorToolsService } from '../tools.service';
10
11
  /**
11
12
  * @hidden
12
13
  */
13
14
  export declare abstract class EditorCommandButton extends EditorCommandBase {
14
- protected command: EditorCommand;
15
+ protected command: EditorCommand | EditorInternalCommand;
15
16
  protected button: ToolBarButtonComponent;
16
17
  protected editor: EditorComponent;
17
18
  protected localization: LocalizationService;
18
- constructor(command: EditorCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService);
19
+ protected toolsService: EditorToolsService;
20
+ constructor(command: EditorCommand | EditorInternalCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService, toolsService: EditorToolsService);
19
21
  protected clickHandler(): void;
20
22
  protected pointerdownHandler(e: PointerEvent): void;
21
23
  protected onStateChange(toolBarState: any): void;
@@ -7,12 +7,13 @@ import { EditorCommandBase } from './editor-command-base';
7
7
  * @hidden
8
8
  */
9
9
  export class EditorCommandButton extends EditorCommandBase {
10
- constructor(command, button, editor, localization) {
11
- super(command, button, editor, localization);
10
+ constructor(command, button, editor, localization, toolsService) {
11
+ super(command, button, editor, localization, toolsService);
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
  }
17
18
  clickHandler() {
18
19
  this.editor.exec(this.command, this.editor.applyToWord);
@@ -7,6 +7,7 @@ import { DialogCommand } from '../../common/commands';
7
7
  import { EditorComponent } from '../../editor.component';
8
8
  import { EditorCommandBase } from './editor-command-base';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
+ import { EditorToolsService } from '../tools.service';
10
11
  /**
11
12
  * @hidden
12
13
  */
@@ -15,7 +16,8 @@ export declare abstract class EditorCommandDialog extends EditorCommandBase {
15
16
  protected button: ToolBarButtonComponent;
16
17
  protected editor: EditorComponent;
17
18
  protected localization: LocalizationService;
18
- constructor(dialog: DialogCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService);
19
+ protected toolsService: EditorToolsService;
20
+ constructor(dialog: DialogCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService, toolsService: EditorToolsService);
19
21
  protected clickHandler(): void;
20
22
  protected onStateChange(toolBarState: any): void;
21
23
  }
@@ -7,12 +7,13 @@ import { EditorCommandBase } from './editor-command-base';
7
7
  * @hidden
8
8
  */
9
9
  export class EditorCommandDialog extends EditorCommandBase {
10
- constructor(dialog, button, editor, localization) {
11
- super(dialog, button, editor, localization);
10
+ constructor(dialog, button, editor, localization, toolsService) {
11
+ super(dialog, button, editor, localization, toolsService);
12
12
  this.dialog = dialog;
13
13
  this.button = button;
14
14
  this.editor = editor;
15
15
  this.localization = localization;
16
+ this.toolsService = toolsService;
16
17
  }
17
18
  clickHandler() {
18
19
  this.editor.openDialog(this.dialog);
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
6
  import { EditorComponent } from '../../editor.component';
7
7
  import { EditorCommandDialog } from '../shared/editor-command-dialog';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
9
+ import { EditorToolsService } from '../tools.service';
9
10
  /**
10
11
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor ViewSource tool
11
12
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -24,5 +25,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
24
25
  * ```
25
26
  */
26
27
  export declare class EditorViewSourceButtonDirective extends EditorCommandDialog {
27
- constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
28
+ constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
28
29
  }