Browse Source
Feature/migrate assistant and value component to control flow (part 2) (#4948)
* Migrate to control flow
* Update changelog
pull/4947/head
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
35 additions and
31 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/assistant/assistant.html
-
libs/ui/src/lib/value/value.component.html
|
@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
### Changelog |
|
|
### Changelog |
|
|
|
|
|
|
|
|
|
|
|
- Migrated the `@ghostfolio/ui/assistant` component to control flow |
|
|
|
|
|
- Migrated the `@ghostfolio/ui/value` component to control flow |
|
|
- Improved the language localization for Chinese (`zh`) |
|
|
- Improved the language localization for Chinese (`zh`) |
|
|
- Improved the language localization for Portuguese (`pt`) |
|
|
- Improved the language localization for Portuguese (`pt`) |
|
|
|
|
|
|
|
|
|
@ -92,34 +92,36 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
<div *ngIf="hasPermissionToAccessAdminControl" class="mt-2"> |
|
|
@if (hasPermissionToAccessAdminControl) { |
|
|
<div class="font-weight-bold px-3 text-muted title" i18n> |
|
|
<div class="mt-2"> |
|
|
Asset Profiles |
|
|
<div class="font-weight-bold px-3 text-muted title" i18n> |
|
|
</div> |
|
|
Asset Profiles |
|
|
@for ( |
|
|
</div> |
|
|
searchResultItem of searchResults?.assetProfiles; |
|
|
@for ( |
|
|
track searchResultItem |
|
|
searchResultItem of searchResults?.assetProfiles; |
|
|
) { |
|
|
track searchResultItem |
|
|
<gf-assistant-list-item |
|
|
) { |
|
|
[item]="searchResultItem" |
|
|
<gf-assistant-list-item |
|
|
(clicked)="onCloseAssistant()" |
|
|
[item]="searchResultItem" |
|
|
/> |
|
|
(clicked)="onCloseAssistant()" |
|
|
} |
|
|
|
|
|
@if (searchResults?.assetProfiles?.length === 0) { |
|
|
|
|
|
@if (isLoading.assetProfiles) { |
|
|
|
|
|
<ngx-skeleton-loader |
|
|
|
|
|
animation="pulse" |
|
|
|
|
|
class="mx-3" |
|
|
|
|
|
[theme]="{ |
|
|
|
|
|
height: '1.5rem', |
|
|
|
|
|
width: '100%' |
|
|
|
|
|
}" |
|
|
|
|
|
/> |
|
|
/> |
|
|
} @else { |
|
|
|
|
|
<div class="px-3 py-1 text-muted" i18n>No entries...</div> |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
@if (searchResults?.assetProfiles?.length === 0) { |
|
|
</div> |
|
|
@if (isLoading.assetProfiles) { |
|
|
|
|
|
<ngx-skeleton-loader |
|
|
|
|
|
animation="pulse" |
|
|
|
|
|
class="mx-3" |
|
|
|
|
|
[theme]="{ |
|
|
|
|
|
height: '1.5rem', |
|
|
|
|
|
width: '100%' |
|
|
|
|
|
}" |
|
|
|
|
|
/> |
|
|
|
|
|
} @else { |
|
|
|
|
|
<div class="px-3 py-1 text-muted" i18n>No entries...</div> |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</div> |
|
|
|
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<form [formGroup]="filterForm"> |
|
|
<form [formGroup]="filterForm"> |
|
|
|
@ -11,14 +11,14 @@ |
|
|
[ngClass]="position === 'end' ? 'justify-content-end' : ''" |
|
|
[ngClass]="position === 'end' ? 'justify-content-end' : ''" |
|
|
> |
|
|
> |
|
|
<ng-container *ngIf="isNumber || value === null"> |
|
|
<ng-container *ngIf="isNumber || value === null"> |
|
|
<ng-container *ngIf="colorizeSign && !useAbsoluteValue"> |
|
|
@if (colorizeSign && !useAbsoluteValue) { |
|
|
@if (+value > 0) { |
|
|
@if (+value > 0) { |
|
|
<div class="mr-1 text-success">+</div> |
|
|
<div class="mr-1 text-success">+</div> |
|
|
} |
|
|
} |
|
|
@if (+value < 0) { |
|
|
@if (+value < 0) { |
|
|
<div class="mr-1 text-danger">-</div> |
|
|
<div class="mr-1 text-danger">-</div> |
|
|
} |
|
|
} |
|
|
</ng-container> |
|
|
} |
|
|
@if (isPercent) { |
|
|
@if (isPercent) { |
|
|
<div |
|
|
<div |
|
|
class="mb-0 value" |
|
|
class="mb-0 value" |
|
@ -85,8 +85,8 @@ |
|
|
/> |
|
|
/> |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
<ng-container> |
|
|
@if (size === 'large') { |
|
|
<div *ngIf="size === 'large'" class="text-truncate"> |
|
|
<div class="text-truncate"> |
|
|
<span class="h6" |
|
|
<span class="h6" |
|
|
><ng-container *ngTemplateOutlet="label"></ng-container |
|
|
><ng-container *ngTemplateOutlet="label"></ng-container |
|
|
></span> |
|
|
></span> |
|
@ -97,5 +97,5 @@ |
|
|
<small *ngIf="size !== 'large'" class="d-block text-truncate"> |
|
|
<small *ngIf="size !== 'large'" class="d-block text-truncate"> |
|
|
<ng-container *ngTemplateOutlet="label"></ng-container> |
|
|
<ng-container *ngTemplateOutlet="label"></ng-container> |
|
|
</small> |
|
|
</small> |
|
|
</ng-container> |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|