@progress/kendo-angular-editor 11.0.0-develop.99 → 11.0.1-develop.1

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 (43) hide show
  1. package/NOTICE.txt +17 -17
  2. package/config/command-icons.d.ts +4 -0
  3. package/dialogs/colorpicker-dialog.component.d.ts +2 -0
  4. package/dialogs/file-link-dialog.component.d.ts +2 -2
  5. package/dialogs/image-dialog.component.d.ts +2 -2
  6. package/dialogs/source-dialog.component.d.ts +2 -2
  7. package/editor.component.d.ts +3 -2
  8. package/editor.module.d.ts +4 -2
  9. package/esm2020/config/command-icons.mjs +45 -0
  10. package/esm2020/dialogs/colorpicker-dialog.component.mjs +29 -34
  11. package/esm2020/dialogs/file-link-dialog.component.mjs +79 -77
  12. package/esm2020/dialogs/font-family-dialog.component.mjs +20 -28
  13. package/esm2020/dialogs/font-size-dialog.component.mjs +20 -28
  14. package/esm2020/dialogs/format-dialog.component.mjs +20 -28
  15. package/esm2020/dialogs/image-dialog.component.mjs +74 -63
  16. package/esm2020/dialogs/insert-table-dialog.component.mjs +6 -14
  17. package/esm2020/dialogs/source-dialog.component.mjs +9 -7
  18. package/esm2020/editor.component.mjs +31 -10
  19. package/esm2020/editor.module.mjs +15 -4
  20. package/esm2020/package-metadata.mjs +2 -2
  21. package/esm2020/tools/colorpicker/editor-back-color.directive.mjs +2 -1
  22. package/esm2020/tools/colorpicker/editor-colorpicker.component.mjs +53 -37
  23. package/esm2020/tools/colorpicker/editor-fore-color.directive.mjs +2 -1
  24. package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +36 -31
  25. package/esm2020/tools/fontsize/editor-fontsize.component.mjs +35 -31
  26. package/esm2020/tools/format/editor-format.component.mjs +35 -33
  27. package/esm2020/tools/shared/editor-command-base.mjs +20 -13
  28. package/esm2020/tools/shared/editor-command-button.mjs +10 -2
  29. package/esm2020/tools/shared/editor-command-dialog.mjs +10 -2
  30. package/esm2020/tools/tables/editor-insert-table-button.component.mjs +36 -23
  31. package/esm2020/tools/tables/popup-table-grid.component.mjs +4 -2
  32. package/esm2020/tools/tools.service.mjs +5 -4
  33. package/fesm2015/progress-kendo-angular-editor.mjs +571 -464
  34. package/fesm2020/progress-kendo-angular-editor.mjs +570 -464
  35. package/package.json +16 -15
  36. package/schematics/ngAdd/index.js +5 -3
  37. package/tools/colorpicker/editor-colorpicker.component.d.ts +10 -3
  38. package/tools/fontfamily/editor-fontfamily.component.d.ts +5 -2
  39. package/tools/fontsize/editor-fontsize.component.d.ts +5 -2
  40. package/tools/format/editor-format.component.d.ts +5 -2
  41. package/tools/tables/editor-insert-table-button.component.d.ts +5 -2
  42. package/tools/tables/popup-table-grid.component.d.ts +2 -0
  43. package/tools/tools.service.d.ts +3 -0
@@ -2,7 +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 { Component, TemplateRef, ViewChild, Input, forwardRef, Output, EventEmitter, ElementRef } from '@angular/core';
5
+ import { Component, TemplateRef, ViewChild, Input, forwardRef, Output, EventEmitter, ElementRef, Renderer2 } from '@angular/core';
6
6
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
7
7
  import { DialogService } from '@progress/kendo-angular-dialog';
8
8
  import { outerWidth, isPresent } from '../../util';
@@ -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 "@progress/kendo-angular-buttons";
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)).
@@ -30,11 +32,12 @@ import * as i6 from "@progress/kendo-angular-buttons";
30
32
  * ```
31
33
  */
32
34
  export class EditorFormatComponent extends ToolBarToolComponent {
33
- constructor(dialogService, localization, providerService, toolsService) {
35
+ constructor(dialogService, localization, providerService, toolsService, renderer) {
34
36
  super();
35
37
  this.dialogService = dialogService;
36
38
  this.localization = localization;
37
39
  this.toolsService = toolsService;
40
+ this.renderer = renderer;
38
41
  this.disabled = false;
39
42
  this.tabindex = -1;
40
43
  /**
@@ -50,6 +53,7 @@ export class EditorFormatComponent extends ToolBarToolComponent {
50
53
  { text: 'Heading 5', tag: 'h5' },
51
54
  { text: 'Heading 6', tag: 'h6' }
52
55
  ];
56
+ this.applyFormatSVGIcon = applyFormatIcon;
53
57
  this.editor = providerService.editor;
54
58
  }
55
59
  /**
@@ -110,10 +114,12 @@ export class EditorFormatComponent extends ToolBarToolComponent {
110
114
  openDialog() {
111
115
  const dialogSettings = {
112
116
  appendTo: this.editor.dialogContainer,
113
- content: FormatDialogComponent
117
+ content: FormatDialogComponent,
118
+ width: 400
114
119
  };
115
120
  this.editor.toolbar.toggle(false);
116
121
  const dialogContent = this.dialogService.open(dialogSettings).content.instance;
122
+ this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
117
123
  dialogContent.setData({
118
124
  editor: this.editor,
119
125
  data: this.data,
@@ -148,7 +154,7 @@ export class EditorFormatComponent extends ToolBarToolComponent {
148
154
  return false;
149
155
  }
150
156
  }
151
- EditorFormatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, deps: [{ token: i1.DialogService }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }], target: i0.ɵɵFactoryTarget.Component });
157
+ EditorFormatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, deps: [{ token: i1.DialogService }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
152
158
  EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorFormatComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFormatComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true }, { propertyName: "formatButton", first: true, predicate: ["formatButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
153
159
  <ng-template #toolbarTemplate>
154
160
  <kendo-editor-format-dropdownlist
@@ -165,22 +171,20 @@ EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
165
171
  </kendo-editor-format-dropdownlist>
166
172
  </ng-template>
167
173
  <ng-template #popupTemplate>
168
- <button
169
- #formatButton
174
+ <div #formatButton
175
+ role="menuitem"
176
+ class="k-item k-menu-item"
177
+ [class.k-disabled]="disabled"
170
178
  [tabindex]="tabindex"
171
- type="button"
172
- kendoButton
173
- class="k-overflow-button"
174
- [icon]="'apply-format'"
175
- [attr.title]="title"
176
- [disabled]="disabled"
177
- [tabindex]="tabindex"
178
- (click)="openDialog()"
179
- >
180
- {{ title }}
181
- </button>
179
+ (click)="openDialog()">
180
+ <span
181
+ class="k-link k-menu-link">
182
+ <kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
183
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
184
+ </span>
185
+ </div>
182
186
  </ng-template>
183
- `, isInline: true, components: [{ type: i5.FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6.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"] }] });
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"] }] });
184
188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, decorators: [{
185
189
  type: Component,
186
190
  args: [{
@@ -202,24 +206,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
202
206
  </kendo-editor-format-dropdownlist>
203
207
  </ng-template>
204
208
  <ng-template #popupTemplate>
205
- <button
206
- #formatButton
209
+ <div #formatButton
210
+ role="menuitem"
211
+ class="k-item k-menu-item"
212
+ [class.k-disabled]="disabled"
207
213
  [tabindex]="tabindex"
208
- type="button"
209
- kendoButton
210
- class="k-overflow-button"
211
- [icon]="'apply-format'"
212
- [attr.title]="title"
213
- [disabled]="disabled"
214
- [tabindex]="tabindex"
215
- (click)="openDialog()"
216
- >
217
- {{ title }}
218
- </button>
214
+ (click)="openDialog()">
215
+ <span
216
+ class="k-link k-menu-link">
217
+ <kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
218
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
219
+ </span>
220
+ </div>
219
221
  </ng-template>
220
222
  `
221
223
  }]
222
- }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }]; }, propDecorators: { data: [{
224
+ }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
223
225
  type: Input
224
226
  }], valueChange: [{
225
227
  type: Output
@@ -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() {
@@ -23,7 +23,15 @@ export class EditorCommandButton extends EditorCommandBaseDirective {
23
23
  e.preventDefault();
24
24
  }
25
25
  onStateChange(toolBarState) {
26
- this.button.selected = toolBarState[this.command].selected;
27
- this.button.disabled = toolBarState[this.command].disabled;
26
+ if (this.button.overflows) {
27
+ setTimeout(() => {
28
+ this.button.selected = toolBarState[this.command].selected;
29
+ this.button.disabled = toolBarState[this.command].disabled;
30
+ });
31
+ }
32
+ else {
33
+ this.button.selected = toolBarState[this.command].selected;
34
+ this.button.disabled = toolBarState[this.command].disabled;
35
+ }
28
36
  }
29
37
  }
@@ -18,7 +18,15 @@ export class EditorCommandDialog extends EditorCommandBaseDirective {
18
18
  this.editor.openDialog(this.dialog);
19
19
  }
20
20
  onStateChange(toolBarState) {
21
- this.button.selected = toolBarState[this.command].selected;
22
- this.button.disabled = toolBarState[this.command].disabled;
21
+ if (this.button.overflows) {
22
+ setTimeout(() => {
23
+ this.button.selected = toolBarState[this.command].selected;
24
+ this.button.disabled = toolBarState[this.command].disabled;
25
+ });
26
+ }
27
+ else {
28
+ this.button.selected = toolBarState[this.command].selected;
29
+ this.button.disabled = toolBarState[this.command].disabled;
30
+ }
23
31
  }
24
32
  }
@@ -2,7 +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 { Component, TemplateRef, ViewChild, ElementRef, forwardRef, EventEmitter } from '@angular/core';
5
+ import { Component, TemplateRef, ViewChild, ElementRef, forwardRef, EventEmitter, Renderer2 } from '@angular/core';
6
6
  import { interval } from 'rxjs';
7
7
  import { concatMap, take, takeUntil } from 'rxjs/operators';
8
8
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
@@ -13,13 +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 i6 from "@progress/kendo-angular-icons";
24
+ import * as i7 from "./popup-table-grid.component";
25
+ import * as i8 from "@angular/common";
23
26
  const popupWrapperWidth = '190px';
24
27
  const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is added;
25
28
  /**
@@ -31,11 +34,13 @@ const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is
31
34
  * ```
32
35
  */
33
36
  export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
34
- constructor(localization, popupService, dialogService, providerService) {
37
+ constructor(localization, popupService, dialogService, providerService, renderer) {
35
38
  super();
36
39
  this.localization = localization;
37
40
  this.popupService = popupService;
38
41
  this.dialogService = dialogService;
42
+ this.renderer = renderer;
43
+ this.addTableSVGIcon = tableAddIcon;
39
44
  this.open = false;
40
45
  this.buttonBlurred = new EventEmitter();
41
46
  this.cellClicked = new EventEmitter();
@@ -77,10 +82,12 @@ export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
77
82
  openDialog() {
78
83
  const dialogSettings = {
79
84
  appendTo: this.editor.dialogContainer,
80
- content: InsertTableDialogComponent
85
+ content: InsertTableDialogComponent,
86
+ width: 400
81
87
  };
82
88
  this.editor.toolbar.toggle(false);
83
89
  const dialogContent = this.dialogService.open(dialogSettings).content.instance;
90
+ this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
84
91
  dialogContent.setData({
85
92
  editor: this.editor
86
93
  });
@@ -158,7 +165,7 @@ export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
158
165
  return (this.overflows ? this.overflowElement : this.element).nativeElement;
159
166
  }
160
167
  }
161
- EditorInsertTableButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, deps: [{ token: i1.EditorLocalizationService }, { token: i2.PopupService }, { token: i3.DialogService }, { token: i4.ProviderService }], target: i0.ɵɵFactoryTarget.Component });
168
+ EditorInsertTableButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, deps: [{ token: i1.EditorLocalizationService }, { token: i2.PopupService }, { token: i3.DialogService }, { token: i4.ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
162
169
  EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorInsertTableButtonComponent, selector: "kendo-editor-insert-table-button", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorInsertTableButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef }, { propertyName: "overflowElement", first: true, predicate: ["overflowElement"], descendants: true, read: ElementRef }, { propertyName: "popupGridTemplate", first: true, predicate: ["popupGridTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
163
170
  <ng-template #toolbarTemplate>
164
171
  <button
@@ -168,27 +175,30 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
168
175
  [attr.title]="title"
169
176
  [attr.tabindex]="tabIndex"
170
177
  icon="table-add"
178
+ [svgIcon]="addTableSVGIcon"
171
179
  [disabled]="disabled"
172
180
  (click)="toggle()"
173
181
  (blur)="onBlur()"
174
182
  ></button>
175
183
  </ng-template>
176
184
  <ng-template #popupTemplate>
177
- <button
178
- kendoButton
179
- #overflowElement
180
- [attr.title]="title"
185
+ <div #overflowElement
186
+ role="menuitem"
187
+ class="k-item k-menu-item"
188
+ [class.k-disabled]="disabled"
181
189
  [attr.tabindex]="tabIndex"
182
- icon="table-add"
183
- [disabled]="disabled"
184
190
  (click)="openDialog()">
185
- {{ title }}
186
- </button>
191
+ <span
192
+ class="k-link k-menu-link">
193
+ <kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
194
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
195
+ </span>
196
+ </div>
187
197
  </ng-template>
188
198
  <ng-template #popupGridTemplate>
189
199
  <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
190
200
  </ng-template>
191
- `, 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"] }] });
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"] }] });
192
202
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, decorators: [{
193
203
  type: Component,
194
204
  args: [{
@@ -203,29 +213,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
203
213
  [attr.title]="title"
204
214
  [attr.tabindex]="tabIndex"
205
215
  icon="table-add"
216
+ [svgIcon]="addTableSVGIcon"
206
217
  [disabled]="disabled"
207
218
  (click)="toggle()"
208
219
  (blur)="onBlur()"
209
220
  ></button>
210
221
  </ng-template>
211
222
  <ng-template #popupTemplate>
212
- <button
213
- kendoButton
214
- #overflowElement
215
- [attr.title]="title"
223
+ <div #overflowElement
224
+ role="menuitem"
225
+ class="k-item k-menu-item"
226
+ [class.k-disabled]="disabled"
216
227
  [attr.tabindex]="tabIndex"
217
- icon="table-add"
218
- [disabled]="disabled"
219
228
  (click)="openDialog()">
220
- {{ title }}
221
- </button>
229
+ <span
230
+ class="k-link k-menu-link">
231
+ <kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
232
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
233
+ </span>
234
+ </div>
222
235
  </ng-template>
223
236
  <ng-template #popupGridTemplate>
224
237
  <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
225
238
  </ng-template>
226
239
  `
227
240
  }]
228
- }], ctorParameters: function () { return [{ type: i1.EditorLocalizationService }, { type: i2.PopupService }, { type: i3.DialogService }, { type: i4.ProviderService }]; }, propDecorators: { toolbarTemplate: [{
241
+ }], ctorParameters: function () { return [{ type: i1.EditorLocalizationService }, { type: i2.PopupService }, { type: i3.DialogService }, { type: i4.ProviderService }, { type: i0.Renderer2 }]; }, propDecorators: { toolbarTemplate: [{
229
242
  type: ViewChild,
230
243
  args: ['toolbarTemplate', { static: true }]
231
244
  }], popupTemplate: [{
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Output, EventEmitter } from '@angular/core';
6
+ import { tableWizardIcon } from '@progress/kendo-svg-icons';
6
7
  import * as i0 from "@angular/core";
7
8
  import * as i1 from "@angular/common";
8
9
  /**
@@ -12,6 +13,7 @@ export class PopupTableGridComponent {
12
13
  constructor() {
13
14
  this.cellClick = new EventEmitter();
14
15
  this.tableWizardClick = new EventEmitter();
16
+ this.tableWizardIcon = tableWizardIcon;
15
17
  this.state = { rows: -1, cols: -1 };
16
18
  this.rows = 6;
17
19
  this.cols = 8;
@@ -57,7 +59,7 @@ PopupTableGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
57
59
  <div class="k-status" unselectable="on">{{ message }}</div>
58
60
  <!-- uncomment when TableWizard is completed
59
61
  <div class="k-editor-toolbar" unselectable="on">
60
- <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
62
+ <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
61
63
  </div>
62
64
  -->
63
65
  `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
@@ -77,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
77
79
  <div class="k-status" unselectable="on">{{ message }}</div>
78
80
  <!-- uncomment when TableWizard is completed
79
81
  <div class="k-editor-toolbar" unselectable="on">
80
- <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
82
+ <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
81
83
  </div>
82
84
  -->
83
85
  `
@@ -2,19 +2,20 @@
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 { Injectable } from '@angular/core';
5
+ import { Injectable, NgZone } from '@angular/core';
6
6
  import { Subject } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * @hidden
10
10
  */
11
11
  export class EditorToolsService {
12
- constructor() {
12
+ constructor(zone) {
13
+ this.zone = zone;
13
14
  this.needsCheck = new Subject();
14
15
  }
15
16
  }
16
- EditorToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
17
+ EditorToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
17
18
  EditorToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService });
18
19
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, decorators: [{
19
20
  type: Injectable
20
- }] });
21
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });