index.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. import { CdkPortalOutlet } from '@angular/cdk/portal';
  2. import { ChangeDetectorRef } from '@angular/core';
  3. import { ComponentFactoryResolver } from '@angular/core';
  4. import { Directionality } from '@angular/cdk/bidi';
  5. import { ElementRef } from '@angular/core';
  6. import { FocusMonitor } from '@angular/cdk/a11y';
  7. import * as i0 from '@angular/core';
  8. import * as i10 from '@angular/common';
  9. import * as i11 from '@angular/material/core';
  10. import * as i12 from '@angular/cdk/portal';
  11. import * as i13 from '@angular/cdk/observers';
  12. import * as i14 from '@angular/cdk/a11y';
  13. import { ScrollDirection as LegacyScrollDirection } from '@angular/material/tabs';
  14. import { _MAT_INK_BAR_POSITIONER as _MAT_LEGACY_INK_BAR_POSITIONER } from '@angular/material/tabs';
  15. import { _MAT_INK_BAR_POSITIONER_FACTORY as _MAT_LEGACY_INK_BAR_POSITIONER_FACTORY } from '@angular/material/tabs';
  16. import { MAT_TAB as MAT_LEGACY_TAB } from '@angular/material/tabs';
  17. import { MAT_TAB_CONTENT as MAT_LEGACY_TAB_CONTENT } from '@angular/material/tabs';
  18. import { MAT_TAB_GROUP as MAT_LEGACY_TAB_GROUP } from '@angular/material/tabs';
  19. import { MAT_TABS_CONFIG as MAT_LEGACY_TABS_CONFIG } from '@angular/material/tabs';
  20. import { _MatInkBarPositioner as _MatLegacyInkBarPositioner } from '@angular/material/tabs';
  21. import { MatPaginatedTabHeader as MatLegacyPaginatedTabHeader } from '@angular/material/tabs';
  22. import { _MatTabBase as _MatLegacyTabBase } from '@angular/material/tabs';
  23. import { _MatTabBodyBase as _MatLegacyTabBodyBase } from '@angular/material/tabs';
  24. import { MatTabBodyOriginState as MatLegacyTabBodyOriginState } from '@angular/material/tabs';
  25. import { MatTabBodyPositionState as MatLegacyTabBodyPositionState } from '@angular/material/tabs';
  26. import { MatTabChangeEvent as MatLegacyTabChangeEvent } from '@angular/material/tabs';
  27. import { _MatTabGroupBase as _MatLegacyTabGroupBase } from '@angular/material/tabs';
  28. import { _MatTabHeaderBase as _MatLegacyTabHeaderBase } from '@angular/material/tabs';
  29. import { MatTabHeaderPosition as MatLegacyTabHeaderPosition } from '@angular/material/tabs';
  30. import { _MatTabLinkBase as _MatLegacyTabLinkBase } from '@angular/material/tabs';
  31. import { _MatTabNavBase as _MatLegacyTabNavBase } from '@angular/material/tabs';
  32. import { matTabsAnimations as matLegacyTabsAnimations } from '@angular/material/tabs';
  33. import { MatTabsConfig as MatLegacyTabsConfig } from '@angular/material/tabs';
  34. import { MatTabBodyPortal } from '@angular/material/tabs';
  35. import { MatTabContent } from '@angular/material/tabs';
  36. import { MatTabGroupBaseHeader } from '@angular/material/tabs';
  37. import { MatTabLabel } from '@angular/material/tabs';
  38. import { _MatTabLabelWrapperBase } from '@angular/material/tabs';
  39. import { NgZone } from '@angular/core';
  40. import { OnDestroy } from '@angular/core';
  41. import { Platform } from '@angular/cdk/platform';
  42. import { QueryList } from '@angular/core';
  43. import { RippleGlobalOptions } from '@angular/material/core';
  44. import { TemplateRef } from '@angular/core';
  45. import { ViewContainerRef } from '@angular/core';
  46. import { ViewportRuler } from '@angular/cdk/scrolling';
  47. declare namespace i1 {
  48. export {
  49. MatLegacyTabGroup
  50. }
  51. }
  52. declare namespace i2 {
  53. export {
  54. MatLegacyTabLabel
  55. }
  56. }
  57. declare namespace i3 {
  58. export {
  59. MatLegacyTab
  60. }
  61. }
  62. declare namespace i4 {
  63. export {
  64. MatLegacyInkBar
  65. }
  66. }
  67. declare namespace i5 {
  68. export {
  69. MatLegacyTabLabelWrapper
  70. }
  71. }
  72. declare namespace i6 {
  73. export {
  74. MatLegacyTabNav,
  75. MatLegacyTabLink,
  76. MatLegacyTabNavPanel
  77. }
  78. }
  79. declare namespace i7 {
  80. export {
  81. MatLegacyTabBodyPortal,
  82. MatLegacyTabBody
  83. }
  84. }
  85. declare namespace i8 {
  86. export {
  87. MatLegacyTabHeader
  88. }
  89. }
  90. declare namespace i9 {
  91. export {
  92. MatLegacyTabContent
  93. }
  94. }
  95. export { LegacyScrollDirection }
  96. export { _MAT_LEGACY_INK_BAR_POSITIONER }
  97. export { _MAT_LEGACY_INK_BAR_POSITIONER_FACTORY }
  98. export { MAT_LEGACY_TAB }
  99. export { MAT_LEGACY_TAB_CONTENT }
  100. export { MAT_LEGACY_TAB_GROUP }
  101. export { MAT_LEGACY_TABS_CONFIG }
  102. /**
  103. * The ink-bar is used to display and animate the line underneath the current active tab label.
  104. * @docs-private
  105. * @deprecated Use `MatInkBar` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  106. * @breaking-change 17.0.0
  107. */
  108. export declare class MatLegacyInkBar {
  109. private _elementRef;
  110. private _ngZone;
  111. private _inkBarPositioner;
  112. _animationMode?: string | undefined;
  113. constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _inkBarPositioner: _MatLegacyInkBarPositioner, _animationMode?: string | undefined);
  114. /**
  115. * Calculates the styles from the provided element in order to align the ink-bar to that element.
  116. * Shows the ink bar if previously set as hidden.
  117. * @param element
  118. */
  119. alignToElement(element: HTMLElement): void;
  120. /** Shows the ink bar. */
  121. show(): void;
  122. /** Hides the ink bar. */
  123. hide(): void;
  124. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyInkBar, [null, null, null, { optional: true; }]>;
  125. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyInkBar, "mat-ink-bar", never, {}, {}, never, never, false, never>;
  126. }
  127. export { _MatLegacyInkBarPositioner }
  128. export { MatLegacyPaginatedTabHeader }
  129. /**
  130. * @deprecated Use `MatTab` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  131. * @breaking-change 17.0.0
  132. */
  133. export declare class MatLegacyTab extends _MatLegacyTabBase {
  134. /** Content for the tab label given by `<ng-template mat-tab-label>`. */
  135. get templateLabel(): MatTabLabel;
  136. set templateLabel(value: MatTabLabel);
  137. /**
  138. * Template provided in the tab content that will be used if present, used to enable lazy-loading
  139. */
  140. _explicitContent: TemplateRef<any>;
  141. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTab, never>;
  142. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTab, "mat-tab", ["matTab"], { "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["templateLabel", "_explicitContent"], ["*"], false, never>;
  143. }
  144. export { _MatLegacyTabBase }
  145. /**
  146. * Wrapper for the contents of a tab.
  147. * @docs-private
  148. * @deprecated Use `MatTabBody` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  149. * @breaking-change 17.0.0
  150. */
  151. export declare class MatLegacyTabBody extends _MatLegacyTabBodyBase {
  152. _portalHost: CdkPortalOutlet;
  153. constructor(elementRef: ElementRef<HTMLElement>, dir: Directionality, changeDetectorRef: ChangeDetectorRef);
  154. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabBody, [null, { optional: true; }, null]>;
  155. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabBody, "mat-tab-body", never, {}, {}, never, never, false, never>;
  156. }
  157. export { _MatLegacyTabBodyBase }
  158. export { MatLegacyTabBodyOriginState }
  159. /**
  160. * The portal host directive for the contents of the tab.
  161. * @docs-private
  162. * @deprecated Use `MatTabBodyPortal` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  163. * @breaking-change 17.0.0
  164. */
  165. export declare class MatLegacyTabBodyPortal extends MatTabBodyPortal {
  166. constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, host: MatLegacyTabBody, _document: any);
  167. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabBodyPortal, never>;
  168. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabBodyPortal, "[matTabBodyHost]", never, {}, {}, never, never, false, never>;
  169. }
  170. export { MatLegacyTabBodyPositionState }
  171. export { MatLegacyTabChangeEvent }
  172. /**
  173. * Decorates the `ng-template` tags and reads out the template from it.
  174. * @deprecated Use `MatTabContent` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  175. * @breaking-change 17.0.0
  176. */
  177. export declare class MatLegacyTabContent extends MatTabContent {
  178. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabContent, never>;
  179. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabContent, "[matTabContent]", never, {}, {}, never, never, false, never>;
  180. }
  181. /**
  182. * Material design tab-group component. Supports basic tab pairs (label + content) and includes
  183. * animated ink-bar, keyboard navigation, and screen reader.
  184. * See: https://material.io/design/components/tabs.html
  185. * @deprecated Use `MatTabGroup` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  186. * @breaking-change 17.0.0
  187. */
  188. export declare class MatLegacyTabGroup extends _MatLegacyTabGroupBase {
  189. _allTabs: QueryList<MatLegacyTab>;
  190. _tabBodyWrapper: ElementRef;
  191. _tabHeader: MatTabGroupBaseHeader;
  192. constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, defaultConfig?: MatLegacyTabsConfig, animationMode?: string);
  193. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabGroup, [null, null, { optional: true; }, { optional: true; }]>;
  194. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabGroup, "mat-tab-group", ["matTabGroup"], { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, ["_allTabs"], never, false, never>;
  195. }
  196. export { _MatLegacyTabGroupBase }
  197. /**
  198. * The header of the tab group which displays a list of all the tabs in the tab group. Includes
  199. * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
  200. * width of the header container, then arrows will be displayed to allow the user to scroll
  201. * left and right across the header.
  202. * @docs-private
  203. * @deprecated Use `MatTabHeader` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  204. * @breaking-change 17.0.0
  205. */
  206. export declare class MatLegacyTabHeader extends _MatLegacyTabHeaderBase {
  207. _items: QueryList<MatLegacyTabLabelWrapper>;
  208. _inkBar: MatLegacyInkBar;
  209. _tabListContainer: ElementRef;
  210. _tabList: ElementRef;
  211. _tabListInner: ElementRef;
  212. _nextPaginator: ElementRef<HTMLElement>;
  213. _previousPaginator: ElementRef<HTMLElement>;
  214. constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, dir: Directionality, ngZone: NgZone, platform: Platform, animationMode?: string);
  215. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabHeader, [null, null, null, { optional: true; }, null, null, { optional: true; }]>;
  216. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabHeader, "mat-tab-header", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, ["_items"], ["*"], false, never>;
  217. }
  218. export { _MatLegacyTabHeaderBase }
  219. export { MatLegacyTabHeaderPosition }
  220. /**
  221. * Used to flag tab labels for use with the portal directive
  222. * @deprecated Use `MatTabLabel` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  223. * @breaking-change 17.0.0
  224. */
  225. export declare class MatLegacyTabLabel extends MatTabLabel {
  226. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabLabel, never>;
  227. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabLabel, "[mat-tab-label], [matTabLabel]", never, {}, {}, never, never, false, never>;
  228. }
  229. /**
  230. * @deprecated Use `MatTabLabelWrapper` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  231. * @breaking-change 17.0.0
  232. */
  233. export declare class MatLegacyTabLabelWrapper extends _MatTabLabelWrapperBase {
  234. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabLabelWrapper, never>;
  235. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabLabelWrapper, "[matTabLabelWrapper]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
  236. }
  237. /**
  238. * Link inside of a `mat-tab-nav-bar`.
  239. * @deprecated Use `MatTabLink` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  240. * @breaking-change 17.0.0
  241. */
  242. export declare class MatLegacyTabLink extends _MatLegacyTabLinkBase implements OnDestroy {
  243. /** Reference to the RippleRenderer for the tab-link. */
  244. private _tabLinkRipple;
  245. constructor(tabNavBar: MatLegacyTabNav, elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, focusMonitor: FocusMonitor, animationMode?: string);
  246. ngOnDestroy(): void;
  247. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabLink, [null, null, null, null, { optional: true; }, { attribute: "tabindex"; }, null, { optional: true; }]>;
  248. static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacyTabLink, "[mat-tab-link], [matTabLink]", ["matTabLink"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, false, never>;
  249. }
  250. export { _MatLegacyTabLinkBase }
  251. /**
  252. * Navigation component matching the styles of the tab group header.
  253. * Provides anchored navigation with animated ink bar.
  254. * @deprecated Use `MatTabNav` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  255. * @breaking-change 17.0.0
  256. */
  257. export declare class MatLegacyTabNav extends _MatLegacyTabNavBase {
  258. _items: QueryList<MatLegacyTabLink>;
  259. _inkBar: MatLegacyInkBar;
  260. _tabListContainer: ElementRef;
  261. _tabList: ElementRef;
  262. _tabListInner: ElementRef;
  263. _nextPaginator: ElementRef<HTMLElement>;
  264. _previousPaginator: ElementRef<HTMLElement>;
  265. constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, platform: Platform, animationMode?: string);
  266. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabNav, [null, { optional: true; }, null, null, null, null, { optional: true; }]>;
  267. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabNav, "[mat-tab-nav-bar]", ["matTabNavBar", "matTabNav"], { "color": { "alias": "color"; "required": false; }; }, {}, ["_items"], ["*"], false, never>;
  268. }
  269. export { _MatLegacyTabNavBase }
  270. /**
  271. * Tab panel component associated with MatTabNav.
  272. * @deprecated Use `MatTabNavPanel` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  273. * @breaking-change 17.0.0
  274. */
  275. export declare class MatLegacyTabNavPanel {
  276. /** Unique id for the tab panel. */
  277. id: string;
  278. /** Id of the active tab in the nav bar. */
  279. _activeTabId?: string;
  280. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabNavPanel, never>;
  281. static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacyTabNavPanel, "mat-tab-nav-panel", ["matTabNavPanel"], { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], false, never>;
  282. }
  283. export { matLegacyTabsAnimations }
  284. export { MatLegacyTabsConfig }
  285. /**
  286. * @deprecated Use `MatTabsModule` from `@angular/material/tabs` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
  287. * @breaking-change 17.0.0
  288. */
  289. export declare class MatLegacyTabsModule {
  290. static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyTabsModule, never>;
  291. static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacyTabsModule, [typeof i1.MatLegacyTabGroup, typeof i2.MatLegacyTabLabel, typeof i3.MatLegacyTab, typeof i4.MatLegacyInkBar, typeof i5.MatLegacyTabLabelWrapper, typeof i6.MatLegacyTabNav, typeof i6.MatLegacyTabNavPanel, typeof i6.MatLegacyTabLink, typeof i7.MatLegacyTabBody, typeof i7.MatLegacyTabBodyPortal, typeof i8.MatLegacyTabHeader, typeof i9.MatLegacyTabContent], [typeof i10.CommonModule, typeof i11.MatCommonModule, typeof i12.PortalModule, typeof i11.MatRippleModule, typeof i13.ObserversModule, typeof i14.A11yModule], [typeof i11.MatCommonModule, typeof i1.MatLegacyTabGroup, typeof i2.MatLegacyTabLabel, typeof i3.MatLegacyTab, typeof i6.MatLegacyTabNav, typeof i6.MatLegacyTabNavPanel, typeof i6.MatLegacyTabLink, typeof i9.MatLegacyTabContent]>;
  292. static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacyTabsModule>;
  293. }
  294. export { }