@progress/kendo-angular-editor 2.5.0-dev.202111231749 → 2.5.0

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 (178) 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/editor.component.js +7 -2
  4. package/dist/es/index.js +1 -0
  5. package/dist/es/package-metadata.js +1 -1
  6. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  7. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  8. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  9. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  10. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  11. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  12. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  13. package/dist/es/tools/format/editor-format.component.js +9 -3
  14. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  15. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  16. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  17. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  18. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  19. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  20. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  21. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  22. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  23. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  24. package/dist/es/tools/print/editor-print-button.directive.js +5 -3
  25. package/dist/es/tools/select-all/select-all-button.directive.js +5 -3
  26. package/dist/es/tools/shared/editor-command-base.js +9 -9
  27. package/dist/es/tools/shared/editor-command-button.js +3 -2
  28. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  29. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  30. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  31. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  32. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  33. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  34. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  35. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  39. package/dist/es/tools/tools.service.js +20 -0
  40. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  41. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  42. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  43. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  44. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  45. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  46. package/dist/es2015/editor.component.d.ts +3 -1
  47. package/dist/es2015/editor.component.js +7 -2
  48. package/dist/es2015/index.d.ts +1 -0
  49. package/dist/es2015/index.js +1 -0
  50. package/dist/es2015/index.metadata.json +1 -1
  51. package/dist/es2015/package-metadata.js +1 -1
  52. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  53. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  54. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  55. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  56. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  57. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  58. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  59. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  60. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  61. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  62. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  63. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  64. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  65. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  66. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  67. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  68. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  69. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  70. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  71. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  72. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  73. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  74. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  75. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  76. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  77. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  78. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  79. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  80. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  81. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  82. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  83. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  84. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  85. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  86. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  87. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  88. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +2 -1
  89. package/dist/es2015/tools/print/editor-print-button.directive.js +5 -3
  90. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +2 -1
  91. package/dist/es2015/tools/select-all/select-all-button.directive.js +5 -3
  92. package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -2
  93. package/dist/es2015/tools/shared/editor-command-base.js +8 -8
  94. package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -1
  95. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  96. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  97. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  98. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  99. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  100. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  101. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  102. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  103. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  104. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  105. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  106. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  107. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  108. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  109. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  110. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  111. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  112. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  113. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  114. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  115. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  116. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  117. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  118. package/dist/es2015/tools/tools.service.d.ts +11 -0
  119. package/dist/es2015/tools/tools.service.js +22 -0
  120. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  121. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  122. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  123. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  124. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  125. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  126. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  127. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  128. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  129. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  130. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  131. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  132. package/dist/fesm2015/index.js +195 -126
  133. package/dist/fesm5/index.js +194 -127
  134. package/dist/npm/editor.component.js +7 -2
  135. package/dist/npm/index.js +2 -0
  136. package/dist/npm/package-metadata.js +1 -1
  137. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  138. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  139. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  140. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  141. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  142. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  143. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  144. package/dist/npm/tools/format/editor-format.component.js +9 -3
  145. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  146. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  147. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  148. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  149. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  150. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  151. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  152. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  153. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  154. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  155. package/dist/npm/tools/print/editor-print-button.directive.js +5 -3
  156. package/dist/npm/tools/select-all/select-all-button.directive.js +5 -3
  157. package/dist/npm/tools/shared/editor-command-base.js +9 -9
  158. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  159. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  160. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  161. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  162. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  163. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  164. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  165. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  166. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  167. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  168. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  169. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  170. package/dist/npm/tools/tools.service.js +22 -0
  171. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  172. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  173. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  174. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  175. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  176. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  177. package/dist/systemjs/kendo-angular-editor.js +1 -1
  178. package/package.json +4 -4
@@ -3,9 +3,9 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __param, __metadata } from 'tslib';
6
- import { Inject, Optional, Input, ViewChild, ElementRef, Component, EventEmitter, isDevMode, Output, HostBinding, ContentChild, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, TemplateRef, Host, Directive, NgModule } from '@angular/core';
6
+ import { Inject, Optional, Input, ViewChild, ElementRef, Component, Injectable, EventEmitter, isDevMode, Output, HostBinding, ContentChild, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, TemplateRef, Host, Directive, NgModule } from '@angular/core';
7
7
  import { FormControl, Validators, FormGroup, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
8
- import { BehaviorSubject, Subject, zip, fromEvent, merge, interval } from 'rxjs';
8
+ import { Subject, BehaviorSubject, zip, fromEvent, merge, interval } from 'rxjs';
9
9
  import { take, filter, auditTime, map, concatMap, takeUntil } from 'rxjs/operators';
10
10
  import { ToolBarComponent, ToolBarToolComponent, ToolBarButtonComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
11
11
  import { DialogContentBase, DialogRef, DialogService, DialogModule } from '@progress/kendo-angular-dialog';
@@ -27,7 +27,7 @@ const packageMetadata = {
27
27
  name: '@progress/kendo-angular-editor',
28
28
  productName: 'Kendo UI for Angular',
29
29
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
30
- publishDate: 1637689470,
30
+ publishDate: 1638198421,
31
31
  version: '',
32
32
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
33
33
  };
@@ -2547,6 +2547,21 @@ const EditorErrorMessages = {
2547
2547
  printTool: 'The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/'
2548
2548
  };
2549
2549
 
2550
+ /**
2551
+ * @hidden
2552
+ */
2553
+ let EditorToolsService = class EditorToolsService {
2554
+ /**
2555
+ * @hidden
2556
+ */
2557
+ constructor() {
2558
+ this.needsCheck = new Subject();
2559
+ }
2560
+ };
2561
+ EditorToolsService = __decorate([
2562
+ Injectable()
2563
+ ], EditorToolsService);
2564
+
2550
2565
  var EditorComponent_1;
2551
2566
  const EMPTY_PARAGRAPH = '<p></p>';
2552
2567
  const defaultPasteCleanupSettings = {
@@ -2574,12 +2589,13 @@ const getPasteCleanupAttributes = (config) => {
2574
2589
  * Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
2575
2590
  */
2576
2591
  let EditorComponent = EditorComponent_1 = class EditorComponent {
2577
- constructor(dialogService, localization, cdr, ngZone, element) {
2592
+ constructor(dialogService, localization, cdr, ngZone, element, toolsService) {
2578
2593
  this.dialogService = dialogService;
2579
2594
  this.localization = localization;
2580
2595
  this.cdr = cdr;
2581
2596
  this.ngZone = ngZone;
2582
2597
  this.element = element;
2598
+ this.toolsService = toolsService;
2583
2599
  /**
2584
2600
  * If set to `false`, the Editor will run in style non-encapsulated mode. This means
2585
2601
  * that the styles of the page will be persisted in the Editor and its content will be affected by them.
@@ -2848,6 +2864,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2848
2864
  this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
2849
2865
  this.direction = rtl ? 'rtl' : 'ltr';
2850
2866
  }));
2867
+ this.subs.add(this.toolsService.needsCheck.subscribe(() => this.cdr.markForCheck()));
2851
2868
  }
2852
2869
  ngAfterViewInit() {
2853
2870
  this.afterViewInit.next();
@@ -3397,6 +3414,7 @@ EditorComponent = EditorComponent_1 = __decorate([
3397
3414
  selector: 'kendo-editor',
3398
3415
  providers: [
3399
3416
  EditorLocalizationService,
3417
+ EditorToolsService,
3400
3418
  {
3401
3419
  provide: LocalizationService,
3402
3420
  useExisting: EditorLocalizationService
@@ -3583,7 +3601,8 @@ EditorComponent = EditorComponent_1 = __decorate([
3583
3601
  LocalizationService,
3584
3602
  ChangeDetectorRef,
3585
3603
  NgZone,
3586
- ElementRef])
3604
+ ElementRef,
3605
+ EditorToolsService])
3587
3606
  ], EditorComponent);
3588
3607
 
3589
3608
  /**
@@ -4085,11 +4104,12 @@ var EditorFormatComponent_1;
4085
4104
  * ```
4086
4105
  */
4087
4106
  let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponent extends ToolBarToolComponent {
4088
- constructor(editor, dialogService, localization) {
4107
+ constructor(editor, dialogService, localization, toolsService) {
4089
4108
  super();
4090
4109
  this.editor = editor;
4091
4110
  this.dialogService = dialogService;
4092
4111
  this.localization = localization;
4112
+ this.toolsService = toolsService;
4093
4113
  this.disabled = false;
4094
4114
  this.tabindex = -1;
4095
4115
  /**
@@ -4125,7 +4145,10 @@ let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponen
4125
4145
  return itemArgs.dataItem.tag === null;
4126
4146
  }
4127
4147
  };
4128
- setTimeout(() => (this.defaultItem = { text: this.title, tag: null }));
4148
+ setTimeout(() => {
4149
+ this.defaultItem = { text: this.title, tag: null };
4150
+ this.toolsService.needsCheck.next();
4151
+ });
4129
4152
  this.subs = this.editor.stateChange.subscribe(({ format }) => {
4130
4153
  const index = this.data.findIndex(item => item.tag === format.selected.tag);
4131
4154
  this.value = index !== -1 ? format.selected.tag : null;
@@ -4266,7 +4289,8 @@ EditorFormatComponent = EditorFormatComponent_1 = __decorate([
4266
4289
  __param(0, Host()),
4267
4290
  __metadata("design:paramtypes", [EditorComponent,
4268
4291
  DialogService,
4269
- EditorLocalizationService])
4292
+ EditorLocalizationService,
4293
+ EditorToolsService])
4270
4294
  ], EditorFormatComponent);
4271
4295
 
4272
4296
  /**
@@ -4438,11 +4462,12 @@ var EditorFontSizeComponent_1;
4438
4462
  * ```
4439
4463
  */
4440
4464
  let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeComponent extends ToolBarToolComponent {
4441
- constructor(editor, dialogService, localization) {
4465
+ constructor(editor, dialogService, localization, toolsService) {
4442
4466
  super();
4443
4467
  this.editor = editor;
4444
4468
  this.dialogService = dialogService;
4445
4469
  this.localization = localization;
4470
+ this.toolsService = toolsService;
4446
4471
  this.disabled = false;
4447
4472
  this.tabindex = -1;
4448
4473
  /**
@@ -4477,7 +4502,10 @@ let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeCo
4477
4502
  return itemArgs.dataItem.size === null;
4478
4503
  }
4479
4504
  };
4480
- setTimeout(() => (this.defaultItem = { text: this.title, size: null }));
4505
+ setTimeout(() => {
4506
+ this.defaultItem = { text: this.title, size: null };
4507
+ this.toolsService.needsCheck.next();
4508
+ });
4481
4509
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
4482
4510
  // remove units(px, em, rem...)
4483
4511
  // string#match returns array
@@ -4622,7 +4650,8 @@ EditorFontSizeComponent = EditorFontSizeComponent_1 = __decorate([
4622
4650
  __param(0, Host()),
4623
4651
  __metadata("design:paramtypes", [EditorComponent,
4624
4652
  DialogService,
4625
- EditorLocalizationService])
4653
+ EditorLocalizationService,
4654
+ EditorToolsService])
4626
4655
  ], EditorFontSizeComponent);
4627
4656
 
4628
4657
  var EditorFontFamilyComponent_1;
@@ -4638,11 +4667,12 @@ var EditorFontFamilyComponent_1;
4638
4667
  * ```
4639
4668
  */
4640
4669
  let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFamilyComponent extends ToolBarToolComponent {
4641
- constructor(editor, dialogService, localization) {
4670
+ constructor(editor, dialogService, localization, toolsService) {
4642
4671
  super();
4643
4672
  this.editor = editor;
4644
4673
  this.dialogService = dialogService;
4645
4674
  this.localization = localization;
4675
+ this.toolsService = toolsService;
4646
4676
  this.disabled = false;
4647
4677
  this.tabindex = -1;
4648
4678
  /**
@@ -4684,7 +4714,10 @@ let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFa
4684
4714
  return itemArgs.dataItem.fontName === null;
4685
4715
  }
4686
4716
  };
4687
- setTimeout(() => (this.defaultItem = { text: this.title, fontName: null }));
4717
+ setTimeout(() => {
4718
+ this.defaultItem = { text: this.title, fontName: null };
4719
+ this.toolsService.needsCheck.next();
4720
+ });
4688
4721
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
4689
4722
  this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
4690
4723
  this.disabled = style.disabled;
@@ -4827,7 +4860,8 @@ EditorFontFamilyComponent = EditorFontFamilyComponent_1 = __decorate([
4827
4860
  __param(0, Host()),
4828
4861
  __metadata("design:paramtypes", [EditorComponent,
4829
4862
  DialogService,
4830
- EditorLocalizationService])
4863
+ EditorLocalizationService,
4864
+ EditorToolsService])
4831
4865
  ], EditorFontFamilyComponent);
4832
4866
 
4833
4867
  // tslint:disable:no-forward-ref
@@ -5369,18 +5403,12 @@ const commandIcons = {
5369
5403
  * @hidden
5370
5404
  */
5371
5405
  class EditorCommandBase {
5372
- constructor(command, button, editor, localization) {
5406
+ constructor(command, button, editor, localization, toolsService) {
5373
5407
  this.command = command;
5374
5408
  this.button = button;
5375
5409
  this.editor = editor;
5376
5410
  this.localization = localization;
5377
- }
5378
- ngOnInit() {
5379
- this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
5380
- this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
5381
- this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
5382
- }
5383
- ngAfterViewInit() {
5411
+ this.toolsService = toolsService;
5384
5412
  setTimeout(() => {
5385
5413
  const text = this.localization.get(this.command);
5386
5414
  if (text) {
@@ -5392,8 +5420,14 @@ class EditorCommandBase {
5392
5420
  this.button.icon = commandIcons[this.command];
5393
5421
  }
5394
5422
  this.button.title = text;
5423
+ this.toolsService.needsCheck.next();
5395
5424
  });
5396
5425
  }
5426
+ ngOnInit() {
5427
+ this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
5428
+ this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
5429
+ this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
5430
+ }
5397
5431
  ngOnDestroy() {
5398
5432
  if (this.subs) {
5399
5433
  this.subs.unsubscribe();
@@ -5411,12 +5445,13 @@ class EditorCommandBase {
5411
5445
  * @hidden
5412
5446
  */
5413
5447
  class EditorCommandButton extends EditorCommandBase {
5414
- constructor(command, button, editor, localization) {
5415
- super(command, button, editor, localization);
5448
+ constructor(command, button, editor, localization, toolsService) {
5449
+ super(command, button, editor, localization, toolsService);
5416
5450
  this.command = command;
5417
5451
  this.button = button;
5418
5452
  this.editor = editor;
5419
5453
  this.localization = localization;
5454
+ this.toolsService = toolsService;
5420
5455
  }
5421
5456
  clickHandler() {
5422
5457
  this.editor.exec(this.command, this.editor.applyToWord);
@@ -5450,8 +5485,8 @@ class EditorCommandButton extends EditorCommandBase {
5450
5485
  * ```
5451
5486
  */
5452
5487
  let EditorAlignLeftButtonDirective = class EditorAlignLeftButtonDirective extends EditorCommandButton {
5453
- constructor(button, editor, localization) {
5454
- super('alignLeft', button, editor, localization);
5488
+ constructor(button, editor, localization, toolsService) {
5489
+ super('alignLeft', button, editor, localization, toolsService);
5455
5490
  }
5456
5491
  };
5457
5492
  EditorAlignLeftButtonDirective = __decorate([
@@ -5461,7 +5496,8 @@ EditorAlignLeftButtonDirective = __decorate([
5461
5496
  __param(1, Host()),
5462
5497
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5463
5498
  EditorComponent,
5464
- EditorLocalizationService])
5499
+ EditorLocalizationService,
5500
+ EditorToolsService])
5465
5501
  ], EditorAlignLeftButtonDirective);
5466
5502
 
5467
5503
  /**
@@ -5483,8 +5519,8 @@ EditorAlignLeftButtonDirective = __decorate([
5483
5519
  * ```
5484
5520
  */
5485
5521
  let EditorAlignCenterButtonDirective = class EditorAlignCenterButtonDirective extends EditorCommandButton {
5486
- constructor(button, editor, localization) {
5487
- super('alignCenter', button, editor, localization);
5522
+ constructor(button, editor, localization, toolsService) {
5523
+ super('alignCenter', button, editor, localization, toolsService);
5488
5524
  }
5489
5525
  };
5490
5526
  EditorAlignCenterButtonDirective = __decorate([
@@ -5494,7 +5530,8 @@ EditorAlignCenterButtonDirective = __decorate([
5494
5530
  __param(1, Host()),
5495
5531
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5496
5532
  EditorComponent,
5497
- EditorLocalizationService])
5533
+ EditorLocalizationService,
5534
+ EditorToolsService])
5498
5535
  ], EditorAlignCenterButtonDirective);
5499
5536
 
5500
5537
  /**
@@ -5516,8 +5553,8 @@ EditorAlignCenterButtonDirective = __decorate([
5516
5553
  * ```
5517
5554
  */
5518
5555
  let EditorAlignRightButtonDirective = class EditorAlignRightButtonDirective extends EditorCommandButton {
5519
- constructor(button, editor, localization) {
5520
- super('alignRight', button, editor, localization);
5556
+ constructor(button, editor, localization, toolsService) {
5557
+ super('alignRight', button, editor, localization, toolsService);
5521
5558
  }
5522
5559
  };
5523
5560
  EditorAlignRightButtonDirective = __decorate([
@@ -5527,7 +5564,8 @@ EditorAlignRightButtonDirective = __decorate([
5527
5564
  __param(1, Host()),
5528
5565
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5529
5566
  EditorComponent,
5530
- EditorLocalizationService])
5567
+ EditorLocalizationService,
5568
+ EditorToolsService])
5531
5569
  ], EditorAlignRightButtonDirective);
5532
5570
 
5533
5571
  /**
@@ -5549,8 +5587,8 @@ EditorAlignRightButtonDirective = __decorate([
5549
5587
  * ```
5550
5588
  */
5551
5589
  let EditorAlignJustifyButtonDirective = class EditorAlignJustifyButtonDirective extends EditorCommandButton {
5552
- constructor(button, editor, localization) {
5553
- super('alignJustify', button, editor, localization);
5590
+ constructor(button, editor, localization, toolsService) {
5591
+ super('alignJustify', button, editor, localization, toolsService);
5554
5592
  }
5555
5593
  };
5556
5594
  EditorAlignJustifyButtonDirective = __decorate([
@@ -5560,7 +5598,8 @@ EditorAlignJustifyButtonDirective = __decorate([
5560
5598
  __param(1, Host()),
5561
5599
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5562
5600
  EditorComponent,
5563
- EditorLocalizationService])
5601
+ EditorLocalizationService,
5602
+ EditorToolsService])
5564
5603
  ], EditorAlignJustifyButtonDirective);
5565
5604
 
5566
5605
  /**
@@ -5582,8 +5621,8 @@ EditorAlignJustifyButtonDirective = __decorate([
5582
5621
  * ```
5583
5622
  */
5584
5623
  let EditorRedoButtonDirective = class EditorRedoButtonDirective extends EditorCommandButton {
5585
- constructor(button, editor, localization) {
5586
- super('redo', button, editor, localization);
5624
+ constructor(button, editor, localization, toolsService) {
5625
+ super('redo', button, editor, localization, toolsService);
5587
5626
  }
5588
5627
  };
5589
5628
  EditorRedoButtonDirective = __decorate([
@@ -5593,7 +5632,8 @@ EditorRedoButtonDirective = __decorate([
5593
5632
  __param(1, Host()),
5594
5633
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5595
5634
  EditorComponent,
5596
- EditorLocalizationService])
5635
+ EditorLocalizationService,
5636
+ EditorToolsService])
5597
5637
  ], EditorRedoButtonDirective);
5598
5638
 
5599
5639
  /**
@@ -5615,8 +5655,8 @@ EditorRedoButtonDirective = __decorate([
5615
5655
  * ```
5616
5656
  */
5617
5657
  let EditorUndoButtonDirective = class EditorUndoButtonDirective extends EditorCommandButton {
5618
- constructor(button, editor, localization) {
5619
- super('undo', button, editor, localization);
5658
+ constructor(button, editor, localization, toolsService) {
5659
+ super('undo', button, editor, localization, toolsService);
5620
5660
  }
5621
5661
  };
5622
5662
  EditorUndoButtonDirective = __decorate([
@@ -5626,19 +5666,21 @@ EditorUndoButtonDirective = __decorate([
5626
5666
  __param(1, Host()),
5627
5667
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5628
5668
  EditorComponent,
5629
- EditorLocalizationService])
5669
+ EditorLocalizationService,
5670
+ EditorToolsService])
5630
5671
  ], EditorUndoButtonDirective);
5631
5672
 
5632
5673
  /**
5633
5674
  * @hidden
5634
5675
  */
5635
5676
  class EditorCommandDialog extends EditorCommandBase {
5636
- constructor(dialog, button, editor, localization) {
5637
- super(dialog, button, editor, localization);
5677
+ constructor(dialog, button, editor, localization, toolsService) {
5678
+ super(dialog, button, editor, localization, toolsService);
5638
5679
  this.dialog = dialog;
5639
5680
  this.button = button;
5640
5681
  this.editor = editor;
5641
5682
  this.localization = localization;
5683
+ this.toolsService = toolsService;
5642
5684
  }
5643
5685
  clickHandler() {
5644
5686
  this.editor.openDialog(this.dialog);
@@ -5667,8 +5709,8 @@ class EditorCommandDialog extends EditorCommandBase {
5667
5709
  * ```
5668
5710
  */
5669
5711
  let EditorInsertImageButtonDirective = class EditorInsertImageButtonDirective extends EditorCommandDialog {
5670
- constructor(button, editor, localization) {
5671
- super('insertImage', button, editor, localization);
5712
+ constructor(button, editor, localization, toolsService) {
5713
+ super('insertImage', button, editor, localization, toolsService);
5672
5714
  }
5673
5715
  };
5674
5716
  EditorInsertImageButtonDirective = __decorate([
@@ -5678,7 +5720,8 @@ EditorInsertImageButtonDirective = __decorate([
5678
5720
  __param(1, Host()),
5679
5721
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5680
5722
  EditorComponent,
5681
- EditorLocalizationService])
5723
+ EditorLocalizationService,
5724
+ EditorToolsService])
5682
5725
  ], EditorInsertImageButtonDirective);
5683
5726
 
5684
5727
  /**
@@ -5700,8 +5743,8 @@ EditorInsertImageButtonDirective = __decorate([
5700
5743
  * ```
5701
5744
  */
5702
5745
  let EditorIndentButtonDirective = class EditorIndentButtonDirective extends EditorCommandButton {
5703
- constructor(button, editor, localization) {
5704
- super('indent', button, editor, localization);
5746
+ constructor(button, editor, localization, toolsService) {
5747
+ super('indent', button, editor, localization, toolsService);
5705
5748
  }
5706
5749
  };
5707
5750
  EditorIndentButtonDirective = __decorate([
@@ -5711,7 +5754,8 @@ EditorIndentButtonDirective = __decorate([
5711
5754
  __param(1, Host()),
5712
5755
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5713
5756
  EditorComponent,
5714
- EditorLocalizationService])
5757
+ EditorLocalizationService,
5758
+ EditorToolsService])
5715
5759
  ], EditorIndentButtonDirective);
5716
5760
 
5717
5761
  /**
@@ -5733,8 +5777,8 @@ EditorIndentButtonDirective = __decorate([
5733
5777
  * ```
5734
5778
  */
5735
5779
  let EditorOutdentButtonDirective = class EditorOutdentButtonDirective extends EditorCommandButton {
5736
- constructor(button, editor, localization) {
5737
- super('outdent', button, editor, localization);
5780
+ constructor(button, editor, localization, toolsService) {
5781
+ super('outdent', button, editor, localization, toolsService);
5738
5782
  }
5739
5783
  };
5740
5784
  EditorOutdentButtonDirective = __decorate([
@@ -5744,7 +5788,8 @@ EditorOutdentButtonDirective = __decorate([
5744
5788
  __param(1, Host()),
5745
5789
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5746
5790
  EditorComponent,
5747
- EditorLocalizationService])
5791
+ EditorLocalizationService,
5792
+ EditorToolsService])
5748
5793
  ], EditorOutdentButtonDirective);
5749
5794
 
5750
5795
  /**
@@ -5766,8 +5811,8 @@ EditorOutdentButtonDirective = __decorate([
5766
5811
  * ```
5767
5812
  */
5768
5813
  let EditorCreateLinkButtonDirective = class EditorCreateLinkButtonDirective extends EditorCommandDialog {
5769
- constructor(button, editor, localization) {
5770
- super('createLink', button, editor, localization);
5814
+ constructor(button, editor, localization, toolsService) {
5815
+ super('createLink', button, editor, localization, toolsService);
5771
5816
  }
5772
5817
  };
5773
5818
  EditorCreateLinkButtonDirective = __decorate([
@@ -5777,7 +5822,8 @@ EditorCreateLinkButtonDirective = __decorate([
5777
5822
  __param(1, Host()),
5778
5823
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5779
5824
  EditorComponent,
5780
- EditorLocalizationService])
5825
+ EditorLocalizationService,
5826
+ EditorToolsService])
5781
5827
  ], EditorCreateLinkButtonDirective);
5782
5828
 
5783
5829
  /**
@@ -5799,8 +5845,8 @@ EditorCreateLinkButtonDirective = __decorate([
5799
5845
  * ```
5800
5846
  */
5801
5847
  let EditorUnlinkButtonDirective = class EditorUnlinkButtonDirective extends EditorCommandButton {
5802
- constructor(button, editor, localization) {
5803
- super('unlink', button, editor, localization);
5848
+ constructor(button, editor, localization, toolsService) {
5849
+ super('unlink', button, editor, localization, toolsService);
5804
5850
  }
5805
5851
  };
5806
5852
  EditorUnlinkButtonDirective = __decorate([
@@ -5810,7 +5856,8 @@ EditorUnlinkButtonDirective = __decorate([
5810
5856
  __param(1, Host()),
5811
5857
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5812
5858
  EditorComponent,
5813
- EditorLocalizationService])
5859
+ EditorLocalizationService,
5860
+ EditorToolsService])
5814
5861
  ], EditorUnlinkButtonDirective);
5815
5862
 
5816
5863
  /**
@@ -5832,8 +5879,8 @@ EditorUnlinkButtonDirective = __decorate([
5832
5879
  * ```
5833
5880
  */
5834
5881
  let EditorInsertOrderedListButtonDirective = class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
5835
- constructor(button, editor, localization) {
5836
- super('insertOrderedList', button, editor, localization);
5882
+ constructor(button, editor, localization, toolsService) {
5883
+ super('insertOrderedList', button, editor, localization, toolsService);
5837
5884
  }
5838
5885
  };
5839
5886
  EditorInsertOrderedListButtonDirective = __decorate([
@@ -5843,7 +5890,8 @@ EditorInsertOrderedListButtonDirective = __decorate([
5843
5890
  __param(1, Host()),
5844
5891
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5845
5892
  EditorComponent,
5846
- EditorLocalizationService])
5893
+ EditorLocalizationService,
5894
+ EditorToolsService])
5847
5895
  ], EditorInsertOrderedListButtonDirective);
5848
5896
 
5849
5897
  /**
@@ -5865,8 +5913,8 @@ EditorInsertOrderedListButtonDirective = __decorate([
5865
5913
  * ```
5866
5914
  */
5867
5915
  let EditorInsertUnorderedListButtonDirective = class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
5868
- constructor(button, editor, localization) {
5869
- super('insertUnorderedList', button, editor, localization);
5916
+ constructor(button, editor, localization, toolsService) {
5917
+ super('insertUnorderedList', button, editor, localization, toolsService);
5870
5918
  }
5871
5919
  };
5872
5920
  EditorInsertUnorderedListButtonDirective = __decorate([
@@ -5876,7 +5924,8 @@ EditorInsertUnorderedListButtonDirective = __decorate([
5876
5924
  __param(1, Host()),
5877
5925
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5878
5926
  EditorComponent,
5879
- EditorLocalizationService])
5927
+ EditorLocalizationService,
5928
+ EditorToolsService])
5880
5929
  ], EditorInsertUnorderedListButtonDirective);
5881
5930
 
5882
5931
  /**
@@ -5897,8 +5946,8 @@ EditorInsertUnorderedListButtonDirective = __decorate([
5897
5946
  * ```
5898
5947
  */
5899
5948
  let EditorViewSourceButtonDirective = class EditorViewSourceButtonDirective extends EditorCommandDialog {
5900
- constructor(button, editor, localization) {
5901
- super('viewSource', button, editor, localization);
5949
+ constructor(button, editor, localization, toolsService) {
5950
+ super('viewSource', button, editor, localization, toolsService);
5902
5951
  }
5903
5952
  };
5904
5953
  EditorViewSourceButtonDirective = __decorate([
@@ -5908,7 +5957,8 @@ EditorViewSourceButtonDirective = __decorate([
5908
5957
  __param(1, Host()),
5909
5958
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5910
5959
  EditorComponent,
5911
- EditorLocalizationService])
5960
+ EditorLocalizationService,
5961
+ EditorToolsService])
5912
5962
  ], EditorViewSourceButtonDirective);
5913
5963
 
5914
5964
  /**
@@ -5930,8 +5980,8 @@ EditorViewSourceButtonDirective = __decorate([
5930
5980
  * ```
5931
5981
  */
5932
5982
  let EditorBoldButtonDirective = class EditorBoldButtonDirective extends EditorCommandButton {
5933
- constructor(button, editor, localization) {
5934
- super('bold', button, editor, localization);
5983
+ constructor(button, editor, localization, toolsService) {
5984
+ super('bold', button, editor, localization, toolsService);
5935
5985
  }
5936
5986
  };
5937
5987
  EditorBoldButtonDirective = __decorate([
@@ -5941,7 +5991,8 @@ EditorBoldButtonDirective = __decorate([
5941
5991
  __param(1, Host()),
5942
5992
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5943
5993
  EditorComponent,
5944
- EditorLocalizationService])
5994
+ EditorLocalizationService,
5995
+ EditorToolsService])
5945
5996
  ], EditorBoldButtonDirective);
5946
5997
 
5947
5998
  /**
@@ -5963,8 +6014,8 @@ EditorBoldButtonDirective = __decorate([
5963
6014
  * ```
5964
6015
  */
5965
6016
  let EditorItalicButtonDirective = class EditorItalicButtonDirective extends EditorCommandButton {
5966
- constructor(button, editor, localization) {
5967
- super('italic', button, editor, localization);
6017
+ constructor(button, editor, localization, toolsService) {
6018
+ super('italic', button, editor, localization, toolsService);
5968
6019
  }
5969
6020
  };
5970
6021
  EditorItalicButtonDirective = __decorate([
@@ -5974,7 +6025,8 @@ EditorItalicButtonDirective = __decorate([
5974
6025
  __param(1, Host()),
5975
6026
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5976
6027
  EditorComponent,
5977
- EditorLocalizationService])
6028
+ EditorLocalizationService,
6029
+ EditorToolsService])
5978
6030
  ], EditorItalicButtonDirective);
5979
6031
 
5980
6032
  /**
@@ -5996,8 +6048,8 @@ EditorItalicButtonDirective = __decorate([
5996
6048
  * ```
5997
6049
  */
5998
6050
  let EditorUnderlineButtonDirective = class EditorUnderlineButtonDirective extends EditorCommandButton {
5999
- constructor(button, editor, localization) {
6000
- super('underline', button, editor, localization);
6051
+ constructor(button, editor, localization, toolsService) {
6052
+ super('underline', button, editor, localization, toolsService);
6001
6053
  }
6002
6054
  };
6003
6055
  EditorUnderlineButtonDirective = __decorate([
@@ -6007,7 +6059,8 @@ EditorUnderlineButtonDirective = __decorate([
6007
6059
  __param(1, Host()),
6008
6060
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6009
6061
  EditorComponent,
6010
- EditorLocalizationService])
6062
+ EditorLocalizationService,
6063
+ EditorToolsService])
6011
6064
  ], EditorUnderlineButtonDirective);
6012
6065
 
6013
6066
  /**
@@ -6029,8 +6082,8 @@ EditorUnderlineButtonDirective = __decorate([
6029
6082
  * ```
6030
6083
  */
6031
6084
  let EditorStrikethroughButtonDirective = class EditorStrikethroughButtonDirective extends EditorCommandButton {
6032
- constructor(button, editor, localization) {
6033
- super('strikethrough', button, editor, localization);
6085
+ constructor(button, editor, localization, toolsService) {
6086
+ super('strikethrough', button, editor, localization, toolsService);
6034
6087
  }
6035
6088
  };
6036
6089
  EditorStrikethroughButtonDirective = __decorate([
@@ -6040,7 +6093,8 @@ EditorStrikethroughButtonDirective = __decorate([
6040
6093
  __param(1, Host()),
6041
6094
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6042
6095
  EditorComponent,
6043
- EditorLocalizationService])
6096
+ EditorLocalizationService,
6097
+ EditorToolsService])
6044
6098
  ], EditorStrikethroughButtonDirective);
6045
6099
 
6046
6100
  /**
@@ -6062,8 +6116,8 @@ EditorStrikethroughButtonDirective = __decorate([
6062
6116
  * ```
6063
6117
  */
6064
6118
  let EditorSubscriptButtonDirective = class EditorSubscriptButtonDirective extends EditorCommandButton {
6065
- constructor(button, editor, localization) {
6066
- super('subscript', button, editor, localization);
6119
+ constructor(button, editor, localization, toolsService) {
6120
+ super('subscript', button, editor, localization, toolsService);
6067
6121
  }
6068
6122
  };
6069
6123
  EditorSubscriptButtonDirective = __decorate([
@@ -6073,7 +6127,8 @@ EditorSubscriptButtonDirective = __decorate([
6073
6127
  __param(1, Host()),
6074
6128
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6075
6129
  EditorComponent,
6076
- EditorLocalizationService])
6130
+ EditorLocalizationService,
6131
+ EditorToolsService])
6077
6132
  ], EditorSubscriptButtonDirective);
6078
6133
 
6079
6134
  /**
@@ -6095,8 +6150,8 @@ EditorSubscriptButtonDirective = __decorate([
6095
6150
  * ```
6096
6151
  */
6097
6152
  let EditorSuperscriptButtonDirective = class EditorSuperscriptButtonDirective extends EditorCommandButton {
6098
- constructor(button, editor, localization) {
6099
- super('superscript', button, editor, localization);
6153
+ constructor(button, editor, localization, toolsService) {
6154
+ super('superscript', button, editor, localization, toolsService);
6100
6155
  }
6101
6156
  };
6102
6157
  EditorSuperscriptButtonDirective = __decorate([
@@ -6106,7 +6161,8 @@ EditorSuperscriptButtonDirective = __decorate([
6106
6161
  __param(1, Host()),
6107
6162
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6108
6163
  EditorComponent,
6109
- EditorLocalizationService])
6164
+ EditorLocalizationService,
6165
+ EditorToolsService])
6110
6166
  ], EditorSuperscriptButtonDirective);
6111
6167
 
6112
6168
  /**
@@ -6120,8 +6176,8 @@ EditorSuperscriptButtonDirective = __decorate([
6120
6176
  * ```
6121
6177
  */
6122
6178
  let EditorInsertFileButtonDirective = class EditorInsertFileButtonDirective extends EditorCommandDialog {
6123
- constructor(button, editor, localization) {
6124
- super('insertFile', button, editor, localization);
6179
+ constructor(button, editor, localization, toolsService) {
6180
+ super('insertFile', button, editor, localization, toolsService);
6125
6181
  }
6126
6182
  };
6127
6183
  EditorInsertFileButtonDirective = __decorate([
@@ -6131,7 +6187,8 @@ EditorInsertFileButtonDirective = __decorate([
6131
6187
  __param(1, Host()),
6132
6188
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6133
6189
  EditorComponent,
6134
- EditorLocalizationService])
6190
+ EditorLocalizationService,
6191
+ EditorToolsService])
6135
6192
  ], EditorInsertFileButtonDirective);
6136
6193
 
6137
6194
  /**
@@ -6190,8 +6247,8 @@ EditorBackColorDirective = __decorate([
6190
6247
  * ```
6191
6248
  */
6192
6249
  let EditorCleanFormattingButtonDirective = class EditorCleanFormattingButtonDirective extends EditorCommandButton {
6193
- constructor(button, editor, localization) {
6194
- super('cleanFormatting', button, editor, localization);
6250
+ constructor(button, editor, localization, toolsService) {
6251
+ super('cleanFormatting', button, editor, localization, toolsService);
6195
6252
  }
6196
6253
  };
6197
6254
  EditorCleanFormattingButtonDirective = __decorate([
@@ -6201,7 +6258,8 @@ EditorCleanFormattingButtonDirective = __decorate([
6201
6258
  __param(1, Host()),
6202
6259
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6203
6260
  EditorComponent,
6204
- EditorLocalizationService])
6261
+ EditorLocalizationService,
6262
+ EditorToolsService])
6205
6263
  ], EditorCleanFormattingButtonDirective);
6206
6264
 
6207
6265
  /**
@@ -6216,8 +6274,8 @@ EditorCleanFormattingButtonDirective = __decorate([
6216
6274
  * ```
6217
6275
  */
6218
6276
  let EditorAddColumnBeforeButtonDirective = class EditorAddColumnBeforeButtonDirective extends EditorCommandButton {
6219
- constructor(button, editor, localization) {
6220
- super('addColumnBefore', button, editor, localization);
6277
+ constructor(button, editor, localization, toolsService) {
6278
+ super('addColumnBefore', button, editor, localization, toolsService);
6221
6279
  }
6222
6280
  };
6223
6281
  EditorAddColumnBeforeButtonDirective = __decorate([
@@ -6227,7 +6285,8 @@ EditorAddColumnBeforeButtonDirective = __decorate([
6227
6285
  __param(1, Host()),
6228
6286
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6229
6287
  EditorComponent,
6230
- EditorLocalizationService])
6288
+ EditorLocalizationService,
6289
+ EditorToolsService])
6231
6290
  ], EditorAddColumnBeforeButtonDirective);
6232
6291
 
6233
6292
  /**
@@ -6242,8 +6301,8 @@ EditorAddColumnBeforeButtonDirective = __decorate([
6242
6301
  * ```
6243
6302
  */
6244
6303
  let EditorAddColumnAfterButtonDirective = class EditorAddColumnAfterButtonDirective extends EditorCommandButton {
6245
- constructor(button, editor, localization) {
6246
- super('addColumnAfter', button, editor, localization);
6304
+ constructor(button, editor, localization, toolsService) {
6305
+ super('addColumnAfter', button, editor, localization, toolsService);
6247
6306
  }
6248
6307
  };
6249
6308
  EditorAddColumnAfterButtonDirective = __decorate([
@@ -6253,7 +6312,8 @@ EditorAddColumnAfterButtonDirective = __decorate([
6253
6312
  __param(1, Host()),
6254
6313
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6255
6314
  EditorComponent,
6256
- EditorLocalizationService])
6315
+ EditorLocalizationService,
6316
+ EditorToolsService])
6257
6317
  ], EditorAddColumnAfterButtonDirective);
6258
6318
 
6259
6319
  /**
@@ -6268,8 +6328,8 @@ EditorAddColumnAfterButtonDirective = __decorate([
6268
6328
  * ```
6269
6329
  */
6270
6330
  let EditorAddRowBeforeButtonDirective = class EditorAddRowBeforeButtonDirective extends EditorCommandButton {
6271
- constructor(button, editor, localization) {
6272
- super('addRowBefore', button, editor, localization);
6331
+ constructor(button, editor, localization, toolsService) {
6332
+ super('addRowBefore', button, editor, localization, toolsService);
6273
6333
  }
6274
6334
  };
6275
6335
  EditorAddRowBeforeButtonDirective = __decorate([
@@ -6279,7 +6339,8 @@ EditorAddRowBeforeButtonDirective = __decorate([
6279
6339
  __param(1, Host()),
6280
6340
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6281
6341
  EditorComponent,
6282
- EditorLocalizationService])
6342
+ EditorLocalizationService,
6343
+ EditorToolsService])
6283
6344
  ], EditorAddRowBeforeButtonDirective);
6284
6345
 
6285
6346
  /**
@@ -6294,8 +6355,8 @@ EditorAddRowBeforeButtonDirective = __decorate([
6294
6355
  * ```
6295
6356
  */
6296
6357
  let EditorAddRowAfterButtonDirective = class EditorAddRowAfterButtonDirective extends EditorCommandButton {
6297
- constructor(button, editor, localization) {
6298
- super('addRowAfter', button, editor, localization);
6358
+ constructor(button, editor, localization, toolsService) {
6359
+ super('addRowAfter', button, editor, localization, toolsService);
6299
6360
  }
6300
6361
  };
6301
6362
  EditorAddRowAfterButtonDirective = __decorate([
@@ -6305,7 +6366,8 @@ EditorAddRowAfterButtonDirective = __decorate([
6305
6366
  __param(1, Host()),
6306
6367
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6307
6368
  EditorComponent,
6308
- EditorLocalizationService])
6369
+ EditorLocalizationService,
6370
+ EditorToolsService])
6309
6371
  ], EditorAddRowAfterButtonDirective);
6310
6372
 
6311
6373
  /**
@@ -6320,8 +6382,8 @@ EditorAddRowAfterButtonDirective = __decorate([
6320
6382
  * ```
6321
6383
  */
6322
6384
  let EditorDeleteColumnButtonDirective = class EditorDeleteColumnButtonDirective extends EditorCommandButton {
6323
- constructor(button, editor, localization) {
6324
- super('deleteColumn', button, editor, localization);
6385
+ constructor(button, editor, localization, toolsService) {
6386
+ super('deleteColumn', button, editor, localization, toolsService);
6325
6387
  }
6326
6388
  };
6327
6389
  EditorDeleteColumnButtonDirective = __decorate([
@@ -6331,7 +6393,8 @@ EditorDeleteColumnButtonDirective = __decorate([
6331
6393
  __param(1, Host()),
6332
6394
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6333
6395
  EditorComponent,
6334
- EditorLocalizationService])
6396
+ EditorLocalizationService,
6397
+ EditorToolsService])
6335
6398
  ], EditorDeleteColumnButtonDirective);
6336
6399
 
6337
6400
  /**
@@ -6346,8 +6409,8 @@ EditorDeleteColumnButtonDirective = __decorate([
6346
6409
  * ```
6347
6410
  */
6348
6411
  let EditorDeleteRowButtonDirective = class EditorDeleteRowButtonDirective extends EditorCommandButton {
6349
- constructor(button, editor, localization) {
6350
- super('deleteRow', button, editor, localization);
6412
+ constructor(button, editor, localization, toolsService) {
6413
+ super('deleteRow', button, editor, localization, toolsService);
6351
6414
  }
6352
6415
  };
6353
6416
  EditorDeleteRowButtonDirective = __decorate([
@@ -6357,7 +6420,8 @@ EditorDeleteRowButtonDirective = __decorate([
6357
6420
  __param(1, Host()),
6358
6421
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6359
6422
  EditorComponent,
6360
- EditorLocalizationService])
6423
+ EditorLocalizationService,
6424
+ EditorToolsService])
6361
6425
  ], EditorDeleteRowButtonDirective);
6362
6426
 
6363
6427
  /**
@@ -6372,8 +6436,8 @@ EditorDeleteRowButtonDirective = __decorate([
6372
6436
  * ```
6373
6437
  */
6374
6438
  let EditorDeleteTableButtonDirective = class EditorDeleteTableButtonDirective extends EditorCommandButton {
6375
- constructor(button, editor, localization) {
6376
- super('deleteTable', button, editor, localization);
6439
+ constructor(button, editor, localization, toolsService) {
6440
+ super('deleteTable', button, editor, localization, toolsService);
6377
6441
  }
6378
6442
  };
6379
6443
  EditorDeleteTableButtonDirective = __decorate([
@@ -6383,7 +6447,8 @@ EditorDeleteTableButtonDirective = __decorate([
6383
6447
  __param(1, Host()),
6384
6448
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6385
6449
  EditorComponent,
6386
- EditorLocalizationService])
6450
+ EditorLocalizationService,
6451
+ EditorToolsService])
6387
6452
  ], EditorDeleteTableButtonDirective);
6388
6453
 
6389
6454
  /**
@@ -6400,8 +6465,8 @@ EditorDeleteTableButtonDirective = __decorate([
6400
6465
  * ```
6401
6466
  */
6402
6467
  let EditorMergeCellsButtonDirective = class EditorMergeCellsButtonDirective extends EditorCommandButton {
6403
- constructor(button, editor, localization) {
6404
- super('mergeCells', button, editor, localization);
6468
+ constructor(button, editor, localization, toolsService) {
6469
+ super('mergeCells', button, editor, localization, toolsService);
6405
6470
  }
6406
6471
  };
6407
6472
  EditorMergeCellsButtonDirective = __decorate([
@@ -6411,7 +6476,8 @@ EditorMergeCellsButtonDirective = __decorate([
6411
6476
  __param(1, Host()),
6412
6477
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6413
6478
  EditorComponent,
6414
- EditorLocalizationService])
6479
+ EditorLocalizationService,
6480
+ EditorToolsService])
6415
6481
  ], EditorMergeCellsButtonDirective);
6416
6482
 
6417
6483
  /**
@@ -6428,8 +6494,8 @@ EditorMergeCellsButtonDirective = __decorate([
6428
6494
  * ```
6429
6495
  */
6430
6496
  let EditorSplitCellButtonDirective = class EditorSplitCellButtonDirective extends EditorCommandButton {
6431
- constructor(button, editor, localization) {
6432
- super('splitCell', button, editor, localization);
6497
+ constructor(button, editor, localization, toolsService) {
6498
+ super('splitCell', button, editor, localization, toolsService);
6433
6499
  }
6434
6500
  };
6435
6501
  EditorSplitCellButtonDirective = __decorate([
@@ -6439,7 +6505,8 @@ EditorSplitCellButtonDirective = __decorate([
6439
6505
  __param(1, Host()),
6440
6506
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6441
6507
  EditorComponent,
6442
- EditorLocalizationService])
6508
+ EditorLocalizationService,
6509
+ EditorToolsService])
6443
6510
  ], EditorSplitCellButtonDirective);
6444
6511
 
6445
6512
  /**
@@ -6755,8 +6822,8 @@ DropDownToolDirective = __decorate([
6755
6822
  * ```
6756
6823
  */
6757
6824
  let EditorPrintDirective = class EditorPrintDirective extends EditorCommandButton {
6758
- constructor(button, editor, localization) {
6759
- super('print', button, editor, localization);
6825
+ constructor(button, editor, localization, toolsService) {
6826
+ super('print', button, editor, localization, toolsService);
6760
6827
  this.editor = editor;
6761
6828
  }
6762
6829
  ngAfterViewInit() {
@@ -6785,7 +6852,8 @@ EditorPrintDirective = __decorate([
6785
6852
  __param(1, Host()),
6786
6853
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6787
6854
  EditorComponent,
6788
- EditorLocalizationService])
6855
+ EditorLocalizationService,
6856
+ EditorToolsService])
6789
6857
  ], EditorPrintDirective);
6790
6858
 
6791
6859
  /**
@@ -6806,8 +6874,8 @@ EditorPrintDirective = __decorate([
6806
6874
  * ```
6807
6875
  */
6808
6876
  let EditorSelectAllButtonDirective = class EditorSelectAllButtonDirective extends EditorCommandButton {
6809
- constructor(button, editor, localization) {
6810
- super('selectAll', button, editor, localization);
6877
+ constructor(button, editor, localization, toolsService) {
6878
+ super('selectAll', button, editor, localization, toolsService);
6811
6879
  }
6812
6880
  clickHandler() {
6813
6881
  this.editor.shouldEmitFocus = true;
@@ -6821,7 +6889,8 @@ EditorSelectAllButtonDirective = __decorate([
6821
6889
  __param(1, Host()),
6822
6890
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6823
6891
  EditorComponent,
6824
- EditorLocalizationService])
6892
+ EditorLocalizationService,
6893
+ EditorToolsService])
6825
6894
  ], EditorSelectAllButtonDirective);
6826
6895
 
6827
6896
  const COMPONENT_DIRECTIVES = [
@@ -6993,4 +7062,4 @@ EditorModule = __decorate([
6993
7062
  * Generated bundle index. Do not edit.
6994
7063
  */
6995
7064
 
6996
- export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema };
7065
+ export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorToolsService, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema };