UNPKG

3.83 kBTypeScriptView Raw
1import { OnChanges, OnInit, SimpleChanges, ElementRef } from '@angular/core';
2import { CovalentSideSheet } from './side-sheet';
3import { CovalentSideSheetRef } from './side-sheet-ref';
4import * as i0 from "@angular/core";
5/**
6 * Button that will close the current dialog.
7 */
8export declare class CovalentSideSheetCloseDirective implements OnInit, OnChanges {
9 dialogRef: CovalentSideSheetRef<any>;
10 private _elementRef;
11 private _dialog;
12 /** Screenreader label for the button. */
13 ariaLabel?: string;
14 /** Default to "button" to prevents accidental form submits. */
15 type: 'submit' | 'button' | 'reset';
16 /** Dialog close input. */
17 dialogResult: any;
18 _CovalentSideSheetClose: any;
19 onClick($event: MouseEvent): void;
20 constructor(dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
21 ngOnInit(): void;
22 ngOnChanges(changes: SimpleChanges): void;
23 _onButtonClick(event: MouseEvent): void;
24 static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetCloseDirective, [{ optional: true; }, null, null]>;
25 static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "td-side-sheet-close"; "required": false; }; "_CovalentSideSheetClose": { "alias": "CovalentSideSheetClose"; "required": false; }; }, {}, never, never, false, never>;
26}
27/**
28 * Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
29 */
30export declare class CovalentSideSheetTitleDirective implements OnInit {
31 private _dialogRef;
32 private _elementRef;
33 private _dialog;
34 /** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
35 id: string;
36 tdSideSheetTitle: boolean;
37 idAttr: string;
38 constructor(_dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
39 ngOnInit(): void;
40 static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetTitleDirective, [{ optional: true; }, null, null]>;
41 static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
42}
43/**
44 * Scrollable content container of a dialog.
45 */
46export declare class CovalentSideSheetContentDirective {
47 tdSideSheetContent: boolean;
48 static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetContentDirective, never>;
49 static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetContentDirective, "[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]", never, {}, {}, never, never, false, never>;
50}
51/**
52 * Container for the bottom action buttons in a dialog.
53 * Stays fixed to the bottom when scrolling.
54 */
55export declare class CovalentSideSheetActionsDirective {
56 tdSideSheetActions: boolean;
57 static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetActionsDirective, never>;
58 static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetActionsDirective, "[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]", never, {}, {}, never, never, false, never>;
59}
60/**
61 * Container for the wrapper part of the dialog
62 */
63export declare class CovalentSideSheetWrapperDirective {
64 tdSideSheetWrapper: boolean;
65 static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetWrapperDirective, never>;
66 static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetWrapperDirective, "[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]", never, {}, {}, never, never, false, never>;
67}