@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
39 lines (38 loc) • 2.13 kB
TypeScript
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
import { FormBuilder, FormGroup } from "@angular/forms";
import { LoggerService } from "@nova-ui/bits";
import { IHasChangeDetector, IHasForm } from "../../../../../types";
import * as i0 from "@angular/core";
export declare class ThresholdsConfigurationComponent implements OnInit, OnDestroy, OnChanges, IHasChangeDetector, IHasForm {
changeDetector: ChangeDetectorRef;
private formBuilder;
private logger;
private cd;
static lateLoadKey: string;
criticalThresholdValue: number;
warningThresholdValue: number;
showThresholds: boolean;
reversedThresholds: boolean;
formReady: EventEmitter<FormGroup<any>>;
thresholdOptions: {
value: boolean;
displayValue: string;
}[];
/**
* this value is added because of the setTimeout in RadioButtonComponent which will be removed in v10 - NUI-4843.
* when setTimeout is removed this hack can be removed as well
* @deprecated - remove in scope of NUI-4843
* */
radioButtonGroupValue: boolean;
form: FormGroup;
private readonly destroy$;
constructor(changeDetector: ChangeDetectorRef, formBuilder: FormBuilder, logger: LoggerService, cd: ChangeDetectorRef);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
getThresholdsSubtitle(showThreshold: boolean): string;
ngOnDestroy(): void;
private validateRadioButtonsGroupValue;
private handleWarningThreshold;
static ɵfac: i0.ɵɵFactoryDeclaration<ThresholdsConfigurationComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ThresholdsConfigurationComponent, "nui-thresholds-configuration", never, { "criticalThresholdValue": { "alias": "criticalThresholdValue"; "required": false; }; "warningThresholdValue": { "alias": "warningThresholdValue"; "required": false; }; "showThresholds": { "alias": "showThresholds"; "required": false; }; "reversedThresholds": { "alias": "reversedThresholds"; "required": false; }; }, { "formReady": "formReady"; }, never, never, false, never>;
}