_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/dev-app/focus-trap/focus-trap-demo.html_0_6403 | <div>
<mat-card class="demo-mat-card">
<mat-toolbar color="primary">Basic</mat-toolbar>
<mat-card-content class="demo-mat-card-content">
<button mat-raised-button (click)="toggleFocus(basicFocusTrap)">
{{basicFocusTrap && basicFocusTrap.enabled ? "Disable" : "Enable"}} FocusTrap
</button>
... | {
"end_byte": 6403,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-trap/focus-trap-demo.html"
} |
components/src/dev-app/focus-trap/focus-trap-demo.scss_0_517 | .demo-focus-trap-region {
outline: 2px dashed lightgray;
padding: 4px;
margin: 12px 0;
&.demo-focus-trap-enabled {
outline: 2px solid red;
}
.demo-focus-trap-element, .demo-focus-trap-shadow-root {
display: block;
margin: 4px;
}
.demo-focus-trap-region {
margin: 12px 4px;
}
}
.dem... | {
"end_byte": 517,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-trap/focus-trap-demo.scss"
} |
components/src/dev-app/focus-trap/focus-trap-dialog-demo.scss_0_59 | .demo-dialog-textarea {
display: block;
margin: 4px;
}
| {
"end_byte": 59,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-trap/focus-trap-dialog-demo.scss"
} |
components/src/dev-app/focus-trap/focus-trap-dialog-demo.html_0_434 | <h2 mat-dialog-title>Dialog {{id}}</h2>
<mat-dialog-content>
<textarea class="demo-dialog-textarea" placeholder="One"></textarea>
<textarea class="demo-dialog-textarea" placeholder="Two"></textarea>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-raised-button mat-dialog-close>
Close
</button>
<... | {
"end_byte": 434,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-trap/focus-trap-dialog-demo.html"
} |
components/src/dev-app/focus-trap/BUILD.bazel_0_738 | load("//tools:defaults.bzl", "ng_module", "sass_binary")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "focus-trap",
srcs = glob(["**/*.ts"]),
assets = [
"focus-trap-demo.html",
"focus-trap-dialog-demo.html",
":focus_trap_demo_scss",
":focus_trap_d... | {
"end_byte": 738,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-trap/BUILD.bazel"
} |
components/src/dev-app/focus-trap/focus-trap-demo.ts_0_2956 | /**
* @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 {A11yModule, CdkTrapFocus} from '@angular/cdk/a11y';
import {_supportsShadowDom} from '@angular/cdk/platform'... | {
"end_byte": 2956,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-trap/focus-trap-demo.ts"
} |
components/src/dev-app/focus-origin/focus-origin-demo.ts_0_605 | /**
* @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, inject} from '@angular/core';
import {A11yModule, FocusMonitor} from '@a... | {
"end_byte": 605,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-origin/focus-origin-demo.ts"
} |
components/src/dev-app/focus-origin/BUILD.bazel_0_409 | load("//tools:defaults.bzl", "ng_module", "sass_binary")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "focus-origin",
srcs = glob(["**/*.ts"]),
assets = [
"focus-origin-demo.html",
":focus_origin_demo_scss",
],
deps = [
"//src/cdk/a11y",
],
)
... | {
"end_byte": 409,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-origin/BUILD.bazel"
} |
components/src/dev-app/focus-origin/focus-origin-demo.scss_0_357 | .demo-focusable {
border: 2px solid transparent;
}
.demo-focusable.cdk-focused {
border: 2px solid red;
}
.demo-focusable.cdk-mouse-focused {
background: green;
}
.demo-focusable.cdk-keyboard-focused {
background: yellow;
}
.demo-focusable.cdk-program-focused {
background: blue;
}
.demo-focusable.cdk-tou... | {
"end_byte": 357,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-origin/focus-origin-demo.scss"
} |
components/src/dev-app/focus-origin/focus-origin-demo.html_0_994 | <button #b class="demo-focusable" cdkMonitorElementFocus>focus me!</button>
<button (click)="b.focus()">focus programmatically</button>
<button (click)="fom.focusVia(b, 'mouse')">focusVia: mouse</button>
<button (click)="fom.focusVia(b, 'touch')">focusVia: touch</button>
<button (click)="fom.focusVia(b, 'keyboard')">f... | {
"end_byte": 994,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/focus-origin/focus-origin-demo.html"
} |
components/src/dev-app/badge/badge-demo.scss_0_144 | .demo-badge {
margin-bottom: 25px;
}
.mat-badge {
margin-right: 22px;
[dir='rtl'] & {
margin-right: 0;
margin-left: 22px;
}
}
| {
"end_byte": 144,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/badge/badge-demo.scss"
} |
components/src/dev-app/badge/badge-demo.ts_0_781 | /**
* @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} from '@angular/core';
import {FormsModule} from '@angular/forms';
import... | {
"end_byte": 781,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/badge/badge-demo.ts"
} |
components/src/dev-app/badge/badge-demo.html_0_2299 | <div>
<div class="demo-badge">
<h3>Buttons</h3>
<button mat-stroked-button matBadge="7" matBadgeDescription="7 unread messages">
Inbox
</button>
<button mat-stroked-button matBadge="7" matBadgePosition="below after"
matBadgeDescription="7 unread messages">
Inbox
</button>
... | {
"end_byte": 2299,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/badge/badge-demo.html"
} |
components/src/dev-app/badge/BUILD.bazel_0_476 | load("//tools:defaults.bzl", "ng_module", "sass_binary")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "badge",
srcs = glob(["**/*.ts"]),
assets = [
"badge-demo.html",
":badge_demo_scss",
],
deps = [
"//src/material/badge",
"//src/material/... | {
"end_byte": 476,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/badge/BUILD.bazel"
} |
components/src/dev-app/clipboard/clipboard-demo.html_0_652 | <section>
<label for="example-textarea">Text to be copied</label>
<textarea id="example-textarea" cols="30" rows="10" [(ngModel)]="value"></textarea>
</section>
<section>
<label for="example-attempts-input">Copy attempts</label>
<input id="example-attempts-input" type="number" [(ngModel)]="attempts"/>
</sectio... | {
"end_byte": 652,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/clipboard/clipboard-demo.html"
} |
components/src/dev-app/clipboard/clipboard-demo.scss_0_59 | label {
display: block;
}
section {
margin: 8px 0;
}
| {
"end_byte": 59,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/clipboard/clipboard-demo.scss"
} |
components/src/dev-app/clipboard/clipboard-demo.ts_0_1590 | /**
* @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 {Clipboard, ClipboardModule} from '@angular/cdk/clipboard';
import {ChangeDetectionStrategy, Component, injec... | {
"end_byte": 1590,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/clipboard/clipboard-demo.ts"
} |
components/src/dev-app/clipboard/BUILD.bazel_0_431 | load("//tools:defaults.bzl", "ng_module", "sass_binary")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "clipboard",
srcs = glob(["**/*.ts"]),
assets = [
":clipboard_demo_scss",
"clipboard-demo.html",
],
deps = [
"//src/cdk/clipboard",
"@npm... | {
"end_byte": 431,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/dev-app/clipboard/BUILD.bazel"
} |
components/src/universal-app/main.ts_0_432 | import {bootstrapApplication, provideClientHydration} from '@angular/platform-browser';
import {provideAnimations} from '@angular/platform-browser/animations';
import {AUTOMATED_KITCHEN_SINK, KitchenSink} from './kitchen-sink/kitchen-sink';
bootstrapApplication(KitchenSink, {
providers: [
provideAnimations(),
... | {
"end_byte": 432,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/main.ts"
} |
components/src/universal-app/styles.scss_0_707 | @use '@angular/material' as mat;
@include mat.app-background();
$theme: mat.define-theme((
color: (
theme-type: light,
primary: mat.$azure-palette,
tertiary: mat.$blue-palette,
),
density: (
scale: 0,
)
));
html {
@include mat.all-component-themes($theme);
}
@include mat.typography-hierarc... | {
"end_byte": 707,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/styles.scss"
} |
components/src/universal-app/prerender.ts_0_2076 | import 'reflect-metadata';
import 'zone.js';
import {ErrorHandler} from '@angular/core';
import {bootstrapApplication, provideClientHydration} from '@angular/platform-browser';
import {provideServerRendering, renderApplication} from '@angular/platform-server';
import {provideNoopAnimations} from '@angular/platform-bro... | {
"end_byte": 2076,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/prerender.ts"
} |
components/src/universal-app/README.md_0_518 | ### Server-side debugging app
Application that renders all components on the server and hydrates them on the client. Common tasks:
* Run `yarn universal-app` to start a local server. **Does not support live reload**
* To inspect the server-side-generated HTML, run `yarn universal-app`, visit the local server and
use ... | {
"end_byte": 518,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/README.md"
} |
components/src/universal-app/hydration.e2e.spec.ts_0_1208 | import {browser, by, element, ExpectedConditions} from 'protractor';
describe('hydration e2e', () => {
beforeEach(async () => {
await browser.waitForAngularEnabled(false);
await browser.get('/');
await browser.wait(ExpectedConditions.presenceOf(element(by.css('.render-marker'))), 5000);
});
it('shou... | {
"end_byte": 1208,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/hydration.e2e.spec.ts"
} |
components/src/universal-app/start-devserver.js_0_1016 | const protractor = require('protractor');
// Note: We need to specify an explicit file extension here because otherwise
// the Bazel-patched NodeJS module resolution would resolve to the `.mjs` file
// in non-sandbox environments (as usually with Bazel and Windows).
const utils = require('@bazel/protractor/protractor-... | {
"end_byte": 1016,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/start-devserver.js"
} |
components/src/universal-app/protractor.conf.js_0_365 | exports.config = {
useAllAngular2AppRoots: true,
allScriptsTimeout: 120000,
getPageTimeout: 120000,
jasmineNodeOpts: {
defaultTimeoutInterval: 120000,
},
// Since we want to use async/await we don't want to mix up with selenium's promise
// manager. In order to enforce this, we disable the promise ma... | {
"end_byte": 365,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/protractor.conf.js"
} |
components/src/universal-app/BUILD.bazel_0_4295 | load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary", "npm_package_bin")
load("//src/cdk:config.bzl", "CDK_TARGETS")
load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_TARGETS")
load("//src/components-examples:config.bzl", "ALL_EXAMPLES")
load(... | {
"end_byte": 4295,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/BUILD.bazel"
} |
components/src/universal-app/index-source.html_0_939 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Angular Material Universal Kitchen Sink Test</title>
<link href="styles.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https... | {
"end_byte": 939,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/index-source.html"
} |
components/src/universal-app/kitchen-sink/kitchen-sink.ts_0_8024 | import {ScrollingModule as ExperimentalScrollingModule} from '@angular/cdk-experimental/scrolling';
import {A11yModule, FocusMonitor} from '@angular/cdk/a11y';
import {DragDropModule} from '@angular/cdk/drag-drop';
import {CdkListboxModule} from '@angular/cdk/listbox';
import {ScrollingModule, ViewportRuler} from '@ang... | {
"end_byte": 8024,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/kitchen-sink/kitchen-sink.ts"
} |
components/src/universal-app/kitchen-sink/kitchen-sink.html_0_6801 | <h2>Autocomplete</h2>
<mat-form-field>
<mat-label>Computer scientists</mat-label>
<input matInput [matAutocomplete]="autocomplete" />
</mat-form-field>
<mat-autocomplete #autocomplete>
<mat-option value="Grace Hopper">Grace Hopper</mat-option>
<mat-option value="Anita Borg">Anita Borg</mat-option>
<mat-opti... | {
"end_byte": 6801,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/universal-app/kitchen-sink/kitchen-sink.html"
} |
components/src/universal-app/kitchen-sink/kitchen-sink.html_6802_12746 | <mat-radio-group>
<mat-radio-button>Charmander</mat-radio-button>
<mat-radio-button>Squirtle</mat-radio-button>
<mat-radio-button>Bulbasaur</mat-radio-button>
</mat-radio-group>
<h3>Standalone radios</h3>
<mat-radio-button name="onions">White</mat-radio-button>
<mat-radio-button name="onions">Yellow</mat-radio-b... | {
"end_byte": 12746,
"start_byte": 6802,
"url": "https://github.com/angular/components/blob/main/src/universal-app/kitchen-sink/kitchen-sink.html"
} |
components/src/universal-app/kitchen-sink/kitchen-sink.html_12748_18082 | <cdk-table class="test-cdk-table" [dataSource]="tableDataSource">
<ng-container cdkColumnDef="position">
<cdk-header-cell *cdkHeaderCellDef>No.</cdk-header-cell>
<cdk-cell *cdkCellDef="let element">{{element.position}}</cdk-cell>
</ng-container>
<ng-container cdkColumnDef="name">
<cdk-header-cell *cd... | {
"end_byte": 18082,
"start_byte": 12748,
"url": "https://github.com/angular/components/blob/main/src/universal-app/kitchen-sink/kitchen-sink.html"
} |
components/src/universal-app/kitchen-sink/kitchen-sink.html_18083_20226 | <google-map height="400px" width="750px" mapId="123" style="position: relative">
<map-marker [position]="{lat: 24, lng: 12}"></map-marker>
<map-advanced-marker [position]="{lat: 12, lng: 12}"></map-advanced-marker>
<map-info-window>Hello</map-info-window>
<map-polyline
[options]="{
path: [{lat: 25, lng:... | {
"end_byte": 20226,
"start_byte": 18083,
"url": "https://github.com/angular/components/blob/main/src/universal-app/kitchen-sink/kitchen-sink.html"
} |
components/src/material/_index.scss_0_8315 | // Expose the M2 APIs under an `m2-` prefix in order to distinguish them from the M3 APIs.
@forward './core/m2' as m2-*;
// New theming APIs
@forward './core/theming/inspection' show get-theme-version, get-theme-type, get-theme-color,
get-theme-typography, get-theme-density, theme-has, theme-remove;
@forward './core... | {
"end_byte": 8315,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/_index.scss"
} |
components/src/material/_index.scss_8316_9656 | @forward './snack-bar/snack-bar-theme' as snack-bar-* show snack-bar-theme, snack-bar-color,
snack-bar-typography, snack-bar-density, snack-bar-base, snack-bar-overrides;
@forward './sort/sort-theme' as sort-* show sort-theme, sort-color, sort-typography, sort-density,
sort-base, sort-overrides;
@forward './stepper... | {
"end_byte": 9656,
"start_byte": 8316,
"url": "https://github.com/angular/components/blob/main/src/material/_index.scss"
} |
components/src/material/config.bzl_0_2447 | entryPoints = [
"autocomplete",
"autocomplete/testing",
"badge",
"badge/testing",
"bottom-sheet",
"bottom-sheet/testing",
"button",
"button/testing",
"button-toggle",
"button-toggle/testing",
"card",
"card/testing",
"checkbox",
"checkbox/testing",
"chips",
... | {
"end_byte": 2447,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/config.bzl"
} |
components/src/material/BUILD.bazel_0_1600 | load(
"//src/material:config.bzl",
"MATERIAL_ENTRYPOINTS",
"MATERIAL_SCSS_LIBS",
"MATERIAL_TARGETS",
"MATERIAL_TESTING_TARGETS",
)
load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "material",
s... | {
"end_byte": 1600,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/BUILD.bazel"
} |
components/src/material/index.ts_0_638 | /**
* @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
*/
// primary entry-point which is empty as of version 9. All components should
// be imported through their individual... | {
"end_byte": 638,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/index.ts"
} |
components/src/material/tabs/tab-group.spec.ts_0_1337 | import {LEFT_ARROW, RIGHT_ARROW} from '@angular/cdk/keycodes';
import {dispatchFakeEvent, dispatchKeyboardEvent} from '@angular/cdk/testing/private';
import {AsyncPipe} from '@angular/common';
import {Component, DebugElement, OnInit, QueryList, ViewChild, ViewChildren} from '@angular/core';
import {
ComponentFixture,... | {
"end_byte": 1337,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_1341_10723 | describe('basic behavior', () => {
let fixture: ComponentFixture<SimpleTabsTestApp>;
let element: HTMLElement;
beforeEach(() => {
fixture = TestBed.createComponent(SimpleTabsTestApp);
element = fixture.nativeElement;
});
it('should default to the first tab', () => {
checkSelected... | {
"end_byte": 10723,
"start_byte": 1341,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_10729_19277 | it('should clean up the tabs QueryList on destroy', () => {
const component: MatTabGroup = fixture.debugElement.query(
By.css('mat-tab-group'),
)!.componentInstance;
const spy = jasmine.createSpy('complete spy');
const subscription = component._tabs.changes.subscribe({complete: spy});
... | {
"end_byte": 19277,
"start_byte": 10729,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_19281_26281 | describe('dynamic binding tabs', () => {
let fixture: ComponentFixture<SimpleDynamicTabsTestApp>;
beforeEach(fakeAsync(() => {
fixture = TestBed.createComponent(SimpleDynamicTabsTestApp);
fixture.detectChanges();
tick();
fixture.detectChanges();
}));
it('should be able to add a... | {
"end_byte": 26281,
"start_byte": 19281,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_26285_33974 | describe('with simple api', () => {
let fixture: ComponentFixture<TabGroupWithSimpleApi>;
let tabGroup: MatTabGroup;
beforeEach(fakeAsync(() => {
fixture = TestBed.createComponent(TabGroupWithSimpleApi);
fixture.detectChanges();
tick();
tabGroup = fixture.debugElement.query(By.dire... | {
"end_byte": 33974,
"start_byte": 26285,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_33978_41902 | describe('tabs with custom css classes', () => {
let fixture: ComponentFixture<TabsWithClassesTestApp>;
let labelElements: DebugElement[];
let bodyElements: DebugElement[];
beforeEach(() => {
fixture = TestBed.createComponent(TabsWithClassesTestApp);
fixture.detectChanges();
labelElem... | {
"end_byte": 41902,
"start_byte": 33978,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_41904_49944 | describe('MatTabGroup labels aligned with a config', () => {
it('should work with start align', () => {
const fixture = TestBed.configureTestingModule({
imports: [MatTabsModule, BrowserAnimationsModule, TabsWithAlignConfig],
providers: [
{
provide: MAT_TABS_CONFIG,
useValue... | {
"end_byte": 49944,
"start_byte": 41904,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-group.spec.ts_49946_54697 | @Component({
template: `
<mat-tab-group>
<mat-tab label="One">Tab one content</mat-tab>
<mat-tab label="Two">
Tab two content
<mat-tab-group [dynamicHeight]="true">
<mat-tab label="Inner tab one">Inner content one</mat-tab>
<mat-tab label="Inner tab two">Inner cont... | {
"end_byte": 54697,
"start_byte": 49946,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.spec.ts"
} |
components/src/material/tabs/tab-header.spec.ts_0_9379 | import {Dir, Direction} from '@angular/cdk/bidi';
import {END, ENTER, HOME, LEFT_ARROW, RIGHT_ARROW, SPACE} from '@angular/cdk/keycodes';
import {MutationObserverFactory, ObserversModule} from '@angular/cdk/observers';
import {SharedResizeObserver} from '@angular/cdk/observers/private';
import {PortalModule} from '@ang... | {
"end_byte": 9379,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.spec.ts"
} |
components/src/material/tabs/tab-header.spec.ts_9383_14989 | describe('pagination', () => {
describe('ltr', () => {
beforeEach(() => {
fixture = TestBed.createComponent(SimpleTabHeaderApp);
appComponent = fixture.componentInstance;
appComponent.dir = 'ltr';
fixture.detectChanges();
});
it('should show width when tab list wid... | {
"end_byte": 14989,
"start_byte": 9383,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.spec.ts"
} |
components/src/material/tabs/tab-header.spec.ts_14995_24961 | describe('scrolling when holding paginator', () => {
let nextButton: HTMLElement;
let prevButton: HTMLElement;
let header: MatTabHeader;
let headerElement: HTMLElement;
beforeEach(() => {
fixture = TestBed.createComponent(SimpleTabHeaderApp);
fixture.componentInstance.disa... | {
"end_byte": 24961,
"start_byte": 14995,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.spec.ts"
} |
components/src/material/tabs/tab-header.spec.ts_24967_28303 | it('should update arrows when the header is resized', fakeAsync(() => {
fixture = TestBed.createComponent(SimpleTabHeaderApp);
const header = fixture.componentInstance.tabHeader;
spyOn(header, '_checkPaginationEnabled');
resizeEvents.next([]);
fixture.detectChanges();
flushMicrota... | {
"end_byte": 28303,
"start_byte": 24967,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.spec.ts"
} |
components/src/material/tabs/tab-body.spec.ts_0_7684 | import {Direction, Directionality} from '@angular/cdk/bidi';
import {PortalModule, TemplatePortal} from '@angular/cdk/portal';
import {CdkScrollable, ScrollingModule} from '@angular/cdk/scrolling';
import {
AfterViewInit,
Component,
TemplateRef,
ViewChild,
ViewContainerRef,
inject,
signal,
} from '@angula... | {
"end_byte": 7684,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-body.spec.ts"
} |
components/src/material/tabs/_tabs-theme.scss_0_7588 | @use '../core/style/sass-utils';
@use '../core/tokens/m2/mdc/secondary-navigation-tab' as tokens-mdc-secondary-navigation-tab;
@use '../core/tokens/m2/mdc/tab-indicator' as tokens-mdc-tab-indicator;
@use '../core/tokens/m2/mat/tab-header' as tokens-mat-tab-header;
@use '../core/tokens/m2/mat/tab-header-with-background'... | {
"end_byte": 7588,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/_tabs-theme.scss"
} |
components/src/material/tabs/_tabs-theme.scss_7591_8660 | }
}
@mixin _theme-from-tokens($tokens, $options...) {
@include validation.selector-defined(
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
);
$mdc-tab-indicator-tokens: token-utils.get-tokens-for(
$tokens,
tokens-mdc-tab-indicator.$prefix,
$options...
);... | {
"end_byte": 8660,
"start_byte": 7591,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/_tabs-theme.scss"
} |
components/src/material/tabs/tab-content.ts_0_940 | /**
* @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, InjectionToken, TemplateRef, inject} from '@angular/core';
/**
* Injection token that can be us... | {
"end_byte": 940,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-content.ts"
} |
components/src/material/tabs/tabs-animations.ts_0_2246 | /**
* @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 {
AnimationTriggerMetadata,
animate,
state,
style,
transition,
trigger,
} from '@angular/animation... | {
"end_byte": 2246,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tabs-animations.ts"
} |
components/src/material/tabs/tab.ts_0_5518 | /**
* @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,
InjectionToken,
Input,
OnChanges,
OnDestroy... | {
"end_byte": 5518,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab.ts"
} |
components/src/material/tabs/module.ts_0_894 | /**
* @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 {MatTabConten... | {
"end_byte": 894,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/module.ts"
} |
components/src/material/tabs/tab-group.scss_0_1046 | @use '../core/style/private';
@use '../core/style/variables';
@use './tabs-common';
@include tabs-common.structural-styles;
.mat-mdc-tab {
@include tabs-common.tab;
// Note that we only want to target direct descendant tabs.
.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs > .mat-mdc-tab-header & {
flex-g... | {
"end_byte": 1046,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.scss"
} |
components/src/material/tabs/paginated-tab-header.ts_0_2161 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {FocusKeyManager, FocusableOption} from '@angular/cdk/a11y';
import {Direction, Directionality} from '@angula... | {
"end_byte": 2161,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/paginated-tab-header.ts"
} |
components/src/material/tabs/paginated-tab-header.ts_2162_10974 | @Directive()
export abstract class MatPaginatedTabHeader
implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy
{
protected _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
protected _changeDetectorRef = inject(ChangeDetectorRef);
private _viewportRuler = inject(ViewportRuler);
p... | {
"end_byte": 10974,
"start_byte": 2162,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/paginated-tab-header.ts"
} |
components/src/material/tabs/paginated-tab-header.ts_10978_18582 | ngAfterContentChecked(): void {
// If the number of tab labels have changed, check if scrolling should be enabled
if (this._tabLabelCount != this._items.length) {
this.updatePagination();
this._tabLabelCount = this._items.length;
this._changeDetectorRef.markForCheck();
}
// If the sel... | {
"end_byte": 18582,
"start_byte": 10978,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/paginated-tab-header.ts"
} |
components/src/material/tabs/paginated-tab-header.ts_18585_25553 | _scrollToLabel(labelIndex: number) {
if (this.disablePagination) {
return;
}
const selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;
if (!selectedLabel) {
return;
}
// The view length is the visible width of the tab labels.
const viewLength = this._tabLis... | {
"end_byte": 25553,
"start_byte": 18585,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/paginated-tab-header.ts"
} |
components/src/material/tabs/public-api.ts_0_1135 | /**
* @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 {ScrollDirection, MatPaginatedTabHeader} from './paginated-tab-header';
export {
... | {
"end_byte": 1135,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/public-api.ts"
} |
components/src/material/tabs/tab-header.ts_0_2712 | /**
* @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 {
AfterContentChecked,
AfterContentInit,
AfterViewInit,
ChangeDetectionStrategy,
Component,
Conte... | {
"end_byte": 2712,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.ts"
} |
components/src/material/tabs/tab-config.ts_0_1695 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {InjectionToken} from '@angular/core';
/** Object that can be used to configure the default options for the t... | {
"end_byte": 1695,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-config.ts"
} |
components/src/material/tabs/tab-group.html_0_3526 | <mat-tab-header #tabHeader
[selectedIndex]="selectedIndex || 0"
[disableRipple]="disableRipple"
[disablePagination]="disablePagination"
[aria-label]="ariaLabel"
[aria-labelledby]="ariaLabelledby"
(indexFocused)="_focusChange... | {
"end_byte": 3526,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.html"
} |
components/src/material/tabs/README.md_0_95 | Please see the official documentation at https://material.angular.io/components/component/tabs
| {
"end_byte": 95,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/README.md"
} |
components/src/material/tabs/tab-header.html_0_1618 | <!--
Note that this intentionally uses a `div` instead of a `button`, because it's not part of
the regular tabs flow and is only here to support mouse users. It should also not be focusable.
-->
<div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-before"
#previousPaginator
mat-ripple
... | {
"end_byte": 1618,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.html"
} |
components/src/material/tabs/tabs.md_0_5541 | Angular Material tabs organize content into separate views where only one view can be
visible at a time. Each tab's label is shown in the tab header and the active
tab's label is designated with the animated ink bar. When the list of tab labels exceeds the width
of the header, pagination controls appear to let the user... | {
"end_byte": 5541,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tabs.md"
} |
components/src/material/tabs/tab-body.ts_0_8490 | /**
* @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 {Direction, Directionality} from '@angular/cdk/bidi';
imp... | {
"end_byte": 8490,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-body.ts"
} |
components/src/material/tabs/tab-body.ts_8492_8921 | /**
* The origin state is an internally used state that is set on a new tab body indicating if it
* began to the left or right of the prior selected index. For example, if the selected index was
* set to 1, and a new tab is created and selected at index 2, then the tab body would have an
* origin of right because i... | {
"end_byte": 8921,
"start_byte": 8492,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-body.ts"
} |
components/src/material/tabs/tab-label-wrapper.ts_0_1051 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Directive, ElementRef, Input, booleanAttribute, inject} from '@angular/core';
import {InkBarItem} from './in... | {
"end_byte": 1051,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-label-wrapper.ts"
} |
components/src/material/tabs/_tabs-common.scss_0_4367 | @use '../core/style/vendor-prefixes';
@use '../core/tokens/m2/mdc/tab-indicator' as tokens-mdc-tab-indicator;
@use '../core/tokens/m2/mdc/secondary-navigation-tab' as tokens-mdc-secondary-navigation-tab;
@use '../core/tokens/m2/mat/tab-header' as tokens-mat-tab-header;
@use '../core/tokens/m2/mat/tab-header-with-backgr... | {
"end_byte": 4367,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/_tabs-common.scss"
} |
components/src/material/tabs/_tabs-common.scss_4367_12265 | .create-token-slot(color, active-label-text-color);
}
.mdc-tab__ripple::before,
.mat-ripple-element {
@include token-utils.create-token-slot(background-color, active-ripple-color);
}
&:hover {
.mdc-tab__text-label {
@include token-utils.create-token-slot(color, ... | {
"end_byte": 12265,
"start_byte": 4367,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/_tabs-common.scss"
} |
components/src/material/tabs/_tabs-common.scss_12266_15298 | @mixin paginated-tab-header-container($inverted-header-selector: null) {
display: flex;
flex-grow: 1;
overflow: hidden;
z-index: 1;
@include token-utils.use-tokens(
tokens-mat-tab-header.$prefix,
tokens-mat-tab-header.get-token-slots()
) {
border-bottom-style: solid;
@include token-utils.cre... | {
"end_byte": 15298,
"start_byte": 12266,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/_tabs-common.scss"
} |
components/src/material/tabs/tab-header.scss_0_776 | @use '@angular/cdk';
@use './tabs-common';
@include tabs-common.paginated-tab-header;
.mat-mdc-tab-label-container {
@include tabs-common.paginated-tab-header-container('.mat-mdc-tab-group-inverted-header');
}
.mat-mdc-tab-labels {
@include tabs-common.paginated-tab-header-item-wrapper('.mat-mdc-tab-header');
}
... | {
"end_byte": 776,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-header.scss"
} |
components/src/material/tabs/BUILD.bazel_0_2591 | 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 = "tabs",
srcs = glob(
["**/*.ts"],
ex... | {
"end_byte": 2591,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/BUILD.bazel"
} |
components/src/material/tabs/tab-label.ts_0_1088 | /**
* @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, InjectionToken, inject} from '@angular/core';
import {CdkPortal} from '@angular/cdk/portal';
/**... | {
"end_byte": 1088,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-label.ts"
} |
components/src/material/tabs/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/tabs/index.ts"
} |
components/src/material/tabs/tab-body.scss_0_1375 | @use '../core/style/layout-common';
// Wraps each tab body. We need to add these styles ourselves,
// because MDC only provides styling for the tab header.
.mat-mdc-tab-body {
@include layout-common.fill();
display: block;
overflow: hidden;
outline: 0;
// Fix for auto content wrapping in IE11
flex-basis: ... | {
"end_byte": 1375,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-body.scss"
} |
components/src/material/tabs/ink-bar.ts_0_6633 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
Directive,
ElementRef,
InjectionToken,
Input,
OnDestroy,
OnInit,
QueryList,
booleanAttribut... | {
"end_byte": 6633,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/ink-bar.ts"
} |
components/src/material/tabs/tab-group.ts_0_2709 | /**
* @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 {
AfterContentChecked,
AfterContentInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
C... | {
"end_byte": 2709,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.ts"
} |
components/src/material/tabs/tab-group.ts_2710_10856 | class MatTabGroup implements AfterContentInit, AfterContentChecked, OnDestroy {
readonly _elementRef = inject(ElementRef);
private _changeDetectorRef = inject(ChangeDetectorRef);
_animationMode = inject(ANIMATION_MODULE_TYPE, {optional: true});
/**
* All tabs inside the tab group. This includes tabs that be... | {
"end_byte": 10856,
"start_byte": 2710,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.ts"
} |
components/src/material/tabs/tab-group.ts_10859_19395 | ngAfterContentChecked() {
// Don't clamp the `indexToSelect` immediately in the setter because it can happen that
// the amount of tabs changes before the actual change detection runs.
const indexToSelect = (this._indexToSelect = this._clampTabIndex(this._indexToSelect));
// If there is a change in sel... | {
"end_byte": 19395,
"start_byte": 10859,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.ts"
} |
components/src/material/tabs/tab-group.ts_19399_20214 | /** Callback for when the focused state of a tab has changed. */
_tabFocusChanged(focusOrigin: FocusOrigin, index: number) {
// Mouse/touch focus happens during the `mousedown`/`touchstart` phase which
// can cause the tab to be moved out from under the pointer, interrupting the
// click sequence (see #21... | {
"end_byte": 20214,
"start_byte": 19399,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-group.ts"
} |
components/src/material/tabs/tab.html_0_265 | <!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this
TemplateRef and use it in a Portal to render the tab content in the appropriate place in the
tab-group. -->
<ng-template><ng-content></ng-content></ng-template>
| {
"end_byte": 265,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab.html"
} |
components/src/material/tabs/tab-body.html_0_355 | <div class="mat-mdc-tab-body-content" #content
[@translateTab]="{
value: _position,
params: {animationDuration: animationDuration}
}"
(@translateTab.start)="_onTranslateTabStarted($event)"
(@translateTab.done)="_translateTabComplete.next($event)"
cdkScrollable>
<ng-template ma... | {
"end_byte": 355,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-body.html"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.scss_0_451 | @use '../tabs-common';
@include tabs-common.structural-styles;
@include tabs-common.paginated-tab-header;
.mat-mdc-tab-links {
@include tabs-common.paginated-tab-header-item-wrapper('.mat-mdc-tab-link-container');
}
.mat-mdc-tab-link-container {
@include tabs-common.paginated-tab-header-container;
}
.mat-mdc-ta... | {
"end_byte": 451,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.scss"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts_0_847 | import {Direction, Directionality} from '@angular/cdk/bidi';
import {ENTER, SPACE} from '@angular/cdk/keycodes';
import {SharedResizeObserver} from '@angular/cdk/observers/private';
import {
dispatchFakeEvent,
dispatchKeyboardEvent,
dispatchMouseEvent,
} from '@angular/cdk/testing/private';
import {Component, Que... | {
"end_byte": 847,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts_849_10127 | describe('MatTabNavBar', () => {
let dir: Direction = 'ltr';
let dirChange = new Subject();
let globalRippleOptions: RippleGlobalOptions;
let resizeEvents: Subject<ResizeObserverEntry[]>;
beforeEach(waitForAsync(() => {
globalRippleOptions = {};
TestBed.configureTestingModule({
imports: [
... | {
"end_byte": 10127,
"start_byte": 849,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts_10131_19146 | it('should manage tabindex properly', () => {
const fixture = TestBed.createComponent(SimpleTabNavBarTestApp);
fixture.detectChanges();
const tabLinks = fixture.nativeElement.querySelectorAll('.mat-mdc-tab-link');
expect(tabLinks[0].tabIndex).toBe(0);
expect(tabLinks[1].tabIndex).toBe(-1);
expe... | {
"end_byte": 19146,
"start_byte": 10131,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts_19148_22055 | describe('MatTabNavBar with enabled animations', () => {
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [MatTabsModule, BrowserAnimationsModule, TabsWithCustomAnimationDuration],
});
}));
it('should not throw when setting an animationDuration without units', fakeAsync(() => ... | {
"end_byte": 22055,
"start_byte": 19148,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.html_0_1413 | <!--
Note that this intentionally uses a `div` instead of a `button`, because it's not part of
the regular tabs flow and is only here to support mouse users. It should also not be focusable.
-->
<div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-before"
#previousPaginator
mat-ripple
... | {
"end_byte": 1413,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.html"
} |
components/src/material/tabs/tab-nav-bar/tab-link.html_0_299 | <span class="mdc-tab__ripple"></span>
<div
class="mat-mdc-tab-ripple"
mat-ripple
[matRippleTrigger]="elementRef.nativeElement"
[matRippleDisabled]="rippleDisabled"></div>
<span class="mdc-tab__content">
<span class="mdc-tab__text-label">
<ng-content></ng-content>
</span>
</span>
| {
"end_byte": 299,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-link.html"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.ts_0_8047 | /**
* @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 {
AfterContentChecked,
AfterContentInit,
AfterViewInit,
booleanAttribute,
ChangeDetectionStrategy,
... | {
"end_byte": 8047,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.ts"
} |
components/src/material/tabs/tab-nav-bar/tab-nav-bar.ts_8049_13956 | /**
* Link inside a `mat-tab-nav-bar`.
*/
@Component({
selector: '[mat-tab-link], [matTabLink]',
exportAs: 'matTabLink',
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
templateUrl: 'tab-link.html',
styleUrl: 'tab-link.css',
host: {
'class': 'mdc-tab mat-mdc-t... | {
"end_byte": 13956,
"start_byte": 8049,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-nav-bar.ts"
} |
components/src/material/tabs/tab-nav-bar/tab-link.scss_0_569 | @use '../../core/style/variables';
@use '../tabs-common';
// Wraps each link in the header
.mat-mdc-tab-link {
@include tabs-common.tab;
// Note that we only want to target direct descendant tabs.
.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs & {
flex-grow: 1;
}
// For the tab-link element, defa... | {
"end_byte": 569,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/tab-nav-bar/tab-link.scss"
} |
components/src/material/tabs/testing/tab-group-harness.ts_0_2522 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
parallel,
} from '@angular/cdk/tes... | {
"end_byte": 2522,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/testing/tab-group-harness.ts"
} |
components/src/material/tabs/testing/public-api.ts_0_386 | /**
* @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 './tab-group-harness';
export * from './tab-harness';
export * from './tab-harness-filters';
export * ... | {
"end_byte": 386,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/testing/public-api.ts"
} |
components/src/material/tabs/testing/tab-nav-panel-harness.ts_0_1308 | /**
* @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": 1308,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/testing/tab-nav-panel-harness.ts"
} |
components/src/material/tabs/testing/tab-harness.ts_0_3175 | /**
* @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,
HarnessLoader,
HarnessPredicate,
} f... | {
"end_byte": 3175,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material/tabs/testing/tab-harness.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.