|
@ -103,39 +103,46 @@ export class GfAdminMarketDataComponent |
|
|
@ViewChild(MatSort) sort: MatSort; |
|
|
@ViewChild(MatSort) sort: MatSort; |
|
|
|
|
|
|
|
|
public activeFilters: Filter[] = []; |
|
|
public activeFilters: Filter[] = []; |
|
|
public allFilters: Filter[] = Object.keys(AssetSubClass) |
|
|
public allFilters: Filter[] = [ |
|
|
.filter((assetSubClass) => { |
|
|
...Object.keys(AssetSubClass) |
|
|
return assetSubClass !== 'CASH'; |
|
|
.filter((assetSubClass) => { |
|
|
}) |
|
|
return assetSubClass !== 'CASH'; |
|
|
.map((assetSubClass) => { |
|
|
}) |
|
|
|
|
|
.map((assetSubClass) => { |
|
|
|
|
|
return { |
|
|
|
|
|
id: assetSubClass.toString(), |
|
|
|
|
|
label: translate(assetSubClass), |
|
|
|
|
|
type: 'ASSET_SUB_CLASS' as Filter['type'] |
|
|
|
|
|
}; |
|
|
|
|
|
}), |
|
|
|
|
|
...Object.keys(DataSource).map((dataSource) => { |
|
|
return { |
|
|
return { |
|
|
id: assetSubClass.toString(), |
|
|
id: dataSource.toString(), |
|
|
label: translate(assetSubClass), |
|
|
label: dataSource, |
|
|
type: 'ASSET_SUB_CLASS' as Filter['type'] |
|
|
type: 'DATA_SOURCE' as Filter['type'] |
|
|
}; |
|
|
}; |
|
|
}) |
|
|
}), |
|
|
.concat([ |
|
|
{ |
|
|
{ |
|
|
id: 'BENCHMARKS', |
|
|
id: 'BENCHMARKS', |
|
|
label: $localize`Benchmarks`, |
|
|
label: $localize`Benchmarks`, |
|
|
type: 'PRESET_ID' as Filter['type'] |
|
|
type: 'PRESET_ID' as Filter['type'] |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 'CURRENCIES', |
|
|
id: 'CURRENCIES', |
|
|
label: $localize`Currencies`, |
|
|
label: $localize`Currencies`, |
|
|
type: 'PRESET_ID' as Filter['type'] |
|
|
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: 'PRESET_ID' as Filter['type'] |
|
|
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: 'PRESET_ID' as Filter['type'] |
|
|
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; |
|
|