UNPKG

@iotize/ionic

Version:

Iotize specific building blocks on top of @ionic/angular.

45 lines (44 loc) 2.13 kB
import { DecimalPipe } from '@angular/common'; import { AfterViewInit, OnDestroy } from '@angular/core'; import { InlineEditorComponent, TapValueEditorContainerComponent } from '@iotize/ionic'; import { VariableConfig } from '@iotize/tap/config/schema/v1'; import { AbstractVariable } from '@iotize/tap/data'; import { Subscription } from 'rxjs'; import * as i0 from "@angular/core"; export declare class MonitoringVariableValueComponent<ValueType = any> implements AfterViewInit, OnDestroy { private decimalPipe; ctx?: TapValueEditorContainerComponent; lines?: string; unitValue?: string; set error(err: Error); set variable(v: AbstractVariable<ValueType>); /** * @deprecated */ set config(config: VariableConfig); inputOptions: InlineEditorComponent.InputOptions; editable: boolean; modalEdition: boolean; valueStyle?: any; /** * See digitsInfo doc on @{link https://angular.io/api/common/DecimalPipe#parameters} * Will be used only if value is a number */ digitsInfo?: string; refreshable: boolean; valueFormatting?: (value: ValueType) => ValueType; _variable?: AbstractVariable<ValueType>; fieldError?: Error; _value?: any; forceValue: any; valueSub?: Subscription; constructor(decimalPipe: DecimalPipe); ngOnDestroy(): void; ngAfterViewInit(): void; onSubmit(newValue: any): void; onSubmitValue(): void; onValueChange(event: any): void; onEditModeChange(newValue: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<MonitoringVariableValueComponent<any>, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MonitoringVariableValueComponent<any>, "monitoring-variable-value", never, { "lines": "lines"; "unitValue": "unitValue"; "error": "error"; "variable": "variable"; "config": "config"; "inputOptions": "inputOptions"; "editable": "editable"; "modalEdition": "modalEdition"; "valueStyle": "valueStyle"; "digitsInfo": "digitsInfo"; "refreshable": "refreshable"; "valueFormatting": "valueFormatting"; }, {}, never, never, false, never>; }