|
|
@ -71,36 +71,35 @@ export class AdminMarketDataComponent
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
id: assetSubClass.toString(),
|
|
|
|
id: assetSubClass.toString(),
|
|
|
|
label: translate(assetSubClass),
|
|
|
|
label: translate(assetSubClass),
|
|
|
|
type: <Filter['type']>'ASSET_SUB_CLASS'
|
|
|
|
type: 'ASSET_SUB_CLASS' as Filter['type']
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.concat([
|
|
|
|
.concat([
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'BENCHMARKS',
|
|
|
|
id: 'BENCHMARKS',
|
|
|
|
label: $localize`Benchmarks`,
|
|
|
|
label: $localize`Benchmarks`,
|
|
|
|
type: <Filter['type']>'PRESET_ID'
|
|
|
|
type: 'PRESET_ID' as Filter['type']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'CURRENCIES',
|
|
|
|
id: 'CURRENCIES',
|
|
|
|
label: $localize`Currencies`,
|
|
|
|
label: $localize`Currencies`,
|
|
|
|
type: <Filter['type']>'PRESET_ID'
|
|
|
|
type: 'PRESET_ID' as Filter['type']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'ETF_WITHOUT_COUNTRIES',
|
|
|
|
id: 'ETF_WITHOUT_COUNTRIES',
|
|
|
|
label: $localize`ETFs without Countries`,
|
|
|
|
label: $localize`ETFs without Countries`,
|
|
|
|
type: <Filter['type']>'PRESET_ID'
|
|
|
|
type: 'PRESET_ID' as Filter['type']
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'ETF_WITHOUT_SECTORS',
|
|
|
|
id: 'ETF_WITHOUT_SECTORS',
|
|
|
|
label: $localize`ETFs without Sectors`,
|
|
|
|
label: $localize`ETFs without Sectors`,
|
|
|
|
type: <Filter['type']>'PRESET_ID'
|
|
|
|
type: 'PRESET_ID' as Filter['type']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
public benchmarks: Partial<SymbolProfile>[];
|
|
|
|
public benchmarks: Partial<SymbolProfile>[];
|
|
|
|
public currentDataSource: DataSource;
|
|
|
|
public currentDataSource: DataSource;
|
|
|
|
public currentSymbol: string;
|
|
|
|
public currentSymbol: string;
|
|
|
|
public dataSource: MatTableDataSource<AdminMarketDataItem> =
|
|
|
|
public dataSource = new MatTableDataSource<AdminMarketDataItem>();
|
|
|
|
new MatTableDataSource();
|
|
|
|
|
|
|
|
public defaultDateFormat: string;
|
|
|
|
public defaultDateFormat: string;
|
|
|
|
public deviceType: string;
|
|
|
|
public deviceType: string;
|
|
|
|
public displayedColumns: string[] = [];
|
|
|
|
public displayedColumns: string[] = [];
|
|
|
@ -375,13 +374,13 @@ export class AdminMarketDataComponent
|
|
|
|
|
|
|
|
|
|
|
|
const dialogRef = this.dialog.open(AssetProfileDialog, {
|
|
|
|
const dialogRef = this.dialog.open(AssetProfileDialog, {
|
|
|
|
autoFocus: false,
|
|
|
|
autoFocus: false,
|
|
|
|
data: <AssetProfileDialogParams>{
|
|
|
|
data: {
|
|
|
|
dataSource,
|
|
|
|
dataSource,
|
|
|
|
symbol,
|
|
|
|
symbol,
|
|
|
|
colorScheme: this.user?.settings.colorScheme,
|
|
|
|
colorScheme: this.user?.settings.colorScheme,
|
|
|
|
deviceType: this.deviceType,
|
|
|
|
deviceType: this.deviceType,
|
|
|
|
locale: this.user?.settings?.locale
|
|
|
|
locale: this.user?.settings?.locale
|
|
|
|
},
|
|
|
|
} as AssetProfileDialogParams,
|
|
|
|
height: this.deviceType === 'mobile' ? '98vh' : '80vh',
|
|
|
|
height: this.deviceType === 'mobile' ? '98vh' : '80vh',
|
|
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
|
|
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -404,10 +403,10 @@ export class AdminMarketDataComponent
|
|
|
|
|
|
|
|
|
|
|
|
const dialogRef = this.dialog.open(CreateAssetProfileDialog, {
|
|
|
|
const dialogRef = this.dialog.open(CreateAssetProfileDialog, {
|
|
|
|
autoFocus: false,
|
|
|
|
autoFocus: false,
|
|
|
|
data: <CreateAssetProfileDialogParams>{
|
|
|
|
data: {
|
|
|
|
deviceType: this.deviceType,
|
|
|
|
deviceType: this.deviceType,
|
|
|
|
locale: this.user?.settings?.locale
|
|
|
|
locale: this.user?.settings?.locale
|
|
|
|
},
|
|
|
|
} as CreateAssetProfileDialogParams,
|
|
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
|
|
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|