source: trip-planner-front/node_modules/@angular/material/tabs/tab.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { BooleanInput } from '@angular/cdk/coercion';
9import { TemplatePortal } from '@angular/cdk/portal';
10import { OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef, InjectionToken } from '@angular/core';
11import { CanDisable } from '@angular/material/core';
12import { Subject } from 'rxjs';
13import { MatTabLabel } from './tab-label';
14/** @docs-private */
15import * as ɵngcc0 from '@angular/core';
16declare const _MatTabBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanDisable> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanDisable> & {
17 new (): {};
18};
19/**
20 * Used to provide a tab group to a tab without causing a circular dependency.
21 * @docs-private
22 */
23export declare const MAT_TAB_GROUP: InjectionToken<any>;
24export declare class MatTab extends _MatTabBase implements OnInit, CanDisable, OnChanges, OnDestroy {
25 private _viewContainerRef;
26 _closestTabGroup: any;
27 /** Content for the tab label given by `<ng-template mat-tab-label>`. */
28 get templateLabel(): MatTabLabel;
29 set templateLabel(value: MatTabLabel);
30 protected _templateLabel: MatTabLabel;
31 /**
32 * Template provided in the tab content that will be used if present, used to enable lazy-loading
33 */
34 _explicitContent: TemplateRef<any>;
35 /** Template inside the MatTab view that contains an `<ng-content>`. */
36 _implicitContent: TemplateRef<any>;
37 /** Plain text label for the tab, used when there is no template label. */
38 textLabel: string;
39 /** Aria label for the tab. */
40 ariaLabel: string;
41 /**
42 * Reference to the element that the tab is labelled by.
43 * Will be cleared if `aria-label` is set at the same time.
44 */
45 ariaLabelledby: string;
46 /** Portal that will be the hosted content of the tab */
47 private _contentPortal;
48 /** @docs-private */
49 get content(): TemplatePortal | null;
50 /** Emits whenever the internal state of the tab changes. */
51 readonly _stateChanges: Subject<void>;
52 /**
53 * The relatively indexed position where 0 represents the center, negative is left, and positive
54 * represents the right.
55 */
56 position: number | null;
57 /**
58 * The initial relatively index origin of the tab if it was created and selected after there
59 * was already a selected tab. Provides context of what position the tab should originate from.
60 */
61 origin: number | null;
62 /**
63 * Whether the tab is currently active.
64 */
65 isActive: boolean;
66 constructor(_viewContainerRef: ViewContainerRef, _closestTabGroup: any);
67 ngOnChanges(changes: SimpleChanges): void;
68 ngOnDestroy(): void;
69 ngOnInit(): void;
70 /**
71 * This has been extracted to a util because of TS 4 and VE.
72 * View Engine doesn't support property rename inheritance.
73 * TS 4.0 doesn't allow properties to override accessors or vice-versa.
74 * @docs-private
75 */
76 protected _setTemplateLabelInput(value: MatTabLabel | undefined): void;
77 static ngAcceptInputType_disabled: BooleanInput;
78 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<MatTab, [null, { optional: true; }]>;
79 static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<MatTab, "mat-tab", ["matTab"], { "disabled": "disabled"; "textLabel": "label"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; }, {}, ["templateLabel", "_explicitContent"], ["*"]>;
80}
81export {};
82
83//# sourceMappingURL=tab.d.ts.map
Note: See TracBrowser for help on using the repository browser.