@progress/kendo-angular-editor 11.0.0-develop.104 → 11.0.0-develop.105

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 (29) hide show
  1. package/dialogs/file-link-dialog.component.d.ts +2 -2
  2. package/dialogs/image-dialog.component.d.ts +2 -2
  3. package/dialogs/source-dialog.component.d.ts +2 -2
  4. package/editor.component.d.ts +3 -2
  5. package/editor.module.d.ts +2 -1
  6. package/esm2020/dialogs/colorpicker-dialog.component.mjs +26 -34
  7. package/esm2020/dialogs/file-link-dialog.component.mjs +79 -77
  8. package/esm2020/dialogs/font-family-dialog.component.mjs +20 -28
  9. package/esm2020/dialogs/font-size-dialog.component.mjs +20 -28
  10. package/esm2020/dialogs/format-dialog.component.mjs +20 -28
  11. package/esm2020/dialogs/image-dialog.component.mjs +74 -63
  12. package/esm2020/dialogs/insert-table-dialog.component.mjs +6 -14
  13. package/esm2020/dialogs/source-dialog.component.mjs +9 -7
  14. package/esm2020/editor.component.mjs +29 -9
  15. package/esm2020/editor.module.mjs +11 -4
  16. package/esm2020/package-metadata.mjs +1 -1
  17. package/esm2020/tools/colorpicker/editor-colorpicker.component.mjs +8 -5
  18. package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +8 -5
  19. package/esm2020/tools/fontsize/editor-fontsize.component.mjs +8 -5
  20. package/esm2020/tools/format/editor-format.component.mjs +8 -5
  21. package/esm2020/tools/tables/editor-insert-table-button.component.mjs +8 -5
  22. package/fesm2015/progress-kendo-angular-editor.mjs +332 -321
  23. package/fesm2020/progress-kendo-angular-editor.mjs +332 -321
  24. package/package.json +12 -12
  25. package/tools/colorpicker/editor-colorpicker.component.d.ts +3 -2
  26. package/tools/fontfamily/editor-fontfamily.component.d.ts +3 -2
  27. package/tools/fontsize/editor-fontsize.component.d.ts +3 -2
  28. package/tools/format/editor-format.component.d.ts +3 -2
  29. package/tools/tables/editor-insert-table-button.component.d.ts +3 -2
@@ -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, Input, Output, EventEmitter } from '@angular/core';
5
+ import { Component, TemplateRef, ViewChild, ElementRef, forwardRef, Input, Output, EventEmitter, Renderer2 } from '@angular/core';
6
6
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
7
7
  import { outerWidth, isPresent, getUniqueStyleValues } from '../../util';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
@@ -30,11 +30,12 @@ import * as i6 from "@angular/common";
30
30
  * ```
31
31
  */
32
32
  export class EditorFontFamilyComponent extends ToolBarToolComponent {
33
- constructor(dialogService, localization, providerService, toolsService) {
33
+ constructor(dialogService, localization, providerService, toolsService, renderer) {
34
34
  super();
35
35
  this.dialogService = dialogService;
36
36
  this.localization = localization;
37
37
  this.toolsService = toolsService;
38
+ this.renderer = renderer;
38
39
  this.disabled = false;
39
40
  this.tabindex = -1;
40
41
  /**
@@ -113,10 +114,12 @@ export class EditorFontFamilyComponent extends ToolBarToolComponent {
113
114
  openDialog() {
114
115
  const dialogSettings = {
115
116
  appendTo: this.editor.dialogContainer,
116
- content: FontFamilyDialogComponent
117
+ content: FontFamilyDialogComponent,
118
+ width: 400
117
119
  };
118
120
  this.editor.toolbar.toggle(false);
119
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');
120
123
  dialogContent.setData({
121
124
  editor: this.editor,
122
125
  data: this.data,
@@ -151,7 +154,7 @@ export class EditorFontFamilyComponent extends ToolBarToolComponent {
151
154
  return false;
152
155
  }
153
156
  }
154
- EditorFontFamilyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, deps: [{ token: i1.DialogService }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }], target: i0.ɵɵFactoryTarget.Component });
157
+ EditorFontFamilyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, deps: [{ token: i1.DialogService }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
155
158
  EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorFontFamilyComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFontFamily]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontFamilyComponent) }], 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: ["element"], descendants: true }, { propertyName: "fontFamilyDropDownList", first: true, predicate: ["element"], descendants: true, read: FontFamilyDropDownListComponent }, { propertyName: "fontFamilyButton", first: true, predicate: ["fontFamilyButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
156
159
  <ng-template #toolbarTemplate>
157
160
  <kendo-editor-fontfamily-dropdownlist
@@ -220,7 +223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
220
223
  </ng-template>
221
224
  `
222
225
  }]
223
- }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }]; }, propDecorators: { data: [{
226
+ }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
224
227
  type: Input
225
228
  }], valueChange: [{
226
229
  type: Output
@@ -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, Input, TemplateRef, ViewChild, ElementRef, forwardRef, Output, EventEmitter } from '@angular/core';
5
+ import { Component, Input, TemplateRef, ViewChild, ElementRef, forwardRef, Output, EventEmitter, Renderer2 } from '@angular/core';
6
6
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
7
7
  import { outerWidth, isPresent, getUniqueStyleValues } from '../../util';
8
8
  import { EditorLocalizationService } from '../../localization/editor-localization.service';
@@ -32,11 +32,12 @@ import * as i6 from "@angular/common";
32
32
  * Use the FontSize tool to provide a custom list of font size options including any allowed units ([see example]({% slug toolbartools_editor %}#toc-dropdownlists)).
33
33
  */
34
34
  export class EditorFontSizeComponent extends ToolBarToolComponent {
35
- constructor(dialogService, localization, providerService, toolsService) {
35
+ constructor(dialogService, localization, providerService, toolsService, renderer) {
36
36
  super();
37
37
  this.dialogService = dialogService;
38
38
  this.localization = localization;
39
39
  this.toolsService = toolsService;
40
+ this.renderer = renderer;
40
41
  this.disabled = false;
41
42
  this.tabindex = -1;
42
43
  /**
@@ -122,10 +123,12 @@ export class EditorFontSizeComponent extends ToolBarToolComponent {
122
123
  openDialog() {
123
124
  const dialogSettings = {
124
125
  appendTo: this.editor.dialogContainer,
125
- content: FontSizeDialogComponent
126
+ content: FontSizeDialogComponent,
127
+ width: 400
126
128
  };
127
129
  this.editor.toolbar.toggle(false);
128
130
  const dialogContent = this.dialogService.open(dialogSettings).content.instance;
131
+ this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
129
132
  dialogContent.setData({
130
133
  editor: this.editor,
131
134
  data: this.data,
@@ -160,7 +163,7 @@ export class EditorFontSizeComponent extends ToolBarToolComponent {
160
163
  return false;
161
164
  }
162
165
  }
163
- EditorFontSizeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1.DialogService }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }], target: i0.ɵɵFactoryTarget.Component });
166
+ EditorFontSizeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1.DialogService }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
164
167
  EditorFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorFontSizeComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFontSize]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }], 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: ["element"], descendants: true }, { propertyName: "fontSizeDropDownList", first: true, predicate: ["element"], descendants: true, read: FontSizeDropDownListComponent }, { propertyName: "fontSizeButton", first: true, predicate: ["fontSizeButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
165
168
  <ng-template #toolbarTemplate>
166
169
  <kendo-editor-fontsize-dropdownlist
@@ -229,7 +232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
229
232
  </ng-template>
230
233
  `
231
234
  }]
232
- }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }]; }, propDecorators: { data: [{
235
+ }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
233
236
  type: Input
234
237
  }], valueChange: [{
235
238
  type: Output
@@ -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';
@@ -30,11 +30,12 @@ import * as i6 from "@angular/common";
30
30
  * ```
31
31
  */
32
32
  export class EditorFormatComponent extends ToolBarToolComponent {
33
- constructor(dialogService, localization, providerService, toolsService) {
33
+ constructor(dialogService, localization, providerService, toolsService, renderer) {
34
34
  super();
35
35
  this.dialogService = dialogService;
36
36
  this.localization = localization;
37
37
  this.toolsService = toolsService;
38
+ this.renderer = renderer;
38
39
  this.disabled = false;
39
40
  this.tabindex = -1;
40
41
  /**
@@ -110,10 +111,12 @@ export class EditorFormatComponent extends ToolBarToolComponent {
110
111
  openDialog() {
111
112
  const dialogSettings = {
112
113
  appendTo: this.editor.dialogContainer,
113
- content: FormatDialogComponent
114
+ content: FormatDialogComponent,
115
+ width: 400
114
116
  };
115
117
  this.editor.toolbar.toggle(false);
116
118
  const dialogContent = this.dialogService.open(dialogSettings).content.instance;
119
+ this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
117
120
  dialogContent.setData({
118
121
  editor: this.editor,
119
122
  data: this.data,
@@ -148,7 +151,7 @@ export class EditorFormatComponent extends ToolBarToolComponent {
148
151
  return false;
149
152
  }
150
153
  }
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 });
154
+ 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
155
  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
156
  <ng-template #toolbarTemplate>
154
157
  <kendo-editor-format-dropdownlist
@@ -215,7 +218,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
215
218
  </ng-template>
216
219
  `
217
220
  }]
218
- }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }]; }, propDecorators: { data: [{
221
+ }], ctorParameters: function () { return [{ type: i1.DialogService }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
219
222
  type: Input
220
223
  }], valueChange: [{
221
224
  type: Output
@@ -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';
@@ -32,11 +32,12 @@ const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is
32
32
  * ```
33
33
  */
34
34
  export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
35
- constructor(localization, popupService, dialogService, providerService) {
35
+ constructor(localization, popupService, dialogService, providerService, renderer) {
36
36
  super();
37
37
  this.localization = localization;
38
38
  this.popupService = popupService;
39
39
  this.dialogService = dialogService;
40
+ this.renderer = renderer;
40
41
  this.open = false;
41
42
  this.buttonBlurred = new EventEmitter();
42
43
  this.cellClicked = new EventEmitter();
@@ -78,10 +79,12 @@ export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
78
79
  openDialog() {
79
80
  const dialogSettings = {
80
81
  appendTo: this.editor.dialogContainer,
81
- content: InsertTableDialogComponent
82
+ content: InsertTableDialogComponent,
83
+ width: 400
82
84
  };
83
85
  this.editor.toolbar.toggle(false);
84
86
  const dialogContent = this.dialogService.open(dialogSettings).content.instance;
87
+ this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
85
88
  dialogContent.setData({
86
89
  editor: this.editor
87
90
  });
@@ -159,7 +162,7 @@ export class EditorInsertTableButtonComponent extends ToolBarToolComponent {
159
162
  return (this.overflows ? this.overflowElement : this.element).nativeElement;
160
163
  }
161
164
  }
162
- 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 });
165
+ 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 });
163
166
  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: `
164
167
  <ng-template #toolbarTemplate>
165
168
  <button
@@ -230,7 +233,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
230
233
  </ng-template>
231
234
  `
232
235
  }]
233
- }], ctorParameters: function () { return [{ type: i1.EditorLocalizationService }, { type: i2.PopupService }, { type: i3.DialogService }, { type: i4.ProviderService }]; }, propDecorators: { toolbarTemplate: [{
236
+ }], ctorParameters: function () { return [{ type: i1.EditorLocalizationService }, { type: i2.PopupService }, { type: i3.DialogService }, { type: i4.ProviderService }, { type: i0.Renderer2 }]; }, propDecorators: { toolbarTemplate: [{
234
237
  type: ViewChild,
235
238
  args: ['toolbarTemplate', { static: true }]
236
239
  }], popupTemplate: [{