@progress/kendo-angular-editor 4.1.1 → 4.1.3-dev.202206300834

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.
@@ -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: 1655212375,
12
+ publishDate: 1656578044,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -60,6 +60,7 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
60
60
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
61
61
  this.disabled = style.disabled;
62
62
  });
63
+ this.activeView = this.view;
63
64
  }
64
65
  ngOnDestroy() {
65
66
  if (this.subs) {
@@ -71,7 +72,7 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
71
72
  */
72
73
  handleValueChange(color) {
73
74
  this.editor.exec(this.editorCommand, color);
74
- if (this.view === 'palette') {
75
+ if (this.activeView === 'palette') {
75
76
  this.editor.view.focus();
76
77
  }
77
78
  }
@@ -98,6 +99,13 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
98
99
  }
99
100
  this.editor.shouldEmitFocus = true;
100
101
  this.ngZone.onStable.pipe(take(1)).subscribe(() => this.editor.view.focus());
102
+ this.activeView = this.view;
103
+ }
104
+ /**
105
+ * @hidden
106
+ */
107
+ onActiveViewChange(view) {
108
+ this.activeView = view;
101
109
  }
102
110
  /**
103
111
  * @hidden
@@ -170,6 +178,7 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
170
178
  (activeColorClick)="handleActiveColorClick($event)"
171
179
  (open)="onOpen(colorpicker)"
172
180
  (close)="onClose(colorpicker)"
181
+ (activeViewChange)="onActiveViewChange($event)"
173
182
  >
174
183
  </kendo-colorpicker>
175
184
  </ng-template>
@@ -211,6 +220,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
211
220
  (activeColorClick)="handleActiveColorClick($event)"
212
221
  (open)="onOpen(colorpicker)"
213
222
  (close)="onClose(colorpicker)"
223
+ (activeViewChange)="onActiveViewChange($event)"
214
224
  >
215
225
  </kendo-colorpicker>
216
226
  </ng-template>
@@ -35,7 +35,7 @@ const packageMetadata = {
35
35
  name: '@progress/kendo-angular-editor',
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
38
- publishDate: 1655212375,
38
+ publishDate: 1656578044,
39
39
  version: '',
40
40
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
41
41
  };
@@ -5000,6 +5000,7 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
5000
5000
  this.subs = this.editor.stateChange.subscribe(({ style }) => {
5001
5001
  this.disabled = style.disabled;
5002
5002
  });
5003
+ this.activeView = this.view;
5003
5004
  }
5004
5005
  ngOnDestroy() {
5005
5006
  if (this.subs) {
@@ -5011,7 +5012,7 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
5011
5012
  */
5012
5013
  handleValueChange(color) {
5013
5014
  this.editor.exec(this.editorCommand, color);
5014
- if (this.view === 'palette') {
5015
+ if (this.activeView === 'palette') {
5015
5016
  this.editor.view.focus();
5016
5017
  }
5017
5018
  }
@@ -5038,6 +5039,13 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
5038
5039
  }
5039
5040
  this.editor.shouldEmitFocus = true;
5040
5041
  this.ngZone.onStable.pipe(take(1)).subscribe(() => this.editor.view.focus());
5042
+ this.activeView = this.view;
5043
+ }
5044
+ /**
5045
+ * @hidden
5046
+ */
5047
+ onActiveViewChange(view) {
5048
+ this.activeView = view;
5041
5049
  }
5042
5050
  /**
5043
5051
  * @hidden
@@ -5110,6 +5118,7 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
5110
5118
  (activeColorClick)="handleActiveColorClick($event)"
5111
5119
  (open)="onOpen(colorpicker)"
5112
5120
  (close)="onClose(colorpicker)"
5121
+ (activeViewChange)="onActiveViewChange($event)"
5113
5122
  >
5114
5123
  </kendo-colorpicker>
5115
5124
  </ng-template>
@@ -5151,6 +5160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
5151
5160
  (activeColorClick)="handleActiveColorClick($event)"
5152
5161
  (open)="onOpen(colorpicker)"
5153
5162
  (close)="onClose(colorpicker)"
5163
+ (activeViewChange)="onActiveViewChange($event)"
5154
5164
  >
5155
5165
  </kendo-colorpicker>
5156
5166
  </ng-template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-editor",
3
- "version": "4.1.1",
3
+ "version": "4.1.3-dev.202206300834",
4
4
  "description": "Kendo UI Editor for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -20,7 +20,7 @@
20
20
  "friendlyName": "Editor"
21
21
  },
22
22
  "dependencies": {
23
- "@progress/kendo-editor-common": "1.9.0",
23
+ "@progress/kendo-editor-common": "1.9.1",
24
24
  "@progress/kendo-schematics": "^3.0.0",
25
25
  "tslib": "^2.3.1"
26
26
  },
@@ -64,6 +64,7 @@ export declare class EditorColorPickerComponent extends ToolBarToolComponent {
64
64
  private subs;
65
65
  private valueCache;
66
66
  private editor;
67
+ private activeView;
67
68
  constructor(localization: EditorLocalizationService, dialogService: DialogService, ngZone: NgZone, providerService: ProviderService);
68
69
  ngOnInit(): void;
69
70
  ngOnDestroy(): void;
@@ -83,6 +84,10 @@ export declare class EditorColorPickerComponent extends ToolBarToolComponent {
83
84
  * @hidden
84
85
  */
85
86
  onClose(picker: ColorPickerComponent): void;
87
+ /**
88
+ * @hidden
89
+ */
90
+ onActiveViewChange(view: string | ColorPickerView): void;
86
91
  /**
87
92
  * @hidden
88
93
  */