@iotize/ionic
Version:
Iotize specific building blocks on top of @ionic/angular.
41 lines (40 loc) • 2 kB
TypeScript
import { OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { AbstractVariable, TapVariable } from '@iotize/tap/data';
import { TapVariableButton } from '../tap-variable-buttons/tap-variable-buttons.component';
import * as i0 from "@angular/core";
type CardType = 'gauge' | 'text' | 'chart' | 'switch' | 'buttons' | 'range' | 'select';
export declare class VariableCardComponent implements OnDestroy {
router: Router;
waitForSubmit: boolean;
cardType: CardType;
cardTypes: CardType[];
editMode: boolean;
monitor: boolean;
showStartStopMonitoring: boolean;
unit: string;
bundleName: string;
error?: Error;
value: any;
refreshValues: boolean;
monitoringButtons: TapVariableButton[];
selectOptions: {
key: number;
text: string;
}[];
_variable?: AbstractVariable<any>;
private _subscription?;
set variable(variable: AbstractVariable<any>);
get variable(): AbstractVariable<any>;
constructor(router: Router);
get variableConfig(): TapVariable.Config | undefined;
switchButtonToggleAction(checked: boolean): Promise<void>;
ngOnDestroy(): void;
onCardTypeChange($event: CustomEvent<{
value: CardType;
}>): void;
toggleMonitoring(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<VariableCardComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<VariableCardComponent, "app-variable-card", never, { "cardType": { "alias": "cardType"; "required": false; }; "cardTypes": { "alias": "cardTypes"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "monitor": { "alias": "monitor"; "required": false; }; "showStartStopMonitoring": { "alias": "showStartStopMonitoring"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "bundleName": { "alias": "bundleName"; "required": false; }; "variable": { "alias": "variable"; "required": false; }; }, {}, never, never, false, never>;
}
export {};