@progress/kendo-angular-editor 2.5.0-dev.202111231749 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/editor.component.js +7 -2
- package/dist/es/index.js +1 -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 +5 -3
- package/dist/es/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/es/tools/shared/editor-command-base.js +9 -9
- 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/editor.component.d.ts +3 -1
- package/dist/es2015/editor.component.js +7 -2
- package/dist/es2015/index.d.ts +1 -0
- package/dist/es2015/index.js +1 -0
- package/dist/es2015/index.metadata.json +1 -1
- 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 +2 -1
- package/dist/es2015/tools/print/editor-print-button.directive.js +5 -3
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +2 -1
- package/dist/es2015/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/es2015/tools/shared/editor-command-base.d.ts +3 -2
- package/dist/es2015/tools/shared/editor-command-base.js +8 -8
- package/dist/es2015/tools/shared/editor-command-button.d.ts +3 -1
- 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 +195 -126
- package/dist/fesm5/index.js +194 -127
- package/dist/npm/editor.component.js +7 -2
- package/dist/npm/index.js +2 -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 +5 -3
- package/dist/npm/tools/select-all/select-all-button.directive.js +5 -3
- package/dist/npm/tools/shared/editor-command-base.js +9 -9
- 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
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertUnorderedList tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -28,8 +29,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
28
29
|
*/
|
|
29
30
|
var EditorInsertUnorderedListButtonDirective = /** @class */ (function (_super) {
|
|
30
31
|
tslib_1.__extends(EditorInsertUnorderedListButtonDirective, _super);
|
|
31
|
-
function EditorInsertUnorderedListButtonDirective(button, editor, localization) {
|
|
32
|
-
return _super.call(this, 'insertUnorderedList', button, editor, localization) || this;
|
|
32
|
+
function EditorInsertUnorderedListButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
+
return _super.call(this, 'insertUnorderedList', button, editor, localization, toolsService) || this;
|
|
33
34
|
}
|
|
34
35
|
EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
|
|
35
36
|
Directive({
|
|
@@ -38,7 +39,8 @@ var EditorInsertUnorderedListButtonDirective = /** @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
|
], EditorInsertUnorderedListButtonDirective);
|
|
43
45
|
return EditorInsertUnorderedListButtonDirective;
|
|
44
46
|
}(EditorCommandButton));
|
|
@@ -9,6 +9,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
9
9
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
11
|
import { EditorErrorMessages } from '../../common/error-messages';
|
|
12
|
+
import { EditorToolsService } from '../tools.service';
|
|
12
13
|
/**
|
|
13
14
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
|
|
14
15
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -30,8 +31,8 @@ import { EditorErrorMessages } from '../../common/error-messages';
|
|
|
30
31
|
*/
|
|
31
32
|
var EditorPrintDirective = /** @class */ (function (_super) {
|
|
32
33
|
tslib_1.__extends(EditorPrintDirective, _super);
|
|
33
|
-
function EditorPrintDirective(button, editor, localization) {
|
|
34
|
-
var _this = _super.call(this, 'print', button, editor, localization) || this;
|
|
34
|
+
function EditorPrintDirective(button, editor, localization, toolsService) {
|
|
35
|
+
var _this = _super.call(this, 'print', button, editor, localization, toolsService) || this;
|
|
35
36
|
_this.editor = editor;
|
|
36
37
|
return _this;
|
|
37
38
|
}
|
|
@@ -60,7 +61,8 @@ var EditorPrintDirective = /** @class */ (function (_super) {
|
|
|
60
61
|
tslib_1.__param(1, Host()),
|
|
61
62
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
62
63
|
EditorComponent,
|
|
63
|
-
EditorLocalizationService
|
|
64
|
+
EditorLocalizationService,
|
|
65
|
+
EditorToolsService])
|
|
64
66
|
], EditorPrintDirective);
|
|
65
67
|
return EditorPrintDirective;
|
|
66
68
|
}(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 SelectAll tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
*/
|
|
28
29
|
var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
|
|
29
30
|
tslib_1.__extends(EditorSelectAllButtonDirective, _super);
|
|
30
|
-
function EditorSelectAllButtonDirective(button, editor, localization) {
|
|
31
|
-
return _super.call(this, 'selectAll', button, editor, localization) || this;
|
|
31
|
+
function EditorSelectAllButtonDirective(button, editor, localization, toolsService) {
|
|
32
|
+
return _super.call(this, 'selectAll', button, editor, localization, toolsService) || this;
|
|
32
33
|
}
|
|
33
34
|
EditorSelectAllButtonDirective.prototype.clickHandler = function () {
|
|
34
35
|
this.editor.shouldEmitFocus = true;
|
|
@@ -41,7 +42,8 @@ var EditorSelectAllButtonDirective = /** @class */ (function (_super) {
|
|
|
41
42
|
tslib_1.__param(1, Host()),
|
|
42
43
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
43
44
|
EditorComponent,
|
|
44
|
-
EditorLocalizationService
|
|
45
|
+
EditorLocalizationService,
|
|
46
|
+
EditorToolsService])
|
|
45
47
|
], EditorSelectAllButtonDirective);
|
|
46
48
|
return EditorSelectAllButtonDirective;
|
|
47
49
|
}(EditorCommandButton));
|
|
@@ -7,19 +7,13 @@ import { commandIcons } from '../../config/command-icons';
|
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
var EditorCommandBase = /** @class */ (function () {
|
|
10
|
-
function EditorCommandBase(command, button, editor, localization) {
|
|
10
|
+
function EditorCommandBase(command, button, editor, localization, toolsService) {
|
|
11
|
+
var _this = this;
|
|
11
12
|
this.command = command;
|
|
12
13
|
this.button = button;
|
|
13
14
|
this.editor = editor;
|
|
14
15
|
this.localization = localization;
|
|
15
|
-
|
|
16
|
-
EditorCommandBase.prototype.ngOnInit = function () {
|
|
17
|
-
this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
|
|
18
|
-
this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
|
|
19
|
-
this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
|
|
20
|
-
};
|
|
21
|
-
EditorCommandBase.prototype.ngAfterViewInit = function () {
|
|
22
|
-
var _this = this;
|
|
16
|
+
this.toolsService = toolsService;
|
|
23
17
|
setTimeout(function () {
|
|
24
18
|
var text = _this.localization.get(_this.command);
|
|
25
19
|
if (text) {
|
|
@@ -31,7 +25,13 @@ var EditorCommandBase = /** @class */ (function () {
|
|
|
31
25
|
_this.button.icon = commandIcons[_this.command];
|
|
32
26
|
}
|
|
33
27
|
_this.button.title = text;
|
|
28
|
+
_this.toolsService.needsCheck.next();
|
|
34
29
|
});
|
|
30
|
+
}
|
|
31
|
+
EditorCommandBase.prototype.ngOnInit = function () {
|
|
32
|
+
this.subs = this.editor.stateChange.subscribe(this.onStateChange.bind(this));
|
|
33
|
+
this.subs.add(this.button.click.subscribe((this.clickHandler.bind(this))));
|
|
34
|
+
this.subs.add(this.button.pointerdown.subscribe((this.pointerdownHandler.bind(this))));
|
|
35
35
|
};
|
|
36
36
|
EditorCommandBase.prototype.ngOnDestroy = function () {
|
|
37
37
|
if (this.subs) {
|
|
@@ -9,12 +9,13 @@ import { EditorCommandBase } from './editor-command-base';
|
|
|
9
9
|
*/
|
|
10
10
|
var EditorCommandButton = /** @class */ (function (_super) {
|
|
11
11
|
tslib_1.__extends(EditorCommandButton, _super);
|
|
12
|
-
function EditorCommandButton(command, button, editor, localization) {
|
|
13
|
-
var _this = _super.call(this, command, button, editor, localization) || this;
|
|
12
|
+
function EditorCommandButton(command, button, editor, localization, toolsService) {
|
|
13
|
+
var _this = _super.call(this, command, button, editor, localization, toolsService) || this;
|
|
14
14
|
_this.command = command;
|
|
15
15
|
_this.button = button;
|
|
16
16
|
_this.editor = editor;
|
|
17
17
|
_this.localization = localization;
|
|
18
|
+
_this.toolsService = toolsService;
|
|
18
19
|
return _this;
|
|
19
20
|
}
|
|
20
21
|
EditorCommandButton.prototype.clickHandler = function () {
|
|
@@ -9,12 +9,13 @@ import { EditorCommandBase } from './editor-command-base';
|
|
|
9
9
|
*/
|
|
10
10
|
var EditorCommandDialog = /** @class */ (function (_super) {
|
|
11
11
|
tslib_1.__extends(EditorCommandDialog, _super);
|
|
12
|
-
function EditorCommandDialog(dialog, button, editor, localization) {
|
|
13
|
-
var _this = _super.call(this, dialog, button, editor, localization) || this;
|
|
12
|
+
function EditorCommandDialog(dialog, button, editor, localization, toolsService) {
|
|
13
|
+
var _this = _super.call(this, dialog, button, editor, localization, toolsService) || this;
|
|
14
14
|
_this.dialog = dialog;
|
|
15
15
|
_this.button = button;
|
|
16
16
|
_this.editor = editor;
|
|
17
17
|
_this.localization = localization;
|
|
18
|
+
_this.toolsService = toolsService;
|
|
18
19
|
return _this;
|
|
19
20
|
}
|
|
20
21
|
EditorCommandDialog.prototype.clickHandler = function () {
|
|
@@ -8,6 +8,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
9
9
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
10
10
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
11
12
|
/**
|
|
12
13
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor ViewSource tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
*/
|
|
28
29
|
var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
|
|
29
30
|
tslib_1.__extends(EditorViewSourceButtonDirective, _super);
|
|
30
|
-
function EditorViewSourceButtonDirective(button, editor, localization) {
|
|
31
|
-
return _super.call(this, 'viewSource', button, editor, localization) || this;
|
|
31
|
+
function EditorViewSourceButtonDirective(button, editor, localization, toolsService) {
|
|
32
|
+
return _super.call(this, 'viewSource', button, editor, localization, toolsService) || this;
|
|
32
33
|
}
|
|
33
34
|
EditorViewSourceButtonDirective = tslib_1.__decorate([
|
|
34
35
|
Directive({
|
|
@@ -37,7 +38,8 @@ var EditorViewSourceButtonDirective = /** @class */ (function (_super) {
|
|
|
37
38
|
tslib_1.__param(1, Host()),
|
|
38
39
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
39
40
|
EditorComponent,
|
|
40
|
-
EditorLocalizationService
|
|
41
|
+
EditorLocalizationService,
|
|
42
|
+
EditorToolsService])
|
|
41
43
|
], EditorViewSourceButtonDirective);
|
|
42
44
|
return EditorViewSourceButtonDirective;
|
|
43
45
|
}(EditorCommandDialog));
|
|
@@ -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 AddColumnAfter 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 EditorAddColumnAfterButtonDirective = /** @class */ (function (_super) {
|
|
23
24
|
tslib_1.__extends(EditorAddColumnAfterButtonDirective, _super);
|
|
24
|
-
function EditorAddColumnAfterButtonDirective(button, editor, localization) {
|
|
25
|
-
return _super.call(this, 'addColumnAfter', button, editor, localization) || this;
|
|
25
|
+
function EditorAddColumnAfterButtonDirective(button, editor, localization, toolsService) {
|
|
26
|
+
return _super.call(this, 'addColumnAfter', button, editor, localization, toolsService) || this;
|
|
26
27
|
}
|
|
27
28
|
EditorAddColumnAfterButtonDirective = tslib_1.__decorate([
|
|
28
29
|
Directive({
|
|
@@ -31,7 +32,8 @@ var EditorAddColumnAfterButtonDirective = /** @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
|
], EditorAddColumnAfterButtonDirective);
|
|
36
38
|
return EditorAddColumnAfterButtonDirective;
|
|
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 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));
|