@progress/kendo-angular-layout 6.3.3-dev.202110050911 → 6.3.5-dev.202110290740

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.
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __metadata, __param, __extends, __assign } from 'tslib';
6
- import { Injectable, Directive, TemplateRef, Optional, isDevMode, Input, ViewChild, ElementRef, HostBinding, ViewChildren, QueryList, ContentChildren, Component, SkipSelf, Host, Output, EventEmitter, ContentChild, HostListener, Renderer2, ChangeDetectorRef, NgZone, Inject, forwardRef, ViewEncapsulation, NgModule } from '@angular/core';
6
+ import { Injectable, Directive, TemplateRef, Optional, isDevMode, Input, ViewChild, ElementRef, HostBinding, ViewChildren, QueryList, ContentChildren, Component, SkipSelf, Host, Renderer2, Output, EventEmitter, ContentChild, HostListener, ChangeDetectorRef, NgZone, Inject, forwardRef, ViewEncapsulation, NgModule } from '@angular/core';
7
7
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
8
8
  import { Keys, PreventableEvent, isDocumentAvailable, hasObservers, EventsModule, DraggableDirective, DraggableModule, ResizeSensorModule } from '@progress/kendo-angular-common';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
@@ -21,7 +21,7 @@ var packageMetadata = {
21
21
  name: '@progress/kendo-angular-layout',
22
22
  productName: 'Kendo UI for Angular',
23
23
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
24
- publishDate: 1633425022,
24
+ publishDate: 1635493161,
25
25
  version: '',
26
26
  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'
27
27
  };
@@ -240,11 +240,12 @@ var nextId$1 = 0;
240
240
  * Represents the items of the PanelBar.
241
241
  */
242
242
  var PanelBarItemComponent = /** @class */ (function () {
243
- function PanelBarItemComponent(parent, eventService, element) {
243
+ function PanelBarItemComponent(parent, eventService, element, renderer) {
244
244
  var _this = this;
245
245
  this.parent = parent;
246
246
  this.eventService = eventService;
247
247
  this.element = element;
248
+ this.renderer = renderer;
248
249
  /**
249
250
  * Allows the component to set the `"id"` property to each item.
250
251
  * Used to set the `id` attributes of the nested elements and to enable the WAI-ARIA support.
@@ -279,6 +280,7 @@ var PanelBarItemComponent = /** @class */ (function () {
279
280
  this.state = "inactive";
280
281
  this.role = "treeitem";
281
282
  this.titleAttribute = null; // tslint:disable-line
283
+ this.kItemClass = true;
282
284
  this.focused = false;
283
285
  this.wrapperFocused = false;
284
286
  this.subscriptions = new Subscription(function () { });
@@ -286,6 +288,7 @@ var PanelBarItemComponent = /** @class */ (function () {
286
288
  this.subscriptions.add(eventService.parent$.subscribe(function (focused) { return _this.onWrapperFocusChange(focused); }));
287
289
  this.subscriptions.add(eventService.keepContent$.subscribe(function (keepContent) { return _this.keepContent = keepContent; }));
288
290
  this.wrapperFocused = parent ? parent.focused : false;
291
+ this.level = this.parent ? this.parent.level + 1 : 0;
289
292
  }
290
293
  PanelBarItemComponent_1 = PanelBarItemComponent;
291
294
  Object.defineProperty(PanelBarItemComponent.prototype, "expanded", {
@@ -313,13 +316,6 @@ var PanelBarItemComponent = /** @class */ (function () {
313
316
  enumerable: true,
314
317
  configurable: true
315
318
  });
316
- Object.defineProperty(PanelBarItemComponent.prototype, "kItemClass", {
317
- get: function () {
318
- return true;
319
- },
320
- enumerable: true,
321
- configurable: true
322
- });
323
319
  Object.defineProperty(PanelBarItemComponent.prototype, "kStateDefaultClass", {
324
320
  get: function () {
325
321
  return !this.disabled;
@@ -369,6 +365,20 @@ var PanelBarItemComponent = /** @class */ (function () {
369
365
  enumerable: true,
370
366
  configurable: true
371
367
  });
368
+ Object.defineProperty(PanelBarItemComponent.prototype, "headerClass", {
369
+ get: function () {
370
+ return this.parent ? null : true;
371
+ },
372
+ enumerable: true,
373
+ configurable: true
374
+ });
375
+ Object.defineProperty(PanelBarItemComponent.prototype, "childClass", {
376
+ get: function () {
377
+ return this.parent ? true : null;
378
+ },
379
+ enumerable: true,
380
+ configurable: true
381
+ });
372
382
  Object.defineProperty(PanelBarItemComponent.prototype, "titleTemplate", {
373
383
  /**
374
384
  * @hidden
@@ -385,9 +395,9 @@ var PanelBarItemComponent = /** @class */ (function () {
385
395
  PanelBarItemComponent.prototype.headerHeight = function () {
386
396
  return this.element.nativeElement.offsetHeight - (this.contentWrapper ? this.contentWrapper.nativeElement.offsetHeight : 0);
387
397
  };
388
- /**
389
- * @hidden
390
- */
398
+ PanelBarItemComponent.prototype.ngOnInit = function () {
399
+ this.addLevelClass();
400
+ };
391
401
  PanelBarItemComponent.prototype.ngAfterContentChecked = function () {
392
402
  var _this = this;
393
403
  this.hasItems = this.items && this.items.filter(function (item) { return !item.hidden; }).length > 0;
@@ -396,9 +406,6 @@ var PanelBarItemComponent = /** @class */ (function () {
396
406
  this.content !== undefined;
397
407
  this.validateConfiguration();
398
408
  };
399
- /**
400
- * @hidden
401
- */
402
409
  PanelBarItemComponent.prototype.ngAfterViewChecked = function () {
403
410
  var _this = this;
404
411
  if (this.items) {
@@ -408,9 +415,6 @@ var PanelBarItemComponent = /** @class */ (function () {
408
415
  this.childrenItems = this.contentItems.filter(function (item) { return item !== _this; });
409
416
  }
410
417
  };
411
- /**
412
- * @hidden
413
- */
414
418
  PanelBarItemComponent.prototype.ngOnDestroy = function () {
415
419
  this.subscriptions.unsubscribe();
416
420
  };
@@ -504,6 +508,14 @@ var PanelBarItemComponent = /** @class */ (function () {
504
508
  });
505
509
  }
506
510
  };
511
+ /**
512
+ * @hidden
513
+ */
514
+ PanelBarItemComponent.prototype.addLevelClass = function () {
515
+ if (this.level >= 0) {
516
+ this.renderer.addClass(this.element.nativeElement, "k-level-" + this.level);
517
+ }
518
+ };
507
519
  PanelBarItemComponent.prototype.onWrapperFocusChange = function (focused) {
508
520
  this.wrapperFocused = focused;
509
521
  };
@@ -571,9 +583,8 @@ var PanelBarItemComponent = /** @class */ (function () {
571
583
  ], PanelBarItemComponent.prototype, "titleAttribute", void 0);
572
584
  __decorate([
573
585
  HostBinding('class.k-item'),
574
- __metadata("design:type", Boolean),
575
- __metadata("design:paramtypes", [])
576
- ], PanelBarItemComponent.prototype, "kItemClass", null);
586
+ __metadata("design:type", Boolean)
587
+ ], PanelBarItemComponent.prototype, "kItemClass", void 0);
577
588
  __decorate([
578
589
  HostBinding('class.k-state-default'),
579
590
  __metadata("design:type", Boolean),
@@ -609,6 +620,16 @@ var PanelBarItemComponent = /** @class */ (function () {
609
620
  __metadata("design:type", Boolean),
610
621
  __metadata("design:paramtypes", [])
611
622
  ], PanelBarItemComponent.prototype, "ariaDisabled", null);
623
+ __decorate([
624
+ HostBinding('class.k-panelbar-header'),
625
+ __metadata("design:type", Boolean),
626
+ __metadata("design:paramtypes", [])
627
+ ], PanelBarItemComponent.prototype, "headerClass", null);
628
+ __decorate([
629
+ HostBinding('class.k-panelbar-item'),
630
+ __metadata("design:type", Boolean),
631
+ __metadata("design:paramtypes", [])
632
+ ], PanelBarItemComponent.prototype, "childClass", null);
612
633
  __decorate([
613
634
  ViewChildren(PanelBarItemComponent_1),
614
635
  __metadata("design:type", QueryList)
@@ -642,12 +663,13 @@ var PanelBarItemComponent = /** @class */ (function () {
642
663
  ],
643
664
  exportAs: 'kendoPanelbarItem',
644
665
  selector: "kendo-panelbar-item",
645
- template: "\n <span\n #header\n [class.k-link]=\"true\"\n [class.k-header]=\"!parent\"\n [class.k-state-selected]=\"!disabled && selected\"\n [class.k-state-focused]=\"focused && wrapperFocused\"\n (click)=\"onItemClick($event)\">\n <span\n *ngIf=\"icon || iconClass\"\n class=\"k-icon\"\n [ngClass]=\"iconClasses\">\n </span>\n <img\n *ngIf=\"imageUrl\"\n class=\"k-image\"\n [src]=\"imageUrl\"\n alt=\"\">\n <ng-container *ngIf=\"!titleTemplate\">{{title}}</ng-container>\n <ng-template *ngIf=\"titleTemplate\" [ngTemplateOutlet]=\"titleTemplate\"></ng-template>\n <span *ngIf=\"hasChildItems || hasContent\"\n [class.k-icon]=\"true\"\n [class.k-i-arrow-n]=\"expanded\"\n [class.k-panelbar-collapse]=\"expanded\"\n [class.k-i-arrow-s]=\"!expanded\"\n [class.k-panelbar-expand]=\"!expanded\">\n </span>\n </span>\n <div #contentWrapper\n *ngIf=\"keepContent || (!disabled && expanded && (hasChildItems || hasContent))\"\n [@toggle]=\"state\"\n [attr.role]=\"'group'\"\n [attr.aria-hidden]=\"!disabled && !expanded\">\n <div\n *ngIf=\"hasChildItems && !items?.length\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group\">\n <ng-content select=\"kendo-panelbar-item\"></ng-content>\n </div>\n <div\n *ngIf=\"hasContent && !content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content\">\n <ng-template\n [ngTemplateOutlet]=\"contentTemplate.first.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n </div>\n <div *ngIf=\"hasItems\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group\">\n <ng-container *ngFor=\"let item of items\">\n <kendo-panelbar-item *ngIf=\"!item.hidden\"\n [title]=\"item.title\"\n [id]=\"item.id\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [selected]=\"!!item.selected\"\n [expanded]=\"!!item.expanded\"\n [disabled]=\"!!item.disabled\"\n [template]=\"template\"\n [items]=\"item.children\"\n [content]=\"item.content\">\n </kendo-panelbar-item>\n </ng-container>\n </div>\n <div\n *ngIf=\"content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content\">\n <ng-template\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{content}}</ng-template>\n </div>\n </div>"
666
+ template: "\n <span\n #header\n [class.k-link]=\"true\"\n [class.k-state-selected]=\"!disabled && selected\"\n [class.k-state-focused]=\"focused && wrapperFocused\"\n (click)=\"onItemClick($event)\">\n <span\n *ngIf=\"icon || iconClass\"\n class=\"k-icon k-panelbar-item-icon\"\n [ngClass]=\"iconClasses\">\n </span>\n <img\n *ngIf=\"imageUrl\"\n class=\"k-image k-panelbar-item-icon\"\n [src]=\"imageUrl\"\n alt=\"\">\n <ng-container *ngIf=\"!titleTemplate\"><span class=\"k-panelbar-item-text\">{{title}}</span></ng-container>\n <ng-template *ngIf=\"titleTemplate\" [ngTemplateOutlet]=\"titleTemplate\"></ng-template>\n <span *ngIf=\"hasChildItems || hasContent\"\n class=\"k-icon k-panelbar-toggle\"\n [ngClass]=\"{'k-i-arrow-chevron-up k-panelbar-collapse': expanded, 'k-i-arrow-chevron-down k-panelbar-expand': !expanded}\">\n </span>\n </span>\n <div #contentWrapper\n *ngIf=\"keepContent || (!disabled && expanded && (hasChildItems || hasContent))\"\n [@toggle]=\"state\"\n [attr.role]=\"'group'\"\n [attr.aria-hidden]=\"!disabled && !expanded\">\n <div\n *ngIf=\"hasChildItems && !items?.length\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group k-panelbar-group\">\n <ng-content select=\"kendo-panelbar-item\"></ng-content>\n </div>\n <div\n *ngIf=\"hasContent && !content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content k-panelbar-content\">\n <ng-template\n [ngTemplateOutlet]=\"contentTemplate.first.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n </div>\n <div *ngIf=\"hasItems\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group k-panelbar-group\">\n <ng-container *ngFor=\"let item of items\">\n <kendo-panelbar-item *ngIf=\"!item.hidden\"\n [title]=\"item.title\"\n [id]=\"item.id\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [selected]=\"!!item.selected\"\n [expanded]=\"!!item.expanded\"\n [disabled]=\"!!item.disabled\"\n [template]=\"template\"\n [items]=\"item.children\"\n [content]=\"item.content\">\n </kendo-panelbar-item>\n </ng-container>\n </div>\n <div\n *ngIf=\"content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content k-panelbar-content\">\n <ng-template\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{content}}</ng-template>\n </div>\n </div>"
646
667
  }),
647
668
  __param(0, SkipSelf()), __param(0, Host()), __param(0, Optional()),
648
669
  __metadata("design:paramtypes", [PanelBarItemComponent,
649
670
  PanelBarService,
650
- ElementRef])
671
+ ElementRef,
672
+ Renderer2])
651
673
  ], PanelBarItemComponent);
652
674
  return PanelBarItemComponent;
653
675
  }());
@@ -708,6 +730,7 @@ var PanelBarComponent = /** @class */ (function () {
708
730
  this.stateChange = new EventEmitter();
709
731
  this.tabIndex = 0;
710
732
  this.role = "tree";
733
+ this.hostClass = true;
711
734
  this.activeDescendant = "";
712
735
  this.isViewInit = true;
713
736
  this.focused = false;
@@ -973,13 +996,6 @@ var PanelBarComponent = /** @class */ (function () {
973
996
  this.stateChange.emit(modifiedItems.map(function (currentItem) { return currentItem.serialize(); }));
974
997
  }
975
998
  };
976
- Object.defineProperty(PanelBarComponent.prototype, "hostClasses", {
977
- get: function () {
978
- return true;
979
- },
980
- enumerable: true,
981
- configurable: true
982
- });
983
999
  PanelBarComponent.prototype.isVisible = function (item) {
984
1000
  var visibleItems = this.visibleItems();
985
1001
  return visibleItems.some(function (i) { return i === item; });
@@ -1130,6 +1146,10 @@ var PanelBarComponent = /** @class */ (function () {
1130
1146
  HostBinding('attr.role'),
1131
1147
  __metadata("design:type", String)
1132
1148
  ], PanelBarComponent.prototype, "role", void 0);
1149
+ __decorate([
1150
+ HostBinding('class.k-panelbar'),
1151
+ __metadata("design:type", Boolean)
1152
+ ], PanelBarComponent.prototype, "hostClass", void 0);
1133
1153
  __decorate([
1134
1154
  HostBinding('attr.aria-activedescendant'),
1135
1155
  __metadata("design:type", String)
@@ -1189,12 +1209,6 @@ var PanelBarComponent = /** @class */ (function () {
1189
1209
  __metadata("design:paramtypes", [Object]),
1190
1210
  __metadata("design:returntype", void 0)
1191
1211
  ], PanelBarComponent.prototype, "onComponentKeyDown", null);
1192
- __decorate([
1193
- HostBinding('class.k-widget'),
1194
- HostBinding('class.k-panelbar'),
1195
- __metadata("design:type", Boolean),
1196
- __metadata("design:paramtypes", [])
1197
- ], PanelBarComponent.prototype, "hostClasses", null);
1198
1212
  PanelBarComponent = __decorate([
1199
1213
  Component({
1200
1214
  exportAs: 'kendoPanelbar',
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-layout',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1633425022,
14
+ publishDate: 1635493161,
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
  };
@@ -21,11 +21,12 @@ var nextId = 0;
21
21
  * Represents the items of the PanelBar.
22
22
  */
23
23
  var PanelBarItemComponent = /** @class */ (function () {
24
- function PanelBarItemComponent(parent, eventService, element) {
24
+ function PanelBarItemComponent(parent, eventService, element, renderer) {
25
25
  var _this = this;
26
26
  this.parent = parent;
27
27
  this.eventService = eventService;
28
28
  this.element = element;
29
+ this.renderer = renderer;
29
30
  /**
30
31
  * Allows the component to set the `"id"` property to each item.
31
32
  * Used to set the `id` attributes of the nested elements and to enable the WAI-ARIA support.
@@ -60,6 +61,7 @@ var PanelBarItemComponent = /** @class */ (function () {
60
61
  this.state = "inactive";
61
62
  this.role = "treeitem";
62
63
  this.titleAttribute = null; // tslint:disable-line
64
+ this.kItemClass = true;
63
65
  this.focused = false;
64
66
  this.wrapperFocused = false;
65
67
  this.subscriptions = new rxjs_1.Subscription(function () { });
@@ -67,6 +69,7 @@ var PanelBarItemComponent = /** @class */ (function () {
67
69
  this.subscriptions.add(eventService.parent$.subscribe(function (focused) { return _this.onWrapperFocusChange(focused); }));
68
70
  this.subscriptions.add(eventService.keepContent$.subscribe(function (keepContent) { return _this.keepContent = keepContent; }));
69
71
  this.wrapperFocused = parent ? parent.focused : false;
72
+ this.level = this.parent ? this.parent.level + 1 : 0;
70
73
  }
71
74
  PanelBarItemComponent_1 = PanelBarItemComponent;
72
75
  Object.defineProperty(PanelBarItemComponent.prototype, "expanded", {
@@ -94,13 +97,6 @@ var PanelBarItemComponent = /** @class */ (function () {
94
97
  enumerable: true,
95
98
  configurable: true
96
99
  });
97
- Object.defineProperty(PanelBarItemComponent.prototype, "kItemClass", {
98
- get: function () {
99
- return true;
100
- },
101
- enumerable: true,
102
- configurable: true
103
- });
104
100
  Object.defineProperty(PanelBarItemComponent.prototype, "kStateDefaultClass", {
105
101
  get: function () {
106
102
  return !this.disabled;
@@ -150,6 +146,20 @@ var PanelBarItemComponent = /** @class */ (function () {
150
146
  enumerable: true,
151
147
  configurable: true
152
148
  });
149
+ Object.defineProperty(PanelBarItemComponent.prototype, "headerClass", {
150
+ get: function () {
151
+ return this.parent ? null : true;
152
+ },
153
+ enumerable: true,
154
+ configurable: true
155
+ });
156
+ Object.defineProperty(PanelBarItemComponent.prototype, "childClass", {
157
+ get: function () {
158
+ return this.parent ? true : null;
159
+ },
160
+ enumerable: true,
161
+ configurable: true
162
+ });
153
163
  Object.defineProperty(PanelBarItemComponent.prototype, "titleTemplate", {
154
164
  /**
155
165
  * @hidden
@@ -166,9 +176,9 @@ var PanelBarItemComponent = /** @class */ (function () {
166
176
  PanelBarItemComponent.prototype.headerHeight = function () {
167
177
  return this.element.nativeElement.offsetHeight - (this.contentWrapper ? this.contentWrapper.nativeElement.offsetHeight : 0);
168
178
  };
169
- /**
170
- * @hidden
171
- */
179
+ PanelBarItemComponent.prototype.ngOnInit = function () {
180
+ this.addLevelClass();
181
+ };
172
182
  PanelBarItemComponent.prototype.ngAfterContentChecked = function () {
173
183
  var _this = this;
174
184
  this.hasItems = this.items && this.items.filter(function (item) { return !item.hidden; }).length > 0;
@@ -177,9 +187,6 @@ var PanelBarItemComponent = /** @class */ (function () {
177
187
  this.content !== undefined;
178
188
  this.validateConfiguration();
179
189
  };
180
- /**
181
- * @hidden
182
- */
183
190
  PanelBarItemComponent.prototype.ngAfterViewChecked = function () {
184
191
  var _this = this;
185
192
  if (this.items) {
@@ -189,9 +196,6 @@ var PanelBarItemComponent = /** @class */ (function () {
189
196
  this.childrenItems = this.contentItems.filter(function (item) { return item !== _this; });
190
197
  }
191
198
  };
192
- /**
193
- * @hidden
194
- */
195
199
  PanelBarItemComponent.prototype.ngOnDestroy = function () {
196
200
  this.subscriptions.unsubscribe();
197
201
  };
@@ -285,6 +289,14 @@ var PanelBarItemComponent = /** @class */ (function () {
285
289
  });
286
290
  }
287
291
  };
292
+ /**
293
+ * @hidden
294
+ */
295
+ PanelBarItemComponent.prototype.addLevelClass = function () {
296
+ if (this.level >= 0) {
297
+ this.renderer.addClass(this.element.nativeElement, "k-level-" + this.level);
298
+ }
299
+ };
288
300
  PanelBarItemComponent.prototype.onWrapperFocusChange = function (focused) {
289
301
  this.wrapperFocused = focused;
290
302
  };
@@ -352,9 +364,8 @@ var PanelBarItemComponent = /** @class */ (function () {
352
364
  ], PanelBarItemComponent.prototype, "titleAttribute", void 0);
353
365
  tslib_1.__decorate([
354
366
  core_1.HostBinding('class.k-item'),
355
- tslib_1.__metadata("design:type", Boolean),
356
- tslib_1.__metadata("design:paramtypes", [])
357
- ], PanelBarItemComponent.prototype, "kItemClass", null);
367
+ tslib_1.__metadata("design:type", Boolean)
368
+ ], PanelBarItemComponent.prototype, "kItemClass", void 0);
358
369
  tslib_1.__decorate([
359
370
  core_1.HostBinding('class.k-state-default'),
360
371
  tslib_1.__metadata("design:type", Boolean),
@@ -390,6 +401,16 @@ var PanelBarItemComponent = /** @class */ (function () {
390
401
  tslib_1.__metadata("design:type", Boolean),
391
402
  tslib_1.__metadata("design:paramtypes", [])
392
403
  ], PanelBarItemComponent.prototype, "ariaDisabled", null);
404
+ tslib_1.__decorate([
405
+ core_1.HostBinding('class.k-panelbar-header'),
406
+ tslib_1.__metadata("design:type", Boolean),
407
+ tslib_1.__metadata("design:paramtypes", [])
408
+ ], PanelBarItemComponent.prototype, "headerClass", null);
409
+ tslib_1.__decorate([
410
+ core_1.HostBinding('class.k-panelbar-item'),
411
+ tslib_1.__metadata("design:type", Boolean),
412
+ tslib_1.__metadata("design:paramtypes", [])
413
+ ], PanelBarItemComponent.prototype, "childClass", null);
393
414
  tslib_1.__decorate([
394
415
  core_1.ViewChildren(PanelBarItemComponent_1),
395
416
  tslib_1.__metadata("design:type", core_1.QueryList)
@@ -423,12 +444,13 @@ var PanelBarItemComponent = /** @class */ (function () {
423
444
  ],
424
445
  exportAs: 'kendoPanelbarItem',
425
446
  selector: "kendo-panelbar-item",
426
- template: "\n <span\n #header\n [class.k-link]=\"true\"\n [class.k-header]=\"!parent\"\n [class.k-state-selected]=\"!disabled && selected\"\n [class.k-state-focused]=\"focused && wrapperFocused\"\n (click)=\"onItemClick($event)\">\n <span\n *ngIf=\"icon || iconClass\"\n class=\"k-icon\"\n [ngClass]=\"iconClasses\">\n </span>\n <img\n *ngIf=\"imageUrl\"\n class=\"k-image\"\n [src]=\"imageUrl\"\n alt=\"\">\n <ng-container *ngIf=\"!titleTemplate\">{{title}}</ng-container>\n <ng-template *ngIf=\"titleTemplate\" [ngTemplateOutlet]=\"titleTemplate\"></ng-template>\n <span *ngIf=\"hasChildItems || hasContent\"\n [class.k-icon]=\"true\"\n [class.k-i-arrow-n]=\"expanded\"\n [class.k-panelbar-collapse]=\"expanded\"\n [class.k-i-arrow-s]=\"!expanded\"\n [class.k-panelbar-expand]=\"!expanded\">\n </span>\n </span>\n <div #contentWrapper\n *ngIf=\"keepContent || (!disabled && expanded && (hasChildItems || hasContent))\"\n [@toggle]=\"state\"\n [attr.role]=\"'group'\"\n [attr.aria-hidden]=\"!disabled && !expanded\">\n <div\n *ngIf=\"hasChildItems && !items?.length\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group\">\n <ng-content select=\"kendo-panelbar-item\"></ng-content>\n </div>\n <div\n *ngIf=\"hasContent && !content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content\">\n <ng-template\n [ngTemplateOutlet]=\"contentTemplate.first.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n </div>\n <div *ngIf=\"hasItems\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group\">\n <ng-container *ngFor=\"let item of items\">\n <kendo-panelbar-item *ngIf=\"!item.hidden\"\n [title]=\"item.title\"\n [id]=\"item.id\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [selected]=\"!!item.selected\"\n [expanded]=\"!!item.expanded\"\n [disabled]=\"!!item.disabled\"\n [template]=\"template\"\n [items]=\"item.children\"\n [content]=\"item.content\">\n </kendo-panelbar-item>\n </ng-container>\n </div>\n <div\n *ngIf=\"content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content\">\n <ng-template\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{content}}</ng-template>\n </div>\n </div>"
447
+ template: "\n <span\n #header\n [class.k-link]=\"true\"\n [class.k-state-selected]=\"!disabled && selected\"\n [class.k-state-focused]=\"focused && wrapperFocused\"\n (click)=\"onItemClick($event)\">\n <span\n *ngIf=\"icon || iconClass\"\n class=\"k-icon k-panelbar-item-icon\"\n [ngClass]=\"iconClasses\">\n </span>\n <img\n *ngIf=\"imageUrl\"\n class=\"k-image k-panelbar-item-icon\"\n [src]=\"imageUrl\"\n alt=\"\">\n <ng-container *ngIf=\"!titleTemplate\"><span class=\"k-panelbar-item-text\">{{title}}</span></ng-container>\n <ng-template *ngIf=\"titleTemplate\" [ngTemplateOutlet]=\"titleTemplate\"></ng-template>\n <span *ngIf=\"hasChildItems || hasContent\"\n class=\"k-icon k-panelbar-toggle\"\n [ngClass]=\"{'k-i-arrow-chevron-up k-panelbar-collapse': expanded, 'k-i-arrow-chevron-down k-panelbar-expand': !expanded}\">\n </span>\n </span>\n <div #contentWrapper\n *ngIf=\"keepContent || (!disabled && expanded && (hasChildItems || hasContent))\"\n [@toggle]=\"state\"\n [attr.role]=\"'group'\"\n [attr.aria-hidden]=\"!disabled && !expanded\">\n <div\n *ngIf=\"hasChildItems && !items?.length\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group k-panelbar-group\">\n <ng-content select=\"kendo-panelbar-item\"></ng-content>\n </div>\n <div\n *ngIf=\"hasContent && !content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content k-panelbar-content\">\n <ng-template\n [ngTemplateOutlet]=\"contentTemplate.first.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n </div>\n <div *ngIf=\"hasItems\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-panel k-group k-panelbar-group\">\n <ng-container *ngFor=\"let item of items\">\n <kendo-panelbar-item *ngIf=\"!item.hidden\"\n [title]=\"item.title\"\n [id]=\"item.id\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [selected]=\"!!item.selected\"\n [expanded]=\"!!item.expanded\"\n [disabled]=\"!!item.disabled\"\n [template]=\"template\"\n [items]=\"item.children\"\n [content]=\"item.content\">\n </kendo-panelbar-item>\n </ng-container>\n </div>\n <div\n *ngIf=\"content\"\n [style.overflow]=\"contentOverflow\"\n [style.height]=\"contentHeight\"\n class=\"k-content k-panelbar-content\">\n <ng-template\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }\">\n </ng-template>\n <ng-template [ngIf]=\"!template\">{{content}}</ng-template>\n </div>\n </div>"
427
448
  }),
428
449
  tslib_1.__param(0, core_1.SkipSelf()), tslib_1.__param(0, core_1.Host()), tslib_1.__param(0, core_1.Optional()),
429
450
  tslib_1.__metadata("design:paramtypes", [PanelBarItemComponent,
430
451
  panelbar_service_1.PanelBarService,
431
- core_1.ElementRef])
452
+ core_1.ElementRef,
453
+ core_1.Renderer2])
432
454
  ], PanelBarItemComponent);
433
455
  return PanelBarItemComponent;
434
456
  }());
@@ -55,6 +55,7 @@ var PanelBarComponent = /** @class */ (function () {
55
55
  this.stateChange = new core_1.EventEmitter();
56
56
  this.tabIndex = 0;
57
57
  this.role = "tree";
58
+ this.hostClass = true;
58
59
  this.activeDescendant = "";
59
60
  this.isViewInit = true;
60
61
  this.focused = false;
@@ -320,13 +321,6 @@ var PanelBarComponent = /** @class */ (function () {
320
321
  this.stateChange.emit(modifiedItems.map(function (currentItem) { return currentItem.serialize(); }));
321
322
  }
322
323
  };
323
- Object.defineProperty(PanelBarComponent.prototype, "hostClasses", {
324
- get: function () {
325
- return true;
326
- },
327
- enumerable: true,
328
- configurable: true
329
- });
330
324
  PanelBarComponent.prototype.isVisible = function (item) {
331
325
  var visibleItems = this.visibleItems();
332
326
  return visibleItems.some(function (i) { return i === item; });
@@ -477,6 +471,10 @@ var PanelBarComponent = /** @class */ (function () {
477
471
  core_1.HostBinding('attr.role'),
478
472
  tslib_1.__metadata("design:type", String)
479
473
  ], PanelBarComponent.prototype, "role", void 0);
474
+ tslib_1.__decorate([
475
+ core_1.HostBinding('class.k-panelbar'),
476
+ tslib_1.__metadata("design:type", Boolean)
477
+ ], PanelBarComponent.prototype, "hostClass", void 0);
480
478
  tslib_1.__decorate([
481
479
  core_1.HostBinding('attr.aria-activedescendant'),
482
480
  tslib_1.__metadata("design:type", String)
@@ -536,12 +534,6 @@ var PanelBarComponent = /** @class */ (function () {
536
534
  tslib_1.__metadata("design:paramtypes", [Object]),
537
535
  tslib_1.__metadata("design:returntype", void 0)
538
536
  ], PanelBarComponent.prototype, "onComponentKeyDown", null);
539
- tslib_1.__decorate([
540
- core_1.HostBinding('class.k-widget'),
541
- core_1.HostBinding('class.k-panelbar'),
542
- tslib_1.__metadata("design:type", Boolean),
543
- tslib_1.__metadata("design:paramtypes", [])
544
- ], PanelBarComponent.prototype, "hostClasses", null);
545
537
  PanelBarComponent = tslib_1.__decorate([
546
538
  core_1.Component({
547
539
  exportAs: 'kendoPanelbar',