UNPKG

@porscheinformatik/clr-addons

Version:
54 lines (53 loc) 2.17 kB
import { ClrControlError, ClrControlHelper, ClrControlSuccess, ClrLabel, ClrLayout } from '@clr/angular'; import { DaterangeControlStateService } from '../providers/daterange-control-state.service'; import * as i0 from "@angular/core"; export declare abstract class ClrAbstractContainer { protected readonly clrLayout: ClrLayout; protected readonly daterangeControlStateService: DaterangeControlStateService; protected readonly isFormControl = true; /** * Detect if container is not part of an vertical form to apply correct grid classes. */ get addLayoutGrid(): boolean; /** Label component. */ protected labelComponent: ClrLabel; /** Helper control component. */ protected controlHelperComponent: ClrControlHelper; /** Error control component. */ protected controlErrorComponent: ClrControlError; /** Success control component. */ protected controlSuccessComponent: ClrControlSuccess; /** * Wether to show the helper control. * @returns Wether to show the helper control. */ protected get showHelper(): boolean; /** * Wether to show the valid control. * @returns Wether to show the valid control. */ protected get showValid(): boolean; /** * Wether to show the invalid control. * @returns Wether to show the invalid control. */ protected get showInvalid(): boolean; /** * Disabled state. * @returns Disabled state. */ protected get disabled(): boolean; /** * If control is focused. * @returns Wether control is focused. */ protected get focus(): boolean; /** * Wether control is invalid. * @returns Wether control is invalid. */ protected get isInvalid(): boolean; constructor(clrLayout: ClrLayout, daterangeControlStateService: DaterangeControlStateService); static ɵfac: i0.ɵɵFactoryDeclaration<ClrAbstractContainer, [{ optional: true; }, null]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ClrAbstractContainer, never, never, {}, {}, ["labelComponent", "controlHelperComponent", "controlErrorComponent", "controlSuccessComponent"], never, true, never>; }