@progress/kendo-angular-buttons 17.0.0-develop.9 → 17.0.0

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 (94) hide show
  1. package/README.md +27 -106
  2. package/button/button.component.d.ts +1 -1
  3. package/button/selection-settings.d.ts +1 -1
  4. package/buttongroup/buttongroup.component.d.ts +1 -1
  5. package/chip/chip-list.component.d.ts +8 -7
  6. package/chip/chip.component.d.ts +8 -7
  7. package/chip/models/avatar-settings.interface.d.ts +33 -0
  8. package/chip/models/selection.d.ts +1 -1
  9. package/common/models/fillmode.d.ts +2 -2
  10. package/common/models/rounded.d.ts +2 -2
  11. package/common/models/size.d.ts +2 -6
  12. package/common/models/theme-color.d.ts +2 -2
  13. package/direction.d.ts +1 -1
  14. package/dropdownbutton/dropdownbutton.component.d.ts +7 -10
  15. package/{esm2020 → esm2022}/button/button.component.mjs +63 -52
  16. package/{esm2020 → esm2022}/button/button.module.mjs +4 -4
  17. package/{esm2020 → esm2022}/button/button.service.mjs +5 -7
  18. package/{esm2020 → esm2022}/buttongroup/buttongroup.component.mjs +76 -51
  19. package/{esm2020 → esm2022}/buttongroup/buttongroup.module.mjs +4 -4
  20. package/{esm2020 → esm2022}/buttons.module.mjs +4 -4
  21. package/{esm2020 → esm2022}/chip/chip-list.component.mjs +64 -48
  22. package/{esm2020 → esm2022}/chip/chip.component.mjs +160 -93
  23. package/{esm2020 → esm2022}/chip/chip.module.mjs +4 -4
  24. package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.component.mjs +125 -117
  25. package/{esm2020 → esm2022}/dropdownbutton/dropdownbutton.module.mjs +4 -4
  26. package/{esm2020 → esm2022}/floatingactionbutton/dial-item.component.mjs +21 -11
  27. package/{esm2020 → esm2022}/floatingactionbutton/dial-list.component.mjs +16 -11
  28. package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.component.mjs +145 -102
  29. package/{esm2020 → esm2022}/floatingactionbutton/floatingactionbutton.module.mjs +4 -4
  30. package/{esm2020 → esm2022}/floatingactionbutton/templates/dial-item-template.directive.mjs +4 -3
  31. package/{esm2020 → esm2022}/floatingactionbutton/templates/fab-template.directive.mjs +4 -3
  32. package/{esm2020 → esm2022}/focusable/focus.service.mjs +5 -6
  33. package/{esm2020 → esm2022}/focusable/focusable.directive.mjs +8 -4
  34. package/{esm2020 → esm2022}/index.mjs +0 -1
  35. package/{esm2020 → esm2022}/listbutton/button-item-template.directive.mjs +4 -3
  36. package/{esm2020 → esm2022}/listbutton/container.service.mjs +5 -3
  37. package/{esm2020 → esm2022}/listbutton/list-button.mjs +88 -51
  38. package/{esm2020 → esm2022}/listbutton/list.component.mjs +13 -10
  39. package/esm2022/listbutton/popup-settings.mjs +5 -0
  40. package/{esm2020 → esm2022}/navigation/navigation.service.mjs +12 -11
  41. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  42. package/{esm2020 → esm2022}/preventable-event.mjs +1 -3
  43. package/{esm2020 → esm2022}/splitbutton/localization/custom-messages.component.mjs +7 -6
  44. package/{esm2020 → esm2022}/splitbutton/localization/localized-messages.directive.mjs +9 -8
  45. package/esm2022/splitbutton/localization/messages.mjs +45 -0
  46. package/{esm2020 → esm2022}/splitbutton/splitbutton.component.mjs +214 -188
  47. package/{esm2020 → esm2022}/splitbutton/splitbutton.module.mjs +4 -4
  48. package/{esm2020 → esm2022}/util.mjs +6 -0
  49. package/{fesm2020 → fesm2022}/progress-kendo-angular-buttons.mjs +1317 -1056
  50. package/floatingactionbutton/dial-item.component.d.ts +1 -1
  51. package/floatingactionbutton/dial-list.component.d.ts +1 -1
  52. package/floatingactionbutton/floatingactionbutton.component.d.ts +1 -1
  53. package/floatingactionbutton/models/position-mode.d.ts +1 -1
  54. package/focusable/focusable.directive.d.ts +1 -1
  55. package/index.d.ts +1 -1
  56. package/listbutton/list-button.d.ts +9 -4
  57. package/listbutton/list.component.d.ts +1 -1
  58. package/package.json +15 -21
  59. package/schematics/ngAdd/index.js +1 -1
  60. package/splitbutton/localization/messages.d.ts +1 -1
  61. package/splitbutton/splitbutton.component.d.ts +8 -16
  62. package/util.d.ts +6 -0
  63. package/esm2020/listbutton/list.module.mjs +0 -33
  64. package/esm2020/splitbutton/localization/messages.mjs +0 -23
  65. package/fesm2015/progress-kendo-angular-buttons.mjs +0 -5551
  66. package/listbutton/list.module.d.ts +0 -13
  67. /package/{esm2020 → esm2022}/button/selection-settings.mjs +0 -0
  68. /package/{esm2020 → esm2022}/chip/chip-content-click-event-args.interface.mjs +0 -0
  69. /package/{esm2020 → esm2022}/chip/chip-list-remove-event-args.interface.mjs +0 -0
  70. /package/{esm2020 → esm2022}/chip/chip-remove-event-args.interface.mjs +0 -0
  71. /package/{esm2020/chip/models/selection.mjs → esm2022/chip/models/avatar-settings.interface.mjs} +0 -0
  72. /package/{esm2020/common/models/arrow-settings.mjs → esm2022/chip/models/selection.mjs} +0 -0
  73. /package/{esm2020/common/models/fillmode.mjs → esm2022/common/models/arrow-settings.mjs} +0 -0
  74. /package/{esm2020/common/models/rounded.mjs → esm2022/common/models/fillmode.mjs} +0 -0
  75. /package/{esm2020/common/models/size.mjs → esm2022/common/models/rounded.mjs} +0 -0
  76. /package/{esm2020/common/models/styling-classes.mjs → esm2022/common/models/size.mjs} +0 -0
  77. /package/{esm2020/common/models/theme-color.mjs → esm2022/common/models/styling-classes.mjs} +0 -0
  78. /package/{esm2020/direction.mjs → esm2022/common/models/theme-color.mjs} +0 -0
  79. /package/{esm2020 → esm2022}/common/models.mjs +0 -0
  80. /package/{esm2020/floatingactionbutton/models/align.mjs → esm2022/direction.mjs} +0 -0
  81. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  82. /package/{esm2020 → esm2022}/floatingactionbutton/animations/animations.mjs +0 -0
  83. /package/{esm2020/floatingactionbutton/models/item-animation.interface.mjs → esm2022/floatingactionbutton/models/align.mjs} +0 -0
  84. /package/{esm2020/floatingactionbutton/models/item-click.event.mjs → esm2022/floatingactionbutton/models/item-animation.interface.mjs} +0 -0
  85. /package/{esm2020/floatingactionbutton/models/item.interface.mjs → esm2022/floatingactionbutton/models/item-click.event.mjs} +0 -0
  86. /package/{esm2020/floatingactionbutton/models/offset.mjs → esm2022/floatingactionbutton/models/item.interface.mjs} +0 -0
  87. /package/{esm2020/floatingactionbutton/models/position-mode.mjs → esm2022/floatingactionbutton/models/offset.mjs} +0 -0
  88. /package/{esm2020/listbutton/list-item-model.mjs → esm2022/floatingactionbutton/models/position-mode.mjs} +0 -0
  89. /package/{esm2020 → esm2022}/floatingactionbutton/utils.mjs +0 -0
  90. /package/{esm2020/listbutton/popup-settings.mjs → esm2022/listbutton/list-item-model.mjs} +0 -0
  91. /package/{esm2020 → esm2022}/navigation/key-events.mjs +0 -0
  92. /package/{esm2020 → esm2022}/navigation/navigation-action.mjs +0 -0
  93. /package/{esm2020 → esm2022}/navigation/navigation-config.mjs +0 -0
  94. /package/{esm2020 → esm2022}/progress-kendo-angular-buttons.mjs +0 -0
@@ -8,10 +8,10 @@ import { isDocumentAvailable, Keys } from '@progress/kendo-angular-common';
8
8
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
10
10
  import { packageMetadata } from '../package-metadata';
11
- import { closest, getStylingClasses, getThemeColorClasses } from '../util';
11
+ import { closest, getStylingClasses, getThemeColorClasses, isObjectEmpty } from '../util';
12
12
  import { moreVerticalIcon, xCircleIcon } from '@progress/kendo-svg-icons';
13
13
  import { IconWrapperComponent } from '@progress/kendo-angular-icons';
14
- import { NgIf, NgClass } from '@angular/common';
14
+ import { NgIf, NgClass, NgStyle } from '@angular/common';
15
15
  import * as i0 from "@angular/core";
16
16
  import * as i1 from "@progress/kendo-angular-l10n";
17
17
  const DEFAULT_SIZE = 'medium';
@@ -22,66 +22,77 @@ const DEFAULT_FILL_MODE = 'solid';
22
22
  * Displays a Chip that represents an input, attribute or an action.
23
23
  */
24
24
  export class ChipComponent {
25
- constructor(element, renderer, ngZone, localizationService) {
26
- this.element = element;
27
- this.renderer = renderer;
28
- this.ngZone = ngZone;
29
- this.localizationService = localizationService;
30
- /**
31
- * Specifies the selected state of the Chip.
32
- * @default false
33
- */
34
- this.selected = false;
35
- /**
36
- * Specifies if the Chip will be removable or not.
37
- * If the property is set to `true`, the Chip renders a remove icon.
38
- * @default false
39
- */
40
- this.removable = false;
41
- /**
42
- * @hidden
43
- *
44
- * Determines whether the Chip has a menu.
45
- */
46
- this.hasMenu = false;
47
- /**
48
- * If set to `true`, the Chip will be disabled.
49
- * @default false
50
- */
51
- this.disabled = false;
52
- /**
53
- * Fires each time the user clicks the remove icon of the Chip.
54
- */
55
- this.remove = new EventEmitter();
56
- /**
57
- * @hidden
58
- *
59
- * Fires each time the user clicks the menu icon of the Chip.
60
- */
61
- this.menuToggle = new EventEmitter();
62
- /**
63
- * Fires each time the user clicks the content of the Chip.
64
- */
65
- this.contentClick = new EventEmitter();
66
- this.tabIndex = 0;
67
- this.hostClass = true;
68
- /**
69
- * @hidden
70
- */
71
- this.defaultRemoveIcon = xCircleIcon;
72
- /**
73
- * @hidden
74
- */
75
- this.defaultMenuIcon = moreVerticalIcon;
76
- this._size = 'medium';
77
- this._rounded = 'medium';
78
- this._fillMode = 'solid';
79
- this._themeColor = 'base';
80
- this.focused = false;
81
- this.subs = new Subscription();
82
- validatePackage(packageMetadata);
83
- this.direction = localizationService.rtl ? 'rtl' : 'ltr';
84
- }
25
+ element;
26
+ renderer;
27
+ ngZone;
28
+ localizationService;
29
+ /**
30
+ * Sets the label text of the Chip.
31
+ */
32
+ label;
33
+ /**
34
+ * Defines the name for an existing icon in a Kendo UI theme.
35
+ * The icon is rendered inside the Chip by a `span.k-icon` element.
36
+ */
37
+ icon;
38
+ /**
39
+ * Defines an [`SVGIcon`](slug:api_icons_svgicon) icon to be rendered inside the Chip using
40
+ * a [`KendoSVGIcon`](slug:api_icons_svgiconcomponent) component.
41
+ */
42
+ svgIcon;
43
+ /**
44
+ * Defines a CSS class or multiple classes separated by spaces —
45
+ * which are applied to a span element.
46
+ * Allows the usage of custom icons.
47
+ */
48
+ iconClass;
49
+ /**
50
+ * Use these settings to render an avatar within the Chip.
51
+ */
52
+ avatarSettings;
53
+ /**
54
+ * Specifies the selected state of the Chip.
55
+ * @default false
56
+ */
57
+ selected = false;
58
+ /**
59
+ * Specifies if the Chip will be removable or not.
60
+ * If the property is set to `true`, the Chip renders a remove icon.
61
+ * @default false
62
+ */
63
+ removable = false;
64
+ /**
65
+ * Specifies a custom remove font icon class that will be rendered when the Chip is removable.
66
+ * [see example]({% slug icons %})
67
+ */
68
+ removeIcon;
69
+ /**
70
+ * Specifies a custom remove SVG icon that will be rendered when the Chip is removable.
71
+ */
72
+ removeSvgIcon;
73
+ /**
74
+ * @hidden
75
+ *
76
+ * Determines whether the Chip has a menu.
77
+ */
78
+ hasMenu = false;
79
+ /**
80
+ * @hidden
81
+ *
82
+ * Specifies a custom menu font icon class that will be rendered when the Chip has menu.
83
+ */
84
+ menuIcon;
85
+ /**
86
+ * @hidden
87
+ *
88
+ * Specifies a custom menu SVG icon that will be rendered when the Chip has menu.
89
+ */
90
+ menuSvgIcon;
91
+ /**
92
+ * If set to `true`, the Chip will be disabled.
93
+ * @default false
94
+ */
95
+ disabled = false;
85
96
  /**
86
97
  * The size property specifies the padding of the Chip
87
98
  * ([see example]({% slug appearance_chip %}#toc-size)).
@@ -94,6 +105,7 @@ export class ChipComponent {
94
105
  */
95
106
  set size(size) {
96
107
  const newSize = size ? size : DEFAULT_SIZE;
108
+ !this.sizeIsSet && (this.sizeIsSet = true);
97
109
  this.handleClasses(newSize, 'size');
98
110
  this._size = newSize;
99
111
  }
@@ -157,8 +169,24 @@ export class ChipComponent {
157
169
  get themeColor() {
158
170
  return this._themeColor;
159
171
  }
172
+ /**
173
+ * Fires each time the user clicks the remove icon of the Chip.
174
+ */
175
+ remove = new EventEmitter();
176
+ /**
177
+ * @hidden
178
+ *
179
+ * Fires each time the user clicks the menu icon of the Chip.
180
+ */
181
+ menuToggle = new EventEmitter();
182
+ /**
183
+ * Fires each time the user clicks the content of the Chip.
184
+ */
185
+ contentClick = new EventEmitter();
186
+ tabIndex = 0;
187
+ hostClass = true;
160
188
  get hasIconClass() {
161
- return Boolean(this.icon || this.iconClass || this.avatarClass);
189
+ return Boolean(this.icon || this.iconClass || (this.avatarSettings && !isObjectEmpty(this.avatarSettings)));
162
190
  }
163
191
  get disabledClass() {
164
192
  return this.disabled;
@@ -169,6 +197,36 @@ export class ChipComponent {
169
197
  get focusedClass() {
170
198
  return this.focused;
171
199
  }
200
+ /**
201
+ * @hidden
202
+ */
203
+ direction;
204
+ /**
205
+ * @hidden
206
+ */
207
+ defaultRemoveIcon = xCircleIcon;
208
+ /**
209
+ * @hidden
210
+ */
211
+ defaultMenuIcon = moreVerticalIcon;
212
+ /**
213
+ * @hidden
214
+ */
215
+ sizeIsSet = false;
216
+ _size = 'medium';
217
+ _rounded = 'medium';
218
+ _fillMode = 'solid';
219
+ _themeColor = 'base';
220
+ focused = false;
221
+ subs = new Subscription();
222
+ constructor(element, renderer, ngZone, localizationService) {
223
+ this.element = element;
224
+ this.renderer = renderer;
225
+ this.ngZone = ngZone;
226
+ this.localizationService = localizationService;
227
+ validatePackage(packageMetadata);
228
+ this.direction = localizationService.rtl ? 'rtl' : 'ltr';
229
+ }
172
230
  ngOnInit() {
173
231
  this.subs.add(this.localizationService.changes
174
232
  .subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr'));
@@ -197,23 +255,16 @@ export class ChipComponent {
197
255
  * @hidden
198
256
  */
199
257
  get kendoIconClass() {
200
- this.verifyIconSettings([this.iconClass, this.avatarClass]);
258
+ this.verifyIconSettings([this.iconClass]);
201
259
  return `k-i-${this.icon}`;
202
260
  }
203
261
  /**
204
262
  * @hidden
205
263
  */
206
264
  get customIconClass() {
207
- this.verifyIconSettings([this.icon, this.avatarClass]);
265
+ this.verifyIconSettings([this.icon]);
208
266
  return this.iconClass;
209
267
  }
210
- /**
211
- * @hidden
212
- */
213
- get chipAvatarClass() {
214
- this.verifyIconSettings([this.icon, this.iconClass]);
215
- return this.avatarClass;
216
- }
217
268
  /**
218
269
  * @hidden
219
270
  */
@@ -324,15 +375,14 @@ export class ChipComponent {
324
375
  });
325
376
  }
326
377
  }
327
- }
328
- ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
329
- ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChipComponent, isStandalone: true, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", hasMenu: "hasMenu", menuIcon: "menuIcon", menuSvgIcon: "menuSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", menuToggle: "menuToggle", contentClick: "contentClick" }, host: { properties: { "attr.tabindex": "this.tabIndex", "class.k-chip": "this.hostClass", "class.k-chip-has-icon": "this.hasIconClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-selected": "this.selectedClass", "class.k-focus": "this.focusedClass", "attr.dir": "this.direction" } }, providers: [
330
- LocalizationService,
331
- {
332
- provide: L10N_PREFIX,
333
- useValue: 'kendo.chip'
334
- }
335
- ], usesOnChanges: true, ngImport: i0, template: `
378
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
379
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipComponent, isStandalone: true, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarSettings: "avatarSettings", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", hasMenu: "hasMenu", menuIcon: "menuIcon", menuSvgIcon: "menuSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", menuToggle: "menuToggle", contentClick: "contentClick" }, host: { properties: { "attr.tabindex": "this.tabIndex", "class.k-chip": "this.hostClass", "class.k-chip-has-icon": "this.hasIconClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-selected": "this.selectedClass", "class.k-focus": "this.focusedClass", "attr.dir": "this.direction" } }, providers: [
380
+ LocalizationService,
381
+ {
382
+ provide: L10N_PREFIX,
383
+ useValue: 'kendo.chip'
384
+ }
385
+ ], usesOnChanges: true, ngImport: i0, template: `
336
386
  <kendo-icon-wrapper
337
387
  *ngIf="icon || svgIcon"
338
388
  size="small"
@@ -345,11 +395,19 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
345
395
  size="small"
346
396
  innerCssClass="k-chip-icon"
347
397
  [customFontClass]="customIconClass"></kendo-icon-wrapper>
348
-
349
398
  <span
350
- *ngIf="avatarClass"
351
- class="k-chip-avatar k-avatar k-avatar-md k-avatar-solid k-avatar-solid-primary k-rounded-full">
352
- <span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
399
+ *ngIf="avatarSettings"
400
+ class="k-chip-avatar k-avatar k-avatar-sm k-avatar-solid k-avatar-solid-primary k-rounded-full"
401
+ [ngStyle]="avatarSettings.cssStyle">
402
+ <ng-container *ngIf="avatarSettings?.imageSrc">
403
+ <span class="k-avatar-image">
404
+ <img src="{{ avatarSettings.imageSrc }}" [ngStyle]="avatarSettings.imageCssStyle" [attr.alt]="avatarSettings.imageAltText" />
405
+ </span>
406
+ </ng-container>
407
+
408
+ <ng-container *ngIf="avatarSettings?.initials">
409
+ <span class="k-avatar-text" [ngStyle]="avatarSettings.initialsCssStyle">{{ avatarSettings.initials.substring(0, 2) }}</span>
410
+ </ng-container>
353
411
  </span>
354
412
 
355
413
  <span class="k-chip-content">
@@ -379,8 +437,9 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
379
437
  [customFontClass]="removeIcon"></kendo-icon-wrapper>
380
438
  </span>
381
439
  </span>
382
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipComponent, decorators: [{
440
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
441
+ }
442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipComponent, decorators: [{
384
443
  type: Component,
385
444
  args: [{
386
445
  selector: 'kendo-chip',
@@ -397,11 +456,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
397
456
  size="small"
398
457
  innerCssClass="k-chip-icon"
399
458
  [customFontClass]="customIconClass"></kendo-icon-wrapper>
400
-
401
459
  <span
402
- *ngIf="avatarClass"
403
- class="k-chip-avatar k-avatar k-avatar-md k-avatar-solid k-avatar-solid-primary k-rounded-full">
404
- <span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
460
+ *ngIf="avatarSettings"
461
+ class="k-chip-avatar k-avatar k-avatar-sm k-avatar-solid k-avatar-solid-primary k-rounded-full"
462
+ [ngStyle]="avatarSettings.cssStyle">
463
+ <ng-container *ngIf="avatarSettings?.imageSrc">
464
+ <span class="k-avatar-image">
465
+ <img src="{{ avatarSettings.imageSrc }}" [ngStyle]="avatarSettings.imageCssStyle" [attr.alt]="avatarSettings.imageAltText" />
466
+ </span>
467
+ </ng-container>
468
+
469
+ <ng-container *ngIf="avatarSettings?.initials">
470
+ <span class="k-avatar-text" [ngStyle]="avatarSettings.initialsCssStyle">{{ avatarSettings.initials.substring(0, 2) }}</span>
471
+ </ng-container>
405
472
  </span>
406
473
 
407
474
  <span class="k-chip-content">
@@ -440,7 +507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
440
507
  }
441
508
  ],
442
509
  standalone: true,
443
- imports: [NgIf, IconWrapperComponent, NgClass]
510
+ imports: [NgIf, NgStyle, IconWrapperComponent, NgClass]
444
511
  }]
445
512
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { label: [{
446
513
  type: Input
@@ -450,7 +517,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
450
517
  type: Input
451
518
  }], iconClass: [{
452
519
  type: Input
453
- }], avatarClass: [{
520
+ }], avatarSettings: [{
454
521
  type: Input
455
522
  }], selected: [{
456
523
  type: Input
@@ -38,11 +38,11 @@ import * as i2 from "./chip-list.component";
38
38
  * ```
39
39
  */
40
40
  export class ChipModule {
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
42
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ChipModule, imports: [i1.ChipComponent, i2.ChipListComponent], exports: [i1.ChipComponent, i2.ChipListComponent] });
43
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipModule, providers: [IconsService], imports: [i1.ChipComponent] });
41
44
  }
42
- ChipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- ChipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ChipModule, imports: [i1.ChipComponent, i2.ChipListComponent], exports: [i1.ChipComponent, i2.ChipListComponent] });
44
- ChipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipModule, providers: [IconsService], imports: [KENDO_CHIPLIST] });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChipModule, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipModule, decorators: [{
46
46
  type: NgModule,
47
47
  args: [{
48
48
  exports: [...KENDO_CHIPLIST],