@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
48 lines • 2.15 kB
TypeScript
import { AfterViewInit, OnChanges, OnDestroy } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { RangeDisplay } from './range-display.model';
import * as i0 from "@angular/core";
export declare class RangeDisplayComponent implements AfterViewInit, OnDestroy, OnChanges {
private sanitizer;
config: RangeDisplay;
display: 'full' | 'compact' | 'inline';
private currentRangeWidthObserver;
private currentRangeWidthChanged;
private readonly CURRENT_RANGE_WIDTH_TRANSITION_TIME;
private readonly DEFAULT_TOOLTIP_SHIFT;
private readonly MIN_TOOLTIP_SHIFT;
private tooltipShift;
get inlineStyle(): import("@angular/platform-browser").SafeStyle;
private rangeDisplay;
private currentRangeElement;
private destroyed$;
constructor(sanitizer: DomSanitizer);
ngOnChanges(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
/**
*
* @returns true if the target value is within the defined range, false otherwise.
* This method checks if the target value is defined and falls within the minimum and maximum range
*/
checkTarget(): boolean;
rulerCalc(index: any): number;
trackByIndex(index: number): number;
isRedRangeDisplayed(): any;
isYellowRangeDisplayed(): any;
/**
* Checks if the given range is displayed.
* @param rangeMin - The minimum value of the range.
* @param rangeMax - The maximum value of the range.
* * @returns true if the range is displayed, false otherwise.
*/
isRangeDisplayed(rangeMin: any, rangeMax: any): any;
private setupTooltipShifting;
private setTooltipShiftValue;
private setupTooltipShiftingIfPossible;
private getTooltipBackground;
private isValueInRange;
static ɵfac: i0.ɵɵFactoryDeclaration<RangeDisplayComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<RangeDisplayComponent, "c8y-range-display", never, { "config": { "alias": "config"; "required": false; }; "display": { "alias": "display"; "required": false; }; }, {}, never, never, true, never>;
}
//# sourceMappingURL=range-display.component.d.ts.map