You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
3.7 KiB

{"version":3,"file":"menu-item.d.ts","sources":["menu-item.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","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 { FocusableOption, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { ElementRef, OnDestroy, AfterViewInit, ChangeDetectorRef } from '@angular/core';\nimport { CanDisable, CanDisableRipple } from '@angular/material/core';\nimport { Subject } from 'rxjs';\nimport { MatMenuPanel } from './menu-panel';\n/** @docs-private */\ndeclare const _MatMenuItemBase: import(\"@angular/material/core/common-behaviors/constructor\").Constructor<CanDisableRipple> & import(\"@angular/material/core/common-behaviors/constructor\").AbstractConstructor<CanDisableRipple> & import(\"@angular/material/core/common-behaviors/constructor\").Constructor<CanDisable> & import(\"@angular/material/core/common-behaviors/constructor\").AbstractConstructor<CanDisable> & {\n new (): {};\n};\n/**\n * Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment.\n */\nexport declare class MatMenuItem extends _MatMenuItemBase implements FocusableOption, CanDisable, CanDisableRipple, AfterViewInit, OnDestroy {\n private _elementRef;\n private _focusMonitor?;\n _parentMenu?: MatMenuPanel<MatMenuItem> | undefined;\n /**\n * @deprecated `_changeDetectorRef` to become a required parameter.\n * @breaking-change 14.0.0\n */\n private _changeDetectorRef?;\n /** ARIA role for the menu item. */\n role: 'menuitem' | 'menuitemradio' | 'menuitemcheckbox';\n /** Stream that emits when the menu item is hovered. */\n readonly _hovered: Subject<MatMenuItem>;\n /** Stream that emits when the menu item is focused. */\n readonly _focused: Subject<MatMenuItem>;\n /** Whether the menu item is highlighted. */\n _highlighted: boolean;\n /** Whether the menu item acts as a trigger for a sub-menu. */\n _triggersSubmenu: boolean;\n constructor(_elementRef: ElementRef<HTMLElement>, \n /**\n * @deprecated `_document` parameter is no longer being used and will be removed.\n * @breaking-change 12.0.0\n */\n _document?: any, _focusMonitor?: FocusMonitor | undefined, _parentMenu?: MatMenuPanel<MatMenuItem> | undefined, \n /**\n * @deprecated `_changeDetectorRef` to become a required parameter.\n * @breaking-change 14.0.0\n */\n _changeDetectorRef?: ChangeDetectorRef | undefined);\n /** Focuses the menu item. */\n focus(origin?: FocusOrigin, options?: FocusOptions): void;\n ngAfterViewInit(): void;\n ngOnDestroy(): void;\n /** Used to set the `tabindex`. */\n _getTabIndex(): string;\n /** Returns the host DOM element. */\n _getHostElement(): HTMLElement;\n /** Prevents the default element actions if it is disabled. */\n _checkDisabled(event: Event): void;\n /** Emits to the hover stream. */\n _handleMouseEnter(): void;\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel(): string;\n _setHighlighted(isHighlighted: boolean): void;\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_disableRipple: BooleanInput;\n}\nexport {};\n"]}