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

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,51 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
- var BadgeContainerComponent = /** @class */ (function () {
11
- function BadgeContainerComponent(localizationService) {
12
- var _this = this;
13
- this.localizationService = localizationService;
14
- this.hostClass = true;
15
- this.rtl = false;
16
- this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
17
- var rtl = _a.rtl;
18
- _this.rtl = rtl;
19
- _this.direction = _this.rtl ? 'rtl' : 'ltr';
20
- });
21
- }
22
- BadgeContainerComponent.prototype.ngOnDestroy = function () {
23
- if (this.dynamicRTLSubscription) {
24
- this.dynamicRTLSubscription.unsubscribe();
25
- }
26
- };
27
- tslib_1.__decorate([
28
- core_1.HostBinding('class.k-badge-container'),
29
- tslib_1.__metadata("design:type", Boolean)
30
- ], BadgeContainerComponent.prototype, "hostClass", void 0);
31
- tslib_1.__decorate([
32
- core_1.HostBinding('attr.dir'),
33
- tslib_1.__metadata("design:type", String)
34
- ], BadgeContainerComponent.prototype, "direction", void 0);
35
- BadgeContainerComponent = tslib_1.__decorate([
36
- core_1.Component({
37
- selector: 'kendo-badge-container',
38
- providers: [
39
- kendo_angular_l10n_1.LocalizationService,
40
- {
41
- provide: kendo_angular_l10n_1.L10N_PREFIX,
42
- useValue: 'kendo.badge.component'
43
- }
44
- ],
45
- template: "<ng-content></ng-content>"
46
- }),
47
- tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
48
- ], BadgeContainerComponent);
49
- return BadgeContainerComponent;
50
- }());
51
- exports.BadgeContainerComponent = BadgeContainerComponent;
@@ -1,243 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
- var kendo_licensing_1 = require("@progress/kendo-licensing");
11
- var package_metadata_1 = require("../package-metadata");
12
- var SIZE_CLASSES = {
13
- 'small': 'k-badge-sm',
14
- 'medium': 'k-badge-md',
15
- 'large': 'k-badge-lg'
16
- };
17
- /**
18
- * Represents the [Kendo UI Badge component for Angular]({% slug overview_badge %}).
19
- * Used to display additional information or status that is related to an element.
20
- */
21
- var BadgeComponent = /** @class */ (function () {
22
- function BadgeComponent(element, renderer, localizationService) {
23
- var _this = this;
24
- this.element = element;
25
- this.renderer = renderer;
26
- this.localizationService = localizationService;
27
- this.hostClass = true;
28
- /**
29
- * Specifies the size of the Badge.
30
- *
31
- * The possible values are:
32
- * * `small`
33
- * * `medium` (Default)
34
- * * `large`
35
- *
36
- */
37
- this.size = 'medium';
38
- /**
39
- * Specifies the appearance fill style of the Badge.
40
- *
41
- * The possible values are:
42
- * * `solid` (Default)
43
- * * `outline`
44
- *
45
- */
46
- this.fill = 'solid';
47
- /**
48
- * Specifies the theme color of the Badge.
49
- * The theme color will be applied as background and border color, while also amending the text color accordingly.
50
- *
51
- * The possible values are:
52
- * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
53
- * * `secondary`&mdash;Applies coloring based on secondary theme color.
54
- * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
55
- * * `inherit`&mdash; Applies inherited coloring value.
56
- * * `info`&mdash;Applies coloring based on info theme color.
57
- * * `success`&mdash; Applies coloring based on success theme color.
58
- * * `warning`&mdash; Applies coloring based on warning theme color.
59
- * * `error`&mdash; Applies coloring based on error theme color.
60
- * * `dark`&mdash; Applies coloring based on dark theme color.
61
- * * `light`&mdash; Applies coloring based on light theme color.
62
- * * `inverse`&mdash; Applies coloring based on inverted theme color.
63
- *
64
- */
65
- this.themeColor = 'primary';
66
- /**
67
- * Specifies the shape of the Badge.
68
- *
69
- * The possible values are:
70
- * * `circle` (Default)&mdash;Applies circular shape on the Badge.
71
- * * `rectangle`&mdash;Applies rectangular shape on the Badge.
72
- * * `rounded`&mdash;Applies rounded shape on the Badge.
73
- * * `dot`&mdash;Applies dot shape on the Badge.
74
- * * `pill`&mdash;Applies border radius equal to half of the height of the Badge.
75
- *
76
- */
77
- this.shape = 'circle';
78
- /**
79
- * Specifies the position of the Badge relative to the edge of the parent container element.
80
- *
81
- * The possible values are:
82
- * * `edge` (Default)&mdash;The center of the Badge is positioned on the edge of the parent container element.
83
- * * `inside`&mdash;The Badge is entirely positioned inside the edge of the parent container element.
84
- * * `outside`&mdash;The Badge is entirely positioned outside the edge of the parent container element.
85
- *
86
- */
87
- this.position = 'edge';
88
- /**
89
- * Specifies whether or not to render additional `cutout` border around the Badge.
90
- *
91
- * The possible values are:
92
- * * `true`
93
- * * `false` (Default)
94
- *
95
- */
96
- this.cutoutBorder = false;
97
- this.badgeClasses = [];
98
- this.badgeAlign = { vertical: 'top', horizontal: 'end' };
99
- this.rtl = false;
100
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
101
- this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
102
- var rtl = _a.rtl;
103
- _this.rtl = rtl;
104
- _this.direction = _this.rtl ? 'rtl' : 'ltr';
105
- });
106
- }
107
- Object.defineProperty(BadgeComponent.prototype, "cutoutBorderClass", {
108
- get: function () {
109
- return this.cutoutBorder;
110
- },
111
- enumerable: true,
112
- configurable: true
113
- });
114
- Object.defineProperty(BadgeComponent.prototype, "align", {
115
- /**
116
- * Specifies the alignment of the Badge.
117
- *
118
- * The possible values are:
119
- * * `{ vertical: 'top', horizontal: 'end' }` (Default)
120
- * * `{ vertical: 'top', horizontal: 'start' }`
121
- * * `{ vertical: 'bottom', horizontal: 'start' }`
122
- * * `{ vertical: 'bottom', horizontal: 'end' }`
123
- *
124
- */
125
- get: function () {
126
- return this.badgeAlign;
127
- },
128
- set: function (align) {
129
- this.badgeAlign = Object.assign(this.badgeAlign, align);
130
- },
131
- enumerable: true,
132
- configurable: true
133
- });
134
- BadgeComponent.prototype.ngAfterViewInit = function () {
135
- if (!this.badgeClasses.length) {
136
- this.setBadgeClasses();
137
- }
138
- };
139
- BadgeComponent.prototype.ngOnChanges = function () {
140
- this.setBadgeClasses();
141
- };
142
- BadgeComponent.prototype.ngOnDestroy = function () {
143
- if (this.dynamicRTLSubscription) {
144
- this.dynamicRTLSubscription.unsubscribe();
145
- }
146
- };
147
- BadgeComponent.prototype.alignClass = function () {
148
- return "k-" + this.badgeAlign.vertical + "-" + this.badgeAlign.horizontal;
149
- };
150
- BadgeComponent.prototype.positionClass = function () {
151
- return "k-badge-" + this.position;
152
- };
153
- BadgeComponent.prototype.sizeClass = function () {
154
- return SIZE_CLASSES[this.size];
155
- };
156
- BadgeComponent.prototype.shapeClass = function () {
157
- return "k-badge-" + this.shape;
158
- };
159
- BadgeComponent.prototype.themeColorClass = function () {
160
- return "k-badge-" + this.themeColor;
161
- };
162
- BadgeComponent.prototype.fillClass = function () {
163
- return "k-badge-" + this.fill;
164
- };
165
- BadgeComponent.prototype.setBadgeClasses = function () {
166
- var _this = this;
167
- var element = this.element.nativeElement;
168
- this.badgeClasses.forEach(function (className) {
169
- _this.renderer.removeClass(element, className);
170
- });
171
- this.badgeClasses = [
172
- this.themeColorClass(),
173
- this.fillClass(),
174
- this.sizeClass(),
175
- this.shapeClass(),
176
- this.alignClass(),
177
- this.positionClass()
178
- ];
179
- this.badgeClasses.forEach(function (className) {
180
- _this.renderer.addClass(element, className);
181
- });
182
- };
183
- tslib_1.__decorate([
184
- core_1.HostBinding('class.k-badge'),
185
- tslib_1.__metadata("design:type", Boolean)
186
- ], BadgeComponent.prototype, "hostClass", void 0);
187
- tslib_1.__decorate([
188
- core_1.HostBinding('class.k-badge-border-cutout'),
189
- tslib_1.__metadata("design:type", Boolean),
190
- tslib_1.__metadata("design:paramtypes", [])
191
- ], BadgeComponent.prototype, "cutoutBorderClass", null);
192
- tslib_1.__decorate([
193
- core_1.HostBinding('attr.dir'),
194
- tslib_1.__metadata("design:type", String)
195
- ], BadgeComponent.prototype, "direction", void 0);
196
- tslib_1.__decorate([
197
- core_1.Input(),
198
- tslib_1.__metadata("design:type", Object),
199
- tslib_1.__metadata("design:paramtypes", [Object])
200
- ], BadgeComponent.prototype, "align", null);
201
- tslib_1.__decorate([
202
- core_1.Input(),
203
- tslib_1.__metadata("design:type", String)
204
- ], BadgeComponent.prototype, "size", void 0);
205
- tslib_1.__decorate([
206
- core_1.Input(),
207
- tslib_1.__metadata("design:type", String)
208
- ], BadgeComponent.prototype, "fill", void 0);
209
- tslib_1.__decorate([
210
- core_1.Input(),
211
- tslib_1.__metadata("design:type", String)
212
- ], BadgeComponent.prototype, "themeColor", void 0);
213
- tslib_1.__decorate([
214
- core_1.Input(),
215
- tslib_1.__metadata("design:type", String)
216
- ], BadgeComponent.prototype, "shape", void 0);
217
- tslib_1.__decorate([
218
- core_1.Input(),
219
- tslib_1.__metadata("design:type", String)
220
- ], BadgeComponent.prototype, "position", void 0);
221
- tslib_1.__decorate([
222
- core_1.Input(),
223
- tslib_1.__metadata("design:type", Boolean)
224
- ], BadgeComponent.prototype, "cutoutBorder", void 0);
225
- BadgeComponent = tslib_1.__decorate([
226
- core_1.Component({
227
- selector: 'kendo-badge',
228
- providers: [
229
- kendo_angular_l10n_1.LocalizationService,
230
- {
231
- provide: kendo_angular_l10n_1.L10N_PREFIX,
232
- useValue: 'kendo.badge.component'
233
- }
234
- ],
235
- template: "<ng-content></ng-content>"
236
- }),
237
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
238
- core_1.Renderer2,
239
- kendo_angular_l10n_1.LocalizationService])
240
- ], BadgeComponent);
241
- return BadgeComponent;
242
- }());
243
- exports.BadgeComponent = BadgeComponent;
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,33 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var common_1 = require("@angular/common");
10
- var badge_container_component_1 = require("./badge/badge-container.component");
11
- var badge_component_1 = require("./badge/badge.component");
12
- var exportedModules = [
13
- badge_component_1.BadgeComponent,
14
- badge_container_component_1.BadgeContainerComponent
15
- ];
16
- var declarations = exportedModules.slice();
17
- /**
18
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
19
- * definition for the Badge component.
20
- */
21
- var BadgeModule = /** @class */ (function () {
22
- function BadgeModule() {
23
- }
24
- BadgeModule = tslib_1.__decorate([
25
- core_1.NgModule({
26
- declarations: [declarations],
27
- exports: [exportedModules],
28
- imports: [common_1.CommonModule]
29
- })
30
- ], BadgeModule);
31
- return BadgeModule;
32
- }());
33
- exports.BadgeModule = BadgeModule;
package/dist/npm/index.js DELETED
@@ -1,13 +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
- "use strict";
6
- /**
7
- * Generated bundle index. Do not edit.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- var tslib_1 = require("tslib");
11
- tslib_1.__exportStar(require("./main"), exports);
12
- var badge_module_1 = require("./badge.module");
13
- exports.BadgeModule = badge_module_1.BadgeModule
@@ -1,57 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var badge_module_1 = require("./badge.module");
10
- var loader_module_1 = require("./loader.module");
11
- var skeleton_module_1 = require("./skeleton.module");
12
- /**
13
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
14
- * definition for the Indicators components.
15
- *
16
- * @example
17
- *
18
- * ```ts-no-run
19
- * // Import the Indicators module
20
- * import { IndicatorsModule } from '@progress/kendo-angular-indicators';
21
- *
22
- * // The browser platform with a compiler
23
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
24
- *
25
- * import { NgModule } from '@angular/core';
26
- *
27
- * // Import the app component
28
- * import { AppComponent } from './app.component';
29
- *
30
- * // Define the app module
31
- * _@NgModule({
32
- * declarations: [AppComponent], // declare app component
33
- * imports: [BrowserModule, IndicatorsModule], // import Indicators module
34
- * bootstrap: [AppComponent]
35
- * })
36
- * export class AppModule {}
37
- *
38
- * // Compile and launch the module
39
- * platformBrowserDynamic().bootstrapModule(AppModule);
40
- *
41
- * ```
42
- */
43
- var IndicatorsModule = /** @class */ (function () {
44
- function IndicatorsModule() {
45
- }
46
- IndicatorsModule = tslib_1.__decorate([
47
- core_1.NgModule({
48
- exports: [
49
- badge_module_1.BadgeModule,
50
- loader_module_1.LoaderModule,
51
- skeleton_module_1.SkeletonModule
52
- ]
53
- })
54
- ], IndicatorsModule);
55
- return IndicatorsModule;
56
- }());
57
- exports.IndicatorsModule = IndicatorsModule;
@@ -1,157 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_licensing_1 = require("@progress/kendo-licensing");
10
- var package_metadata_1 = require("../package-metadata");
11
- var SIZE_CLASSES = {
12
- 'small': 'k-loader-sm',
13
- 'medium': 'k-loader-md',
14
- 'large': 'k-loader-lg'
15
- };
16
- var SEGMENT_COUNT = {
17
- 'pulsing': 2,
18
- 'infinite-spinner': 3,
19
- 'converging-spinner': 4
20
- };
21
- var TYPE_CLASSES = {
22
- 'pulsing': 'k-loader-pulsing-2',
23
- 'infinite-spinner': 'k-loader-spinner-3',
24
- 'converging-spinner': 'k-loader-spinner-4'
25
- };
26
- /**
27
- * Represents the [Kendo UI Loader component for Angular]({% slug overview_loader %}).
28
- * Displays a Loader that represents an indeterminate wait time.
29
- */
30
- var LoaderComponent = /** @class */ (function () {
31
- function LoaderComponent(element, renderer) {
32
- this.element = element;
33
- this.renderer = renderer;
34
- this.hostClass = true;
35
- this._type = 'pulsing';
36
- this._themeColor = 'primary';
37
- this._size = 'medium';
38
- this.loader = this.element.nativeElement;
39
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
40
- }
41
- Object.defineProperty(LoaderComponent.prototype, "type", {
42
- get: function () {
43
- return this._type;
44
- },
45
- /**
46
- * Specifies the Loader animation type.
47
- *
48
- * The possible values are:
49
- * - `pulsing` (default)
50
- * - `infinite-spinner`
51
- * - `converging-spinner`
52
- */
53
- set: function (type) {
54
- this.renderer.removeClass(this.loader, TYPE_CLASSES[this.type]);
55
- this.renderer.addClass(this.loader, TYPE_CLASSES[type]);
56
- this._type = type;
57
- },
58
- enumerable: true,
59
- configurable: true
60
- });
61
- Object.defineProperty(LoaderComponent.prototype, "themeColor", {
62
- get: function () {
63
- return this._themeColor;
64
- },
65
- /**
66
- * Specifies the theme color of the Loader.
67
- *
68
- * The possible values are:
69
- * * `primary` (Default)&mdash;Applies coloring based on primary theme color.
70
- * * `secondary`&mdash;Applies coloring based on secondary theme color.
71
- * * `tertiary`&mdash; Applies coloring based on tertiary theme color.
72
- * * `info`&mdash;Applies coloring based on info theme color.
73
- * * `success`&mdash; Applies coloring based on success theme color.
74
- * * `warning`&mdash; Applies coloring based on warning theme color.
75
- * * `error`&mdash; Applies coloring based on error theme color.
76
- * * `dark`&mdash; Applies coloring based on dark theme color.
77
- * * `light`&mdash; Applies coloring based on light theme color.
78
- * * `inverse`&mdash; Applies coloring based on inverted theme color.
79
- *
80
- */
81
- set: function (themeColor) {
82
- this.renderer.removeClass(this.loader, "k-loader-" + this.themeColor);
83
- this.renderer.addClass(this.loader, "k-loader-" + themeColor);
84
- this._themeColor = themeColor;
85
- },
86
- enumerable: true,
87
- configurable: true
88
- });
89
- Object.defineProperty(LoaderComponent.prototype, "size", {
90
- get: function () {
91
- return this._size;
92
- },
93
- /**
94
- * Specifies the size of the Loader.
95
- *
96
- * The possible values are:
97
- * * `small`
98
- * * `medium` (Default)
99
- * * `large`
100
- *
101
- */
102
- set: function (size) {
103
- this.renderer.removeClass(this.loader, SIZE_CLASSES[this.size]);
104
- this.renderer.addClass(this.loader, SIZE_CLASSES[size]);
105
- this._size = size;
106
- },
107
- enumerable: true,
108
- configurable: true
109
- });
110
- LoaderComponent.prototype.ngAfterViewInit = function () {
111
- this.setLoaderClasses();
112
- };
113
- Object.defineProperty(LoaderComponent.prototype, "segmentCount", {
114
- /**
115
- * @hidden
116
- */
117
- get: function () {
118
- return new Array(SEGMENT_COUNT[this.type]);
119
- },
120
- enumerable: true,
121
- configurable: true
122
- });
123
- LoaderComponent.prototype.setLoaderClasses = function () {
124
- this.renderer.addClass(this.loader, TYPE_CLASSES[this.type]);
125
- this.renderer.addClass(this.loader, "k-loader-" + this.themeColor);
126
- this.renderer.addClass(this.loader, SIZE_CLASSES[this.size]);
127
- };
128
- tslib_1.__decorate([
129
- core_1.HostBinding('class.k-loader'),
130
- tslib_1.__metadata("design:type", Boolean)
131
- ], LoaderComponent.prototype, "hostClass", void 0);
132
- tslib_1.__decorate([
133
- core_1.Input(),
134
- tslib_1.__metadata("design:type", String),
135
- tslib_1.__metadata("design:paramtypes", [String])
136
- ], LoaderComponent.prototype, "type", null);
137
- tslib_1.__decorate([
138
- core_1.Input(),
139
- tslib_1.__metadata("design:type", String),
140
- tslib_1.__metadata("design:paramtypes", [String])
141
- ], LoaderComponent.prototype, "themeColor", null);
142
- tslib_1.__decorate([
143
- core_1.Input(),
144
- tslib_1.__metadata("design:type", String),
145
- tslib_1.__metadata("design:paramtypes", [String])
146
- ], LoaderComponent.prototype, "size", null);
147
- LoaderComponent = tslib_1.__decorate([
148
- core_1.Component({
149
- selector: 'kendo-loader',
150
- template: "\n <div class=\"k-loader-canvas\">\n <span *ngFor=\"let segment of segmentCount\" class=\"k-loader-segment\"></span>\n </div>\n "
151
- }),
152
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
153
- core_1.Renderer2])
154
- ], LoaderComponent);
155
- return LoaderComponent;
156
- }());
157
- exports.LoaderComponent = LoaderComponent;
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +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
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var common_1 = require("@angular/common");
10
- var loader_component_1 = require("./loader/loader.component");
11
- var exportedModules = [
12
- loader_component_1.LoaderComponent
13
- ];
14
- var declarations = exportedModules.slice();
15
- /**
16
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
17
- * definition for the Loader component.
18
- */
19
- var LoaderModule = /** @class */ (function () {
20
- function LoaderModule() {
21
- }
22
- LoaderModule = tslib_1.__decorate([
23
- core_1.NgModule({
24
- declarations: [declarations],
25
- exports: [exportedModules],
26
- imports: [common_1.CommonModule]
27
- })
28
- ], LoaderModule);
29
- return LoaderModule;
30
- }());
31
- exports.LoaderModule = LoaderModule;