|
|
@ -79,31 +79,19 @@ |
|
|
|
[showXAxis]="true" |
|
|
|
[showYAxis]="true" |
|
|
|
/> |
|
|
|
<div class="mb-3"> |
|
|
|
<mat-accordion class="my-3"> |
|
|
|
<mat-expansion-panel class="shadow-none"> |
|
|
|
<mat-expansion-panel-header class="p-0 pr-3"> |
|
|
|
<mat-panel-title class="font-weight-bold" i18n |
|
|
|
>Historical Market Data</mat-panel-title |
|
|
|
> |
|
|
|
</mat-expansion-panel-header> |
|
|
|
|
|
|
|
<gf-historical-market-data-editor |
|
|
|
class="mb-3" |
|
|
|
[currency]="assetProfile?.currency" |
|
|
|
[dataSource]="data.dataSource" |
|
|
|
[dateOfFirstActivity]="assetProfile?.dateOfFirstActivity" |
|
|
|
[locale]="data.locale" |
|
|
|
[marketData]="marketDataItems" |
|
|
|
[symbol]="data.symbol" |
|
|
|
[user]="user" |
|
|
|
(marketDataChanged)="onMarketDataChanged($event)" |
|
|
|
/> |
|
|
|
</mat-expansion-panel> |
|
|
|
</mat-accordion> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<mat-tab-group |
|
|
|
animationDuration="0ms" |
|
|
|
[dynamicHeight]="true" |
|
|
|
[mat-stretch-tabs]="false" |
|
|
|
> |
|
|
|
<mat-tab> |
|
|
|
<ng-template mat-tab-label> |
|
|
|
<ion-icon name="reader-outline" /> |
|
|
|
<div class="d-none d-sm-block ml-2" i18n>Overview</div> |
|
|
|
</ng-template> |
|
|
|
<div class="container mt-3 p-0"> |
|
|
|
<div class="row w-100"> |
|
|
|
@if (isEditAssetProfileIdentifierMode) { |
|
|
|
<div class="col-12 mb-4"> |
|
|
|
<form |
|
|
@ -115,7 +103,10 @@ |
|
|
|
" |
|
|
|
(ngSubmit)="onSubmitAssetProfileIdentifierForm()" |
|
|
|
> |
|
|
|
<mat-form-field appearance="outline" class="gf-spacer without-hint"> |
|
|
|
<mat-form-field |
|
|
|
appearance="outline" |
|
|
|
class="gf-spacer without-hint" |
|
|
|
> |
|
|
|
<mat-label i18n>Name, symbol or ISIN</mat-label> |
|
|
|
<gf-symbol-autocomplete |
|
|
|
formControlName="assetProfileIdentifier" |
|
|
@ -160,7 +151,8 @@ |
|
|
|
i18n |
|
|
|
size="medium" |
|
|
|
[value]=" |
|
|
|
assetProfile?.dataProviderInfo?.name ?? assetProfile?.dataSource |
|
|
|
assetProfile?.dataProviderInfo?.name ?? |
|
|
|
assetProfile?.dataSource |
|
|
|
" |
|
|
|
>Data Source</gf-value |
|
|
|
> |
|
|
@ -226,7 +218,8 @@ |
|
|
|
> |
|
|
|
</div> |
|
|
|
@if ( |
|
|
|
assetProfile?.countries?.length > 0 || assetProfile?.sectors?.length > 0 |
|
|
|
assetProfile?.countries?.length > 0 || |
|
|
|
assetProfile?.sectors?.length > 0 |
|
|
|
) { |
|
|
|
@if ( |
|
|
|
assetProfile?.countries?.length === 1 && |
|
|
@ -372,10 +365,10 @@ |
|
|
|
<mat-expansion-panel |
|
|
|
class="shadow-none" |
|
|
|
[expanded]=" |
|
|
|
assetProfileForm.controls.scraperConfiguration.controls.selector |
|
|
|
.value !== '' && |
|
|
|
assetProfileForm.controls.scraperConfiguration.controls.url |
|
|
|
.value !== '' |
|
|
|
assetProfileForm.controls.scraperConfiguration.controls |
|
|
|
.selector.value !== '' && |
|
|
|
assetProfileForm.controls.scraperConfiguration.controls |
|
|
|
.url.value !== '' |
|
|
|
" |
|
|
|
(closed)="scraperConfiguationIsExpanded.set(false)" |
|
|
|
(opened)="scraperConfiguationIsExpanded.set(true)" |
|
|
@ -420,7 +413,11 @@ |
|
|
|
class="w-100 without-hint" |
|
|
|
> |
|
|
|
<mat-label i18n>Locale</mat-label> |
|
|
|
<input formControlName="locale" matInput type="text" /> |
|
|
|
<input |
|
|
|
formControlName="locale" |
|
|
|
matInput |
|
|
|
type="text" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<div class="mt-3"> |
|
|
@ -471,10 +468,10 @@ |
|
|
|
mat-flat-button |
|
|
|
type="button" |
|
|
|
[disabled]=" |
|
|
|
assetProfileForm.controls.scraperConfiguration.controls |
|
|
|
.selector.value === '' || |
|
|
|
assetProfileForm.controls.scraperConfiguration.controls |
|
|
|
.url.value === '' |
|
|
|
assetProfileForm.controls.scraperConfiguration |
|
|
|
.controls.selector.value === '' || |
|
|
|
assetProfileForm.controls.scraperConfiguration |
|
|
|
.controls.url.value === '' |
|
|
|
" |
|
|
|
(click)="onTestMarketData()" |
|
|
|
> |
|
|
@ -537,6 +534,31 @@ |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</mat-tab> |
|
|
|
<mat-tab> |
|
|
|
<ng-template mat-tab-label> |
|
|
|
<ion-icon name="server-outline" /> |
|
|
|
<div class="d-none d-sm-block ml-2" i18n>Historical Market Data</div> |
|
|
|
</ng-template> |
|
|
|
<div class="container mt-3 p-0"> |
|
|
|
<div class="no-gutters row w-100"> |
|
|
|
<div class="col-12"> |
|
|
|
<gf-historical-market-data-editor |
|
|
|
[currency]="assetProfile?.currency" |
|
|
|
[dataSource]="data.dataSource" |
|
|
|
[dateOfFirstActivity]="assetProfile?.dateOfFirstActivity" |
|
|
|
[locale]="data.locale" |
|
|
|
[marketData]="marketDataItems" |
|
|
|
[symbol]="data.symbol" |
|
|
|
[user]="user" |
|
|
|
(marketDataChanged)="onMarketDataChanged($event)" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</mat-tab> |
|
|
|
</mat-tab-group> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="d-flex" mat-dialog-actions> |
|
|
|
<div class="gf-spacer"> |
|
|
|