@progress/kendo-angular-progressbar 24.0.0-develop.30 → 24.0.0-develop.31

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.
@@ -20,8 +20,8 @@ const packageMetadata = {
20
20
  productName: 'Kendo UI for Angular',
21
21
  productCode: 'KENDOUIANGULAR',
22
22
  productCodes: ['KENDOUIANGULAR'],
23
- publishDate: 1778748597,
24
- version: '24.0.0-develop.30',
23
+ publishDate: 1778841578,
24
+ version: '24.0.0-develop.31',
25
25
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
26
26
  };
27
27
 
@@ -519,6 +519,7 @@ class ProgressBarComponent extends ProgressBarBase {
519
519
  animationFrame;
520
520
  cancelCurrentAnimation;
521
521
  isAnimationInProgress;
522
+ previousMax;
522
523
  /**
523
524
  * @hidden
524
525
  */
@@ -534,6 +535,7 @@ class ProgressBarComponent extends ProgressBarBase {
534
535
  */
535
536
  ngOnChanges(changes) {
536
537
  super.ngOnChanges(changes);
538
+ this.previousMax = changes['max'] ? changes['max'].previousValue : this.max;
537
539
  if (this.isAnimationInProgress && stopCurrentAnimation(changes)) {
538
540
  this.cancelCurrentAnimation = true;
539
541
  }
@@ -610,7 +612,7 @@ class ProgressBarComponent extends ProgressBarBase {
610
612
  }
611
613
  getAnimationOptions(value) {
612
614
  const isHorizontal = this.orientation === 'horizontal';
613
- const previousRatio = calculateRatio(this.min, this.max, value);
615
+ const previousRatio = calculateRatio(this.min, this.previousMax ?? this.max, value);
614
616
  const previousStatusWidth = isHorizontal ? previousRatio * 100 : 100;
615
617
  const previousStatusHeight = !isHorizontal ? previousRatio * 100 : 100;
616
618
  const property = isHorizontal ? 'width' : 'height';
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1778748597,
11
- "version": "24.0.0-develop.30",
10
+ "publishDate": 1778841578,
11
+ "version": "24.0.0-develop.31",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-progressbar",
3
- "version": "24.0.0-develop.30",
3
+ "version": "24.0.0-develop.31",
4
4
  "description": "Kendo UI Angular component starter template",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1778748597,
22
+ "publishDate": 1778841578,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
24
  }
25
25
  },
@@ -29,13 +29,13 @@
29
29
  "@angular/core": "19 - 21",
30
30
  "@angular/platform-browser": "19 - 21",
31
31
  "@progress/kendo-licensing": "^1.11.0",
32
- "@progress/kendo-angular-common": "24.0.0-develop.30",
33
- "@progress/kendo-angular-l10n": "24.0.0-develop.30",
32
+ "@progress/kendo-angular-common": "24.0.0-develop.31",
33
+ "@progress/kendo-angular-l10n": "24.0.0-develop.31",
34
34
  "rxjs": "^6.5.3 || ^7.0.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "tslib": "^2.3.1",
38
- "@progress/kendo-angular-schematics": "24.0.0-develop.30"
38
+ "@progress/kendo-angular-schematics": "24.0.0-develop.31"
39
39
  },
40
40
  "schematics": "./schematics/collection.json",
41
41
  "module": "fesm2022/progress-kendo-angular-progressbar.mjs",
@@ -109,6 +109,7 @@ export declare class ProgressBarComponent extends ProgressBarBase {
109
109
  private animationFrame;
110
110
  private cancelCurrentAnimation;
111
111
  private isAnimationInProgress;
112
+ private previousMax;
112
113
  /**
113
114
  * @hidden
114
115
  */