UNPKG

flex-layout-rusakov-bk

Version:
42 lines (41 loc) 1.63 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { DoCheck, ElementRef } from '@angular/core'; import { NgClass, ɵNgClassImpl, ɵNgClassR2Impl } from '@angular/common'; import { BaseDirective2, StyleUtils, MediaMarshaller } from '@angular/flex-layout/core'; export declare class ClassDirective extends BaseDirective2 implements DoCheck { protected elementRef: ElementRef; protected styler: StyleUtils; protected marshal: MediaMarshaller; protected delegate: ɵNgClassImpl; protected readonly ngClassInstance: NgClass; protected DIRECTIVE_KEY: string; /** * Capture class assignments so we cache the default classes * which are merged with activated styles and used as fallbacks. */ klass: string; constructor(elementRef: ElementRef, styler: StyleUtils, marshal: MediaMarshaller, delegate: ɵNgClassImpl, ngClassInstance: NgClass); protected updateWithValue(value: any): void; /** * For ChangeDetectionStrategy.onPush and ngOnChanges() updates */ ngDoCheck(): void; } export declare const LayoutNgClassImplProvider: { provide: typeof ɵNgClassImpl; useClass: typeof ɵNgClassR2Impl; }; /** * Directive to add responsive support for ngClass. * This maintains the core functionality of 'ngClass' and adds responsive API * Note: this class is a no-op when rendered on the server */ export declare class DefaultClassDirective extends ClassDirective { protected inputs: string[]; }