@progress/kendo-angular-progressbar 2.0.4 → 3.0.0-next.202203230843

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 (78) hide show
  1. package/bundles/kendo-angular-progressbar.umd.js +5 -0
  2. package/{dist/es2015/chunk → chunk}/chunk-progressbar.component.d.ts +6 -3
  3. package/{dist/es2015/common → common}/constants.d.ts +0 -0
  4. package/{dist/es2015/common → common}/progressbar-base.d.ts +19 -16
  5. package/{dist/es2015/common → common}/util.d.ts +0 -0
  6. package/{dist/es2015 → esm2015}/chunk/chunk-progressbar.component.js +51 -39
  7. package/{dist/es2015 → esm2015}/common/constants.js +0 -0
  8. package/{dist/es2015 → esm2015}/common/progressbar-base.js +61 -84
  9. package/{dist/es2015 → esm2015}/common/util.js +0 -3
  10. package/{dist/es2015/index.d.ts → esm2015/kendo-angular-progressbar.js} +0 -1
  11. package/{dist/es → esm2015}/main.js +0 -0
  12. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  13. package/{dist/es2015 → esm2015}/progressbar.component.js +79 -58
  14. package/{dist/es2015 → esm2015}/progressbar.module.js +14 -11
  15. package/{dist/es2015 → esm2015}/types/animation-end-event.js +1 -0
  16. package/{dist/es2015 → esm2015}/types/animation-options.interface.js +1 -0
  17. package/{dist/es2015 → esm2015}/types/label-fn-type.js +1 -0
  18. package/{dist/es → esm2015}/types/label-position.js +1 -0
  19. package/{dist/es → esm2015}/types/label-settings.interface.js +1 -0
  20. package/{dist/es → esm2015}/types/label-type.js +1 -0
  21. package/{dist/es → esm2015}/types/progressbar-animation.interface.js +1 -0
  22. package/{dist/es → esm2015}/types/progressbar-orientation.js +1 -0
  23. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-progressbar.js} +201 -187
  24. package/{dist/es/index.js → kendo-angular-progressbar.d.ts} +1 -1
  25. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  26. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  27. package/package.json +32 -102
  28. package/{dist/es2015/progressbar.component.d.ts → progressbar.component.d.ts} +10 -7
  29. package/{dist/es2015/progressbar.module.d.ts → progressbar.module.d.ts} +7 -0
  30. package/schematics/ngAdd/index.js +5 -2
  31. package/schematics/ngAdd/index.js.map +1 -1
  32. package/{dist/es2015/types → types}/animation-end-event.d.ts +0 -0
  33. package/{dist/es2015/types → types}/animation-options.interface.d.ts +0 -0
  34. package/{dist/es2015/types → types}/label-fn-type.d.ts +0 -0
  35. package/{dist/es2015/types → types}/label-position.d.ts +0 -0
  36. package/{dist/es2015/types → types}/label-settings.interface.d.ts +0 -0
  37. package/{dist/es2015/types → types}/label-type.d.ts +0 -0
  38. package/{dist/es2015/types → types}/progressbar-animation.interface.d.ts +0 -0
  39. package/{dist/es2015/types → types}/progressbar-orientation.d.ts +0 -0
  40. package/dist/cdn/js/kendo-angular-progressbar.js +0 -20
  41. package/dist/cdn/main.js +0 -5
  42. package/dist/es/chunk/chunk-progressbar.component.js +0 -129
  43. package/dist/es/common/constants.js +0 -16
  44. package/dist/es/common/progressbar-base.js +0 -305
  45. package/dist/es/common/util.js +0 -86
  46. package/dist/es/package-metadata.js +0 -15
  47. package/dist/es/progressbar.component.js +0 -304
  48. package/dist/es/progressbar.module.js +0 -55
  49. package/dist/es/types/animation-end-event.js +0 -4
  50. package/dist/es/types/animation-options.interface.js +0 -4
  51. package/dist/es/types/label-fn-type.js +0 -4
  52. package/dist/es2015/index.js +0 -9
  53. package/dist/es2015/index.metadata.json +0 -1
  54. package/dist/es2015/main.js +0 -7
  55. package/dist/es2015/types/label-position.js +0 -4
  56. package/dist/es2015/types/label-settings.interface.js +0 -4
  57. package/dist/es2015/types/label-type.js +0 -4
  58. package/dist/es2015/types/progressbar-animation.interface.js +0 -4
  59. package/dist/es2015/types/progressbar-orientation.js +0 -4
  60. package/dist/fesm5/index.js +0 -875
  61. package/dist/npm/chunk/chunk-progressbar.component.js +0 -131
  62. package/dist/npm/common/constants.js +0 -18
  63. package/dist/npm/common/progressbar-base.js +0 -307
  64. package/dist/npm/common/util.js +0 -89
  65. package/dist/npm/index.js +0 -13
  66. package/dist/npm/main.js +0 -12
  67. package/dist/npm/package-metadata.js +0 -17
  68. package/dist/npm/progressbar.component.js +0 -306
  69. package/dist/npm/progressbar.module.js +0 -57
  70. package/dist/npm/types/animation-end-event.js +0 -6
  71. package/dist/npm/types/animation-options.interface.js +0 -6
  72. package/dist/npm/types/label-fn-type.js +0 -6
  73. package/dist/npm/types/label-position.js +0 -6
  74. package/dist/npm/types/label-settings.interface.js +0 -6
  75. package/dist/npm/types/label-type.js +0 -6
  76. package/dist/npm/types/progressbar-animation.interface.js +0 -6
  77. package/dist/npm/types/progressbar-orientation.js +0 -6
  78. package/dist/systemjs/kendo-angular-progressbar.js +0 -5
@@ -2,12 +2,14 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
5
  import { ProgressBarBase } from './common/progressbar-base';
7
- import { Component, Input, NgZone, Renderer2, ViewChild, ElementRef, Output, EventEmitter } from '@angular/core';
6
+ import { Component, Input, ViewChild, Output, EventEmitter } from '@angular/core';
8
7
  import { formatValue, calculateRatio, runAnimation, stopCurrentAnimation } from './common/util';
9
8
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
9
  import { hasObservers } from '@progress/kendo-angular-common';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "@angular/common";
11
13
  /**
12
14
  * Represents the [Kendo UI ProgressBar component for Angular]({% slug overview_progressbar %}).
13
15
  *
@@ -25,7 +27,7 @@ import { hasObservers } from '@progress/kendo-angular-common';
25
27
  * }
26
28
  * ```
27
29
  */
28
- let ProgressBarComponent = class ProgressBarComponent extends ProgressBarBase {
30
+ export class ProgressBarComponent extends ProgressBarBase {
29
31
  /**
30
32
  * @hidden
31
33
  */
@@ -213,48 +215,51 @@ let ProgressBarComponent = class ProgressBarComponent extends ProgressBarBase {
213
215
  this.isAnimationInProgress = false;
214
216
  });
215
217
  }
216
- };
217
- tslib_1.__decorate([
218
- Input(),
219
- tslib_1.__metadata("design:type", Object)
220
- ], ProgressBarComponent.prototype, "label", void 0);
221
- tslib_1.__decorate([
222
- Input(),
223
- tslib_1.__metadata("design:type", Object)
224
- ], ProgressBarComponent.prototype, "progressCssStyle", void 0);
225
- tslib_1.__decorate([
226
- Input(),
227
- tslib_1.__metadata("design:type", Object)
228
- ], ProgressBarComponent.prototype, "progressCssClass", void 0);
229
- tslib_1.__decorate([
230
- Input(),
231
- tslib_1.__metadata("design:type", Object)
232
- ], ProgressBarComponent.prototype, "emptyCssStyle", void 0);
233
- tslib_1.__decorate([
234
- Input(),
235
- tslib_1.__metadata("design:type", Object)
236
- ], ProgressBarComponent.prototype, "emptyCssClass", void 0);
237
- tslib_1.__decorate([
238
- Input(),
239
- tslib_1.__metadata("design:type", Object)
240
- ], ProgressBarComponent.prototype, "animation", void 0);
241
- tslib_1.__decorate([
242
- Output(),
243
- tslib_1.__metadata("design:type", EventEmitter)
244
- ], ProgressBarComponent.prototype, "animationEnd", void 0);
245
- tslib_1.__decorate([
246
- ViewChild('progressStatus', { static: false }),
247
- tslib_1.__metadata("design:type", ElementRef)
248
- ], ProgressBarComponent.prototype, "progressStatusElement", void 0);
249
- tslib_1.__decorate([
250
- ViewChild('progressStatusWrap', { static: false }),
251
- tslib_1.__metadata("design:type", ElementRef)
252
- ], ProgressBarComponent.prototype, "progressStatusWrapperElement", void 0);
253
- ProgressBarComponent = tslib_1.__decorate([
254
- Component({
255
- exportAs: 'kendoProgressBar',
256
- selector: 'kendo-progressbar',
257
- template: `
218
+ }
219
+ ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
220
+ ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProgressBarComponent, selector: "kendo-progressbar", inputs: { label: "label", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass", animation: "animation" }, outputs: { animationEnd: "animationEnd" }, providers: [
221
+ LocalizationService,
222
+ {
223
+ provide: L10N_PREFIX,
224
+ useValue: 'kendo.progressbar'
225
+ }
226
+ ], viewQueries: [{ propertyName: "progressStatusElement", first: true, predicate: ["progressStatus"], descendants: true }, { propertyName: "progressStatusWrapperElement", first: true, predicate: ["progressStatusWrap"], descendants: true }], exportAs: ["kendoProgressBar"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
227
+ <span class="k-progress-status-wrap"
228
+ [class.k-progress-start]="isPositionStart"
229
+ [class.k-progress-center]="isPositionCenter"
230
+ [class.k-progress-end]="isPositionEnd"
231
+ [ngStyle]="emptyCssStyle"
232
+ [ngClass]="emptyCssClass">
233
+ <span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>
234
+ </span>
235
+ <div
236
+ #progressStatus
237
+ class="k-state-selected"
238
+ [class.k-complete]="isCompleted"
239
+ [ngStyle]="progressCssStyle"
240
+ [ngClass]="progressCssClass"
241
+ [style.width.%]="statusWidth"
242
+ [style.height.%]="statusHeight"
243
+ >
244
+ <span
245
+ #progressStatusWrap
246
+ class="k-progress-status-wrap"
247
+ [style.width.%]="statusWrapperWidth"
248
+ [style.height.%]="statusWrapperHeight"
249
+ [class.k-progress-start]="isPositionStart"
250
+ [class.k-progress-center]="isPositionCenter"
251
+ [class.k-progress-end]="isPositionEnd"
252
+ >
253
+ <span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>
254
+ </span>
255
+ </div>
256
+ `, isInline: true, directives: [{ type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarComponent, decorators: [{
258
+ type: Component,
259
+ args: [{
260
+ exportAs: 'kendoProgressBar',
261
+ selector: 'kendo-progressbar',
262
+ template: `
258
263
  <span class="k-progress-status-wrap"
259
264
  [class.k-progress-start]="isPositionStart"
260
265
  [class.k-progress-center]="isPositionCenter"
@@ -285,16 +290,32 @@ ProgressBarComponent = tslib_1.__decorate([
285
290
  </span>
286
291
  </div>
287
292
  `,
288
- providers: [
289
- LocalizationService,
290
- {
291
- provide: L10N_PREFIX,
292
- useValue: 'kendo.progressbar'
293
- }
294
- ]
295
- }),
296
- tslib_1.__metadata("design:paramtypes", [LocalizationService,
297
- NgZone,
298
- Renderer2])
299
- ], ProgressBarComponent);
300
- export { ProgressBarComponent };
293
+ providers: [
294
+ LocalizationService,
295
+ {
296
+ provide: L10N_PREFIX,
297
+ useValue: 'kendo.progressbar'
298
+ }
299
+ ]
300
+ }]
301
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { label: [{
302
+ type: Input
303
+ }], progressCssStyle: [{
304
+ type: Input
305
+ }], progressCssClass: [{
306
+ type: Input
307
+ }], emptyCssStyle: [{
308
+ type: Input
309
+ }], emptyCssClass: [{
310
+ type: Input
311
+ }], animation: [{
312
+ type: Input
313
+ }], animationEnd: [{
314
+ type: Output
315
+ }], progressStatusElement: [{
316
+ type: ViewChild,
317
+ args: ['progressStatus', { static: false }]
318
+ }], progressStatusWrapperElement: [{
319
+ type: ViewChild,
320
+ args: ['progressStatusWrap', { static: false }]
321
+ }] } });
@@ -2,11 +2,11 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
5
  import { ChunkProgressBarComponent } from './chunk/chunk-progressbar.component';
7
6
  import { NgModule } from '@angular/core';
8
7
  import { CommonModule } from '@angular/common';
9
8
  import { ProgressBarComponent } from './progressbar.component';
9
+ import * as i0 from "@angular/core";
10
10
  const COMPONENT_DIRECTIVES = [ProgressBarComponent, ChunkProgressBarComponent];
11
11
  const MODULES = [CommonModule];
12
12
  /**
@@ -40,13 +40,16 @@ const MODULES = [CommonModule];
40
40
  *
41
41
  * ```
42
42
  */
43
- let ProgressBarModule = class ProgressBarModule {
44
- };
45
- ProgressBarModule = tslib_1.__decorate([
46
- NgModule({
47
- declarations: COMPONENT_DIRECTIVES,
48
- exports: COMPONENT_DIRECTIVES,
49
- imports: MODULES
50
- })
51
- ], ProgressBarModule);
52
- export { ProgressBarModule };
43
+ export class ProgressBarModule {
44
+ }
45
+ ProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
+ ProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, declarations: [ProgressBarComponent, ChunkProgressBarComponent], imports: [CommonModule], exports: [ProgressBarComponent, ChunkProgressBarComponent] });
47
+ ProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, imports: [MODULES] });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarModule, decorators: [{
49
+ type: NgModule,
50
+ args: [{
51
+ declarations: COMPONENT_DIRECTIVES,
52
+ exports: COMPONENT_DIRECTIVES,
53
+ imports: MODULES
54
+ }]
55
+ }] });
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -2,3 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ export {};