_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/material/tooltip/BUILD.bazel_0_1667 | 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 = "tooltip",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1667,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/BUILD.bazel"
} |
components/src/material/tooltip/tooltip.html_0_262 | <div
#tooltip
class="mdc-tooltip mat-mdc-tooltip"
[ngClass]="tooltipClass"
(animationend)="_handleAnimationEnd($event)"
[class.mdc-tooltip--multiline]="_isMultiline">
<div class="mat-mdc-tooltip-surface mdc-tooltip__surface">{{message}}</div>
</div>
| {
"end_byte": 262,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/tooltip.html"
} |
components/src/material/tooltip/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/tooltip/index.ts"
} |
components/src/material/tooltip/tooltip.md_0_4098 | The Angular Material tooltip provides a text label that is displayed when the user hovers
over or longpresses an element.
<!-- example(tooltip-overview) -->
### Positioning
The tooltip will be displayed below the element by default, but this can be configured using the
`matTooltipPosition` input.
The tooltip can be ... | {
"end_byte": 4098,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/tooltip.md"
} |
components/src/material/tooltip/testing/tooltip-harness-filters.ts_0_424 | /**
* @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": 424,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/testing/tooltip-harness-filters.ts"
} |
components/src/material/tooltip/testing/tooltip-harness.ts_0_2869 | /**
* @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": 2869,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/testing/tooltip-harness.ts"
} |
components/src/material/tooltip/testing/tooltip-harness.spec.ts_0_2984 | import {Component, provideZoneChangeDetection} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatTooltipModule} from '@angular/material/tooltip';
im... | {
"end_byte": 2984,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/testing/tooltip-harness.spec.ts"
} |
components/src/material/tooltip/testing/public-api.ts_0_282 | /**
* @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 './tooltip-harness';
export * from './tooltip-harness-filters';
| {
"end_byte": 282,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/testing/public-api.ts"
} |
components/src/material/tooltip/testing/BUILD.bazel_0_737 | 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",
],
)
filegroup(
... | {
"end_byte": 737,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tooltip/testing/BUILD.bazel"
} |
components/src/material/tooltip/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/tooltip/testing/index.ts"
} |
components/src/material/sidenav/sidenav-module.ts_0_938 | /**
* @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 {CdkScrollableModule} from '@angular/cdk/scrolling';
import {NgModule} from '@angular/core';
import {MatCommon... | {
"end_byte": 938,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/sidenav-module.ts"
} |
components/src/material/sidenav/sidenav-container.html_0_355 | @if (hasBackdrop) {
<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()"
[class.mat-drawer-shown]="_isShowingBackdrop()"></div>
}
<ng-content select="mat-sidenav"></ng-content>
<ng-content select="mat-sidenav-content">
</ng-content>
@if (!_content) {
<mat-sidenav-content>
<ng-content></ng-c... | {
"end_byte": 355,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/sidenav-container.html"
} |
components/src/material/sidenav/drawer-container.html_0_351 | @if (hasBackdrop) {
<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()"
[class.mat-drawer-shown]="_isShowingBackdrop()"></div>
}
<ng-content select="mat-drawer"></ng-content>
<ng-content select="mat-drawer-content">
</ng-content>
@if (!_content) {
<mat-drawer-content>
<ng-content></ng-cont... | {
"end_byte": 351,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer-container.html"
} |
components/src/material/sidenav/drawer-animations.ts_0_1399 | /**
* @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,
} from '@angular/animation... | {
"end_byte": 1399,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer-animations.ts"
} |
components/src/material/sidenav/public-api.ts_0_530 | /**
* @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 './sidenav-module';
export {
throwMatDuplicatedDrawerError,
MatDrawerToggleResult,
MAT_DRAWER_DE... | {
"end_byte": 530,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/public-api.ts"
} |
components/src/material/sidenav/_sidenav-theme.scss_0_2623 | @use 'sass:map';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/tokens/m2/mat/sidenav' as tokens-mat-sidenav;
@use '../core/tokens/token-utils';
@use '../core/style/sass-utils';
@mixin base($theme) {
@if inspection.get-theme-version($theme) == 1 {
... | {
"end_byte": 2623,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/_sidenav-theme.scss"
} |
components/src/material/sidenav/sidenav.spec.ts_0_4665 | import {Component, ViewChild} from '@angular/core';
import {TestBed, fakeAsync, tick, waitForAsync} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import {MatSidenav, MatSidenavContainer, MatSidenavModule} from './in... | {
"end_byte": 4665,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/sidenav.spec.ts"
} |
components/src/material/sidenav/README.md_0_98 | Please see the official documentation at https://material.angular.io/components/component/sidenav
| {
"end_byte": 98,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/README.md"
} |
components/src/material/sidenav/drawer.spec.ts_0_1287 | import {A11yModule} from '@angular/cdk/a11y';
import {Direction} from '@angular/cdk/bidi';
import {ESCAPE} from '@angular/cdk/keycodes';
import {CdkScrollable} from '@angular/cdk/scrolling';
import {
createKeyboardEvent,
dispatchEvent,
dispatchKeyboardEvent,
} from '@angular/cdk/testing/private';
import {Componen... | {
"end_byte": 1287,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/drawer.spec.ts_1291_11298 | describe('methods', () => {
it('should be able to open', fakeAsync(() => {
const fixture = TestBed.createComponent(BasicTestApp);
fixture.detectChanges();
const testComponent: BasicTestApp = fixture.debugElement.componentInstance;
const container = fixture.debugElement.query(By.css('mat-dra... | {
"end_byte": 11298,
"start_byte": 1291,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/drawer.spec.ts_11304_18693 | it('should restore focus on close if focus is on drawer', fakeAsync(() => {
const fixture = TestBed.createComponent(BasicTestApp);
fixture.detectChanges();
const drawer = fixture.debugElement.query(By.directive(MatDrawer))!.componentInstance;
const openButton = fixture.componentInstance.openBu... | {
"end_byte": 18693,
"start_byte": 11304,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/drawer.spec.ts_18697_25294 | describe('focus trapping behavior', () => {
let fixture: ComponentFixture<DrawerWithFocusableElements>;
let testComponent: DrawerWithFocusableElements;
let drawer: MatDrawer;
let firstFocusableElement: HTMLElement;
let lastFocusableElement: HTMLElement;
beforeEach(() => {
fixture = TestBe... | {
"end_byte": 25294,
"start_byte": 18697,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/drawer.spec.ts_25298_31073 | describe('DOM position', () => {
it('should project start drawer before the content', () => {
const fixture = TestBed.createComponent(BasicTestApp);
fixture.componentInstance.position = 'start';
fixture.changeDetectorRef.markForCheck();
fixture.detectChanges();
const allNodes = getDra... | {
"end_byte": 31073,
"start_byte": 25298,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/drawer.spec.ts_31075_41740 | describe('MatDrawerContainer', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
MatSidenavModule,
A11yModule,
NoopAnimationsModule,
DrawerContainerTwoDrawerTestApp,
DrawerDelayed,
DrawerSetToOpenedTrue,
DrawerContaine... | {
"end_byte": 41740,
"start_byte": 31075,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/drawer.spec.ts_41742_49158 | /** Test component that contains an MatDrawerContainer but no MatDrawer. */
@Component({
template: `<mat-drawer-container></mat-drawer-container>`,
standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerContainerNoDrawerTestApp {}
/** Test component that contains an MatDrawerContainer and 2 Ma... | {
"end_byte": 49158,
"start_byte": 41742,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.spec.ts"
} |
components/src/material/sidenav/sidenav.md_0_8353 | Angular Material provides two sets of components designed to add collapsible side content (often
navigation, though it can be any content) alongside some primary content. These are the sidenav and
drawer components.
The sidenav components are designed to add side content to a fullscreen app. To set up a sidenav we
use... | {
"end_byte": 8353,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/sidenav.md"
} |
components/src/material/sidenav/sidenav.md_8353_9797 | ### Accessibility
The `<mat-sidenav>` and `<mat-sidenav-content>` should each be given an appropriate `role` attribute
depending on the context in which they are used.
For example, a `<mat-sidenav>` that contains links
to other pages might be marked `role="navigation"`, whereas one that contains a table of
contents a... | {
"end_byte": 9797,
"start_byte": 8353,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/sidenav.md"
} |
components/src/material/sidenav/BUILD.bazel_0_1788 | 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 = "sidenav",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1788,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/BUILD.bazel"
} |
components/src/material/sidenav/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/sidenav/index.ts"
} |
components/src/material/sidenav/drawer.ts_0_4545 | /**
* @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 {
FocusMonitor,
FocusOrigin,
FocusTrap,
FocusTrapF... | {
"end_byte": 4545,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.ts"
} |
components/src/material/sidenav/drawer.ts_4546_12994 | class MatDrawer implements AfterViewInit, AfterContentChecked, OnDestroy {
private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
private _focusTrapFactory = inject(FocusTrapFactory);
private _focusMonitor = inject(FocusMonitor);
private _platform = inject(Platform);
private _ngZone = inject(NgZon... | {
"end_byte": 12994,
"start_byte": 4546,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.ts"
} |
components/src/material/sidenav/drawer.ts_12998_20956 | /**
* Focuses the first element that matches the given selector within the focus trap.
* @param selector The CSS selector for the element to set focus to.
*/
private _focusByCssSelector(selector: string, options?: FocusOptions) {
let elementToFocus = this._elementRef.nativeElement.querySelector(
se... | {
"end_byte": 20956,
"start_byte": 12998,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.ts"
} |
components/src/material/sidenav/drawer.ts_20957_21474 | @Component({
selector: 'mat-drawer-container',
exportAs: 'matDrawerContainer',
templateUrl: 'drawer-container.html',
styleUrl: 'drawer.css',
host: {
'class': 'mat-drawer-container',
'[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride',
},
changeDetection: ChangeDetectionStrategy.O... | {
"end_byte": 21474,
"start_byte": 20957,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.ts"
} |
components/src/material/sidenav/drawer.ts_21475_29607 | class MatDrawerContainer implements AfterContentInit, DoCheck, OnDestroy {
private _dir = inject(Directionality, {optional: true});
private _element = inject<ElementRef<HTMLElement>>(ElementRef);
private _ngZone = inject(NgZone);
private _changeDetectorRef = inject(ChangeDetectorRef);
private _animationMode =... | {
"end_byte": 29607,
"start_byte": 21475,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.ts"
} |
components/src/material/sidenav/drawer.ts_29611_34688 | ngDoCheck() {
// If users opted into autosizing, do a check every change detection cycle.
if (this._autosize && this._isPushed()) {
// Run outside the NgZone, otherwise the debouncer will throw us into an infinite loop.
this._ngZone.runOutsideAngular(() => this._doCheckSubject.next());
}
}
... | {
"end_byte": 34688,
"start_byte": 29611,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.ts"
} |
components/src/material/sidenav/drawer.scss_0_8343 | @use '@angular/cdk';
@use '../core/tokens/m2/mat/sidenav' as tokens-mat-sidenav;
@use '../core/tokens/token-utils';
@use '../core/style/variables';
@use '../core/style/layout-common';
$drawer-content-z-index: 1;
$drawer-side-drawer-z-index: 2;
$drawer-backdrop-z-index: 3;
$drawer-over-drawer-z-index: 4;
// Mixin tha... | {
"end_byte": 8343,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.scss"
} |
components/src/material/sidenav/drawer.html_0_99 | <div class="mat-drawer-inner-container" cdkScrollable #content>
<ng-content></ng-content>
</div>
| {
"end_byte": 99,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/drawer.html"
} |
components/src/material/sidenav/sidenav.ts_0_4295 | /**
* @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,
ContentChild,
ContentChildren,
Input,
ViewEncapsulation,
... | {
"end_byte": 4295,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/sidenav.ts"
} |
components/src/material/sidenav/testing/sidenav-harness.spec.ts_0_7533 | 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 {MatSidenavModule} from '@angular/material/sidenav';
import {Noop... | {
"end_byte": 7533,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/sidenav-harness.spec.ts"
} |
components/src/material/sidenav/testing/drawer-harness.ts_0_2022 | /**
* @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 {DrawerHarnessFilter... | {
"end_byte": 2022,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/drawer-harness.ts"
} |
components/src/material/sidenav/testing/public-api.ts_0_506 | /**
* @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 {MatDrawerHarness} from './drawer-harness';
export * from './drawer-container-harness';
export * from './draw... | {
"end_byte": 506,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/public-api.ts"
} |
components/src/material/sidenav/testing/sidenav-harness.ts_0_1374 | /**
* @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 {HarnessPredicate} from '@angular/cdk/testing';
import {MatDrawerHarnessBase} from './drawer-harness';
import... | {
"end_byte": 1374,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/sidenav-harness.ts"
} |
components/src/material/sidenav/testing/sidenav-content-harness.ts_0_1147 | /**
* @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 {DrawerContentHarnes... | {
"end_byte": 1147,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/sidenav-content-harness.ts"
} |
components/src/material/sidenav/testing/drawer-content-harness.ts_0_1139 | /**
* @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 {DrawerContentHarnes... | {
"end_byte": 1139,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/drawer-content-harness.ts"
} |
components/src/material/sidenav/testing/drawer-container-harness.ts_0_1769 | /**
* @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 {DrawerContainerHarn... | {
"end_byte": 1769,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/drawer-container-harness.ts"
} |
components/src/material/sidenav/testing/BUILD.bazel_0_752 | 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/coercion",
"//src/cdk/test... | {
"end_byte": 752,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/BUILD.bazel"
} |
components/src/material/sidenav/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/sidenav/testing/index.ts"
} |
components/src/material/sidenav/testing/drawer-harness-filters.ts_0_867 | /**
* @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": 867,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/drawer-harness-filters.ts"
} |
components/src/material/sidenav/testing/sidenav-container-harness.ts_0_1786 | /**
* @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 {DrawerContainerHarn... | {
"end_byte": 1786,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/sidenav/testing/sidenav-container-harness.ts"
} |
components/src/material/radio/radio.md_0_2494 | `<mat-radio-button>` provides the same functionality as a native `<input type="radio">` enhanced with
Material Design styling and animations.
<!-- example(radio-overview) -->
All radio-buttons with the same `name` comprise a set from which only one may be selected at a time.
### Radio-button label
The radio-button l... | {
"end_byte": 2494,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.md"
} |
components/src/material/radio/_radio-common.scss_0_7902 | @use '../core/tokens/m2/mdc/radio' as tokens-mdc-radio;
@use '../core/tokens/token-utils';
$_icon-size: 20px;
@function _enter-transition($name) {
@return $name 90ms cubic-bezier(0, 0, 0.2, 1);
}
@function _exit-transition($name) {
@return $name 90ms cubic-bezier(0.4, 0, 0.6, 1);
}
// Structural styles for a ra... | {
"end_byte": 7902,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/_radio-common.scss"
} |
components/src/material/radio/module.ts_0_558 | /**
* @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 {MatCommonModule, MatRippleModule} from '@angular/material/core';
imp... | {
"end_byte": 558,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/module.ts"
} |
components/src/material/radio/radio.ts_0_2988 | /**
* @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, FocusOrigin} from '@angular/cdk/a11y';
import {UniqueSelectionDispatcher} from '@angular/cdk/c... | {
"end_byte": 2988,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.ts"
} |
components/src/material/radio/radio.ts_2989_11284 | @Directive({
selector: 'mat-radio-group',
exportAs: 'matRadioGroup',
providers: [
MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
{provide: MAT_RADIO_GROUP, useExisting: MatRadioGroup},
],
host: {
'role': 'radiogroup',
'class': 'mat-mdc-radio-group',
},
})
export class MatRadioGroup implements After... | {
"end_byte": 11284,
"start_byte": 2989,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.ts"
} |
components/src/material/radio/radio.ts_11286_12508 | @Component({
selector: 'mat-radio-button',
templateUrl: 'radio.html',
styleUrl: 'radio.css',
host: {
'class': 'mat-mdc-radio-button',
'[attr.id]': 'id',
'[class.mat-primary]': 'color === "primary"',
'[class.mat-accent]': 'color === "accent"',
'[class.mat-warn]': 'color === "warn"',
'[cla... | {
"end_byte": 12508,
"start_byte": 11286,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.ts"
} |
components/src/material/radio/radio.ts_12509_20829 | class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestroy {
protected _elementRef = inject(ElementRef);
private _changeDetector = inject(ChangeDetectorRef);
private _focusMonitor = inject(FocusMonitor);
private _radioDispatcher = inject(UniqueSelectionDispatcher);
private _defaultOptions = inj... | {
"end_byte": 20829,
"start_byte": 12509,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.ts"
} |
components/src/material/radio/radio.ts_20833_26283 | ngAfterViewInit() {
this._updateTabIndex();
this._focusMonitor.monitor(this._elementRef, true).subscribe(focusOrigin => {
if (!focusOrigin && this.radioGroup) {
this.radioGroup._touch();
}
});
// We bind this outside of the zone, because:
// 1. Its logic is completely DOM-relate... | {
"end_byte": 26283,
"start_byte": 20833,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.ts"
} |
components/src/material/radio/radio.html_0_1390 | <div mat-internal-form-field [labelPosition]="labelPosition" #formField>
<div class="mdc-radio" [class.mdc-radio--disabled]="disabled">
<!-- Render this element first so the input is on top. -->
<div class="mat-mdc-radio-touch-target" (click)="_onTouchTargetClick($event)"></div>
<input #input class="mdc-r... | {
"end_byte": 1390,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.html"
} |
components/src/material/radio/public-api.ts_0_255 | /**
* @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 './radio';
export * from './module';
| {
"end_byte": 255,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/public-api.ts"
} |
components/src/material/radio/radio.scss_0_3352 | @use '../core/tokens/m2/mat/radio' as tokens-mat-radio;
@use '../core/tokens/m2/mdc/radio' as tokens-mdc-radio;
@use '../core/tokens/token-utils';
@use '../core/style/layout-common';
@use './radio-common';
.mat-mdc-radio-button {
-webkit-tap-highlight-color: transparent;
@include radio-common.radio-structure(true... | {
"end_byte": 3352,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.scss"
} |
components/src/material/radio/README.md_0_96 | Please see the official documentation at https://material.angular.io/components/component/radio
| {
"end_byte": 96,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/README.md"
} |
components/src/material/radio/BUILD.bazel_0_1477 | 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 = "radio",
srcs = glob(
["**/*.ts"],
e... | {
"end_byte": 1477,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/BUILD.bazel"
} |
components/src/material/radio/_radio-theme.scss_0_6108 | @use '../core/style/sass-utils';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/tokens/token-utils';
@use '../core/typography/typography';
@use '../core/tokens/m2/mdc/radio' as tokens-mdc-radio;
@use '../core/tokens/m2/mat/radio' as tokens-mat-radio;
... | {
"end_byte": 6108,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/_radio-theme.scss"
} |
components/src/material/radio/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/radio/index.ts"
} |
components/src/material/radio/radio.spec.ts_0_1135 | import {dispatchFakeEvent} from '@angular/cdk/testing/private';
import {Component, DebugElement, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, tick, waitForAsync} from '@angular/core/testing';
import {FormControl, FormsModule, NgModel, ReactiveFormsModule} from '@angular/forms';
import ... | {
"end_byte": 1135,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/radio.spec.ts_1139_10623 | describe('inside of a group', () => {
let fixture: ComponentFixture<RadiosInsideRadioGroup>;
let groupDebugElement: DebugElement;
let radioDebugElements: DebugElement[];
let radioNativeElements: HTMLElement[];
let radioLabelElements: HTMLLabelElement[];
let radioInputElements: HTMLInputElement[]... | {
"end_byte": 10623,
"start_byte": 1139,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/radio.spec.ts_10629_18589 | it('should not show ripples if matRippleDisabled input is set', () => {
testComponent.disableRipple = true;
fixture.changeDetectorRef.markForCheck();
fixture.detectChanges();
for (const radioFormField of radioFormFieldElements) {
dispatchFakeEvent(radioFormField, 'mousedown');
d... | {
"end_byte": 18589,
"start_byte": 10629,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/radio.spec.ts_18593_26986 | describe('group with ngModel', () => {
let fixture: ComponentFixture<RadioGroupWithNgModel>;
let groupDebugElement: DebugElement;
let radioDebugElements: DebugElement[];
let innerRadios: DebugElement[];
let radioLabelElements: HTMLLabelElement[];
let groupInstance: MatRadioGroup;
let radioIn... | {
"end_byte": 26986,
"start_byte": 18593,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/radio.spec.ts_26990_34239 | describe('as standalone', () => {
let fixture: ComponentFixture<StandaloneRadioButtons>;
let radioDebugElements: DebugElement[];
let seasonRadioInstances: MatRadioButton[];
let weatherRadioInstances: MatRadioButton[];
let fruitRadioInstances: MatRadioButton[];
let fruitRadioNativeElements: HTMLE... | {
"end_byte": 34239,
"start_byte": 26990,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/radio.spec.ts_34243_42837 | describe('with tabindex', () => {
let fixture: ComponentFixture<FocusableRadioButton>;
beforeEach(() => {
fixture = TestBed.createComponent(FocusableRadioButton);
fixture.detectChanges();
});
it('should forward focus to native input', () => {
let radioButtonEl = fixture.debugElement.... | {
"end_byte": 42837,
"start_byte": 34243,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/radio.spec.ts_42839_47312 | @Component({
template: `
<mat-radio-group [name]="groupName" [(ngModel)]="modelValue" (change)="lastEvent = $event">
@for (option of options; track option) {
<mat-radio-button [value]="option.value">{{option.label}}</mat-radio-button>
}
</mat-radio-group>
`,
standalone: true,
imports: [MatRadi... | {
"end_byte": 47312,
"start_byte": 42839,
"url": "https://github.com/angular/components/blob/main/src/material/radio/radio.spec.ts"
} |
components/src/material/radio/testing/radio-harness-filters.ts_0_950 | /**
* @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": 950,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/radio-harness-filters.ts"
} |
components/src/material/radio/testing/public-api.ts_0_278 | /**
* @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 './radio-harness';
export * from './radio-harness-filters';
| {
"end_byte": 278,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/public-api.ts"
} |
components/src/material/radio/testing/radio-harness.ts_0_6159 | /**
* @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 {coerceBooleanProperty} from '@angular/cdk/coercion';
import {
ComponentHarness,
ComponentHarnessConstruc... | {
"end_byte": 6159,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/radio-harness.ts"
} |
components/src/material/radio/testing/radio-harness.ts_6160_9545 | export class MatRadioButtonHarness extends ComponentHarness {
/** The selector for the host element of a `MatRadioButton` instance. */
static hostSelector = '.mat-mdc-radio-button';
/**
* Gets a `HarnessPredicate` that can be used to search for a radio button with specific
* attributes.
* @param options... | {
"end_byte": 9545,
"start_byte": 6160,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/radio-harness.ts"
} |
components/src/material/radio/testing/radio-harness.spec.ts_0_5978 | 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 {ReactiveFormsModule} from '@angular/forms';
import {MatRadioModule} from '@angular... | {
"end_byte": 5978,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/radio-harness.spec.ts"
} |
components/src/material/radio/testing/radio-harness.spec.ts_5982_12961 | describe('MatRadioButtonHarness', () => {
it('should load all radio-button harnesses', async () => {
const radios = await loader.getAllHarnesses(MatRadioButtonHarness);
expect(radios.length).toBe(9);
});
it('should load radio-button with exact label', async () => {
const radios = await lo... | {
"end_byte": 12961,
"start_byte": 5982,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/radio-harness.spec.ts"
} |
components/src/material/radio/testing/BUILD.bazel_0_834 | 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/coercion",
"//src/cdk/test... | {
"end_byte": 834,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/radio/testing/BUILD.bazel"
} |
components/src/material/radio/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/radio/testing/index.ts"
} |
components/src/material/card/card-title-group.html_0_520 | <div>
<ng-content
select="mat-card-title, mat-card-subtitle,
[mat-card-title], [mat-card-subtitle],
[matCardTitle], [matCardSubtitle]"></ng-content>
</div>
<ng-content select="[mat-card-image], [matCardImage],
[mat-card-sm-image], [matCardImageSmall],
[mat-car... | {
"end_byte": 520,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card-title-group.html"
} |
components/src/material/card/card.md_0_4780 | `<mat-card>` is a content container for text, photos, and actions in the context of a single subject.
<!-- example(card-overview) -->
### Basic card sections
The most basic card needs only an `<mat-card>` element with some content. However, Angular Material
provides a number of preset sections that you can use insid... | {
"end_byte": 4780,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card.md"
} |
components/src/material/card/_card-theme.scss_0_5041 | @use 'sass:map';
@use '../core/style/sass-utils';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/typography/typography';
@use '../core/tokens/token-utils';
@use '../core/tokens/m2/mat/card' as tokens-mat-card;
@use '../core/tokens/m2/mdc/elevated-card... | {
"end_byte": 5041,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/_card-theme.scss"
} |
components/src/material/card/module.ts_0_983 | /**
* @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 {MatCommonModule} from '@angular/material/core';
import {
MatCard,
... | {
"end_byte": 983,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/module.ts"
} |
components/src/material/card/public-api.ts_0_254 | /**
* @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 './card';
export * from './module';
| {
"end_byte": 254,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/public-api.ts"
} |
components/src/material/card/card.scss_0_2869 | @use '../core/tokens/token-utils';
@use '../core/tokens/m2/mat/card' as tokens-mat-card;
@use '../core/tokens/m2/mdc/elevated-card' as tokens-mdc-elevated-card;
@use '../core/tokens/m2/mdc/outlined-card' as tokens-mdc-outlined-card;
// Size of the `mat-card-header` region custom to Angular Material.
$mat-card-header-s... | {
"end_byte": 2869,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card.scss"
} |
components/src/material/card/card.scss_2869_9249 | .use-tokens(tokens-mat-card.$prefix, tokens-mat-card.get-token-slots()) {
.mat-mdc-card-title {
@include token-utils.create-token-slot(font-family, title-text-font);
@include token-utils.create-token-slot(line-height, title-text-line-height);
@include token-utils.create-token-slot(font-size, title-text-si... | {
"end_byte": 9249,
"start_byte": 2869,
"url": "https://github.com/angular/components/blob/main/src/material/card/card.scss"
} |
components/src/material/card/card.html_0_26 | <ng-content></ng-content>
| {
"end_byte": 26,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card.html"
} |
components/src/material/card/migration.md_0_124 | # Migration notes for MDC-based `MatCard`
* Previous `MatCard` always set 16px padding, which the MDC card sets no padding.
| {
"end_byte": 124,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/migration.md"
} |
components/src/material/card/card.ts_0_8206 | /**
* @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,
Directive,
InjectionToken,
Input,
ViewEncapsulation,
inje... | {
"end_byte": 8206,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card.ts"
} |
components/src/material/card/README.md_0_95 | Please see the official documentation at https://material.angular.io/components/component/card
| {
"end_byte": 95,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/README.md"
} |
components/src/material/card/card-header.html_0_305 | <ng-content select="[mat-card-avatar], [matCardAvatar]"></ng-content>
<div class="mat-mdc-card-header-text">
<ng-content
select="mat-card-title, mat-card-subtitle,
[mat-card-title], [mat-card-subtitle],
[matCardTitle], [matCardSubtitle]"></ng-content>
</div>
<ng-content></ng-content>
| {
"end_byte": 305,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card-header.html"
} |
components/src/material/card/BUILD.bazel_0_1160 | 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 = "card",
srcs = glob(
["**/*.ts"],
ex... | {
"end_byte": 1160,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/BUILD.bazel"
} |
components/src/material/card/card.spec.ts_0_1993 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {Component, Provider, Type, signal} from '@angular/core';
import {MatCardModule} from './module';
import {MatCard, MAT_CARD_CONFIG, MatCardAppearance} from './card';
describe('MatCard', () => {
function createComponent<T>(component: Type<T>, pro... | {
"end_byte": 1993,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/card.spec.ts"
} |
components/src/material/card/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/card/index.ts"
} |
components/src/material/card/testing/card-harness.spec.ts_0_5414 | import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {ComponentHarness, HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatCardModule} from '@angular/material/card';
import {... | {
"end_byte": 5414,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/testing/card-harness.spec.ts"
} |
components/src/material/card/testing/card-harness-filters.ts_0_702 | /**
* @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": 702,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/testing/card-harness-filters.ts"
} |
components/src/material/card/testing/public-api.ts_0_276 | /**
* @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 './card-harness';
export * from './card-harness-filters';
| {
"end_byte": 276,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/testing/public-api.ts"
} |
components/src/material/card/testing/card-harness.ts_0_2347 | /**
* @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,
} from '@angular/cdk... | {
"end_byte": 2347,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/testing/card-harness.ts"
} |
components/src/material/card/testing/BUILD.bazel_0_719 | 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",
],
)
filegroup(
... | {
"end_byte": 719,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/card/testing/BUILD.bazel"
} |
components/src/material/card/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/card/testing/index.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.