@progress/kendo-angular-layout 6.3.6 → 6.4.1-dev.202201241447

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.
Files changed (47) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-layout.js +2 -2
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/avatar/avatar.component.js +120 -90
  7. package/dist/es/avatar/models/models.js +4 -0
  8. package/dist/es/avatar/models/rounded.js +4 -0
  9. package/dist/es/common/styling-classes.js +4 -0
  10. package/dist/es/common/util.js +40 -0
  11. package/dist/es/main.js +1 -0
  12. package/dist/es/package-metadata.js +1 -1
  13. package/dist/es/tabstrip/scrollable-button.component.js +6 -3
  14. package/dist/es2015/avatar/avatar.component.d.ts +30 -30
  15. package/dist/es2015/avatar/avatar.component.js +111 -81
  16. package/dist/es2015/avatar/models/fill.d.ts +2 -8
  17. package/dist/es2015/avatar/models/models.d.ts +9 -0
  18. package/dist/es2015/avatar/models/models.js +4 -0
  19. package/dist/es2015/avatar/models/rounded.d.ts +8 -0
  20. package/dist/es2015/avatar/models/rounded.js +4 -0
  21. package/dist/es2015/avatar/models/shape.d.ts +2 -8
  22. package/dist/es2015/avatar/models/size.d.ts +1 -8
  23. package/dist/es2015/avatar/models/theme-color.d.ts +2 -17
  24. package/dist/es2015/common/styling-classes.d.ts +11 -0
  25. package/dist/es2015/common/styling-classes.js +4 -0
  26. package/dist/es2015/common/util.d.ts +12 -0
  27. package/dist/es2015/common/util.js +40 -0
  28. package/dist/es2015/index.metadata.json +1 -1
  29. package/dist/es2015/main.d.ts +1 -4
  30. package/dist/es2015/main.js +1 -0
  31. package/dist/es2015/package-metadata.js +1 -1
  32. package/dist/es2015/tabstrip/scrollable-button.component.js +6 -3
  33. package/dist/es2015/tilelayout/tilelayout-item.component.d.ts +2 -2
  34. package/dist/es2015/tilelayout/tilelayout-resize-handle.directive.d.ts +2 -2
  35. package/dist/es2015/tilelayout/tilelayout.component.d.ts +2 -2
  36. package/dist/fesm2015/index.js +157 -85
  37. package/dist/fesm5/index.js +166 -94
  38. package/dist/npm/avatar/avatar.component.js +120 -90
  39. package/dist/npm/avatar/models/models.js +6 -0
  40. package/dist/npm/avatar/models/rounded.js +6 -0
  41. package/dist/npm/common/styling-classes.js +6 -0
  42. package/dist/npm/common/util.js +40 -0
  43. package/dist/npm/main.js +1 -0
  44. package/dist/npm/package-metadata.js +1 -1
  45. package/dist/npm/tabstrip/scrollable-button.component.js +6 -3
  46. package/dist/systemjs/kendo-angular-layout.js +1 -1
  47. package/package.json +13 -11
@@ -36,10 +36,7 @@ export { LocalizedStepperMessagesDirective } from './stepper/localization/locali
36
36
  export * from './stepper/template-directives';
37
37
  export * from './stepper/types';
38
38
  export { AvatarComponent } from './avatar/avatar.component';
39
- export { AvatarShape, Shape } from './avatar/models/shape';
40
- export { AvatarSize } from './avatar/models/size';
41
- export { AvatarFill } from './avatar/models/fill';
42
- export { AvatarThemeColor } from './avatar/models/theme-color';
39
+ export { AvatarShape, Shape, AvatarRounded, AvatarFillMode, AvatarFillMode as AvatarFill, AvatarSize, AvatarThemeColor } from './avatar/models/models';
43
40
  export { CardComponent } from './card/card.component';
44
41
  export { CardHeaderComponent } from './card/card-header.component';
45
42
  export { CardBodyComponent } from './card/card-body.component';
@@ -29,6 +29,7 @@ export { StepperActivateEvent } from './stepper/events/activate-event';
29
29
  export { StepperCustomMessagesComponent } from './stepper/localization/custom-messages.component';
30
30
  export { LocalizedStepperMessagesDirective } from './stepper/localization/localized-messages.directive';
31
31
  export * from './stepper/template-directives';
32
+ // Avatar exports
32
33
  export { AvatarComponent } from './avatar/avatar.component';
33
34
  // Card exports
34
35
  export { CardComponent } from './card/card.component';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-layout',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1636621149,
12
+ publishDate: 1643035523,
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
  };
@@ -69,8 +69,11 @@ let TabStripScrollableButtonComponent = class TabStripScrollableButtonComponent
69
69
  };
70
70
  tslib_1.__decorate([
71
71
  HostBinding('class.k-button'),
72
- HostBinding('class.k-button-icon'),
73
- HostBinding('class.k-flat'),
72
+ HostBinding('class.k-button-md'),
73
+ HostBinding('class.k-icon-button'),
74
+ HostBinding('class.k-rounded-md'),
75
+ HostBinding('class.k-button-flat'),
76
+ HostBinding('class.k-button-flat-base'),
74
77
  tslib_1.__metadata("design:type", Boolean)
75
78
  ], TabStripScrollableButtonComponent.prototype, "btnClasses", void 0);
76
79
  tslib_1.__decorate([
@@ -95,7 +98,7 @@ tslib_1.__decorate([
95
98
  TabStripScrollableButtonComponent = tslib_1.__decorate([
96
99
  Component({
97
100
  template: `
98
- <span class="k-icon" [ngClass]="iconClass"></span>
101
+ <span class="k-icon k-button-icon" [ngClass]="iconClass"></span>
99
102
  `,
100
103
  selector: '[kendoTabStripScrollableButton]'
101
104
  }),
@@ -2,13 +2,13 @@
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 { ElementRef, Renderer2, SimpleChanges } from '@angular/core';
5
+ import { AfterViewInit, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { TileLayoutDraggingService } from './dragging-service';
8
8
  /**
9
9
  * Represents a tile item within the TileLayoutComponent.
10
10
  */
11
- export declare class TileLayoutItemComponent {
11
+ export declare class TileLayoutItemComponent implements AfterViewInit, OnDestroy, OnChanges {
12
12
  elem: ElementRef;
13
13
  private renderer;
14
14
  private localization;
@@ -2,11 +2,11 @@
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 { ElementRef, Renderer2 } from '@angular/core';
5
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
6
6
  /**
7
7
  * @hidden
8
8
  */
9
- export declare class TileLayoutResizeHandleDirective {
9
+ export declare class TileLayoutResizeHandleDirective implements OnInit {
10
10
  private el;
11
11
  private renderer;
12
12
  resizeDirection: string;
@@ -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 { EventEmitter, QueryList, SimpleChanges, ElementRef, Renderer2, NgZone } from '@angular/core';
5
+ import { EventEmitter, QueryList, SimpleChanges, ElementRef, Renderer2, NgZone, OnInit, AfterViewInit, OnDestroy, AfterContentInit, OnChanges } from '@angular/core';
6
6
  import { TileLayoutDraggingService } from './dragging-service';
7
7
  import { TileLayoutResizeEvent } from './resize-event';
8
8
  import { TileLayoutItemComponent } from './tilelayout-item.component';
@@ -13,7 +13,7 @@ import { TileLayoutFlowMode } from './models/flowmode.type';
13
13
  /**
14
14
  * Represents the [Kendo UI TileLayout component for Angular]({% slug overview_tilelayout %})
15
15
  */
16
- export declare class TileLayoutComponent {
16
+ export declare class TileLayoutComponent implements OnInit, AfterViewInit, AfterContentInit, OnDestroy, OnChanges {
17
17
  private elem;
18
18
  private renderer;
19
19
  private localization;
@@ -21,7 +21,7 @@ const packageMetadata = {
21
21
  name: '@progress/kendo-angular-layout',
22
22
  productName: 'Kendo UI for Angular',
23
23
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
24
- publishDate: 1636621149,
24
+ publishDate: 1643035523,
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
  };
@@ -144,6 +144,21 @@ PanelBarItemTitleDirective = __decorate([
144
144
  ], PanelBarItemTitleDirective);
145
145
 
146
146
  let nextId = 0;
147
+ const SIZES = {
148
+ small: 'sm',
149
+ medium: 'md',
150
+ large: 'lg'
151
+ };
152
+ const ROUNDNESS = {
153
+ small: 'sm',
154
+ medium: 'md',
155
+ large: 'lg',
156
+ full: 'full'
157
+ };
158
+ const SHAPE_TO_ROUNDED = {
159
+ rounded: 'large',
160
+ circle: 'full'
161
+ };
147
162
  const parsePanelBarItems = (data) => {
148
163
  return data.map((item) => {
149
164
  if (!item.id) {
@@ -179,6 +194,31 @@ const isArrowKey = keyCode => isHorizontalArrowKey(keyCode) || isVerticalArrowKe
179
194
  */
180
195
  const isNavigationKey = keyCode => keyCode === Keys.PageUp || keyCode === Keys.PageDown ||
181
196
  keyCode === Keys.Home || keyCode === Keys.End;
197
+ /**
198
+ * @hidden
199
+ *
200
+ * Returns the styling classes to be added and removed
201
+ */
202
+ const getStylingClasses = (componentType, stylingOption, previousValue, newValue) => {
203
+ switch (stylingOption) {
204
+ case 'size':
205
+ return {
206
+ toRemove: `k-${componentType}-${SIZES[previousValue]}`,
207
+ toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` : null
208
+ };
209
+ case 'rounded':
210
+ return {
211
+ toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
212
+ toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` : null
213
+ };
214
+ default:
215
+ break;
216
+ }
217
+ };
218
+ /**
219
+ * @hidden
220
+ */
221
+ const mapShapeToRounded = (shape) => SHAPE_TO_ROUNDED[shape] || null;
182
222
 
183
223
  const focusableRegex = /^(?:a|input|select|option|textarea|button|object)$/i;
184
224
  const toClassList = (classNames) => String(classNames).trim().split(' ');
@@ -2580,8 +2620,11 @@ let TabStripScrollableButtonComponent = class TabStripScrollableButtonComponent
2580
2620
  };
2581
2621
  __decorate([
2582
2622
  HostBinding('class.k-button'),
2583
- HostBinding('class.k-button-icon'),
2584
- HostBinding('class.k-flat'),
2623
+ HostBinding('class.k-button-md'),
2624
+ HostBinding('class.k-icon-button'),
2625
+ HostBinding('class.k-rounded-md'),
2626
+ HostBinding('class.k-button-flat'),
2627
+ HostBinding('class.k-button-flat-base'),
2585
2628
  __metadata("design:type", Boolean)
2586
2629
  ], TabStripScrollableButtonComponent.prototype, "btnClasses", void 0);
2587
2630
  __decorate([
@@ -2606,7 +2649,7 @@ __decorate([
2606
2649
  TabStripScrollableButtonComponent = __decorate([
2607
2650
  Component({
2608
2651
  template: `
2609
- <span class="k-icon" [ngClass]="iconClass"></span>
2652
+ <span class="k-icon k-button-icon" [ngClass]="iconClass"></span>
2610
2653
  `,
2611
2654
  selector: '[kendoTabStripScrollableButton]'
2612
2655
  }),
@@ -4532,17 +4575,6 @@ LocalizedStepperMessagesDirective = LocalizedStepperMessagesDirective_1 = __deco
4532
4575
  __metadata("design:paramtypes", [LocalizationService])
4533
4576
  ], LocalizedStepperMessagesDirective);
4534
4577
 
4535
- const SIZE_CLASSES = {
4536
- 'small': 'k-avatar-sm',
4537
- 'medium': 'k-avatar-md',
4538
- 'large': 'k-avatar-lg'
4539
- };
4540
- const SHAPE_CLASSES = {
4541
- 'circle': 'k-avatar-circle',
4542
- 'square': 'k-avatar-square',
4543
- 'rectangle': 'k-avatar-rectangle',
4544
- 'rounded': 'k-avatar-rounded'
4545
- };
4546
4578
  /**
4547
4579
  * Displays images, icons or initials representing people or other entities.
4548
4580
  */
@@ -4551,37 +4583,16 @@ let AvatarComponent = class AvatarComponent {
4551
4583
  this.renderer = renderer;
4552
4584
  this.element = element;
4553
4585
  this.hostClass = true;
4554
- /**
4555
- * Specifies the appearance fill style of the avatar.
4556
- *
4557
- * The possible values are:
4558
- * * `solid` (Default)
4559
- * * `outline`
4560
- *
4561
- */
4562
- this.fill = 'solid';
4563
4586
  /**
4564
4587
  * Sets a border to the avatar.
4565
4588
  */
4566
4589
  this.border = false;
4567
4590
  this._themeColor = 'primary';
4568
4591
  this._size = 'medium';
4569
- this._shape = 'square';
4570
- this.avatar = this.element.nativeElement;
4592
+ this._fillMode = 'solid';
4593
+ this._rounded = 'full';
4571
4594
  validatePackage(packageMetadata);
4572
4595
  }
4573
- /**
4574
- * @hidden
4575
- */
4576
- get solidClass() {
4577
- return this.fill === 'solid';
4578
- }
4579
- /**
4580
- * @hidden
4581
- */
4582
- get outlineClass() {
4583
- return this.fill === 'outline';
4584
- }
4585
4596
  /**
4586
4597
  * @hidden
4587
4598
  */
@@ -4596,21 +4607,10 @@ let AvatarComponent = class AvatarComponent {
4596
4607
  }
4597
4608
  /**
4598
4609
  * Sets the shape for the avatar.
4599
- *
4600
- * Possible values are:
4601
- * * (Default) `square`
4602
- * * `circle`
4603
- * * `rectangle`
4604
- * * `rounded`
4605
- *
4610
+ * @hidden
4606
4611
  */
4607
4612
  set shape(shape) {
4608
- this.renderer.removeClass(this.avatar, SHAPE_CLASSES[this.shape]);
4609
- this.renderer.addClass(this.avatar, SHAPE_CLASSES[shape]);
4610
- this._shape = shape;
4611
- }
4612
- get shape() {
4613
- return this._shape;
4613
+ this.rounded = mapShapeToRounded(shape);
4614
4614
  }
4615
4615
  /**
4616
4616
  * Specifies the size of the avatar
@@ -4623,22 +4623,44 @@ let AvatarComponent = class AvatarComponent {
4623
4623
  *
4624
4624
  */
4625
4625
  set size(size) {
4626
- this.renderer.removeClass(this.avatar, SIZE_CLASSES[this.size]);
4627
- this.renderer.addClass(this.avatar, SIZE_CLASSES[size]);
4628
- this._size = size;
4626
+ if (size !== this._size) {
4627
+ this.handleClasses('size', size);
4628
+ this._size = size === null ? null : size || 'medium';
4629
+ }
4629
4630
  }
4630
4631
  get size() {
4631
4632
  return this._size;
4632
4633
  }
4634
+ /**
4635
+ * Specifies the rounded styling of the avatar
4636
+ * ([see example]({% slug appearance_avatar %}#toc-rounded-corners)).
4637
+ *
4638
+ * The possible values are:
4639
+ * * `small`
4640
+ * * `medium`
4641
+ * * `large`
4642
+ * * `full` (Default)
4643
+ * * null
4644
+ *
4645
+ */
4646
+ set rounded(rounded) {
4647
+ if (rounded !== this._rounded) {
4648
+ this.handleClasses('rounded', rounded);
4649
+ this._rounded = rounded === null ? null : rounded || 'full';
4650
+ }
4651
+ }
4652
+ get rounded() {
4653
+ return this._rounded;
4654
+ }
4633
4655
  /**
4634
4656
  * Specifies the theme color of the avatar.
4635
4657
  * The theme color will be applied as background and border color, while also amending the text color accordingly.
4636
4658
  *
4637
4659
  * The possible values are:
4660
+ * * `base`&mdash; Applies the base coloring value.
4638
4661
  * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
4639
4662
  * * `secondary`&mdash;Applies coloring based on secondary theme color.
4640
4663
  * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
4641
- * * `inherit`&mdash; Applies inherited coloring value.
4642
4664
  * * `info`&mdash;Applies coloring based on info theme color.
4643
4665
  * * `success`&mdash; Applies coloring based on success theme color.
4644
4666
  * * `warning`&mdash; Applies coloring based on warning theme color.
@@ -4646,40 +4668,65 @@ let AvatarComponent = class AvatarComponent {
4646
4668
  * * `dark`&mdash; Applies coloring based on dark theme color.
4647
4669
  * * `light`&mdash; Applies coloring based on light theme color.
4648
4670
  * * `inverse`&mdash; Applies coloring based on inverted theme color.
4649
- *
4650
4671
  */
4651
4672
  set themeColor(themeColor) {
4652
- this.renderer.removeClass(this.avatar, `k-avatar-${this.themeColor}`);
4653
- this.renderer.addClass(this.avatar, `k-avatar-${themeColor}`);
4654
- this._themeColor = themeColor;
4673
+ if (themeColor !== this._themeColor) {
4674
+ this._themeColor = themeColor === null ? null : (themeColor || 'primary');
4675
+ this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
4676
+ }
4655
4677
  }
4656
4678
  get themeColor() {
4657
4679
  return this._themeColor;
4658
4680
  }
4659
4681
  /**
4660
- * @hidden
4682
+ * Specifies the appearance fill style of the avatar.
4683
+ *
4684
+ * The possible values are:
4685
+ * * `solid` (Default)
4686
+ * * `outline`
4687
+ * * null
4688
+ *
4661
4689
  */
4662
- get avatarWidth() {
4663
- return this.width;
4690
+ set fillMode(fillMode) {
4691
+ if (fillMode !== this.fillMode) {
4692
+ this._fillMode = fillMode === null ? null : (fillMode || 'solid');
4693
+ this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
4694
+ }
4695
+ }
4696
+ get fillMode() {
4697
+ return this._fillMode;
4664
4698
  }
4665
4699
  /**
4700
+ * Specifies the appearance fill style of the avatar.
4701
+ * Deprecated, left for backward compatibility.
4702
+ *
4666
4703
  * @hidden
4667
4704
  */
4668
- get avatarHeight() {
4669
- return this.height;
4705
+ set fill(fillMode) {
4706
+ this.fillMode = fillMode;
4670
4707
  }
4671
- ngAfterViewInit() {
4672
- this.setAvatarClasses();
4708
+ /**
4709
+ * @hidden
4710
+ */
4711
+ get avatarWidth() {
4712
+ return this.width;
4673
4713
  }
4674
4714
  /**
4675
4715
  * @hidden
4676
4716
  */
4677
- get imageUrl() {
4678
- return `url(${this.imageSrc})`;
4717
+ get avatarHeight() {
4718
+ return this.height;
4679
4719
  }
4680
4720
  ngOnInit() {
4681
4721
  this.verifyProperties();
4682
4722
  }
4723
+ ngAfterViewInit() {
4724
+ const stylingInputs = ['size', 'rounded'];
4725
+ stylingInputs.forEach(input => {
4726
+ this.handleClasses(input, this[input]);
4727
+ });
4728
+ this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
4729
+ }
4683
4730
  /**
4684
4731
  * @hidden
4685
4732
  */
@@ -4711,26 +4758,38 @@ let AvatarComponent = class AvatarComponent {
4711
4758
  `);
4712
4759
  }
4713
4760
  }
4714
- setAvatarClasses() {
4715
- this.renderer.addClass(this.avatar, SHAPE_CLASSES[this.shape]);
4716
- this.renderer.addClass(this.avatar, `k-avatar-${this.themeColor}`);
4717
- this.renderer.addClass(this.avatar, SIZE_CLASSES[this.size]);
4761
+ handleClasses(styleType, value) {
4762
+ const elem = this.element.nativeElement;
4763
+ const classes = getStylingClasses('avatar', styleType, this[styleType], value);
4764
+ if (classes.toRemove) {
4765
+ this.renderer.removeClass(elem, classes.toRemove);
4766
+ }
4767
+ if (classes.toAdd) {
4768
+ this.renderer.addClass(elem, classes.toAdd);
4769
+ }
4770
+ }
4771
+ handleFillModeAndThemeColorClasses(fill, themeColor) {
4772
+ const wrapperElement = this.element.nativeElement;
4773
+ // remove existing fill and theme color classes
4774
+ const currentClasses = Array.from(wrapperElement.classList);
4775
+ const classesToRemove = currentClasses.filter(cl => {
4776
+ return cl.startsWith('k-avatar-solid') || cl.startsWith('k-avatar-outline');
4777
+ });
4778
+ classesToRemove.forEach((cl => this.renderer.removeClass(wrapperElement, cl)));
4779
+ // add fill if needed
4780
+ if (fill !== null) {
4781
+ this.renderer.addClass(wrapperElement, `k-avatar-${fill}`);
4782
+ }
4783
+ // add theme color class if fill and theme color
4784
+ if (fill !== null && themeColor !== null) {
4785
+ this.renderer.addClass(wrapperElement, `k-avatar-${fill}-${themeColor}`);
4786
+ }
4718
4787
  }
4719
4788
  };
4720
4789
  __decorate([
4721
4790
  HostBinding('class.k-avatar'),
4722
4791
  __metadata("design:type", Boolean)
4723
4792
  ], AvatarComponent.prototype, "hostClass", void 0);
4724
- __decorate([
4725
- HostBinding('class.k-avatar-solid'),
4726
- __metadata("design:type", Boolean),
4727
- __metadata("design:paramtypes", [])
4728
- ], AvatarComponent.prototype, "solidClass", null);
4729
- __decorate([
4730
- HostBinding('class.k-avatar-outline'),
4731
- __metadata("design:type", Boolean),
4732
- __metadata("design:paramtypes", [])
4733
- ], AvatarComponent.prototype, "outlineClass", null);
4734
4793
  __decorate([
4735
4794
  HostBinding('class.k-avatar-bordered'),
4736
4795
  __metadata("design:type", Boolean),
@@ -4751,6 +4810,11 @@ __decorate([
4751
4810
  __metadata("design:type", String),
4752
4811
  __metadata("design:paramtypes", [String])
4753
4812
  ], AvatarComponent.prototype, "size", null);
4813
+ __decorate([
4814
+ Input(),
4815
+ __metadata("design:type", String),
4816
+ __metadata("design:paramtypes", [String])
4817
+ ], AvatarComponent.prototype, "rounded", null);
4754
4818
  __decorate([
4755
4819
  Input(),
4756
4820
  __metadata("design:type", String),
@@ -4758,8 +4822,14 @@ __decorate([
4758
4822
  ], AvatarComponent.prototype, "themeColor", null);
4759
4823
  __decorate([
4760
4824
  Input(),
4761
- __metadata("design:type", String)
4762
- ], AvatarComponent.prototype, "fill", void 0);
4825
+ __metadata("design:type", String),
4826
+ __metadata("design:paramtypes", [String])
4827
+ ], AvatarComponent.prototype, "fillMode", null);
4828
+ __decorate([
4829
+ Input(),
4830
+ __metadata("design:type", String),
4831
+ __metadata("design:paramtypes", [String])
4832
+ ], AvatarComponent.prototype, "fill", null);
4763
4833
  __decorate([
4764
4834
  Input(),
4765
4835
  __metadata("design:type", Boolean)
@@ -4809,7 +4879,9 @@ AvatarComponent = __decorate([
4809
4879
  <ng-content *ngIf="customAvatar"></ng-content>
4810
4880
 
4811
4881
  <ng-container *ngIf="imageSrc">
4812
- <div class="k-avatar-image" [ngStyle]="cssStyle" [style.backgroundImage]="imageUrl"></div>
4882
+ <span class="k-avatar-image">
4883
+ <img src="{{imageSrc}}" [ngStyle]="cssStyle" />
4884
+ </span>
4813
4885
  </ng-container>
4814
4886
 
4815
4887
  <ng-container *ngIf="initials">