_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/material/grid-list/grid-list.spec.ts_8732_15666 | it('should set the correct list height in ratio mode', () => {
const fixture = createComponent(GridListWithRatioHeightAndMulipleRows);
fixture.detectChanges();
const list = fixture.debugElement.query(By.directive(MatGridList))!;
const inlineStyles = list.nativeElement.style;
expect(inlineStyles.pa... | {
"end_byte": 15666,
"start_byte": 8732,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/grid-list.spec.ts"
} |
components/src/material/grid-list/grid-list.spec.ts_15670_23876 | it('should reset the old styles when switching to a new tile styler', () => {
const fixture = createComponent(GirdListWithRowHeightRatio);
fixture.componentInstance.rowHeight = '4:1';
fixture.changeDetectorRef.markForCheck();
fixture.detectChanges();
const list = fixture.debugElement.query(By.dire... | {
"end_byte": 23876,
"start_byte": 15670,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/grid-list.spec.ts"
} |
components/src/material/grid-list/grid-list.spec.ts_23878_28558 | @Component({
template: `
<div style="width:400px">
<mat-grid-list cols="4">
<mat-grid-tile [colspan]="colspan"></mat-grid-tile>
</mat-grid-list>
</div>`,
standalone: false,
})
class GridListWithColspanBinding {
colspan: number;
}
@Component({
template: `
<mat-grid-list cols="1" ... | {
"end_byte": 28558,
"start_byte": 23878,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/grid-list.spec.ts"
} |
components/src/material/grid-list/README.md_0_99 | Please see the official documentation at https://material.angular.io/components/component/grid-list | {
"end_byte": 99,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/README.md"
} |
components/src/material/grid-list/BUILD.bazel_0_1357 | 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 = "grid-list",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1357,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/BUILD.bazel"
} |
components/src/material/grid-list/tile-coordinator.ts_0_6286 | /**
* @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 describing a tile.
* @docs-private
*/
export interface Tile {
/** Amount of rows that the tile ... | {
"end_byte": 6286,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/tile-coordinator.ts"
} |
components/src/material/grid-list/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/grid-list/index.ts"
} |
components/src/material/grid-list/grid-list-module.ts_0_994 | /**
* @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 {NgModule} from '@angular/core';
import {MatLineModule, MatCommonModule} from '@angular/material/core';
impor... | {
"end_byte": 994,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/grid-list-module.ts"
} |
components/src/material/grid-list/grid-tile-text.html_0_191 | <ng-content select="[mat-grid-avatar], [matGridAvatar]"></ng-content>
<div class="mat-grid-list-text"><ng-content select="[mat-line], [matLine]"></ng-content></div>
<ng-content></ng-content>
| {
"end_byte": 191,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/grid-tile-text.html"
} |
components/src/material/grid-list/tile-styler.ts_0_7736 | /**
* @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 {QueryList} from '@angular/core';
import {MatGridTile} from './grid-tile';
import {TileCoordinator} from './t... | {
"end_byte": 7736,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/tile-styler.ts"
} |
components/src/material/grid-list/tile-styler.ts_7738_11040 | /**
* This type of styler is instantiated when the user passes in a width:height ratio
* for the row height. Example `<mat-grid-list cols="3" rowHeight="3:1">`
* @docs-private
*/
export class RatioTileStyler extends TileStyler {
/** Ratio width:height given by user to determine row height. */
rowHeightRatio: n... | {
"end_byte": 11040,
"start_byte": 7738,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/tile-styler.ts"
} |
components/src/material/grid-list/testing/grid-list-harness-filters.ts_0_750 | /**
* @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';
/** A set of criteria that can be used to filter a list of... | {
"end_byte": 750,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/testing/grid-list-harness-filters.ts"
} |
components/src/material/grid-list/testing/grid-list-harness.ts_0_3768 | /**
* @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, parallel} from '@angular/cdk/testing';
import {ɵTileCoordinator as TileC... | {
"end_byte": 3768,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/testing/grid-list-harness.ts"
} |
components/src/material/grid-list/testing/grid-tile-harness.ts_0_3192 | /**
* @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 {ContentContainerComponentHarness, HarnessPredicate} from '@angular/cdk/testing';
import {GridTileHarnessFilt... | {
"end_byte": 3192,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/testing/grid-tile-harness.ts"
} |
components/src/material/grid-list/testing/public-api.ts_0_323 | /**
* @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 './grid-tile-harness';
export * from './grid-list-harness';
export * from './grid-list-harness-filters... | {
"end_byte": 323,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/testing/public-api.ts"
} |
components/src/material/grid-list/testing/BUILD.bazel_0_797 | 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": 797,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/testing/BUILD.bazel"
} |
components/src/material/grid-list/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/grid-list/testing/index.ts"
} |
components/src/material/grid-list/testing/grid-list-harness.spec.ts_0_7862 | 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 {NoopAnimationsModule} from '@angular/platform-browser/animations... | {
"end_byte": 7862,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/grid-list/testing/grid-list-harness.spec.ts"
} |
components/src/material/bottom-sheet/bottom-sheet-container.ts_0_3948 | /**
* @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 {AnimationEvent} from '@angular/animations';
import {CdkDialogContainer} from '@angular/cdk/dialog';
import {... | {
"end_byte": 3948,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-container.ts"
} |
components/src/material/bottom-sheet/bottom-sheet-config.ts_0_2652 | /**
* @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 {Direction} from '@angular/cdk/bidi';
import {ScrollStrategy} from '@angular/cdk/overlay';
import {InjectionT... | {
"end_byte": 2652,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-config.ts"
} |
components/src/material/bottom-sheet/bottom-sheet.spec.ts_0_1176 | import {Directionality} from '@angular/cdk/bidi';
import {A, ESCAPE} from '@angular/cdk/keycodes';
import {OverlayContainer, ScrollStrategy} from '@angular/cdk/overlay';
import {_supportsShadowDom} from '@angular/cdk/platform';
import {ViewportRuler} from '@angular/cdk/scrolling';
import {
createKeyboardEvent,
disp... | {
"end_byte": 1176,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.spec.ts"
} |
components/src/material/bottom-sheet/bottom-sheet.spec.ts_1178_10781 | describe('MatBottomSheet', () => {
let bottomSheet: MatBottomSheet;
let overlayContainerElement: HTMLElement;
let viewportRuler: ViewportRuler;
let testViewContainerRef: ViewContainerRef;
let viewContainerFixture: ComponentFixture<ComponentWithChildViewContainer>;
let mockLocation: SpyLocation;
beforeEa... | {
"end_byte": 10781,
"start_byte": 1178,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.spec.ts"
} |
components/src/material/bottom-sheet/bottom-sheet.spec.ts_10785_20134 | it('should be able to get dismissed through the service', fakeAsync(() => {
bottomSheet.open(PizzaMsg);
viewContainerFixture.detectChanges();
expect(overlayContainerElement.childElementCount).toBeGreaterThan(0);
bottomSheet.dismiss();
viewContainerFixture.detectChanges();
flush();
expect(o... | {
"end_byte": 20134,
"start_byte": 10785,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.spec.ts"
} |
components/src/material/bottom-sheet/bottom-sheet.spec.ts_20138_28343 | describe('focus management', () => {
// When testing focus, all of the elements must be in the DOM.
beforeEach(() => document.body.appendChild(overlayContainerElement));
afterEach(() => overlayContainerElement.remove());
it('should focus the bottom sheet container by default', fakeAsync(() => {
b... | {
"end_byte": 28343,
"start_byte": 20138,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.spec.ts"
} |
components/src/material/bottom-sheet/bottom-sheet.spec.ts_28345_34931 | describe('MatBottomSheet with parent MatBottomSheet', () => {
let parentBottomSheet: MatBottomSheet;
let childBottomSheet: MatBottomSheet;
let overlayContainerElement: HTMLElement;
let fixture: ComponentFixture<ComponentThatProvidesMatBottomSheet>;
beforeEach(fakeAsync(() => {
TestBed.configureTestingMod... | {
"end_byte": 34931,
"start_byte": 28345,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.spec.ts"
} |
components/src/material/bottom-sheet/public-api.ts_0_435 | /**
* @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 './bottom-sheet-module';
export * from './bottom-sheet';
export * from './bottom-sheet-config';
export... | {
"end_byte": 435,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/public-api.ts"
} |
components/src/material/bottom-sheet/bottom-sheet-ref.ts_0_5004 | /**
* @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 {ComponentRef} from '@angular/core';
import {DialogRef} from '@angular/cdk/dialog';
import {ESCAPE, hasModifi... | {
"end_byte": 5004,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-ref.ts"
} |
components/src/material/bottom-sheet/bottom-sheet-animations.ts_0_1270 | /**
* @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 {
animate,
state,
style,
transition,
trigger,
AnimationTriggerMetadata,
group,
query,
animat... | {
"end_byte": 1270,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-animations.ts"
} |
components/src/material/bottom-sheet/README.md_0_103 | Please see the official documentation at https://material.angular.io/components/component/bottom-sheet
| {
"end_byte": 103,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/README.md"
} |
components/src/material/bottom-sheet/bottom-sheet.md_0_4499 | The `MatBottomSheet` service can be used to open Material Design panels to the bottom of the screen.
These panels are intended primarily as an interaction on mobile devices where they can be used as an
alternative to dialogs and menus.
<!-- example(bottom-sheet-overview) -->
You can open a bottom sheet by calling the... | {
"end_byte": 4499,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.md"
} |
components/src/material/bottom-sheet/_bottom-sheet-theme.scss_0_2935 | @use 'sass:map';
@use '../core/typography/typography';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/style/sass-utils';
@use '../core/tokens/token-utils';
@use '../core/tokens/m2/mat/bottom-sheet' as tokens-mat-bottom-sheet;
@mixin base($theme) {
... | {
"end_byte": 2935,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/_bottom-sheet-theme.scss"
} |
components/src/material/bottom-sheet/BUILD.bazel_0_1959 | 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 = "bottom-sheet",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1959,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/BUILD.bazel"
} |
components/src/material/bottom-sheet/bottom-sheet-container.scss_0_2479 | @use '@angular/cdk';
@use '../core/style/elevation';
@use '../core/tokens/m2/mat/bottom-sheet' as tokens-mat-bottom-sheet;
@use '../core/tokens/token-utils';
// The bottom sheet minimum width on larger screen sizes is based
// on increments of the toolbar, according to the spec. See:
// https://material.io/guidelines/... | {
"end_byte": 2479,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-container.scss"
} |
components/src/material/bottom-sheet/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/bottom-sheet/index.ts"
} |
components/src/material/bottom-sheet/bottom-sheet-module.ts_0_735 | /**
* @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 {DialogModule} from '@angular/cdk/dialog';
import {PortalModule} from '@angular/cdk/portal';
import {NgModule... | {
"end_byte": 735,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-module.ts"
} |
components/src/material/bottom-sheet/bottom-sheet.ts_0_5062 | /**
* @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 {Dialog} from '@angular/cdk/dialog';
import {Overlay} from '@angular/cdk/overlay';
import {ComponentType} fro... | {
"end_byte": 5062,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet.ts"
} |
components/src/material/bottom-sheet/bottom-sheet-container.html_0_44 | <ng-template cdkPortalOutlet></ng-template>
| {
"end_byte": 44,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/bottom-sheet-container.html"
} |
components/src/material/bottom-sheet/testing/bottom-sheet-harness-filters.ts_0_335 | /**
* @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 BottomSheetHarnessFilters extends BaseHar... | {
"end_byte": 335,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/testing/bottom-sheet-harness-filters.ts"
} |
components/src/material/bottom-sheet/testing/bottom-sheet-harness.spec.ts_0_2269 | import {Component, TemplateRef, ViewChild, inject} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {
MatBottomSheet,
MatBottomSheetConfig,
MatBo... | {
"end_byte": 2269,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/testing/bottom-sheet-harness.spec.ts"
} |
components/src/material/bottom-sheet/testing/public-api.ts_0_292 | /**
* @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 './bottom-sheet-harness';
export * from './bottom-sheet-harness-filters';
| {
"end_byte": 292,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/testing/public-api.ts"
} |
components/src/material/bottom-sheet/testing/BUILD.bazel_0_795 | 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": 795,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/testing/BUILD.bazel"
} |
components/src/material/bottom-sheet/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/bottom-sheet/testing/index.ts"
} |
components/src/material/bottom-sheet/testing/bottom-sheet-harness.ts_0_1588 | /**
* @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 {ContentContainerComponentHarness, HarnessPredicate, TestKey} from '@angular/cdk/testing';
import {BottomShee... | {
"end_byte": 1588,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/bottom-sheet/testing/bottom-sheet-harness.ts"
} |
components/src/material/select/select.html_0_2083 | <div cdk-overlay-origin
class="mat-mdc-select-trigger"
(click)="open()"
#fallbackOverlayOrigin="cdkOverlayOrigin"
#trigger>
<div class="mat-mdc-select-value" [attr.id]="_valueId">
@if (empty) {
<span class="mat-mdc-select-placeholder mat-mdc-select-min-line">{{placeholder}}</span>
}... | {
"end_byte": 2083,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.html"
} |
components/src/material/select/select.spec.ts_0_3551 | import {LiveAnnouncer} from '@angular/cdk/a11y';
import {Directionality} from '@angular/cdk/bidi';
import {
A,
DOWN_ARROW,
END,
ENTER,
ESCAPE,
HOME,
LEFT_ARROW,
PAGE_DOWN,
PAGE_UP,
RIGHT_ARROW,
SPACE,
TAB,
UP_ARROW,
} from '@angular/cdk/keycodes';
import {OverlayContainer, OverlayModule} from ... | {
"end_byte": 3551,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_3557_14291 | describe('accessibility', () => {
describe('for select', () => {
let fixture: ComponentFixture<BasicSelect>;
let select: HTMLElement;
beforeEach(() => {
fixture = TestBed.createComponent(BasicSelect);
fixture.detectChanges();
select = fixture.debugElement.que... | {
"end_byte": 14291,
"start_byte": 3557,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_14301_24673 | it('should select first/last options via the HOME/END keys on a closed select', fakeAsync(() => {
const formControl = fixture.componentInstance.control;
const firstOption = fixture.componentInstance.options.first;
const lastOption = fixture.componentInstance.options.last;
expect... | {
"end_byte": 24673,
"start_byte": 14301,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_24683_35056 | it('should not open the select when pressing space while typing', fakeAsync(() => {
const selectInstance = fixture.componentInstance.select;
fixture.componentInstance.typeaheadDebounceInterval = DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL;
fixture.changeDetectorRef.markForCheck();
fixtu... | {
"end_byte": 35056,
"start_byte": 24683,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_35066_46011 | it('should toggle the next option when pressing shift + DOWN_ARROW on a multi-select', fakeAsync(() => {
fixture.destroy();
const multiFixture = TestBed.createComponent(MultiSelect);
const event = createKeyboardEvent('keydown', DOWN_ARROW, undefined, {shift: true});
multiFixtur... | {
"end_byte": 46011,
"start_byte": 35066,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_46019_56423 | describe('for select inside a modal', () => {
let fixture: ComponentFixture<SelectInsideAModal>;
beforeEach(() => {
fixture = TestBed.createComponent(SelectInsideAModal);
fixture.detectChanges();
});
it('should add the id of the select panel to the aria-owns of the ... | {
"end_byte": 56423,
"start_byte": 46019,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_56429_67246 | describe('overlay panel', () => {
let fixture: ComponentFixture<BasicSelect>;
let formField: HTMLElement;
let trigger: HTMLElement;
beforeEach(() => {
fixture = TestBed.createComponent(BasicSelect);
fixture.detectChanges();
formField = fixture.debugElement.query(By.css('... | {
"end_byte": 67246,
"start_byte": 56429,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_67254_68022 | it('should not consider itself as blurred if the trigger loses focus while the panel is still open', fakeAsync(() => {
const selectElement = fixture.nativeElement.querySelector('.mat-mdc-select');
const selectInstance = fixture.componentInstance.select;
dispatchFakeEvent(selectElement, 'focus')... | {
"end_byte": 68022,
"start_byte": 67254,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_68028_78644 | describe('selection logic', () => {
let fixture: ComponentFixture<BasicSelect>;
let trigger: HTMLElement;
let formField: HTMLElement;
let label: HTMLLabelElement;
beforeEach(() => {
fixture = TestBed.createComponent(BasicSelect);
fixture.detectChanges();
trigger = ... | {
"end_byte": 78644,
"start_byte": 68028,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_78652_81319 | it('should handle accessing `optionSelectionChanges` before the options are initialized', fakeAsync(() => {
fixture.destroy();
fixture = TestBed.createComponent(BasicSelect);
let spy = jasmine.createSpy('option selection spy');
let subscription: Subscription;
expect(fixture.com... | {
"end_byte": 81319,
"start_byte": 78652,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_81325_90946 | describe('forms integration', () => {
let fixture: ComponentFixture<BasicSelect>;
let trigger: HTMLElement;
beforeEach(() => {
fixture = TestBed.createComponent(BasicSelect);
fixture.detectChanges();
trigger = fixture.debugElement.query(By.css('.mat-mdc-select-trigger'))!.nati... | {
"end_byte": 90946,
"start_byte": 81325,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_90952_93085 | describe('disabled behavior', () => {
it('should disable itself when control is disabled programmatically', fakeAsync(() => {
const fixture = TestBed.createComponent(BasicSelect);
fixture.detectChanges();
fixture.componentInstance.control.disable();
fixture.detectChanges();
... | {
"end_byte": 93085,
"start_byte": 90952,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_93091_101887 | describe('keyboard scrolling', () => {
let fixture: ComponentFixture<BasicSelect>;
let host: HTMLElement;
let panel: HTMLElement;
beforeEach(fakeAsync(() => {
fixture = TestBed.createComponent(BasicSelect);
fixture.componentInstance.foods = [];
for (let i = 0; i < 30; ... | {
"end_byte": 101887,
"start_byte": 93091,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_101891_111733 | escribe('with a selectionChange event handler', () => {
beforeEach(waitForAsync(() => configureMatSelectTestingModule([SelectWithChangeEvent])));
let fixture: ComponentFixture<SelectWithChangeEvent>;
let trigger: HTMLElement;
beforeEach(() => {
fixture = TestBed.createComponent(SelectWithChangeE... | {
"end_byte": 111733,
"start_byte": 101891,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_111737_119630 | escribe('change events', () => {
beforeEach(waitForAsync(() => configureMatSelectTestingModule([SelectWithPlainTabindex])));
it('should complete the stateChanges stream on destroy', () => {
const fixture = TestBed.createComponent(SelectWithPlainTabindex);
fixture.detectChanges();
const debug... | {
"end_byte": 119630,
"start_byte": 111737,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_119634_129909 | escribe('inside of a form group', () => {
beforeEach(waitForAsync(() => configureMatSelectTestingModule([SelectInsideFormGroup])));
let fixture: ComponentFixture<SelectInsideFormGroup>;
let testComponent: SelectInsideFormGroup;
let select: HTMLElement;
beforeEach(() => {
fixture = TestBed.cr... | {
"end_byte": 129909,
"start_byte": 119634,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_129913_136246 | escribe('with custom trigger', () => {
beforeEach(waitForAsync(() => configureMatSelectTestingModule([SelectWithCustomTrigger])));
it('should allow the user to customize the label', () => {
const fixture = TestBed.createComponent(SelectWithCustomTrigger);
fixture.detectChanges();
fixture.com... | {
"end_byte": 136246,
"start_byte": 129913,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_136250_146893 | escribe('without Angular forms', () => {
beforeEach(waitForAsync(() =>
configureMatSelectTestingModule([
BasicSelectWithoutForms,
BasicSelectWithoutFormsPreselected,
BasicSelectWithoutFormsMultiple,
])));
it('should set the value when options are clicked', fakeAsync(() => {
... | {
"end_byte": 146893,
"start_byte": 136250,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_146899_152601 | t('should emit once when a reset value is selected', fakeAsync(() => {
const fixture = TestBed.createComponent(BasicSelectWithoutForms);
const instance = fixture.componentInstance;
const spy = jasmine.createSpy('change spy');
instance.selectedFood = 'sandwich-2';
instance.foods[0].value =... | {
"end_byte": 152601,
"start_byte": 146899,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_152605_161412 | escribe('with multiple selection', () => {
beforeEach(waitForAsync(() =>
configureMatSelectTestingModule([MultiSelect, MultiSelectWithLotsOfOptions])));
let fixture: ComponentFixture<MultiSelect>;
let testInstance: MultiSelect;
let trigger: HTMLElement;
beforeEach(() => {
fixture = Tes... | {
"end_byte": 161412,
"start_byte": 152605,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_161418_169905 | t('should select all options when pressing ctrl + a', () => {
const selectElement = fixture.nativeElement.querySelector('mat-select');
const options = fixture.componentInstance.options.toArray();
expect(testInstance.control.value).toBeFalsy();
expect(options.every(option => option.selected)).to... | {
"end_byte": 169905,
"start_byte": 161418,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_169909_177383 | escribe('page up/down with disabled options', () => {
let fixture: ComponentFixture<BasicSelectWithFirstAndLastOptionDisabled>;
let host: HTMLElement;
beforeEach(waitForAsync(() =>
configureMatSelectTestingModule([BasicSelectWithFirstAndLastOptionDisabled])));
beforeEach(fakeAsync(() => {
... | {
"end_byte": 177383,
"start_byte": 169909,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_177385_184302 | Component({
selector: 'comp-with-custom-select',
template: `<custom-select-accessor [formControl]="ctrl"></custom-select-accessor>`,
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: CustomSelectAccessor,
multi: true,
},
],
standalone: false,
})
class CompWithCustomSelect {
c... | {
"end_byte": 184302,
"start_byte": 177385,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_184304_191483 | Component({
selector: 'select-with-groups',
template: `
<mat-form-field>
<mat-select placeholder="Pokemon" [formControl]="control">
@for (group of pokemonTypes; track group) {
<mat-optgroup [label]="group.name" [disabled]="group.disabled">
@for (pokemon of group.pokemon; trac... | {
"end_byte": 191483,
"start_byte": 184304,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_191485_198417 | Component({
template: `
<mat-select placeholder="Food" [formControl]="control" [errorStateMatcher]="errorStateMatcher">
@for (food of foods; track food) {
<mat-option [value]="food.value">{{ food.viewValue }}</mat-option>
}
</mat-select>
`,
standalone: false,
})
class CustomErrorBehavi... | {
"end_byte": 198417,
"start_byte": 191485,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.spec.ts_198419_199431 | Component({
selector: 'select-inside-a-modal',
template: `
<button cdkOverlayOrigin #trigger="cdkOverlayOrigin">open dialog</button>
<ng-template cdkConnectedOverlay [cdkConnectedOverlayOpen]="true"
[cdkConnectedOverlayOrigin]="trigger">
<div role="dialog" [attr.aria-modal]="'true'" #modal>
... | {
"end_byte": 199431,
"start_byte": 198419,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.spec.ts"
} |
components/src/material/select/select.ts_0_6022 | /**
* @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 {
ActiveDescendantKeyManager,
addAriaReferencedId,
LiveAnnouncer,
removeAriaReferencedId,
} from '@an... | {
"end_byte": 6022,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.ts"
} |
components/src/material/select/select.ts_6023_14418 | {
protected _viewportRuler = inject(ViewportRuler);
protected _changeDetectorRef = inject(ChangeDetectorRef);
readonly _elementRef = inject(ElementRef);
private _dir = inject(Directionality, {optional: true});
protected _parentFormField = inject<MatFormField>(MAT_FORM_FIELD, {optional: true});
ngControl = i... | {
"end_byte": 14418,
"start_byte": 6023,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.ts"
} |
components/src/material/select/select.ts_14422_22851 | /** Whether to center the active option over the trigger. */
@Input({transform: booleanAttribute})
disableOptionCentering = this._defaultOptions?.disableOptionCentering ?? false;
/**
* Function to compare the option values with the selected values. The first argument
* is a value from an option. The second... | {
"end_byte": 22851,
"start_byte": 14422,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.ts"
} |
components/src/material/select/select.ts_22855_31125 | ngOnDestroy() {
this._keyManager?.destroy();
this._destroy.next();
this._destroy.complete();
this.stateChanges.complete();
this._clearFromModal();
}
/** Toggles the overlay panel open or closed. */
toggle(): void {
this.panelOpen ? this.close() : this.open();
}
/** Opens the overlay ... | {
"end_byte": 31125,
"start_byte": 22855,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.ts"
} |
components/src/material/select/select.ts_31128_38779 | private _handleOpenKeydown(event: KeyboardEvent): void {
const manager = this._keyManager;
const keyCode = event.keyCode;
const isArrowKey = keyCode === DOWN_ARROW || keyCode === UP_ARROW;
const isTyping = manager.isTyping();
if (isArrowKey && event.altKey) {
// Close the select on ALT + arro... | {
"end_byte": 38779,
"start_byte": 31128,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.ts"
} |
components/src/material/select/select.ts_38782_46786 | private _initKeyManager() {
this._keyManager = new ActiveDescendantKeyManager<MatOption>(this.options)
.withTypeAhead(this.typeaheadDebounceInterval)
.withVerticalOrientation()
.withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr')
.withHomeAndEnd()
.withPageUpDown()
.withAllo... | {
"end_byte": 46786,
"start_byte": 38782,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.ts"
} |
components/src/material/select/select.scss_0_7757 | @use 'sass:math';
@use '@angular/cdk';
@use '../core/style/vendor-prefixes';
@use '../core/style/variables';
@use '../core/tokens/token-utils';
@use '../core/tokens/m2/mat/select' as tokens-mat-select;
$mat-select-arrow-size: 5px !default;
$mat-select-arrow-margin: 4px !default;
$mat-select-panel-max-height: 275px !de... | {
"end_byte": 7757,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.scss"
} |
components/src/material/select/module.ts_0_922 | /**
* @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 {OverlayModule} from '@angular/cdk/overlay';
import {NgModule} from '@angular/core';
import {MatCommonModule,... | {
"end_byte": 922,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/module.ts"
} |
components/src/material/select/public-api.ts_0_631 | /**
* @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 './module';
export * from './select';
export * from './select-animations';
// Re-export these since t... | {
"end_byte": 631,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/public-api.ts"
} |
components/src/material/select/select.md_0_8873 | `<mat-select>` is a form control for selecting a value from a set of options, similar to the native
`<select>` element. You can read more about selects in the
[Material Design spec](https://material.io/design/components/menus.html). It is designed to work
inside of a [`<mat-form-field>`](https://material.angular.io/com... | {
"end_byte": 8873,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.md"
} |
components/src/material/select/select.md_8873_10026 | ### Troubleshooting
#### Error: Cannot change `multiple` mode of select after initialization
This error is thrown if you attempt to bind the `multiple` property on `<mat-select>` to a dynamic
value. (e.g. `[multiple]="isMultiple"` where the value of `isMultiple` changes over the course of
the component's lifetime). I... | {
"end_byte": 10026,
"start_byte": 8873,
"url": "https://github.com/angular/components/blob/main/src/material/select/select.md"
} |
components/src/material/select/README.md_0_97 | Please see the official documentation at https://material.angular.io/components/component/select
| {
"end_byte": 97,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/README.md"
} |
components/src/material/select/select-errors.ts_0_1350 | /**
* @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
*/
// Note that these have been copied over verbatim from
// `material/select` so that we don't have to expose them pub... | {
"end_byte": 1350,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select-errors.ts"
} |
components/src/material/select/BUILD.bazel_0_1975 | 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 = "select",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1975,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/BUILD.bazel"
} |
components/src/material/select/select-animations.ts_0_1739 | /**
* @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 {
animate,
animateChild,
AnimationTriggerMetadata,
query,
state,
style,
transition,
trigger,
... | {
"end_byte": 1739,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/select-animations.ts"
} |
components/src/material/select/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/select/index.ts"
} |
components/src/material/select/_select-theme.scss_0_4865 | @use '../core/tokens/m2/mat/select' as tokens-mat-select;
@use '../core/tokens/token-utils';
@use '../core/style/sass-utils';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/typography/typography';
/// Outputs base theme styles (styles not dependent ... | {
"end_byte": 4865,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/_select-theme.scss"
} |
components/src/material/select/testing/select-harness.spec.ts_0_9135 | import {Component, signal} from '@angular/core';
import {ComponentFixture, inject, TestBed} from '@angular/core/testing';
import {OverlayContainer} from '@angular/cdk/overlay';
import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {F... | {
"end_byte": 9135,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/testing/select-harness.spec.ts"
} |
components/src/material/select/testing/select-harness.spec.ts_9137_11773 | @Component({
template: `
<mat-form-field>
<mat-select [disabled]="isDisabled()" [required]="isRequired()" id="single-selection">
@for (state of states; track state) {
<mat-option [value]="state.code">{{ state.name }}</mat-option>
}
</mat-select>
</mat-form-field>
<mat... | {
"end_byte": 11773,
"start_byte": 9137,
"url": "https://github.com/angular/components/blob/main/src/material/select/testing/select-harness.spec.ts"
} |
components/src/material/select/testing/public-api.ts_0_280 | /**
* @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 './select-harness';
export * from './select-harness-filters';
| {
"end_byte": 280,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/testing/public-api.ts"
} |
components/src/material/select/testing/BUILD.bazel_0_926 | 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": 926,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/testing/BUILD.bazel"
} |
components/src/material/select/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/select/testing/index.ts"
} |
components/src/material/select/testing/select-harness.ts_0_5868 | /**
* @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, parallel} from '@angular/cdk/testing';
import {
MatOptionHa... | {
"end_byte": 5868,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/testing/select-harness.ts"
} |
components/src/material/select/testing/select-harness-filters.ts_0_512 | /**
* @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';
/** A set of criteria that can be used to filter a list of... | {
"end_byte": 512,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/select/testing/select-harness-filters.ts"
} |
components/src/material/icon/_icon-theme.scss_0_4278 | @use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/tokens/m2/mat/icon' as tokens-mat-icon;
@use '../core/tokens/token-utils';
@use '../core/style/sass-utils';
@mixin _palette-colors($theme, $palette-name) {
$color: inspection.get-theme-color($theme, $p... | {
"end_byte": 4278,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/_icon-theme.scss"
} |
components/src/material/icon/icon.scss_0_2030 | @use '../core/style/vendor-prefixes';
@use '../core/tokens/m2/mat/icon' as tokens-mat-icon;
@use '../core/tokens/token-utils';
// The width/height of the icon element.
$size: 24px !default;
// Note that here we target the `mat-icon` tag name with the `color`, instead of `.mat-icon` to
// avoid breaking any existing o... | {
"end_byte": 2030,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.scss"
} |
components/src/material/icon/public-api.ts_0_292 | /**
* @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 './icon-module';
export * from './icon';
export * from './icon-registry';
| {
"end_byte": 292,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/public-api.ts"
} |
components/src/material/icon/README.md_0_95 | Please see the official documentation at https://material.angular.io/components/component/icon
| {
"end_byte": 95,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/README.md"
} |
components/src/material/icon/icon.spec.ts_0_9018 | import {wrappedErrorMessage} from '@angular/cdk/testing/private';
import {
HttpClientTestingModule,
HttpTestingController,
TestRequest,
} from '@angular/common/http/testing';
import {Component, ErrorHandler, Provider, Type, ViewChild} from '@angular/core';
import {TestBed, fakeAsync, inject, tick, waitForAsync} f... | {
"end_byte": 9018,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_9022_11731 | describe('Ligature icons by attribute', () => {
it('should forward the fontIcon attribute', () => {
const fixture = TestBed.createComponent(IconWithLigatureByAttribute);
const testComponent = fixture.componentInstance;
const icon = fixture.debugElement.nativeElement.querySelector('mat-icon');
... | {
"end_byte": 11731,
"start_byte": 9022,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.