Browse Source
Merge branch 'main' into feature/improve-language-localization-for-german
pull/1809/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
28 additions and
12 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/value/value.component.html
-
libs/ui/src/lib/value/value.component.ts
|
|
@ -9,8 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the value component by always showing the label (also while loading) |
|
|
|
- Improved the language localization for German (`de`) |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed an issue with the algebraic sign in the value component |
|
|
|
|
|
|
|
## 1.248.0 - 2023-03-25 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -48,17 +48,6 @@ |
|
|
|
</div> |
|
|
|
</ng-container> |
|
|
|
</div> |
|
|
|
<ng-container> |
|
|
|
<div *ngIf="size === 'large'"> |
|
|
|
<span class="h6" |
|
|
|
><ng-container *ngTemplateOutlet="label"></ng-container |
|
|
|
></span> |
|
|
|
<span *ngIf="subLabel" class="text-muted"> {{ subLabel }}</span> |
|
|
|
</div> |
|
|
|
<small *ngIf="size !== 'large'"> |
|
|
|
<ng-container *ngTemplateOutlet="label"></ng-container> |
|
|
|
</small> |
|
|
|
</ng-container> |
|
|
|
</ng-container> |
|
|
|
|
|
|
|
<ngx-skeleton-loader |
|
|
@ -66,8 +55,20 @@ |
|
|
|
animation="pulse" |
|
|
|
[theme]="{ |
|
|
|
height: |
|
|
|
size === 'large' ? '2.5rem' : size === 'medium' ? '2rem' : '1.5rem', |
|
|
|
size === 'large' ? '2rem' : size === 'medium' ? '1.8rem' : '1.5rem', |
|
|
|
width: '5rem' |
|
|
|
}" |
|
|
|
></ngx-skeleton-loader> |
|
|
|
|
|
|
|
<ng-container> |
|
|
|
<div *ngIf="size === 'large'"> |
|
|
|
<span class="h6" |
|
|
|
><ng-container *ngTemplateOutlet="label"></ng-container |
|
|
|
></span> |
|
|
|
<span *ngIf="subLabel" class="text-muted"> {{ subLabel }}</span> |
|
|
|
</div> |
|
|
|
<small *ngIf="size !== 'large'"> |
|
|
|
<ng-container *ngTemplateOutlet="label"></ng-container> |
|
|
|
</small> |
|
|
|
</ng-container> |
|
|
|
</div> |
|
|
|
|
|
@ -37,6 +37,8 @@ export class ValueComponent implements OnChanges { |
|
|
|
public constructor() {} |
|
|
|
|
|
|
|
public ngOnChanges() { |
|
|
|
this.initializeVariables(); |
|
|
|
|
|
|
|
if (this.value || this.value === 0) { |
|
|
|
if (isNumber(this.value)) { |
|
|
|
this.isNumber = true; |
|
|
@ -120,4 +122,12 @@ export class ValueComponent implements OnChanges { |
|
|
|
this.useAbsoluteValue = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private initializeVariables() { |
|
|
|
this.absoluteValue = 0; |
|
|
|
this.formattedValue = ''; |
|
|
|
this.isNumber = false; |
|
|
|
this.isString = false; |
|
|
|
this.useAbsoluteValue = false; |
|
|
|
} |
|
|
|
} |
|
|
|