_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/material/icon/icon.spec.ts_11735_19679 | describe('Icons from URLs', () => {
it('should register icon URLs by name', fakeAsync(() => {
iconRegistry.addSvgIcon('fluffy', trustUrl('cat.svg'));
iconRegistry.addSvgIcon('fido', trustUrl('dog.svg'));
iconRegistry.addSvgIcon('felix', trustUrl('auth-cat.svg'), {withCredentials: true});
co... | {
"end_byte": 19679,
"start_byte": 11735,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_19685_28504 | it('should handle unescape characters in icon names', () => {
iconRegistry.addSvgIconSetInNamespace('farm', trustUrl('farm-set-4.svg'));
const fixture = TestBed.createComponent(IconFromSvgName);
const testComponent = fixture.componentInstance;
const matIconElement = fixture.debugElement.nativeE... | {
"end_byte": 28504,
"start_byte": 19685,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_28510_32953 | it('should not throw when toggling an icon that has a binding in IE11', () => {
iconRegistry.addSvgIcon('fluffy', trustUrl('cat.svg'));
const fixture = TestBed.createComponent(IconWithBindingAndNgIf);
fixture.detectChanges();
http.expectOne('cat.svg').flush(FAKE_SVGS.cat);
expect(() => ... | {
"end_byte": 32953,
"start_byte": 28510,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_32957_41066 | describe('Icons from HTML string', () => {
it('should register icon HTML strings by name', fakeAsync(() => {
iconRegistry.addSvgIconLiteral('fluffy', trustHtml(FAKE_SVGS.cat));
iconRegistry.addSvgIconLiteral('fido', trustHtml(FAKE_SVGS.dog));
const fixture = TestBed.createComponent(IconFromSvgNam... | {
"end_byte": 41066,
"start_byte": 32957,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_41072_47998 | it('should prepend the current path to attributes with `url()` references', fakeAsync(() => {
iconRegistry.addSvgIconLiteral(
'fido',
trustHtml(`
<svg>
<filter id="blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="5" />
</filter>
<circle cx=... | {
"end_byte": 47998,
"start_byte": 41072,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_48002_55029 | describe('Icons resolved through a resolver function', () => {
it('should resolve icons through a resolver function', fakeAsync(() => {
iconRegistry.addSvgIconResolver(name => {
if (name === 'fluffy') {
return trustUrl('cat.svg');
} else if (name === 'fido') {
return trustU... | {
"end_byte": 55029,
"start_byte": 48002,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/icon.spec.ts_55031_60331 | describe('MatIcon with default options', () => {
it('should be able to configure color globally', fakeAsync(() => {
const fixture = createComponent(IconWithLigature, [
{provide: MAT_ICON_DEFAULT_OPTIONS, useValue: {color: 'accent'}},
]);
const iconElement = fixture.debugElement.nativeElement.querySe... | {
"end_byte": 60331,
"start_byte": 55031,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.spec.ts"
} |
components/src/material/icon/fake-svgs.ts_0_1636 | /**
* @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
*/
/**
* Fake URLs and associated SVG documents used by tests.
* The ID attribute is used to load the icons, the name... | {
"end_byte": 1636,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/fake-svgs.ts"
} |
components/src/material/icon/icon.md_0_7062 | `mat-icon` makes it easier to use _vector-based_ icons in your app. This directive supports both
icon fonts and SVG icons, but not bitmap-based formats (png, jpg, etc.).
<!-- example(icon-overview) -->
### Registering icons
`MatIconRegistry` is an injectable service that allows you to associate icon names with SVG ... | {
"end_byte": 7062,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.md"
} |
components/src/material/icon/trusted-types.ts_0_2355 | /**
* @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
*/
/**
* @fileoverview
* A module to facilitate use of a Trusted Types policy internally within
* Angular Material. ... | {
"end_byte": 2355,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/trusted-types.ts"
} |
components/src/material/icon/BUILD.bazel_0_1432 | 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 = "icon",
srcs = glob(
["**/*.ts"],
ex... | {
"end_byte": 1432,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/BUILD.bazel"
} |
components/src/material/icon/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/icon/index.ts"
} |
components/src/material/icon/icon-registry.ts_0_3800 | /**
* @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 {DOCUMENT} from '@angular/common';
import {HttpClient, HttpErrorResponse} from '@angular/common/http';
import... | {
"end_byte": 3800,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon-registry.ts"
} |
components/src/material/icon/icon-registry.ts_3801_11934 | @Injectable({providedIn: 'root'})
export class MatIconRegistry implements OnDestroy {
private _document: Document;
/**
* URLs and cached SVG elements for individual icons. Keys are of the format "[namespace]:[icon]".
*/
private _svgIconConfigs = new Map<string, SvgIconConfig>();
/**
* SvgIconConfig o... | {
"end_byte": 11934,
"start_byte": 3801,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon-registry.ts"
} |
components/src/material/icon/icon-registry.ts_11937_19197 | getSvgIconFromUrl(safeUrl: SafeResourceUrl): Observable<SVGElement> {
const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);
if (!url) {
throw getMatIconFailedToSanitizeUrlError(safeUrl);
}
const cachedIcon = this._cachedIconsByUrl.get(url);
if (cachedIcon) {
ret... | {
"end_byte": 19197,
"start_byte": 11937,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon-registry.ts"
} |
components/src/material/icon/icon-registry.ts_19200_27475 | private _extractSvgIconFromSet(
iconSet: SVGElement,
iconName: string,
options?: IconOptions,
): SVGElement | null {
// Use the `id="iconName"` syntax in order to escape special
// characters in the ID (versus using the #iconName syntax).
const iconSource = iconSet.querySelector(`[id="${iconNa... | {
"end_byte": 27475,
"start_byte": 19200,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon-registry.ts"
} |
components/src/material/icon/icon-module.ts_0_456 | /**
* @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 {MatIcon} fro... | {
"end_byte": 456,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon-module.ts"
} |
components/src/material/icon/icon.ts_0_5434 | /**
* @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 {DOCUMENT} from '@angular/common';
import {
AfterViewChecked,
booleanAttribute,
ChangeDetectionStrategy... | {
"end_byte": 5434,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.ts"
} |
components/src/material/icon/icon.ts_5435_13695 | class MatIcon implements OnInit, AfterViewChecked, OnDestroy {
readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
private _iconRegistry = inject(MatIconRegistry);
private _location = inject<MatIconLocation>(MAT_ICON_LOCATION);
private readonly _errorHandler = inject(ErrorHandler);
private _de... | {
"end_byte": 13695,
"start_byte": 5435,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.ts"
} |
components/src/material/icon/icon.ts_13699_16120 | /**
* Prepends the current path to all elements that have an attribute pointing to a `FuncIRI`
* reference. This is required because WebKit browsers require references to be prefixed with
* the current path, if the page has a `base` tag.
*/
private _prependPathToReferences(path: string) {
const elemen... | {
"end_byte": 16120,
"start_byte": 13699,
"url": "https://github.com/angular/components/blob/main/src/material/icon/icon.ts"
} |
components/src/material/icon/testing/fake-icon-registry.ts_0_2402 | /**
* @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 {Injectable, NgModule, OnDestroy} from '@angular/core';
import {MatIconRegistry} from '@angular/material/icon... | {
"end_byte": 2402,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/testing/fake-icon-registry.ts"
} |
components/src/material/icon/testing/public-api.ts_0_314 | /**
* @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-harness';
export * from './icon-harness-filters';
export * from './fake-icon-registry';
| {
"end_byte": 314,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/testing/public-api.ts"
} |
components/src/material/icon/testing/icon-harness-filters.ts_0_725 | /**
* @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';
/** Possible types of icons. */
export enum IconType {
S... | {
"end_byte": 725,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/testing/icon-harness-filters.ts"
} |
components/src/material/icon/testing/icon-harness.ts_0_2905 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing';
import {IconHarnessFilters, IconType} from ... | {
"end_byte": 2905,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/testing/icon-harness.ts"
} |
components/src/material/icon/testing/icon-harness.spec.ts_0_4441 | import {Component} 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 {MatIconModule, MatIconRegistry} from '@angular/material/icon';
import {D... | {
"end_byte": 4441,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/testing/icon-harness.spec.ts"
} |
components/src/material/icon/testing/BUILD.bazel_0_864 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "testing",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//src/cdk/testing",
"//src/material/ic... | {
"end_byte": 864,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/icon/testing/BUILD.bazel"
} |
components/src/material/icon/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/icon/testing/index.ts"
} |
components/src/material/snack-bar/snack-bar.ts_0_1402 | /**
* @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 {LiveAnnouncer} from '@angular/cdk/a11y';
import {BreakpointObserver, Breakpoints} from '@angular/cdk/layout'... | {
"end_byte": 1402,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.ts"
} |
components/src/material/snack-bar/snack-bar.ts_1403_9374 | @Injectable({providedIn: 'root'})
export class MatSnackBar implements OnDestroy {
private _overlay = inject(Overlay);
private _live = inject(LiveAnnouncer);
private _injector = inject(Injector);
private _breakpointObserver = inject(BreakpointObserver);
private _parentSnackBar = inject(MatSnackBar, {optional: ... | {
"end_byte": 9374,
"start_byte": 1403,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.ts"
} |
components/src/material/snack-bar/snack-bar.ts_9377_11008 | private _createOverlay(config: MatSnackBarConfig): OverlayRef {
const overlayConfig = new OverlayConfig();
overlayConfig.direction = config.direction;
let positionStrategy = this._overlay.position().global();
// Set horizontal position.
const isRtl = config.direction === 'rtl';
const isLeft =
... | {
"end_byte": 11008,
"start_byte": 9377,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.ts"
} |
components/src/material/snack-bar/module.ts_0_1066 | /**
* @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 {PortalModule} from '@angular/cdk/portal';
import {NgModu... | {
"end_byte": 1066,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/module.ts"
} |
components/src/material/snack-bar/snack-bar.md_0_4236 | `MatSnackBar` is a service for displaying snack-bar notifications.
<!-- example(snack-bar-overview) -->
### Opening a snackbar
A snackbar can contain either a string message or a given component.
```ts
// Simple message.
let snackBarRef = snackBar.open('Message archived');
// Simple message with an action.
let snack... | {
"end_byte": 4236,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.md"
} |
components/src/material/snack-bar/snack-bar-container.html_0_660 | <div class="mdc-snackbar__surface mat-mdc-snackbar-surface">
<!--
This outer label wrapper will have the class `mdc-snackbar__label` applied if
the attached template/component does not contain it.
-->
<div class="mat-mdc-snack-bar-label" #label>
<!-- Initialy holds the snack bar content, will be empty... | {
"end_byte": 660,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-container.html"
} |
components/src/material/snack-bar/snack-bar-config.ts_0_2145 | /**
* @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 {ViewContainerRef, InjectionToken} from '@angular/core';
import {AriaLivePoliteness} from '@angular/cdk/a11y'... | {
"end_byte": 2145,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-config.ts"
} |
components/src/material/snack-bar/public-api.ts_0_480 | /**
* @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 './simple-snack-bar';
export * from './snack-bar-container';
export * from './snack-bar-content';
expo... | {
"end_byte": 480,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/public-api.ts"
} |
components/src/material/snack-bar/_snack-bar-theme.scss_0_3412 | @use 'sass:map';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/style/sass-utils';
@use '../core/typography/typography';
@use '../core/tokens/token-utils';
@use '../core/tokens/m2/mdc/snack-bar' as tokens-mdc-snack-bar;
@use '../core/tokens/m2/mat/sna... | {
"end_byte": 3412,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/_snack-bar-theme.scss"
} |
components/src/material/snack-bar/snack-bar-animations.ts_0_1068 | /**
* @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": 1068,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-animations.ts"
} |
components/src/material/snack-bar/snack-bar-container.scss_0_3621 | @use '@angular/cdk';
@use '../core/tokens/m2/mdc/snack-bar' as tokens-mdc-snack-bar;
@use '../core/tokens/m2/mat/snack-bar' as tokens-mat-snack-bar;
@use '../core/tokens/m2/mat/text-button' as tokens-mat-text-button;
@use '../core/tokens/token-utils';
@use '../core/style/elevation';
$_side-padding: 8px;
.mat-mdc-snac... | {
"end_byte": 3621,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-container.scss"
} |
components/src/material/snack-bar/snack-bar.zone.spec.ts_0_2566 | import {
ChangeDetectionStrategy,
Component,
Directive,
ViewChild,
ViewContainerRef,
provideZoneChangeDetection,
signal,
inject,
} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, flush, tick} from '@angular/core/testing';
import {NoopAnimationsModule} from '@angular/platform-browser/... | {
"end_byte": 2566,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.zone.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_0_694 | import {LiveAnnouncer} from '@angular/cdk/a11y';
import {OverlayContainer} from '@angular/cdk/overlay';
import {Platform} from '@angular/cdk/platform';
import {
ChangeDetectionStrategy,
Component,
Directive,
TemplateRef,
ViewChild,
ViewContainerRef,
signal,
inject,
} from '@angular/core';
import {Compon... | {
"end_byte": 694,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_696_9749 | describe('MatSnackBar', () => {
let snackBar: MatSnackBar;
let liveAnnouncer: LiveAnnouncer;
let overlayContainerElement: HTMLElement;
let testViewContainerRef: ViewContainerRef;
let viewContainerFixture: ComponentFixture<ComponentWithChildViewContainer>;
let simpleMessage = 'Burritos are here!';
let si... | {
"end_byte": 9749,
"start_byte": 696,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_9753_19202 | it('should open a simple message with no button', () => {
let config: MatSnackBarConfig = {viewContainerRef: testViewContainerRef};
let snackBarRef = snackBar.open(simpleMessage, undefined, config);
viewContainerFixture.detectChanges();
expect(snackBarRef.instance instanceof SimpleSnackBar)
.wit... | {
"end_byte": 19202,
"start_byte": 9753,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_19206_27951 | it('should allow manually dismissing with an action', fakeAsync(() => {
const dismissCompleteSpy = jasmine.createSpy('dismiss complete spy');
const actionCompleteSpy = jasmine.createSpy('action complete spy');
const snackBarRef = snackBar.open('Some content');
viewContainerFixture.detectChanges();
... | {
"end_byte": 27951,
"start_byte": 19206,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_27953_30255 | describe('MatSnackBar with parent MatSnackBar', () => {
let parentSnackBar: MatSnackBar;
let childSnackBar: MatSnackBar;
let overlayContainerElement: HTMLElement;
let fixture: ComponentFixture<ComponentThatProvidesMatSnackBar>;
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: ... | {
"end_byte": 30255,
"start_byte": 27953,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_30256_38895 | {
let snackBar: MatSnackBar;
let overlayContainerEl: HTMLElement;
let viewContainerFixture: ComponentFixture<ComponentWithChildViewContainer>;
let simpleMessage = 'Burritos are here!';
let simpleActionLabel = 'pickup';
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [
... | {
"end_byte": 38895,
"start_byte": 30256,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/snack-bar.spec.ts_38899_41171 | it('should handle end based on direction (ltr)', fakeAsync(() => {
snackBar.open(simpleMessage, simpleActionLabel, {
verticalPosition: 'top',
horizontalPosition: 'end',
direction: 'ltr',
});
viewContainerFixture.detectChanges();
flush();
const overlayPaneEl = overlayContainerEl.q... | {
"end_byte": 41171,
"start_byte": 38899,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar.spec.ts"
} |
components/src/material/snack-bar/README.md_0_100 | Please see the official documentation at https://material.angular.io/components/component/snack-bar
| {
"end_byte": 100,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/README.md"
} |
components/src/material/snack-bar/simple-snack-bar.ts_0_1644 | /**
* @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, ViewEncapsulation, inject} from '@angular/core';
import {MatButton} from... | {
"end_byte": 1644,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/simple-snack-bar.ts"
} |
components/src/material/snack-bar/BUILD.bazel_0_1800 | 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 = "snack-bar",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1800,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/BUILD.bazel"
} |
components/src/material/snack-bar/simple-snack-bar.scss_0_225 | // The label and actions expect to be in a flex container. Since this component adds another
// wrapping layer to the mdc-snackbar__surface, it should also include flex display.
.mat-mdc-simple-snack-bar {
display: flex;
}
| {
"end_byte": 225,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/simple-snack-bar.scss"
} |
components/src/material/snack-bar/snack-bar-content.ts_0_1008 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Directive} from '@angular/core';
/** Directive that should be applied to the text element to be rendered in... | {
"end_byte": 1008,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-content.ts"
} |
components/src/material/snack-bar/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/snack-bar/index.ts"
} |
components/src/material/snack-bar/snack-bar-container.ts_0_1817 | /**
* @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,
ChangeDetectorRef,
Component,
ComponentRef,
ElementRef,
EmbeddedViewRe... | {
"end_byte": 1817,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-container.ts"
} |
components/src/material/snack-bar/snack-bar-container.ts_1818_9722 | class MatSnackBarContainer extends BasePortalOutlet implements OnDestroy {
private _ngZone = inject(NgZone);
private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
private _changeDetectorRef = inject(ChangeDetectorRef);
private _platform = inject(Platform);
snackBarConfig = inject(MatSnackBarConfi... | {
"end_byte": 9722,
"start_byte": 1818,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-container.ts"
} |
components/src/material/snack-bar/snack-bar-container.ts_9725_12833 | private _exposeToModals() {
// TODO(http://github.com/angular/components/issues/26853): consider de-duplicating this with the
// `LiveAnnouncer` and any other usages.
//
// Note that the selector here is limited to CDK overlays at the moment in order to reduce the
// section of the DOM we need to lo... | {
"end_byte": 12833,
"start_byte": 9725,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-container.ts"
} |
components/src/material/snack-bar/snack-bar-ref.ts_0_4028 | /**
* @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 {OverlayRef} from '@angular/cdk/overlay';
import {Observable, Subject} from 'rxjs';
import {MatSnackBarContai... | {
"end_byte": 4028,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/snack-bar-ref.ts"
} |
components/src/material/snack-bar/simple-snack-bar.html_0_203 | <div matSnackBarLabel>
{{data.message}}
</div>
@if (hasAction) {
<div matSnackBarActions>
<button mat-button matSnackBarAction (click)="action()">
{{data.action}}
</button>
</div>
}
| {
"end_byte": 203,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/simple-snack-bar.html"
} |
components/src/material/snack-bar/testing/snack-bar-harness.spec.ts_0_7641 | 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 {
MatSnackBar,
MatSnackBarAction,
MatSnackBar... | {
"end_byte": 7641,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/testing/snack-bar-harness.spec.ts"
} |
components/src/material/snack-bar/testing/snack-bar-harness.ts_0_4402 | /**
* @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, parallel} from '@angular/cdk/testing';
import {AriaLiveP... | {
"end_byte": 4402,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/testing/snack-bar-harness.ts"
} |
components/src/material/snack-bar/testing/public-api.ts_0_286 | /**
* @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 './snack-bar-harness';
export * from './snack-bar-harness-filters';
| {
"end_byte": 286,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/testing/public-api.ts"
} |
components/src/material/snack-bar/testing/snack-bar-harness-filters.ts_0_426 | /**
* @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": 426,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/testing/snack-bar-harness-filters.ts"
} |
components/src/material/snack-bar/testing/BUILD.bazel_0_831 | 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/a11y",
"//src/cdk/testing"... | {
"end_byte": 831,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/snack-bar/testing/BUILD.bazel"
} |
components/src/material/snack-bar/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/snack-bar/testing/index.ts"
} |
components/src/material/paginator/paginator.spec.ts_0_667 | import {dispatchMouseEvent} from '@angular/cdk/testing/private';
import {ChangeDetectorRef, Component, Provider, Type, ViewChild, inject} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, tick} from '@angular/core/testing';
import {ThemePalette} from '@angular/material/core';
import {MatSelect} from '... | {
"end_byte": 667,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.spec.ts"
} |
components/src/material/paginator/paginator.spec.ts_669_10047 | describe('MatPaginator', () => {
function createComponent<T>(type: Type<T>, providers: Provider[] = []): ComponentFixture<T> {
TestBed.configureTestingModule({
imports: [MatPaginatorModule, NoopAnimationsModule],
providers: [MatPaginatorIntl, ...providers],
declarations: [type],
});
con... | {
"end_byte": 10047,
"start_byte": 669,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.spec.ts"
} |
components/src/material/paginator/paginator.spec.ts_10051_19409 | when showing the first and last button', () => {
let fixture: ComponentFixture<MatPaginatorApp>;
let component: MatPaginatorApp;
let paginator: MatPaginator;
beforeEach(() => {
fixture = createComponent(MatPaginatorApp);
component = fixture.componentInstance;
paginator = component.pag... | {
"end_byte": 19409,
"start_byte": 10051,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.spec.ts"
} |
components/src/material/paginator/paginator.spec.ts_19413_24828 | to disable all the controls in the paginator via the binding', () => {
const fixture = createComponent(MatPaginatorApp);
const select: MatSelect = fixture.debugElement.query(
By.directive(MatSelect),
)!.componentInstance;
fixture.componentInstance.pageIndex = 1;
fixture.componentInstance.sho... | {
"end_byte": 24828,
"start_byte": 19413,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.spec.ts"
} |
components/src/material/paginator/module.ts_0_725 | /**
* @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 {MAT_PAGINATOR_INTL_PROVIDER} from './paginator-intl';
import {MatBut... | {
"end_byte": 725,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/module.ts"
} |
components/src/material/paginator/paginator.md_0_1558 | `<mat-paginator>` provides navigation for paged information, typically used with a table.
<!-- example(paginator-overview) -->
### Basic use
Each paginator instance requires:
* The number of items per page (default set to 50)
* The total number of items being paged
The current page index defaults to 0, but can be ex... | {
"end_byte": 1558,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.md"
} |
components/src/material/paginator/public-api.ts_0_293 | /**
* @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 './paginator';
export * from './paginator-intl';
| {
"end_byte": 293,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/public-api.ts"
} |
components/src/material/paginator/_paginator-theme.scss_0_3143 | @use 'sass:map';
@use 'sass:meta';
@use '../core/tokens/m2/mat/paginator' as tokens-mat-paginator;
@use '../core/style/sass-utils';
@use '../core/typography/typography';
@use '../core/theming/theming';
@use '../core/theming/inspection';
@use '../core/theming/validation';
@use '../core/tokens/token-utils';
@mixin base(... | {
"end_byte": 3143,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/_paginator-theme.scss"
} |
components/src/material/paginator/paginator.ts_0_3269 | /**
* @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,
ChangeDetectorRef,
Component,
EventEmitter,
Inject,
InjectionToken,
... | {
"end_byte": 3269,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.ts"
} |
components/src/material/paginator/paginator.ts_3270_11783 | @Component({
selector: 'mat-paginator',
exportAs: 'matPaginator',
templateUrl: 'paginator.html',
styleUrl: 'paginator.css',
host: {
'class': 'mat-mdc-paginator',
'role': 'group',
},
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
imports: [MatFormField, ... | {
"end_byte": 11783,
"start_byte": 3270,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.ts"
} |
components/src/material/paginator/paginator.scss_0_4509 | @use '@angular/cdk';
@use '../core/tokens/m2/mat/paginator' as tokens-mat-paginator;
@use '../core/tokens/token-utils';
@use '../core/style/vendor-prefixes';
$padding: 0 8px;
$page-size-margin-right: 8px;
$items-per-page-label-margin: 0 4px;
$selector-margin: 0 4px;
$selector-trigger-width: 84px;
$touch-target-height... | {
"end_byte": 4509,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.scss"
} |
components/src/material/paginator/paginator.html_0_4569 | <div class="mat-mdc-paginator-outer-container">
<div class="mat-mdc-paginator-container">
@if (!hidePageSize) {
<div class="mat-mdc-paginator-page-size">
<div class="mat-mdc-paginator-page-size-label" [attr.id]="_pageSizeLabelId">
{{_intl.itemsPerPageLabel}}
</div>
@if (_d... | {
"end_byte": 4569,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator.html"
} |
components/src/material/paginator/BUILD.bazel_0_1660 | 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 = "paginator",
srcs = glob(
["**/*.ts"],
... | {
"end_byte": 1660,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/BUILD.bazel"
} |
components/src/material/paginator/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/paginator/index.ts"
} |
components/src/material/paginator/paginator-intl.ts_0_2365 | /**
* @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 {Injectable, Optional, SkipSelf} from '@angular/core';
import {Subject} from 'rxjs';
/**
* To modify the la... | {
"end_byte": 2365,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/paginator-intl.ts"
} |
components/src/material/paginator/testing/public-api.ts_0_286 | /**
* @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 './paginator-harness';
export * from './paginator-harness-filters';
| {
"end_byte": 286,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/testing/public-api.ts"
} |
components/src/material/paginator/testing/paginator-harness.ts_0_4487 | /**
* @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": 4487,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/testing/paginator-harness.ts"
} |
components/src/material/paginator/testing/paginator-harness.spec.ts_0_5100 | import {Component, signal} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import ... | {
"end_byte": 5100,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/testing/paginator-harness.spec.ts"
} |
components/src/material/paginator/testing/BUILD.bazel_0_847 | 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": 847,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/testing/BUILD.bazel"
} |
components/src/material/paginator/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/paginator/testing/index.ts"
} |
components/src/material/paginator/testing/paginator-harness-filters.ts_0_428 | /**
* @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": 428,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/paginator/testing/paginator-harness-filters.ts"
} |
components/src/material/schematics/BUILD.bazel_0_3587 | load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
load("//tools:defaults.bzl", "jasmine_node_test", "pkg_npm", "ts_library")
package(default_visibility = ["//visibility:public"])
copy_to_bin(
name = "collection_assets",
srcs = [
"collection.json",
"migration.json",
],
)
copy_to... | {
"end_byte": 3587,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/BUILD.bazel"
} |
components/src/material/schematics/paths.ts_0_614 | /**
* @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 {runfiles} from '@bazel/runfiles';
/** Path to the schematic collection for non-migration schematics. */
exp... | {
"end_byte": 614,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/paths.ts"
} |
components/src/material/schematics/migration-utilities/index.spec.ts_0_720 | import {writeUpdates} from './index';
describe('migration-utilities', () => {
describe('writeUpdates', () => {
it('should call update functions in the correct order', () => {
const fn1 = jasmine.createSpy().and.returnValue('1');
const fn2 = jasmine.createSpy().and.returnValue('2');
const fn3 = ... | {
"end_byte": 720,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/migration-utilities/index.spec.ts"
} |
components/src/material/schematics/migration-utilities/BUILD.bazel_0_759 | load("//tools:defaults.bzl", "jasmine_node_test", "spec_bundle", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "migration-utilities",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"@npm//typescript",
],
)
ts_libr... | {
"end_byte": 759,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/migration-utilities/BUILD.bazel"
} |
components/src/material/schematics/migration-utilities/index.ts_0_321 | /**
* @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 {updateModuleSpecifier} from './typescript/import-operations';
export {Update, writeUpdates} from './update';... | {
"end_byte": 321,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/migration-utilities/index.ts"
} |
components/src/material/schematics/migration-utilities/update.ts_0_757 | /**
* @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
*/
/** Stores the data needed to make a single update to a file. */
export interface Update {
/** The start index of ... | {
"end_byte": 757,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/migration-utilities/update.ts"
} |
components/src/material/schematics/migration-utilities/typescript/import-operations.ts_0_1827 | /**
* @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 {Update} from '../update';
import * as ts from 'typescript';
/** Returns an Update that renames the module s... | {
"end_byte": 1827,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/migration-utilities/typescript/import-operations.ts"
} |
components/src/material/schematics/migration-utilities/typescript/import-operations.spec.ts_0_4359 | import * as ts from 'typescript';
import {updateModuleSpecifier, updateNamedImport} from './import-operations';
describe('import operations', () => {
describe('updateModuleSpecifier', () => {
function runUpdateModuleSpecifierTest(
description: string,
opts: {old: string; new: string},
): void {
... | {
"end_byte": 4359,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/migration-utilities/typescript/import-operations.spec.ts"
} |
components/src/material/schematics/ng-update/upgrade-data.ts_0_799 | /**
* @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 {UpgradeData} from '@angular/cdk/schematics';
import {
attributeSelectors,
classNames,
constructorCheck... | {
"end_byte": 799,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/upgrade-data.ts"
} |
components/src/material/schematics/ng-update/BUILD.bazel_0_2597 | load("//tools:defaults.bzl", "esbuild", "jasmine_node_test", "spec_bundle", "ts_library")
## THIS ONE IS ESM
# By default everything is ESM
# ESBUild needs ESM for bundling. Cannot reliably use CJS as input.
ts_library(
name = "ng_update_lib",
srcs = glob(
["**/*.ts"],
exclude = [
"... | {
"end_byte": 2597,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/BUILD.bazel"
} |
components/src/material/schematics/ng-update/index.ts_0_1380 | /**
* @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 {Rule, SchematicContext} from '@angular-devkit/schematics';
import {
createMigrationSchematicRule,
Nullab... | {
"end_byte": 1380,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/index.ts"
} |
components/src/material/schematics/ng-update/test-cases/index.spec.ts_0_780 | import {getAllVersionNames} from '@angular/cdk/schematics';
import {defineJasmineTestCases, findBazelVersionTestCases} from '@angular/cdk/schematics/testing';
import {MIGRATION_PATH} from '../../paths';
describe('Material upgrade test cases', () => {
const versionNames = getAllVersionNames().map(versionName => versi... | {
"end_byte": 780,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/test-cases/index.spec.ts"
} |
components/src/material/schematics/ng-update/test-cases/v19-mat-core-removal.spec.ts_0_2792 | import {UnitTestTree} from '@angular-devkit/schematics/testing';
import {createTestCaseSetup} from '@angular/cdk/schematics/testing';
import {join} from 'path';
import {MIGRATION_PATH} from '../../paths';
const PROJECT_ROOT_DIR = '/projects/cdk-testing';
const THEME_FILE_PATH = join(PROJECT_ROOT_DIR, 'src/theme.scss')... | {
"end_byte": 2792,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/test-cases/v19-mat-core-removal.spec.ts"
} |
components/src/material/schematics/ng-update/migrations/mat-core-removal.ts_0_2807 | /**
* @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 * as postcss from 'postcss';
import * as scss from 'postcss-scss';
import {
DevkitContext,
Migration,
R... | {
"end_byte": 2807,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/migrations/mat-core-removal.ts"
} |
components/src/material/schematics/ng-update/typescript/module-specifiers.ts_0_1383 | /**
* @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 {getExportDeclaration, getImportDeclaration} from '@angular/cdk/schematics';
import * as ts from 'typescript'... | {
"end_byte": 1383,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/typescript/module-specifiers.ts"
} |
components/src/material/schematics/ng-update/data/symbol-removal.ts_0_362 | /**
* @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 {SymbolRemovalUpgradeData, VersionChanges} from '@angular/cdk/schematics';
export const symbolRemoval: Versi... | {
"end_byte": 362,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/schematics/ng-update/data/symbol-removal.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.