@progress/kendo-angular-editor 2.5.0-dev.202111291334 → 3.0.0-dev.202201121158
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 +4 -3
- package/dist/es/config/command-icons.js +1 -0
- package/dist/es/config/commands.js +18 -17
- package/dist/es/config/schema.js +2 -4
- package/dist/es/config/table-commands.js +1 -363
- package/dist/es/editor-toolbar-state.js +12 -2
- package/dist/es/editor.component.js +100 -72
- package/dist/es/editor.module.js +4 -1
- package/dist/es/index.js +2 -0
- package/dist/es/localization/messages.js +4 -0
- package/dist/es/main.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/{es2015/config/table-nodes.d.ts → es/preventable-events/paste-event-data.js} +0 -5
- package/dist/es/preventable-events/paste-event.js +25 -0
- package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +48 -0
- package/dist/es/tools/format/editor-format-dropdownlist.component.js +1 -1
- package/dist/es/tools/format/editor-format.component.js +0 -1
- package/dist/es2015/common/commands.d.ts +1 -1
- package/dist/es2015/common/error-messages.js +4 -3
- package/dist/es2015/common/format-item.interface.d.ts +1 -1
- package/dist/es2015/common/paste-cleanup-settings.d.ts +14 -0
- package/dist/es2015/config/command-icons.js +1 -0
- package/dist/es2015/config/commands.js +18 -17
- package/dist/es2015/config/schema.d.ts +1 -1
- package/dist/es2015/config/schema.js +2 -3
- package/dist/es2015/config/table-commands.d.ts +0 -36
- package/dist/es2015/config/table-commands.js +1 -357
- package/dist/es2015/editor-toolbar-state.js +12 -2
- package/dist/es2015/editor.component.d.ts +16 -11
- package/dist/es2015/editor.component.js +102 -72
- package/dist/es2015/editor.module.js +4 -1
- package/dist/es2015/index.d.ts +2 -0
- package/dist/es2015/index.js +2 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/localization/messages.d.ts +4 -0
- package/dist/es2015/localization/messages.js +4 -0
- 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/blockquote/editor-blockquote-button.directive.d.ts +30 -0
- package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +45 -0
- package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -4
- package/dist/es2015/tools/format/editor-format.component.js +0 -1
- package/dist/fesm2015/index.js +324 -1608
- package/dist/fesm5/index.js +337 -1639
- package/dist/npm/common/error-messages.js +4 -2
- package/dist/npm/config/command-icons.js +1 -0
- package/dist/npm/config/commands.js +16 -14
- package/dist/npm/config/schema.js +2 -4
- package/dist/npm/config/table-commands.js +1 -368
- package/dist/npm/editor-toolbar-state.js +11 -1
- package/dist/npm/editor.component.js +96 -68
- package/dist/npm/editor.module.js +4 -1
- package/dist/npm/index.js +5 -0
- package/dist/npm/localization/messages.js +4 -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/blockquote/editor-blockquote-button.directive.js +50 -0
- package/dist/npm/tools/format/editor-format-dropdownlist.component.js +1 -1
- package/dist/npm/tools/format/editor-format.component.js +0 -1
- package/dist/systemjs/kendo-angular-editor.js +1 -1
- package/package.json +2 -2
- package/dist/es/config/table-nodes.js +0 -146
- package/dist/es/config/tables/CellSelection.js +0 -268
- package/dist/es/config/tables/TableMap.js +0 -333
- package/dist/es/config/tables/table-utils.js +0 -302
- package/dist/es2015/config/table-nodes.js +0 -145
- package/dist/es2015/config/tables/CellSelection.d.ts +0 -35
- package/dist/es2015/config/tables/CellSelection.js +0 -256
- package/dist/es2015/config/tables/TableMap.d.ts +0 -35
- package/dist/es2015/config/tables/TableMap.js +0 -329
- package/dist/es2015/config/tables/table-utils.d.ts +0 -77
- package/dist/es2015/config/tables/table-utils.js +0 -299
- package/dist/npm/config/table-nodes.js +0 -157
- package/dist/npm/config/tables/CellSelection.js +0 -270
- package/dist/npm/config/tables/TableMap.js +0 -338
- package/dist/npm/config/tables/table-utils.js +0 -307
|
@@ -27,6 +27,10 @@ export declare class Messages extends ComponentMessages {
|
|
|
27
27
|
* The title of the tool that changes the text background color.
|
|
28
28
|
*/
|
|
29
29
|
backColor: string;
|
|
30
|
+
/**
|
|
31
|
+
* The title of the tool that wraps an element in a blockquote.
|
|
32
|
+
*/
|
|
33
|
+
blockquote: string;
|
|
30
34
|
/**
|
|
31
35
|
* The title of the tool that makes text bold.
|
|
32
36
|
*/
|
|
@@ -30,6 +30,10 @@ tslib_1.__decorate([
|
|
|
30
30
|
Input(),
|
|
31
31
|
tslib_1.__metadata("design:type", String)
|
|
32
32
|
], Messages.prototype, "backColor", void 0);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
Input(),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], Messages.prototype, "blockquote", void 0);
|
|
33
37
|
tslib_1.__decorate([
|
|
34
38
|
Input(),
|
|
35
39
|
tslib_1.__metadata("design:type", String)
|
package/dist/es2015/main.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export { EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, De
|
|
|
9
9
|
export { PluginsFn } from './common/plugins-function';
|
|
10
10
|
export { ApplyToWordOptions } from './common/apply-to-word-options';
|
|
11
11
|
export { EditorResizableOptions } from './common/resizable-options.interface';
|
|
12
|
+
export { EditorPasteEvent } from './preventable-events/paste-event';
|
|
13
|
+
export { EditorPastedContentArgs } from './preventable-events/paste-event-data';
|
package/dist/es2015/main.js
CHANGED
|
@@ -6,3 +6,4 @@ export { EditorComponent } from './editor.component';
|
|
|
6
6
|
export { EditorModule } from './editor.module';
|
|
7
7
|
export { schema, Schema } from './config/schema';
|
|
8
8
|
export { EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes, getSelectionText } from '@progress/kendo-editor-common';
|
|
9
|
+
export { EditorPasteEvent } from './preventable-events/paste-event';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-editor',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1641988389,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* The Editor [`pastedContent`]({% slug api_editor_editorcomponent %}#toc-pastedcontent) callback argument.
|
|
7
|
+
*/
|
|
8
|
+
export declare type EditorPastedContentArgs = {
|
|
9
|
+
/**
|
|
10
|
+
* The HTML content cleaned in accordance with the [`PasteCleanupSettings`]({% slug paste_cleanup %}).
|
|
11
|
+
*/
|
|
12
|
+
cleanedHtml: string;
|
|
13
|
+
/**
|
|
14
|
+
* The raw pasted content.
|
|
15
|
+
*/
|
|
16
|
+
originalHtml: string;
|
|
17
|
+
/**
|
|
18
|
+
* The original DOM event.
|
|
19
|
+
*/
|
|
20
|
+
originalEvent: ClipboardEvent;
|
|
21
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
|
+
/**
|
|
7
|
+
* The Editor [`paste`]({% slug api_editor_editorcomponent %}#toc-paste) event.
|
|
8
|
+
*/
|
|
9
|
+
export declare class EditorPasteEvent extends PreventableEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The HTML content cleaned in accordance with the [`PasteCleanupSettings`]({% slug paste_cleanup %}).
|
|
12
|
+
*/
|
|
13
|
+
cleanedHtml: string;
|
|
14
|
+
/**
|
|
15
|
+
* The raw pasted content.
|
|
16
|
+
*/
|
|
17
|
+
originalHtml: string;
|
|
18
|
+
/**
|
|
19
|
+
* The original DOM event.
|
|
20
|
+
*/
|
|
21
|
+
originalEvent: ClipboardEvent;
|
|
22
|
+
/**
|
|
23
|
+
* Constructs the event arguments for the `paste` event.
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
constructor(cleanedHtml: string, originalHtml: string, originalEvent: ClipboardEvent);
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
|
+
/**
|
|
7
|
+
* The Editor [`paste`]({% slug api_editor_editorcomponent %}#toc-paste) event.
|
|
8
|
+
*/
|
|
9
|
+
export class EditorPasteEvent extends PreventableEvent {
|
|
10
|
+
/**
|
|
11
|
+
* Constructs the event arguments for the `paste` event.
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(cleanedHtml, originalHtml, originalEvent) {
|
|
15
|
+
super();
|
|
16
|
+
this.cleanedHtml = cleanedHtml;
|
|
17
|
+
this.originalHtml = originalHtml;
|
|
18
|
+
this.originalEvent = originalEvent;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
6
|
+
import { EditorComponent } from '../../editor.component';
|
|
7
|
+
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
8
|
+
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
9
|
+
import { EditorToolsService } from '../tools.service';
|
|
10
|
+
/**
|
|
11
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Blockquote tool
|
|
12
|
+
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
13
|
+
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts-no-run
|
|
17
|
+
* <kendo-toolbar-button kendoEditorBlockquoteButton></kendo-toolbar-button>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts-no-run
|
|
24
|
+
* <kendo-toolbar-button kendoEditorBlockquoteButton icon="blogger"></kendo-toolbar-button>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class EditorBlockquoteDirective extends EditorCommandButton {
|
|
28
|
+
protected editor: EditorComponent;
|
|
29
|
+
constructor(button: ToolBarButtonComponent, editor: EditorComponent, localization: EditorLocalizationService, toolsService: EditorToolsService);
|
|
30
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { Directive, Host } from '@angular/core';
|
|
7
|
+
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
+
import { EditorComponent } from '../../editor.component';
|
|
9
|
+
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
+
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
+
import { EditorToolsService } from '../tools.service';
|
|
12
|
+
/**
|
|
13
|
+
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Blockquote tool
|
|
14
|
+
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
+
* The directive will predefine the `icon` and `click` event handlers of the button.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts-no-run
|
|
19
|
+
* <kendo-toolbar-button kendoEditorBlockquoteButton></kendo-toolbar-button>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* The following example demonstrates how to change the default icon that is applied by the directive.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts-no-run
|
|
26
|
+
* <kendo-toolbar-button kendoEditorBlockquoteButton icon="blogger"></kendo-toolbar-button>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
let EditorBlockquoteDirective = class EditorBlockquoteDirective extends EditorCommandButton {
|
|
30
|
+
constructor(button, editor, localization, toolsService) {
|
|
31
|
+
super('blockquote', button, editor, localization, toolsService);
|
|
32
|
+
this.editor = editor;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
EditorBlockquoteDirective = tslib_1.__decorate([
|
|
36
|
+
Directive({
|
|
37
|
+
selector: 'kendo-toolbar-button[kendoEditorBlockquoteButton]'
|
|
38
|
+
}),
|
|
39
|
+
tslib_1.__param(1, Host()),
|
|
40
|
+
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
+
EditorComponent,
|
|
42
|
+
EditorLocalizationService,
|
|
43
|
+
EditorToolsService])
|
|
44
|
+
], EditorBlockquoteDirective);
|
|
45
|
+
export { EditorBlockquoteDirective };
|
|
@@ -112,10 +112,6 @@ FormatDropDownListComponent = tslib_1.__decorate([
|
|
|
112
112
|
{{ dataItem.text }}
|
|
113
113
|
</span>
|
|
114
114
|
|
|
115
|
-
<span *ngSwitchCase="'blockquote'" style="display: block; margin-left: 0;">
|
|
116
|
-
{{ dataItem.text }}
|
|
117
|
-
</span>
|
|
118
|
-
|
|
119
115
|
<span *ngSwitchDefault>{{ dataItem.text }}</span>
|
|
120
116
|
</ng-container>
|
|
121
117
|
</ng-template>
|
|
@@ -39,7 +39,6 @@ let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponen
|
|
|
39
39
|
this.valueChange = new EventEmitter();
|
|
40
40
|
this._data = [
|
|
41
41
|
{ text: 'Paragraph', tag: 'p' },
|
|
42
|
-
{ text: 'Quotation', tag: 'blockquote' },
|
|
43
42
|
{ text: 'Heading 1', tag: 'h1' },
|
|
44
43
|
{ text: 'Heading 2', tag: 'h2' },
|
|
45
44
|
{ text: 'Heading 3', tag: 'h3' },
|