@leanix/components 0.3.29 → 0.3.30
Sign up to get free protection for your applications and to get access to all the features.
@@ -729,17 +729,10 @@ class IconScaleComponent {
|
|
729
729
|
this.iconArray = [];
|
730
730
|
}
|
731
731
|
ngOnChanges(_changes) {
|
732
|
-
this.iconArray = this.createIconArray(this.numberOfColoredItems, this.numberOfItems
|
732
|
+
this.iconArray = this.createIconArray(this.numberOfColoredItems, this.numberOfItems);
|
733
733
|
}
|
734
|
-
createIconArray(coloredItems, totalItems
|
735
|
-
return [...Array(totalItems).keys()].map((index) =>
|
736
|
-
if (reverse) {
|
737
|
-
return index >= totalItems - coloredItems;
|
738
|
-
}
|
739
|
-
else {
|
740
|
-
return index < coloredItems;
|
741
|
-
}
|
742
|
-
});
|
734
|
+
createIconArray(coloredItems, totalItems) {
|
735
|
+
return [...Array(totalItems).keys()].map((index) => index < coloredItems);
|
743
736
|
}
|
744
737
|
}
|
745
738
|
IconScaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: IconScaleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|