@progress/kendo-angular-editor 2.5.0-dev.202111111129 → 2.5.0-dev.202111161123

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: 1636629848,
12
+ publishDate: 1637061495,
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
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 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 { TemplateRef, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
5
+ import { TemplateRef, ElementRef, OnDestroy } from '@angular/core';
6
6
  import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
7
7
  import { PopupRef, PopupService } from '@progress/kendo-angular-popup';
8
8
  import { EditorComponent } from '../../editor.component';
@@ -16,7 +16,7 @@ import { DialogService } from '@progress/kendo-angular-dialog';
16
16
  * <kendo-editor-insert-table-button></kendo-editor-insert-table-button>
17
17
  * ```
18
18
  */
19
- export declare class EditorInsertTableButtonComponent extends ToolBarToolComponent implements AfterViewInit, OnDestroy {
19
+ export declare class EditorInsertTableButtonComponent extends ToolBarToolComponent implements OnDestroy {
20
20
  private editor;
21
21
  private localization;
22
22
  private popupService;
@@ -39,7 +39,6 @@ export declare class EditorInsertTableButtonComponent extends ToolBarToolCompone
39
39
  private cellClicked;
40
40
  private subs;
41
41
  constructor(editor: EditorComponent, localization: EditorLocalizationService, popupService: PopupService, dialogService: DialogService);
42
- ngAfterViewInit(): void;
43
42
  ngOnDestroy(): void;
44
43
  readonly outerWidth: number;
45
44
  readonly title: string;
@@ -42,9 +42,6 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
42
42
  this.toggle(false);
43
43
  }));
44
44
  }
45
- ngAfterViewInit() {
46
- this.getButton().tabIndex = -1;
47
- }
48
45
  ngOnDestroy() {
49
46
  this.destroyPopup();
50
47
  if (this.subs) {
@@ -87,7 +84,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
87
84
  * @hidden
88
85
  */
89
86
  onBlur() {
90
- this.getButton().tabIndex = -1;
87
+ this.tabIndex = -1;
91
88
  this.buttonBlurred.emit();
92
89
  }
93
90
  /**
@@ -108,8 +105,8 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
108
105
  * @hidden
109
106
  */
110
107
  focus() {
108
+ this.tabIndex = 0;
111
109
  this.getButton().focus();
112
- this.getButton().tabIndex = 0;
113
110
  }
114
111
  /**
115
112
  * @hidden
@@ -118,7 +115,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
118
115
  if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
119
116
  return true;
120
117
  }
121
- this.getButton().tabIndex = -1;
118
+ this.tabIndex = -1;
122
119
  return false;
123
120
  }
124
121
  /**
@@ -161,7 +158,7 @@ tslib_1.__decorate([
161
158
  tslib_1.__metadata("design:type", TemplateRef)
162
159
  ], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
163
160
  tslib_1.__decorate([
164
- ViewChild('popupTemplate', { static: true }),
161
+ ViewChild('popupTemplate', { static: false }),
165
162
  tslib_1.__metadata("design:type", TemplateRef)
166
163
  ], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
167
164
  tslib_1.__decorate([
@@ -188,6 +185,7 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = tslib_1.
188
185
  kendoButton
189
186
  #element
190
187
  [attr.title]="title"
188
+ [attr.tabindex]="tabIndex"
191
189
  [icon]="'table-insert'"
192
190
  [disabled]="disabled"
193
191
  (click)="toggle()"
@@ -195,7 +193,14 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = tslib_1.
195
193
  ></button>
196
194
  </ng-template>
197
195
  <ng-template #popupTemplate>
198
- <button kendoButton #overflowElement [attr.title]="title" [icon]="'table-insert'" [disabled]="disabled" (click)="openDialog()">
196
+ <button
197
+ kendoButton
198
+ #overflowElement
199
+ [attr.title]="title"
200
+ [attr.tabindex]="tabIndex"
201
+ [icon]="'table-insert'"
202
+ [disabled]="disabled"
203
+ (click)="openDialog()">
199
204
  {{ title }}
200
205
  </button>
201
206
  </ng-template>
@@ -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: 1636629848,
30
+ publishDate: 1637061495,
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
  };
@@ -5050,9 +5050,6 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5050
5050
  this.toggle(false);
5051
5051
  }));
5052
5052
  }
5053
- ngAfterViewInit() {
5054
- this.getButton().tabIndex = -1;
5055
- }
5056
5053
  ngOnDestroy() {
5057
5054
  this.destroyPopup();
5058
5055
  if (this.subs) {
@@ -5095,7 +5092,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5095
5092
  * @hidden
5096
5093
  */
5097
5094
  onBlur() {
5098
- this.getButton().tabIndex = -1;
5095
+ this.tabIndex = -1;
5099
5096
  this.buttonBlurred.emit();
5100
5097
  }
5101
5098
  /**
@@ -5116,8 +5113,8 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5116
5113
  * @hidden
5117
5114
  */
5118
5115
  focus() {
5116
+ this.tabIndex = 0;
5119
5117
  this.getButton().focus();
5120
- this.getButton().tabIndex = 0;
5121
5118
  }
5122
5119
  /**
5123
5120
  * @hidden
@@ -5126,7 +5123,7 @@ let EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = clas
5126
5123
  if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
5127
5124
  return true;
5128
5125
  }
5129
- this.getButton().tabIndex = -1;
5126
+ this.tabIndex = -1;
5130
5127
  return false;
5131
5128
  }
5132
5129
  /**
@@ -5169,7 +5166,7 @@ __decorate([
5169
5166
  __metadata("design:type", TemplateRef)
5170
5167
  ], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
5171
5168
  __decorate([
5172
- ViewChild('popupTemplate', { static: true }),
5169
+ ViewChild('popupTemplate', { static: false }),
5173
5170
  __metadata("design:type", TemplateRef)
5174
5171
  ], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
5175
5172
  __decorate([
@@ -5196,6 +5193,7 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = __decora
5196
5193
  kendoButton
5197
5194
  #element
5198
5195
  [attr.title]="title"
5196
+ [attr.tabindex]="tabIndex"
5199
5197
  [icon]="'table-insert'"
5200
5198
  [disabled]="disabled"
5201
5199
  (click)="toggle()"
@@ -5203,7 +5201,14 @@ EditorInsertTableButtonComponent = EditorInsertTableButtonComponent_1 = __decora
5203
5201
  ></button>
5204
5202
  </ng-template>
5205
5203
  <ng-template #popupTemplate>
5206
- <button kendoButton #overflowElement [attr.title]="title" [icon]="'table-insert'" [disabled]="disabled" (click)="openDialog()">
5204
+ <button
5205
+ kendoButton
5206
+ #overflowElement
5207
+ [attr.title]="title"
5208
+ [attr.tabindex]="tabIndex"
5209
+ [icon]="'table-insert'"
5210
+ [disabled]="disabled"
5211
+ (click)="openDialog()">
5207
5212
  {{ title }}
5208
5213
  </button>
5209
5214
  </ng-template>
@@ -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: 1636629848,
30
+ publishDate: 1637061495,
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
  };
@@ -4478,9 +4478,6 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4478
4478
  return _this;
4479
4479
  }
4480
4480
  EditorInsertTableButtonComponent_1 = EditorInsertTableButtonComponent;
4481
- EditorInsertTableButtonComponent.prototype.ngAfterViewInit = function () {
4482
- this.getButton().tabIndex = -1;
4483
- };
4484
4481
  EditorInsertTableButtonComponent.prototype.ngOnDestroy = function () {
4485
4482
  this.destroyPopup();
4486
4483
  if (this.subs) {
@@ -4531,7 +4528,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4531
4528
  * @hidden
4532
4529
  */
4533
4530
  EditorInsertTableButtonComponent.prototype.onBlur = function () {
4534
- this.getButton().tabIndex = -1;
4531
+ this.tabIndex = -1;
4535
4532
  this.buttonBlurred.emit();
4536
4533
  };
4537
4534
  /**
@@ -4552,8 +4549,8 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4552
4549
  * @hidden
4553
4550
  */
4554
4551
  EditorInsertTableButtonComponent.prototype.focus = function () {
4552
+ this.tabIndex = 0;
4555
4553
  this.getButton().focus();
4556
- this.getButton().tabIndex = 0;
4557
4554
  };
4558
4555
  /**
4559
4556
  * @hidden
@@ -4562,7 +4559,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4562
4559
  if (ev.keyCode === Keys.Space || ev.keyCode === Keys.Enter) {
4563
4560
  return true;
4564
4561
  }
4565
- this.getButton().tabIndex = -1;
4562
+ this.tabIndex = -1;
4566
4563
  return false;
4567
4564
  };
4568
4565
  /**
@@ -4605,7 +4602,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4605
4602
  __metadata("design:type", TemplateRef)
4606
4603
  ], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
4607
4604
  __decorate([
4608
- ViewChild('popupTemplate', { static: true }),
4605
+ ViewChild('popupTemplate', { static: false }),
4609
4606
  __metadata("design:type", TemplateRef)
4610
4607
  ], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
4611
4608
  __decorate([
@@ -4625,7 +4622,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
4625
4622
  // tslint:disable-next-line:no-forward-ref
4626
4623
  providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return EditorInsertTableButtonComponent_1; }) }],
4627
4624
  selector: 'kendo-editor-insert-table-button',
4628
- template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button kendoButton #overflowElement [attr.title]=\"title\" [icon]=\"'table-insert'\" [disabled]=\"disabled\" (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
4625
+ template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
4629
4626
  }),
4630
4627
  __param(0, Host()),
4631
4628
  __metadata("design:paramtypes", [EditorComponent,
@@ -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: 1636629848,
14
+ publishDate: 1637061495,
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
  };
@@ -47,9 +47,6 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
47
47
  return _this;
48
48
  }
49
49
  EditorInsertTableButtonComponent_1 = EditorInsertTableButtonComponent;
50
- EditorInsertTableButtonComponent.prototype.ngAfterViewInit = function () {
51
- this.getButton().tabIndex = -1;
52
- };
53
50
  EditorInsertTableButtonComponent.prototype.ngOnDestroy = function () {
54
51
  this.destroyPopup();
55
52
  if (this.subs) {
@@ -100,7 +97,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
100
97
  * @hidden
101
98
  */
102
99
  EditorInsertTableButtonComponent.prototype.onBlur = function () {
103
- this.getButton().tabIndex = -1;
100
+ this.tabIndex = -1;
104
101
  this.buttonBlurred.emit();
105
102
  };
106
103
  /**
@@ -121,8 +118,8 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
121
118
  * @hidden
122
119
  */
123
120
  EditorInsertTableButtonComponent.prototype.focus = function () {
121
+ this.tabIndex = 0;
124
122
  this.getButton().focus();
125
- this.getButton().tabIndex = 0;
126
123
  };
127
124
  /**
128
125
  * @hidden
@@ -131,7 +128,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
131
128
  if (ev.keyCode === kendo_angular_common_1.Keys.Space || ev.keyCode === kendo_angular_common_1.Keys.Enter) {
132
129
  return true;
133
130
  }
134
- this.getButton().tabIndex = -1;
131
+ this.tabIndex = -1;
135
132
  return false;
136
133
  };
137
134
  /**
@@ -174,7 +171,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
174
171
  tslib_1.__metadata("design:type", core_1.TemplateRef)
175
172
  ], EditorInsertTableButtonComponent.prototype, "toolbarTemplate", void 0);
176
173
  tslib_1.__decorate([
177
- core_1.ViewChild('popupTemplate', { static: true }),
174
+ core_1.ViewChild('popupTemplate', { static: false }),
178
175
  tslib_1.__metadata("design:type", core_1.TemplateRef)
179
176
  ], EditorInsertTableButtonComponent.prototype, "popupTemplate", void 0);
180
177
  tslib_1.__decorate([
@@ -194,7 +191,7 @@ var EditorInsertTableButtonComponent = /** @class */ (function (_super) {
194
191
  // tslint:disable-next-line:no-forward-ref
195
192
  providers: [{ provide: kendo_angular_toolbar_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return EditorInsertTableButtonComponent_1; }) }],
196
193
  selector: 'kendo-editor-insert-table-button',
197
- template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button kendoButton #overflowElement [attr.title]=\"title\" [icon]=\"'table-insert'\" [disabled]=\"disabled\" (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
194
+ template: "\n <ng-template #toolbarTemplate>\n <button\n type=\"button\"\n kendoButton\n #element\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (blur)=\"onBlur()\"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]=\"title\"\n [attr.tabindex]=\"tabIndex\"\n [icon]=\"'table-insert'\"\n [disabled]=\"disabled\"\n (click)=\"openDialog()\">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\" (tableWizardClick)=\"onTableWizardClick()\"></kendo-popup-table-grid>\n </ng-template>\n "
198
195
  }),
199
196
  tslib_1.__param(0, core_1.Host()),
200
197
  tslib_1.__metadata("design:paramtypes", [editor_component_1.EditorComponent,