@progress/kendo-angular-editor 3.0.0-dev.202201121058 → 3.0.1-dev.202201201312

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.
Files changed (73) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-editor.js +2 -2
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/common/error-messages.js +1 -1
  7. package/dist/es/config/command-icons.js +1 -0
  8. package/dist/es/config/commands.js +16 -15
  9. package/dist/es/config/schema.js +1 -2
  10. package/dist/es/dialogs/colorpicker-dialog.component.js +1 -1
  11. package/dist/es/dialogs/file-link-dialog.component.js +1 -1
  12. package/dist/es/dialogs/image-dialog.component.js +1 -1
  13. package/dist/es/editor-toolbar-state.js +12 -2
  14. package/dist/es/editor.component.js +5 -5
  15. package/dist/es/editor.module.js +6 -3
  16. package/dist/es/index.js +2 -0
  17. package/dist/es/localization/messages.js +4 -0
  18. package/dist/es/package-metadata.js +1 -1
  19. package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +48 -0
  20. package/dist/es/tools/colorpicker/editor-colorpicker.component.js +24 -7
  21. package/dist/es/tools/format/editor-format-dropdownlist.component.js +1 -1
  22. package/dist/es/tools/format/editor-format.component.js +0 -1
  23. package/dist/es/tools/tables/popup-table-grid.component.js +1 -1
  24. package/dist/es2015/common/commands.d.ts +1 -1
  25. package/dist/es2015/common/error-messages.js +1 -1
  26. package/dist/es2015/common/format-item.interface.d.ts +1 -1
  27. package/dist/es2015/config/command-icons.js +1 -0
  28. package/dist/es2015/config/commands.js +16 -15
  29. package/dist/es2015/config/schema.d.ts +1 -1
  30. package/dist/es2015/config/schema.js +1 -1
  31. package/dist/es2015/dialogs/colorpicker-dialog.component.js +1 -1
  32. package/dist/es2015/dialogs/file-link-dialog.component.js +4 -4
  33. package/dist/es2015/dialogs/image-dialog.component.js +4 -4
  34. package/dist/es2015/editor-toolbar-state.js +12 -2
  35. package/dist/es2015/editor.component.d.ts +1 -1
  36. package/dist/es2015/editor.component.js +6 -4
  37. package/dist/es2015/editor.module.js +6 -3
  38. package/dist/es2015/index.d.ts +2 -0
  39. package/dist/es2015/index.js +2 -0
  40. package/dist/es2015/index.metadata.json +1 -1
  41. package/dist/es2015/localization/messages.d.ts +4 -0
  42. package/dist/es2015/localization/messages.js +4 -0
  43. package/dist/es2015/package-metadata.js +1 -1
  44. package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.d.ts +30 -0
  45. package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +45 -0
  46. package/dist/es2015/tools/colorpicker/editor-colorpicker.component.d.ts +8 -2
  47. package/dist/es2015/tools/colorpicker/editor-colorpicker.component.js +20 -7
  48. package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -4
  49. package/dist/es2015/tools/format/editor-format.component.js +0 -1
  50. package/dist/es2015/tools/tables/popup-table-grid.component.js +2 -2
  51. package/dist/fesm2015/index.js +111 -48
  52. package/dist/fesm5/index.js +111 -39
  53. package/dist/npm/common/error-messages.js +1 -1
  54. package/dist/npm/config/command-icons.js +1 -0
  55. package/dist/npm/config/commands.js +16 -14
  56. package/dist/npm/config/schema.js +1 -2
  57. package/dist/npm/dialogs/colorpicker-dialog.component.js +1 -1
  58. package/dist/npm/dialogs/file-link-dialog.component.js +1 -1
  59. package/dist/npm/dialogs/image-dialog.component.js +1 -1
  60. package/dist/npm/editor-toolbar-state.js +11 -1
  61. package/dist/npm/editor.component.js +5 -5
  62. package/dist/npm/editor.module.js +7 -4
  63. package/dist/npm/index.js +5 -0
  64. package/dist/npm/localization/messages.js +4 -0
  65. package/dist/npm/package-metadata.js +1 -1
  66. package/dist/npm/tools/blockquote/editor-blockquote-button.directive.js +50 -0
  67. package/dist/npm/tools/colorpicker/editor-colorpicker.component.js +24 -7
  68. package/dist/npm/tools/format/editor-format-dropdownlist.component.js +1 -1
  69. package/dist/npm/tools/format/editor-format.component.js +0 -1
  70. package/dist/npm/tools/tables/popup-table-grid.component.js +1 -1
  71. package/dist/systemjs/kendo-angular-editor.js +1 -1
  72. package/package.json +18 -18
  73. package/schematics/ngAdd/index.js +1 -1
@@ -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)
@@ -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: 1641984793,
12
+ publishDate: 1642684027,
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,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 };
@@ -40,9 +40,15 @@ export declare class EditorColorPickerComponent extends ToolBarToolComponent {
40
40
  */
41
41
  disabled: boolean;
42
42
  /**
43
- * Specifies whether the ColorPicker will render a gradient, palette or combo view.
43
+ * Specifies whether the ColorPicker will render a gradient, palette, or both in its popup.
44
44
  *
45
- * @default 'palette'
45
+ * @default ['palette']
46
+ */
47
+ views: ColorPickerView[];
48
+ /**
49
+ * @hidden
50
+ *
51
+ * For backward compatibility with configurations using the deprecated "view" input.
46
52
  */
47
53
  view: ColorPickerView;
48
54
  /**
@@ -32,11 +32,19 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
32
32
  */
33
33
  this.disabled = false;
34
34
  /**
35
- * Specifies whether the ColorPicker will render a gradient, palette or combo view.
35
+ * Specifies whether the ColorPicker will render a gradient, palette, or both in its popup.
36
36
  *
37
- * @default 'palette'
37
+ * @default ['palette']
38
38
  */
39
- this.view = 'palette';
39
+ this.views = ['palette'];
40
+ }
41
+ /**
42
+ * @hidden
43
+ *
44
+ * For backward compatibility with configurations using the deprecated "view" input.
45
+ */
46
+ set view(view) {
47
+ this.views = [view];
40
48
  }
41
49
  /**
42
50
  * @hidden
@@ -108,7 +116,7 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
108
116
  editorCommand: this.editorCommand,
109
117
  paletteSettings: this.paletteSettings,
110
118
  icon: this.icon,
111
- view: this.view
119
+ views: this.views
112
120
  });
113
121
  }
114
122
  /**
@@ -159,8 +167,13 @@ tslib_1.__decorate([
159
167
  ], EditorColorPickerComponent.prototype, "disabled", void 0);
160
168
  tslib_1.__decorate([
161
169
  Input(),
162
- tslib_1.__metadata("design:type", String)
163
- ], EditorColorPickerComponent.prototype, "view", void 0);
170
+ tslib_1.__metadata("design:type", Array)
171
+ ], EditorColorPickerComponent.prototype, "views", void 0);
172
+ tslib_1.__decorate([
173
+ Input(),
174
+ tslib_1.__metadata("design:type", String),
175
+ tslib_1.__metadata("design:paramtypes", [String])
176
+ ], EditorColorPickerComponent.prototype, "view", null);
164
177
  tslib_1.__decorate([
165
178
  ViewChild('toolbarTemplate', { static: true }),
166
179
  tslib_1.__metadata("design:type", TemplateRef)
@@ -189,7 +202,7 @@ EditorColorPickerComponent = EditorColorPickerComponent_1 = tslib_1.__decorate([
189
202
  <ng-template #toolbarTemplate>
190
203
  <kendo-colorpicker
191
204
  #colorpicker
192
- [view]="view"
205
+ [views]="['palette']"
193
206
  [format]="'hex'"
194
207
  [attr.title]="title"
195
208
  [icon]="icon"
@@ -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' },
@@ -61,8 +61,8 @@ PopupTableGridComponent = tslib_1.__decorate([
61
61
  <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">
62
62
  <span *ngFor="let i of cells"
63
63
  class="k-ct-cell"
64
- [class.k-state-selected]="selected(i)"
65
- [class.k-state-disabled]="!selected(i)"
64
+ [class.k-selected]="selected(i)"
65
+ [class.k-disabled]="!selected(i)"
66
66
  (mouseenter)="setState(i)">
67
67
  </span>
68
68
  </div>
@@ -10,14 +10,14 @@ import { take, map, filter, concatMap, takeUntil } from 'rxjs/operators';
10
10
  import { ToolBarComponent, ToolBarToolComponent, ToolBarButtonComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
11
11
  import { DialogContentBase, DialogRef, DialogService, DialogModule } from '@progress/kendo-angular-dialog';
12
12
  import { isDocumentAvailable, guid, PreventableEvent, hasObservers, KendoInput, Keys } from '@progress/kendo-angular-common';
13
- import { nodes, Schema, marks, createTable, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, getActiveMarks, expandSelection, getNodeFromSelection, getMark, getSelectionText, pasteCleanup, parseContent, AllSelection, TextSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableEditing, placeholder, EditorState, EditorView, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
13
+ import { nodes, Schema, marks, createTable, insertNode, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignBlocks, alignRemoveRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getNodeFromSelection, getMark, getSelectionText, pasteCleanup, parseContent, AllSelection, TextSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableEditing, placeholder, EditorState, EditorView, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr } from '@progress/kendo-editor-common';
14
14
  export { Schema, 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';
15
15
  import { validatePackage } from '@progress/kendo-licensing';
16
16
  import { LocalizationService, L10N_PREFIX, RTL, MessageService, ComponentMessages } from '@progress/kendo-angular-l10n';
17
17
  import { CommonModule } from '@angular/common';
18
18
  import { DropDownListComponent, DropDownsModule } from '@progress/kendo-angular-dropdowns';
19
19
  import { ButtonModule } from '@progress/kendo-angular-buttons';
20
- import { ColorPickerComponent, ColorPickerModule, NumericTextBoxModule, TextBoxModule } from '@progress/kendo-angular-inputs';
20
+ import { ColorPickerComponent, ColorPickerModule, NumericTextBoxModule, CheckBoxModule, TextBoxModule } from '@progress/kendo-angular-inputs';
21
21
  import { PopupService } from '@progress/kendo-angular-popup';
22
22
 
23
23
  /**
@@ -27,7 +27,7 @@ const packageMetadata = {
27
27
  name: '@progress/kendo-angular-editor',
28
28
  productName: 'Kendo UI for Angular',
29
29
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
30
- publishDate: 1641984793,
30
+ publishDate: 1642684027,
31
31
  version: '',
32
32
  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'
33
33
  };
@@ -116,7 +116,7 @@ const nodes$1 = Object.assign(nodes, semanticNodes);
116
116
  */
117
117
  const schema = new Schema({
118
118
  marks: marks$1,
119
- nodes: Object.assign({}, nodes$1, { blockquote: Object.assign({}, nodes$1.blockquote, { content: 'inline*' }) })
119
+ nodes: nodes$1
120
120
  });
121
121
 
122
122
  /**
@@ -149,7 +149,7 @@ const inlineCommand = {
149
149
  backColor: ɵ15,
150
150
  selectAll: ɵ16
151
151
  };
152
- const ɵ17 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ20 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ21 = formatAttr => formatBlockElements(formatAttr.tag), ɵ22 = () => getHtml, ɵ23 = () => indent, ɵ24 = attrs => insertImage(attrs), ɵ25 = () => toggleOrderedList, ɵ26 = () => toggleUnorderedList, ɵ27 = () => outdent, ɵ28 = () => redo, ɵ29 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ30 = () => undo;
152
+ const ɵ17 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ20 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ21 = formatAttr => formatBlockElements(formatAttr.tag), ɵ22 = () => getHtml, ɵ23 = () => indent, ɵ24 = attrs => insertImage(attrs), ɵ25 = () => toggleOrderedList, ɵ26 = () => toggleUnorderedList, ɵ27 = () => outdent, ɵ28 = () => redo, ɵ29 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ30 = () => undo, ɵ31 = () => blockquote;
153
153
  const blockCommand = {
154
154
  alignCenter: ɵ17,
155
155
  alignJustify: ɵ18,
@@ -166,20 +166,21 @@ const blockCommand = {
166
166
  outdent: ɵ27,
167
167
  redo: ɵ28,
168
168
  setHTML: ɵ29,
169
- undo: ɵ30
169
+ undo: ɵ30,
170
+ blockquote: ɵ31
170
171
  };
171
- const ɵ31 = attr => insertTable(attr), ɵ32 = () => addColumnBefore, ɵ33 = () => addColumnAfter, ɵ34 = () => addRowBefore, ɵ35 = () => addRowAfter, ɵ36 = () => deleteRow, ɵ37 = () => deleteColumn, ɵ38 = () => mergeCells, ɵ39 = () => splitCell, ɵ40 = () => deleteTable;
172
+ const ɵ32 = attr => insertTable(attr), ɵ33 = () => addColumnBefore, ɵ34 = () => addColumnAfter, ɵ35 = () => addRowBefore, ɵ36 = () => addRowAfter, ɵ37 = () => deleteRow, ɵ38 = () => deleteColumn, ɵ39 = () => mergeCells, ɵ40 = () => splitCell, ɵ41 = () => deleteTable;
172
173
  const tableCommand = {
173
- insertTable: ɵ31,
174
- addColumnBefore: ɵ32,
175
- addColumnAfter: ɵ33,
176
- addRowBefore: ɵ34,
177
- addRowAfter: ɵ35,
178
- deleteRow: ɵ36,
179
- deleteColumn: ɵ37,
180
- mergeCells: ɵ38,
181
- splitCell: ɵ39,
182
- deleteTable: ɵ40
174
+ insertTable: ɵ32,
175
+ addColumnBefore: ɵ33,
176
+ addColumnAfter: ɵ34,
177
+ addRowBefore: ɵ35,
178
+ addRowAfter: ɵ36,
179
+ deleteRow: ɵ37,
180
+ deleteColumn: ɵ38,
181
+ mergeCells: ɵ39,
182
+ splitCell: ɵ40,
183
+ deleteTable: ɵ41
183
184
  };
184
185
  /**
185
186
  * @hidden
@@ -218,6 +219,10 @@ const getToolbarState = (state, options) => ({
218
219
  selected: activeNode(state),
219
220
  disabled: false
220
221
  },
222
+ blockquote: {
223
+ selected: false,
224
+ disabled: !blockquote(state)
225
+ },
221
226
  indent: {
222
227
  selected: false,
223
228
  disabled: !(canIndentAsListItem(state, state.schema.nodes.list_item) || canBeIndented(state, indentRules))
@@ -240,7 +245,11 @@ const getToolbarState = (state, options) => ({
240
245
  },
241
246
  outdent: {
242
247
  selected: false,
243
- disabled: !(canOutdentAsListItem(state, outdentRules) || canBeIndented(state, outdentRules))
248
+ get disabled() {
249
+ return !(hasNode(state, state.schema.nodes.blockquote) ||
250
+ canOutdentAsListItem(state, outdentRules) ||
251
+ isIndented(state, outdentRules.nodes));
252
+ }
244
253
  },
245
254
  redo: {
246
255
  selected: false,
@@ -366,6 +375,7 @@ const initialToolBarState = {
366
375
  format: { selected: { text: 'Format', tag: null }, disabled: false },
367
376
  style: { selected: { marks: [], hasNodesWithoutMarks: false }, disabled: false },
368
377
  cleanFormatting: { selected: false, disabled: true },
378
+ blockquote: { selected: false, disabled: false },
369
379
  //indent
370
380
  indent: { selected: false, disabled: false },
371
381
  outdent: { selected: false, disabled: false },
@@ -418,6 +428,7 @@ const disabledToolBarState = {
418
428
  format: { selected: { text: 'Format', tag: null }, disabled: true },
419
429
  style: { selected: { marks: [], hasNodesWithoutMarks: false }, disabled: true },
420
430
  cleanFormatting: { selected: false, disabled: true },
431
+ blockquote: { selected: false, disabled: true },
421
432
  //indent
422
433
  indent: { selected: false, disabled: true },
423
434
  outdent: { selected: false, disabled: true },
@@ -729,25 +740,25 @@ ImageDialogComponent = __decorate([
729
740
  <label [for]="srcInputId">{{ textFor('imageWebAddress') }}</label>
730
741
  </div>
731
742
  <div class="k-edit-field">
732
- <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox" />
743
+ <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox k-input k-rounded-md" />
733
744
  </div>
734
745
  <div class="k-edit-label">
735
746
  <label [for]="altTextInputId">{{ textFor('imageAltText') }}</label>
736
747
  </div>
737
748
  <div class="k-edit-field">
738
- <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox" />
749
+ <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox k-input k-rounded-md" />
739
750
  </div>
740
751
  <div class="k-edit-label">
741
752
  <label [for]="widthInputId">{{ textFor('imageWidth') }}</label>
742
753
  </div>
743
754
  <div class="k-edit-field">
744
- <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox" />
755
+ <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox k-input k-rounded-md" />
745
756
  </div>
746
757
  <div class="k-edit-label">
747
758
  <label [for]="heightInputId">{{ textFor('imageHeight') }}</label>
748
759
  </div>
749
760
  <div class="k-edit-field">
750
- <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox" />
761
+ <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox k-input k-rounded-md" />
751
762
  </div>
752
763
  </div>
753
764
  </div>
@@ -877,26 +888,26 @@ FileLinkDialogComponent = __decorate([
877
888
  <label (click)="hrefInput.focus()">{{ textForWithPrefix('WebAddress') }}</label>
878
889
  </div>
879
890
  <div class="k-edit-field">
880
- <input #hrefInput formControlName="href" type="text" class="k-textbox" />
891
+ <input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />
881
892
  </div>
882
893
 
883
894
  <div class="k-edit-label">
884
895
  <label (click)="textInput.focus()">{{ textForWithPrefix('Text') }}</label>
885
896
  </div>
886
897
  <div class="k-edit-field">
887
- <input #textInput formControlName="text" type="text" class="k-textbox" />
898
+ <input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
888
899
  </div>
889
900
 
890
901
  <div class="k-edit-label">
891
902
  <label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
892
903
  </div>
893
904
  <div class="k-edit-field">
894
- <input #titleInput formControlName="title" type="text" class="k-textbox" />
905
+ <input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
895
906
  </div>
896
907
  <ng-container *ngIf="command === 'createLink'">
897
908
  <div class="k-edit-label"></div>
898
909
  <div class="k-edit-field">
899
- <input type="checkbox" id="k-target-blank" class="k-checkbox" formControlName="target" />
910
+ <input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
900
911
  <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
901
912
  </div>
902
913
  </ng-container>
@@ -1167,7 +1178,7 @@ const EditorErrorMessages = {
1167
1178
  pluginsCallbackType: ɵ0$2,
1168
1179
  pastedContentCallbackType: ɵ1$2,
1169
1180
  setPluginsOnce: 'The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/',
1170
- setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/placeholder/',
1181
+ setPlaceHolderOnce: 'The placeholder cannot be changed dynamically. See https://www.telerik.com/kendo-angular-ui/components/editor/plugins/#toc-custom-plugins/',
1171
1182
  printTool: 'The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/'
1172
1183
  };
1173
1184
 
@@ -1596,7 +1607,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
1596
1607
  * @param {any} attr - Optional parameters for the command. Apart from the following list,
1597
1608
  * the parameters do not expect specific attributes when you call them:
1598
1609
  * - `format` - Accepts an object with the `tag` property.
1599
- * The supported tags are `p`, `blockquote`, and any of the `h1` to `h6` heading tags.
1610
+ * The supported tags are `p` and any of the `h1` to `h6` heading tags.
1600
1611
  * - `createLink` - Accepts an object with the `href`, `title`, and `target` properties. The `href` property is mandatory.
1601
1612
  * - `setHTML` - Accepts a `string` parameter.
1602
1613
  * - `insertTable` - Accepts an object with the `rows` and `cols` properties. The number values are zero based.
@@ -1852,7 +1863,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
1852
1863
  this.subs.add(fromEvent(containerElement, 'focusin')
1853
1864
  .subscribe(() => {
1854
1865
  if (this.readonly) {
1855
- contentAreaClasslist.add('k-state-focused');
1866
+ contentAreaClasslist.add('k-focus');
1856
1867
  }
1857
1868
  if (!this.focusChangedProgrammatically || this.shouldEmitFocus) {
1858
1869
  this.ngZone.run(() => this.onFocus.emit());
@@ -1862,7 +1873,7 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
1862
1873
  this.subs.add(fromEvent(containerElement, 'focusout')
1863
1874
  .subscribe(() => {
1864
1875
  if (this.readonly) {
1865
- contentAreaClasslist.remove('k-state-focused');
1876
+ contentAreaClasslist.remove('k-focus');
1866
1877
  }
1867
1878
  if (!this.focusChangedProgrammatically) {
1868
1879
  this.ngZone.run(() => this.onBlur.emit());
@@ -2008,7 +2019,7 @@ __decorate([
2008
2019
  __metadata("design:paramtypes", [])
2009
2020
  ], EditorComponent.prototype, "resizableClass", null);
2010
2021
  __decorate([
2011
- HostBinding('class.k-state-disabled'),
2022
+ HostBinding('class.k-disabled'),
2012
2023
  __metadata("design:type", Boolean),
2013
2024
  __metadata("design:paramtypes", [])
2014
2025
  ], EditorComponent.prototype, "isDisabled", null);
@@ -2114,6 +2125,8 @@ EditorComponent = EditorComponent_1 = __decorate([
2114
2125
  alignRight="Align text right"
2115
2126
  i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."
2116
2127
  backColor="Background color"
2128
+ i18n-blockquote="kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote"
2129
+ blockquote="Quotation"
2117
2130
  i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."
2118
2131
  bold="Bold"
2119
2132
  i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."
@@ -2379,10 +2392,6 @@ FormatDropDownListComponent = __decorate([
2379
2392
  {{ dataItem.text }}
2380
2393
  </span>
2381
2394
 
2382
- <span *ngSwitchCase="'blockquote'" style="display: block; margin-left: 0;">
2383
- {{ dataItem.text }}
2384
- </span>
2385
-
2386
2395
  <span *ngSwitchDefault>{{ dataItem.text }}</span>
2387
2396
  </ng-container>
2388
2397
  </ng-template>
@@ -2523,7 +2532,7 @@ ColorPickerDialogComponent = __decorate([
2523
2532
  <div class="k-edit-form-container k-window-content" style="text-align: center;">
2524
2533
  <kendo-colorpicker
2525
2534
  #colorpicker
2526
- [view]="view"
2535
+ [views]="['palette']"
2527
2536
  [format]="'hex'"
2528
2537
  [attr.title]="title"
2529
2538
  [icon]="icon"
@@ -2785,7 +2794,6 @@ let EditorFormatComponent = EditorFormatComponent_1 = class EditorFormatComponen
2785
2794
  this.valueChange = new EventEmitter();
2786
2795
  this._data = [
2787
2796
  { text: 'Paragraph', tag: 'p' },
2788
- { text: 'Quotation', tag: 'blockquote' },
2789
2797
  { text: 'Heading 1', tag: 'h1' },
2790
2798
  { text: 'Heading 2', tag: 'h2' },
2791
2799
  { text: 'Heading 3', tag: 'h3' },
@@ -3551,11 +3559,19 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
3551
3559
  */
3552
3560
  this.disabled = false;
3553
3561
  /**
3554
- * Specifies whether the ColorPicker will render a gradient, palette or combo view.
3562
+ * Specifies whether the ColorPicker will render a gradient, palette, or both in its popup.
3555
3563
  *
3556
- * @default 'palette'
3564
+ * @default ['palette']
3557
3565
  */
3558
- this.view = 'palette';
3566
+ this.views = ['palette'];
3567
+ }
3568
+ /**
3569
+ * @hidden
3570
+ *
3571
+ * For backward compatibility with configurations using the deprecated "view" input.
3572
+ */
3573
+ set view(view) {
3574
+ this.views = [view];
3559
3575
  }
3560
3576
  /**
3561
3577
  * @hidden
@@ -3627,7 +3643,7 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
3627
3643
  editorCommand: this.editorCommand,
3628
3644
  paletteSettings: this.paletteSettings,
3629
3645
  icon: this.icon,
3630
- view: this.view
3646
+ views: this.views
3631
3647
  });
3632
3648
  }
3633
3649
  /**
@@ -3678,8 +3694,13 @@ __decorate([
3678
3694
  ], EditorColorPickerComponent.prototype, "disabled", void 0);
3679
3695
  __decorate([
3680
3696
  Input(),
3681
- __metadata("design:type", String)
3682
- ], EditorColorPickerComponent.prototype, "view", void 0);
3697
+ __metadata("design:type", Array)
3698
+ ], EditorColorPickerComponent.prototype, "views", void 0);
3699
+ __decorate([
3700
+ Input(),
3701
+ __metadata("design:type", String),
3702
+ __metadata("design:paramtypes", [String])
3703
+ ], EditorColorPickerComponent.prototype, "view", null);
3683
3704
  __decorate([
3684
3705
  ViewChild('toolbarTemplate', { static: true }),
3685
3706
  __metadata("design:type", TemplateRef)
@@ -3708,7 +3729,7 @@ EditorColorPickerComponent = EditorColorPickerComponent_1 = __decorate([
3708
3729
  <ng-template #toolbarTemplate>
3709
3730
  <kendo-colorpicker
3710
3731
  #colorpicker
3711
- [view]="view"
3732
+ [views]="['palette']"
3712
3733
  [format]="'hex'"
3713
3734
  [attr.title]="title"
3714
3735
  [icon]="icon"
@@ -4007,8 +4028,8 @@ PopupTableGridComponent = __decorate([
4007
4028
  <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">
4008
4029
  <span *ngFor="let i of cells"
4009
4030
  class="k-ct-cell"
4010
- [class.k-state-selected]="selected(i)"
4011
- [class.k-state-disabled]="!selected(i)"
4031
+ [class.k-selected]="selected(i)"
4032
+ [class.k-disabled]="!selected(i)"
4012
4033
  (mouseenter)="setState(i)">
4013
4034
  </span>
4014
4035
  </div>
@@ -4031,6 +4052,7 @@ const commandIcons = {
4031
4052
  alignLeft: 'align-left',
4032
4053
  alignRight: 'align-right',
4033
4054
  backColor: 'background',
4055
+ blockquote: 'blockquote',
4034
4056
  bold: 'bold',
4035
4057
  cleanFormatting: 'clear-css',
4036
4058
  createLink: 'link-horizontal',
@@ -4269,6 +4291,40 @@ EditorAlignJustifyButtonDirective = __decorate([
4269
4291
  EditorToolsService])
4270
4292
  ], EditorAlignJustifyButtonDirective);
4271
4293
 
4294
+ /**
4295
+ * A directive which configures an existing `ToolBarButtonComponent` as an Editor Blockquote tool
4296
+ * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
4297
+ * The directive will predefine the `icon` and `click` event handlers of the button.
4298
+ *
4299
+ * @example
4300
+ * ```ts-no-run
4301
+ * <kendo-toolbar-button kendoEditorBlockquoteButton></kendo-toolbar-button>
4302
+ * ```
4303
+ *
4304
+ * The following example demonstrates how to change the default icon that is applied by the directive.
4305
+ *
4306
+ * @example
4307
+ * ```ts-no-run
4308
+ * <kendo-toolbar-button kendoEditorBlockquoteButton icon="blogger"></kendo-toolbar-button>
4309
+ * ```
4310
+ */
4311
+ let EditorBlockquoteDirective = class EditorBlockquoteDirective extends EditorCommandButton {
4312
+ constructor(button, editor, localization, toolsService) {
4313
+ super('blockquote', button, editor, localization, toolsService);
4314
+ this.editor = editor;
4315
+ }
4316
+ };
4317
+ EditorBlockquoteDirective = __decorate([
4318
+ Directive({
4319
+ selector: 'kendo-toolbar-button[kendoEditorBlockquoteButton]'
4320
+ }),
4321
+ __param(1, Host()),
4322
+ __metadata("design:paramtypes", [ToolBarButtonComponent,
4323
+ EditorComponent,
4324
+ EditorLocalizationService,
4325
+ EditorToolsService])
4326
+ ], EditorBlockquoteDirective);
4327
+
4272
4328
  /**
4273
4329
  * A directive which configures an existing `ToolBarButtonComponent` as an Editor Redo tool
4274
4330
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -5201,6 +5257,10 @@ __decorate([
5201
5257
  Input(),
5202
5258
  __metadata("design:type", String)
5203
5259
  ], Messages.prototype, "backColor", void 0);
5260
+ __decorate([
5261
+ Input(),
5262
+ __metadata("design:type", String)
5263
+ ], Messages.prototype, "blockquote", void 0);
5204
5264
  __decorate([
5205
5265
  Input(),
5206
5266
  __metadata("design:type", String)
@@ -5615,7 +5675,9 @@ const COMPONENT_DIRECTIVES = [
5615
5675
  // print
5616
5676
  EditorPrintDirective,
5617
5677
  // select all
5618
- EditorSelectAllButtonDirective
5678
+ EditorSelectAllButtonDirective,
5679
+ // blockquote
5680
+ EditorBlockquoteDirective
5619
5681
  ];
5620
5682
  const TOOLBAR_TOOLS = [
5621
5683
  EditorFontSizeComponent,
@@ -5719,6 +5781,7 @@ EditorModule = __decorate([
5719
5781
  DialogModule,
5720
5782
  DropDownsModule,
5721
5783
  NumericTextBoxModule,
5784
+ CheckBoxModule,
5722
5785
  ToolBarModule,
5723
5786
  TextBoxModule
5724
5787
  ]
@@ -5729,4 +5792,4 @@ EditorModule = __decorate([
5729
5792
  * Generated bundle index. Do not edit.
5730
5793
  */
5731
5794
 
5732
- export { ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorToolsService, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema, EditorPasteEvent };
5795
+ export { semanticNodes, semanticTagNames, ColorPickerDialogComponent, FileLinkDialogComponent, FontFamilyDialogComponent, FontSizeDialogComponent, FormatDialogComponent, ImageDialogComponent, InsertTableDialogComponent, SourceDialogComponent, CustomMessagesComponent, EditorLocalizationService, LocalizedMessagesDirective, Messages, EditorAlignCenterButtonDirective, EditorAlignJustifyButtonDirective, EditorAlignLeftButtonDirective, EditorAlignRightButtonDirective, EditorBlockquoteDirective, EditorBackColorDirective, EditorColorPickerComponent, EditorForeColorDirective, EditorCleanFormattingButtonDirective, FontFamilyDropDownListComponent, EditorFontFamilyComponent, FontSizeDropDownListComponent, EditorFontSizeComponent, FormatDropDownListComponent, EditorFormatComponent, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorInsertFileButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorPrintDirective, EditorSelectAllButtonDirective, DropDownToolDirective, EditorCommandBase, EditorCommandButton, EditorCommandDialog, EditorViewSourceButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, PopupTableGridComponent, EditorToolsService, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorUnderlineButtonDirective, EditorComponent, EditorModule, schema, EditorPasteEvent };