source: trip-planner-front/node_modules/@angular/material/list/selection-list.d.ts.map@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 12.3 KB
Line 
1{"version":3,"file":"selection-list.d.ts","sources":["selection-list.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;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, FocusKeyManager, FocusMonitor } from '@angular/cdk/a11y';\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { CanDisableRipple, MatLine, ThemePalette } from '@angular/material/core';\nimport { MatListAvatarCssMatStyler, MatListIconCssMatStyler } from './list';\ndeclare const _MatSelectionListBase: import(\"@angular/material/core/common-behaviors/constructor\").Constructor<CanDisableRipple> & import(\"@angular/material/core/common-behaviors/constructor\").AbstractConstructor<CanDisableRipple> & {\n new (): {};\n};\ndeclare const _MatListOptionBase: import(\"@angular/material/core/common-behaviors/constructor\").Constructor<CanDisableRipple> & import(\"@angular/material/core/common-behaviors/constructor\").AbstractConstructor<CanDisableRipple> & {\n new (): {};\n};\n/** @docs-private */\nexport declare const MAT_SELECTION_LIST_VALUE_ACCESSOR: any;\n/** Change event that is being fired whenever the selected state of an option changes. */\nexport declare class MatSelectionListChange {\n /** Reference to the selection list that emitted the event. */\n source: MatSelectionList;\n /**\n * Reference to the option that has been changed.\n * @deprecated Use `options` instead, because some events may change more than one option.\n * @breaking-change 12.0.0\n */\n option: MatListOption;\n /** Reference to the options that have been changed. */\n options: MatListOption[];\n constructor(\n /** Reference to the selection list that emitted the event. */\n source: MatSelectionList, \n /**\n * Reference to the option that has been changed.\n * @deprecated Use `options` instead, because some events may change more than one option.\n * @breaking-change 12.0.0\n */\n option: MatListOption, \n /** Reference to the options that have been changed. */\n options: MatListOption[]);\n}\n/**\n * Type describing possible positions of a checkbox in a list option\n * with respect to the list item's text.\n */\nexport declare type MatListOptionCheckboxPosition = 'before' | 'after';\n/**\n * Component for list-options of selection-list. Each list-option can automatically\n * generate a checkbox and can put current item into the selectionModel of selection-list\n * if the current item is selected.\n */\nexport declare class MatListOption extends _MatListOptionBase implements AfterContentInit, OnDestroy, OnInit, FocusableOption, CanDisableRipple {\n private _element;\n private _changeDetector;\n /** @docs-private */\n selectionList: MatSelectionList;\n private _selected;\n private _disabled;\n private _hasFocus;\n _avatar: MatListAvatarCssMatStyler;\n _icon: MatListIconCssMatStyler;\n _lines: QueryList<MatLine>;\n /**\n * Emits when the selected state of the option has changed.\n * Use to facilitate two-data binding to the `selected` property.\n * @docs-private\n */\n readonly selectedChange: EventEmitter<boolean>;\n /** DOM element containing the item's text. */\n _text: ElementRef;\n /** Whether the label should appear before or after the checkbox. Defaults to 'after' */\n checkboxPosition: MatListOptionCheckboxPosition;\n /** Theme color of the list option. This sets the color of the checkbox. */\n get color(): ThemePalette;\n set color(newValue: ThemePalette);\n private _color;\n /**\n * This is set to true after the first OnChanges cycle so we don't clear the value of `selected`\n * in the first cycle.\n */\n private _inputsInitialized;\n /** Value of the option */\n get value(): any;\n set value(newValue: any);\n private _value;\n /** Whether the option is disabled. */\n get disabled(): any;\n set disabled(value: any);\n /** Whether the option is selected. */\n get selected(): boolean;\n set selected(value: boolean);\n constructor(_element: ElementRef<HTMLElement>, _changeDetector: ChangeDetectorRef, \n /** @docs-private */\n selectionList: MatSelectionList);\n ngOnInit(): void;\n ngAfterContentInit(): void;\n ngOnDestroy(): void;\n /** Toggles the selection state of the option. */\n toggle(): void;\n /** Allows for programmatic focusing of the option. */\n focus(): void;\n /**\n * Returns the list item's text label. Implemented as a part of the FocusKeyManager.\n * @docs-private\n */\n getLabel(): any;\n /** Whether this list item should show a ripple effect when clicked. */\n _isRippleDisabled(): any;\n _handleClick(): void;\n _handleFocus(): void;\n _handleBlur(): void;\n /** Retrieves the DOM element of the component host. */\n _getHostElement(): HTMLElement;\n /** Sets the selected state of the option. Returns whether the value has changed. */\n _setSelected(selected: boolean): boolean;\n /**\n * Notifies Angular that the option needs to be checked in the next change detection run. Mainly\n * used to trigger an update of the list option if the disabled state of the selection list\n * changed.\n */\n _markForCheck(): void;\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_selected: BooleanInput;\n static ngAcceptInputType_disableRipple: BooleanInput;\n}\n/**\n * Material Design list component where each item is a selectable option. Behaves as a listbox.\n */\nexport declare class MatSelectionList extends _MatSelectionListBase implements CanDisableRipple, AfterContentInit, ControlValueAccessor, OnDestroy, OnChanges {\n private _element;\n private _changeDetector;\n private _focusMonitor?;\n private _multiple;\n private _contentInitialized;\n /** The FocusKeyManager which handles focus. */\n _keyManager: FocusKeyManager<MatListOption>;\n /** The option components contained within this selection-list. */\n options: QueryList<MatListOption>;\n /** Emits a change event whenever the selected state of an option changes. */\n readonly selectionChange: EventEmitter<MatSelectionListChange>;\n /**\n * Tabindex of the selection list.\n * @breaking-change 11.0.0 Remove `tabIndex` input.\n */\n tabIndex: number;\n /** Theme color of the selection list. This sets the checkbox color for all list options. */\n color: ThemePalette;\n /**\n * Function used for comparing an option against the selected value when determining which\n * options should appear as selected. The first argument is the value of an options. The second\n * one is a value from the selected value. A boolean must be returned.\n */\n compareWith: (o1: any, o2: any) => boolean;\n /** Whether the selection list is disabled. */\n get disabled(): boolean;\n set disabled(value: boolean);\n private _disabled;\n /** Whether selection is limited to one or multiple items (default multiple). */\n get multiple(): boolean;\n set multiple(value: boolean);\n /** The currently selected options. */\n selectedOptions: SelectionModel<MatListOption>;\n /** The tabindex of the selection list. */\n _tabIndex: number;\n /** View to model callback that should be called whenever the selected options change. */\n private _onChange;\n /** Keeps track of the currently-selected value. */\n _value: string[] | null;\n /** Emits when the list has been destroyed. */\n private readonly _destroyed;\n /** View to model callback that should be called if the list or its options lost focus. */\n _onTouched: () => void;\n /** Whether the list has been destroyed. */\n private _isDestroyed;\n constructor(_element: ElementRef<HTMLElement>, tabIndex: string, _changeDetector: ChangeDetectorRef, _focusMonitor?: FocusMonitor | undefined);\n ngAfterContentInit(): void;\n ngOnChanges(changes: SimpleChanges): void;\n ngOnDestroy(): void;\n /** Focuses the selection list. */\n focus(options?: FocusOptions): void;\n /** Selects all of the options. Returns the options that changed as a result. */\n selectAll(): MatListOption[];\n /** Deselects all of the options. Returns the options that changed as a result. */\n deselectAll(): MatListOption[];\n /** Sets the focused option of the selection-list. */\n _setFocusedOption(option: MatListOption): void;\n /**\n * Removes an option from the selection list and updates the active item.\n * @returns Currently-active item.\n */\n _removeOptionFromList(option: MatListOption): MatListOption | null;\n /** Passes relevant key presses to our key manager. */\n _keydown(event: KeyboardEvent): void;\n /** Reports a value change to the ControlValueAccessor */\n _reportValueChange(): void;\n /** Emits a change event if the selected state of an option changed. */\n _emitChangeEvent(options: MatListOption[]): void;\n /** Implemented as part of ControlValueAccessor. */\n writeValue(values: string[]): void;\n /** Implemented as a part of ControlValueAccessor. */\n setDisabledState(isDisabled: boolean): void;\n /** Implemented as part of ControlValueAccessor. */\n registerOnChange(fn: (value: any) => void): void;\n /** Implemented as part of ControlValueAccessor. */\n registerOnTouched(fn: () => void): void;\n /** Sets the selected options based on the specified values. */\n private _setOptionsFromValues;\n /** Returns the values of the selected options. */\n private _getSelectedOptionValues;\n /** Toggles the state of the currently focused option if enabled. */\n private _toggleFocusedOption;\n /**\n * Sets the selected state on all of the options\n * and emits an event if anything changed.\n */\n private _setAllOptionsSelected;\n /**\n * Utility to ensure all indexes are valid.\n * @param index The index to be checked.\n * @returns True if the index is valid for our list of options.\n */\n private _isValidIndex;\n /** Returns the index of the specified list option. */\n private _getOptionIndex;\n /** Marks all the options to be checked in the next change detection run. */\n private _markOptionsForCheck;\n /**\n * Removes the tabindex from the selection list and resets it back afterwards, allowing the user\n * to tab out of it. This prevents the list from capturing focus and redirecting it back within\n * the list, creating a focus trap if it user tries to tab away.\n */\n private _allowFocusEscape;\n /** Updates the tabindex based upon if the selection list is empty. */\n private _updateTabIndex;\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_disableRipple: BooleanInput;\n static ngAcceptInputType_multiple: BooleanInput;\n}\nexport {};\n"]}
Note: See TracBrowser for help on using the repository browser.