@progress/kendo-angular-layout 6.3.5-dev.202110290740 → 6.4.0-dev.202112211542

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 (45) hide show
  1. package/dist/cdn/js/kendo-angular-layout.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/avatar/avatar.component.js +120 -90
  4. package/dist/es/avatar/models/models.js +4 -0
  5. package/dist/es/avatar/models/rounded.js +4 -0
  6. package/dist/es/common/styling-classes.js +4 -0
  7. package/dist/es/common/util.js +40 -0
  8. package/dist/es/main.js +1 -0
  9. package/dist/es/package-metadata.js +1 -1
  10. package/dist/es/tabstrip/tabstrip.component.js +27 -1
  11. package/dist/es2015/avatar/avatar.component.d.ts +30 -30
  12. package/dist/es2015/avatar/avatar.component.js +111 -81
  13. package/dist/es2015/avatar/models/fill.d.ts +2 -8
  14. package/dist/es2015/avatar/models/models.d.ts +9 -0
  15. package/dist/es2015/avatar/models/models.js +4 -0
  16. package/dist/es2015/avatar/models/rounded.d.ts +8 -0
  17. package/dist/es2015/avatar/models/rounded.js +4 -0
  18. package/dist/es2015/avatar/models/shape.d.ts +2 -8
  19. package/dist/es2015/avatar/models/size.d.ts +1 -8
  20. package/dist/es2015/avatar/models/theme-color.d.ts +2 -17
  21. package/dist/es2015/common/styling-classes.d.ts +11 -0
  22. package/dist/es2015/common/styling-classes.js +4 -0
  23. package/dist/es2015/common/util.d.ts +12 -0
  24. package/dist/es2015/common/util.js +40 -0
  25. package/dist/es2015/index.metadata.json +1 -1
  26. package/dist/es2015/main.d.ts +1 -4
  27. package/dist/es2015/main.js +1 -0
  28. package/dist/es2015/package-metadata.js +1 -1
  29. package/dist/es2015/tabstrip/tabstrip.component.d.ts +8 -0
  30. package/dist/es2015/tabstrip/tabstrip.component.js +20 -0
  31. package/dist/es2015/tilelayout/tilelayout-item.component.d.ts +2 -2
  32. package/dist/es2015/tilelayout/tilelayout-resize-handle.directive.d.ts +2 -2
  33. package/dist/es2015/tilelayout/tilelayout.component.d.ts +2 -2
  34. package/dist/fesm2015/index.js +171 -82
  35. package/dist/fesm5/index.js +187 -92
  36. package/dist/npm/avatar/avatar.component.js +120 -90
  37. package/dist/npm/avatar/models/models.js +6 -0
  38. package/dist/npm/avatar/models/rounded.js +6 -0
  39. package/dist/npm/common/styling-classes.js +6 -0
  40. package/dist/npm/common/util.js +40 -0
  41. package/dist/npm/main.js +1 -0
  42. package/dist/npm/package-metadata.js +1 -1
  43. package/dist/npm/tabstrip/tabstrip.component.js +27 -1
  44. package/dist/systemjs/kendo-angular-layout.js +1 -1
  45. package/package.json +12 -10
@@ -5,18 +5,8 @@
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, HostBinding, Input, isDevMode, Renderer2, ElementRef } from '@angular/core';
7
7
  import { validatePackage } from '@progress/kendo-licensing';
8
+ import { getStylingClasses, mapShapeToRounded } from '../common/util';
8
9
  import { packageMetadata } from '../package-metadata';
9
- var SIZE_CLASSES = {
10
- 'small': 'k-avatar-sm',
11
- 'medium': 'k-avatar-md',
12
- 'large': 'k-avatar-lg'
13
- };
14
- var SHAPE_CLASSES = {
15
- 'circle': 'k-avatar-circle',
16
- 'square': 'k-avatar-square',
17
- 'rectangle': 'k-avatar-rectangle',
18
- 'rounded': 'k-avatar-rounded'
19
- };
20
10
  /**
21
11
  * Displays images, icons or initials representing people or other entities.
22
12
  */
@@ -25,45 +15,16 @@ var AvatarComponent = /** @class */ (function () {
25
15
  this.renderer = renderer;
26
16
  this.element = element;
27
17
  this.hostClass = true;
28
- /**
29
- * Specifies the appearance fill style of the avatar.
30
- *
31
- * The possible values are:
32
- * * `solid` (Default)
33
- * * `outline`
34
- *
35
- */
36
- this.fill = 'solid';
37
18
  /**
38
19
  * Sets a border to the avatar.
39
20
  */
40
21
  this.border = false;
41
22
  this._themeColor = 'primary';
42
23
  this._size = 'medium';
43
- this._shape = 'square';
44
- this.avatar = this.element.nativeElement;
24
+ this._fillMode = 'solid';
25
+ this._rounded = 'full';
45
26
  validatePackage(packageMetadata);
46
27
  }
47
- Object.defineProperty(AvatarComponent.prototype, "solidClass", {
48
- /**
49
- * @hidden
50
- */
51
- get: function () {
52
- return this.fill === 'solid';
53
- },
54
- enumerable: true,
55
- configurable: true
56
- });
57
- Object.defineProperty(AvatarComponent.prototype, "outlineClass", {
58
- /**
59
- * @hidden
60
- */
61
- get: function () {
62
- return this.fill === 'outline';
63
- },
64
- enumerable: true,
65
- configurable: true
66
- });
67
28
  Object.defineProperty(AvatarComponent.prototype, "borderClass", {
68
29
  /**
69
30
  * @hidden
@@ -85,23 +46,12 @@ var AvatarComponent = /** @class */ (function () {
85
46
  configurable: true
86
47
  });
87
48
  Object.defineProperty(AvatarComponent.prototype, "shape", {
88
- get: function () {
89
- return this._shape;
90
- },
91
49
  /**
92
50
  * Sets the shape for the avatar.
93
- *
94
- * Possible values are:
95
- * * (Default) `square`
96
- * * `circle`
97
- * * `rectangle`
98
- * * `rounded`
99
- *
51
+ * @hidden
100
52
  */
101
53
  set: function (shape) {
102
- this.renderer.removeClass(this.avatar, SHAPE_CLASSES[this.shape]);
103
- this.renderer.addClass(this.avatar, SHAPE_CLASSES[shape]);
104
- this._shape = shape;
54
+ this.rounded = mapShapeToRounded(shape);
105
55
  },
106
56
  enumerable: true,
107
57
  configurable: true
@@ -121,9 +71,35 @@ var AvatarComponent = /** @class */ (function () {
121
71
  *
122
72
  */
123
73
  set: function (size) {
124
- this.renderer.removeClass(this.avatar, SIZE_CLASSES[this.size]);
125
- this.renderer.addClass(this.avatar, SIZE_CLASSES[size]);
126
- this._size = size;
74
+ if (size !== this._size) {
75
+ this.handleClasses('size', size);
76
+ this._size = size === null ? null : size || 'medium';
77
+ }
78
+ },
79
+ enumerable: true,
80
+ configurable: true
81
+ });
82
+ Object.defineProperty(AvatarComponent.prototype, "rounded", {
83
+ get: function () {
84
+ return this._rounded;
85
+ },
86
+ /**
87
+ * Specifies the rounded styling of the avatar
88
+ * ([see example]({% slug appearance_avatar %}#toc-rounded-corners)).
89
+ *
90
+ * The possible values are:
91
+ * * `small`
92
+ * * `medium`
93
+ * * `large`
94
+ * * `full` (Default)
95
+ * * null
96
+ *
97
+ */
98
+ set: function (rounded) {
99
+ if (rounded !== this._rounded) {
100
+ this.handleClasses('rounded', rounded);
101
+ this._rounded = rounded === null ? null : rounded || 'full';
102
+ }
127
103
  },
128
104
  enumerable: true,
129
105
  configurable: true
@@ -137,10 +113,10 @@ var AvatarComponent = /** @class */ (function () {
137
113
  * The theme color will be applied as background and border color, while also amending the text color accordingly.
138
114
  *
139
115
  * The possible values are:
116
+ * * `base`— Applies the base coloring value.
140
117
  * * `primary` (Default)—Applies coloring based on primary theme color.
141
118
  * * `secondary`—Applies coloring based on secondary theme color.
142
119
  * * `tertiary`— Applies coloring based on tertiary theme color.
143
- * * `inherit`— Applies inherited coloring value.
144
120
  * * `info`—Applies coloring based on info theme color.
145
121
  * * `success`— Applies coloring based on success theme color.
146
122
  * * `warning`— Applies coloring based on warning theme color.
@@ -148,45 +124,67 @@ var AvatarComponent = /** @class */ (function () {
148
124
  * * `dark`— Applies coloring based on dark theme color.
149
125
  * * `light`— Applies coloring based on light theme color.
150
126
  * * `inverse`— Applies coloring based on inverted theme color.
151
- *
152
127
  */
153
128
  set: function (themeColor) {
154
- this.renderer.removeClass(this.avatar, "k-avatar-" + this.themeColor);
155
- this.renderer.addClass(this.avatar, "k-avatar-" + themeColor);
156
- this._themeColor = themeColor;
129
+ if (themeColor !== this._themeColor) {
130
+ this._themeColor = themeColor === null ? null : (themeColor || 'primary');
131
+ this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
132
+ }
157
133
  },
158
134
  enumerable: true,
159
135
  configurable: true
160
136
  });
161
- Object.defineProperty(AvatarComponent.prototype, "avatarWidth", {
137
+ Object.defineProperty(AvatarComponent.prototype, "fillMode", {
138
+ get: function () {
139
+ return this._fillMode;
140
+ },
141
+ /**
142
+ * Specifies the appearance fill style of the avatar.
143
+ *
144
+ * The possible values are:
145
+ * * `solid` (Default)
146
+ * * `outline`
147
+ * * null
148
+ *
149
+ */
150
+ set: function (fillMode) {
151
+ if (fillMode !== this.fillMode) {
152
+ this._fillMode = fillMode === null ? null : (fillMode || 'solid');
153
+ this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
154
+ }
155
+ },
156
+ enumerable: true,
157
+ configurable: true
158
+ });
159
+ Object.defineProperty(AvatarComponent.prototype, "fill", {
162
160
  /**
161
+ * Specifies the appearance fill style of the avatar.
162
+ * Deprecated, left for backward compatibility.
163
+ *
163
164
  * @hidden
164
165
  */
165
- get: function () {
166
- return this.width;
166
+ set: function (fillMode) {
167
+ this.fillMode = fillMode;
167
168
  },
168
169
  enumerable: true,
169
170
  configurable: true
170
171
  });
171
- Object.defineProperty(AvatarComponent.prototype, "avatarHeight", {
172
+ Object.defineProperty(AvatarComponent.prototype, "avatarWidth", {
172
173
  /**
173
174
  * @hidden
174
175
  */
175
176
  get: function () {
176
- return this.height;
177
+ return this.width;
177
178
  },
178
179
  enumerable: true,
179
180
  configurable: true
180
181
  });
181
- AvatarComponent.prototype.ngAfterViewInit = function () {
182
- this.setAvatarClasses();
183
- };
184
- Object.defineProperty(AvatarComponent.prototype, "imageUrl", {
182
+ Object.defineProperty(AvatarComponent.prototype, "avatarHeight", {
185
183
  /**
186
184
  * @hidden
187
185
  */
188
186
  get: function () {
189
- return "url(" + this.imageSrc + ")";
187
+ return this.height;
190
188
  },
191
189
  enumerable: true,
192
190
  configurable: true
@@ -194,6 +192,14 @@ var AvatarComponent = /** @class */ (function () {
194
192
  AvatarComponent.prototype.ngOnInit = function () {
195
193
  this.verifyProperties();
196
194
  };
195
+ AvatarComponent.prototype.ngAfterViewInit = function () {
196
+ var _this = this;
197
+ var stylingInputs = ['size', 'rounded'];
198
+ stylingInputs.forEach(function (input) {
199
+ _this.handleClasses(input, _this[input]);
200
+ });
201
+ this.handleFillModeAndThemeColorClasses(this.fillMode, this.themeColor);
202
+ };
197
203
  /**
198
204
  * @hidden
199
205
  */
@@ -225,25 +231,38 @@ var AvatarComponent = /** @class */ (function () {
225
231
  throw new Error("\n Invalid property configuration given.\n The kendo-avatar component can accept only one of:\n icon, imageSrc or initials properties.\n ");
226
232
  }
227
233
  };
228
- AvatarComponent.prototype.setAvatarClasses = function () {
229
- this.renderer.addClass(this.avatar, SHAPE_CLASSES[this.shape]);
230
- this.renderer.addClass(this.avatar, "k-avatar-" + this.themeColor);
231
- this.renderer.addClass(this.avatar, SIZE_CLASSES[this.size]);
234
+ AvatarComponent.prototype.handleClasses = function (styleType, value) {
235
+ var elem = this.element.nativeElement;
236
+ var classes = getStylingClasses('avatar', styleType, this[styleType], value);
237
+ if (classes.toRemove) {
238
+ this.renderer.removeClass(elem, classes.toRemove);
239
+ }
240
+ if (classes.toAdd) {
241
+ this.renderer.addClass(elem, classes.toAdd);
242
+ }
243
+ };
244
+ AvatarComponent.prototype.handleFillModeAndThemeColorClasses = function (fill, themeColor) {
245
+ var _this = this;
246
+ var wrapperElement = this.element.nativeElement;
247
+ // remove existing fill and theme color classes
248
+ var currentClasses = Array.from(wrapperElement.classList);
249
+ var classesToRemove = currentClasses.filter(function (cl) {
250
+ return cl.startsWith('k-avatar-solid') || cl.startsWith('k-avatar-outline');
251
+ });
252
+ classesToRemove.forEach((function (cl) { return _this.renderer.removeClass(wrapperElement, cl); }));
253
+ // add fill if needed
254
+ if (fill !== null) {
255
+ this.renderer.addClass(wrapperElement, "k-avatar-" + fill);
256
+ }
257
+ // add theme color class if fill and theme color
258
+ if (fill !== null && themeColor !== null) {
259
+ this.renderer.addClass(wrapperElement, "k-avatar-" + fill + "-" + themeColor);
260
+ }
232
261
  };
233
262
  tslib_1.__decorate([
234
263
  HostBinding('class.k-avatar'),
235
264
  tslib_1.__metadata("design:type", Boolean)
236
265
  ], AvatarComponent.prototype, "hostClass", void 0);
237
- tslib_1.__decorate([
238
- HostBinding('class.k-avatar-solid'),
239
- tslib_1.__metadata("design:type", Boolean),
240
- tslib_1.__metadata("design:paramtypes", [])
241
- ], AvatarComponent.prototype, "solidClass", null);
242
- tslib_1.__decorate([
243
- HostBinding('class.k-avatar-outline'),
244
- tslib_1.__metadata("design:type", Boolean),
245
- tslib_1.__metadata("design:paramtypes", [])
246
- ], AvatarComponent.prototype, "outlineClass", null);
247
266
  tslib_1.__decorate([
248
267
  HostBinding('class.k-avatar-bordered'),
249
268
  tslib_1.__metadata("design:type", Boolean),
@@ -264,6 +283,11 @@ var AvatarComponent = /** @class */ (function () {
264
283
  tslib_1.__metadata("design:type", String),
265
284
  tslib_1.__metadata("design:paramtypes", [String])
266
285
  ], AvatarComponent.prototype, "size", null);
286
+ tslib_1.__decorate([
287
+ Input(),
288
+ tslib_1.__metadata("design:type", String),
289
+ tslib_1.__metadata("design:paramtypes", [String])
290
+ ], AvatarComponent.prototype, "rounded", null);
267
291
  tslib_1.__decorate([
268
292
  Input(),
269
293
  tslib_1.__metadata("design:type", String),
@@ -271,8 +295,14 @@ var AvatarComponent = /** @class */ (function () {
271
295
  ], AvatarComponent.prototype, "themeColor", null);
272
296
  tslib_1.__decorate([
273
297
  Input(),
274
- tslib_1.__metadata("design:type", String)
275
- ], AvatarComponent.prototype, "fill", void 0);
298
+ tslib_1.__metadata("design:type", String),
299
+ tslib_1.__metadata("design:paramtypes", [String])
300
+ ], AvatarComponent.prototype, "fillMode", null);
301
+ tslib_1.__decorate([
302
+ Input(),
303
+ tslib_1.__metadata("design:type", String),
304
+ tslib_1.__metadata("design:paramtypes", [String])
305
+ ], AvatarComponent.prototype, "fill", null);
276
306
  tslib_1.__decorate([
277
307
  Input(),
278
308
  tslib_1.__metadata("design:type", Boolean)
@@ -318,7 +348,7 @@ var AvatarComponent = /** @class */ (function () {
318
348
  AvatarComponent = tslib_1.__decorate([
319
349
  Component({
320
350
  selector: 'kendo-avatar',
321
- template: "\n <ng-content *ngIf=\"customAvatar\"></ng-content>\n\n <ng-container *ngIf=\"imageSrc\">\n <div class=\"k-avatar-image\" [ngStyle]=\"cssStyle\" [style.backgroundImage]=\"imageUrl\"></div>\n </ng-container>\n\n <ng-container *ngIf=\"initials\">\n <span class=\"k-avatar-text\" [ngStyle]=\"cssStyle\">{{ initials.substring(0, 2) }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"icon || iconClass\">\n <span class=\"k-avatar-icon\" [ngStyle]=\"cssStyle\" [ngClass]=\"iconClasses()\"></span>\n </ng-container>\n "
351
+ template: "\n <ng-content *ngIf=\"customAvatar\"></ng-content>\n\n <ng-container *ngIf=\"imageSrc\">\n <span class=\"k-avatar-image\">\n <img src=\"{{imageSrc}}\" [ngStyle]=\"cssStyle\" />\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"initials\">\n <span class=\"k-avatar-text\" [ngStyle]=\"cssStyle\">{{ initials.substring(0, 2) }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"icon || iconClass\">\n <span class=\"k-avatar-icon\" [ngStyle]=\"cssStyle\" [ngClass]=\"iconClasses()\"></span>\n </ng-container>\n "
322
352
  }),
323
353
  tslib_1.__metadata("design:paramtypes", [Renderer2, ElementRef])
324
354
  ], AvatarComponent);
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -4,6 +4,21 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Keys } from '@progress/kendo-angular-common';
6
6
  var nextId = 0;
7
+ var SIZES = {
8
+ small: 'sm',
9
+ medium: 'md',
10
+ large: 'lg'
11
+ };
12
+ var ROUNDNESS = {
13
+ small: 'sm',
14
+ medium: 'md',
15
+ large: 'lg',
16
+ full: 'full'
17
+ };
18
+ var SHAPE_TO_ROUNDED = {
19
+ rounded: 'large',
20
+ circle: 'full'
21
+ };
7
22
  var parsePanelBarItems = function (data) {
8
23
  return data.map(function (item) {
9
24
  if (!item.id) {
@@ -44,4 +59,29 @@ export var isNavigationKey = function (keyCode) {
44
59
  return keyCode === Keys.PageUp || keyCode === Keys.PageDown ||
45
60
  keyCode === Keys.Home || keyCode === Keys.End;
46
61
  };
62
+ /**
63
+ * @hidden
64
+ *
65
+ * Returns the styling classes to be added and removed
66
+ */
67
+ export var getStylingClasses = function (componentType, stylingOption, previousValue, newValue) {
68
+ switch (stylingOption) {
69
+ case 'size':
70
+ return {
71
+ toRemove: "k-" + componentType + "-" + SIZES[previousValue],
72
+ toAdd: newValue ? "k-" + componentType + "-" + SIZES[newValue] : null
73
+ };
74
+ case 'rounded':
75
+ return {
76
+ toRemove: "k-rounded-" + ROUNDNESS[previousValue],
77
+ toAdd: newValue ? "k-rounded-" + ROUNDNESS[newValue] : null
78
+ };
79
+ default:
80
+ break;
81
+ }
82
+ };
83
+ /**
84
+ * @hidden
85
+ */
86
+ export var mapShapeToRounded = function (shape) { return SHAPE_TO_ROUNDED[shape] || null; };
47
87
  export { ɵ0 };
package/dist/es/main.js CHANGED
@@ -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 var packageMetadata = {
9
9
  name: '@progress/kendo-angular-layout',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1635493161,
12
+ publishDate: 1640101191,
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
  };
@@ -218,6 +218,32 @@ var TabStripComponent = /** @class */ (function () {
218
218
  enumerable: true,
219
219
  configurable: true
220
220
  });
221
+ Object.defineProperty(TabStripComponent.prototype, "tabListWidth", {
222
+ /**
223
+ * @hidden
224
+ */
225
+ get: function () {
226
+ if (this.tabPosition === 'top' || this.tabPosition === 'bottom') {
227
+ return '100%';
228
+ }
229
+ return null;
230
+ },
231
+ enumerable: true,
232
+ configurable: true
233
+ });
234
+ Object.defineProperty(TabStripComponent.prototype, "tabListHeight", {
235
+ /**
236
+ * @hidden
237
+ */
238
+ get: function () {
239
+ if (this.tabPosition === 'left' || this.tabPosition === 'right') {
240
+ return '100%';
241
+ }
242
+ return null;
243
+ },
244
+ enumerable: true,
245
+ configurable: true
246
+ });
221
247
  Object.defineProperty(TabStripComponent.prototype, "isScrollable", {
222
248
  /**
223
249
  * @hidden
@@ -489,7 +515,7 @@ var TabStripComponent = /** @class */ (function () {
489
515
  ],
490
516
  exportAs: 'kendoTabStrip',
491
517
  selector: 'kendo-tabstrip',
492
- template: "\n <ng-container kendoTabStripLocalizedMessages\n i18n-closeTitle=\"kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.\"\n closeTitle=\"Close\">\n </ng-container>\n <ng-container *ngIf=\"!tabsAtBottom\">\n <ng-container *ngTemplateOutlet=\"heading\">\n </ng-container>\n <ng-container *ngTemplateOutlet=\"content\">\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"tabsAtBottom\">\n <ng-container *ngTemplateOutlet=\"content\">\n </ng-container>\n <ng-container *ngTemplateOutlet=\"heading\">\n </ng-container>\n </ng-container>\n <ng-template #heading>\n <div class=\"k-tabstrip-items-wrapper\" [ngClass]=\"itemsWrapperClass\">\n <span *ngIf=\"hasScrollButtons\"\n #prevScrollButton\n kendoTabStripScrollableButton\n [prev]=\"true\"></span>\n <ul role=\"tablist\" #tablist\n class=\"k-reset k-tabstrip-items\"\n [style.justifyContent]=\"tabsAlignmentStyles\"\n >\n <ng-container *ngFor=\"let tab of tabs; let i = index;\">\n <li *ngIf=\"!tab.closed\"\n #tabHeaderContainer\n kendoTabStripTab\n [ngClass]=\"tab.cssClass\"\n [ngStyle]=\"tab.cssStyle\"\n [tab]=\"tab\"\n [index]=\"i\"\n role=\"tab\"\n [tabStripClosable]=\"closable\"\n [tabStripCloseIcon]=\"closeIcon\"\n (click)=\"onTabClick($event, i)\"\n [id]=\"'k-tabstrip-tab-' + i\"\n [attr.aria-controls]=\"'k-tabstrip-tabpanel-' + i\">\n </li>\n </ng-container>\n </ul>\n <span *ngIf=\"hasScrollButtons\" #nextScrollButton\n kendoTabStripScrollableButton\n [prev]=\"false\">\n </span>\n </div>\n </ng-template>\n <ng-template #content>\n <ng-template ngFor let-tab [ngForOf]=\"tabs\" let-i=\"index\">\n <div\n [@state]=\"tab.selected && animate ? 'active' : 'inactive'\"\n *ngIf=\"!tab.closed && (tab.selected || keepTabContent)\"\n [ngClass]=\"!this.keepTabContent || tab.selected ? 'k-content k-state-active' : 'k-content'\"\n [tabIndex]=\"0\"\n role=\"tabpanel\"\n [id]=\"'k-tabstrip-tabpanel-' + i\"\n [attr.aria-hidden]=\"!tab.selected\"\n [attr.aria-expanded]=\"tab.selected\"\n [attr.aria-labelledby]=\"'k-tabstrip-tab-' + i\"\n [attr.aria-disabled]=\"tab.disabled\"\n >\n <ng-template [ngTemplateOutlet]=\"tab.tabContent?.templateRef\">\n </ng-template>\n </div>\n </ng-template>\n </ng-template>\n <kendo-resize-sensor *ngIf=\"isScrollable\" (resize)=\"onResize()\"></kendo-resize-sensor>\n "
518
+ template: "\n <ng-container kendoTabStripLocalizedMessages\n i18n-closeTitle=\"kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.\"\n closeTitle=\"Close\">\n </ng-container>\n <ng-container *ngIf=\"!tabsAtBottom\">\n <ng-container *ngTemplateOutlet=\"heading\">\n </ng-container>\n <ng-container *ngTemplateOutlet=\"content\">\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"tabsAtBottom\">\n <ng-container *ngTemplateOutlet=\"content\">\n </ng-container>\n <ng-container *ngTemplateOutlet=\"heading\">\n </ng-container>\n </ng-container>\n <ng-template #heading>\n <div class=\"k-tabstrip-items-wrapper\" [ngClass]=\"itemsWrapperClass\">\n <span *ngIf=\"hasScrollButtons\"\n #prevScrollButton\n kendoTabStripScrollableButton\n [prev]=\"true\"></span>\n <ul role=\"tablist\" #tablist\n class=\"k-reset k-tabstrip-items\"\n [style.justifyContent]=\"tabsAlignmentStyles\"\n [style.width]=\"tabListWidth\"\n [style.height]=\"tabListHeight\"\n >\n <ng-container *ngFor=\"let tab of tabs; let i = index;\">\n <li *ngIf=\"!tab.closed\"\n #tabHeaderContainer\n kendoTabStripTab\n [ngClass]=\"tab.cssClass\"\n [ngStyle]=\"tab.cssStyle\"\n [tab]=\"tab\"\n [index]=\"i\"\n role=\"tab\"\n [tabStripClosable]=\"closable\"\n [tabStripCloseIcon]=\"closeIcon\"\n (click)=\"onTabClick($event, i)\"\n [id]=\"'k-tabstrip-tab-' + i\"\n [attr.aria-controls]=\"'k-tabstrip-tabpanel-' + i\">\n </li>\n </ng-container>\n </ul>\n <span *ngIf=\"hasScrollButtons\" #nextScrollButton\n kendoTabStripScrollableButton\n [prev]=\"false\">\n </span>\n </div>\n </ng-template>\n <ng-template #content>\n <ng-template ngFor let-tab [ngForOf]=\"tabs\" let-i=\"index\">\n <div\n [@state]=\"tab.selected && animate ? 'active' : 'inactive'\"\n *ngIf=\"!tab.closed && (tab.selected || keepTabContent)\"\n [ngClass]=\"!this.keepTabContent || tab.selected ? 'k-content k-state-active' : 'k-content'\"\n [tabIndex]=\"0\"\n role=\"tabpanel\"\n [id]=\"'k-tabstrip-tabpanel-' + i\"\n [attr.aria-hidden]=\"!tab.selected\"\n [attr.aria-expanded]=\"tab.selected\"\n [attr.aria-labelledby]=\"'k-tabstrip-tab-' + i\"\n [attr.aria-disabled]=\"tab.disabled\"\n >\n <ng-template [ngTemplateOutlet]=\"tab.tabContent?.templateRef\">\n </ng-template>\n </div>\n </ng-template>\n </ng-template>\n <kendo-resize-sensor *ngIf=\"isScrollable\" (resize)=\"onResize()\"></kendo-resize-sensor>\n "
493
519
  }),
494
520
  tslib_1.__metadata("design:paramtypes", [LocalizationService,
495
521
  Renderer2,
@@ -3,10 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { OnInit, Renderer2, ElementRef, AfterViewInit } from '@angular/core';
6
- import { AvatarFill } from './models/fill';
7
- import { AvatarShape } from './models/shape';
8
- import { AvatarSize } from './models/size';
9
- import { AvatarThemeColor } from './models/theme-color';
6
+ import { AvatarFillMode, AvatarShape, AvatarSize, AvatarThemeColor, AvatarRounded } from './models/models';
10
7
  /**
11
8
  * Displays images, icons or initials representing people or other entities.
12
9
  */
@@ -14,14 +11,6 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
14
11
  private renderer;
15
12
  private element;
16
13
  hostClass: boolean;
17
- /**
18
- * @hidden
19
- */
20
- readonly solidClass: boolean;
21
- /**
22
- * @hidden
23
- */
24
- readonly outlineClass: boolean;
25
14
  /**
26
15
  * @hidden
27
16
  */
@@ -32,13 +21,7 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
32
21
  readonly flexBasis: string;
33
22
  /**
34
23
  * Sets the shape for the avatar.
35
- *
36
- * Possible values are:
37
- * * (Default) `square`
38
- * * `circle`
39
- * * `rectangle`
40
- * * `rounded`
41
- *
24
+ * @hidden
42
25
  */
43
26
  shape: AvatarShape;
44
27
  /**
@@ -52,15 +35,28 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
52
35
  *
53
36
  */
54
37
  size: AvatarSize;
38
+ /**
39
+ * Specifies the rounded styling of the avatar
40
+ * ([see example]({% slug appearance_avatar %}#toc-rounded-corners)).
41
+ *
42
+ * The possible values are:
43
+ * * `small`
44
+ * * `medium`
45
+ * * `large`
46
+ * * `full` (Default)
47
+ * * null
48
+ *
49
+ */
50
+ rounded: AvatarRounded;
55
51
  /**
56
52
  * Specifies the theme color of the avatar.
57
53
  * The theme color will be applied as background and border color, while also amending the text color accordingly.
58
54
  *
59
55
  * The possible values are:
56
+ * * `base`&mdash; Applies the base coloring value.
60
57
  * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
61
58
  * * `secondary`&mdash;Applies coloring based on secondary theme color.
62
59
  * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
63
- * * `inherit`&mdash; Applies inherited coloring value.
64
60
  * * `info`&mdash;Applies coloring based on info theme color.
65
61
  * * `success`&mdash; Applies coloring based on success theme color.
66
62
  * * `warning`&mdash; Applies coloring based on warning theme color.
@@ -68,7 +64,6 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
68
64
  * * `dark`&mdash; Applies coloring based on dark theme color.
69
65
  * * `light`&mdash; Applies coloring based on light theme color.
70
66
  * * `inverse`&mdash; Applies coloring based on inverted theme color.
71
- *
72
67
  */
73
68
  themeColor: AvatarThemeColor;
74
69
  /**
@@ -77,9 +72,17 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
77
72
  * The possible values are:
78
73
  * * `solid` (Default)
79
74
  * * `outline`
75
+ * * null
80
76
  *
81
77
  */
82
- fill: AvatarFill;
78
+ fillMode: AvatarFillMode;
79
+ /**
80
+ * Specifies the appearance fill style of the avatar.
81
+ * Deprecated, left for backward compatibility.
82
+ *
83
+ * @hidden
84
+ */
85
+ fill: AvatarFillMode;
83
86
  /**
84
87
  * Sets a border to the avatar.
85
88
  */
@@ -126,15 +129,11 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
126
129
  imageSrc: string;
127
130
  private _themeColor;
128
131
  private _size;
129
- private _shape;
130
- private avatar;
132
+ private _fillMode;
133
+ private _rounded;
131
134
  constructor(renderer: Renderer2, element: ElementRef);
132
- ngAfterViewInit(): void;
133
- /**
134
- * @hidden
135
- */
136
- readonly imageUrl: string;
137
135
  ngOnInit(): void;
136
+ ngAfterViewInit(): void;
138
137
  /**
139
138
  * @hidden
140
139
  */
@@ -144,5 +143,6 @@ export declare class AvatarComponent implements OnInit, AfterViewInit {
144
143
  */
145
144
  readonly customAvatar: boolean;
146
145
  private verifyProperties;
147
- private setAvatarClasses;
146
+ private handleClasses;
147
+ private handleFillModeAndThemeColorClasses;
148
148
  }