@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.
- package/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/error-messages.js +2 -1
- package/dist/es/config/command-icons.js +4 -2
- package/dist/es/config/commands.js +32 -31
- package/dist/es/editor-toolbar-state.js +20 -2
- package/dist/es/editor.component.js +11 -5
- package/dist/es/editor.module.js +7 -1
- package/dist/es/index.js +3 -0
- package/dist/es/localization/messages.js +8 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es/tools/format/editor-format.component.js +9 -3
- package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es/tools/print/editor-print-button.directive.js +69 -0
- package/dist/es/tools/select-all/select-all-button.directive.js +50 -0
- package/dist/es/tools/shared/editor-command-base.js +13 -11
- package/dist/es/tools/shared/editor-command-button.js +3 -2
- package/dist/es/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es/tools/tools.service.js +20 -0
- package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/es2015/common/commands.d.ts +5 -1
- package/dist/es2015/common/error-messages.js +2 -1
- package/dist/es2015/config/command-icons.d.ts +2 -2
- package/dist/es2015/config/command-icons.js +4 -2
- package/dist/es2015/config/commands.js +31 -30
- package/dist/es2015/editor-toolbar-state.js +20 -2
- package/dist/es2015/editor.component.d.ts +8 -1
- package/dist/es2015/editor.component.js +14 -4
- package/dist/es2015/editor.module.js +7 -1
- package/dist/es2015/index.d.ts +3 -0
- package/dist/es2015/index.js +3 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/localization/messages.d.ts +8 -0
- package/dist/es2015/localization/messages.js +8 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
- package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
- package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
- package/dist/es2015/tools/format/editor-format.component.js +9 -3
- package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
- package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
- package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
- package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
- package/dist/es2015/tools/shared/editor-command-base.js +12 -10
- package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
- package/dist/es2015/tools/shared/editor-command-button.js +3 -2
- package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
- package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es2015/tools/tools.service.d.ts +11 -0
- package/dist/es2015/tools/tools.service.js +22 -0
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.d.ts +2 -1
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/fesm2015/index.js +358 -159
- package/dist/fesm5/index.js +360 -162
- package/dist/npm/common/error-messages.js +2 -1
- package/dist/npm/config/command-icons.js +4 -2
- package/dist/npm/config/commands.js +33 -31
- package/dist/npm/editor-toolbar-state.js +20 -2
- package/dist/npm/editor.component.js +11 -5
- package/dist/npm/editor.module.js +7 -1
- package/dist/npm/index.js +6 -0
- package/dist/npm/localization/messages.js +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/npm/tools/format/editor-format.component.js +9 -3
- package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
- package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
- package/dist/npm/tools/shared/editor-command-base.js +13 -11
- package/dist/npm/tools/shared/editor-command-button.js +3 -2
- package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
- package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/npm/tools/tools.service.js +22 -0
- package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +4 -4
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnAfter tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorAddColumnAfterButtonDirective, _super);
|
|
26
|
-
function EditorAddColumnAfterButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'addColumnAfter', button, editor, localization) || this;
|
|
27
|
+
function EditorAddColumnAfterButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'addColumnAfter', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorAddColumnAfterButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorAddColumnAfterButtonDirective);
|
|
38
40
|
return EditorAddColumnAfterButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnBefore tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorAddColumnBeforeButtonDirective, _super);
|
|
26
|
-
function EditorAddColumnBeforeButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'addColumnBefore', button, editor, localization) || this;
|
|
27
|
+
function EditorAddColumnBeforeButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'addColumnBefore', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorAddColumnBeforeButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorAddColumnBeforeButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorAddColumnBeforeButtonDirective);
|
|
38
40
|
return EditorAddColumnBeforeButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowAfter tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorAddRowAfterButtonDirective, _super);
|
|
26
|
-
function EditorAddRowAfterButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'addRowAfter', button, editor, localization) || this;
|
|
27
|
+
function EditorAddRowAfterButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'addRowAfter', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorAddRowAfterButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorAddRowAfterButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorAddRowAfterButtonDirective);
|
|
38
40
|
return EditorAddRowAfterButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddRowBefore tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorAddRowBeforeButtonDirective, _super);
|
|
26
|
-
function EditorAddRowBeforeButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'addRowBefore', button, editor, localization) || this;
|
|
27
|
+
function EditorAddRowBeforeButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'addRowBefore', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorAddRowBeforeButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorAddRowBeforeButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorAddRowBeforeButtonDirective);
|
|
38
40
|
return EditorAddRowBeforeButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteColumn tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorDeleteColumnButtonDirective, _super);
|
|
26
|
-
function EditorDeleteColumnButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'deleteColumn', button, editor, localization) || this;
|
|
27
|
+
function EditorDeleteColumnButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'deleteColumn', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorDeleteColumnButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorDeleteColumnButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorDeleteColumnButtonDirective);
|
|
38
40
|
return EditorDeleteColumnButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteRow tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorDeleteRowButtonDirective, _super);
|
|
26
|
-
function EditorDeleteRowButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'deleteRow', button, editor, localization) || this;
|
|
27
|
+
function EditorDeleteRowButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'deleteRow', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorDeleteRowButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorDeleteRowButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorDeleteRowButtonDirective);
|
|
38
40
|
return EditorDeleteRowButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor DeleteTable tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -23,8 +24,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
23
24
|
*/
|
|
24
25
|
var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
|
|
25
26
|
tslib_1.__extends(EditorDeleteTableButtonDirective, _super);
|
|
26
|
-
function EditorDeleteTableButtonDirective(button, editor, localization) {
|
|
27
|
-
return _super.call(this, 'deleteTable', button, editor, localization) || this;
|
|
27
|
+
function EditorDeleteTableButtonDirective(button, editor, localization, toolsService) {
|
|
28
|
+
return _super.call(this, 'deleteTable', button, editor, localization, toolsService) || this;
|
|
28
29
|
}
|
|
29
30
|
EditorDeleteTableButtonDirective = tslib_1.__decorate([
|
|
30
31
|
core_1.Directive({
|
|
@@ -33,7 +34,8 @@ var EditorDeleteTableButtonDirective = /** @class */ (function (_super) {
|
|
|
33
34
|
tslib_1.__param(1, core_1.Host()),
|
|
34
35
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
35
36
|
editor_component_1.EditorComponent,
|
|
36
|
-
editor_localization_service_1.EditorLocalizationService
|
|
37
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
38
|
+
tools_service_1.EditorToolsService])
|
|
37
39
|
], EditorDeleteTableButtonDirective);
|
|
38
40
|
return EditorDeleteTableButtonDirective;
|
|
39
41
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
15
16
|
*
|
|
@@ -25,8 +26,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
25
26
|
*/
|
|
26
27
|
var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
|
|
27
28
|
tslib_1.__extends(EditorMergeCellsButtonDirective, _super);
|
|
28
|
-
function EditorMergeCellsButtonDirective(button, editor, localization) {
|
|
29
|
-
return _super.call(this, 'mergeCells', button, editor, localization) || this;
|
|
29
|
+
function EditorMergeCellsButtonDirective(button, editor, localization, toolsService) {
|
|
30
|
+
return _super.call(this, 'mergeCells', button, editor, localization, toolsService) || this;
|
|
30
31
|
}
|
|
31
32
|
EditorMergeCellsButtonDirective = tslib_1.__decorate([
|
|
32
33
|
core_1.Directive({
|
|
@@ -35,7 +36,8 @@ var EditorMergeCellsButtonDirective = /** @class */ (function (_super) {
|
|
|
35
36
|
tslib_1.__param(1, core_1.Host()),
|
|
36
37
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
37
38
|
editor_component_1.EditorComponent,
|
|
38
|
-
editor_localization_service_1.EditorLocalizationService
|
|
39
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
40
|
+
tools_service_1.EditorToolsService])
|
|
39
41
|
], EditorMergeCellsButtonDirective);
|
|
40
42
|
return EditorMergeCellsButtonDirective;
|
|
41
43
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
15
16
|
*
|
|
@@ -25,8 +26,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
25
26
|
*/
|
|
26
27
|
var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
|
|
27
28
|
tslib_1.__extends(EditorSplitCellButtonDirective, _super);
|
|
28
|
-
function EditorSplitCellButtonDirective(button, editor, localization) {
|
|
29
|
-
return _super.call(this, 'splitCell', button, editor, localization) || this;
|
|
29
|
+
function EditorSplitCellButtonDirective(button, editor, localization, toolsService) {
|
|
30
|
+
return _super.call(this, 'splitCell', button, editor, localization, toolsService) || this;
|
|
30
31
|
}
|
|
31
32
|
EditorSplitCellButtonDirective = tslib_1.__decorate([
|
|
32
33
|
core_1.Directive({
|
|
@@ -35,7 +36,8 @@ var EditorSplitCellButtonDirective = /** @class */ (function (_super) {
|
|
|
35
36
|
tslib_1.__param(1, core_1.Host()),
|
|
36
37
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
37
38
|
editor_component_1.EditorComponent,
|
|
38
|
-
editor_localization_service_1.EditorLocalizationService
|
|
39
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
40
|
+
tools_service_1.EditorToolsService])
|
|
39
41
|
], EditorSplitCellButtonDirective);
|
|
40
42
|
return EditorSplitCellButtonDirective;
|
|
41
43
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var rxjs_1 = require("rxjs");
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
var EditorToolsService = /** @class */ (function () {
|
|
14
|
+
function EditorToolsService() {
|
|
15
|
+
this.needsCheck = new rxjs_1.Subject();
|
|
16
|
+
}
|
|
17
|
+
EditorToolsService = tslib_1.__decorate([
|
|
18
|
+
core_1.Injectable()
|
|
19
|
+
], EditorToolsService);
|
|
20
|
+
return EditorToolsService;
|
|
21
|
+
}());
|
|
22
|
+
exports.EditorToolsService = EditorToolsService;
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Bold tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorBoldButtonDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorBoldButtonDirective, _super);
|
|
33
|
-
function EditorBoldButtonDirective(button, editor, localization) {
|
|
34
|
-
return _super.call(this, 'bold', button, editor, localization) || this;
|
|
34
|
+
function EditorBoldButtonDirective(button, editor, localization, toolsService) {
|
|
35
|
+
return _super.call(this, 'bold', button, editor, localization, toolsService) || this;
|
|
35
36
|
}
|
|
36
37
|
EditorBoldButtonDirective = tslib_1.__decorate([
|
|
37
38
|
core_1.Directive({
|
|
@@ -40,7 +41,8 @@ var EditorBoldButtonDirective = /** @class */ (function (_super) {
|
|
|
40
41
|
tslib_1.__param(1, core_1.Host()),
|
|
41
42
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
43
|
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService
|
|
44
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
45
|
+
tools_service_1.EditorToolsService])
|
|
44
46
|
], EditorBoldButtonDirective);
|
|
45
47
|
return EditorBoldButtonDirective;
|
|
46
48
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Italic tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorItalicButtonDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorItalicButtonDirective, _super);
|
|
33
|
-
function EditorItalicButtonDirective(button, editor, localization) {
|
|
34
|
-
return _super.call(this, 'italic', button, editor, localization) || this;
|
|
34
|
+
function EditorItalicButtonDirective(button, editor, localization, toolsService) {
|
|
35
|
+
return _super.call(this, 'italic', button, editor, localization, toolsService) || this;
|
|
35
36
|
}
|
|
36
37
|
EditorItalicButtonDirective = tslib_1.__decorate([
|
|
37
38
|
core_1.Directive({
|
|
@@ -40,7 +41,8 @@ var EditorItalicButtonDirective = /** @class */ (function (_super) {
|
|
|
40
41
|
tslib_1.__param(1, core_1.Host()),
|
|
41
42
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
43
|
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService
|
|
44
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
45
|
+
tools_service_1.EditorToolsService])
|
|
44
46
|
], EditorItalicButtonDirective);
|
|
45
47
|
return EditorItalicButtonDirective;
|
|
46
48
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Strikethrough tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorStrikethroughButtonDirective, _super);
|
|
33
|
-
function EditorStrikethroughButtonDirective(button, editor, localization) {
|
|
34
|
-
return _super.call(this, 'strikethrough', button, editor, localization) || this;
|
|
34
|
+
function EditorStrikethroughButtonDirective(button, editor, localization, toolsService) {
|
|
35
|
+
return _super.call(this, 'strikethrough', button, editor, localization, toolsService) || this;
|
|
35
36
|
}
|
|
36
37
|
EditorStrikethroughButtonDirective = tslib_1.__decorate([
|
|
37
38
|
core_1.Directive({
|
|
@@ -40,7 +41,8 @@ var EditorStrikethroughButtonDirective = /** @class */ (function (_super) {
|
|
|
40
41
|
tslib_1.__param(1, core_1.Host()),
|
|
41
42
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
43
|
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService
|
|
44
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
45
|
+
tools_service_1.EditorToolsService])
|
|
44
46
|
], EditorStrikethroughButtonDirective);
|
|
45
47
|
return EditorStrikethroughButtonDirective;
|
|
46
48
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Subscript tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorSubscriptButtonDirective, _super);
|
|
33
|
-
function EditorSubscriptButtonDirective(button, editor, localization) {
|
|
34
|
-
return _super.call(this, 'subscript', button, editor, localization) || this;
|
|
34
|
+
function EditorSubscriptButtonDirective(button, editor, localization, toolsService) {
|
|
35
|
+
return _super.call(this, 'subscript', button, editor, localization, toolsService) || this;
|
|
35
36
|
}
|
|
36
37
|
EditorSubscriptButtonDirective = tslib_1.__decorate([
|
|
37
38
|
core_1.Directive({
|
|
@@ -40,7 +41,8 @@ var EditorSubscriptButtonDirective = /** @class */ (function (_super) {
|
|
|
40
41
|
tslib_1.__param(1, core_1.Host()),
|
|
41
42
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
43
|
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService
|
|
44
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
45
|
+
tools_service_1.EditorToolsService])
|
|
44
46
|
], EditorSubscriptButtonDirective);
|
|
45
47
|
return EditorSubscriptButtonDirective;
|
|
46
48
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Superscript tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorSuperscriptButtonDirective, _super);
|
|
33
|
-
function EditorSuperscriptButtonDirective(button, editor, localization) {
|
|
34
|
-
return _super.call(this, 'superscript', button, editor, localization) || this;
|
|
34
|
+
function EditorSuperscriptButtonDirective(button, editor, localization, toolsService) {
|
|
35
|
+
return _super.call(this, 'superscript', button, editor, localization, toolsService) || this;
|
|
35
36
|
}
|
|
36
37
|
EditorSuperscriptButtonDirective = tslib_1.__decorate([
|
|
37
38
|
core_1.Directive({
|
|
@@ -40,7 +41,8 @@ var EditorSuperscriptButtonDirective = /** @class */ (function (_super) {
|
|
|
40
41
|
tslib_1.__param(1, core_1.Host()),
|
|
41
42
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
43
|
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService
|
|
44
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
45
|
+
tools_service_1.EditorToolsService])
|
|
44
46
|
], EditorSuperscriptButtonDirective);
|
|
45
47
|
return EditorSuperscriptButtonDirective;
|
|
46
48
|
}(editor_command_button_1.EditorCommandButton));
|
|
@@ -10,6 +10,7 @@ var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
|
10
10
|
var editor_component_1 = require("../../editor.component");
|
|
11
11
|
var editor_command_button_1 = require("../shared/editor-command-button");
|
|
12
12
|
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
+
var tools_service_1 = require("../tools.service");
|
|
13
14
|
/**
|
|
14
15
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Underline tool
|
|
15
16
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ var editor_localization_service_1 = require("../../localization/editor-localizat
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorUnderlineButtonDirective, _super);
|
|
33
|
-
function EditorUnderlineButtonDirective(button, editor, localization) {
|
|
34
|
-
return _super.call(this, 'underline', button, editor, localization) || this;
|
|
34
|
+
function EditorUnderlineButtonDirective(button, editor, localization, toolsService) {
|
|
35
|
+
return _super.call(this, 'underline', button, editor, localization, toolsService) || this;
|
|
35
36
|
}
|
|
36
37
|
EditorUnderlineButtonDirective = tslib_1.__decorate([
|
|
37
38
|
core_1.Directive({
|
|
@@ -40,7 +41,8 @@ var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
|
|
|
40
41
|
tslib_1.__param(1, core_1.Host()),
|
|
41
42
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
43
|
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService
|
|
44
|
+
editor_localization_service_1.EditorLocalizationService,
|
|
45
|
+
tools_service_1.EditorToolsService])
|
|
44
46
|
], EditorUnderlineButtonDirective);
|
|
45
47
|
return EditorUnderlineButtonDirective;
|
|
46
48
|
}(editor_command_button_1.EditorCommandButton));
|