1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { ElementRef, OnDestroy, NgZone, AfterContentInit } from '@angular/core';
|
9 | import { Directionality } from '@angular/cdk/bidi';
|
10 | import { BaseDirective2, StyleBuilder, StyleDefinition, StyleUtils, MediaMarshaller, ElementMatcher } from '@angular/flex-layout/core';
|
11 | import { Subject } from 'rxjs';
|
12 | export interface LayoutGapParent {
|
13 | directionality: string;
|
14 | items: HTMLElement[];
|
15 | layout: string;
|
16 | }
|
17 | export declare class LayoutGapStyleBuilder extends StyleBuilder {
|
18 | private _styler;
|
19 | constructor(_styler: StyleUtils);
|
20 | buildStyles(gapValue: string, parent: LayoutGapParent): StyleDefinition;
|
21 | sideEffect(gapValue: string, _styles: StyleDefinition, parent: LayoutGapParent): void;
|
22 | }
|
23 | /**
|
24 | * 'layout-padding' styling directive
|
25 | * Defines padding of child elements in a layout container
|
26 | */
|
27 | export declare class LayoutGapDirective extends BaseDirective2 implements AfterContentInit, OnDestroy {
|
28 | protected zone: NgZone;
|
29 | protected directionality: Directionality;
|
30 | protected styleUtils: StyleUtils;
|
31 | protected layout: string;
|
32 | protected DIRECTIVE_KEY: string;
|
33 | protected observerSubject: Subject<void>;
|
34 |
|
35 | protected get childrenNodes(): HTMLElement[];
|
36 | constructor(elRef: ElementRef, zone: NgZone, directionality: Directionality, styleUtils: StyleUtils, styleBuilder: LayoutGapStyleBuilder, marshal: MediaMarshaller);
|
37 | ngAfterContentInit(): void;
|
38 | ngOnDestroy(): void;
|
39 | /**
|
40 | * Cache the parent container 'flex-direction' and update the 'margin' styles
|
41 | */
|
42 | protected onLayoutChange(matcher: ElementMatcher): void;
|
43 | /**
|
44 | *
|
45 | */
|
46 | protected updateWithValue(value: string): void;
|
47 | /** We need to override clearStyles because in most cases mru isn't populated */
|
48 | protected clearStyles(): void;
|
49 | /** Determine if an element will show or hide based on current activation */
|
50 | protected willDisplay(source: HTMLElement): boolean;
|
51 | protected buildChildObservable(): void;
|
52 | protected observer?: MutationObserver;
|
53 | }
|
54 | export declare class DefaultLayoutGapDirective extends LayoutGapDirective {
|
55 | protected inputs: string[];
|
56 | }
|