@progress/kendo-angular-editor 2.5.0-dev.202111111129 → 2.5.0-dev.202111261548

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 (203) 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-insert-table-button.component.js +5 -8
  44. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  45. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  46. package/dist/es/tools/tools.service.js +20 -0
  47. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  50. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  51. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  52. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  53. package/dist/es2015/common/commands.d.ts +5 -1
  54. package/dist/es2015/common/error-messages.js +2 -1
  55. package/dist/es2015/config/command-icons.d.ts +2 -2
  56. package/dist/es2015/config/command-icons.js +4 -2
  57. package/dist/es2015/config/commands.js +31 -30
  58. package/dist/es2015/editor-toolbar-state.js +20 -2
  59. package/dist/es2015/editor.component.d.ts +8 -1
  60. package/dist/es2015/editor.component.js +14 -4
  61. package/dist/es2015/editor.module.js +7 -1
  62. package/dist/es2015/index.d.ts +3 -0
  63. package/dist/es2015/index.js +3 -0
  64. package/dist/es2015/index.metadata.json +1 -1
  65. package/dist/es2015/localization/messages.d.ts +8 -0
  66. package/dist/es2015/localization/messages.js +8 -0
  67. package/dist/es2015/package-metadata.js +1 -1
  68. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  69. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  70. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  71. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  72. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  73. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  74. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  75. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  76. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  77. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  78. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  79. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  80. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  81. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  82. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  83. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  84. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  85. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  86. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  87. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  88. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  89. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  90. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  91. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  92. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  93. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  94. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  95. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  96. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  97. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  98. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  99. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  100. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  101. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  102. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  103. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  104. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
  105. package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
  106. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
  107. package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
  108. package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
  109. package/dist/es2015/tools/shared/editor-command-base.js +12 -10
  110. package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
  111. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  112. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  113. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  114. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  115. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  116. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  117. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  118. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  119. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  120. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  121. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  122. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  123. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  124. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  125. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  126. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  127. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  128. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  129. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  130. package/dist/es2015/tools/tables/editor-insert-table-button.component.d.ts +2 -3
  131. package/dist/es2015/tools/tables/editor-insert-table-button.component.js +13 -8
  132. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  133. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  134. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  135. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  136. package/dist/es2015/tools/tools.service.d.ts +11 -0
  137. package/dist/es2015/tools/tools.service.js +22 -0
  138. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  139. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  140. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  141. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  142. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  143. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  144. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  145. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  146. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  147. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  148. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  149. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  150. package/dist/fesm2015/index.js +371 -167
  151. package/dist/fesm5/index.js +365 -170
  152. package/dist/npm/common/error-messages.js +2 -1
  153. package/dist/npm/config/command-icons.js +4 -2
  154. package/dist/npm/config/commands.js +33 -31
  155. package/dist/npm/editor-toolbar-state.js +20 -2
  156. package/dist/npm/editor.component.js +11 -5
  157. package/dist/npm/editor.module.js +7 -1
  158. package/dist/npm/index.js +6 -0
  159. package/dist/npm/localization/messages.js +8 -0
  160. package/dist/npm/package-metadata.js +1 -1
  161. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  162. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  163. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  164. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  165. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  166. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  167. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  168. package/dist/npm/tools/format/editor-format.component.js +9 -3
  169. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  170. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  171. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  172. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  173. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  174. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  175. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  176. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  177. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  178. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  179. package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
  180. package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
  181. package/dist/npm/tools/shared/editor-command-base.js +13 -11
  182. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  183. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  184. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  186. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  187. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  188. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  189. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  190. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  191. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  192. package/dist/npm/tools/tables/editor-insert-table-button.component.js +5 -8
  193. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  194. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  195. package/dist/npm/tools/tools.service.js +22 -0
  196. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  197. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  198. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  199. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  200. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  201. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  202. package/dist/systemjs/kendo-angular-editor.js +1 -1
  203. package/package.json +1 -1
@@ -3,14 +3,14 @@
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';
12
12
  import { isDocumentAvailable, guid, KendoInput, Keys } from '@progress/kendo-angular-common';
13
- import { nodes, Schema, marks, Selection, SelectionRange, TextSelection, Fragment, Slice, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, getNodeFromSelection, getMark, getSelectionText, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, placeholder, EditorState, EditorView, hasSameMarkup, pasteCleanup, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
13
+ import { nodes, Schema, marks, Selection, SelectionRange, TextSelection, Fragment, Slice, NodeSelection, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, getNodeFromSelection, getMark, getSelectionText, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, placeholder, EditorState, EditorView, hasSameMarkup, pasteCleanup, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
14
14
  export { Schema, EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes, getSelectionText } from '@progress/kendo-editor-common';
15
15
  import { validatePackage } from '@progress/kendo-licensing';
16
16
  import { LocalizationService, L10N_PREFIX, RTL, MessageService, ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -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: 1636629848,
30
+ publishDate: 1637941374,
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
  };
@@ -1607,7 +1607,7 @@ const deleteTableElement = (selector) => (state, dispatch) => {
1607
1607
  const deleteTable$1 = deleteTableElement(isTable);
1608
1608
 
1609
1609
  const alignRemove = (state, dispatch) => alignBlocks(alignRemoveRules)(state, dispatch);
1610
- const ɵ1$5 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, bold, { applyToWord })), ɵ2$4 = (options) => cleanFormatting(options), ɵ3$4 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }), ɵ4$2 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ5$2 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }), ɵ6$1 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }), ɵ7$1 = text => insertText(text), ɵ8$1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, italic, { applyToWord })), ɵ9$1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, strikethrough, { applyToWord })), ɵ10 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, subscript, { applyToWord })), ɵ11 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, superscript, { applyToWord })), ɵ12 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, underline, { applyToWord })), ɵ13 = () => removeLink(link), ɵ14 = attrs => expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ15 = attrs => expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord });
1610
+ const ɵ1$5 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, bold, { applyToWord })), ɵ2$4 = (options) => cleanFormatting(options), ɵ3$4 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }), ɵ4$2 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ5$2 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }), ɵ6$1 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }), ɵ7$1 = text => insertText(text), ɵ8$1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, italic, { applyToWord })), ɵ9$1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, strikethrough, { applyToWord })), ɵ10 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, subscript, { applyToWord })), ɵ11 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, superscript, { applyToWord })), ɵ12 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, underline, { applyToWord })), ɵ13 = () => removeLink(link), ɵ14 = attrs => expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ15 = attrs => expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ16 = () => (state, dispatch) => selectAll(state, dispatch);
1611
1611
  const inlineCommand = {
1612
1612
  bold: ɵ1$5,
1613
1613
  cleanFormatting: ɵ2$4,
@@ -1623,39 +1623,40 @@ const inlineCommand = {
1623
1623
  underline: ɵ12,
1624
1624
  unlink: ɵ13,
1625
1625
  foreColor: ɵ14,
1626
- backColor: ɵ15
1626
+ backColor: ɵ15,
1627
+ selectAll: ɵ16
1627
1628
  };
1628
- const ɵ16 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ17 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ20 = formatAttr => formatBlockElements(formatAttr.tag), ɵ21 = () => getHtml, ɵ22 = () => indent, ɵ23 = attrs => insertImage(attrs), ɵ24 = () => toggleOrderedList, ɵ25 = () => toggleUnorderedList, ɵ26 = () => outdent, ɵ27 = () => redo, ɵ28 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ29 = () => undo;
1629
+ const ɵ17 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ20 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ21 = formatAttr => formatBlockElements(formatAttr.tag), ɵ22 = () => getHtml, ɵ23 = () => indent, ɵ24 = attrs => insertImage(attrs), ɵ25 = () => toggleOrderedList, ɵ26 = () => toggleUnorderedList, ɵ27 = () => outdent, ɵ28 = () => redo, ɵ29 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ30 = () => undo;
1629
1630
  const blockCommand = {
1630
- alignCenter: ɵ16,
1631
- alignJustify: ɵ17,
1632
- alignLeft: ɵ18,
1633
- alignRight: ɵ19,
1634
- format: ɵ20,
1635
- getHTML: ɵ21,
1636
- indent: ɵ22,
1637
- insertImage: ɵ23,
1631
+ alignCenter: ɵ17,
1632
+ alignJustify: ɵ18,
1633
+ alignLeft: ɵ19,
1634
+ alignRight: ɵ20,
1635
+ format: ɵ21,
1636
+ getHTML: ɵ22,
1637
+ indent: ɵ23,
1638
+ insertImage: ɵ24,
1638
1639
  // think about changing the command name.
1639
- insertOrderedList: ɵ24,
1640
+ insertOrderedList: ɵ25,
1640
1641
  // think about changing the command name.
1641
- insertUnorderedList: ɵ25,
1642
- outdent: ɵ26,
1643
- redo: ɵ27,
1644
- setHTML: ɵ28,
1645
- undo: ɵ29
1642
+ insertUnorderedList: ɵ26,
1643
+ outdent: ɵ27,
1644
+ redo: ɵ28,
1645
+ setHTML: ɵ29,
1646
+ undo: ɵ30
1646
1647
  };
1647
- const ɵ30 = attr => insertTable(attr), ɵ31 = () => addColumnBefore$1, ɵ32 = () => addColumnAfter$1, ɵ33 = () => addRowBefore$1, ɵ34 = () => addRowAfter$1, ɵ35 = () => deleteRow$1, ɵ36 = () => deleteColumn$1, ɵ37 = () => mergeCells$1, ɵ38 = () => splitCell$1, ɵ39 = () => deleteTable$1;
1648
+ const ɵ31 = attr => insertTable(attr), ɵ32 = () => addColumnBefore$1, ɵ33 = () => addColumnAfter$1, ɵ34 = () => addRowBefore$1, ɵ35 = () => addRowAfter$1, ɵ36 = () => deleteRow$1, ɵ37 = () => deleteColumn$1, ɵ38 = () => mergeCells$1, ɵ39 = () => splitCell$1, ɵ40 = () => deleteTable$1;
1648
1649
  const tableCommand = {
1649
- insertTable: ɵ30,
1650
- addColumnBefore: ɵ31,
1651
- addColumnAfter: ɵ32,
1652
- addRowBefore: ɵ33,
1653
- addRowAfter: ɵ34,
1654
- deleteRow: ɵ35,
1655
- deleteColumn: ɵ36,
1656
- mergeCells: ɵ37,
1657
- splitCell: ɵ38,
1658
- deleteTable: ɵ39
1650
+ insertTable: ɵ31,
1651
+ addColumnBefore: ɵ32,
1652
+ addColumnAfter: ɵ33,
1653
+ addRowBefore: ɵ34,
1654
+ addRowAfter: ɵ35,
1655
+ deleteRow: ɵ36,
1656
+ deleteColumn: ɵ37,
1657
+ mergeCells: ɵ38,
1658
+ splitCell: ɵ39,
1659
+ deleteTable: ɵ40
1659
1660
  };
1660
1661
  /**
1661
1662
  * @hidden
@@ -1722,6 +1723,10 @@ const getToolbarState = (state, options) => ({
1722
1723
  selected: false,
1723
1724
  disabled: !redo(state)
1724
1725
  },
1726
+ selectAll: {
1727
+ selected: false,
1728
+ disabled: false
1729
+ },
1725
1730
  strikethrough: {
1726
1731
  selected: hasMark(state, strikethrough),
1727
1732
  disabled: false
@@ -1771,6 +1776,12 @@ const getToolbarState = (state, options) => ({
1771
1776
  selected: false,
1772
1777
  disabled: false
1773
1778
  },
1779
+ // print
1780
+ print: {
1781
+ selected: false,
1782
+ disabled: false
1783
+ },
1784
+ // table
1774
1785
  insertTable: {
1775
1786
  selected: false,
1776
1787
  disabled: false
@@ -1843,6 +1854,8 @@ const initialToolBarState = {
1843
1854
  //history
1844
1855
  redo: { selected: false, disabled: true },
1845
1856
  undo: { selected: false, disabled: true },
1857
+ // print
1858
+ print: { selected: false, disabled: false },
1846
1859
  //dialogs
1847
1860
  createLink: { selected: false, disabled: true },
1848
1861
  insertFile: { selected: false, disabled: true },
@@ -1858,7 +1871,9 @@ const initialToolBarState = {
1858
1871
  deleteColumn: { selected: false, disabled: true },
1859
1872
  mergeCells: { selected: false, disabled: true },
1860
1873
  splitCell: { selected: false, disabled: true },
1861
- deleteTable: { selected: false, disabled: true }
1874
+ deleteTable: { selected: false, disabled: true },
1875
+ // select all
1876
+ selectAll: { selected: false, disabled: false }
1862
1877
  };
1863
1878
  /**
1864
1879
  * @hidden
@@ -1891,6 +1906,8 @@ const disabledToolBarState = {
1891
1906
  //history
1892
1907
  redo: { selected: false, disabled: true },
1893
1908
  undo: { selected: false, disabled: true },
1909
+ // print
1910
+ print: { selected: false, disabled: true },
1894
1911
  //dialogs
1895
1912
  createLink: { selected: false, disabled: true },
1896
1913
  insertFile: { selected: false, disabled: true },
@@ -1906,7 +1923,9 @@ const disabledToolBarState = {
1906
1923
  deleteColumn: { selected: false, disabled: true },
1907
1924
  mergeCells: { selected: false, disabled: true },
1908
1925
  splitCell: { selected: false, disabled: true },
1909
- deleteTable: { selected: false, disabled: true }
1926
+ deleteTable: { selected: false, disabled: true },
1927
+ // select all
1928
+ selectAll: { selected: false, disabled: true }
1910
1929
  };
1911
1930
 
1912
1931
  /**
@@ -2524,8 +2543,24 @@ const EditorErrorMessages = {
2524
2543
  setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
2525
2544
  pluginsCallbackType: ɵ0$6,
2526
2545
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
2527
- setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
2546
+ setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
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
+ };
2549
+
2550
+ /**
2551
+ * @hidden
2552
+ */
2553
+ let EditorToolsService = class EditorToolsService {
2554
+ /**
2555
+ * @hidden
2556
+ */
2557
+ constructor() {
2558
+ this.needsCheck = new Subject();
2559
+ }
2528
2560
  };
2561
+ EditorToolsService = __decorate([
2562
+ Injectable()
2563
+ ], EditorToolsService);
2529
2564
 
2530
2565
  var EditorComponent_1;
2531
2566
  const EMPTY_PARAGRAPH = '<p></p>';
@@ -2554,15 +2589,17 @@ const getPasteCleanupAttributes = (config) => {
2554
2589
  * Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
2555
2590
  */
2556
2591
  let EditorComponent = EditorComponent_1 = class EditorComponent {
2557
- constructor(dialogService, localization, cdr, ngZone, element) {
2592
+ constructor(dialogService, localization, cdr, ngZone, element, toolsService) {
2558
2593
  this.dialogService = dialogService;
2559
2594
  this.localization = localization;
2560
2595
  this.cdr = cdr;
2561
2596
  this.ngZone = ngZone;
2562
2597
  this.element = element;
2598
+ this.toolsService = toolsService;
2563
2599
  /**
2564
2600
  * If set to `false`, the Editor will run in style non-encapsulated mode. This means
2565
2601
  * that the styles of the page will be persisted in the Editor and its content will be affected by them.
2602
+ * @default true
2566
2603
  */
2567
2604
  this.iframe = true;
2568
2605
  /**
@@ -2827,6 +2864,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2827
2864
  this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
2828
2865
  this.direction = rtl ? 'rtl' : 'ltr';
2829
2866
  }));
2867
+ this.subs.add(this.toolsService.needsCheck.subscribe(() => this.cdr.markForCheck()));
2830
2868
  }
2831
2869
  ngAfterViewInit() {
2832
2870
  this.afterViewInit.next();
@@ -2979,7 +3017,6 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
2979
3017
  * Manually focus the Editor.
2980
3018
  */
2981
3019
  focus() {
2982
- // this.focusChangedProgrammatically = true;
2983
3020
  this.focusChangedProgrammatically = true;
2984
3021
  this._view.focus();
2985
3022
  this.focusChangedProgrammatically = false;
@@ -3150,8 +3187,9 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
3150
3187
  if (this.readonly) {
3151
3188
  contentAreaClasslist.add('k-state-focused');
3152
3189
  }
3153
- if (!this.focusChangedProgrammatically) {
3190
+ if (!this.focusChangedProgrammatically || this.shouldEmitFocus) {
3154
3191
  this.ngZone.run(() => this.onFocus.emit());
3192
+ this.shouldEmitFocus = false;
3155
3193
  }
3156
3194
  }));
3157
3195
  this.subs.add(fromEvent(containerElement, 'focusout')
@@ -3376,6 +3414,7 @@ EditorComponent = EditorComponent_1 = __decorate([
3376
3414
  selector: 'kendo-editor',
3377
3415
  providers: [
3378
3416
  EditorLocalizationService,
3417
+ EditorToolsService,
3379
3418
  {
3380
3419
  provide: LocalizationService,
3381
3420
  useExisting: EditorLocalizationService
@@ -3466,8 +3505,12 @@ EditorComponent = EditorComponent_1 = __decorate([
3466
3505
  linkWebAddress="Web address"
3467
3506
  i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."
3468
3507
  outdent="Outdent"
3508
+ i18n-print="kendo.editor.print|The title of the print tool."
3509
+ print="Print"
3469
3510
  i18n-redo="kendo.editor.redo|The title of the tool that undos the last action."
3470
3511
  redo="Redo"
3512
+ i18n-selectAll="kendo.editor.selectAll|The title of the tool that selects all content."
3513
+ selectAll="Select All"
3471
3514
  i18n-strikethrough="kendo.editor.strikethrough|The title of the tool that strikes through text."
3472
3515
  strikethrough="Strikethrough"
3473
3516
  i18n-subscript="kendo.editor.subscript|The title of the tool that makes text subscript."
@@ -3558,7 +3601,8 @@ EditorComponent = EditorComponent_1 = __decorate([
3558
3601
  LocalizationService,
3559
3602
  ChangeDetectorRef,
3560
3603
  NgZone,
3561
- ElementRef])
3604
+ ElementRef,
3605
+ EditorToolsService])
3562
3606
  ], EditorComponent);
3563
3607
 
3564
3608
  /**
@@ -4060,11 +4104,12 @@ var EditorFormatComponent_1;
4060
4104
  * ```
4061
4105
  */
4062
4106
  let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponent extends ToolBarToolComponent {
4063
- constructor(editor, dialogService, localization) {
4107
+ constructor(editor, dialogService, localization, toolsService) {
4064
4108
  super();
4065
4109
  this.editor = editor;
4066
4110
  this.dialogService = dialogService;
4067
4111
  this.localization = localization;
4112
+ this.toolsService = toolsService;
4068
4113
  this.disabled = false;
4069
4114
  this.tabindex = -1;
4070
4115
  /**
@@ -4100,7 +4145,10 @@ let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponen
4100
4145
  return itemArgs.dataItem.tag === null;
4101
4146
  }
4102
4147
  };
4103
- setTimeout(() => (this.defaultItem = { text: this.title, tag: null }));
4148
+ setTimeout(() => {
4149
+ this.defaultItem = { text: this.title, tag: null };
4150
+ this.toolsService.needsCheck.next();
4151
+ });
4104
4152
  this.subs = this.editor.stateChange.subscribe(({ format }) => {
4105
4153
  const index = this.data.findIndex(item => item.tag === format.selected.tag);
4106
4154
  this.value = index !== -1 ? format.selected.tag : null;
@@ -4241,7 +4289,8 @@ EditorFormatComponent = EditorFormatComponent_1 = __decorate([
4241
4289
  __param(0, Host()),
4242
4290
  __metadata("design:paramtypes", [EditorComponent,
4243
4291
  DialogService,
4244
- EditorLocalizationService])
4292
+ EditorLocalizationService,
4293
+ EditorToolsService])
4245
4294
  ], EditorFormatComponent);
4246
4295
 
4247
4296
  /**
@@ -4413,11 +4462,12 @@ var EditorFontSizeComponent_1;
4413
4462
  * ```
4414
4463
  */
4415
4464
  let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeComponent extends ToolBarToolComponent {
4416
- constructor(editor, dialogService, localization) {
4465
+ constructor(editor, dialogService, localization, toolsService) {
4417
4466
  super();
4418
4467
  this.editor = editor;
4419
4468
  this.dialogService = dialogService;
4420
4469
  this.localization = localization;
4470
+ this.toolsService = toolsService;
4421
4471
  this.disabled = false;
4422
4472
  this.tabindex = -1;
4423
4473
  /**
@@ -4452,7 +4502,10 @@ let EditorFontSizeComponent = EditorFontSizeComponent_1 = class EditorFontSizeCo
4452
4502
  return itemArgs.dataItem.size === null;
4453
4503
  }
4454
4504
  };
4455
- setTimeout(() => (this.defaultItem = { text: this.title, size: null }));
4505
+ setTimeout(() => {
4506
+ this.defaultItem = { text: this.title, size: null };
4507
+ this.toolsService.needsCheck.next();
4508
+ });
4456
4509
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
4457
4510
  // remove units(px, em, rem...)
4458
4511
  // string#match returns array
@@ -4597,7 +4650,8 @@ EditorFontSizeComponent = EditorFontSizeComponent_1 = __decorate([
4597
4650
  __param(0, Host()),
4598
4651
  __metadata("design:paramtypes", [EditorComponent,
4599
4652
  DialogService,
4600
- EditorLocalizationService])
4653
+ EditorLocalizationService,
4654
+ EditorToolsService])
4601
4655
  ], EditorFontSizeComponent);
4602
4656
 
4603
4657
  var EditorFontFamilyComponent_1;
@@ -4613,11 +4667,12 @@ var EditorFontFamilyComponent_1;
4613
4667
  * ```
4614
4668
  */
4615
4669
  let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFamilyComponent extends ToolBarToolComponent {
4616
- constructor(editor, dialogService, localization) {
4670
+ constructor(editor, dialogService, localization, toolsService) {
4617
4671
  super();
4618
4672
  this.editor = editor;
4619
4673
  this.dialogService = dialogService;
4620
4674
  this.localization = localization;
4675
+ this.toolsService = toolsService;
4621
4676
  this.disabled = false;
4622
4677
  this.tabindex = -1;
4623
4678
  /**
@@ -4659,7 +4714,10 @@ let EditorFontFamilyComponent = EditorFontFamilyComponent_1 = class EditorFontFa
4659
4714
  return itemArgs.dataItem.fontName === null;
4660
4715
  }
4661
4716
  };
4662
- setTimeout(() => (this.defaultItem = { text: this.title, fontName: null }));
4717
+ setTimeout(() => {
4718
+ this.defaultItem = { text: this.title, fontName: null };
4719
+ this.toolsService.needsCheck.next();
4720
+ });
4663
4721
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
4664
4722
  this.value = getUniqueStyleValues(style.selected, 'font-family') || null;
4665
4723
  this.disabled = style.disabled;
@@ -4802,7 +4860,8 @@ EditorFontFamilyComponent = EditorFontFamilyComponent_1 = __decorate([
4802
4860
  __param(0, Host()),
4803
4861
  __metadata("design:paramtypes", [EditorComponent,
4804
4862
  DialogService,
4805
- EditorLocalizationService])
4863
+ EditorLocalizationService,
4864
+ EditorToolsService])
4806
4865
  ], EditorFontFamilyComponent);
4807
4866
 
4808
4867
  // tslint:disable:no-forward-ref
@@ -5050,9 +5109,6 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5050
5109
  this.toggle(false);
5051
5110
  }));
5052
5111
  }
5053
- ngAfterViewInit() {
5054
- this.getButton().tabIndex = -1;
5055
- }
5056
5112
  ngOnDestroy() {
5057
5113
  this.destroyPopup();
5058
5114
  if (this.subs) {
@@ -5095,7 +5151,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5095
5151
  * @hidden
5096
5152
  */
5097
5153
  onBlur() {
5098
- this.getButton().tabIndex = -1;
5154
+ this.tabIndex = -1;
5099
5155
  this.buttonBlurred.emit();
5100
5156
  }
5101
5157
  /**
@@ -5116,8 +5172,8 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5116
5172
  * @hidden
5117
5173
  */
5118
5174
  focus() {
5175
+ this.tabIndex = 0;
5119
5176
  this.getButton().focus();
5120
- this.getButton().tabIndex = 0;
5121
5177
  }
5122
5178
  /**
5123
5179
  * @hidden
@@ -5126,7 +5182,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5126
5182
  if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
5127
5183
  return true;
5128
5184
  }
5129
- this.getButton().tabIndex = -1;
5185
+ this.tabIndex = -1;
5130
5186
  return false;
5131
5187
  }
5132
5188
  /**
@@ -5169,7 +5225,7 @@ __decorate([
5169
5225
  __metadata("design:type", TemplateRef)
5170
5226
  ], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
5171
5227
  __decorate([
5172
- ViewChild('popupTemplate', { static: true }),
5228
+ ViewChild('popupTemplate', { static: false }),
5173
5229
  __metadata("design:type", TemplateRef)
5174
5230
  ], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
5175
5231
  __decorate([
@@ -5196,6 +5252,7 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = __decora
5196
5252
  kendoButton
5197
5253
  #element
5198
5254
  [attr.title]="title"
5255
+ [attr.tabindex]="tabIndex"
5199
5256
  [icon]="'table-insert'"
5200
5257
  [disabled]="disabled"
5201
5258
  (click)="toggle()"
@@ -5203,7 +5260,14 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = __decora
5203
5260
  ></button>
5204
5261
  </ng-template>
5205
5262
  <ng-template #popupTemplate>
5206
- <button kendoButton #overflowElement [attr.title]="title" [icon]="'table-insert'" [disabled]="disabled" (click)="openDialog()">
5263
+ <button
5264
+ kendoButton
5265
+ #overflowElement
5266
+ [attr.title]="title"
5267
+ [attr.tabindex]="tabIndex"
5268
+ [icon]="'table-insert'"
5269
+ [disabled]="disabled"
5270
+ (click)="openDialog()">
5207
5271
  {{ title }}
5208
5272
  </button>
5209
5273
  </ng-template>
@@ -5299,9 +5363,11 @@ const commandIcons = {
5299
5363
  alignJustify: 'align-justify',
5300
5364
  alignLeft: 'align-left',
5301
5365
  alignRight: 'align-right',
5366
+ backColor: 'background',
5302
5367
  bold: 'bold',
5303
5368
  cleanFormatting: 'clear-css',
5304
5369
  createLink: 'link-horizontal',
5370
+ foreColor: 'foreground-color',
5305
5371
  indent: 'indent-increase',
5306
5372
  insertFile: 'file-add',
5307
5373
  insertImage: 'image',
@@ -5309,7 +5375,9 @@ const commandIcons = {
5309
5375
  insertUnorderedList: 'list-unordered',
5310
5376
  italic: 'italic',
5311
5377
  outdent: 'indent-decrease',
5378
+ print: 'print',
5312
5379
  redo: 'redo',
5380
+ selectAll: 'select-all',
5313
5381
  strikethrough: 'strikethrough',
5314
5382
  subscript: 'sub-script',
5315
5383
  superscript: 'sup-script',
@@ -5317,8 +5385,6 @@ const commandIcons = {
5317
5385
  undo: 'undo',
5318
5386
  unlink: 'unlink-horizontal',
5319
5387
  viewSource: 'html',
5320
- foreColor: 'foreground-color',
5321
- backColor: 'background',
5322
5388
  //table
5323
5389
  insertTable: 'table-insert',
5324
5390
  addColumnBefore: 'table-column-insert-left',
@@ -5337,29 +5403,31 @@ const commandIcons = {
5337
5403
  * @hidden
5338
5404
  */
5339
5405
  class EditorCommandBase {
5340
- constructor(command, button, editor, localization) {
5406
+ constructor(command, button, editor, localization, toolsService) {
5341
5407
  this.command = command;
5342
5408
  this.button = button;
5343
5409
  this.editor = editor;
5344
5410
  this.localization = localization;
5345
- }
5346
- ngOnInit() {
5347
- this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
5348
- this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
5349
- this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
5350
- Promise.resolve(null).then(() => {
5411
+ this.toolsService = toolsService;
5412
+ setTimeout(() => {
5351
5413
  const text = this.localization.get(this.command);
5352
5414
  if (text) {
5353
- this.button.showText = "overflow";
5354
- this.button.showIcon = "both";
5415
+ this.button.showText = 'overflow';
5416
+ this.button.showIcon = 'both';
5355
5417
  this.button.text = text;
5356
5418
  }
5357
- if (!this.button.icon) {
5419
+ if (!this.button.toolbarOptions.icon) {
5358
5420
  this.button.icon = commandIcons[this.command];
5359
5421
  }
5360
5422
  this.button.title = text;
5423
+ this.toolsService.needsCheck.next();
5361
5424
  });
5362
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
+ }
5363
5431
  ngOnDestroy() {
5364
5432
  if (this.subs) {
5365
5433
  this.subs.unsubscribe();
@@ -5377,12 +5445,13 @@ class EditorCommandBase {
5377
5445
  * @hidden
5378
5446
  */
5379
5447
  class EditorCommandButton extends EditorCommandBase {
5380
- constructor(command, button, editor, localization) {
5381
- super(command, button, editor, localization);
5448
+ constructor(command, button, editor, localization, toolsService) {
5449
+ super(command, button, editor, localization, toolsService);
5382
5450
  this.command = command;
5383
5451
  this.button = button;
5384
5452
  this.editor = editor;
5385
5453
  this.localization = localization;
5454
+ this.toolsService = toolsService;
5386
5455
  }
5387
5456
  clickHandler() {
5388
5457
  this.editor.exec(this.command, this.editor.applyToWord);
@@ -5416,8 +5485,8 @@ class EditorCommandButton extends EditorCommandBase {
5416
5485
  * ```
5417
5486
  */
5418
5487
  let EditorAlignLeftButtonDirective = class EditorAlignLeftButtonDirective extends EditorCommandButton {
5419
- constructor(button, editor, localization) {
5420
- super('alignLeft', button, editor, localization);
5488
+ constructor(button, editor, localization, toolsService) {
5489
+ super('alignLeft', button, editor, localization, toolsService);
5421
5490
  }
5422
5491
  };
5423
5492
  EditorAlignLeftButtonDirective = __decorate([
@@ -5427,7 +5496,8 @@ EditorAlignLeftButtonDirective = __decorate([
5427
5496
  __param(1, Host()),
5428
5497
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5429
5498
  EditorComponent,
5430
- EditorLocalizationService])
5499
+ EditorLocalizationService,
5500
+ EditorToolsService])
5431
5501
  ], EditorAlignLeftButtonDirective);
5432
5502
 
5433
5503
  /**
@@ -5449,8 +5519,8 @@ EditorAlignLeftButtonDirective = __decorate([
5449
5519
  * ```
5450
5520
  */
5451
5521
  let EditorAlignCenterButtonDirective = class EditorAlignCenterButtonDirective extends EditorCommandButton {
5452
- constructor(button, editor, localization) {
5453
- super('alignCenter', button, editor, localization);
5522
+ constructor(button, editor, localization, toolsService) {
5523
+ super('alignCenter', button, editor, localization, toolsService);
5454
5524
  }
5455
5525
  };
5456
5526
  EditorAlignCenterButtonDirective = __decorate([
@@ -5460,7 +5530,8 @@ EditorAlignCenterButtonDirective = __decorate([
5460
5530
  __param(1, Host()),
5461
5531
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5462
5532
  EditorComponent,
5463
- EditorLocalizationService])
5533
+ EditorLocalizationService,
5534
+ EditorToolsService])
5464
5535
  ], EditorAlignCenterButtonDirective);
5465
5536
 
5466
5537
  /**
@@ -5482,8 +5553,8 @@ EditorAlignCenterButtonDirective = __decorate([
5482
5553
  * ```
5483
5554
  */
5484
5555
  let EditorAlignRightButtonDirective = class EditorAlignRightButtonDirective extends EditorCommandButton {
5485
- constructor(button, editor, localization) {
5486
- super('alignRight', button, editor, localization);
5556
+ constructor(button, editor, localization, toolsService) {
5557
+ super('alignRight', button, editor, localization, toolsService);
5487
5558
  }
5488
5559
  };
5489
5560
  EditorAlignRightButtonDirective = __decorate([
@@ -5493,7 +5564,8 @@ EditorAlignRightButtonDirective = __decorate([
5493
5564
  __param(1, Host()),
5494
5565
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5495
5566
  EditorComponent,
5496
- EditorLocalizationService])
5567
+ EditorLocalizationService,
5568
+ EditorToolsService])
5497
5569
  ], EditorAlignRightButtonDirective);
5498
5570
 
5499
5571
  /**
@@ -5515,8 +5587,8 @@ EditorAlignRightButtonDirective = __decorate([
5515
5587
  * ```
5516
5588
  */
5517
5589
  let EditorAlignJustifyButtonDirective = class EditorAlignJustifyButtonDirective extends EditorCommandButton {
5518
- constructor(button, editor, localization) {
5519
- super('alignJustify', button, editor, localization);
5590
+ constructor(button, editor, localization, toolsService) {
5591
+ super('alignJustify', button, editor, localization, toolsService);
5520
5592
  }
5521
5593
  };
5522
5594
  EditorAlignJustifyButtonDirective = __decorate([
@@ -5526,7 +5598,8 @@ EditorAlignJustifyButtonDirective = __decorate([
5526
5598
  __param(1, Host()),
5527
5599
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5528
5600
  EditorComponent,
5529
- EditorLocalizationService])
5601
+ EditorLocalizationService,
5602
+ EditorToolsService])
5530
5603
  ], EditorAlignJustifyButtonDirective);
5531
5604
 
5532
5605
  /**
@@ -5548,8 +5621,8 @@ EditorAlignJustifyButtonDirective = __decorate([
5548
5621
  * ```
5549
5622
  */
5550
5623
  let EditorRedoButtonDirective = class EditorRedoButtonDirective extends EditorCommandButton {
5551
- constructor(button, editor, localization) {
5552
- super('redo', button, editor, localization);
5624
+ constructor(button, editor, localization, toolsService) {
5625
+ super('redo', button, editor, localization, toolsService);
5553
5626
  }
5554
5627
  };
5555
5628
  EditorRedoButtonDirective = __decorate([
@@ -5559,7 +5632,8 @@ EditorRedoButtonDirective = __decorate([
5559
5632
  __param(1, Host()),
5560
5633
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5561
5634
  EditorComponent,
5562
- EditorLocalizationService])
5635
+ EditorLocalizationService,
5636
+ EditorToolsService])
5563
5637
  ], EditorRedoButtonDirective);
5564
5638
 
5565
5639
  /**
@@ -5581,8 +5655,8 @@ EditorRedoButtonDirective = __decorate([
5581
5655
  * ```
5582
5656
  */
5583
5657
  let EditorUndoButtonDirective = class EditorUndoButtonDirective extends EditorCommandButton {
5584
- constructor(button, editor, localization) {
5585
- super('undo', button, editor, localization);
5658
+ constructor(button, editor, localization, toolsService) {
5659
+ super('undo', button, editor, localization, toolsService);
5586
5660
  }
5587
5661
  };
5588
5662
  EditorUndoButtonDirective = __decorate([
@@ -5592,19 +5666,21 @@ EditorUndoButtonDirective = __decorate([
5592
5666
  __param(1, Host()),
5593
5667
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5594
5668
  EditorComponent,
5595
- EditorLocalizationService])
5669
+ EditorLocalizationService,
5670
+ EditorToolsService])
5596
5671
  ], EditorUndoButtonDirective);
5597
5672
 
5598
5673
  /**
5599
5674
  * @hidden
5600
5675
  */
5601
5676
  class EditorCommandDialog extends EditorCommandBase {
5602
- constructor(dialog, button, editor, localization) {
5603
- super(dialog, button, editor, localization);
5677
+ constructor(dialog, button, editor, localization, toolsService) {
5678
+ super(dialog, button, editor, localization, toolsService);
5604
5679
  this.dialog = dialog;
5605
5680
  this.button = button;
5606
5681
  this.editor = editor;
5607
5682
  this.localization = localization;
5683
+ this.toolsService = toolsService;
5608
5684
  }
5609
5685
  clickHandler() {
5610
5686
  this.editor.openDialog(this.dialog);
@@ -5633,8 +5709,8 @@ class EditorCommandDialog extends EditorCommandBase {
5633
5709
  * ```
5634
5710
  */
5635
5711
  let EditorInsertImageButtonDirective = class EditorInsertImageButtonDirective extends EditorCommandDialog {
5636
- constructor(button, editor, localization) {
5637
- super('insertImage', button, editor, localization);
5712
+ constructor(button, editor, localization, toolsService) {
5713
+ super('insertImage', button, editor, localization, toolsService);
5638
5714
  }
5639
5715
  };
5640
5716
  EditorInsertImageButtonDirective = __decorate([
@@ -5644,7 +5720,8 @@ EditorInsertImageButtonDirective = __decorate([
5644
5720
  __param(1, Host()),
5645
5721
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5646
5722
  EditorComponent,
5647
- EditorLocalizationService])
5723
+ EditorLocalizationService,
5724
+ EditorToolsService])
5648
5725
  ], EditorInsertImageButtonDirective);
5649
5726
 
5650
5727
  /**
@@ -5666,8 +5743,8 @@ EditorInsertImageButtonDirective = __decorate([
5666
5743
  * ```
5667
5744
  */
5668
5745
  let EditorIndentButtonDirective = class EditorIndentButtonDirective extends EditorCommandButton {
5669
- constructor(button, editor, localization) {
5670
- super('indent', button, editor, localization);
5746
+ constructor(button, editor, localization, toolsService) {
5747
+ super('indent', button, editor, localization, toolsService);
5671
5748
  }
5672
5749
  };
5673
5750
  EditorIndentButtonDirective = __decorate([
@@ -5677,7 +5754,8 @@ EditorIndentButtonDirective = __decorate([
5677
5754
  __param(1, Host()),
5678
5755
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5679
5756
  EditorComponent,
5680
- EditorLocalizationService])
5757
+ EditorLocalizationService,
5758
+ EditorToolsService])
5681
5759
  ], EditorIndentButtonDirective);
5682
5760
 
5683
5761
  /**
@@ -5699,8 +5777,8 @@ EditorIndentButtonDirective = __decorate([
5699
5777
  * ```
5700
5778
  */
5701
5779
  let EditorOutdentButtonDirective = class EditorOutdentButtonDirective extends EditorCommandButton {
5702
- constructor(button, editor, localization) {
5703
- super('outdent', button, editor, localization);
5780
+ constructor(button, editor, localization, toolsService) {
5781
+ super('outdent', button, editor, localization, toolsService);
5704
5782
  }
5705
5783
  };
5706
5784
  EditorOutdentButtonDirective = __decorate([
@@ -5710,7 +5788,8 @@ EditorOutdentButtonDirective = __decorate([
5710
5788
  __param(1, Host()),
5711
5789
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5712
5790
  EditorComponent,
5713
- EditorLocalizationService])
5791
+ EditorLocalizationService,
5792
+ EditorToolsService])
5714
5793
  ], EditorOutdentButtonDirective);
5715
5794
 
5716
5795
  /**
@@ -5732,8 +5811,8 @@ EditorOutdentButtonDirective = __decorate([
5732
5811
  * ```
5733
5812
  */
5734
5813
  let EditorCreateLinkButtonDirective = class EditorCreateLinkButtonDirective extends EditorCommandDialog {
5735
- constructor(button, editor, localization) {
5736
- super('createLink', button, editor, localization);
5814
+ constructor(button, editor, localization, toolsService) {
5815
+ super('createLink', button, editor, localization, toolsService);
5737
5816
  }
5738
5817
  };
5739
5818
  EditorCreateLinkButtonDirective = __decorate([
@@ -5743,7 +5822,8 @@ EditorCreateLinkButtonDirective = __decorate([
5743
5822
  __param(1, Host()),
5744
5823
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5745
5824
  EditorComponent,
5746
- EditorLocalizationService])
5825
+ EditorLocalizationService,
5826
+ EditorToolsService])
5747
5827
  ], EditorCreateLinkButtonDirective);
5748
5828
 
5749
5829
  /**
@@ -5765,8 +5845,8 @@ EditorCreateLinkButtonDirective = __decorate([
5765
5845
  * ```
5766
5846
  */
5767
5847
  let EditorUnlinkButtonDirective = class EditorUnlinkButtonDirective extends EditorCommandButton {
5768
- constructor(button, editor, localization) {
5769
- super('unlink', button, editor, localization);
5848
+ constructor(button, editor, localization, toolsService) {
5849
+ super('unlink', button, editor, localization, toolsService);
5770
5850
  }
5771
5851
  };
5772
5852
  EditorUnlinkButtonDirective = __decorate([
@@ -5776,7 +5856,8 @@ EditorUnlinkButtonDirective = __decorate([
5776
5856
  __param(1, Host()),
5777
5857
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5778
5858
  EditorComponent,
5779
- EditorLocalizationService])
5859
+ EditorLocalizationService,
5860
+ EditorToolsService])
5780
5861
  ], EditorUnlinkButtonDirective);
5781
5862
 
5782
5863
  /**
@@ -5798,8 +5879,8 @@ EditorUnlinkButtonDirective = __decorate([
5798
5879
  * ```
5799
5880
  */
5800
5881
  let EditorInsertOrderedListButtonDirective = class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
5801
- constructor(button, editor, localization) {
5802
- super('insertOrderedList', button, editor, localization);
5882
+ constructor(button, editor, localization, toolsService) {
5883
+ super('insertOrderedList', button, editor, localization, toolsService);
5803
5884
  }
5804
5885
  };
5805
5886
  EditorInsertOrderedListButtonDirective = __decorate([
@@ -5809,7 +5890,8 @@ EditorInsertOrderedListButtonDirective = __decorate([
5809
5890
  __param(1, Host()),
5810
5891
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5811
5892
  EditorComponent,
5812
- EditorLocalizationService])
5893
+ EditorLocalizationService,
5894
+ EditorToolsService])
5813
5895
  ], EditorInsertOrderedListButtonDirective);
5814
5896
 
5815
5897
  /**
@@ -5831,8 +5913,8 @@ EditorInsertOrderedListButtonDirective = __decorate([
5831
5913
  * ```
5832
5914
  */
5833
5915
  let EditorInsertUnorderedListButtonDirective = class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
5834
- constructor(button, editor, localization) {
5835
- super('insertUnorderedList', button, editor, localization);
5916
+ constructor(button, editor, localization, toolsService) {
5917
+ super('insertUnorderedList', button, editor, localization, toolsService);
5836
5918
  }
5837
5919
  };
5838
5920
  EditorInsertUnorderedListButtonDirective = __decorate([
@@ -5842,7 +5924,8 @@ EditorInsertUnorderedListButtonDirective = __decorate([
5842
5924
  __param(1, Host()),
5843
5925
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5844
5926
  EditorComponent,
5845
- EditorLocalizationService])
5927
+ EditorLocalizationService,
5928
+ EditorToolsService])
5846
5929
  ], EditorInsertUnorderedListButtonDirective);
5847
5930
 
5848
5931
  /**
@@ -5863,8 +5946,8 @@ EditorInsertUnorderedListButtonDirective = __decorate([
5863
5946
  * ```
5864
5947
  */
5865
5948
  let EditorViewSourceButtonDirective = class EditorViewSourceButtonDirective extends EditorCommandDialog {
5866
- constructor(button, editor, localization) {
5867
- super('viewSource', button, editor, localization);
5949
+ constructor(button, editor, localization, toolsService) {
5950
+ super('viewSource', button, editor, localization, toolsService);
5868
5951
  }
5869
5952
  };
5870
5953
  EditorViewSourceButtonDirective = __decorate([
@@ -5874,7 +5957,8 @@ EditorViewSourceButtonDirective = __decorate([
5874
5957
  __param(1, Host()),
5875
5958
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5876
5959
  EditorComponent,
5877
- EditorLocalizationService])
5960
+ EditorLocalizationService,
5961
+ EditorToolsService])
5878
5962
  ], EditorViewSourceButtonDirective);
5879
5963
 
5880
5964
  /**
@@ -5896,8 +5980,8 @@ EditorViewSourceButtonDirective = __decorate([
5896
5980
  * ```
5897
5981
  */
5898
5982
  let EditorBoldButtonDirective = class EditorBoldButtonDirective extends EditorCommandButton {
5899
- constructor(button, editor, localization) {
5900
- super('bold', button, editor, localization);
5983
+ constructor(button, editor, localization, toolsService) {
5984
+ super('bold', button, editor, localization, toolsService);
5901
5985
  }
5902
5986
  };
5903
5987
  EditorBoldButtonDirective = __decorate([
@@ -5907,7 +5991,8 @@ EditorBoldButtonDirective = __decorate([
5907
5991
  __param(1, Host()),
5908
5992
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5909
5993
  EditorComponent,
5910
- EditorLocalizationService])
5994
+ EditorLocalizationService,
5995
+ EditorToolsService])
5911
5996
  ], EditorBoldButtonDirective);
5912
5997
 
5913
5998
  /**
@@ -5929,8 +6014,8 @@ EditorBoldButtonDirective = __decorate([
5929
6014
  * ```
5930
6015
  */
5931
6016
  let EditorItalicButtonDirective = class EditorItalicButtonDirective extends EditorCommandButton {
5932
- constructor(button, editor, localization) {
5933
- super('italic', button, editor, localization);
6017
+ constructor(button, editor, localization, toolsService) {
6018
+ super('italic', button, editor, localization, toolsService);
5934
6019
  }
5935
6020
  };
5936
6021
  EditorItalicButtonDirective = __decorate([
@@ -5940,7 +6025,8 @@ EditorItalicButtonDirective = __decorate([
5940
6025
  __param(1, Host()),
5941
6026
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5942
6027
  EditorComponent,
5943
- EditorLocalizationService])
6028
+ EditorLocalizationService,
6029
+ EditorToolsService])
5944
6030
  ], EditorItalicButtonDirective);
5945
6031
 
5946
6032
  /**
@@ -5962,8 +6048,8 @@ EditorItalicButtonDirective = __decorate([
5962
6048
  * ```
5963
6049
  */
5964
6050
  let EditorUnderlineButtonDirective = class EditorUnderlineButtonDirective extends EditorCommandButton {
5965
- constructor(button, editor, localization) {
5966
- super('underline', button, editor, localization);
6051
+ constructor(button, editor, localization, toolsService) {
6052
+ super('underline', button, editor, localization, toolsService);
5967
6053
  }
5968
6054
  };
5969
6055
  EditorUnderlineButtonDirective = __decorate([
@@ -5973,7 +6059,8 @@ EditorUnderlineButtonDirective = __decorate([
5973
6059
  __param(1, Host()),
5974
6060
  __metadata("design:paramtypes", [ToolBarButtonComponent,
5975
6061
  EditorComponent,
5976
- EditorLocalizationService])
6062
+ EditorLocalizationService,
6063
+ EditorToolsService])
5977
6064
  ], EditorUnderlineButtonDirective);
5978
6065
 
5979
6066
  /**
@@ -5995,8 +6082,8 @@ EditorUnderlineButtonDirective = __decorate([
5995
6082
  * ```
5996
6083
  */
5997
6084
  let EditorStrikethroughButtonDirective = class EditorStrikethroughButtonDirective extends EditorCommandButton {
5998
- constructor(button, editor, localization) {
5999
- super('strikethrough', button, editor, localization);
6085
+ constructor(button, editor, localization, toolsService) {
6086
+ super('strikethrough', button, editor, localization, toolsService);
6000
6087
  }
6001
6088
  };
6002
6089
  EditorStrikethroughButtonDirective = __decorate([
@@ -6006,7 +6093,8 @@ EditorStrikethroughButtonDirective = __decorate([
6006
6093
  __param(1, Host()),
6007
6094
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6008
6095
  EditorComponent,
6009
- EditorLocalizationService])
6096
+ EditorLocalizationService,
6097
+ EditorToolsService])
6010
6098
  ], EditorStrikethroughButtonDirective);
6011
6099
 
6012
6100
  /**
@@ -6028,8 +6116,8 @@ EditorStrikethroughButtonDirective = __decorate([
6028
6116
  * ```
6029
6117
  */
6030
6118
  let EditorSubscriptButtonDirective = class EditorSubscriptButtonDirective extends EditorCommandButton {
6031
- constructor(button, editor, localization) {
6032
- super('subscript', button, editor, localization);
6119
+ constructor(button, editor, localization, toolsService) {
6120
+ super('subscript', button, editor, localization, toolsService);
6033
6121
  }
6034
6122
  };
6035
6123
  EditorSubscriptButtonDirective = __decorate([
@@ -6039,7 +6127,8 @@ EditorSubscriptButtonDirective = __decorate([
6039
6127
  __param(1, Host()),
6040
6128
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6041
6129
  EditorComponent,
6042
- EditorLocalizationService])
6130
+ EditorLocalizationService,
6131
+ EditorToolsService])
6043
6132
  ], EditorSubscriptButtonDirective);
6044
6133
 
6045
6134
  /**
@@ -6061,8 +6150,8 @@ EditorSubscriptButtonDirective = __decorate([
6061
6150
  * ```
6062
6151
  */
6063
6152
  let EditorSuperscriptButtonDirective = class EditorSuperscriptButtonDirective extends EditorCommandButton {
6064
- constructor(button, editor, localization) {
6065
- super('superscript', button, editor, localization);
6153
+ constructor(button, editor, localization, toolsService) {
6154
+ super('superscript', button, editor, localization, toolsService);
6066
6155
  }
6067
6156
  };
6068
6157
  EditorSuperscriptButtonDirective = __decorate([
@@ -6072,7 +6161,8 @@ EditorSuperscriptButtonDirective = __decorate([
6072
6161
  __param(1, Host()),
6073
6162
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6074
6163
  EditorComponent,
6075
- EditorLocalizationService])
6164
+ EditorLocalizationService,
6165
+ EditorToolsService])
6076
6166
  ], EditorSuperscriptButtonDirective);
6077
6167
 
6078
6168
  /**
@@ -6086,8 +6176,8 @@ EditorSuperscriptButtonDirective = __decorate([
6086
6176
  * ```
6087
6177
  */
6088
6178
  let EditorInsertFileButtonDirective = class EditorInsertFileButtonDirective extends EditorCommandDialog {
6089
- constructor(button, editor, localization) {
6090
- super('insertFile', button, editor, localization);
6179
+ constructor(button, editor, localization, toolsService) {
6180
+ super('insertFile', button, editor, localization, toolsService);
6091
6181
  }
6092
6182
  };
6093
6183
  EditorInsertFileButtonDirective = __decorate([
@@ -6097,7 +6187,8 @@ EditorInsertFileButtonDirective = __decorate([
6097
6187
  __param(1, Host()),
6098
6188
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6099
6189
  EditorComponent,
6100
- EditorLocalizationService])
6190
+ EditorLocalizationService,
6191
+ EditorToolsService])
6101
6192
  ], EditorInsertFileButtonDirective);
6102
6193
 
6103
6194
  /**
@@ -6156,8 +6247,8 @@ EditorBackColorDirective = __decorate([
6156
6247
  * ```
6157
6248
  */
6158
6249
  let EditorCleanFormattingButtonDirective = class EditorCleanFormattingButtonDirective extends EditorCommandButton {
6159
- constructor(button, editor, localization) {
6160
- super('cleanFormatting', button, editor, localization);
6250
+ constructor(button, editor, localization, toolsService) {
6251
+ super('cleanFormatting', button, editor, localization, toolsService);
6161
6252
  }
6162
6253
  };
6163
6254
  EditorCleanFormattingButtonDirective = __decorate([
@@ -6167,7 +6258,8 @@ EditorCleanFormattingButtonDirective = __decorate([
6167
6258
  __param(1, Host()),
6168
6259
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6169
6260
  EditorComponent,
6170
- EditorLocalizationService])
6261
+ EditorLocalizationService,
6262
+ EditorToolsService])
6171
6263
  ], EditorCleanFormattingButtonDirective);
6172
6264
 
6173
6265
  /**
@@ -6182,8 +6274,8 @@ EditorCleanFormattingButtonDirective = __decorate([
6182
6274
  * ```
6183
6275
  */
6184
6276
  let EditorAddColumnBeforeButtonDirective = class EditorAddColumnBeforeButtonDirective extends EditorCommandButton {
6185
- constructor(button, editor, localization) {
6186
- super('addColumnBefore', button, editor, localization);
6277
+ constructor(button, editor, localization, toolsService) {
6278
+ super('addColumnBefore', button, editor, localization, toolsService);
6187
6279
  }
6188
6280
  };
6189
6281
  EditorAddColumnBeforeButtonDirective = __decorate([
@@ -6193,7 +6285,8 @@ EditorAddColumnBeforeButtonDirective = __decorate([
6193
6285
  __param(1, Host()),
6194
6286
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6195
6287
  EditorComponent,
6196
- EditorLocalizationService])
6288
+ EditorLocalizationService,
6289
+ EditorToolsService])
6197
6290
  ], EditorAddColumnBeforeButtonDirective);
6198
6291
 
6199
6292
  /**
@@ -6208,8 +6301,8 @@ EditorAddColumnBeforeButtonDirective = __decorate([
6208
6301
  * ```
6209
6302
  */
6210
6303
  let EditorAddColumnAfterButtonDirective = class EditorAddColumnAfterButtonDirective extends EditorCommandButton {
6211
- constructor(button, editor, localization) {
6212
- super('addColumnAfter', button, editor, localization);
6304
+ constructor(button, editor, localization, toolsService) {
6305
+ super('addColumnAfter', button, editor, localization, toolsService);
6213
6306
  }
6214
6307
  };
6215
6308
  EditorAddColumnAfterButtonDirective = __decorate([
@@ -6219,7 +6312,8 @@ EditorAddColumnAfterButtonDirective = __decorate([
6219
6312
  __param(1, Host()),
6220
6313
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6221
6314
  EditorComponent,
6222
- EditorLocalizationService])
6315
+ EditorLocalizationService,
6316
+ EditorToolsService])
6223
6317
  ], EditorAddColumnAfterButtonDirective);
6224
6318
 
6225
6319
  /**
@@ -6234,8 +6328,8 @@ EditorAddColumnAfterButtonDirective = __decorate([
6234
6328
  * ```
6235
6329
  */
6236
6330
  let EditorAddRowBeforeButtonDirective = class EditorAddRowBeforeButtonDirective extends EditorCommandButton {
6237
- constructor(button, editor, localization) {
6238
- super('addRowBefore', button, editor, localization);
6331
+ constructor(button, editor, localization, toolsService) {
6332
+ super('addRowBefore', button, editor, localization, toolsService);
6239
6333
  }
6240
6334
  };
6241
6335
  EditorAddRowBeforeButtonDirective = __decorate([
@@ -6245,7 +6339,8 @@ EditorAddRowBeforeButtonDirective = __decorate([
6245
6339
  __param(1, Host()),
6246
6340
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6247
6341
  EditorComponent,
6248
- EditorLocalizationService])
6342
+ EditorLocalizationService,
6343
+ EditorToolsService])
6249
6344
  ], EditorAddRowBeforeButtonDirective);
6250
6345
 
6251
6346
  /**
@@ -6260,8 +6355,8 @@ EditorAddRowBeforeButtonDirective = __decorate([
6260
6355
  * ```
6261
6356
  */
6262
6357
  let EditorAddRowAfterButtonDirective = class EditorAddRowAfterButtonDirective extends EditorCommandButton {
6263
- constructor(button, editor, localization) {
6264
- super('addRowAfter', button, editor, localization);
6358
+ constructor(button, editor, localization, toolsService) {
6359
+ super('addRowAfter', button, editor, localization, toolsService);
6265
6360
  }
6266
6361
  };
6267
6362
  EditorAddRowAfterButtonDirective = __decorate([
@@ -6271,7 +6366,8 @@ EditorAddRowAfterButtonDirective = __decorate([
6271
6366
  __param(1, Host()),
6272
6367
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6273
6368
  EditorComponent,
6274
- EditorLocalizationService])
6369
+ EditorLocalizationService,
6370
+ EditorToolsService])
6275
6371
  ], EditorAddRowAfterButtonDirective);
6276
6372
 
6277
6373
  /**
@@ -6286,8 +6382,8 @@ EditorAddRowAfterButtonDirective = __decorate([
6286
6382
  * ```
6287
6383
  */
6288
6384
  let EditorDeleteColumnButtonDirective = class EditorDeleteColumnButtonDirective extends EditorCommandButton {
6289
- constructor(button, editor, localization) {
6290
- super('deleteColumn', button, editor, localization);
6385
+ constructor(button, editor, localization, toolsService) {
6386
+ super('deleteColumn', button, editor, localization, toolsService);
6291
6387
  }
6292
6388
  };
6293
6389
  EditorDeleteColumnButtonDirective = __decorate([
@@ -6297,7 +6393,8 @@ EditorDeleteColumnButtonDirective = __decorate([
6297
6393
  __param(1, Host()),
6298
6394
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6299
6395
  EditorComponent,
6300
- EditorLocalizationService])
6396
+ EditorLocalizationService,
6397
+ EditorToolsService])
6301
6398
  ], EditorDeleteColumnButtonDirective);
6302
6399
 
6303
6400
  /**
@@ -6312,8 +6409,8 @@ EditorDeleteColumnButtonDirective = __decorate([
6312
6409
  * ```
6313
6410
  */
6314
6411
  let EditorDeleteRowButtonDirective = class EditorDeleteRowButtonDirective extends EditorCommandButton {
6315
- constructor(button, editor, localization) {
6316
- super('deleteRow', button, editor, localization);
6412
+ constructor(button, editor, localization, toolsService) {
6413
+ super('deleteRow', button, editor, localization, toolsService);
6317
6414
  }
6318
6415
  };
6319
6416
  EditorDeleteRowButtonDirective = __decorate([
@@ -6323,7 +6420,8 @@ EditorDeleteRowButtonDirective = __decorate([
6323
6420
  __param(1, Host()),
6324
6421
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6325
6422
  EditorComponent,
6326
- EditorLocalizationService])
6423
+ EditorLocalizationService,
6424
+ EditorToolsService])
6327
6425
  ], EditorDeleteRowButtonDirective);
6328
6426
 
6329
6427
  /**
@@ -6338,8 +6436,8 @@ EditorDeleteRowButtonDirective = __decorate([
6338
6436
  * ```
6339
6437
  */
6340
6438
  let EditorDeleteTableButtonDirective = class EditorDeleteTableButtonDirective extends EditorCommandButton {
6341
- constructor(button, editor, localization) {
6342
- super('deleteTable', button, editor, localization);
6439
+ constructor(button, editor, localization, toolsService) {
6440
+ super('deleteTable', button, editor, localization, toolsService);
6343
6441
  }
6344
6442
  };
6345
6443
  EditorDeleteTableButtonDirective = __decorate([
@@ -6349,7 +6447,8 @@ EditorDeleteTableButtonDirective = __decorate([
6349
6447
  __param(1, Host()),
6350
6448
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6351
6449
  EditorComponent,
6352
- EditorLocalizationService])
6450
+ EditorLocalizationService,
6451
+ EditorToolsService])
6353
6452
  ], EditorDeleteTableButtonDirective);
6354
6453
 
6355
6454
  /**
@@ -6366,8 +6465,8 @@ EditorDeleteTableButtonDirective = __decorate([
6366
6465
  * ```
6367
6466
  */
6368
6467
  let EditorMergeCellsButtonDirective = class EditorMergeCellsButtonDirective extends EditorCommandButton {
6369
- constructor(button, editor, localization) {
6370
- super('mergeCells', button, editor, localization);
6468
+ constructor(button, editor, localization, toolsService) {
6469
+ super('mergeCells', button, editor, localization, toolsService);
6371
6470
  }
6372
6471
  };
6373
6472
  EditorMergeCellsButtonDirective = __decorate([
@@ -6377,7 +6476,8 @@ EditorMergeCellsButtonDirective = __decorate([
6377
6476
  __param(1, Host()),
6378
6477
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6379
6478
  EditorComponent,
6380
- EditorLocalizationService])
6479
+ EditorLocalizationService,
6480
+ EditorToolsService])
6381
6481
  ], EditorMergeCellsButtonDirective);
6382
6482
 
6383
6483
  /**
@@ -6394,8 +6494,8 @@ EditorMergeCellsButtonDirective = __decorate([
6394
6494
  * ```
6395
6495
  */
6396
6496
  let EditorSplitCellButtonDirective = class EditorSplitCellButtonDirective extends EditorCommandButton {
6397
- constructor(button, editor, localization) {
6398
- super('splitCell', button, editor, localization);
6497
+ constructor(button, editor, localization, toolsService) {
6498
+ super('splitCell', button, editor, localization, toolsService);
6399
6499
  }
6400
6500
  };
6401
6501
  EditorSplitCellButtonDirective = __decorate([
@@ -6405,7 +6505,8 @@ EditorSplitCellButtonDirective = __decorate([
6405
6505
  __param(1, Host()),
6406
6506
  __metadata("design:paramtypes", [ToolBarButtonComponent,
6407
6507
  EditorComponent,
6408
- EditorLocalizationService])
6508
+ EditorLocalizationService,
6509
+ EditorToolsService])
6409
6510
  ], EditorSplitCellButtonDirective);
6410
6511
 
6411
6512
  /**
@@ -6489,10 +6590,18 @@ __decorate([
6489
6590
  Input(),
6490
6591
  __metadata("design:type", String)
6491
6592
  ], Messages.prototype, "outdent", void 0);
6593
+ __decorate([
6594
+ Input(),
6595
+ __metadata("design:type", String)
6596
+ ], Messages.prototype, "print", void 0);
6492
6597
  __decorate([
6493
6598
  Input(),
6494
6599
  __metadata("design:type", String)
6495
6600
  ], Messages.prototype, "redo", void 0);
6601
+ __decorate([
6602
+ Input(),
6603
+ __metadata("design:type", String)
6604
+ ], Messages.prototype, "selectAll", void 0);
6496
6605
  __decorate([
6497
6606
  Input(),
6498
6607
  __metadata("design:type", String)
@@ -6693,6 +6802,97 @@ DropDownToolDirective = __decorate([
6693
6802
  NgZone])
6694
6803
  ], DropDownToolDirective);
6695
6804
 
6805
+ /**
6806
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
6807
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
6808
+ * The directive will predefine the `icon` and `click` event handlers of the button.
6809
+ *
6810
+ * > 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.
6811
+ *
6812
+ * @example
6813
+ * ```ts-no-run
6814
+ * <kendo-toolbar-button kendoEditorPrintButton></kendo-toolbar-button>
6815
+ * ```
6816
+ *
6817
+ * The following example demonstrates how to change the default icon that is applied by the directive.
6818
+ *
6819
+ * @example
6820
+ * ```ts-no-run
6821
+ * <kendo-toolbar-button kendoEditorPrintButton icon="blogger"></kendo-toolbar-button>
6822
+ * ```
6823
+ */
6824
+ let EditorPrintDirective = class EditorPrintDirective extends EditorCommandButton {
6825
+ constructor(button, editor, localization, toolsService) {
6826
+ super('print', button, editor, localization, toolsService);
6827
+ this.editor = editor;
6828
+ }
6829
+ ngAfterViewInit() {
6830
+ if (isDevMode) {
6831
+ if (!this.editor.iframe) {
6832
+ throw new Error(EditorErrorMessages.printTool);
6833
+ }
6834
+ }
6835
+ }
6836
+ clickHandler() {
6837
+ if (this.editor.iframe) {
6838
+ const view = this.editor.view;
6839
+ const dom = view && view.dom;
6840
+ const doc = dom && dom.ownerDocument;
6841
+ const editorWindow = doc && doc.defaultView;
6842
+ if (editorWindow) {
6843
+ editorWindow.print();
6844
+ }
6845
+ }
6846
+ }
6847
+ };
6848
+ EditorPrintDirective = __decorate([
6849
+ Directive({
6850
+ selector: 'kendo-toolbar-button[kendoEditorPrintButton]'
6851
+ }),
6852
+ __param(1, Host()),
6853
+ __metadata("design:paramtypes", [ToolBarButtonComponent,
6854
+ EditorComponent,
6855
+ EditorLocalizationService,
6856
+ EditorToolsService])
6857
+ ], EditorPrintDirective);
6858
+
6859
+ /**
6860
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
6861
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
6862
+ * The directive will predefine the `icon` and `click` event handlers of the button.
6863
+ *
6864
+ * @example
6865
+ * ```ts-no-run
6866
+ * <kendo-toolbar-button kendoEditorSelectAllButton></kendo-toolbar-button>
6867
+ * ```
6868
+ *
6869
+ * The following example demonstrates how to change the default icon that is applied by the directive.
6870
+ *
6871
+ * @example
6872
+ * ```ts-no-run
6873
+ * <kendo-toolbar-button kendoEditorSelectAllButton icon="blogger"></kendo-toolbar-button>
6874
+ * ```
6875
+ */
6876
+ let EditorSelectAllButtonDirective = class EditorSelectAllButtonDirective extends EditorCommandButton {
6877
+ constructor(button, editor, localization, toolsService) {
6878
+ super('selectAll', button, editor, localization, toolsService);
6879
+ }
6880
+ clickHandler() {
6881
+ this.editor.shouldEmitFocus = true;
6882
+ super.clickHandler();
6883
+ }
6884
+ };
6885
+ EditorSelectAllButtonDirective = __decorate([
6886
+ Directive({
6887
+ selector: 'kendo-toolbar-button[kendoEditorSelectAllButton]'
6888
+ }),
6889
+ __param(1, Host()),
6890
+ __metadata("design:paramtypes", [ToolBarButtonComponent,
6891
+ EditorComponent,
6892
+ EditorLocalizationService,
6893
+ EditorToolsService])
6894
+ ], EditorSelectAllButtonDirective);
6895
+
6696
6896
  const COMPONENT_DIRECTIVES = [
6697
6897
  //alignment
6698
6898
  EditorAlignLeftButtonDirective,
@@ -6744,7 +6944,11 @@ const COMPONENT_DIRECTIVES = [
6744
6944
  CustomMessagesComponent,
6745
6945
  LocalizedMessagesDirective,
6746
6946
  // dropdown tools
6747
- DropDownToolDirective
6947
+ DropDownToolDirective,
6948
+ // print
6949
+ EditorPrintDirective,
6950
+ // select all
6951
+ EditorSelectAllButtonDirective
6748
6952
  ];
6749
6953
  const TOOLBAR_TOOLS = [
6750
6954
  EditorFontSizeComponent,
@@ -6858,4 +7062,4 @@ EditorModule = __decorate([
6858
7062
  * Generated bundle index. Do not edit.
6859
7063
  */
6860
7064
 
6861
- 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, 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 };