source: trip-planner-front/node_modules/@angular/material/tabs/paginated-tab-header.d.ts.map@ eed0bf8

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

initial commit

  • Property mode set to 100644
File size: 9.9 KB
Line 
1{"version":3,"file":"paginated-tab-header.d.ts","sources":["paginated-tab-header.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { ChangeDetectorRef, ElementRef, NgZone, QueryList, EventEmitter, AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';\nimport { Direction, Directionality } from '@angular/cdk/bidi';\nimport { NumberInput } from '@angular/cdk/coercion';\nimport { ViewportRuler } from '@angular/cdk/scrolling';\nimport { FocusableOption } from '@angular/cdk/a11y';\nimport { Subject } from 'rxjs';\nimport { Platform } from '@angular/cdk/platform';\n/**\n * The directions that scrolling can go in when the header's tabs exceed the header width. 'After'\n * will scroll the header towards the end of the tabs list and 'before' will scroll towards the\n * beginning of the list.\n */\nexport declare type ScrollDirection = 'after' | 'before';\n/** Item inside a paginated tab header. */\nexport declare type MatPaginatedTabHeaderItem = FocusableOption & {\n elementRef: ElementRef;\n};\n/**\n * Base class for a tab header that supported pagination.\n * @docs-private\n */\nexport declare abstract class MatPaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {\n protected _elementRef: ElementRef<HTMLElement>;\n protected _changeDetectorRef: ChangeDetectorRef;\n private _viewportRuler;\n private _dir;\n private _ngZone;\n private _platform;\n _animationMode?: string | undefined;\n abstract _items: QueryList<MatPaginatedTabHeaderItem>;\n abstract _inkBar: {\n hide: () => void;\n alignToElement: (element: HTMLElement) => void;\n };\n abstract _tabListContainer: ElementRef<HTMLElement>;\n abstract _tabList: ElementRef<HTMLElement>;\n abstract _nextPaginator: ElementRef<HTMLElement>;\n abstract _previousPaginator: ElementRef<HTMLElement>;\n /** The distance in pixels that the tab labels should be translated to the left. */\n private _scrollDistance;\n /** Whether the header should scroll to the selected index after the view has been checked. */\n private _selectedIndexChanged;\n /** Emits when the component is destroyed. */\n protected readonly _destroyed: Subject<void>;\n /** Whether the controls for pagination should be displayed */\n _showPaginationControls: boolean;\n /** Whether the tab list can be scrolled more towards the end of the tab label list. */\n _disableScrollAfter: boolean;\n /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */\n _disableScrollBefore: boolean;\n /**\n * The number of tab labels that are displayed on the header. When this changes, the header\n * should re-evaluate the scroll position.\n */\n private _tabLabelCount;\n /** Whether the scroll distance has changed and should be applied after the view is checked. */\n private _scrollDistanceChanged;\n /** Used to manage focus between the tabs. */\n private _keyManager;\n /** Cached text content of the header. */\n private _currentTextContent;\n /** Stream that will stop the automated scrolling. */\n private _stopScrolling;\n /**\n * Whether pagination should be disabled. This can be used to avoid unnecessary\n * layout recalculations if it's known that pagination won't be required.\n */\n disablePagination: boolean;\n /** The index of the active tab. */\n get selectedIndex(): number;\n set selectedIndex(value: number);\n private _selectedIndex;\n /** Event emitted when the option is selected. */\n readonly selectFocusedIndex: EventEmitter<number>;\n /** Event emitted when a label is focused. */\n readonly indexFocused: EventEmitter<number>;\n constructor(_elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _viewportRuler: ViewportRuler, _dir: Directionality, _ngZone: NgZone, _platform: Platform, _animationMode?: string | undefined);\n /** Called when the user has selected an item via the keyboard. */\n protected abstract _itemSelected(event: KeyboardEvent): void;\n ngAfterViewInit(): void;\n ngAfterContentInit(): void;\n ngAfterContentChecked(): void;\n ngOnDestroy(): void;\n /** Handles keyboard events on the header. */\n _handleKeydown(event: KeyboardEvent): void;\n /**\n * Callback for when the MutationObserver detects that the content has changed.\n */\n _onContentChanges(): void;\n /**\n * Updates the view whether pagination should be enabled or not.\n *\n * WARNING: Calling this method can be very costly in terms of performance. It should be called\n * as infrequently as possible from outside of the Tabs component as it causes a reflow of the\n * page.\n */\n updatePagination(): void;\n /** Tracks which element has focus; used for keyboard navigation */\n get focusIndex(): number;\n /** When the focus index is set, we must manually send focus to the correct label */\n set focusIndex(value: number);\n /**\n * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is\n * providing a valid index and return true.\n */\n _isValidIndex(index: number): boolean;\n /**\n * Sets focus on the HTML element for the label wrapper and scrolls it into the view if\n * scrolling is enabled.\n */\n _setTabFocus(tabIndex: number): void;\n /** The layout direction of the containing app. */\n _getLayoutDirection(): Direction;\n /** Performs the CSS transformation on the tab list that will cause the list to scroll. */\n _updateTabScrollPosition(): void;\n /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */\n get scrollDistance(): number;\n set scrollDistance(value: number);\n /**\n * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or\n * the end of the list, respectively). The distance to scroll is computed to be a third of the\n * length of the tab list view window.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _scrollHeader(direction: ScrollDirection): {\n maxScrollDistance: number;\n distance: number;\n };\n /** Handles click events on the pagination arrows. */\n _handlePaginatorClick(direction: ScrollDirection): void;\n /**\n * Moves the tab list such that the desired tab label (marked by index) is moved into view.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _scrollToLabel(labelIndex: number): void;\n /**\n * Evaluate whether the pagination controls should be displayed. If the scroll width of the\n * tab list is wider than the size of the header container, then the pagination controls should\n * be shown.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _checkPaginationEnabled(): void;\n /**\n * Evaluate whether the before and after controls should be enabled or disabled.\n * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the\n * before button. If the header is at the end of the list (scroll distance is equal to the\n * maximum distance we can scroll), then disable the after button.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _checkScrollingControls(): void;\n /**\n * Determines what is the maximum length in pixels that can be set for the scroll distance. This\n * is equal to the difference in width between the tab list container and tab header container.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _getMaxScrollDistance(): number;\n /** Tells the ink-bar to align itself to the current label wrapper */\n _alignInkBarToSelectedTab(): void;\n /** Stops the currently-running paginator interval. */\n _stopInterval(): void;\n /**\n * Handles the user pressing down on one of the paginators.\n * Starts scrolling the header after a certain amount of time.\n * @param direction In which direction the paginator should be scrolled.\n */\n _handlePaginatorPress(direction: ScrollDirection, mouseEvent?: MouseEvent): void;\n /**\n * Scrolls the header to a given position.\n * @param position Position to which to scroll.\n * @returns Information on the current scroll distance and the maximum.\n */\n private _scrollTo;\n static ngAcceptInputType_selectedIndex: NumberInput;\n}\n"]}
Note: See TracBrowser for help on using the repository browser.