@progress/kendo-angular-editor 3.0.1-dev.202201201312 → 3.0.3-dev.202201281650

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: 1642684027,
12
+ publishDate: 1643388362,
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
  };
@@ -46,6 +46,9 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
46
46
  set view(view) {
47
47
  this.views = [view];
48
48
  }
49
+ get view() {
50
+ return (this.views && this.views.length > 0) ? this.views[0] : null;
51
+ }
49
52
  /**
50
53
  * @hidden
51
54
  */
@@ -67,6 +70,7 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
67
70
  */
68
71
  handleValueChange(color) {
69
72
  this.editor.exec(this.editorCommand, color);
73
+ this.editor.view.focus();
70
74
  }
71
75
  /**
72
76
  * @hidden
@@ -89,6 +93,7 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
89
93
  if (!picker.value) {
90
94
  picker.value = this.valueCache;
91
95
  }
96
+ this.editor.shouldEmitFocus = true;
92
97
  this.ngZone.onStable.pipe(take(1)).subscribe(() => this.editor.view.focus());
93
98
  }
94
99
  /**
@@ -202,10 +207,10 @@ EditorColorPickerComponent = EditorColorPickerComponent_1 = tslib_1.__decorate([
202
207
  <ng-template #toolbarTemplate>
203
208
  <kendo-colorpicker
204
209
  #colorpicker
205
- [views]="['palette']"
206
- [format]="'hex'"
207
210
  [attr.title]="title"
208
211
  [icon]="icon"
212
+ [views]="views"
213
+ [format]="'hex'"
209
214
  [value]="value"
210
215
  [paletteSettings]="paletteSettings"
211
216
  [disabled]="disabled"
@@ -61,7 +61,7 @@ PopupTableGridComponent = tslib_1.__decorate([
61
61
  <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">
62
62
  <span *ngFor="let i of cells"
63
63
  class="k-ct-cell"
64
- [class.k-selected]="selected(i)"
64
+ [class.k-state-selected]="selected(i)"
65
65
  [class.k-disabled]="!selected(i)"
66
66
  (mouseenter)="setState(i)">
67
67
  </span>
@@ -27,7 +27,7 @@ const packageMetadata = {
27
27
  name: '@progress/kendo-angular-editor',
28
28
  productName: 'Kendo UI for Angular',
29
29
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
30
- publishDate: 1642684027,
30
+ publishDate: 1643388362,
31
31
  version: '',
32
32
  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'
33
33
  };
@@ -1861,22 +1861,30 @@ let EditorComponent = EditorComponent_1 = class EditorComponent {
1861
1861
  containerElement = this.container.element.nativeElement;
1862
1862
  }
1863
1863
  this.subs.add(fromEvent(containerElement, 'focusin')
1864
- .subscribe(() => {
1864
+ .subscribe((e) => {
1865
1865
  if (this.readonly) {
1866
1866
  contentAreaClasslist.add('k-focus');
1867
1867
  }
1868
1868
  if (!this.focusChangedProgrammatically || this.shouldEmitFocus) {
1869
- this.ngZone.run(() => this.onFocus.emit());
1869
+ const relatedTarget = e.relatedTarget;
1870
+ const isActiveColorButton = relatedTarget && relatedTarget.classList.contains('k-colorpicker');
1871
+ if (!isActiveColorButton || this.shouldEmitFocus) {
1872
+ this.ngZone.run(() => this.onFocus.emit());
1873
+ }
1870
1874
  this.shouldEmitFocus = false;
1871
1875
  }
1872
1876
  }));
1873
1877
  this.subs.add(fromEvent(containerElement, 'focusout')
1874
- .subscribe(() => {
1878
+ .subscribe((e) => {
1875
1879
  if (this.readonly) {
1876
1880
  contentAreaClasslist.remove('k-focus');
1877
1881
  }
1878
1882
  if (!this.focusChangedProgrammatically) {
1879
- this.ngZone.run(() => this.onBlur.emit());
1883
+ const relatedTarget = e.relatedTarget;
1884
+ const isActiveColorButton = relatedTarget && relatedTarget.classList.contains('k-colorpicker');
1885
+ if (!isActiveColorButton) {
1886
+ this.ngZone.run(() => this.onBlur.emit());
1887
+ }
1880
1888
  }
1881
1889
  }));
1882
1890
  }
@@ -2500,6 +2508,7 @@ let ColorPickerDialogComponent = class ColorPickerDialogComponent extends Dialog
2500
2508
  this.editor.exec(this.editorCommand, this.value);
2501
2509
  }
2502
2510
  this.dialog.close();
2511
+ this.editor.view.focus();
2503
2512
  }
2504
2513
  setData(args) {
2505
2514
  this.editor = args.editor;
@@ -2507,7 +2516,7 @@ let ColorPickerDialogComponent = class ColorPickerDialogComponent extends Dialog
2507
2516
  this.editorCommand = args.editorCommand;
2508
2517
  this.paletteSettings = args.paletteSettings;
2509
2518
  this.icon = args.icon;
2510
- this.view = args.view;
2519
+ this.views = args.view ? [args.view] : args.views;
2511
2520
  }
2512
2521
  textFor(key) {
2513
2522
  return this.localization.get(key);
@@ -2532,7 +2541,7 @@ ColorPickerDialogComponent = __decorate([
2532
2541
  <div class="k-edit-form-container k-window-content" style="text-align: center;">
2533
2542
  <kendo-colorpicker
2534
2543
  #colorpicker
2535
- [views]="['palette']"
2544
+ [views]="views"
2536
2545
  [format]="'hex'"
2537
2546
  [attr.title]="title"
2538
2547
  [icon]="icon"
@@ -3573,6 +3582,9 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
3573
3582
  set view(view) {
3574
3583
  this.views = [view];
3575
3584
  }
3585
+ get view() {
3586
+ return (this.views && this.views.length > 0) ? this.views[0] : null;
3587
+ }
3576
3588
  /**
3577
3589
  * @hidden
3578
3590
  */
@@ -3594,6 +3606,7 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
3594
3606
  */
3595
3607
  handleValueChange(color) {
3596
3608
  this.editor.exec(this.editorCommand, color);
3609
+ this.editor.view.focus();
3597
3610
  }
3598
3611
  /**
3599
3612
  * @hidden
@@ -3616,6 +3629,7 @@ let EditorColorPickerComponent = EditorColorPickerComponent_1 = class EditorColo
3616
3629
  if (!picker.value) {
3617
3630
  picker.value = this.valueCache;
3618
3631
  }
3632
+ this.editor.shouldEmitFocus = true;
3619
3633
  this.ngZone.onStable.pipe(take(1)).subscribe(() => this.editor.view.focus());
3620
3634
  }
3621
3635
  /**
@@ -3729,10 +3743,10 @@ EditorColorPickerComponent = EditorColorPickerComponent_1 = __decorate([
3729
3743
  <ng-template #toolbarTemplate>
3730
3744
  <kendo-colorpicker
3731
3745
  #colorpicker
3732
- [views]="['palette']"
3733
- [format]="'hex'"
3734
3746
  [attr.title]="title"
3735
3747
  [icon]="icon"
3748
+ [views]="views"
3749
+ [format]="'hex'"
3736
3750
  [value]="value"
3737
3751
  [paletteSettings]="paletteSettings"
3738
3752
  [disabled]="disabled"
@@ -4028,7 +4042,7 @@ PopupTableGridComponent = __decorate([
4028
4042
  <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">
4029
4043
  <span *ngFor="let i of cells"
4030
4044
  class="k-ct-cell"
4031
- [class.k-selected]="selected(i)"
4045
+ [class.k-state-selected]="selected(i)"
4032
4046
  [class.k-disabled]="!selected(i)"
4033
4047
  (mouseenter)="setState(i)">
4034
4048
  </span>
@@ -27,7 +27,7 @@ var packageMetadata = {
27
27
  name: '@progress/kendo-angular-editor',
28
28
  productName: 'Kendo UI for Angular',
29
29
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
30
- publishDate: 1642684027,
30
+ publishDate: 1643388362,
31
31
  version: '',
32
32
  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'
33
33
  };
@@ -1660,22 +1660,30 @@ var EditorComponent = /** @class */ (function () {
1660
1660
  containerElement = this.container.element.nativeElement;
1661
1661
  }
1662
1662
  this.subs.add(fromEvent(containerElement, 'focusin')
1663
- .subscribe(function () {
1663
+ .subscribe(function (e) {
1664
1664
  if (_this.readonly) {
1665
1665
  contentAreaClasslist_1.add('k-focus');
1666
1666
  }
1667
1667
  if (!_this.focusChangedProgrammatically || _this.shouldEmitFocus) {
1668
- _this.ngZone.run(function () { return _this.onFocus.emit(); });
1668
+ var relatedTarget = e.relatedTarget;
1669
+ var isActiveColorButton = relatedTarget && relatedTarget.classList.contains('k-colorpicker');
1670
+ if (!isActiveColorButton || _this.shouldEmitFocus) {
1671
+ _this.ngZone.run(function () { return _this.onFocus.emit(); });
1672
+ }
1669
1673
  _this.shouldEmitFocus = false;
1670
1674
  }
1671
1675
  }));
1672
1676
  this.subs.add(fromEvent(containerElement, 'focusout')
1673
- .subscribe(function () {
1677
+ .subscribe(function (e) {
1674
1678
  if (_this.readonly) {
1675
1679
  contentAreaClasslist_1.remove('k-focus');
1676
1680
  }
1677
1681
  if (!_this.focusChangedProgrammatically) {
1678
- _this.ngZone.run(function () { return _this.onBlur.emit(); });
1682
+ var relatedTarget = e.relatedTarget;
1683
+ var isActiveColorButton = relatedTarget && relatedTarget.classList.contains('k-colorpicker');
1684
+ if (!isActiveColorButton) {
1685
+ _this.ngZone.run(function () { return _this.onBlur.emit(); });
1686
+ }
1679
1687
  }
1680
1688
  }));
1681
1689
  }
@@ -2074,6 +2082,7 @@ var ColorPickerDialogComponent = /** @class */ (function (_super) {
2074
2082
  this.editor.exec(this.editorCommand, this.value);
2075
2083
  }
2076
2084
  this.dialog.close();
2085
+ this.editor.view.focus();
2077
2086
  };
2078
2087
  ColorPickerDialogComponent.prototype.setData = function (args) {
2079
2088
  this.editor = args.editor;
@@ -2081,7 +2090,7 @@ var ColorPickerDialogComponent = /** @class */ (function (_super) {
2081
2090
  this.editorCommand = args.editorCommand;
2082
2091
  this.paletteSettings = args.paletteSettings;
2083
2092
  this.icon = args.icon;
2084
- this.view = args.view;
2093
+ this.views = args.view ? [args.view] : args.views;
2085
2094
  };
2086
2095
  ColorPickerDialogComponent.prototype.textFor = function (key) {
2087
2096
  return this.localization.get(key);
@@ -2096,7 +2105,7 @@ var ColorPickerDialogComponent = /** @class */ (function (_super) {
2096
2105
  ], ColorPickerDialogComponent.prototype, "colorPicker", void 0);
2097
2106
  ColorPickerDialogComponent = __decorate([
2098
2107
  Component({
2099
- template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-colorpicker\n #colorpicker\n [views]=\"['palette']\"\n [format]=\"'hex'\"\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [(value)]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
2108
+ template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-colorpicker\n #colorpicker\n [views]=\"views\"\n [format]=\"'hex'\"\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [(value)]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
2100
2109
  }),
2101
2110
  __metadata("design:paramtypes", [DialogRef,
2102
2111
  EditorLocalizationService])
@@ -2986,6 +2995,9 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
2986
2995
  }
2987
2996
  EditorColorPickerComponent_1 = EditorColorPickerComponent;
2988
2997
  Object.defineProperty(EditorColorPickerComponent.prototype, "view", {
2998
+ get: function () {
2999
+ return (this.views && this.views.length > 0) ? this.views[0] : null;
3000
+ },
2989
3001
  /**
2990
3002
  * @hidden
2991
3003
  *
@@ -3024,6 +3036,7 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
3024
3036
  */
3025
3037
  EditorColorPickerComponent.prototype.handleValueChange = function (color) {
3026
3038
  this.editor.exec(this.editorCommand, color);
3039
+ this.editor.view.focus();
3027
3040
  };
3028
3041
  /**
3029
3042
  * @hidden
@@ -3047,6 +3060,7 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
3047
3060
  if (!picker.value) {
3048
3061
  picker.value = this.valueCache;
3049
3062
  }
3063
+ this.editor.shouldEmitFocus = true;
3050
3064
  this.ngZone.onStable.pipe(take(1)).subscribe(function () { return _this.editor.view.focus(); });
3051
3065
  };
3052
3066
  Object.defineProperty(EditorColorPickerComponent.prototype, "outerWidth", {
@@ -3160,7 +3174,7 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
3160
3174
  Component({
3161
3175
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return EditorColorPickerComponent_1; }) }],
3162
3176
  selector: 'kendo-toolbar-colorpicker',
3163
- template: "\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [views]=\"['palette']\"\n [format]=\"'hex'\"\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [value]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"handleValueChange($event)\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n (open)=\"onOpen(colorpicker)\"\n (close)=\"onClose(colorpicker)\"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #colorPickerButton\n class=\"k-overflow-button\"\n [icon]=\"icon\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
3177
+ template: "\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [views]=\"views\"\n [format]=\"'hex'\"\n [value]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"handleValueChange($event)\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n (open)=\"onOpen(colorpicker)\"\n (close)=\"onClose(colorpicker)\"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #colorPickerButton\n class=\"k-overflow-button\"\n [icon]=\"icon\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
3164
3178
  }),
3165
3179
  __param(0, Host()),
3166
3180
  __metadata("design:paramtypes", [EditorComponent,
@@ -3414,7 +3428,7 @@ var PopupTableGridComponent = /** @class */ (function () {
3414
3428
  PopupTableGridComponent = __decorate([
3415
3429
  Component({
3416
3430
  selector: 'kendo-popup-table-grid',
3417
- template: "\n <div style=\"border-color: inherit;\" (mouseleave)=\"resetState()\" (click)=\"insertTable()\">\n <span *ngFor=\"let i of cells\"\n class=\"k-ct-cell\"\n [class.k-selected]=\"selected(i)\"\n [class.k-disabled]=\"!selected(i)\"\n (mouseenter)=\"setState(i)\">\n </span>\n </div>\n <div class=\"k-status\" unselectable=\"on\">{{ message }}</div>\n <!-- uncomment when TableWizard is completed\n <div class=\"k-editor-toolbar\" unselectable=\"on\">\n <button type=\"button\" kendoButton class=\"k-tool\" [icon]=\"'table-wizard'\" (click)=\"openTableWizard()\" title=\"Table Wizard\">Table Wizard</button>\n </div>\n -->\n "
3431
+ template: "\n <div style=\"border-color: inherit;\" (mouseleave)=\"resetState()\" (click)=\"insertTable()\">\n <span *ngFor=\"let i of cells\"\n class=\"k-ct-cell\"\n [class.k-state-selected]=\"selected(i)\"\n [class.k-disabled]=\"!selected(i)\"\n (mouseenter)=\"setState(i)\">\n </span>\n </div>\n <div class=\"k-status\" unselectable=\"on\">{{ message }}</div>\n <!-- uncomment when TableWizard is completed\n <div class=\"k-editor-toolbar\" unselectable=\"on\">\n <button type=\"button\" kendoButton class=\"k-tool\" [icon]=\"'table-wizard'\" (click)=\"openTableWizard()\" title=\"Table Wizard\">Table Wizard</button>\n </div>\n -->\n "
3418
3432
  })
3419
3433
  ], PopupTableGridComponent);
3420
3434
  return PopupTableGridComponent;
@@ -39,6 +39,7 @@ var ColorPickerDialogComponent = /** @class */ (function (_super) {
39
39
  this.editor.exec(this.editorCommand, this.value);
40
40
  }
41
41
  this.dialog.close();
42
+ this.editor.view.focus();
42
43
  };
43
44
  ColorPickerDialogComponent.prototype.setData = function (args) {
44
45
  this.editor = args.editor;
@@ -46,7 +47,7 @@ var ColorPickerDialogComponent = /** @class */ (function (_super) {
46
47
  this.editorCommand = args.editorCommand;
47
48
  this.paletteSettings = args.paletteSettings;
48
49
  this.icon = args.icon;
49
- this.view = args.view;
50
+ this.views = args.view ? [args.view] : args.views;
50
51
  };
51
52
  ColorPickerDialogComponent.prototype.textFor = function (key) {
52
53
  return this.localization.get(key);
@@ -61,7 +62,7 @@ var ColorPickerDialogComponent = /** @class */ (function (_super) {
61
62
  ], ColorPickerDialogComponent.prototype, "colorPicker", void 0);
62
63
  ColorPickerDialogComponent = tslib_1.__decorate([
63
64
  core_1.Component({
64
- template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-colorpicker\n #colorpicker\n [views]=\"['palette']\"\n [format]=\"'hex'\"\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [(value)]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
65
+ template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-colorpicker\n #colorpicker\n [views]=\"views\"\n [format]=\"'hex'\"\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [(value)]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
65
66
  }),
66
67
  tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
67
68
  editor_localization_service_1.EditorLocalizationService])
@@ -762,22 +762,30 @@ var EditorComponent = /** @class */ (function () {
762
762
  containerElement = this.container.element.nativeElement;
763
763
  }
764
764
  this.subs.add(rxjs_1.fromEvent(containerElement, 'focusin')
765
- .subscribe(function () {
765
+ .subscribe(function (e) {
766
766
  if (_this.readonly) {
767
767
  contentAreaClasslist_1.add('k-focus');
768
768
  }
769
769
  if (!_this.focusChangedProgrammatically || _this.shouldEmitFocus) {
770
- _this.ngZone.run(function () { return _this.onFocus.emit(); });
770
+ var relatedTarget = e.relatedTarget;
771
+ var isActiveColorButton = relatedTarget && relatedTarget.classList.contains('k-colorpicker');
772
+ if (!isActiveColorButton || _this.shouldEmitFocus) {
773
+ _this.ngZone.run(function () { return _this.onFocus.emit(); });
774
+ }
771
775
  _this.shouldEmitFocus = false;
772
776
  }
773
777
  }));
774
778
  this.subs.add(rxjs_1.fromEvent(containerElement, 'focusout')
775
- .subscribe(function () {
779
+ .subscribe(function (e) {
776
780
  if (_this.readonly) {
777
781
  contentAreaClasslist_1.remove('k-focus');
778
782
  }
779
783
  if (!_this.focusChangedProgrammatically) {
780
- _this.ngZone.run(function () { return _this.onBlur.emit(); });
784
+ var relatedTarget = e.relatedTarget;
785
+ var isActiveColorButton = relatedTarget && relatedTarget.classList.contains('k-colorpicker');
786
+ if (!isActiveColorButton) {
787
+ _this.ngZone.run(function () { return _this.onBlur.emit(); });
788
+ }
781
789
  }
782
790
  }));
783
791
  }
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-editor',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1642684027,
14
+ publishDate: 1643388362,
15
15
  version: '',
16
16
  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'
17
17
  };
@@ -43,6 +43,9 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
43
43
  }
44
44
  EditorColorPickerComponent_1 = EditorColorPickerComponent;
45
45
  Object.defineProperty(EditorColorPickerComponent.prototype, "view", {
46
+ get: function () {
47
+ return (this.views && this.views.length > 0) ? this.views[0] : null;
48
+ },
46
49
  /**
47
50
  * @hidden
48
51
  *
@@ -81,6 +84,7 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
81
84
  */
82
85
  EditorColorPickerComponent.prototype.handleValueChange = function (color) {
83
86
  this.editor.exec(this.editorCommand, color);
87
+ this.editor.view.focus();
84
88
  };
85
89
  /**
86
90
  * @hidden
@@ -104,6 +108,7 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
104
108
  if (!picker.value) {
105
109
  picker.value = this.valueCache;
106
110
  }
111
+ this.editor.shouldEmitFocus = true;
107
112
  this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function () { return _this.editor.view.focus(); });
108
113
  };
109
114
  Object.defineProperty(EditorColorPickerComponent.prototype, "outerWidth", {
@@ -217,7 +222,7 @@ var EditorColorPickerComponent = /** @class */ (function (_super) {
217
222
  core_1.Component({
218
223
  providers: [{ provide: kendo_angular_toolbar_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return EditorColorPickerComponent_1; }) }],
219
224
  selector: 'kendo-toolbar-colorpicker',
220
- template: "\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [views]=\"['palette']\"\n [format]=\"'hex'\"\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [value]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"handleValueChange($event)\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n (open)=\"onOpen(colorpicker)\"\n (close)=\"onClose(colorpicker)\"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #colorPickerButton\n class=\"k-overflow-button\"\n [icon]=\"icon\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
225
+ template: "\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [views]=\"views\"\n [format]=\"'hex'\"\n [value]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"handleValueChange($event)\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n (open)=\"onOpen(colorpicker)\"\n (close)=\"onClose(colorpicker)\"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #colorPickerButton\n class=\"k-overflow-button\"\n [icon]=\"icon\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
221
226
  }),
222
227
  tslib_1.__param(0, core_1.Host()),
223
228
  tslib_1.__metadata("design:paramtypes", [editor_component_1.EditorComponent,
@@ -63,7 +63,7 @@ var PopupTableGridComponent = /** @class */ (function () {
63
63
  PopupTableGridComponent = tslib_1.__decorate([
64
64
  core_1.Component({
65
65
  selector: 'kendo-popup-table-grid',
66
- template: "\n <div style=\"border-color: inherit;\" (mouseleave)=\"resetState()\" (click)=\"insertTable()\">\n <span *ngFor=\"let i of cells\"\n class=\"k-ct-cell\"\n [class.k-selected]=\"selected(i)\"\n [class.k-disabled]=\"!selected(i)\"\n (mouseenter)=\"setState(i)\">\n </span>\n </div>\n <div class=\"k-status\" unselectable=\"on\">{{ message }}</div>\n <!-- uncomment when TableWizard is completed\n <div class=\"k-editor-toolbar\" unselectable=\"on\">\n <button type=\"button\" kendoButton class=\"k-tool\" [icon]=\"'table-wizard'\" (click)=\"openTableWizard()\" title=\"Table Wizard\">Table Wizard</button>\n </div>\n -->\n "
66
+ template: "\n <div style=\"border-color: inherit;\" (mouseleave)=\"resetState()\" (click)=\"insertTable()\">\n <span *ngFor=\"let i of cells\"\n class=\"k-ct-cell\"\n [class.k-state-selected]=\"selected(i)\"\n [class.k-disabled]=\"!selected(i)\"\n (mouseenter)=\"setState(i)\">\n </span>\n </div>\n <div class=\"k-status\" unselectable=\"on\">{{ message }}</div>\n <!-- uncomment when TableWizard is completed\n <div class=\"k-editor-toolbar\" unselectable=\"on\">\n <button type=\"button\" kendoButton class=\"k-tool\" [icon]=\"'table-wizard'\" (click)=\"openTableWizard()\" title=\"Table Wizard\">Table Wizard</button>\n </div>\n -->\n "
67
67
  })
68
68
  ], PopupTableGridComponent);
69
69
  return PopupTableGridComponent;