@progress/kendo-angular-indicators 1.1.3 → 2.0.0-next.202203230839

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 (103) hide show
  1. package/{dist/es2015/badge → badge}/badge-container.component.d.ts +3 -0
  2. package/{dist/es2015/badge → badge}/badge.component.d.ts +6 -2
  3. package/{dist/es2015/badge → badge}/models/align.d.ts +0 -0
  4. package/{dist/es2015/badge → badge}/models/fill.d.ts +0 -0
  5. package/{dist/es2015/badge → badge}/models/position.d.ts +0 -0
  6. package/{dist/es2015/badge → badge}/models/shape.d.ts +0 -0
  7. package/{dist/es2015/badge → badge}/models/size.d.ts +0 -0
  8. package/{dist/es2015/badge → badge}/models/theme-color.d.ts +0 -0
  9. package/badge.module.d.ts +17 -0
  10. package/bundles/kendo-angular-indicators.umd.js +5 -0
  11. package/esm2015/badge/badge-container.component.js +52 -0
  12. package/{dist/es2015 → esm2015}/badge/badge.component.js +50 -63
  13. package/{dist/es → esm2015}/badge/models/align.js +1 -0
  14. package/{dist/es2015 → esm2015}/badge/models/fill.js +1 -0
  15. package/{dist/es2015 → esm2015}/badge/models/position.js +1 -0
  16. package/{dist/es2015 → esm2015}/badge/models/shape.js +1 -0
  17. package/{dist/es → esm2015}/badge/models/size.js +1 -0
  18. package/{dist/es → esm2015}/badge/models/theme-color.js +1 -0
  19. package/esm2015/badge.module.js +35 -0
  20. package/{dist/es → esm2015}/indicators.module.js +20 -16
  21. package/{dist/es/index.js → esm2015/kendo-angular-indicators.js} +0 -1
  22. package/{dist/es2015 → esm2015}/loader/loader.component.js +27 -32
  23. package/{dist/es → esm2015}/loader/models/size.js +1 -0
  24. package/{dist/es → esm2015}/loader/models/theme-color.js +1 -0
  25. package/{dist/es → esm2015}/loader/models/type.js +1 -0
  26. package/esm2015/loader.module.js +31 -0
  27. package/{dist/es → esm2015}/main.js +1 -0
  28. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  29. package/{dist/es2015 → esm2015}/skeleton/constants.js +0 -0
  30. package/{dist/es2015 → esm2015}/skeleton/models.js +0 -0
  31. package/{dist/es2015 → esm2015}/skeleton/skeleton.component.js +22 -33
  32. package/esm2015/skeleton.module.js +25 -0
  33. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-indicators.js} +206 -203
  34. package/{dist/es2015/indicators.module.d.ts → indicators.module.d.ts} +7 -0
  35. package/{dist/es2015/index.d.ts → kendo-angular-indicators.d.ts} +1 -1
  36. package/{dist/es2015/loader → loader}/loader.component.d.ts +10 -4
  37. package/{dist/es2015/loader → loader}/models/size.d.ts +0 -0
  38. package/{dist/es2015/loader → loader}/models/theme-color.d.ts +0 -0
  39. package/{dist/es2015/loader → loader}/models/type.d.ts +0 -0
  40. package/{dist/es2015/loader.module.d.ts → loader.module.d.ts} +6 -0
  41. package/{dist/es2015/main.d.ts → main.d.ts} +1 -0
  42. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  43. package/package.json +30 -98
  44. package/schematics/ngAdd/index.js +5 -2
  45. package/schematics/ngAdd/index.js.map +1 -1
  46. package/{dist/es2015/skeleton → skeleton}/constants.d.ts +0 -0
  47. package/{dist/es2015/skeleton → skeleton}/models.d.ts +0 -0
  48. package/{dist/es2015/skeleton → skeleton}/skeleton.component.d.ts +9 -4
  49. package/{dist/es2015/skeleton.module.d.ts → skeleton.module.d.ts} +6 -0
  50. package/dist/cdn/js/kendo-angular-indicators.js +0 -20
  51. package/dist/cdn/main.js +0 -5
  52. package/dist/es/badge/badge-container.component.js +0 -49
  53. package/dist/es/badge/badge.component.js +0 -241
  54. package/dist/es/badge/models/fill.js +0 -4
  55. package/dist/es/badge/models/position.js +0 -4
  56. package/dist/es/badge/models/shape.js +0 -4
  57. package/dist/es/badge.module.js +0 -31
  58. package/dist/es/loader/loader.component.js +0 -155
  59. package/dist/es/loader.module.js +0 -29
  60. package/dist/es/package-metadata.js +0 -15
  61. package/dist/es/skeleton/constants.js +0 -28
  62. package/dist/es/skeleton/models.js +0 -12
  63. package/dist/es/skeleton/skeleton.component.js +0 -134
  64. package/dist/es/skeleton.module.js +0 -25
  65. package/dist/es2015/badge/badge-container.component.js +0 -46
  66. package/dist/es2015/badge/models/align.js +0 -4
  67. package/dist/es2015/badge/models/size.js +0 -4
  68. package/dist/es2015/badge/models/theme-color.js +0 -4
  69. package/dist/es2015/badge.module.d.ts +0 -10
  70. package/dist/es2015/badge.module.js +0 -30
  71. package/dist/es2015/index.js +0 -9
  72. package/dist/es2015/index.metadata.json +0 -1
  73. package/dist/es2015/indicators.module.js +0 -52
  74. package/dist/es2015/loader/models/size.js +0 -4
  75. package/dist/es2015/loader/models/theme-color.js +0 -4
  76. package/dist/es2015/loader/models/type.js +0 -4
  77. package/dist/es2015/loader.module.js +0 -28
  78. package/dist/es2015/main.js +0 -11
  79. package/dist/es2015/skeleton.module.js +0 -22
  80. package/dist/fesm5/index.js +0 -713
  81. package/dist/npm/badge/badge-container.component.js +0 -51
  82. package/dist/npm/badge/badge.component.js +0 -243
  83. package/dist/npm/badge/models/align.js +0 -6
  84. package/dist/npm/badge/models/fill.js +0 -6
  85. package/dist/npm/badge/models/position.js +0 -6
  86. package/dist/npm/badge/models/shape.js +0 -6
  87. package/dist/npm/badge/models/size.js +0 -6
  88. package/dist/npm/badge/models/theme-color.js +0 -6
  89. package/dist/npm/badge.module.js +0 -33
  90. package/dist/npm/index.js +0 -13
  91. package/dist/npm/indicators.module.js +0 -57
  92. package/dist/npm/loader/loader.component.js +0 -157
  93. package/dist/npm/loader/models/size.js +0 -6
  94. package/dist/npm/loader/models/theme-color.js +0 -6
  95. package/dist/npm/loader/models/type.js +0 -6
  96. package/dist/npm/loader.module.js +0 -31
  97. package/dist/npm/main.js +0 -20
  98. package/dist/npm/package-metadata.js +0 -17
  99. package/dist/npm/skeleton/constants.js +0 -30
  100. package/dist/npm/skeleton/models.js +0 -14
  101. package/dist/npm/skeleton/skeleton.component.js +0 -136
  102. package/dist/npm/skeleton.module.js +0 -27
  103. package/dist/systemjs/kendo-angular-indicators.js +0 -5
@@ -1,713 +0,0 @@
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
- *-------------------------------------------------------------------------------------------*/
5
- import { __decorate, __metadata } from 'tslib';
6
- import { HostBinding, Input, Component, ElementRef, Renderer2, NgModule, isDevMode, ChangeDetectionStrategy } from '@angular/core';
7
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
8
- import { validatePackage } from '@progress/kendo-licensing';
9
- import { CommonModule } from '@angular/common';
10
-
11
- /**
12
- * @hidden
13
- */
14
- var packageMetadata = {
15
- name: '@progress/kendo-angular-indicators',
16
- productName: 'Kendo UI for Angular',
17
- productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
18
- publishDate: 1646219044,
19
- version: '',
20
- 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'
21
- };
22
-
23
- var SIZE_CLASSES = {
24
- 'small': 'k-badge-sm',
25
- 'medium': 'k-badge-md',
26
- 'large': 'k-badge-lg'
27
- };
28
- /**
29
- * Represents the [Kendo UI Badge component for Angular]({% slug overview_badge %}).
30
- * Used to display additional information or status that is related to an element.
31
- */
32
- var BadgeComponent = /** @class */ (function () {
33
- function BadgeComponent(element, renderer, localizationService) {
34
- var _this = this;
35
- this.element = element;
36
- this.renderer = renderer;
37
- this.localizationService = localizationService;
38
- this.hostClass = true;
39
- /**
40
- * Specifies the size of the Badge.
41
- *
42
- * The possible values are:
43
- * * `small`
44
- * * `medium` (Default)
45
- * * `large`
46
- *
47
- */
48
- this.size = 'medium';
49
- /**
50
- * Specifies the appearance fill style of the Badge.
51
- *
52
- * The possible values are:
53
- * * `solid` (Default)
54
- * * `outline`
55
- *
56
- */
57
- this.fill = 'solid';
58
- /**
59
- * Specifies the theme color of the Badge.
60
- * The theme color will be applied as background and border color, while also amending the text color accordingly.
61
- *
62
- * The possible values are:
63
- * * `primary` (Default)—Applies coloring based on primary theme color.
64
- * * `secondary`—Applies coloring based on secondary theme color.
65
- * * `tertiary`— Applies coloring based on tertiary theme color.
66
- * * `inherit`— Applies inherited coloring value.
67
- * * `info`—Applies coloring based on info theme color.
68
- * * `success`— Applies coloring based on success theme color.
69
- * * `warning`— Applies coloring based on warning theme color.
70
- * * `error`— Applies coloring based on error theme color.
71
- * * `dark`— Applies coloring based on dark theme color.
72
- * * `light`— Applies coloring based on light theme color.
73
- * * `inverse`— Applies coloring based on inverted theme color.
74
- *
75
- */
76
- this.themeColor = 'primary';
77
- /**
78
- * Specifies the shape of the Badge.
79
- *
80
- * The possible values are:
81
- * * `circle` (Default)—Applies circular shape on the Badge.
82
- * * `rectangle`—Applies rectangular shape on the Badge.
83
- * * `rounded`—Applies rounded shape on the Badge.
84
- * * `dot`—Applies dot shape on the Badge.
85
- * * `pill`—Applies border radius equal to half of the height of the Badge.
86
- *
87
- */
88
- this.shape = 'circle';
89
- /**
90
- * Specifies the position of the Badge relative to the edge of the parent container element.
91
- *
92
- * The possible values are:
93
- * * `edge` (Default)—The center of the Badge is positioned on the edge of the parent container element.
94
- * * `inside`—The Badge is entirely positioned inside the edge of the parent container element.
95
- * * `outside`—The Badge is entirely positioned outside the edge of the parent container element.
96
- *
97
- */
98
- this.position = 'edge';
99
- /**
100
- * Specifies whether or not to render additional `cutout` border around the Badge.
101
- *
102
- * The possible values are:
103
- * * `true`
104
- * * `false` (Default)
105
- *
106
- */
107
- this.cutoutBorder = false;
108
- this.badgeClasses = [];
109
- this.badgeAlign = { vertical: 'top', horizontal: 'end' };
110
- this.rtl = false;
111
- validatePackage(packageMetadata);
112
- this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
113
- var rtl = _a.rtl;
114
- _this.rtl = rtl;
115
- _this.direction = _this.rtl ? 'rtl' : 'ltr';
116
- });
117
- }
118
- Object.defineProperty(BadgeComponent.prototype, "cutoutBorderClass", {
119
- get: function () {
120
- return this.cutoutBorder;
121
- },
122
- enumerable: true,
123
- configurable: true
124
- });
125
- Object.defineProperty(BadgeComponent.prototype, "align", {
126
- /**
127
- * Specifies the alignment of the Badge.
128
- *
129
- * The possible values are:
130
- * * `{ vertical: 'top', horizontal: 'end' }` (Default)
131
- * * `{ vertical: 'top', horizontal: 'start' }`
132
- * * `{ vertical: 'bottom', horizontal: 'start' }`
133
- * * `{ vertical: 'bottom', horizontal: 'end' }`
134
- *
135
- */
136
- get: function () {
137
- return this.badgeAlign;
138
- },
139
- set: function (align) {
140
- this.badgeAlign = Object.assign(this.badgeAlign, align);
141
- },
142
- enumerable: true,
143
- configurable: true
144
- });
145
- BadgeComponent.prototype.ngAfterViewInit = function () {
146
- if (!this.badgeClasses.length) {
147
- this.setBadgeClasses();
148
- }
149
- };
150
- BadgeComponent.prototype.ngOnChanges = function () {
151
- this.setBadgeClasses();
152
- };
153
- BadgeComponent.prototype.ngOnDestroy = function () {
154
- if (this.dynamicRTLSubscription) {
155
- this.dynamicRTLSubscription.unsubscribe();
156
- }
157
- };
158
- BadgeComponent.prototype.alignClass = function () {
159
- return "k-" + this.badgeAlign.vertical + "-" + this.badgeAlign.horizontal;
160
- };
161
- BadgeComponent.prototype.positionClass = function () {
162
- return "k-badge-" + this.position;
163
- };
164
- BadgeComponent.prototype.sizeClass = function () {
165
- return SIZE_CLASSES[this.size];
166
- };
167
- BadgeComponent.prototype.shapeClass = function () {
168
- return "k-badge-" + this.shape;
169
- };
170
- BadgeComponent.prototype.themeColorClass = function () {
171
- return "k-badge-" + this.themeColor;
172
- };
173
- BadgeComponent.prototype.fillClass = function () {
174
- return "k-badge-" + this.fill;
175
- };
176
- BadgeComponent.prototype.setBadgeClasses = function () {
177
- var _this = this;
178
- var element = this.element.nativeElement;
179
- this.badgeClasses.forEach(function (className) {
180
- _this.renderer.removeClass(element, className);
181
- });
182
- this.badgeClasses = [
183
- this.themeColorClass(),
184
- this.fillClass(),
185
- this.sizeClass(),
186
- this.shapeClass(),
187
- this.alignClass(),
188
- this.positionClass()
189
- ];
190
- this.badgeClasses.forEach(function (className) {
191
- _this.renderer.addClass(element, className);
192
- });
193
- };
194
- __decorate([
195
- HostBinding('class.k-badge'),
196
- __metadata("design:type", Boolean)
197
- ], BadgeComponent.prototype, "hostClass", void 0);
198
- __decorate([
199
- HostBinding('class.k-badge-border-cutout'),
200
- __metadata("design:type", Boolean),
201
- __metadata("design:paramtypes", [])
202
- ], BadgeComponent.prototype, "cutoutBorderClass", null);
203
- __decorate([
204
- HostBinding('attr.dir'),
205
- __metadata("design:type", String)
206
- ], BadgeComponent.prototype, "direction", void 0);
207
- __decorate([
208
- Input(),
209
- __metadata("design:type", Object),
210
- __metadata("design:paramtypes", [Object])
211
- ], BadgeComponent.prototype, "align", null);
212
- __decorate([
213
- Input(),
214
- __metadata("design:type", String)
215
- ], BadgeComponent.prototype, "size", void 0);
216
- __decorate([
217
- Input(),
218
- __metadata("design:type", String)
219
- ], BadgeComponent.prototype, "fill", void 0);
220
- __decorate([
221
- Input(),
222
- __metadata("design:type", String)
223
- ], BadgeComponent.prototype, "themeColor", void 0);
224
- __decorate([
225
- Input(),
226
- __metadata("design:type", String)
227
- ], BadgeComponent.prototype, "shape", void 0);
228
- __decorate([
229
- Input(),
230
- __metadata("design:type", String)
231
- ], BadgeComponent.prototype, "position", void 0);
232
- __decorate([
233
- Input(),
234
- __metadata("design:type", Boolean)
235
- ], BadgeComponent.prototype, "cutoutBorder", void 0);
236
- BadgeComponent = __decorate([
237
- Component({
238
- selector: 'kendo-badge',
239
- providers: [
240
- LocalizationService,
241
- {
242
- provide: L10N_PREFIX,
243
- useValue: 'kendo.badge.component'
244
- }
245
- ],
246
- template: "<ng-content></ng-content>"
247
- }),
248
- __metadata("design:paramtypes", [ElementRef,
249
- Renderer2,
250
- LocalizationService])
251
- ], BadgeComponent);
252
- return BadgeComponent;
253
- }());
254
-
255
- var BadgeContainerComponent = /** @class */ (function () {
256
- function BadgeContainerComponent(localizationService) {
257
- var _this = this;
258
- this.localizationService = localizationService;
259
- this.hostClass = true;
260
- this.rtl = false;
261
- this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
262
- var rtl = _a.rtl;
263
- _this.rtl = rtl;
264
- _this.direction = _this.rtl ? 'rtl' : 'ltr';
265
- });
266
- }
267
- BadgeContainerComponent.prototype.ngOnDestroy = function () {
268
- if (this.dynamicRTLSubscription) {
269
- this.dynamicRTLSubscription.unsubscribe();
270
- }
271
- };
272
- __decorate([
273
- HostBinding('class.k-badge-container'),
274
- __metadata("design:type", Boolean)
275
- ], BadgeContainerComponent.prototype, "hostClass", void 0);
276
- __decorate([
277
- HostBinding('attr.dir'),
278
- __metadata("design:type", String)
279
- ], BadgeContainerComponent.prototype, "direction", void 0);
280
- BadgeContainerComponent = __decorate([
281
- Component({
282
- selector: 'kendo-badge-container',
283
- providers: [
284
- LocalizationService,
285
- {
286
- provide: L10N_PREFIX,
287
- useValue: 'kendo.badge.component'
288
- }
289
- ],
290
- template: "<ng-content></ng-content>"
291
- }),
292
- __metadata("design:paramtypes", [LocalizationService])
293
- ], BadgeContainerComponent);
294
- return BadgeContainerComponent;
295
- }());
296
-
297
- var SIZE_CLASSES$1 = {
298
- 'small': 'k-loader-sm',
299
- 'medium': 'k-loader-md',
300
- 'large': 'k-loader-lg'
301
- };
302
- var SEGMENT_COUNT = {
303
- 'pulsing': 2,
304
- 'infinite-spinner': 3,
305
- 'converging-spinner': 4
306
- };
307
- var TYPE_CLASSES = {
308
- 'pulsing': 'k-loader-pulsing-2',
309
- 'infinite-spinner': 'k-loader-spinner-3',
310
- 'converging-spinner': 'k-loader-spinner-4'
311
- };
312
- /**
313
- * Represents the [Kendo UI Loader component for Angular]({% slug overview_loader %}).
314
- * Displays a Loader that represents an indeterminate wait time.
315
- */
316
- var LoaderComponent = /** @class */ (function () {
317
- function LoaderComponent(element, renderer) {
318
- this.element = element;
319
- this.renderer = renderer;
320
- this.hostClass = true;
321
- this._type = 'pulsing';
322
- this._themeColor = 'primary';
323
- this._size = 'medium';
324
- this.loader = this.element.nativeElement;
325
- validatePackage(packageMetadata);
326
- }
327
- Object.defineProperty(LoaderComponent.prototype, "type", {
328
- get: function () {
329
- return this._type;
330
- },
331
- /**
332
- * Specifies the Loader animation type.
333
- *
334
- * The possible values are:
335
- * - `pulsing` (default)
336
- * - `infinite-spinner`
337
- * - `converging-spinner`
338
- */
339
- set: function (type) {
340
- this.renderer.removeClass(this.loader, TYPE_CLASSES[this.type]);
341
- this.renderer.addClass(this.loader, TYPE_CLASSES[type]);
342
- this._type = type;
343
- },
344
- enumerable: true,
345
- configurable: true
346
- });
347
- Object.defineProperty(LoaderComponent.prototype, "themeColor", {
348
- get: function () {
349
- return this._themeColor;
350
- },
351
- /**
352
- * Specifies the theme color of the Loader.
353
- *
354
- * The possible values are:
355
- * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
356
- * * `secondary`&mdash;Applies coloring based on secondary theme color.
357
- * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
358
- * * `info`&mdash;Applies coloring based on info theme color.
359
- * * `success`&mdash; Applies coloring based on success theme color.
360
- * * `warning`&mdash; Applies coloring based on warning theme color.
361
- * * `error`&mdash; Applies coloring based on error theme color.
362
- * * `dark`&mdash; Applies coloring based on dark theme color.
363
- * * `light`&mdash; Applies coloring based on light theme color.
364
- * * `inverse`&mdash; Applies coloring based on inverted theme color.
365
- *
366
- */
367
- set: function (themeColor) {
368
- this.renderer.removeClass(this.loader, "k-loader-" + this.themeColor);
369
- this.renderer.addClass(this.loader, "k-loader-" + themeColor);
370
- this._themeColor = themeColor;
371
- },
372
- enumerable: true,
373
- configurable: true
374
- });
375
- Object.defineProperty(LoaderComponent.prototype, "size", {
376
- get: function () {
377
- return this._size;
378
- },
379
- /**
380
- * Specifies the size of the Loader.
381
- *
382
- * The possible values are:
383
- * * `small`
384
- * * `medium` (Default)
385
- * * `large`
386
- *
387
- */
388
- set: function (size) {
389
- this.renderer.removeClass(this.loader, SIZE_CLASSES$1[this.size]);
390
- this.renderer.addClass(this.loader, SIZE_CLASSES$1[size]);
391
- this._size = size;
392
- },
393
- enumerable: true,
394
- configurable: true
395
- });
396
- LoaderComponent.prototype.ngAfterViewInit = function () {
397
- this.setLoaderClasses();
398
- };
399
- Object.defineProperty(LoaderComponent.prototype, "segmentCount", {
400
- /**
401
- * @hidden
402
- */
403
- get: function () {
404
- return new Array(SEGMENT_COUNT[this.type]);
405
- },
406
- enumerable: true,
407
- configurable: true
408
- });
409
- LoaderComponent.prototype.setLoaderClasses = function () {
410
- this.renderer.addClass(this.loader, TYPE_CLASSES[this.type]);
411
- this.renderer.addClass(this.loader, "k-loader-" + this.themeColor);
412
- this.renderer.addClass(this.loader, SIZE_CLASSES$1[this.size]);
413
- };
414
- __decorate([
415
- HostBinding('class.k-loader'),
416
- __metadata("design:type", Boolean)
417
- ], LoaderComponent.prototype, "hostClass", void 0);
418
- __decorate([
419
- Input(),
420
- __metadata("design:type", String),
421
- __metadata("design:paramtypes", [String])
422
- ], LoaderComponent.prototype, "type", null);
423
- __decorate([
424
- Input(),
425
- __metadata("design:type", String),
426
- __metadata("design:paramtypes", [String])
427
- ], LoaderComponent.prototype, "themeColor", null);
428
- __decorate([
429
- Input(),
430
- __metadata("design:type", String),
431
- __metadata("design:paramtypes", [String])
432
- ], LoaderComponent.prototype, "size", null);
433
- LoaderComponent = __decorate([
434
- Component({
435
- selector: 'kendo-loader',
436
- template: "\n <div class=\"k-loader-canvas\">\n <span *ngFor=\"let segment of segmentCount\" class=\"k-loader-segment\"></span>\n </div>\n "
437
- }),
438
- __metadata("design:paramtypes", [ElementRef,
439
- Renderer2])
440
- ], LoaderComponent);
441
- return LoaderComponent;
442
- }());
443
-
444
- var exportedModules = [
445
- LoaderComponent
446
- ];
447
- var declarations = exportedModules.slice();
448
- /**
449
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
450
- * definition for the Loader component.
451
- */
452
- var LoaderModule = /** @class */ (function () {
453
- function LoaderModule() {
454
- }
455
- LoaderModule = __decorate([
456
- NgModule({
457
- declarations: [declarations],
458
- exports: [exportedModules],
459
- imports: [CommonModule]
460
- })
461
- ], LoaderModule);
462
- return LoaderModule;
463
- }());
464
-
465
- /**
466
- * @hidden
467
- */
468
- var validAnimations = [false, 'pulse', 'wave'];
469
- /**
470
- * @hidden
471
- */
472
- var validShapes = ['circle', 'rectangle', 'text'];
473
-
474
- /**
475
- * @hidden
476
- */
477
- var ANIMATION_CLASSES = {
478
- pulse: 'k-skeleton-pulse',
479
- wave: 'k-skeleton-wave'
480
- };
481
- /**
482
- * @hidden
483
- */
484
- var SHAPE_CLASSES = {
485
- rectangle: 'k-skeleton-rect',
486
- circle: 'k-skeleton-circle',
487
- text: 'k-skeleton-text'
488
- };
489
- /**
490
- * @hidden
491
- */
492
- var skeletonShapeError = function (input) { return "\"" + input + "\" is not a valid kendo-skeleton shape. Valid shapes are: " + validShapes.map(function (s) { return "\"" + s + "\""; }).join(" | ") + "."; };
493
- /**
494
- * @hidden
495
- */
496
- var skeletonAnimationError = function (input) { return "\"" + input + "\" is not a valid kendo-skeleton animation. Valid values are: 'pulse' | 'wave' | false."; };
497
-
498
- /**
499
- * Represents the [Kendo UI Skeleton component for Angular]({% slug overview_skeleton %}).
500
- * Displays a Skeleton that represents loading content.
501
- */
502
- var SkeletonComponent = /** @class */ (function () {
503
- function SkeletonComponent(renderer, hostElement) {
504
- this.renderer = renderer;
505
- this.hostElement = hostElement;
506
- this._animation = "pulse";
507
- this._shape = 'text';
508
- }
509
- Object.defineProperty(SkeletonComponent.prototype, "animation", {
510
- get: function () {
511
- return this._animation;
512
- },
513
- /**
514
- * Specifies the animation settings of the Skeleton.
515
- *
516
- * The possible values are:
517
- * * `pulse` &mdash; (Default) Shows a pulse animation effect.
518
- * * `wave` &mdash; Shows a wave animation effect.
519
- * * `false` &mdash; Disables the animation. Note that it's a boolean, not a string.
520
- */
521
- set: function (animation) {
522
- if (isDevMode() && validAnimations.indexOf(animation) === -1) {
523
- throw new Error(skeletonAnimationError(animation));
524
- }
525
- if (this.animation) {
526
- this.renderer.removeClass(this.hostElement.nativeElement, ANIMATION_CLASSES[this.animation]);
527
- }
528
- if (animation) {
529
- this.renderer.addClass(this.hostElement.nativeElement, ANIMATION_CLASSES[animation]);
530
- }
531
- this._animation = animation;
532
- },
533
- enumerable: true,
534
- configurable: true
535
- });
536
- Object.defineProperty(SkeletonComponent.prototype, "shape", {
537
- get: function () {
538
- return this._shape;
539
- },
540
- /**
541
- * Specifies the shape of the Skeleton.
542
- *
543
- * The possible values are:
544
- * * `text` &mdash; (Default) Renders a line Skeleton.
545
- * * `circle` &mdash; Renders a circular Skeleton.
546
- * * `rectangle` &mdash; Renders a rectangular Skeleton.
547
- */
548
- set: function (shape) {
549
- if (isDevMode() && validShapes.indexOf(shape) === -1) {
550
- throw new Error(skeletonShapeError(shape));
551
- }
552
- this.renderer.removeClass(this.hostElement.nativeElement, SHAPE_CLASSES[this.shape]);
553
- this.renderer.addClass(this.hostElement.nativeElement, SHAPE_CLASSES[shape]);
554
- this._shape = shape;
555
- },
556
- enumerable: true,
557
- configurable: true
558
- });
559
- Object.defineProperty(SkeletonComponent.prototype, "width", {
560
- /**
561
- * Specifies the width of the Skeleton component.
562
- * * Required for all Skeleton shapes.
563
- * * Can be set to a string, e.g. '100px', '3em', '50%'.
564
- * * Can be set to an integer number (will be read as width in pixels).
565
- */
566
- set: function (width) {
567
- this.renderer.setStyle(this.hostElement.nativeElement, "width", typeof width === "string" ? width : width + "px");
568
- },
569
- enumerable: true,
570
- configurable: true
571
- });
572
- Object.defineProperty(SkeletonComponent.prototype, "height", {
573
- /**
574
- * Specifies the height of the Skeleton component.
575
- * * Required for 'circle' and 'rectangle' shapes.
576
- * * Not required for 'text', as it is derived from the current CSS font-size.
577
- * * Can be set to a string, e.g. '100px', '3em', '50%'.
578
- * * Can be set to an integer number (will be read as height in pixels).
579
- */
580
- set: function (height) {
581
- this.renderer.setStyle(this.hostElement.nativeElement, "height", typeof height === "string" ? height : height + "px");
582
- },
583
- enumerable: true,
584
- configurable: true
585
- });
586
- SkeletonComponent.prototype.ngAfterViewInit = function () {
587
- var hostElement = this.hostElement.nativeElement;
588
- hostElement.classList.add("k-skeleton", SHAPE_CLASSES[this.shape]);
589
- if (this.animation) {
590
- hostElement.classList.add(ANIMATION_CLASSES[this.animation]);
591
- }
592
- };
593
- __decorate([
594
- Input(),
595
- __metadata("design:type", Object),
596
- __metadata("design:paramtypes", [Object])
597
- ], SkeletonComponent.prototype, "animation", null);
598
- __decorate([
599
- Input(),
600
- __metadata("design:type", String),
601
- __metadata("design:paramtypes", [String])
602
- ], SkeletonComponent.prototype, "shape", null);
603
- __decorate([
604
- Input(),
605
- __metadata("design:type", Object),
606
- __metadata("design:paramtypes", [Object])
607
- ], SkeletonComponent.prototype, "width", null);
608
- __decorate([
609
- Input(),
610
- __metadata("design:type", Object),
611
- __metadata("design:paramtypes", [Object])
612
- ], SkeletonComponent.prototype, "height", null);
613
- SkeletonComponent = __decorate([
614
- Component({
615
- selector: "kendo-skeleton",
616
- changeDetection: ChangeDetectionStrategy.OnPush,
617
- template: ""
618
- }),
619
- __metadata("design:paramtypes", [Renderer2, ElementRef])
620
- ], SkeletonComponent);
621
- return SkeletonComponent;
622
- }());
623
-
624
- /**
625
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
626
- * definition for the Skeleton component.
627
- */
628
- var SkeletonModule = /** @class */ (function () {
629
- function SkeletonModule() {
630
- }
631
- SkeletonModule = __decorate([
632
- NgModule({
633
- declarations: [SkeletonComponent],
634
- exports: [SkeletonComponent],
635
- imports: [CommonModule]
636
- })
637
- ], SkeletonModule);
638
- return SkeletonModule;
639
- }());
640
-
641
- var exportedModules$1 = [
642
- BadgeComponent,
643
- BadgeContainerComponent
644
- ];
645
- var declarations$1 = exportedModules$1.slice();
646
- /**
647
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
648
- * definition for the Badge component.
649
- */
650
- var BadgeModule = /** @class */ (function () {
651
- function BadgeModule() {
652
- }
653
- BadgeModule = __decorate([
654
- NgModule({
655
- declarations: [declarations$1],
656
- exports: [exportedModules$1],
657
- imports: [CommonModule]
658
- })
659
- ], BadgeModule);
660
- return BadgeModule;
661
- }());
662
-
663
- /**
664
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
665
- * definition for the Indicators components.
666
- *
667
- * @example
668
- *
669
- * ```ts-no-run
670
- * // Import the Indicators module
671
- * import { IndicatorsModule } from '@progress/kendo-angular-indicators';
672
- *
673
- * // The browser platform with a compiler
674
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
675
- *
676
- * import { NgModule } from '@angular/core';
677
- *
678
- * // Import the app component
679
- * import { AppComponent } from './app.component';
680
- *
681
- * // Define the app module
682
- * _@NgModule({
683
- * declarations: [AppComponent], // declare app component
684
- * imports: [BrowserModule, IndicatorsModule], // import Indicators module
685
- * bootstrap: [AppComponent]
686
- * })
687
- * export class AppModule {}
688
- *
689
- * // Compile and launch the module
690
- * platformBrowserDynamic().bootstrapModule(AppModule);
691
- *
692
- * ```
693
- */
694
- var IndicatorsModule = /** @class */ (function () {
695
- function IndicatorsModule() {
696
- }
697
- IndicatorsModule = __decorate([
698
- NgModule({
699
- exports: [
700
- BadgeModule,
701
- LoaderModule,
702
- SkeletonModule
703
- ]
704
- })
705
- ], IndicatorsModule);
706
- return IndicatorsModule;
707
- }());
708
-
709
- /**
710
- * Generated bundle index. Do not edit.
711
- */
712
-
713
- export { BadgeModule, BadgeComponent, BadgeContainerComponent, LoaderComponent, LoaderModule, SkeletonModule, SkeletonComponent, IndicatorsModule };