@progress/kendo-angular-editor 11.0.0-develop.112 → 11.0.0-develop.114

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 (28) hide show
  1. package/config/command-icons.d.ts +4 -0
  2. package/dialogs/colorpicker-dialog.component.d.ts +2 -0
  3. package/editor.module.d.ts +4 -3
  4. package/esm2020/config/command-icons.mjs +45 -0
  5. package/esm2020/dialogs/colorpicker-dialog.component.mjs +3 -0
  6. package/esm2020/editor.module.mjs +4 -0
  7. package/esm2020/package-metadata.mjs +2 -2
  8. package/esm2020/tools/colorpicker/editor-back-color.directive.mjs +2 -1
  9. package/esm2020/tools/colorpicker/editor-colorpicker.component.mjs +20 -11
  10. package/esm2020/tools/colorpicker/editor-fore-color.directive.mjs +2 -1
  11. package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +8 -4
  12. package/esm2020/tools/fontsize/editor-fontsize.component.mjs +7 -4
  13. package/esm2020/tools/format/editor-format.component.mjs +7 -4
  14. package/esm2020/tools/shared/editor-command-base.mjs +20 -13
  15. package/esm2020/tools/tables/editor-insert-table-button.component.mjs +10 -5
  16. package/esm2020/tools/tables/popup-table-grid.component.mjs +4 -2
  17. package/esm2020/tools/tools.service.mjs +5 -4
  18. package/fesm2015/progress-kendo-angular-editor.mjs +120 -42
  19. package/fesm2020/progress-kendo-angular-editor.mjs +120 -42
  20. package/package.json +13 -12
  21. package/schematics/ngAdd/index.js +5 -3
  22. package/tools/colorpicker/editor-colorpicker.component.d.ts +7 -5
  23. package/tools/fontfamily/editor-fontfamily.component.d.ts +2 -0
  24. package/tools/fontsize/editor-fontsize.component.d.ts +2 -0
  25. package/tools/format/editor-format.component.d.ts +2 -0
  26. package/tools/tables/editor-insert-table-button.component.d.ts +2 -0
  27. package/tools/tables/popup-table-grid.component.d.ts +2 -0
  28. package/tools/tools.service.d.ts +3 -0
@@ -7,3 +7,7 @@ import { EditorCommand, DialogCommand, EditorInternalCommand } from '../common/c
7
7
  * @hidden
8
8
  */
9
9
  export declare const commandIcons: Partial<Record<EditorCommand | DialogCommand | EditorInternalCommand, string>>;
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare const commandSVGIcons: any;
@@ -6,6 +6,7 @@ import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
6
6
  import { EditorLocalizationService } from '../localization/editor-localization.service';
7
7
  import { EditorComponent } from '../editor.component';
8
8
  import { PaletteSettings, ActiveColorClickEvent, ColorPickerComponent, ColorPickerView } from '@progress/kendo-angular-inputs';
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * @hidden
@@ -20,6 +21,7 @@ export declare class ColorPickerDialogComponent extends DialogContentBase {
20
21
  editorCommand: 'foreColor' | 'backColor';
21
22
  paletteSettings: PaletteSettings;
22
23
  icon: string;
24
+ svgIcon: SVGIcon;
23
25
  view: ColorPickerView;
24
26
  views: ColorPickerView[];
25
27
  constructor(dialog: DialogRef, localization: EditorLocalizationService);
@@ -66,8 +66,9 @@ import * as i60 from "@progress/kendo-angular-buttons";
66
66
  import * as i61 from "@progress/kendo-angular-inputs";
67
67
  import * as i62 from "@progress/kendo-angular-dialog";
68
68
  import * as i63 from "@progress/kendo-angular-dropdowns";
69
- import * as i64 from "@progress/kendo-angular-toolbar";
70
- import * as i65 from "@progress/kendo-angular-label";
69
+ import * as i64 from "@progress/kendo-angular-icons";
70
+ import * as i65 from "@progress/kendo-angular-toolbar";
71
+ import * as i66 from "@progress/kendo-angular-label";
71
72
  /**
72
73
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Editor component.
73
74
  *
@@ -109,6 +110,6 @@ import * as i65 from "@progress/kendo-angular-label";
109
110
  */
110
111
  export declare class EditorModule {
111
112
  static ɵfac: i0.ɵɵFactoryDeclaration<EditorModule, never>;
112
- static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i46.FileLinkDialogComponent, typeof i47.ImageDialogComponent, typeof i48.SourceDialogComponent, typeof i49.FormatDialogComponent, typeof i50.ColorPickerDialogComponent, typeof i51.FontFamilyDialogComponent, typeof i52.FontSizeDialogComponent, typeof i53.InsertTableDialogComponent, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent], [typeof i58.CommonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i60.ButtonModule, typeof i61.ColorPickerModule, typeof i62.DialogModule, typeof i63.DropDownsModule, typeof i61.NumericTextBoxModule, typeof i61.CheckBoxModule, typeof i64.ToolBarModule, typeof i61.TextBoxModule, typeof i61.TextAreaModule, typeof i65.LabelModule], [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i64.ToolBarModule, typeof i60.ButtonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent]>;
113
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i46.FileLinkDialogComponent, typeof i47.ImageDialogComponent, typeof i48.SourceDialogComponent, typeof i49.FormatDialogComponent, typeof i50.ColorPickerDialogComponent, typeof i51.FontFamilyDialogComponent, typeof i52.FontSizeDialogComponent, typeof i53.InsertTableDialogComponent, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent], [typeof i58.CommonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i60.ButtonModule, typeof i61.ColorPickerModule, typeof i62.DialogModule, typeof i63.DropDownsModule, typeof i61.NumericTextBoxModule, typeof i61.CheckBoxModule, typeof i64.IconsModule, typeof i65.ToolBarModule, typeof i61.TextBoxModule, typeof i61.TextAreaModule, typeof i66.LabelModule], [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i65.ToolBarModule, typeof i60.ButtonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent]>;
113
114
  static ɵinj: i0.ɵɵInjectorDeclaration<EditorModule>;
114
115
  }
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2023 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 { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, boldIcon, cellsMergeIcon, cellSplitHorizontallyIcon, clearCssIcon, codeSnippetIcon, dropletIcon, fileAddIcon, fileImageIcon, foregroundColorIcon, indentIcon, italicIcon, linkIcon, listOrderedIcon, listUnorderedIcon, outdentIcon, printIcon, redoIcon, rightDoubleQuotesIcon, selectAllIcon, strikethroughIcon, subscriptIcon, supscriptIcon, tableAddIcon, tableColumnDeleteIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableDeleteIcon, tableRowDeleteIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, underlineIcon, undoIcon, unlinkIcon } from '@progress/kendo-svg-icons';
5
6
  /**
6
7
  * @hidden
7
8
  */
@@ -46,3 +47,47 @@ export const commandIcons = {
46
47
  deleteTable: 'table-delete'
47
48
  // tableWizard: 'table-wizard'
48
49
  };
50
+ /**
51
+ * @hidden
52
+ */
53
+ export const commandSVGIcons = {
54
+ alignCenter: alignCenterIcon,
55
+ alignJustify: alignJustifyIcon,
56
+ alignLeft: alignLeftIcon,
57
+ alignRight: alignRightIcon,
58
+ backColor: dropletIcon,
59
+ blockquote: rightDoubleQuotesIcon,
60
+ bold: boldIcon,
61
+ cleanFormatting: clearCssIcon,
62
+ createLink: linkIcon,
63
+ foreColor: foregroundColorIcon,
64
+ indent: indentIcon,
65
+ insertFile: fileAddIcon,
66
+ insertImage: fileImageIcon,
67
+ insertOrderedList: listOrderedIcon,
68
+ insertUnorderedList: listUnorderedIcon,
69
+ italic: italicIcon,
70
+ outdent: outdentIcon,
71
+ print: printIcon,
72
+ redo: redoIcon,
73
+ selectAll: selectAllIcon,
74
+ strikethrough: strikethroughIcon,
75
+ subscript: subscriptIcon,
76
+ superscript: supscriptIcon,
77
+ underline: underlineIcon,
78
+ undo: undoIcon,
79
+ unlink: unlinkIcon,
80
+ viewSource: codeSnippetIcon,
81
+ //table
82
+ insertTable: tableAddIcon,
83
+ addColumnBefore: tableColumnInsertLeftIcon,
84
+ addColumnAfter: tableColumnInsertRightIcon,
85
+ addRowBefore: tableRowInsertAboveIcon,
86
+ addRowAfter: tableRowInsertBelowIcon,
87
+ deleteRow: tableRowDeleteIcon,
88
+ deleteColumn: tableColumnDeleteIcon,
89
+ mergeCells: cellsMergeIcon,
90
+ splitCell: cellSplitHorizontallyIcon,
91
+ deleteTable: tableDeleteIcon
92
+ // tableWizard: 'table-wizard'
93
+ };
@@ -43,6 +43,7 @@ export class ColorPickerDialogComponent extends DialogContentBase {
43
43
  setData(args) {
44
44
  this.editor = args.editor;
45
45
  this.value = args.value;
46
+ this.svgIcon = args.svgIcon;
46
47
  this.editorCommand = args.editorCommand;
47
48
  this.paletteSettings = args.paletteSettings;
48
49
  this.icon = args.icon;
@@ -64,6 +65,7 @@ ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
64
65
  [format]="'hex'"
65
66
  [attr.title]="title"
66
67
  [icon]="icon"
68
+ [svgIcon]="svgIcon"
67
69
  [(value)]="value"
68
70
  [paletteSettings]="paletteSettings"
69
71
  (activeColorClick)="handleActiveColorClick($event)"
@@ -90,6 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
90
92
  [format]="'hex'"
91
93
  [attr.title]="title"
92
94
  [icon]="icon"
95
+ [svgIcon]="svgIcon"
93
96
  [(value)]="value"
94
97
  [paletteSettings]="paletteSettings"
95
98
  (activeColorClick)="handleActiveColorClick($event)"
@@ -11,6 +11,7 @@ import { DialogModule } from '@progress/kendo-angular-dialog';
11
11
  import { ButtonModule } from '@progress/kendo-angular-buttons';
12
12
  import { NumericTextBoxModule, TextBoxModule, TextAreaModule, ColorPickerModule, CheckBoxModule } from '@progress/kendo-angular-inputs';
13
13
  import { LabelModule } from "@progress/kendo-angular-label";
14
+ import { IconsModule } from '@progress/kendo-angular-icons';
14
15
  import { EditorComponent } from './editor.component';
15
16
  import { ImageDialogComponent } from './dialogs/image-dialog.component';
16
17
  import { SourceDialogComponent } from './dialogs/source-dialog.component';
@@ -285,6 +286,7 @@ EditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
285
286
  DropDownsModule,
286
287
  NumericTextBoxModule,
287
288
  CheckBoxModule,
289
+ IconsModule,
288
290
  ToolBarModule,
289
291
  TextBoxModule,
290
292
  TextAreaModule,
@@ -367,6 +369,7 @@ EditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
367
369
  DropDownsModule,
368
370
  NumericTextBoxModule,
369
371
  CheckBoxModule,
372
+ IconsModule,
370
373
  ToolBarModule,
371
374
  TextBoxModule,
372
375
  TextAreaModule,
@@ -410,6 +413,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
410
413
  DropDownsModule,
411
414
  NumericTextBoxModule,
412
415
  CheckBoxModule,
416
+ IconsModule,
413
417
  ToolBarModule,
414
418
  TextBoxModule,
415
419
  TextAreaModule,
@@ -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: 1673618923,
13
- version: '',
12
+ publishDate: 1673629315,
13
+ version: '11.0.0-develop.114',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Directive } from '@angular/core';
6
6
  import { EditorColorPickerComponent } from './editor-colorpicker.component';
7
- import { commandIcons } from '../../config/command-icons';
7
+ import { commandIcons, commandSVGIcons } from '../../config/command-icons';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "./editor-colorpicker.component";
10
10
  /**
@@ -16,6 +16,7 @@ export class EditorBackColorDirective {
16
16
  constructor(colorPicker) {
17
17
  this.colorPicker = colorPicker;
18
18
  this.colorPicker.icon = commandIcons.backColor;
19
+ this.colorPicker.svgIcon = commandSVGIcons.backColor;
19
20
  this.colorPicker.editorCommand = 'backColor';
20
21
  }
21
22
  }
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2023 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
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  // eslint-disable no-forward-ref
6
7
  import { Component, Input, forwardRef, ViewChild, ElementRef, TemplateRef, NgZone, Renderer2 } from '@angular/core';
7
8
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
@@ -17,7 +18,8 @@ import * as i1 from "../../localization/editor-localization.service";
17
18
  import * as i2 from "@progress/kendo-angular-dialog";
18
19
  import * as i3 from "../../common/provider.service";
19
20
  import * as i4 from "@progress/kendo-angular-inputs";
20
- import * as i5 from "@angular/common";
21
+ import * as i5 from "@progress/kendo-angular-icons";
22
+ import * as i6 from "@angular/common";
21
23
  /**
22
24
  * A component which configures an existing ColorPickerComponent as a ToolBar tool.
23
25
  * To associate a `kendo-toolbar-colorpicker` with an Editor command that changes the
@@ -138,6 +140,7 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
138
140
  editorCommand: this.editorCommand,
139
141
  paletteSettings: this.paletteSettings,
140
142
  icon: this.icon,
143
+ svgIcon: this.svgIcon,
141
144
  views: this.views
142
145
  });
143
146
  }
@@ -166,20 +169,15 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
166
169
  this.tabindex = -1;
167
170
  return false;
168
171
  }
169
- /**
170
- * @hidden
171
- */
172
- getIconClasses() {
173
- return `k-icon k-i-${this.icon}`;
174
- }
175
172
  }
176
173
  EditorColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorColorPickerComponent, deps: [{ token: i1.EditorLocalizationService }, { token: i2.DialogService }, { token: i0.NgZone }, { token: i3.ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
177
- EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorColorPickerComponent, selector: "kendo-toolbar-colorpicker", inputs: { value: "value", icon: "icon", paletteSettings: "paletteSettings", editorCommand: "editorCommand", disabled: "disabled", views: "views", view: "view" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "element", first: true, predicate: ["colorpicker"], descendants: true, read: ElementRef }, { propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent }, { propertyName: "colorPickerButton", first: true, predicate: ["colorPickerButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
174
+ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorColorPickerComponent, selector: "kendo-toolbar-colorpicker", inputs: { value: "value", icon: "icon", svgIcon: "svgIcon", paletteSettings: "paletteSettings", editorCommand: "editorCommand", disabled: "disabled", views: "views", view: "view" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "element", first: true, predicate: ["colorpicker"], descendants: true, read: ElementRef }, { propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent }, { propertyName: "colorPickerButton", first: true, predicate: ["colorPickerButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
178
175
  <ng-template #toolbarTemplate>
179
176
  <kendo-colorpicker
180
177
  #colorpicker
181
178
  [attr.title]="title"
182
179
  [icon]="icon"
180
+ [svgIcon]="svgIcon"
183
181
  [views]="views"
184
182
  [format]="'hex'"
185
183
  [value]="value"
@@ -204,12 +202,16 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
204
202
  (click)="openDialog()">
205
203
  <span
206
204
  class="k-link k-menu-link">
207
- <span *ngIf="icon" [ngClass]="getIconClasses()"></span>
205
+ <kendo-icon-wrapper
206
+ *ngIf="icon"
207
+ [name]="icon"
208
+ [svgIcon]="svgIcon"
209
+ ></kendo-icon-wrapper>
208
210
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
209
211
  </span>
210
212
  </div>
211
213
  </ng-template>
212
- `, isInline: true, components: [{ type: i4.ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
214
+ `, isInline: true, components: [{ type: i4.ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { type: i5.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
213
215
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorColorPickerComponent, decorators: [{
214
216
  type: Component,
215
217
  args: [{
@@ -221,6 +223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
221
223
  #colorpicker
222
224
  [attr.title]="title"
223
225
  [icon]="icon"
226
+ [svgIcon]="svgIcon"
224
227
  [views]="views"
225
228
  [format]="'hex'"
226
229
  [value]="value"
@@ -245,7 +248,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
245
248
  (click)="openDialog()">
246
249
  <span
247
250
  class="k-link k-menu-link">
248
- <span *ngIf="icon" [ngClass]="getIconClasses()"></span>
251
+ <kendo-icon-wrapper
252
+ *ngIf="icon"
253
+ [name]="icon"
254
+ [svgIcon]="svgIcon"
255
+ ></kendo-icon-wrapper>
249
256
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
250
257
  </span>
251
258
  </div>
@@ -256,6 +263,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
256
263
  type: Input
257
264
  }], icon: [{
258
265
  type: Input
266
+ }], svgIcon: [{
267
+ type: Input
259
268
  }], paletteSettings: [{
260
269
  type: Input
261
270
  }], editorCommand: [{
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Directive } from '@angular/core';
6
6
  import { EditorColorPickerComponent } from './editor-colorpicker.component';
7
- import { commandIcons } from '../../config/command-icons';
7
+ import { commandIcons, commandSVGIcons } from '../../config/command-icons';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "./editor-colorpicker.component";
10
10
  /**
@@ -16,6 +16,7 @@ export class EditorForeColorDirective {
16
16
  constructor(colorPicker) {
17
17
  this.colorPicker = colorPicker;
18
18
  this.colorPicker.icon = commandIcons.foreColor;
19
+ this.colorPicker.svgIcon = commandSVGIcons.foreColor;
19
20
  this.colorPicker.editorCommand = 'foreColor';
20
21
  }
21
22
  }
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2023 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
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  import { Component, TemplateRef, ViewChild, ElementRef, forwardRef, Input, Output, EventEmitter, Renderer2 } from '@angular/core';
6
7
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
7
8
  import { outerWidth, isPresent, getUniqueStyleValues } from '../../util';
@@ -11,13 +12,15 @@ import { FontFamilyDialogComponent } from '../../dialogs/font-family-dialog.comp
11
12
  import { FontFamilyDropDownListComponent } from './editor-fontfamily-dropdownlist.component';
12
13
  import { ProviderService } from '../../common/provider.service';
13
14
  import { EditorToolsService } from '../tools.service';
15
+ import { fontFamilyIcon } from '@progress/kendo-svg-icons';
14
16
  import * as i0 from "@angular/core";
15
17
  import * as i1 from "@progress/kendo-angular-dialog";
16
18
  import * as i2 from "../../localization/editor-localization.service";
17
19
  import * as i3 from "../../common/provider.service";
18
20
  import * as i4 from "../tools.service";
19
21
  import * as i5 from "./editor-fontfamily-dropdownlist.component";
20
- import * as i6 from "@angular/common";
22
+ import * as i6 from "@progress/kendo-angular-icons";
23
+ import * as i7 from "@angular/common";
21
24
  /**
22
25
  * A component which configures an existing `DropDownListComponent` as an Editor tool
23
26
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -42,6 +45,7 @@ export class EditorFontFamilyComponent extends ToolBarToolComponent {
42
45
  * Fires when the user updates the value of the drop-down list.
43
46
  */
44
47
  this.valueChange = new EventEmitter();
48
+ this.fontFamilySVGIcon = fontFamilyIcon;
45
49
  this._data = [
46
50
  { text: 'Arial', fontName: 'Arial,"Helvetica Neue",Helvetica,sans-serif' },
47
51
  { text: 'Courier New', fontName: '"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace' },
@@ -180,12 +184,12 @@ EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
180
184
  (click)="openDialog()">
181
185
  <span
182
186
  class="k-link k-menu-link">
183
- <span class="k-icon k-i-font-family"></span>
187
+ <kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
184
188
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
185
189
  </span>
186
190
  </div>
187
191
  </ng-template>
188
- `, isInline: true, components: [{ type: i5.FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
192
+ `, isInline: true, components: [{ type: i5.FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
189
193
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, decorators: [{
190
194
  type: Component,
191
195
  args: [{
@@ -216,7 +220,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
216
220
  (click)="openDialog()">
217
221
  <span
218
222
  class="k-link k-menu-link">
219
- <span class="k-icon k-i-font-family"></span>
223
+ <kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
220
224
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
221
225
  </span>
222
226
  </div>
@@ -11,13 +11,15 @@ import { FontSizeDialogComponent } from '../../dialogs/font-size-dialog.componen
11
11
  import { FontSizeDropDownListComponent } from './editor-fontsize-dropdownlist.component';
12
12
  import { ProviderService } from '../../common/provider.service';
13
13
  import { EditorToolsService } from '../tools.service';
14
+ import { fontSizeIcon } from '@progress/kendo-svg-icons';
14
15
  import * as i0 from "@angular/core";
15
16
  import * as i1 from "@progress/kendo-angular-dialog";
16
17
  import * as i2 from "../../localization/editor-localization.service";
17
18
  import * as i3 from "../../common/provider.service";
18
19
  import * as i4 from "../tools.service";
19
20
  import * as i5 from "./editor-fontsize-dropdownlist.component";
20
- import * as i6 from "@angular/common";
21
+ import * as i6 from "@progress/kendo-angular-icons";
22
+ import * as i7 from "@angular/common";
21
23
  /**
22
24
  * A component which configures an existing `DropDownListComponent` as an Editor tool
23
25
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -44,6 +46,7 @@ export class EditorFontSizeComponent extends ToolBarToolComponent {
44
46
  * Fires when the user updates the value of the drop-down list.
45
47
  */
46
48
  this.valueChange = new EventEmitter();
49
+ this.fontSizeSVGIcon = fontSizeIcon;
47
50
  this._data = [
48
51
  { text: '8px', size: '8px' },
49
52
  { text: '10px', size: '10px' },
@@ -189,12 +192,12 @@ EditorFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
189
192
  (click)="openDialog()">
190
193
  <span
191
194
  class="k-link k-menu-link">
192
- <span class="k-icon k-i-font-size"></span>
195
+ <kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
193
196
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
194
197
  </span>
195
198
  </div>
196
199
  </ng-template>
197
- `, isInline: true, components: [{ type: i5.FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
200
+ `, isInline: true, components: [{ type: i5.FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
198
201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
199
202
  type: Component,
200
203
  args: [{
@@ -225,7 +228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
225
228
  (click)="openDialog()">
226
229
  <span
227
230
  class="k-link k-menu-link">
228
- <span class="k-icon k-i-font-size"></span>
231
+ <kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
229
232
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
230
233
  </span>
231
234
  </div>
@@ -11,13 +11,15 @@ import { FormatDialogComponent } from '../../dialogs/format-dialog.component';
11
11
  import { FormatDropDownListComponent } from './editor-format-dropdownlist.component';
12
12
  import { ProviderService } from '../../common/provider.service';
13
13
  import { EditorToolsService } from '../tools.service';
14
+ import { applyFormatIcon } from '@progress/kendo-svg-icons';
14
15
  import * as i0 from "@angular/core";
15
16
  import * as i1 from "@progress/kendo-angular-dialog";
16
17
  import * as i2 from "../../localization/editor-localization.service";
17
18
  import * as i3 from "../../common/provider.service";
18
19
  import * as i4 from "../tools.service";
19
20
  import * as i5 from "./editor-format-dropdownlist.component";
20
- import * as i6 from "@angular/common";
21
+ import * as i6 from "@progress/kendo-angular-icons";
22
+ import * as i7 from "@angular/common";
21
23
  /**
22
24
  * A component which configures an existing `DropDownListComponent` as an Editor tool
23
25
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
@@ -51,6 +53,7 @@ export class EditorFormatComponent extends ToolBarToolComponent {
51
53
  { text: 'Heading 5', tag: 'h5' },
52
54
  { text: 'Heading 6', tag: 'h6' }
53
55
  ];
56
+ this.applyFormatSVGIcon = applyFormatIcon;
54
57
  this.editor = providerService.editor;
55
58
  }
56
59
  /**
@@ -176,12 +179,12 @@ EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
176
179
  (click)="openDialog()">
177
180
  <span
178
181
  class="k-link k-menu-link">
179
- <span class="k-icon k-i-apply-format"></span>
182
+ <kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
180
183
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
181
184
  </span>
182
185
  </div>
183
186
  </ng-template>
184
- `, isInline: true, components: [{ type: i5.FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
187
+ `, isInline: true, components: [{ type: i5.FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
185
188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, decorators: [{
186
189
  type: Component,
187
190
  args: [{
@@ -211,7 +214,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
211
214
  (click)="openDialog()">
212
215
  <span
213
216
  class="k-link k-menu-link">
214
- <span class="k-icon k-i-apply-format"></span>
217
+ <kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
215
218
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
216
219
  </span>
217
220
  </div>
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
- import { commandIcons } from '../../config/command-icons';
6
+ import { commandIcons, commandSVGIcons } from '../../config/command-icons';
7
7
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { ProviderService } from '../../common/provider.service';
9
9
  import { Directive, Inject, InjectionToken } from '@angular/core';
@@ -24,18 +24,25 @@ export class EditorCommandBaseDirective {
24
24
  this.localization = localization;
25
25
  this.toolsService = toolsService;
26
26
  this.editor = providerService.editor;
27
- setTimeout(() => {
28
- const text = this.localization.get(this.command);
29
- if (text) {
30
- this.button.showText = 'overflow';
31
- this.button.showIcon = 'both';
32
- this.button.text = text;
33
- }
34
- if (!this.button.toolbarOptions.icon) {
35
- this.button.icon = commandIcons[this.command];
36
- }
37
- this.button.title = text;
38
- this.toolsService.needsCheck.next();
27
+ this.toolsService.zone.runOutsideAngular(() => {
28
+ setTimeout(() => {
29
+ const text = this.localization.get(this.command);
30
+ if (text) {
31
+ this.button.showText = 'overflow';
32
+ this.button.showIcon = 'both';
33
+ this.button.text = text;
34
+ }
35
+ if (!this.button.toolbarOptions.icon) {
36
+ this.button.icon = commandIcons[this.command];
37
+ }
38
+ if (!this.button.toolbarOptions.svgIcon) {
39
+ this.button.svgIcon = commandSVGIcons[this.command];
40
+ }
41
+ this.button.title = text;
42
+ this.toolsService.zone.run(() => {
43
+ this.toolsService.needsCheck.next();
44
+ });
45
+ });
39
46
  });
40
47
  }
41
48
  ngOnInit() {
@@ -13,14 +13,16 @@ import { DialogService } from '@progress/kendo-angular-dialog';
13
13
  import { InsertTableDialogComponent } from '../../dialogs/insert-table-dialog.component';
14
14
  import { Keys } from '@progress/kendo-angular-common';
15
15
  import { ProviderService } from '../../common/provider.service';
16
+ import { tableAddIcon } from '@progress/kendo-svg-icons';
16
17
  import * as i0 from "@angular/core";
17
18
  import * as i1 from "../../localization/editor-localization.service";
18
19
  import * as i2 from "@progress/kendo-angular-popup";
19
20
  import * as i3 from "@progress/kendo-angular-dialog";
20
21
  import * as i4 from "../../common/provider.service";
21
22
  import * as i5 from "@progress/kendo-angular-buttons";
22
- import * as i6 from "./popup-table-grid.component";
23
- import * as i7 from "@angular/common";
23
+ import * as i6 from "@progress/kendo-angular-icons";
24
+ import * as i7 from "./popup-table-grid.component";
25
+ import * as i8 from "@angular/common";
24
26
  const popupWrapperWidth = '190px';
25
27
  const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is added;
26
28
  /**
@@ -38,6 +40,7 @@ export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
38
40
  this.popupService = popupService;
39
41
  this.dialogService = dialogService;
40
42
  this.renderer = renderer;
43
+ this.addTableSVGIcon = tableAddIcon;
41
44
  this.open = false;
42
45
  this.buttonBlurred = new EventEmitter();
43
46
  this.cellClicked = new EventEmitter();
@@ -172,6 +175,7 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
172
175
  [attr.title]="title"
173
176
  [attr.tabindex]="tabIndex"
174
177
  icon="table-add"
178
+ [svgIcon]="addTableSVGIcon"
175
179
  [disabled]="disabled"
176
180
  (click)="toggle()"
177
181
  (blur)="onBlur()"
@@ -186,7 +190,7 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
186
190
  (click)="openDialog()">
187
191
  <span
188
192
  class="k-link k-menu-link">
189
- <span class="k-icon k-i-table-add"></span>
193
+ <kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
190
194
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
191
195
  </span>
192
196
  </div>
@@ -194,7 +198,7 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
194
198
  <ng-template #popupGridTemplate>
195
199
  <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
196
200
  </ng-template>
197
- `, isInline: true, components: [{ type: i5.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i6.PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
201
+ `, isInline: true, components: [{ type: i5.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i7.PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
198
202
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, decorators: [{
199
203
  type: Component,
200
204
  args: [{
@@ -209,6 +213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
209
213
  [attr.title]="title"
210
214
  [attr.tabindex]="tabIndex"
211
215
  icon="table-add"
216
+ [svgIcon]="addTableSVGIcon"
212
217
  [disabled]="disabled"
213
218
  (click)="toggle()"
214
219
  (blur)="onBlur()"
@@ -223,7 +228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
223
228
  (click)="openDialog()">
224
229
  <span
225
230
  class="k-link k-menu-link">
226
- <span class="k-icon k-i-table-add"></span>
231
+ <kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
227
232
  <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
228
233
  </span>
229
234
  </div>