@progress/kendo-angular-progressbar 3.1.2 → 11.0.0-develop.80

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 (60) hide show
  1. package/NOTICE.txt +3 -3
  2. package/chunk/chunk-progressbar.component.d.ts +8 -4
  3. package/circularprogressbar/center-template.directive.d.ts +3 -3
  4. package/circularprogressbar/circular-progressbar.component.d.ts +2 -2
  5. package/circularprogressbar/models/center-template-context.interface.d.ts +1 -1
  6. package/circularprogressbar/models/circular-progressbar-progress-color-interface.d.ts +1 -1
  7. package/common/constants.d.ts +1 -1
  8. package/common/localization/custom-messages.component.d.ts +1 -1
  9. package/common/localization/localized-messages.directive.d.ts +1 -1
  10. package/common/localization/messages.d.ts +2 -2
  11. package/common/progressbar-base.d.ts +1 -1
  12. package/common/util.d.ts +16 -6
  13. package/{esm2015/chunk/chunk-progressbar.component.js → esm2020/chunk/chunk-progressbar.component.mjs} +18 -13
  14. package/{esm2015/circularprogressbar/center-template.directive.js → esm2020/circularprogressbar/center-template.directive.mjs} +5 -5
  15. package/{esm2015/circularprogressbar/circular-progressbar.component.js → esm2020/circularprogressbar/circular-progressbar.component.mjs} +29 -26
  16. package/{esm2015/circularprogressbar/models/center-template-context.interface.js → esm2020/circularprogressbar/models/center-template-context.interface.mjs} +1 -1
  17. package/{esm2015/circularprogressbar/models/circular-progressbar-progress-color-interface.js → esm2020/circularprogressbar/models/circular-progressbar-progress-color-interface.mjs} +1 -1
  18. package/{esm2015/common/constants.js → esm2020/common/constants.mjs} +1 -1
  19. package/{esm2015/common/localization/custom-messages.component.js → esm2020/common/localization/custom-messages.component.mjs} +5 -4
  20. package/{esm2015/common/localization/localized-messages.directive.js → esm2020/common/localization/localized-messages.directive.mjs} +5 -4
  21. package/{esm2015/common/localization/messages.js → esm2020/common/localization/messages.mjs} +5 -8
  22. package/{esm2015/common/progressbar-base.js → esm2020/common/progressbar-base.mjs} +9 -8
  23. package/{esm2015/common/util.js → esm2020/common/util.mjs} +5 -5
  24. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  25. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  26. package/{esm2015/kendo-angular-progressbar.js → esm2020/progress-kendo-angular-progressbar.mjs} +2 -2
  27. package/{esm2015/progressbar.component.js → esm2020/progressbar.component.mjs} +8 -8
  28. package/{esm2015/progressbar.module.js → esm2020/progressbar.module.mjs} +5 -5
  29. package/{esm2015/types/label-fn-type.js → esm2020/types/animation-end-event.mjs} +1 -1
  30. package/{esm2015/types/animation-end-event.js → esm2020/types/animation-options.interface.mjs} +1 -1
  31. package/{esm2015/types/animation-options.interface.js → esm2020/types/label-fn-type.mjs} +1 -1
  32. package/esm2020/types/label-position.mjs +5 -0
  33. package/esm2020/types/label-settings.interface.mjs +5 -0
  34. package/esm2020/types/label-type.mjs +5 -0
  35. package/esm2020/types/progressbar-animation.interface.mjs +5 -0
  36. package/esm2020/types/progressbar-orientation.mjs +5 -0
  37. package/fesm2015/{kendo-angular-progressbar.js → progress-kendo-angular-progressbar.mjs} +79 -74
  38. package/fesm2020/progress-kendo-angular-progressbar.mjs +1456 -0
  39. package/{main.d.ts → index.d.ts} +1 -1
  40. package/package-metadata.d.ts +1 -1
  41. package/package.json +28 -54
  42. package/{kendo-angular-progressbar.d.ts → progress-kendo-angular-progressbar.d.ts} +2 -2
  43. package/progressbar.component.d.ts +1 -1
  44. package/progressbar.module.d.ts +1 -1
  45. package/schematics/ngAdd/index.js +1 -5
  46. package/types/animation-end-event.d.ts +1 -1
  47. package/types/animation-options.interface.d.ts +1 -1
  48. package/types/label-fn-type.d.ts +1 -1
  49. package/types/label-position.d.ts +1 -1
  50. package/types/label-settings.interface.d.ts +1 -1
  51. package/types/label-type.d.ts +1 -1
  52. package/types/progressbar-animation.interface.d.ts +1 -1
  53. package/types/progressbar-orientation.d.ts +1 -1
  54. package/bundles/kendo-angular-progressbar.umd.js +0 -5
  55. package/esm2015/types/label-position.js +0 -5
  56. package/esm2015/types/label-settings.interface.js +0 -5
  57. package/esm2015/types/label-type.js +0 -5
  58. package/esm2015/types/progressbar-animation.interface.js +0 -5
  59. package/esm2015/types/progressbar-orientation.js +0 -5
  60. package/schematics/ngAdd/index.js.map +0 -1
package/NOTICE.txt CHANGED
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
37
37
  Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
38
38
  Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
39
39
  Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
40
- Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
40
+ Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
41
41
  Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
42
42
  Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
43
43
  ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
433
433
  @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
434
434
  @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
435
435
  @types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
436
- subject to the following terms and conditions:
436
+ subject to the following terms and conditions:
437
437
 
438
438
  This project is licensed under the MIT license.
439
439
  Copyrights are respective of each contributor listed at the beginning of each
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
640
640
  2. Special Notices Regarding Commercially Licensed Third-Party Components
641
641
  incorporated into the Product: NONE
642
642
 
643
- 3. Special Notices Regarding Progress Products incorporated into the Product:
643
+ 3. Special Notices Regarding Progress Products incorporated into the Product:
644
644
 
645
645
  (a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
646
646
  from Progress Software Corporation. See NOTICE.txt text file within product for
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { ProgressBarBase } from '../common/progressbar-base';
@@ -27,6 +27,7 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
27
27
  localization: LocalizationService;
28
28
  elem: ElementRef;
29
29
  renderer: Renderer2;
30
+ chunkClass: boolean;
30
31
  /**
31
32
  * Sets the number of chunks into which the ChunkProgressBar will be split.
32
33
  * Defaults to `5`.
@@ -41,14 +42,14 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
41
42
  * Supports the type of values that are supported by [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
42
43
  */
43
44
  progressCssStyle: {
44
- [key: string]: string;
45
+ [key: string]: any;
45
46
  };
46
47
  /**
47
48
  * The CSS classes that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
48
49
  * Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
49
50
  */
50
51
  progressCssClass: string | string[] | Set<string> | {
51
- [key: string]: any;
52
+ [key: string]: string;
52
53
  };
53
54
  /**
54
55
  * The CSS styles that will be rendered on the empty chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
@@ -71,7 +72,10 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
71
72
  /**
72
73
  * @hidden
73
74
  */
74
- get orientationStyles(): any;
75
+ get orientationStyles(): {
76
+ width: string;
77
+ height: string;
78
+ };
75
79
  private _orientationStyles;
76
80
  /**
77
81
  * @hidden
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { TemplateRef } from '@angular/core';
@@ -9,8 +9,8 @@ import * as i0 from "@angular/core";
9
9
  * ([see example]({% slug center_template_circularprogressbar %})).
10
10
  */
11
11
  export declare class CircularProgressbarCenterTemplateDirective {
12
- templateRef: TemplateRef<any>;
13
- constructor(templateRef: TemplateRef<any>);
12
+ templateRef: TemplateRef<unknown>;
13
+ constructor(templateRef: TemplateRef<unknown>);
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<CircularProgressbarCenterTemplateDirective, never>;
15
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<CircularProgressbarCenterTemplateDirective, "[kendoCircularProgressbarCenterTemplate]", never, {}, {}, never>;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
@@ -103,7 +103,7 @@ export declare class CircularProgressBarComponent implements AfterViewInit, OnCh
103
103
  /**
104
104
  * @hidden
105
105
  */
106
- onResize(_event?: any): void;
106
+ onResize(): void;
107
107
  private initProgressArc;
108
108
  private calculateProgress;
109
109
  private progressbarAnimation;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -13,5 +13,5 @@ export declare class ProgressBarMessages extends ComponentMessages {
13
13
  */
14
14
  progressBarLabel: string;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarMessages, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressBarMessages, "kendo-progressbar-messages-base", never, { "progressBarLabel": "progressBarLabel"; }, {}, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressBarMessages, never, never, { "progressBarLabel": "progressBarLabel"; }, {}, never>;
17
17
  }
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
package/common/util.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { LabelSettings } from '../types/label-settings.interface';
5
6
  import { Renderer2, SimpleChanges } from '@angular/core';
6
- import { ProgressBarAnimation } from '../main';
7
+ import { ProgressBarAnimation } from '../types/progressbar-animation.interface';
7
8
  /**
8
9
  * @hidden
9
10
  */
@@ -11,7 +12,7 @@ export declare const reverseChunks: (orientation: string, reverse: boolean) => b
11
12
  /**
12
13
  * @hidden
13
14
  */
14
- export declare const formatValue: Function;
15
+ export declare const formatValue: (value: number, min: number, max: number, label: boolean | LabelSettings) => string;
15
16
  /**
16
17
  * @hidden
17
18
  */
@@ -39,12 +40,21 @@ export declare const stopCurrentAnimation: (changes: SimpleChanges) => boolean;
39
40
  /**
40
41
  * @hidden
41
42
  */
42
- export declare const setProgressBarStyles: (props: any, renderer: Renderer2) => void;
43
+ export declare const setProgressBarStyles: (props: {
44
+ method: 'setStyle' | 'setAttribute';
45
+ el: HTMLElement;
46
+ attr: string;
47
+ attrValue: string;
48
+ }[], renderer: Renderer2) => void;
43
49
  /**
44
50
  * @hidden
45
51
  */
46
- export declare const removeProgressBarStyles: (props: any, renderer: Renderer2) => void;
52
+ export declare const removeProgressBarStyles: (props: {
53
+ method: 'removeStyle' | 'removeAttribute';
54
+ el: HTMLElement;
55
+ attr: string;
56
+ }[], renderer: Renderer2) => void;
47
57
  /**
48
58
  * @hidden
49
59
  */
50
- export declare const hasElementSize: (element: any) => boolean;
60
+ export declare const hasElementSize: (element: HTMLElement) => boolean;
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { ProgressBarBase } from '../common/progressbar-base';
6
- import { Component, Input } from '@angular/core';
6
+ import { Component, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';
7
7
  import { reverseChunks } from '../common/util';
8
8
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import * as i0 from "@angular/core";
@@ -36,13 +36,15 @@ export class ChunkProgressBarComponent extends ProgressBarBase {
36
36
  this.localization = localization;
37
37
  this.elem = elem;
38
38
  this.renderer = renderer;
39
+ this.chunkClass = true;
39
40
  /**
40
41
  * Sets the number of chunks into which the ChunkProgressBar will be split.
41
42
  * Defaults to `5`.
42
43
  */
43
44
  this.chunkCount = 5;
44
45
  this._orientationStyles = {
45
- width: `${this.chunkSizePercentage}%`
46
+ width: `${this.chunkSizePercentage}%`,
47
+ height: null
46
48
  };
47
49
  }
48
50
  /**
@@ -72,17 +74,17 @@ export class ChunkProgressBarComponent extends ProgressBarBase {
72
74
  get orientationStyles() {
73
75
  if (this.orientation === 'horizontal') {
74
76
  this._orientationStyles.width = `${this.chunkSizePercentage}%`;
75
- this._orientationStyles.height = undefined;
77
+ this._orientationStyles.height = null;
76
78
  }
77
79
  else {
78
80
  this._orientationStyles.height = `${this.chunkSizePercentage}%`;
79
- this._orientationStyles.width = undefined;
81
+ this._orientationStyles.width = null;
80
82
  }
81
83
  return this._orientationStyles;
82
84
  }
83
85
  }
84
- ChunkProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChunkProgressBarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
85
- ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChunkProgressBarComponent, selector: "kendo-chunkprogressbar", inputs: { chunkCount: "chunkCount", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass" }, providers: [
86
+ ChunkProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChunkProgressBarComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
87
+ ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChunkProgressBarComponent, selector: "kendo-chunkprogressbar", inputs: { chunkCount: "chunkCount", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass" }, host: { properties: { "class.k-chunk-progressbar": "this.chunkClass" } }, providers: [
86
88
  LocalizationService,
87
89
  {
88
90
  provide: L10N_PREFIX,
@@ -94,8 +96,8 @@ ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
94
96
  progressBarLabel="Chunk progressbar"
95
97
  >
96
98
  </ng-container>
97
- <ul class="k-reset">
98
- <li class="k-item" *ngFor="let chunk of chunks; let i = index;"
99
+ <ul class="k-reset k-progressbar-chunks">
100
+ <li class="k-progressbar-chunk" *ngFor="let chunk of chunks; let i = index;"
99
101
  [class.k-first]="i === 0"
100
102
  [class.k-last]="i === chunkCount - 1"
101
103
  [class.k-selected]="chunk"
@@ -107,7 +109,7 @@ ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
107
109
  </li>
108
110
  </ul>
109
111
  `, isInline: true, directives: [{ type: i2.LocalizedProgressBarMessagesDirective, selector: "[kendoProgressBarLocalizedMessages]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChunkProgressBarComponent, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChunkProgressBarComponent, decorators: [{
111
113
  type: Component,
112
114
  args: [{
113
115
  exportAs: 'kendoChunkProgressBar',
@@ -118,8 +120,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
118
120
  progressBarLabel="Chunk progressbar"
119
121
  >
120
122
  </ng-container>
121
- <ul class="k-reset">
122
- <li class="k-item" *ngFor="let chunk of chunks; let i = index;"
123
+ <ul class="k-reset k-progressbar-chunks">
124
+ <li class="k-progressbar-chunk" *ngFor="let chunk of chunks; let i = index;"
123
125
  [class.k-first]="i === 0"
124
126
  [class.k-last]="i === chunkCount - 1"
125
127
  [class.k-selected]="chunk"
@@ -139,7 +141,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
139
141
  }
140
142
  ]
141
143
  }]
142
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { chunkCount: [{
144
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { chunkClass: [{
145
+ type: HostBinding,
146
+ args: ['class.k-chunk-progressbar']
147
+ }], chunkCount: [{
143
148
  type: Input
144
149
  }], progressCssStyle: [{
145
150
  type: Input
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { Directive } from '@angular/core';
5
+ import { Directive, TemplateRef } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * A directive that selects a template within the <kendo-circularprogessbar> component which will be used for the center template.
@@ -13,9 +13,9 @@ export class CircularProgressbarCenterTemplateDirective {
13
13
  this.templateRef = templateRef;
14
14
  }
15
15
  }
16
- CircularProgressbarCenterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
17
- CircularProgressbarCenterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CircularProgressbarCenterTemplateDirective, selector: "[kendoCircularProgressbarCenterTemplate]", ngImport: i0 });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, decorators: [{
16
+ CircularProgressbarCenterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
17
+ CircularProgressbarCenterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: CircularProgressbarCenterTemplateDirective, selector: "[kendoCircularProgressbarCenterTemplate]", ngImport: i0 });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularProgressbarCenterTemplateDirective, decorators: [{
19
19
  type: Directive,
20
20
  args: [{
21
21
  selector: '[kendoCircularProgressbarCenterTemplate]'
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { Component, ContentChild, EventEmitter, HostBinding, Input, isDevMode, Output, ViewChild } from '@angular/core';
6
- import { hasObservers, isChanged } from '@progress/kendo-angular-common';
5
+ import { ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, isDevMode, NgZone, Output, Renderer2, ViewChild } from '@angular/core';
6
+ import { hasObservers, isChanged, isDocumentAvailable } from '@progress/kendo-angular-common';
7
7
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { validatePackage } from '@progress/kendo-licensing';
9
9
  import { Subscription } from 'rxjs';
@@ -134,6 +134,9 @@ export class CircularProgressBarComponent {
134
134
  return this._indeterminate;
135
135
  }
136
136
  ngAfterViewInit() {
137
+ if (!isDocumentAvailable()) {
138
+ return;
139
+ }
137
140
  const elem = this.element.nativeElement;
138
141
  const ariaLabel = this.localization.get('progressBarLabel');
139
142
  this.renderer.setAttribute(elem, 'aria-label', ariaLabel);
@@ -147,14 +150,14 @@ export class CircularProgressBarComponent {
147
150
  }
148
151
  else {
149
152
  const value = this.value - this.min;
150
- this.internalValue = changes.value.currentValue;
153
+ this.internalValue = changes['value'].currentValue;
151
154
  this.calculateProgress(value);
152
155
  }
153
156
  }
154
- if (changes.opacity && this.progress) {
155
- setProgressBarStyles([{ method: 'setAttribute', el: this.progress.nativeElement, attr: 'opacity', attrValue: this.opacity }], this.renderer);
157
+ if (changes['opacity'] && this.progress) {
158
+ setProgressBarStyles([{ method: 'setAttribute', el: this.progress.nativeElement, attr: 'opacity', attrValue: this.opacity.toString() }], this.renderer);
156
159
  }
157
- if (changes.indeterminate && !changes.indeterminate.firstChange) {
160
+ if (changes['indeterminate'] && !changes['indeterminate'].firstChange) {
158
161
  this.indeterminateState();
159
162
  }
160
163
  }
@@ -164,7 +167,7 @@ export class CircularProgressBarComponent {
164
167
  /**
165
168
  * @hidden
166
169
  */
167
- onResize(_event) {
170
+ onResize() {
168
171
  this.setStyles();
169
172
  const value = this.animation ? this.internalValue : this.value;
170
173
  this.calculateProgress(value);
@@ -199,8 +202,8 @@ export class CircularProgressBarComponent {
199
202
  const dir = this.rtl ? circumference * -1 : circumference;
200
203
  const strokeDashOffest = circumference - dir * (value / (this.max - this.min));
201
204
  const progressCalculations = [
202
- { method: 'setStyle', el: progressArc, attr: 'strokeDasharray', attrValue: circumference },
203
- { method: 'setStyle', el: progressArc, attr: 'strokeDashoffset', attrValue: strokeDashOffest }
205
+ { method: 'setStyle', el: progressArc, attr: 'strokeDasharray', attrValue: circumference.toString() },
206
+ { method: 'setStyle', el: progressArc, attr: 'strokeDashoffset', attrValue: strokeDashOffest.toString() }
204
207
  ];
205
208
  setProgressBarStyles(progressCalculations, this.renderer);
206
209
  }
@@ -245,23 +248,23 @@ export class CircularProgressBarComponent {
245
248
  setProgressBarStyles(surfaceSize, this.renderer);
246
249
  }
247
250
  const attributesArray = [
248
- { method: 'setAttribute', el: progressArc, attr: 'r', attrValue: (elWidth / 2) - 10 },
249
- { method: 'setAttribute', el: progressArc, attr: 'cx', attrValue: (elWidth / 2) },
250
- { method: 'setAttribute', el: progressArc, attr: 'cy', attrValue: (elWidth / 2) },
251
- { method: 'setAttribute', el: progressArc, attr: 'opacity', attrValue: this.opacity },
252
- { method: 'setAttribute', el: scale, attr: 'r', attrValue: (elWidth / 2) - 10 },
253
- { method: 'setAttribute', el: scale, attr: 'cx', attrValue: (elWidth / 2) },
254
- { method: 'setAttribute', el: scale, attr: 'cy', attrValue: (elWidth / 2) }
251
+ { method: 'setAttribute', el: progressArc, attr: 'r', attrValue: String((elWidth / 2) - 10) },
252
+ { method: 'setAttribute', el: progressArc, attr: 'cx', attrValue: String((elWidth / 2)) },
253
+ { method: 'setAttribute', el: progressArc, attr: 'cy', attrValue: String((elWidth / 2)) },
254
+ { method: 'setAttribute', el: progressArc, attr: 'opacity', attrValue: String(this.opacity) },
255
+ { method: 'setAttribute', el: scale, attr: 'r', attrValue: String((elWidth / 2) - 10) },
256
+ { method: 'setAttribute', el: scale, attr: 'cx', attrValue: String(elWidth / 2) },
257
+ { method: 'setAttribute', el: scale, attr: 'cy', attrValue: String(elWidth / 2) }
255
258
  ];
256
259
  setProgressBarStyles(attributesArray, this.renderer);
257
260
  }
258
261
  indeterminateState() {
259
262
  const progressArc = this.progress.nativeElement;
260
263
  if (this.indeterminate) {
261
- // the indeterminate state wont work as the `k-circular-progressbar-arc` has a transform: rotate(-90deg) which is
264
+ // the indeterminate state wont work as the `k-circular-progressbar-arc` has a transform: rotate(-90deg) which is
262
265
  // interfering with the svg animation as the animateTransform brings its own transform: rotate()
263
266
  // This will be like this until the themes release a new version, bringing a new class `k-circular-progressbar-indeterminate-arc`
264
- // containing only the necassery CSS styles and we will switch between them when the state of the progressbar is switched.
267
+ // containing only the necassery CSS styles and we will switch between them when the state of the progressbar is switched.
265
268
  this.calculateProgress(this.value - this.min);
266
269
  const rotate = this.rtl ? { from: 360, to: 0 } : { from: 0, to: 360 };
267
270
  let color;
@@ -336,8 +339,8 @@ export class CircularProgressBarComponent {
336
339
  }
337
340
  else {
338
341
  for (let i = 0; i < this.progressColor.length; i++) {
339
- let from = this.progressColor[i].from;
340
- let to = this.progressColor[i].to;
342
+ const from = this.progressColor[i].from;
343
+ const to = this.progressColor[i].to;
341
344
  if (value >= from && value <= to || (!from && value <= to)) {
342
345
  this.renderer.setStyle(progressArc, 'stroke', this.progressColor[i].color);
343
346
  break;
@@ -376,8 +379,8 @@ export class CircularProgressBarComponent {
376
379
  }
377
380
  }
378
381
  }
379
- CircularProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CircularProgressBarComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
380
- CircularProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CircularProgressBarComponent, selector: "kendo-circularprogressbar", inputs: { value: "value", max: "max", min: "min", animation: "animation", opacity: "opacity", indeterminate: "indeterminate", progressColor: "progressColor" }, outputs: { animationEnd: "animationEnd" }, host: { properties: { "class.k-circular-progressbar": "this.hostClasses", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute", "attr.role": "this.roleAttribute" } }, providers: [
382
+ CircularProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularProgressBarComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
383
+ CircularProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CircularProgressBarComponent, selector: "kendo-circularprogressbar", inputs: { value: "value", max: "max", min: "min", animation: "animation", opacity: "opacity", indeterminate: "indeterminate", progressColor: "progressColor" }, outputs: { animationEnd: "animationEnd" }, host: { properties: { "class.k-circular-progressbar": "this.hostClasses", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute", "attr.role": "this.roleAttribute" } }, providers: [
381
384
  LocalizationService,
382
385
  {
383
386
  provide: L10N_PREFIX,
@@ -402,9 +405,9 @@ CircularProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
402
405
  </div>
403
406
  </div>
404
407
  </div>
405
- <kendo-resize-sensor (resize)="onResize($event)"></kendo-resize-sensor>
408
+ <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>
406
409
  `, isInline: true, components: [{ type: i2.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i3.LocalizedProgressBarMessagesDirective, selector: "[kendoProgressBarLocalizedMessages]" }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CircularProgressBarComponent, decorators: [{
410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CircularProgressBarComponent, decorators: [{
408
411
  type: Component,
409
412
  args: [{
410
413
  exportAs: 'kendoCircularProgressBar',
@@ -428,7 +431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
428
431
  </div>
429
432
  </div>
430
433
  </div>
431
- <kendo-resize-sensor (resize)="onResize($event)"></kendo-resize-sensor>
434
+ <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>
432
435
  `, providers: [
433
436
  LocalizationService,
434
437
  {
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
@@ -1,8 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Component, forwardRef } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
7
  import { ProgressBarMessages } from './messages';
7
8
  import * as i0 from "@angular/core";
8
9
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -19,14 +20,14 @@ export class ProgressBarCustomMessagesComponent extends ProgressBarMessages {
19
20
  return true;
20
21
  }
21
22
  }
22
- ProgressBarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
- ProgressBarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProgressBarCustomMessagesComponent, selector: "kendo-progressbar-messages", providers: [
23
+ ProgressBarCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProgressBarCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
24
+ ProgressBarCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ProgressBarCustomMessagesComponent, selector: "kendo-progressbar-messages", providers: [
24
25
  {
25
26
  provide: ProgressBarMessages,
26
27
  useExisting: forwardRef(() => ProgressBarCustomMessagesComponent)
27
28
  }
28
29
  ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarCustomMessagesComponent, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProgressBarCustomMessagesComponent, decorators: [{
30
31
  type: Component,
31
32
  args: [{
32
33
  providers: [
@@ -1,8 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Directive, forwardRef } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
6
7
  import { ProgressBarMessages } from './messages';
7
8
  import * as i0 from "@angular/core";
8
9
  import * as i1 from "@progress/kendo-angular-l10n";
@@ -15,14 +16,14 @@ export class LocalizedProgressBarMessagesDirective extends ProgressBarMessages {
15
16
  this.service = service;
16
17
  }
17
18
  }
18
- LocalizedProgressBarMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedProgressBarMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
19
- LocalizedProgressBarMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedProgressBarMessagesDirective, selector: "[kendoProgressBarLocalizedMessages]", providers: [
19
+ LocalizedProgressBarMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedProgressBarMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ LocalizedProgressBarMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedProgressBarMessagesDirective, selector: "[kendoProgressBarLocalizedMessages]", providers: [
20
21
  {
21
22
  provide: ProgressBarMessages,
22
23
  useExisting: forwardRef(() => LocalizedProgressBarMessagesDirective)
23
24
  }
24
25
  ], usesInheritance: true, ngImport: i0 });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedProgressBarMessagesDirective, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedProgressBarMessagesDirective, decorators: [{
26
27
  type: Directive,
27
28
  args: [{
28
29
  providers: [
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Directive, Input } from '@angular/core';
@@ -10,14 +10,11 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class ProgressBarMessages extends ComponentMessages {
12
12
  }
13
- ProgressBarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- ProgressBarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ProgressBarMessages, selector: "kendo-progressbar-messages-base", inputs: { progressBarLabel: "progressBarLabel" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarMessages, decorators: [{
13
+ ProgressBarMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProgressBarMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
+ ProgressBarMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ProgressBarMessages, inputs: { progressBarLabel: "progressBarLabel" }, usesInheritance: true, ngImport: i0 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProgressBarMessages, decorators: [{
16
16
  type: Directive,
17
- args: [{
18
- // eslint-disable-next-line @angular-eslint/directive-selector
19
- selector: 'kendo-progressbar-messages-base'
20
- }]
17
+ args: [{}]
21
18
  }], propDecorators: { progressBarLabel: [{
22
19
  type: Input
23
20
  }] } });