@progress/kendo-angular-editor 2.5.0-dev.202111111129 → 2.5.0-dev.202111261548
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-editor.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/common/error-messages.js +2 -1
- package/dist/es/config/command-icons.js +4 -2
- package/dist/es/config/commands.js +32 -31
- package/dist/es/editor-toolbar-state.js +20 -2
- package/dist/es/editor.component.js +11 -5
- package/dist/es/editor.module.js +7 -1
- package/dist/es/index.js +3 -0
- package/dist/es/localization/messages.js +8 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es/tools/format/editor-format.component.js +9 -3
- package/dist/es/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es/tools/print/editor-print-button.directive.js +69 -0
- package/dist/es/tools/select-all/select-all-button.directive.js +50 -0
- package/dist/es/tools/shared/editor-command-base.js +13 -11
- package/dist/es/tools/shared/editor-command-button.js +3 -2
- package/dist/es/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-insert-table-button.component.js +5 -8
- package/dist/es/tools/tables/editor-merge-cells-button.directive.js +5 -3
- package/dist/es/tools/tables/editor-split-cell-button.directive.js +5 -3
- package/dist/es/tools/tools.service.js +20 -0
- package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +5 -3
- package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +5 -3
- package/dist/es2015/common/commands.d.ts +5 -1
- package/dist/es2015/common/error-messages.js +2 -1
- package/dist/es2015/config/command-icons.d.ts +2 -2
- package/dist/es2015/config/command-icons.js +4 -2
- package/dist/es2015/config/commands.js +31 -30
- package/dist/es2015/editor-toolbar-state.js +20 -2
- package/dist/es2015/editor.component.d.ts +8 -1
- package/dist/es2015/editor.component.js +14 -4
- package/dist/es2015/editor.module.js +7 -1
- package/dist/es2015/index.d.ts +3 -0
- package/dist/es2015/index.js +3 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/localization/messages.d.ts +8 -0
- package/dist/es2015/localization/messages.js +8 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.d.ts +2 -1
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/es2015/tools/editor-clean-formatting-button.directive.d.ts +2 -1
- package/dist/es2015/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.d.ts +3 -1
- package/dist/es2015/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/es2015/tools/fontsize/editor-fontsize.component.d.ts +3 -1
- package/dist/es2015/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/es2015/tools/format/editor-format.component.d.ts +3 -1
- package/dist/es2015/tools/format/editor-format.component.js +9 -3
- package/dist/es2015/tools/history/editor-redo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/es2015/tools/history/editor-undo-button.directive.d.ts +2 -1
- package/dist/es2015/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/es2015/tools/image/editor-insert-image-button.directive.d.ts +2 -1
- package/dist/es2015/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-indent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.d.ts +2 -1
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-create-link-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-insert-file-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/es2015/tools/link/editor-unlink-button.directive.d.ts +2 -1
- package/dist/es2015/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.d.ts +2 -1
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/es2015/tools/print/editor-print-button.directive.d.ts +34 -0
- package/dist/es2015/tools/print/editor-print-button.directive.js +66 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.d.ts +30 -0
- package/dist/es2015/tools/select-all/select-all-button.directive.js +48 -0
- package/dist/es2015/tools/shared/editor-command-base.d.ts +5 -3
- package/dist/es2015/tools/shared/editor-command-base.js +12 -10
- package/dist/es2015/tools/shared/editor-command-button.d.ts +5 -3
- package/dist/es2015/tools/shared/editor-command-button.js +3 -2
- package/dist/es2015/tools/shared/editor-command-dialog.d.ts +3 -1
- package/dist/es2015/tools/shared/editor-command-dialog.js +3 -2
- package/dist/es2015/tools/source/editor-view-source-button.directive.d.ts +2 -1
- package/dist/es2015/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.d.ts +2 -1
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/es2015/tools/tables/editor-insert-table-button.component.d.ts +2 -3
- package/dist/es2015/tools/tables/editor-insert-table-button.component.js +13 -8
- 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 +371 -167
- package/dist/fesm5/index.js +365 -170
- package/dist/npm/common/error-messages.js +2 -1
- package/dist/npm/config/command-icons.js +4 -2
- package/dist/npm/config/commands.js +33 -31
- package/dist/npm/editor-toolbar-state.js +20 -2
- package/dist/npm/editor.component.js +11 -5
- package/dist/npm/editor.module.js +7 -1
- package/dist/npm/index.js +6 -0
- package/dist/npm/localization/messages.js +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/alignment/editor-align-center-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-left-button.directive.js +5 -3
- package/dist/npm/tools/alignment/editor-align-right-button.directive.js +5 -3
- package/dist/npm/tools/editor-clean-formatting-button.directive.js +5 -3
- package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +9 -3
- package/dist/npm/tools/fontsize/editor-fontsize.component.js +9 -3
- package/dist/npm/tools/format/editor-format.component.js +9 -3
- package/dist/npm/tools/history/editor-redo-button.directive.js +5 -3
- package/dist/npm/tools/history/editor-undo-button.directive.js +5 -3
- package/dist/npm/tools/image/editor-insert-image-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-indent-button.directive.js +5 -3
- package/dist/npm/tools/indentation/editor-outdent-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-create-link-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-insert-file-button.directive.js +5 -3
- package/dist/npm/tools/link/editor-unlink-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +5 -3
- package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +5 -3
- package/dist/npm/tools/print/editor-print-button.directive.js +71 -0
- package/dist/npm/tools/select-all/select-all-button.directive.js +52 -0
- package/dist/npm/tools/shared/editor-command-base.js +13 -11
- package/dist/npm/tools/shared/editor-command-button.js +3 -2
- package/dist/npm/tools/shared/editor-command-dialog.js +3 -2
- package/dist/npm/tools/source/editor-view-source-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-column-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-row-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-delete-table-button.directive.js +5 -3
- package/dist/npm/tools/tables/editor-insert-table-button.component.js +5 -8
- 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 +1 -1
|
@@ -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 };
|
|
@@ -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 AddColumnBefore 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 EditorAddColumnBeforeButtonDirective 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 AddColumnBefore 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 EditorAddColumnBeforeButtonDirective = class EditorAddColumnBeforeButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('addColumnBefore', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('addColumnBefore', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorAddColumnBeforeButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorAddColumnBeforeButtonDirective = 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
|
], EditorAddColumnBeforeButtonDirective);
|
|
36
38
|
export { EditorAddColumnBeforeButtonDirective };
|
|
@@ -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 AddRowAfter 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 EditorAddRowAfterButtonDirective 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 AddRowAfter 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 EditorAddRowAfterButtonDirective = class EditorAddRowAfterButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('addRowAfter', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('addRowAfter', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorAddRowAfterButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorAddRowAfterButtonDirective = 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
|
], EditorAddRowAfterButtonDirective);
|
|
36
38
|
export { EditorAddRowAfterButtonDirective };
|
|
@@ -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 AddRowBefore 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 EditorAddRowBeforeButtonDirective 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 AddRowBefore 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 EditorAddRowBeforeButtonDirective = class EditorAddRowBeforeButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('addRowBefore', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('addRowBefore', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorAddRowBeforeButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorAddRowBeforeButtonDirective = 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
|
], EditorAddRowBeforeButtonDirective);
|
|
36
38
|
export { EditorAddRowBeforeButtonDirective };
|
|
@@ -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 DeleteColumn 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 EditorDeleteColumnButtonDirective 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 DeleteColumn 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 EditorDeleteColumnButtonDirective = class EditorDeleteColumnButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('deleteColumn', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('deleteColumn', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorDeleteColumnButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorDeleteColumnButtonDirective = 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
|
], EditorDeleteColumnButtonDirective);
|
|
36
38
|
export { EditorDeleteColumnButtonDirective };
|
|
@@ -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 DeleteRow 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 EditorDeleteRowButtonDirective 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 DeleteRow 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 EditorDeleteRowButtonDirective = class EditorDeleteRowButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('deleteRow', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('deleteRow', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorDeleteRowButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorDeleteRowButtonDirective = 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
|
], EditorDeleteRowButtonDirective);
|
|
36
38
|
export { EditorDeleteRowButtonDirective };
|
|
@@ -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 DeleteTable 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 EditorDeleteTableButtonDirective 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 DeleteTable 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 EditorDeleteTableButtonDirective = class EditorDeleteTableButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button, editor, localization) {
|
|
24
|
-
super('deleteTable', button, editor, localization);
|
|
24
|
+
constructor(button, editor, localization, toolsService) {
|
|
25
|
+
super('deleteTable', button, editor, localization, toolsService);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
EditorDeleteTableButtonDirective = tslib_1.__decorate([
|
|
@@ -31,6 +32,7 @@ EditorDeleteTableButtonDirective = 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
|
], EditorDeleteTableButtonDirective);
|
|
36
38
|
export { EditorDeleteTableButtonDirective };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef, ElementRef,
|
|
5
|
+
import { TemplateRef, ElementRef, OnDestroy } from '@angular/core';
|
|
6
6
|
import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
|
|
7
7
|
import { PopupRef, PopupService } from '@progress/kendo-angular-popup';
|
|
8
8
|
import { EditorComponent } from '../../editor.component';
|
|
@@ -16,7 +16,7 @@ import { DialogService } from '@progress/kendo-angular-dialog';
|
|
|
16
16
|
* <kendo-editor-insert-table-button></kendo-editor-insert-table-button>
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare class EditorInsertTableButtonComponent extends ToolBarToolComponent implements
|
|
19
|
+
export declare class EditorInsertTableButtonComponent extends ToolBarToolComponent implements OnDestroy {
|
|
20
20
|
private editor;
|
|
21
21
|
private localization;
|
|
22
22
|
private popupService;
|
|
@@ -39,7 +39,6 @@ export declare class EditorInsertTableButtonComponent extends ToolBarToolCompone
|
|
|
39
39
|
private cellClicked;
|
|
40
40
|
private subs;
|
|
41
41
|
constructor(editor: EditorComponent, localization: EditorLocalizationService, popupService: PopupService, dialogService: DialogService);
|
|
42
|
-
ngAfterViewInit(): void;
|
|
43
42
|
ngOnDestroy(): void;
|
|
44
43
|
readonly outerWidth: number;
|
|
45
44
|
readonly title: string;
|
|
@@ -42,9 +42,6 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
|
|
|
42
42
|
this.toggle(false);
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
45
|
-
ngAfterViewInit() {
|
|
46
|
-
this.getButton().tabIndex = -1;
|
|
47
|
-
}
|
|
48
45
|
ngOnDestroy() {
|
|
49
46
|
this.destroyPopup();
|
|
50
47
|
if (this.subs) {
|
|
@@ -87,7 +84,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
|
|
|
87
84
|
* @hidden
|
|
88
85
|
*/
|
|
89
86
|
onBlur() {
|
|
90
|
-
this.
|
|
87
|
+
this.tabIndex = -1;
|
|
91
88
|
this.buttonBlurred.emit();
|
|
92
89
|
}
|
|
93
90
|
/**
|
|
@@ -108,8 +105,8 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
|
|
|
108
105
|
* @hidden
|
|
109
106
|
*/
|
|
110
107
|
focus() {
|
|
108
|
+
this.tabIndex = 0;
|
|
111
109
|
this.getButton().focus();
|
|
112
|
-
this.getButton().tabIndex = 0;
|
|
113
110
|
}
|
|
114
111
|
/**
|
|
115
112
|
* @hidden
|
|
@@ -118,7 +115,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
|
|
|
118
115
|
if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
|
|
119
116
|
return true;
|
|
120
117
|
}
|
|
121
|
-
this.
|
|
118
|
+
this.tabIndex = -1;
|
|
122
119
|
return false;
|
|
123
120
|
}
|
|
124
121
|
/**
|
|
@@ -161,7 +158,7 @@ tslib_1.__decorate([
|
|
|
161
158
|
tslib_1.__metadata("design:type", TemplateRef)
|
|
162
159
|
], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
163
160
|
tslib_1.__decorate([
|
|
164
|
-
ViewChild('popupTemplate', { static:
|
|
161
|
+
ViewChild('popupTemplate', { static: false }),
|
|
165
162
|
tslib_1.__metadata("design:type", TemplateRef)
|
|
166
163
|
], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
|
|
167
164
|
tslib_1.__decorate([
|
|
@@ -188,6 +185,7 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = tslib_1.
|
|
|
188
185
|
kendoButton
|
|
189
186
|
#element
|
|
190
187
|
[attr.title]="title"
|
|
188
|
+
[attr.tabindex]="tabIndex"
|
|
191
189
|
[icon]="'table-insert'"
|
|
192
190
|
[disabled]="disabled"
|
|
193
191
|
(click)="toggle()"
|
|
@@ -195,7 +193,14 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = tslib_1.
|
|
|
195
193
|
></button>
|
|
196
194
|
</ng-template>
|
|
197
195
|
<ng-template #popupTemplate>
|
|
198
|
-
<button
|
|
196
|
+
<button
|
|
197
|
+
kendoButton
|
|
198
|
+
#overflowElement
|
|
199
|
+
[attr.title]="title"
|
|
200
|
+
[attr.tabindex]="tabIndex"
|
|
201
|
+
[icon]="'table-insert'"
|
|
202
|
+
[disabled]="disabled"
|
|
203
|
+
(click)="openDialog()">
|
|
199
204
|
{{ title }}
|
|
200
205
|
</button>
|
|
201
206
|
</ng-template>
|
|
@@ -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
|
* @hidden
|
|
11
12
|
*
|
|
@@ -20,5 +21,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
23
|
export declare class EditorMergeCellsButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
24
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
24
25
|
}
|
|
@@ -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
|
*
|
|
@@ -22,8 +23,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
22
23
|
* ```
|
|
23
24
|
*/
|
|
24
25
|
let EditorMergeCellsButtonDirective = class EditorMergeCellsButtonDirective extends EditorCommandButton {
|
|
25
|
-
constructor(button, editor, localization) {
|
|
26
|
-
super('mergeCells', button, editor, localization);
|
|
26
|
+
constructor(button, editor, localization, toolsService) {
|
|
27
|
+
super('mergeCells', button, editor, localization, toolsService);
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
EditorMergeCellsButtonDirective = tslib_1.__decorate([
|
|
@@ -33,6 +34,7 @@ EditorMergeCellsButtonDirective = tslib_1.__decorate([
|
|
|
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
|
export { EditorMergeCellsButtonDirective };
|
|
@@ -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
|
* @hidden
|
|
11
12
|
*
|
|
@@ -20,5 +21,5 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
23
|
export declare class EditorSplitCellButtonDirective extends EditorCommandButton {
|
|
23
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
24
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
24
25
|
}
|
|
@@ -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
|
*
|
|
@@ -22,8 +23,8 @@ import { EditorLocalizationService } from '../../localization/editor-localizatio
|
|
|
22
23
|
* ```
|
|
23
24
|
*/
|
|
24
25
|
let EditorSplitCellButtonDirective = class EditorSplitCellButtonDirective extends EditorCommandButton {
|
|
25
|
-
constructor(button, editor, localization) {
|
|
26
|
-
super('splitCell', button, editor, localization);
|
|
26
|
+
constructor(button, editor, localization, toolsService) {
|
|
27
|
+
super('splitCell', button, editor, localization, toolsService);
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
EditorSplitCellButtonDirective = tslib_1.__decorate([
|
|
@@ -33,6 +34,7 @@ EditorSplitCellButtonDirective = tslib_1.__decorate([
|
|
|
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
|
export { EditorSplitCellButtonDirective };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { Subject } from 'rxjs';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare class EditorToolsService {
|
|
10
|
+
needsCheck: Subject<any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as tslib_1 from "tslib";
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
let EditorToolsService = class EditorToolsService {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor() {
|
|
16
|
+
this.needsCheck = new Subject();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
EditorToolsService = tslib_1.__decorate([
|
|
20
|
+
Injectable()
|
|
21
|
+
], EditorToolsService);
|
|
22
|
+
export { EditorToolsService };
|
|
@@ -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 Bold 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 EditorBoldButtonDirective 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 Bold 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 EditorBoldButtonDirective = class EditorBoldButtonDirective extends EditorCommandButton {
|
|
30
|
-
constructor(button, editor, localization) {
|
|
31
|
-
super('bold', button, editor, localization);
|
|
31
|
+
constructor(button, editor, localization, toolsService) {
|
|
32
|
+
super('bold', button, editor, localization, toolsService);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
EditorBoldButtonDirective = tslib_1.__decorate([
|
|
@@ -38,6 +39,7 @@ EditorBoldButtonDirective = 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
|
], EditorBoldButtonDirective);
|
|
43
45
|
export { EditorBoldButtonDirective };
|
|
@@ -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 Italic 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 EditorItalicButtonDirective extends EditorCommandButton {
|
|
28
|
-
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService);
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
29
30
|
}
|