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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/cdn/js/kendo-angular-editor.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/common/error-messages.js +2 -1
  4. package/dist/es/config/command-icons.js +4 -2
  5. package/dist/es/config/commands.js +32 -31
  6. package/dist/es/editor-toolbar-state.js +20 -2
  7. package/dist/es/editor.component.js +11 -5
  8. package/dist/es/editor.module.js +7 -1
  9. package/dist/es/index.js +3 -0
  10. package/dist/es/localization/messages.js +8 -0
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
  13. package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
  14. package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
  15. package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
  16. package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
  17. package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
  18. package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
  19. package/dist/es/tools/format/editor-format.component.js +9 -3
  20. package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
  21. package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
  22. package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
  23. package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
  24. package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
  25. package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
  26. package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
  27. package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
  28. package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  29. package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  30. package/dist/es/tools/print/editor-print-button.directive.js +69 -0
  31. package/dist/es/tools/select-all/select-all-button.directive.js +50 -0
  32. package/dist/es/tools/shared/editor-command-base.js +13 -11
  33. package/dist/es/tools/shared/editor-command-button.js +3 -2
  34. package/dist/es/tools/shared/editor-command-dialog.js +3 -2
  35. package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
  36. package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
  37. package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
  38. package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
  39. package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
  40. package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
  41. package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
  42. package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
  43. package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
  44. package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
  45. package/dist/es/tools/tools.service.js +20 -0
  46. package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  47. package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  48. package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  49. package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  50. package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  51. package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  52. package/dist/es2015/common/commands.d.ts +5 -1
  53. package/dist/es2015/common/error-messages.js +2 -1
  54. package/dist/es2015/config/command-icons.d.ts +2 -2
  55. package/dist/es2015/config/command-icons.js +4 -2
  56. package/dist/es2015/config/commands.js +31 -30
  57. package/dist/es2015/editor-toolbar-state.js +20 -2
  58. package/dist/es2015/editor.component.d.ts +8 -1
  59. package/dist/es2015/editor.component.js +14 -4
  60. package/dist/es2015/editor.module.js +7 -1
  61. package/dist/es2015/index.d.ts +3 -0
  62. package/dist/es2015/index.js +3 -0
  63. package/dist/es2015/index.metadata.json +1 -1
  64. package/dist/es2015/localization/messages.d.ts +8 -0
  65. package/dist/es2015/localization/messages.js +8 -0
  66. package/dist/es2015/package-metadata.js +1 -1
  67. package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
  68. package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
  69. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
  70. package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
  71. package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
  72. package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
  73. package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
  74. package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
  75. package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
  76. package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
  77. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
  78. package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
  79. package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
  80. package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
  81. package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
  82. package/dist/es2015/tools/format/editor-format.component.js +9 -3
  83. package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
  84. package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
  85. package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
  86. package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
  87. package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
  88. package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
  89. package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
  90. package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
  91. package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
  92. package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
  93. package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
  94. package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
  95. package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
  96. package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
  97. package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
  98. package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
  99. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
  100. package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  101. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
  102. package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  103. package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
  104. package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
  105. package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
  106. package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
  107. package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
  108. package/dist/es2015/tools/shared/editor-command-base.js +12 -10
  109. package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
  110. package/dist/es2015/tools/shared/editor-command-button.js +3 -2
  111. package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
  112. package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
  113. package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
  114. package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
  115. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
  116. package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
  117. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
  118. package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
  119. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
  120. package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
  121. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
  122. package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
  123. package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
  124. package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
  125. package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
  126. package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
  127. package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
  128. package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
  129. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
  130. package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
  131. package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
  132. package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
  133. package/dist/es2015/tools/tools.service.d.ts +11 -0
  134. package/dist/es2015/tools/tools.service.js +22 -0
  135. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
  136. package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  137. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
  138. package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  139. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
  140. package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  141. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
  142. package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  143. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
  144. package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  145. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
  146. package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  147. package/dist/fesm2015/index.js +358 -159
  148. package/dist/fesm5/index.js +360 -162
  149. package/dist/npm/common/error-messages.js +2 -1
  150. package/dist/npm/config/command-icons.js +4 -2
  151. package/dist/npm/config/commands.js +33 -31
  152. package/dist/npm/editor-toolbar-state.js +20 -2
  153. package/dist/npm/editor.component.js +11 -5
  154. package/dist/npm/editor.module.js +7 -1
  155. package/dist/npm/index.js +6 -0
  156. package/dist/npm/localization/messages.js +8 -0
  157. package/dist/npm/package-metadata.js +1 -1
  158. package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
  159. package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
  160. package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
  161. package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
  162. package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
  163. package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
  164. package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
  165. package/dist/npm/tools/format/editor-format.component.js +9 -3
  166. package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
  167. package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
  168. package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
  169. package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
  170. package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
  171. package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
  172. package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
  173. package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
  174. package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
  175. package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
  176. package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
  177. package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
  178. package/dist/npm/tools/shared/editor-command-base.js +13 -11
  179. package/dist/npm/tools/shared/editor-command-button.js +3 -2
  180. package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
  181. package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
  182. package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
  183. package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
  184. package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
  185. package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
  186. package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
  187. package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
  188. package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
  189. package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
  190. package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
  191. package/dist/npm/tools/tools.service.js +22 -0
  192. package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
  193. package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
  194. package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
  195. package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
  196. package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
  197. package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
  198. package/dist/systemjs/kendo-angular-editor.js +1 -1
  199. package/package.json +4 -4
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnBefore tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorAddColumnBeforeButtonDirective, _super);
24
- function EditorAddColumnBeforeButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'addColumnBefore', button, editor, localization) || this;
25
+ function EditorAddColumnBeforeButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'addColumnBefore', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorAddColumnBeforeButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorAddColumnBeforeButtonDirective);
36
38
  return EditorAddColumnBeforeButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowAfter tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorAddRowAfterButtonDirective, _super);
24
- function EditorAddRowAfterButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'addRowAfter', button, editor, localization) || this;
25
+ function EditorAddRowAfterButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'addRowAfter', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorAddRowAfterButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorAddRowAfterButtonDirective);
36
38
  return EditorAddRowAfterButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowBefore tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorAddRowBeforeButtonDirective, _super);
24
- function EditorAddRowBeforeButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'addRowBefore', button, editor, localization) || this;
25
+ function EditorAddRowBeforeButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'addRowBefore', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorAddRowBeforeButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorAddRowBeforeButtonDirective);
36
38
  return EditorAddRowBeforeButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteColumn tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorDeleteColumnButtonDirective, _super);
24
- function EditorDeleteColumnButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'deleteColumn', button, editor, localization) || this;
25
+ function EditorDeleteColumnButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'deleteColumn', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorDeleteColumnButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorDeleteColumnButtonDirective);
36
38
  return EditorDeleteColumnButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteRow tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorDeleteRowButtonDirective, _super);
24
- function EditorDeleteRowButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'deleteRow', button, editor, localization) || this;
25
+ function EditorDeleteRowButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'deleteRow', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorDeleteRowButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorDeleteRowButtonDirective);
36
38
  return EditorDeleteRowButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteTable tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -21,8 +22,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
21
22
  */
22
23
  var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
23
24
  tslib_1.__extends(EditorDeleteTableButtonDirective, _super);
24
- function EditorDeleteTableButtonDirective(button, editor, localization) {
25
- return _super.call(this, 'deleteTable', button, editor, localization) || this;
25
+ function EditorDeleteTableButtonDirective(button, editor, localization, toolsService) {
26
+ return _super.call(this, 'deleteTable', button, editor, localization, toolsService) || this;
26
27
  }
27
28
  EditorDeleteTableButtonDirective = tslib_1.__decorate([
28
29
  Directive({
@@ -31,7 +32,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
31
32
  tslib_1.__param(1, Host()),
32
33
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
33
34
  EditorComponent,
34
- EditorLocalizationService])
35
+ EditorLocalizationService,
36
+ EditorToolsService])
35
37
  ], EditorDeleteTableButtonDirective);
36
38
  return EditorDeleteTableButtonDirective;
37
39
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * @hidden
13
14
  *
@@ -23,8 +24,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
23
24
  */
24
25
  var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
25
26
  tslib_1.__extends(EditorMergeCellsButtonDirective, _super);
26
- function EditorMergeCellsButtonDirective(button, editor, localization) {
27
- return _super.call(this, 'mergeCells', button, editor, localization) || this;
27
+ function EditorMergeCellsButtonDirective(button, editor, localization, toolsService) {
28
+ return _super.call(this, 'mergeCells', button, editor, localization, toolsService) || this;
28
29
  }
29
30
  EditorMergeCellsButtonDirective = tslib_1.__decorate([
30
31
  Directive({
@@ -33,7 +34,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
33
34
  tslib_1.__param(1, Host()),
34
35
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
35
36
  EditorComponent,
36
- EditorLocalizationService])
37
+ EditorLocalizationService,
38
+ EditorToolsService])
37
39
  ], EditorMergeCellsButtonDirective);
38
40
  return EditorMergeCellsButtonDirective;
39
41
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * @hidden
13
14
  *
@@ -23,8 +24,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
23
24
  */
24
25
  var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
25
26
  tslib_1.__extends(EditorSplitCellButtonDirective, _super);
26
- function EditorSplitCellButtonDirective(button, editor, localization) {
27
- return _super.call(this, 'splitCell', button, editor, localization) || this;
27
+ function EditorSplitCellButtonDirective(button, editor, localization, toolsService) {
28
+ return _super.call(this, 'splitCell', button, editor, localization, toolsService) || this;
28
29
  }
29
30
  EditorSplitCellButtonDirective = tslib_1.__decorate([
30
31
  Directive({
@@ -33,7 +34,8 @@ var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
33
34
  tslib_1.__param(1, Host()),
34
35
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
35
36
  EditorComponent,
36
- EditorLocalizationService])
37
+ EditorLocalizationService,
38
+ EditorToolsService])
37
39
  ], EditorSplitCellButtonDirective);
38
40
  return EditorSplitCellButtonDirective;
39
41
  }(EditorCommandButton));
@@ -0,0 +1,20 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as tslib_1 from "tslib";
6
+ import { Injectable } from '@angular/core';
7
+ import { Subject } from 'rxjs';
8
+ /**
9
+ * @hidden
10
+ */
11
+ var EditorToolsService = /** @class */ (function () {
12
+ function EditorToolsService() {
13
+ this.needsCheck = new Subject();
14
+ }
15
+ EditorToolsService = tslib_1.__decorate([
16
+ Injectable()
17
+ ], EditorToolsService);
18
+ return EditorToolsService;
19
+ }());
20
+ export { EditorToolsService };
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Bold tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorBoldButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorBoldButtonDirective, _super);
31
- function EditorBoldButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'bold', button, editor, localization) || this;
32
+ function EditorBoldButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'bold', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorBoldButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorBoldButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorBoldButtonDirective);
43
45
  return EditorBoldButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Italic tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorItalicButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorItalicButtonDirective, _super);
31
- function EditorItalicButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'italic', button, editor, localization) || this;
32
+ function EditorItalicButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'italic', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorItalicButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorItalicButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorItalicButtonDirective);
43
45
  return EditorItalicButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Strikethrough tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorStrikethroughButtonDirective, _super);
31
- function EditorStrikethroughButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'strikethrough', button, editor, localization) || this;
32
+ function EditorStrikethroughButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'strikethrough', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorStrikethroughButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorStrikethroughButtonDirective);
43
45
  return EditorStrikethroughButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Subscript tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorSubscriptButtonDirective, _super);
31
- function EditorSubscriptButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'subscript', button, editor, localization) || this;
32
+ function EditorSubscriptButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'subscript', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorSubscriptButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorSubscriptButtonDirective);
43
45
  return EditorSubscriptButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Superscript tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorSuperscriptButtonDirective, _super);
31
- function EditorSuperscriptButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'superscript', button, editor, localization) || this;
32
+ function EditorSuperscriptButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'superscript', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorSuperscriptButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorSuperscriptButtonDirective);
43
45
  return EditorSuperscriptButtonDirective;
44
46
  }(EditorCommandButton));
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
8
  import { EditorComponent } from '../../editor.component';
9
9
  import { EditorCommandButton } from '../shared/editor-command-button';
10
10
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
11
+ import { EditorToolsService } from '../tools.service';
11
12
  /**
12
13
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Underline tool
13
14
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
28
29
  */
29
30
  var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
30
31
  tslib_1.__extends(EditorUnderlineButtonDirective, _super);
31
- function EditorUnderlineButtonDirective(button, editor, localization) {
32
- return _super.call(this, 'underline', button, editor, localization) || this;
32
+ function EditorUnderlineButtonDirective(button, editor, localization, toolsService) {
33
+ return _super.call(this, 'underline', button, editor, localization, toolsService) || this;
33
34
  }
34
35
  EditorUnderlineButtonDirective = tslib_1.__decorate([
35
36
  Directive({
@@ -38,7 +39,8 @@ var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
38
39
  tslib_1.__param(1, Host()),
39
40
  tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
40
41
  EditorComponent,
41
- EditorLocalizationService])
42
+ EditorLocalizationService,
43
+ EditorToolsService])
42
44
  ], EditorUnderlineButtonDirective);
43
45
  return EditorUnderlineButtonDirective;
44
46
  }(EditorCommandButton));
@@ -11,10 +11,14 @@ export declare type DispatchFn = (tr: Transaction) => void;
11
11
  * @hidden
12
12
  */
13
13
  export declare type Command = (state: EditorState, dispatch: DispatchFn, view?: EditorView) => boolean | void;
14
+ /**
15
+ * @hidden
16
+ */
17
+ export declare type EditorInternalCommand = 'print';
14
18
  /**
15
19
  * The list of the command names that are accepted by the `exec` method.
16
20
  */
17
- export declare type EditorCommand = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'createLink' | 'unlink' | 'insertFile' | 'insertImage' | 'insertOrderedList' | 'insertUnorderedList' | 'insertText' | 'indent' | 'outdent' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'format' | 'fontFamily' | 'fontSize' | 'cleanFormat' | 'setHTML' | 'undo' | 'redo' | 'subscript' | 'superscript' | 'cleanFormatting' | 'foreColor' | 'backColor' | 'insertTable' | 'addColumnBefore' | 'addColumnAfter' | 'addRowBefore' | 'addRowAfter' | 'deleteRow' | 'deleteColumn' | 'mergeCells' | 'splitCell' | 'deleteTable';
21
+ export declare type EditorCommand = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'createLink' | 'unlink' | 'insertFile' | 'insertImage' | 'insertOrderedList' | 'insertUnorderedList' | 'insertText' | 'indent' | 'outdent' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'format' | 'fontFamily' | 'fontSize' | 'cleanFormat' | 'setHTML' | 'undo' | 'redo' | 'subscript' | 'superscript' | 'cleanFormatting' | 'foreColor' | 'backColor' | 'insertTable' | 'addColumnBefore' | 'addColumnAfter' | 'addRowBefore' | 'addRowAfter' | 'deleteRow' | 'deleteColumn' | 'mergeCells' | 'splitCell' | 'deleteTable' | 'selectAll';
18
22
  /**
19
23
  * The list of the dialog names that are accepted by the `openDialog` method.
20
24
  */
@@ -12,6 +12,7 @@ export const EditorErrorMessages = {
12
12
  setSchemaOnce: 'The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/',
13
13
  pluginsCallbackType: ɵ0,
14
14
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
15
- setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/'
15
+ setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
16
+ 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/'
16
17
  };
17
18
  export { ɵ0 };
@@ -2,8 +2,8 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { EditorCommand, DialogCommand } from '../common/commands';
5
+ import { EditorCommand, DialogCommand, EditorInternalCommand } from '../common/commands';
6
6
  /**
7
7
  * @hidden
8
8
  */
9
- export declare const commandIcons: Partial<Record<EditorCommand | DialogCommand, string>>;
9
+ export declare const commandIcons: Partial<Record<EditorCommand | DialogCommand | EditorInternalCommand, string>>;
@@ -10,9 +10,11 @@ export const commandIcons = {
10
10
  alignJustify: 'align-justify',
11
11
  alignLeft: 'align-left',
12
12
  alignRight: 'align-right',
13
+ backColor: 'background',
13
14
  bold: 'bold',
14
15
  cleanFormatting: 'clear-css',
15
16
  createLink: 'link-horizontal',
17
+ foreColor: 'foreground-color',
16
18
  indent: 'indent-increase',
17
19
  insertFile: 'file-add',
18
20
  insertImage: 'image',
@@ -20,7 +22,9 @@ export const commandIcons = {
20
22
  insertUnorderedList: 'list-unordered',
21
23
  italic: 'italic',
22
24
  outdent: 'indent-decrease',
25
+ print: 'print',
23
26
  redo: 'redo',
27
+ selectAll: 'select-all',
24
28
  strikethrough: 'strikethrough',
25
29
  subscript: 'sub-script',
26
30
  superscript: 'sup-script',
@@ -28,8 +32,6 @@ export const commandIcons = {
28
32
  undo: 'undo',
29
33
  unlink: 'unlink-horizontal',
30
34
  viewSource: 'html',
31
- foreColor: 'foreground-color',
32
- backColor: 'background',
33
35
  //table
34
36
  insertTable: 'table-insert',
35
37
  addColumnBefore: 'table-column-insert-left',
@@ -4,11 +4,11 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { alignBlocks, alignLeftRules, alignCenterRules, alignRightRules, alignJustifyRules, alignRemoveRules, indent, outdent, setHtml, getHtml, insertImage, insertText, applyLink, removeLink, expandToWordWrap,
6
6
  //marks
7
- bold, italic, underline, strikethrough, subscript, superscript, link, toggleInlineFormat, applyInlineStyle, formatBlockElements, toggleOrderedList, toggleUnorderedList, isAligned, undo, redo, cleanFormatting } from '@progress/kendo-editor-common';
7
+ bold, italic, underline, strikethrough, subscript, superscript, link, toggleInlineFormat, applyInlineStyle, formatBlockElements, toggleOrderedList, toggleUnorderedList, isAligned, undo, redo, cleanFormatting, selectAll } from '@progress/kendo-editor-common';
8
8
  import { insertTable, deleteTable, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell } from './table-commands';
9
9
  const alignRemove = (state, dispatch) => alignBlocks(alignRemoveRules)(state, dispatch);
10
10
  const ɵ0 = alignRemove;
11
- const ɵ1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, bold, { applyToWord })), ɵ2 = (options) => cleanFormatting(options), ɵ3 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }), ɵ4 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ5 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }), ɵ6 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }), ɵ7 = text => insertText(text), ɵ8 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, italic, { applyToWord })), ɵ9 = (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 });
11
+ const ɵ1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, bold, { applyToWord })), ɵ2 = (options) => cleanFormatting(options), ɵ3 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }), ɵ4 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ5 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }), ɵ6 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }), ɵ7 = text => insertText(text), ɵ8 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, italic, { applyToWord })), ɵ9 = (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);
12
12
  const inlineCommand = {
13
13
  bold: ɵ1,
14
14
  cleanFormatting: ɵ2,
@@ -24,42 +24,43 @@ const inlineCommand = {
24
24
  underline: ɵ12,
25
25
  unlink: ɵ13,
26
26
  foreColor: ɵ14,
27
- backColor: ɵ15
27
+ backColor: ɵ15,
28
+ selectAll: ɵ16
28
29
  };
29
- 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;
30
+ 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;
30
31
  const blockCommand = {
31
- alignCenter: ɵ16,
32
- alignJustify: ɵ17,
33
- alignLeft: ɵ18,
34
- alignRight: ɵ19,
35
- format: ɵ20,
36
- getHTML: ɵ21,
37
- indent: ɵ22,
38
- insertImage: ɵ23,
32
+ alignCenter: ɵ17,
33
+ alignJustify: ɵ18,
34
+ alignLeft: ɵ19,
35
+ alignRight: ɵ20,
36
+ format: ɵ21,
37
+ getHTML: ɵ22,
38
+ indent: ɵ23,
39
+ insertImage: ɵ24,
39
40
  // think about changing the command name.
40
- insertOrderedList: ɵ24,
41
+ insertOrderedList: ɵ25,
41
42
  // think about changing the command name.
42
- insertUnorderedList: ɵ25,
43
- outdent: ɵ26,
44
- redo: ɵ27,
45
- setHTML: ɵ28,
46
- undo: ɵ29
43
+ insertUnorderedList: ɵ26,
44
+ outdent: ɵ27,
45
+ redo: ɵ28,
46
+ setHTML: ɵ29,
47
+ undo: ɵ30
47
48
  };
48
- const ɵ30 = attr => insertTable(attr), ɵ31 = () => addColumnBefore, ɵ32 = () => addColumnAfter, ɵ33 = () => addRowBefore, ɵ34 = () => addRowAfter, ɵ35 = () => deleteRow, ɵ36 = () => deleteColumn, ɵ37 = () => mergeCells, ɵ38 = () => splitCell, ɵ39 = () => deleteTable;
49
+ const ɵ31 = attr => insertTable(attr), ɵ32 = () => addColumnBefore, ɵ33 = () => addColumnAfter, ɵ34 = () => addRowBefore, ɵ35 = () => addRowAfter, ɵ36 = () => deleteRow, ɵ37 = () => deleteColumn, ɵ38 = () => mergeCells, ɵ39 = () => splitCell, ɵ40 = () => deleteTable;
49
50
  const tableCommand = {
50
- insertTable: ɵ30,
51
- addColumnBefore: ɵ31,
52
- addColumnAfter: ɵ32,
53
- addRowBefore: ɵ33,
54
- addRowAfter: ɵ34,
55
- deleteRow: ɵ35,
56
- deleteColumn: ɵ36,
57
- mergeCells: ɵ37,
58
- splitCell: ɵ38,
59
- deleteTable: ɵ39
51
+ insertTable: ɵ31,
52
+ addColumnBefore: ɵ32,
53
+ addColumnAfter: ɵ33,
54
+ addRowBefore: ɵ34,
55
+ addRowAfter: ɵ35,
56
+ deleteRow: ɵ36,
57
+ deleteColumn: ɵ37,
58
+ mergeCells: ɵ38,
59
+ splitCell: ɵ39,
60
+ deleteTable: ɵ40
60
61
  };
61
62
  /**
62
63
  * @hidden
63
64
  */
64
65
  export const editorCommands = Object.assign({}, inlineCommand, blockCommand, tableCommand);
65
- export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39 };
66
+ export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39, ɵ40 };