_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/material/sort/index.ts_0_234 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './public-api';
| {
"end_byte": 234,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/index.ts"
} |
components/src/material/sort/sort.md_0_2919 | The `matSort` and `mat-sort-header` are used, respectively, to add sorting state and display
to tabular data.
<!-- example(sort-overview) -->
### Adding sort to table headers
To add sorting behavior and styling to a set of table headers, add the `<mat-sort-header>` component
to each header and provide an `id` that w... | {
"end_byte": 2919,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/sort.md"
} |
components/src/material/sort/testing/sort-harness.ts_0_1514 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing';
import {SortHarnessFilters, SortHeaderHarne... | {
"end_byte": 1514,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/sort-harness.ts"
} |
components/src/material/sort/testing/sort-harness-filters.ts_0_515 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {BaseHarnessFilters} from '@angular/cdk/testing';
import {SortDirection} from '@angular/material/sort';
expor... | {
"end_byte": 515,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/sort-harness-filters.ts"
} |
components/src/material/sort/testing/public-api.ts_0_315 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './sort-harness';
export * from './sort-header-harness';
export * from './sort-harness-filters';
| {
"end_byte": 315,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/public-api.ts"
} |
components/src/material/sort/testing/sort-header-harness.ts_0_2240 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing';
import {SortDirection} from '@angular/mater... | {
"end_byte": 2240,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/sort-header-harness.ts"
} |
components/src/material/sort/testing/BUILD.bazel_0_750 | load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "testing",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//src/cdk/testing",
"//src/material/... | {
"end_byte": 750,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/BUILD.bazel"
} |
components/src/material/sort/testing/sort-harness.spec.ts_0_5820 | import {Component, signal} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatSortModule, Sort} from '@angular/material/sort';
import {Noop... | {
"end_byte": 5820,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/sort-harness.spec.ts"
} |
components/src/material/sort/testing/index.ts_0_234 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './public-api';
| {
"end_byte": 234,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sort/testing/index.ts"
} |
components/src/material/chips/chip-grid.ts_0_2539 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {DOWN_ARROW, hasModifierKey, TAB, UP_ARROW} from '@angular/cdk/keycodes';
import {
AfterContentInit,
Afte... | {
"end_byte": 2539,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.ts"
} |
components/src/material/chips/chip-grid.ts_2540_10607 | {
ngControl = inject(NgControl, {optional: true, self: true})!;
/**
* Implemented as part of MatFormFieldControl.
* @docs-private
*/
readonly controlType: string = 'mat-chip-grid';
/** The chip input to add more chips */
protected _chipInput: MatChipTextControl;
protected override _defaultRole =... | {
"end_byte": 10607,
"start_byte": 2540,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.ts"
} |
components/src/material/chips/chip-grid.ts_10611_14494 | /**
* Implemented as part of ControlValueAccessor.
* @docs-private
*/
setDisabledState(isDisabled: boolean): void {
this.disabled = isDisabled;
this.stateChanges.next();
}
/** Refreshes the error state of the chip grid. */
updateErrorState() {
this._errorStateTracker.updateErrorState();
... | {
"end_byte": 14494,
"start_byte": 10611,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.ts"
} |
components/src/material/chips/chip-action.ts_0_3617 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
Directive,
ElementRef,
Input,
booleanAttribute,
numberAttribute,
inject,
} from '@angular/core'... | {
"end_byte": 3617,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-action.ts"
} |
components/src/material/chips/_chips-theme.scss_0_6371 | @use 'sass:color';
@use '../core/tokens/m2/mdc/chip' as tokens-mdc-chip;
@use '../core/tokens/m2/mat/chip' as tokens-mat-chip;
@use '../core/tokens/token-utils';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/typography/typography';
/// Outputs base ... | {
"end_byte": 6371,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/_chips-theme.scss"
} |
components/src/material/chips/chip-listbox.ts_0_2681 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
AfterContentInit,
booleanAttribute,
ChangeDetectionStrategy,
Component,
ContentChildren,
EventE... | {
"end_byte": 2681,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.ts"
} |
components/src/material/chips/chip-listbox.ts_2682_10579 | class MatChipListbox
extends MatChipSet
implements AfterContentInit, OnDestroy, ControlValueAccessor
{
/**
* Function when touched. Set as part of ControlValueAccessor implementation.
* @docs-private
*/
_onTouched = () => {};
/**
* Function when changed. Set as part of ControlValueAccessor implem... | {
"end_byte": 10579,
"start_byte": 2682,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.ts"
} |
components/src/material/chips/chip-listbox.ts_10582_12761 | private _selectValue(value: any, isUserInput: boolean): MatChip | undefined {
const correspondingChip = this._chips.find(chip => {
return chip.value != null && this.compareWith(chip.value, value);
});
if (correspondingChip) {
isUserInput ? correspondingChip.selectViaInteraction() : correspondin... | {
"end_byte": 12761,
"start_byte": 10582,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.ts"
} |
components/src/material/chips/chip-set.scss_0_1182 | // Ensures that the internal chip container spans the entire outer container width, if the
// outer container width is customized. This is used by some wrapper components in g3.
.mat-mdc-chip-set {
display: flex;
&:focus {
outline: none;
}
.mdc-evolution-chip-set__chips {
min-width: 100%;
margin-l... | {
"end_byte": 1182,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-set.scss"
} |
components/src/material/chips/chip-text-control.ts_0_759 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/** Interface for a text control that is used to drive interaction with a mat-chip-list. */
export interface MatChip... | {
"end_byte": 759,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-text-control.ts"
} |
components/src/material/chips/chip-option.spec.ts_0_1708 | import {Directionality} from '@angular/cdk/bidi';
import {ENTER, SPACE} from '@angular/cdk/keycodes';
import {dispatchFakeEvent, dispatchKeyboardEvent} from '@angular/cdk/testing/private';
import {Component, DebugElement, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, flush, waitForAsync... | {
"end_byte": 1708,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-option.spec.ts"
} |
components/src/material/chips/chip-option.spec.ts_1712_11434 | describe('MatChipOption', () => {
let testComponent: SingleChip;
beforeEach(() => {
fixture = TestBed.createComponent(SingleChip);
fixture.detectChanges();
chipDebugElement = fixture.debugElement.query(By.directive(MatChipOption))!;
chipNativeElement = chipDebugElement.nativeElement;
... | {
"end_byte": 11434,
"start_byte": 1712,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-option.spec.ts"
} |
components/src/material/chips/chip-option.spec.ts_11440_15470 | describe('a11y', () => {
it('should apply `ariaLabel` and `ariaDesciption` to the element with option role', () => {
testComponent.ariaLabel = 'option name';
testComponent.ariaDescription = 'option description';
fixture.changeDetectorRef.markForCheck();
fixture.detectChanges();
... | {
"end_byte": 15470,
"start_byte": 11440,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-option.spec.ts"
} |
components/src/material/chips/module.ts_0_1498 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ENTER} from '@angular/cdk/keycodes';
import {NgModule} from '@angular/core';
import {ErrorStateMatcher, MatC... | {
"end_byte": 1498,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/module.ts"
} |
components/src/material/chips/chip-input.spec.ts_0_9176 | import {Directionality} from '@angular/cdk/bidi';
import {COMMA, ENTER, TAB} from '@angular/cdk/keycodes';
import {PlatformModule} from '@angular/cdk/platform';
import {
createKeyboardEvent,
dispatchKeyboardEvent,
dispatchEvent,
} from '@angular/cdk/testing/private';
import {Component, DebugElement, ViewChild} fr... | {
"end_byte": 9176,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-input.spec.ts"
} |
components/src/material/chips/chip-input.spec.ts_9178_9781 | @Component({
template: `
<mat-form-field>
<mat-chip-grid #chipGrid [required]="required">
<mat-chip-row>Hello</mat-chip-row>
<input [matChipInputFor]="chipGrid"
[matChipInputAddOnBlur]="addOnBlur"
(matChipInputTokenEnd)="add($event)"
[pla... | {
"end_byte": 9781,
"start_byte": 9178,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-input.spec.ts"
} |
components/src/material/chips/chip-option.ts_0_7425 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
Output,
ViewEncapsulation,
OnInit,
... | {
"end_byte": 7425,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-option.ts"
} |
components/src/material/chips/chip-icons.ts_0_2568 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ENTER, SPACE} from '@angular/cdk/keycodes';
import {Directive} from '@angular/core';
import {MatChipAction} ... | {
"end_byte": 2568,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-icons.ts"
} |
components/src/material/chips/public-api.ts_0_560 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './chip';
export * from './chip-option';
export * from './chip-row';
export * from './chip-set';
expor... | {
"end_byte": 560,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/public-api.ts"
} |
components/src/material/chips/chip-grid.spec.ts_0_8661 | import {animate, style, transition, trigger} from '@angular/animations';
import {Direction, Directionality} from '@angular/cdk/bidi';
import {
BACKSPACE,
DELETE,
DOWN_ARROW,
END,
ENTER,
HOME,
LEFT_ARROW,
RIGHT_ARROW,
SPACE,
TAB,
UP_ARROW,
} from '@angular/cdk/keycodes';
import {
createKeyboardEv... | {
"end_byte": 8661,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.spec.ts"
} |
components/src/material/chips/chip-grid.spec.ts_8667_17868 | describe('keyboard behavior', () => {
describe('LTR (default)', () => {
let fixture: ComponentFixture<ChipGridWithRemove>;
let trailingActions: NodeListOf<HTMLElement>;
beforeEach(fakeAsync(() => {
fixture = createComponent(ChipGridWithRemove);
flush();
trail... | {
"end_byte": 17868,
"start_byte": 8667,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.spec.ts"
} |
components/src/material/chips/chip-grid.spec.ts_17872_21349 | describe('FormFieldChipGrid', () => {
let fixture: ComponentFixture<FormFieldChipGrid>;
beforeEach(() => {
fixture = createComponent(FormFieldChipGrid);
});
describe('keyboard behavior', () => {
it('should maintain focus if the active chip is deleted', () => {
const secondChip = fi... | {
"end_byte": 21349,
"start_byte": 17872,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.spec.ts"
} |
components/src/material/chips/chip-grid.spec.ts_21353_30454 | describe('chip grid with chip input', () => {
let fixture: ComponentFixture<InputChipGrid>;
let nativeChips: HTMLElement[];
let nativeInput: HTMLInputElement;
let nativeChipGrid: HTMLElement;
beforeEach(() => {
fixture = createComponent(InputChipGrid);
nativeChips = fixture.debugElemen... | {
"end_byte": 30454,
"start_byte": 21353,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.spec.ts"
} |
components/src/material/chips/chip-grid.spec.ts_30458_38928 | describe('error messages', () => {
let fixture: ComponentFixture<ChipGridWithFormErrorMessages>;
let errorTestComponent: ChipGridWithFormErrorMessages;
let containerEl: HTMLElement;
let chipGridEl: HTMLElement;
let inputEl: HTMLElement;
beforeEach(fakeAsync(() => {
fixture = createCompone... | {
"end_byte": 38928,
"start_byte": 30458,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.spec.ts"
} |
components/src/material/chips/chip-grid.spec.ts_38930_43043 | @Component({
template: `
<mat-form-field>
<mat-label>New food...</mat-label>
<mat-chip-grid #chipGrid placeholder="Food" [formControl]="control">
@for (food of foods; track food) {
<mat-chip-row [value]="food.value" (removed)="remove(food)">
{{ food.viewValue }}
... | {
"end_byte": 43043,
"start_byte": 38930,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-grid.spec.ts"
} |
components/src/material/chips/chip-option.html_0_1464 | <span class="mat-mdc-chip-focus-overlay"></span>
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary">
<button
matChipAction
[_allowFocusWhenDisabled]="true"
[attr.aria-selected]="ariaSelected"
[attr.aria-label]="ariaLabel"
[attr.aria-describedby]="_ariaDescriptionId"
role... | {
"end_byte": 1464,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-option.html"
} |
components/src/material/chips/README.md_0_96 | Please see the official documentation at https://material.angular.io/components/component/chips
| {
"end_byte": 96,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/README.md"
} |
components/src/material/chips/tokens.ts_0_2074 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ENTER} from '@angular/cdk/keycodes';
import {InjectionToken} from '@angular/core';
/** Default options, for... | {
"end_byte": 2074,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/tokens.ts"
} |
components/src/material/chips/chip-listbox.spec.ts_0_9346 | import {Direction, Directionality} from '@angular/cdk/bidi';
import {END, HOME, LEFT_ARROW, RIGHT_ARROW, SPACE, TAB} from '@angular/cdk/keycodes';
import {
dispatchFakeEvent,
dispatchKeyboardEvent,
patchElementFocus,
} from '@angular/cdk/testing/private';
import {
Component,
DebugElement,
EventEmitter,
Qu... | {
"end_byte": 9346,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.spec.ts"
} |
components/src/material/chips/chip-listbox.spec.ts_9352_15031 | describe('keyboard behavior', () => {
describe('LTR (default)', () => {
beforeEach(() => {
createComponent(StandardChipListbox);
});
it('should focus previous item when press LEFT ARROW', () => {
const lastIndex = primaryActions.length - 1;
// Focus the last... | {
"end_byte": 15031,
"start_byte": 9352,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.spec.ts"
} |
components/src/material/chips/chip-listbox.spec.ts_15037_21496 | describe('selection logic', () => {
it('should remove selection if chip has been removed', fakeAsync(() => {
fixture = createComponent(BasicChipListbox);
const instanceChips = fixture.componentInstance.chips;
const chipListbox = fixture.componentInstance.chipListbox;
dispatchKeyboa... | {
"end_byte": 21496,
"start_byte": 15037,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.spec.ts"
} |
components/src/material/chips/chip-listbox.spec.ts_21502_31553 | describe('chip list with chip input', () => {
describe('single selection', () => {
beforeEach(() => {
fixture = createComponent(BasicChipListbox);
});
it('should take an initial view value with reactive forms', fakeAsync(() => {
fixture.componentInstance.control = new ... | {
"end_byte": 31553,
"start_byte": 21502,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.spec.ts"
} |
components/src/material/chips/chip-listbox.spec.ts_31557_37985 | function createComponent<T>(
component: Type<T>,
direction: Direction = 'ltr',
beforeInitialChangeDetection?: (fixture: ComponentFixture<T>) => void,
): ComponentFixture<T> {
directionality = {
value: direction,
change: new EventEmitter(),
};
TestBed.configureTestingModule({
... | {
"end_byte": 37985,
"start_byte": 31557,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-listbox.spec.ts"
} |
components/src/material/chips/chip.scss_0_6718 | @use '@angular/cdk';
@use '../core/style/layout-common';
@use '../core/focus-indicators/private' as focus-indicators-private;
@use '../core/tokens/m2/mdc/chip' as tokens-mdc-chip;
@use '../core/tokens/m2/mat/chip' as tokens-mat-chip;
@use '../core/style/vendor-prefixes';
@use '../core/tokens/token-utils';
$_checkmark-... | {
"end_byte": 6718,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.scss"
} |
components/src/material/chips/chip.scss_6718_14167 | .create-token-slot(letter-spacing, label-text-tracking);
}
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) & {
@include token-utils.create-token-slot(color, label-text-color);
}
.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) & {
@include to... | {
"end_byte": 14167,
"start_byte": 6718,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.scss"
} |
components/src/material/chips/chip.scss_14168_22188 | .mat-mdc-chip-highlighted {
@include token-utils.use-tokens(tokens-mdc-chip.$prefix, tokens-mdc-chip.get-token-slots()) {
$highlighted-remapped-tokens: (
with-icon-icon-color: with-icon-selected-icon-color,
elevated-container-color: elevated-selected-container-color,
label-text-color: selected-l... | {
"end_byte": 22188,
"start_byte": 14168,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.scss"
} |
components/src/material/chips/chip.scss_22192_24468 | .mat-mdc-chip-primary-focus-indicator {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
}
// For the chip element, default inset/offset values are necessary to ensure that
// the focus indicator is sufficiently contrastive and renders appropriately.
.mat-... | {
"end_byte": 24468,
"start_byte": 22192,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.scss"
} |
components/src/material/chips/chips.md_0_8311 | Chips allow users to view information, make selections, filter content, and enter data.
### Static Chips
Chips are always used inside a container. To create chips, start with a `<mat-chip-set>` element. Then, nest `<mat-chip>` elements inside the `<mat-chip-set>`.
<!-- example(chips-overview) -->
By default, `<mat-... | {
"end_byte": 8311,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chips.md"
} |
components/src/material/chips/chip.html_0_801 | <span class="mat-mdc-chip-focus-overlay"></span>
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary">
<span matChipAction [isInteractive]="false">
@if (leadingIcon) {
<span class="mdc-evolution-chip__graphic mat-mdc-chip-graphic">
<ng-content select="mat-chip-avatar, [matChipAv... | {
"end_byte": 801,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.html"
} |
components/src/material/chips/chip-edit-input.spec.ts_0_1680 | import {Component, DebugElement} from '@angular/core';
import {waitForAsync, TestBed, ComponentFixture} from '@angular/core/testing';
import {MatChipEditInput, MatChipsModule} from './index';
import {By} from '@angular/platform-browser';
describe('MatChipEditInput', () => {
const DEFAULT_INITIAL_VALUE = 'INITIAL_VAL... | {
"end_byte": 1680,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-edit-input.spec.ts"
} |
components/src/material/chips/chip-edit-input.ts_0_1463 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Directive, ElementRef, inject} from '@angular/core';
import {DOCUMENT} from '@angular/common';
/**
* A dir... | {
"end_byte": 1463,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-edit-input.ts"
} |
components/src/material/chips/chip.ts_0_2926 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {FocusMonitor} from '@angular/cdk/a11y';
import {BACKSPACE, DELETE} from '@angular/cdk/keycodes';
import {DOC... | {
"end_byte": 2926,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.ts"
} |
components/src/material/chips/chip.ts_2927_11037 | class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck, OnDestroy {
_changeDetectorRef = inject(ChangeDetectorRef);
_elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
protected _ngZone = inject(NgZone);
private _focusMonitor = inject(FocusMonitor);
private _globalRippleOptions = inj... | {
"end_byte": 11037,
"start_byte": 2927,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.ts"
} |
components/src/material/chips/chip.ts_11040_13222 | focus(): void {
if (!this.disabled) {
// If `focus` is called before `ngAfterViewInit`, we won't have access to the primary action.
// This can happen if the consumer tries to focus a chip immediately after it is added.
// Queue the method to be called again on init.
if (this.primaryAction) ... | {
"end_byte": 13222,
"start_byte": 11040,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.ts"
} |
components/src/material/chips/chip-set.spec.ts_0_4566 | import {Component, DebugElement, QueryList} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, tick, waitForAsync} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {MatChip, MatChipSet, MatChipsModule} from './index';
describe('MatChipSet', () => {
beforeEach(waitFo... | {
"end_byte": 4566,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-set.spec.ts"
} |
components/src/material/chips/BUILD.bazel_0_2060 | load(
"//tools:defaults.bzl",
"extract_tokens",
"markdown_to_html",
"ng_module",
"ng_test_library",
"ng_web_test_suite",
"sass_binary",
"sass_library",
)
package(default_visibility = ["//visibility:public"])
ng_module(
name = "chips",
srcs = glob(
["**/*.ts"],
e... | {
"end_byte": 2060,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/BUILD.bazel"
} |
components/src/material/chips/chip-row.html_0_1227 | @if (!_isEditing) {
<span class="mat-mdc-chip-focus-overlay"></span>
}
<span class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary" role="gridcell"
matChipAction
[disabled]="disabled"
[attr.aria-label]="ariaLabel"
[attr.aria-describedby]="_ariaDescriptionId">
@if (leadingIcon) {
<sp... | {
"end_byte": 1227,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-row.html"
} |
components/src/material/chips/chip-input.ts_0_6754 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {BACKSPACE, hasModifierKey} from '@angular/cdk/keycodes';
import {
Directive,
ElementRef,
EventEmitter,... | {
"end_byte": 6754,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-input.ts"
} |
components/src/material/chips/chip-row.spec.ts_0_7926 | import {Directionality} from '@angular/cdk/bidi';
import {BACKSPACE, DELETE, ENTER, SPACE} from '@angular/cdk/keycodes';
import {
createKeyboardEvent,
dispatchEvent,
dispatchFakeEvent,
dispatchKeyboardEvent,
} from '@angular/cdk/testing/private';
import {Component, DebugElement, ElementRef, ViewChild} from '@an... | {
"end_byte": 7926,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-row.spec.ts"
} |
components/src/material/chips/chip-row.spec.ts_7932_15643 | describe('editing behavior', () => {
let editInputInstance: MatChipEditInput;
let primaryAction: HTMLElement;
beforeEach(fakeAsync(() => {
testComponent.editable = true;
fixture.changeDetectorRef.markForCheck();
fixture.detectChanges();
dispatchFakeEvent(chipNativeElem... | {
"end_byte": 15643,
"start_byte": 7932,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-row.spec.ts"
} |
components/src/material/chips/index.ts_0_234 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './public-api';
| {
"end_byte": 234,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/index.ts"
} |
components/src/material/chips/chip.spec.ts_0_6165 | import {Directionality} from '@angular/cdk/bidi';
import {Component, DebugElement, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {Subject} from 'rxjs';
import {MatChip, MatChipEvent, MatChipSet, MatChi... | {
"end_byte": 6165,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip.spec.ts"
} |
components/src/material/chips/chip-remove.spec.ts_0_4290 | import {ENTER, SPACE} from '@angular/cdk/keycodes';
import {dispatchKeyboardEvent, dispatchMouseEvent} from '@angular/cdk/testing/private';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, flush, waitForAsync} from '@angular/core/testing';
import {By} from '@angular/platform-browse... | {
"end_byte": 4290,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-remove.spec.ts"
} |
components/src/material/chips/chip-set.ts_0_1349 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {FocusKeyManager} from '@angular/cdk/a11y';
import {Directionality} from '@angular/cdk/bidi';
import {
Afte... | {
"end_byte": 1349,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-set.ts"
} |
components/src/material/chips/chip-set.ts_1350_9502 | class MatChipSet implements AfterViewInit, OnDestroy {
protected _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
protected _changeDetectorRef = inject(ChangeDetectorRef);
private _dir = inject(Directionality, {optional: true});
/** Index of the last destroyed chip that had focus. */
private _lastD... | {
"end_byte": 9502,
"start_byte": 1350,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-set.ts"
} |
components/src/material/chips/chip-set.ts_9505_11083 | private _trackDestroyedFocusedChip() {
this.chipDestroyedChanges.pipe(takeUntil(this._destroyed)).subscribe((event: MatChipEvent) => {
const chipArray = this._chips.toArray();
const chipIndex = chipArray.indexOf(event.chip);
// If the focused chip is destroyed, save its index so that we can move ... | {
"end_byte": 11083,
"start_byte": 9505,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-set.ts"
} |
components/src/material/chips/chip-row.ts_0_6098 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ENTER} from '@angular/cdk/keycodes';
import {
AfterViewInit,
ChangeDetectionStrategy,
Component,
Con... | {
"end_byte": 6098,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/chip-row.ts"
} |
components/src/material/chips/testing/chip-grid-harness.ts_0_2300 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
} from '@angular/cdk/testing';
impor... | {
"end_byte": 2300,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-grid-harness.ts"
} |
components/src/material/chips/testing/chip-input-harness.spec.ts_0_3569 | import {COMMA} from '@angular/cdk/keycodes';
import {HarnessLoader, TestKey} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatChipsModule} from '../ind... | {
"end_byte": 3569,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-input-harness.spec.ts"
} |
components/src/material/chips/testing/chip-option-harness.ts_0_2024 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ComponentHarnessConstructor, HarnessPredicate} from '@angular/cdk/testing';
import {MatChipHarness} from './... | {
"end_byte": 2024,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-option-harness.ts"
} |
components/src/material/chips/testing/chip-input-harness.ts_0_3390 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
TestKey,
} from '@angular/cdk/test... | {
"end_byte": 3390,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-input-harness.ts"
} |
components/src/material/chips/testing/chip-avatar-harness.ts_0_1059 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
} from '@angular/cdk/testing';
impor... | {
"end_byte": 1059,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-avatar-harness.ts"
} |
components/src/material/chips/testing/public-api.ts_0_623 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './chip-avatar-harness';
export * from './chip-harness';
export * from './chip-harness-filters';
expor... | {
"end_byte": 623,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/public-api.ts"
} |
components/src/material/chips/testing/chip-set-harness.spec.ts_0_1380 | import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatChipsModule} from '../index';
import {MatChipSetHarness} from './chip-set-harne... | {
"end_byte": 1380,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-set-harness.spec.ts"
} |
components/src/material/chips/testing/chip-option-harness.spec.ts_0_3434 | import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatChipsModule} from '../index';
import {MatChipOptionHarness} from './chip-option... | {
"end_byte": 3434,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-option-harness.spec.ts"
} |
components/src/material/chips/testing/chip-row-harness.ts_0_1642 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {TestKey} from '@angular/cdk/testing';
import {MatChipEditInputHarness} from './chip-edit-input-harness';
imp... | {
"end_byte": 1642,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-row-harness.ts"
} |
components/src/material/chips/testing/chip-listbox-harness.ts_0_2884 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
parallel,
} from '@angular/cdk/tes... | {
"end_byte": 2884,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-listbox-harness.ts"
} |
components/src/material/chips/testing/chip-harness-filters.ts_0_1705 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {BaseHarnessFilters} from '@angular/cdk/testing';
export interface ChipHarnessFilters extends BaseHarnessFil... | {
"end_byte": 1705,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-harness-filters.ts"
} |
components/src/material/chips/testing/chip-edit-input-harness.ts_0_1582 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
} from '@angular/cdk/testing';
impor... | {
"end_byte": 1582,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-edit-input-harness.ts"
} |
components/src/material/chips/testing/chip-harness.spec.ts_0_3691 | import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatIconModule} from '@angular/material/icon';
import {MatIconHarness} fr... | {
"end_byte": 3691,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-harness.spec.ts"
} |
components/src/material/chips/testing/chip-grid-harness.spec.ts_0_5246 | import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {FormControl, ReactiveFormsModule, Validators} from '@angular/forms';
imp... | {
"end_byte": 5246,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-grid-harness.spec.ts"
} |
components/src/material/chips/testing/chip-row-harness.spec.ts_0_1584 | import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component, signal} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatChipsModule} from '../index';
import {MatChipRowHarness} from './chip-r... | {
"end_byte": 1584,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-row-harness.spec.ts"
} |
components/src/material/chips/testing/chip-remove-harness.ts_0_1179 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
} from '@angular/cdk/testing';
impor... | {
"end_byte": 1179,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-remove-harness.ts"
} |
components/src/material/chips/testing/BUILD.bazel_0_824 | load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "testing",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//src/cdk/testing",
],
)
ng_test_librar... | {
"end_byte": 824,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/BUILD.bazel"
} |
components/src/material/chips/testing/index.ts_0_234 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './public-api';
| {
"end_byte": 234,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/index.ts"
} |
components/src/material/chips/testing/chip-set-harness.ts_0_1295 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarnessConstructor,
ComponentHarness,
HarnessPredicate,
} from '@angular/cdk/testing';
impor... | {
"end_byte": 1295,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-set-harness.ts"
} |
components/src/material/chips/testing/chip-harness.ts_0_2690 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarnessConstructor,
ContentContainerComponentHarness,
HarnessPredicate,
TestKey,
} from '@... | {
"end_byte": 2690,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-harness.ts"
} |
components/src/material/chips/testing/chip-listbox-harness.spec.ts_0_5386 | import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatChipsModule} from '../index';
import {MatChipListboxHarness} from './... | {
"end_byte": 5386,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/chips/testing/chip-listbox-harness.spec.ts"
} |
components/src/material/input/input.md_0_4859 | `matInput` is a directive that allows native `<input>` and `<textarea>` elements to work with
[`<mat-form-field>`](https://material.angular.io/components/form-field/overview).
<!-- example(input-overview) -->
### `<input>` and `<textarea>` attributes
All of the attributes that can be used with `<input>` and `<textar... | {
"end_byte": 4859,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.md"
} |
components/src/material/input/input-value-accessor.ts_0_718 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {InjectionToken, WritableSignal} from '@angular/core';
/**
* This token is used to inject the object whose ... | {
"end_byte": 718,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/input-value-accessor.ts"
} |
components/src/material/input/input-errors.ts_0_367 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/** @docs-private */
export function getMatInputUnsupportedTypeError(type: string): Error {
return Error(`Input ty... | {
"end_byte": 367,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/input-errors.ts"
} |
components/src/material/input/module.ts_0_640 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {TextFieldModule} from '@angular/cdk/text-field';
import {NgModule} from '@angular/core';
import {MatCommonMo... | {
"end_byte": 640,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/module.ts"
} |
components/src/material/input/input.ts_0_3735 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';
import {getSupportedInputTypes, Platform}... | {
"end_byte": 3735,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.ts"
} |
components/src/material/input/input.ts_3736_12048 | {
protected _elementRef =
inject<ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>>(ElementRef);
protected _platform = inject(Platform);
ngControl = inject(NgControl, {optional: true, self: true})!;
private _autofillMonitor = inject(AutofillMonitor);
private _ngZone = inject(NgZone);
... | {
"end_byte": 12048,
"start_byte": 3736,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.ts"
} |
components/src/material/input/input.ts_12052_20403 | ngDoCheck() {
if (this.ngControl) {
// We need to re-evaluate this on every change detection cycle, because there are some
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
// that whatever logic is in here has to be super lean or we risk destroying the perfor... | {
"end_byte": 20403,
"start_byte": 12052,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.ts"
} |
components/src/material/input/input.ts_20407_21929 | /**
* In blink and webkit browsers a focused number input does not increment or decrement its value
* on mouse wheel interaction unless a wheel event listener is attached to it or one of its ancestors or a passive wheel listener is attached somewhere in the DOM.
* For example: Hitting a tooltip once enables th... | {
"end_byte": 21929,
"start_byte": 20407,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.ts"
} |
components/src/material/input/public-api.ts_0_590 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export {MatInput, MatInputConfig, MAT_INPUT_CONFIG} from './input';
export {MatInputModule} from './module';
export ... | {
"end_byte": 590,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/public-api.ts"
} |
components/src/material/input/input.spec.ts_0_1162 | import {getSupportedInputTypes} from '@angular/cdk/platform';
import {dispatchFakeEvent, wrappedErrorMessage} from '@angular/cdk/testing/private';
import {
ChangeDetectionStrategy,
Component,
Directive,
ErrorHandler,
Provider,
Type,
ViewChild,
} from '@angular/core';
import {ComponentFixture, TestBed, fak... | {
"end_byte": 1162,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.spec.ts"
} |
components/src/material/input/input.spec.ts_1164_10712 | describe('MatMdcInput without forms', () => {
it('should default to floating labels', fakeAsync(() => {
let fixture = createComponent(MatInputWithLabel);
fixture.detectChanges();
let formField = fixture.debugElement.query(By.directive(MatFormField))!
.componentInstance as MatFormField;
expect(f... | {
"end_byte": 10712,
"start_byte": 1164,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.spec.ts"
} |
components/src/material/input/input.spec.ts_10716_20742 | it('supports hint labels elements', fakeAsync(() => {
let fixture = createComponent(MatInputHintLabel2TestController);
fixture.detectChanges();
// In this case, we should have an empty <mat-hint>.
let el = fixture.debugElement.query(By.css('mat-hint'))!.nativeElement;
expect(el.textContent).toBeFal... | {
"end_byte": 20742,
"start_byte": 10716,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.spec.ts"
} |
components/src/material/input/input.spec.ts_20746_30190 | it('sets the aria-describedby when a hintLabel is set', fakeAsync(() => {
let fixture = createComponent(MatInputHintLabelTestController);
fixture.componentInstance.label = 'label';
fixture.changeDetectorRef.markForCheck();
fixture.detectChanges();
const hint = fixture.debugElement.query(By.css('.m... | {
"end_byte": 30190,
"start_byte": 20746,
"url": "https://github.com/angular/components/blob/main/src/material/input/input.spec.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.