@progress/kendo-angular-editor 4.1.0 → 4.1.2-dev.202206161453
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.
- package/bundles/kendo-angular-editor.umd.js +1 -1
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/tools/colorpicker/editor-colorpicker.component.js +13 -1
- package/fesm2015/kendo-angular-editor.js +14 -2
- package/package.json +5 -5
- package/tools/colorpicker/editor-colorpicker.component.d.ts +5 -0
|
@@ -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:
|
|
12
|
+
publishDate: 1655391192,
|
|
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,9 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
71
72
|
*/
|
|
72
73
|
handleValueChange(color) {
|
|
73
74
|
this.editor.exec(this.editorCommand, color);
|
|
74
|
-
this.
|
|
75
|
+
if (this.activeView === 'palette') {
|
|
76
|
+
this.editor.view.focus();
|
|
77
|
+
}
|
|
75
78
|
}
|
|
76
79
|
/**
|
|
77
80
|
* @hidden
|
|
@@ -96,6 +99,13 @@ export class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
96
99
|
}
|
|
97
100
|
this.editor.shouldEmitFocus = true;
|
|
98
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;
|
|
99
109
|
}
|
|
100
110
|
/**
|
|
101
111
|
* @hidden
|
|
@@ -168,6 +178,7 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
168
178
|
(activeColorClick)="handleActiveColorClick($event)"
|
|
169
179
|
(open)="onOpen(colorpicker)"
|
|
170
180
|
(close)="onClose(colorpicker)"
|
|
181
|
+
(activeViewChange)="onActiveViewChange($event)"
|
|
171
182
|
>
|
|
172
183
|
</kendo-colorpicker>
|
|
173
184
|
</ng-template>
|
|
@@ -209,6 +220,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
209
220
|
(activeColorClick)="handleActiveColorClick($event)"
|
|
210
221
|
(open)="onOpen(colorpicker)"
|
|
211
222
|
(close)="onClose(colorpicker)"
|
|
223
|
+
(activeViewChange)="onActiveViewChange($event)"
|
|
212
224
|
>
|
|
213
225
|
</kendo-colorpicker>
|
|
214
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:
|
|
38
|
+
publishDate: 1655391192,
|
|
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,9 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5011
5012
|
*/
|
|
5012
5013
|
handleValueChange(color) {
|
|
5013
5014
|
this.editor.exec(this.editorCommand, color);
|
|
5014
|
-
this.
|
|
5015
|
+
if (this.activeView === 'palette') {
|
|
5016
|
+
this.editor.view.focus();
|
|
5017
|
+
}
|
|
5015
5018
|
}
|
|
5016
5019
|
/**
|
|
5017
5020
|
* @hidden
|
|
@@ -5036,6 +5039,13 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5036
5039
|
}
|
|
5037
5040
|
this.editor.shouldEmitFocus = true;
|
|
5038
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;
|
|
5039
5049
|
}
|
|
5040
5050
|
/**
|
|
5041
5051
|
* @hidden
|
|
@@ -5108,6 +5118,7 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
5108
5118
|
(activeColorClick)="handleActiveColorClick($event)"
|
|
5109
5119
|
(open)="onOpen(colorpicker)"
|
|
5110
5120
|
(close)="onClose(colorpicker)"
|
|
5121
|
+
(activeViewChange)="onActiveViewChange($event)"
|
|
5111
5122
|
>
|
|
5112
5123
|
</kendo-colorpicker>
|
|
5113
5124
|
</ng-template>
|
|
@@ -5149,6 +5160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5149
5160
|
(activeColorClick)="handleActiveColorClick($event)"
|
|
5150
5161
|
(open)="onOpen(colorpicker)"
|
|
5151
5162
|
(close)="onClose(colorpicker)"
|
|
5163
|
+
(activeViewChange)="onActiveViewChange($event)"
|
|
5152
5164
|
>
|
|
5153
5165
|
</kendo-colorpicker>
|
|
5154
5166
|
</ng-template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-editor",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2-dev.202206161453",
|
|
4
4
|
"description": "Kendo UI Editor for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"fallbackTags": {
|
|
75
75
|
"dev": "latest"
|
|
76
76
|
},
|
|
77
|
-
"analyzeCommits": "@
|
|
77
|
+
"analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
|
|
78
78
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
79
|
-
"getLastRelease": "@
|
|
80
|
-
"verifyConditions": "@
|
|
81
|
-
"verifyRelease": "@
|
|
79
|
+
"getLastRelease": "@progress/semantic-prerelease/getLastRelease",
|
|
80
|
+
"verifyConditions": "@progress/semantic-prerelease/verifyConditions",
|
|
81
|
+
"verifyRelease": "@progress/semantic-prerelease/verifyRelease"
|
|
82
82
|
},
|
|
83
83
|
"main": "bundles/kendo-angular-editor.umd.js",
|
|
84
84
|
"module": "fesm2015/kendo-angular-editor.js",
|
|
@@ -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
|
*/
|