@progress/kendo-angular-editor 2.5.0-dev.202111240844 → 3.0.0-dev.202112211443
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 +3 -2
- package/dist/es/editor.component.js +102 -69
- package/dist/es/index.js +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/preventable-events/paste-event-data.js +4 -0
- package/dist/es/preventable-events/paste-event.js +25 -0
- 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 +3 -1
- 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/error-messages.js +3 -2
- package/dist/es2015/common/paste-cleanup-settings.d.ts +14 -0
- package/dist/es2015/editor.component.d.ts +18 -11
- package/dist/es2015/editor.component.js +102 -69
- 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/main.d.ts +2 -0
- package/dist/es2015/main.js +1 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/preventable-events/paste-event-data.d.ts +21 -0
- package/dist/es2015/preventable-events/paste-event-data.js +4 -0
- package/dist/es2015/preventable-events/paste-event.d.ts +27 -0
- package/dist/es2015/preventable-events/paste-event.js +20 -0
- 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 -1
- package/dist/es2015/tools/shared/editor-command-base.js +3 -1
- 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 +301 -186
- package/dist/fesm5/index.js +302 -186
- package/dist/npm/common/error-messages.js +3 -1
- package/dist/npm/editor.component.js +98 -65
- package/dist/npm/index.js +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/preventable-events/paste-event-data.js +6 -0
- package/dist/npm/preventable-events/paste-event.js +27 -0
- 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 +3 -1
- 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 { 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 InsertImage tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -26,8 +27,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
let EditorInsertImageButtonDirective = class EditorInsertImageButtonDirective extends EditorCommandDialog {
|
|
29
|
-
constructor(button, editor, localization) {
|
|
30
|
-
super('insertImage', button, editor, localization);
|
|
30
|
+
constructor(button, editor, localization, toolsService) {
|
|
31
|
+
super('insertImage', button, editor, localization, toolsService);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
EditorInsertImageButtonDirective = tslib_1.__decorate([
|
|
@@ -37,6 +38,7 @@ EditorInsertImageButtonDirective = tslib_1.__decorate([
|
|
|
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
|
], EditorInsertImageButtonDirective);
|
|
42
44
|
export { EditorInsertImageButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Indent tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorIndentButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -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 Indent 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
|
*/
|
|
29
30
|
let EditorIndentButtonDirective = class EditorIndentButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('indent', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('indent', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorIndentButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorIndentButtonDirective = tslib_1.__decorate([
|
|
|
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
|
], EditorIndentButtonDirective);
|
|
43
45
|
export { EditorIndentButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Outdent tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorOutdentButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -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 Outdent 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
|
*/
|
|
29
30
|
let EditorOutdentButtonDirective = class EditorOutdentButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('outdent', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('outdent', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorOutdentButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorOutdentButtonDirective = tslib_1.__decorate([
|
|
|
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
|
], EditorOutdentButtonDirective);
|
|
43
45
|
export { EditorOutdentButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor CreateLink tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorCreateLinkButtonDirective extends EditorCommandDialog {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -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 CreateLink 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
|
*/
|
|
29
30
|
let EditorCreateLinkButtonDirective = class EditorCreateLinkButtonDirective extends EditorCommandDialog {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('createLink', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('createLink', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorCreateLinkButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorCreateLinkButtonDirective = tslib_1.__decorate([
|
|
|
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
|
], EditorCreateLinkButtonDirective);
|
|
43
45
|
export { EditorCreateLinkButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
6
6
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
7
7
|
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from "../tools.service";
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor 'Insert File' tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -17,5 +18,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
20
|
export declare class EditorInsertFileButtonDirective extends EditorCommandDialog {
|
|
20
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
21
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
21
22
|
}
|
|
@@ -8,6 +8,7 @@ import { EditorComponent } from '../../editor.component';
|
|
|
8
8
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
9
9
|
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
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 'Insert File' tool
|
|
13
14
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -19,8 +20,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
22
|
let EditorInsertFileButtonDirective = class EditorInsertFileButtonDirective extends EditorCommandDialog {
|
|
22
|
-
constructor(button, editor, localization) {
|
|
23
|
-
super('insertFile', button, editor, localization);
|
|
23
|
+
constructor(button, editor, localization, toolsService) {
|
|
24
|
+
super('insertFile', button, editor, localization, toolsService);
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
EditorInsertFileButtonDirective = tslib_1.__decorate([
|
|
@@ -30,6 +31,7 @@ EditorInsertFileButtonDirective = tslib_1.__decorate([
|
|
|
30
31
|
tslib_1.__param(1, Host()),
|
|
31
32
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
32
33
|
EditorComponent,
|
|
33
|
-
EditorLocalizationService
|
|
34
|
+
EditorLocalizationService,
|
|
35
|
+
EditorToolsService])
|
|
34
36
|
], EditorInsertFileButtonDirective);
|
|
35
37
|
export { EditorInsertFileButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Unlink tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorUnlinkButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -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 Unlink 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
|
*/
|
|
29
30
|
let EditorUnlinkButtonDirective = class EditorUnlinkButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('unlink', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('unlink', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorUnlinkButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorUnlinkButtonDirective = tslib_1.__decorate([
|
|
|
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
|
], EditorUnlinkButtonDirective);
|
|
43
45
|
export { EditorUnlinkButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertOrderedList tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -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 InsertOrderedList 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
|
*/
|
|
29
30
|
let EditorInsertOrderedListButtonDirective = class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('insertOrderedList', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('insertOrderedList', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorInsertOrderedListButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorInsertOrderedListButtonDirective = tslib_1.__decorate([
|
|
|
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
|
], EditorInsertOrderedListButtonDirective);
|
|
43
45
|
export { EditorInsertOrderedListButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor InsertUnorderedList tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -25,5 +26,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|
|
@@ -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)).
|
|
@@ -27,8 +28,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
30
|
let EditorInsertUnorderedListButtonDirective = class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('insertUnorderedList', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('insertUnorderedList', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorInsertUnorderedListButtonDirective = tslib_1.__decorate([
|
|
|
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
|
export { EditorInsertUnorderedListButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Print tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -27,7 +28,7 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
27
28
|
*/
|
|
28
29
|
export declare class EditorPrintDirective extends EditorCommandButton {
|
|
29
30
|
protected editor: EditorComponent;
|
|
30
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
31
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
31
32
|
ngAfterViewInit(): void;
|
|
32
33
|
protected clickHandler(): void;
|
|
33
34
|
}
|
|
@@ -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)).
|
|
@@ -29,8 +30,8 @@ import { EditorErrorMessages } from '../../common/error-messages';
|
|
|
29
30
|
* ```
|
|
30
31
|
*/
|
|
31
32
|
let EditorPrintDirective = class EditorPrintDirective extends EditorCommandButton {
|
|
32
|
-
constructor(button, editor, localization) {
|
|
33
|
-
super('print', button, editor, localization);
|
|
33
|
+
constructor(button, editor, localization, toolsService) {
|
|
34
|
+
super('print', button, editor, localization, toolsService);
|
|
34
35
|
this.editor = editor;
|
|
35
36
|
}
|
|
36
37
|
ngAfterViewInit() {
|
|
@@ -59,6 +60,7 @@ EditorPrintDirective = tslib_1.__decorate([
|
|
|
59
60
|
tslib_1.__param(1, Host()),
|
|
60
61
|
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
61
62
|
EditorComponent,
|
|
62
|
-
EditorLocalizationService
|
|
63
|
+
EditorLocalizationService,
|
|
64
|
+
EditorToolsService])
|
|
63
65
|
], EditorPrintDirective);
|
|
64
66
|
export { EditorPrintDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor SelectAll tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,6 +25,6 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
export declare class EditorSelectAllButtonDirective extends EditorCommandButton {
|
|
27
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
28
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
28
29
|
protected clickHandler(): void;
|
|
29
30
|
}
|
|
@@ -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)).
|
|
@@ -26,8 +27,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
let EditorSelectAllButtonDirective = class EditorSelectAllButtonDirective extends EditorCommandButton {
|
|
29
|
-
constructor(button, editor, localization) {
|
|
30
|
-
super('selectAll', button, editor, localization);
|
|
30
|
+
constructor(button, editor, localization, toolsService) {
|
|
31
|
+
super('selectAll', button, editor, localization, toolsService);
|
|
31
32
|
}
|
|
32
33
|
clickHandler() {
|
|
33
34
|
this.editor.shouldEmitFocus = true;
|
|
@@ -41,6 +42,7 @@ EditorSelectAllButtonDirective = tslib_1.__decorate([
|
|
|
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
|
export { EditorSelectAllButtonDirective };
|
|
@@ -7,6 +7,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
7
7
|
import { EditorComponent } from '../../editor.component';
|
|
8
8
|
import { EditorCommand, DialogCommand, EditorInternalCommand } from '../../common/commands';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
+
import { EditorToolsService } from '../tools.service';
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
12
13
|
*/
|
|
@@ -15,8 +16,9 @@ export declare abstract class EditorCommandBase {
|
|
|
15
16
|
protected button: ToolBarButtonComponent;
|
|
16
17
|
protected editor: EditorComponent;
|
|
17
18
|
protected localization: LocalizationService;
|
|
19
|
+
protected toolsService: EditorToolsService;
|
|
18
20
|
protected subs: Subscription;
|
|
19
|
-
constructor(command: DialogCommand | EditorCommand | EditorInternalCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService);
|
|
21
|
+
constructor(command: DialogCommand | EditorCommand | EditorInternalCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService, toolsService: EditorToolsService);
|
|
20
22
|
ngOnInit(): void;
|
|
21
23
|
ngOnDestroy(): void;
|
|
22
24
|
protected clickHandler(): void;
|
|
@@ -7,11 +7,12 @@ import { commandIcons } from '../../config/command-icons';
|
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
export class EditorCommandBase {
|
|
10
|
-
constructor(command, button, editor, localization) {
|
|
10
|
+
constructor(command, button, editor, localization, toolsService) {
|
|
11
11
|
this.command = command;
|
|
12
12
|
this.button = button;
|
|
13
13
|
this.editor = editor;
|
|
14
14
|
this.localization = localization;
|
|
15
|
+
this.toolsService = toolsService;
|
|
15
16
|
setTimeout(() => {
|
|
16
17
|
const text = this.localization.get(this.command);
|
|
17
18
|
if (text) {
|
|
@@ -23,6 +24,7 @@ export class EditorCommandBase {
|
|
|
23
24
|
this.button.icon = commandIcons[this.command];
|
|
24
25
|
}
|
|
25
26
|
this.button.title = text;
|
|
27
|
+
this.toolsService.needsCheck.next();
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
30
|
ngOnInit() {
|
|
@@ -7,6 +7,7 @@ import { EditorCommand, EditorInternalCommand } from '../../common/commands';
|
|
|
7
7
|
import { EditorComponent } from '../../editor.component';
|
|
8
8
|
import { EditorCommandBase } from './editor-command-base';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
+
import { EditorToolsService } from '../tools.service';
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
12
13
|
*/
|
|
@@ -15,7 +16,8 @@ export declare abstract class EditorCommandButton extends EditorCommandBase {
|
|
|
15
16
|
protected button: ToolBarButtonComponent;
|
|
16
17
|
protected editor: EditorComponent;
|
|
17
18
|
protected localization: LocalizationService;
|
|
18
|
-
|
|
19
|
+
protected toolsService: EditorToolsService;
|
|
20
|
+
constructor(command: EditorCommand | EditorInternalCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService, toolsService: EditorToolsService);
|
|
19
21
|
protected clickHandler(): void;
|
|
20
22
|
protected pointerdownHandler(e: PointerEvent): void;
|
|
21
23
|
protected onStateChange(toolBarState: any): void;
|
|
@@ -7,12 +7,13 @@ import { EditorCommandBase } from './editor-command-base';
|
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
export class EditorCommandButton extends EditorCommandBase {
|
|
10
|
-
constructor(command, button, editor, localization) {
|
|
11
|
-
super(command, button, editor, localization);
|
|
10
|
+
constructor(command, button, editor, localization, toolsService) {
|
|
11
|
+
super(command, button, editor, localization, toolsService);
|
|
12
12
|
this.command = command;
|
|
13
13
|
this.button = button;
|
|
14
14
|
this.editor = editor;
|
|
15
15
|
this.localization = localization;
|
|
16
|
+
this.toolsService = toolsService;
|
|
16
17
|
}
|
|
17
18
|
clickHandler() {
|
|
18
19
|
this.editor.exec(this.command, this.editor.applyToWord);
|
|
@@ -7,6 +7,7 @@ import { DialogCommand } from '../../common/commands';
|
|
|
7
7
|
import { EditorComponent } from '../../editor.component';
|
|
8
8
|
import { EditorCommandBase } from './editor-command-base';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
+
import { EditorToolsService } from '../tools.service';
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
12
13
|
*/
|
|
@@ -15,7 +16,8 @@ export declare abstract class EditorCommandDialog extends EditorCommandBase {
|
|
|
15
16
|
protected button: ToolBarButtonComponent;
|
|
16
17
|
protected editor: EditorComponent;
|
|
17
18
|
protected localization: LocalizationService;
|
|
18
|
-
|
|
19
|
+
protected toolsService: EditorToolsService;
|
|
20
|
+
constructor(dialog: DialogCommand, button: ToolBarButtonComponent, editor: EditorComponent, localization: LocalizationService, toolsService: EditorToolsService);
|
|
19
21
|
protected clickHandler(): void;
|
|
20
22
|
protected onStateChange(toolBarState: any): void;
|
|
21
23
|
}
|
|
@@ -7,12 +7,13 @@ import { EditorCommandBase } from './editor-command-base';
|
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
export class EditorCommandDialog extends EditorCommandBase {
|
|
10
|
-
constructor(dialog, button, editor, localization) {
|
|
11
|
-
super(dialog, button, editor, localization);
|
|
10
|
+
constructor(dialog, button, editor, localization, toolsService) {
|
|
11
|
+
super(dialog, button, editor, localization, toolsService);
|
|
12
12
|
this.dialog = dialog;
|
|
13
13
|
this.button = button;
|
|
14
14
|
this.editor = editor;
|
|
15
15
|
this.localization = localization;
|
|
16
|
+
this.toolsService = toolsService;
|
|
16
17
|
}
|
|
17
18
|
clickHandler() {
|
|
18
19
|
this.editor.openDialog(this.dialog);
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandDialog } from '../shared/editor-command-dialog';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor ViewSource tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -24,5 +25,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
export declare class EditorViewSourceButtonDirective extends EditorCommandDialog {
|
|
27
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
28
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
28
29
|
}
|
|
@@ -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)).
|
|
@@ -26,8 +27,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
let EditorViewSourceButtonDirective = class EditorViewSourceButtonDirective extends EditorCommandDialog {
|
|
29
|
-
constructor(button, editor, localization) {
|
|
30
|
-
super('viewSource', button, editor, localization);
|
|
30
|
+
constructor(button, editor, localization, toolsService) {
|
|
31
|
+
super('viewSource', button, editor, localization, toolsService);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
EditorViewSourceButtonDirective = tslib_1.__decorate([
|
|
@@ -37,6 +38,7 @@ EditorViewSourceButtonDirective = tslib_1.__decorate([
|
|
|
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
|
export { EditorViewSourceButtonDirective };
|
|
@@ -6,6 +6,7 @@ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
|
6
6
|
import { EditorComponent } from '../../editor.component';
|
|
7
7
|
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
8
|
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
9
10
|
/**
|
|
10
11
|
* A directive which configures an existing `ToolBarButtonComponent` as an Editor AddColumnAfter tool
|
|
11
12
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -18,5 +19,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
20
21
|
export declare class EditorAddColumnAfterButtonDirective extends EditorCommandButton {
|
|
21
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
22
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
22
23
|
}
|
|
@@ -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)).
|
|
@@ -20,8 +21,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
23
|
let EditorAddColumnAfterButtonDirective = class EditorAddColumnAfterButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('addColumnAfter', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('addColumnAfter', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorAddColumnAfterButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorAddColumnAfterButtonDirective = tslib_1.__decorate([
|
|
|
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
|
export { EditorAddColumnAfterButtonDirective };
|