mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
860 B
29 lines
860 B
import { DateRange, MarketState } from '@ghostfolio/common/types';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
import {
|
|
CUSTOM_ELEMENTS_SCHEMA,
|
|
ChangeDetectionStrategy,
|
|
Component,
|
|
Input
|
|
} from '@angular/core';
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
|
|
|
|
@Component({
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
imports: [CommonModule, NgxSkeletonLoaderModule],
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
selector: 'gf-trend-indicator',
|
|
standalone: true,
|
|
styleUrls: ['./trend-indicator.component.scss'],
|
|
templateUrl: './trend-indicator.component.html'
|
|
})
|
|
export class GfTrendIndicatorComponent {
|
|
@Input() isLoading = false;
|
|
@Input() marketState: MarketState = 'open';
|
|
@Input() range: DateRange = 'max';
|
|
@Input() size: 'large' | 'medium' | 'small' = 'small';
|
|
@Input() value = 0;
|
|
|
|
public constructor() {}
|
|
}
|
|
|