_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
components/src/cdk-experimental/column-resize/column-resize-notifier.ts_0_2199
/** * @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 {inject, Injectable} from '@angular/core'; import {Observable, Subject} from 'rxjs'; /** Indicates the width...
{ "end_byte": 2199, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-notifier.ts" }
components/src/cdk-experimental/column-resize/resizable.ts_0_9238
/** * @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 { AfterViewInit, Directive, ElementRef, Injector, NgZone, OnDestroy, Type, ViewContainerRef, ...
{ "end_byte": 9238, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/resizable.ts" }
components/src/cdk-experimental/column-resize/column-resize-module.ts_0_1251
/** * @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 {CdkColumnResize} from './column-resize-directives/column-resize'; i...
{ "end_byte": 1251, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-module.ts" }
components/src/cdk-experimental/column-resize/overlay-handle.ts_0_7220
/** * @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 {AfterViewInit, Directive, ElementRef, OnDestroy, NgZone} from '@angular/core'; import {coerceCssPixelValue} ...
{ "end_byte": 7220, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/overlay-handle.ts" }
components/src/cdk-experimental/column-resize/public-api.ts_0_794
/** * @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 './column-resize'; export * from './column-resize-directives/column-resize'; export * from './column-r...
{ "end_byte": 794, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/public-api.ts" }
components/src/cdk-experimental/column-resize/selectors.ts_0_534
/** * @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 */ // TODO: Figure out how to remove `mat-` classes from the CDK part of the // column resize implementation. export c...
{ "end_byte": 534, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/selectors.ts" }
components/src/cdk-experimental/column-resize/event-dispatcher.ts_0_3282
/** * @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, NgZone, inject} from '@angular/core'; import {combineLatest, MonoTypeOperatorFunction, Observabl...
{ "end_byte": 3282, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/event-dispatcher.ts" }
components/src/cdk-experimental/column-resize/BUILD.bazel_0_543
load("//tools:defaults.bzl", "ng_module") package(default_visibility = ["//visibility:public"]) ng_module( name = "column-resize", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src/cdk-experimental/popover-edit", "//src/cdk/bidi", "//src/c...
{ "end_byte": 543, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/BUILD.bazel" }
components/src/cdk-experimental/column-resize/resize-ref.ts_0_531
/** * @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 {ElementRef} from '@angular/core'; import {OverlayRef} from '@angular/cdk/overlay'; /** Tracks state of resi...
{ "end_byte": 531, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/resize-ref.ts" }
components/src/cdk-experimental/column-resize/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/cdk-experimental/column-resize/index.ts" }
components/src/cdk-experimental/column-resize/column-size-store.ts_0_684
/** * @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} from '@angular/core'; /** * Can be provided by the host application to enable persistence of c...
{ "end_byte": 684, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-size-store.ts" }
components/src/cdk-experimental/column-resize/column-resize-directives/column-resize.ts_0_1287
/** * @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, NgZone, inject} from '@angular/core'; import {CdkTable} from '@angular/cdk/table'; i...
{ "end_byte": 1287, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-directives/column-resize.ts" }
components/src/cdk-experimental/column-resize/column-resize-directives/column-resize-flex.ts_0_1288
/** * @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, NgZone, inject} from '@angular/core'; import {CdkTable} from '@angular/cdk/table'; i...
{ "end_byte": 1288, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-directives/column-resize-flex.ts" }
components/src/cdk-experimental/column-resize/column-resize-directives/default-enabled-column-resize-flex.ts_0_1310
/** * @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, NgZone, inject} from '@angular/core'; import {CdkTable} from '@angular/cdk/table'; i...
{ "end_byte": 1310, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-directives/default-enabled-column-resize-flex.ts" }
components/src/cdk-experimental/column-resize/column-resize-directives/constants.ts_0_835
/** * @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 {Provider} from '@angular/core'; import {ColumnResizeNotifier, ColumnResizeNotifierSource} from '../column-re...
{ "end_byte": 835, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-directives/constants.ts" }
components/src/cdk-experimental/column-resize/column-resize-directives/default-enabled-column-resize.ts_0_1318
/** * @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, NgZone, inject} from '@angular/core'; import {CdkTable} from '@angular/cdk/table'; i...
{ "end_byte": 1318, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize-directives/default-enabled-column-resize.ts" }
components/src/cdk-experimental/scrolling/virtual-scroll.e2e.spec.ts_0_5509
import {browser, by, element, ElementFinder} from 'protractor'; import {ILocation, ISize} from 'selenium-webdriver'; declare var window: any; describe('autosize cdk-virtual-scroll', () => { let viewport: ElementFinder; describe('with uniform items', () => { beforeEach(async () => { await browser.get('/...
{ "end_byte": 5509, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/virtual-scroll.e2e.spec.ts" }
components/src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts_0_4049
import {CdkVirtualScrollViewport, ScrollingModule} from '@angular/cdk/scrolling'; import {Component, Input, ViewChild, ViewEncapsulation} from '@angular/core'; import {ComponentFixture, TestBed, fakeAsync, flush, waitForAsync} from '@angular/core/testing'; import {ScrollingModule as ExperimentalScrollingModule} from '....
{ "end_byte": 4049, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts" }
components/src/cdk-experimental/scrolling/public-api.ts_0_284
/** * @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 './auto-size-virtual-scroll'; export * from './scrolling-module';
{ "end_byte": 284, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/public-api.ts" }
components/src/cdk-experimental/scrolling/scrolling-module.ts_0_439
/** * @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 {CdkAutoSizeVirtualScroll} from './auto-size-virtual-scroll'; @NgMod...
{ "end_byte": 439, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/scrolling-module.ts" }
components/src/cdk-experimental/scrolling/scrolling.md_0_1279
**Warning: this component is still experimental. It may have bugs and the API may change at any time** ### Scrolling over items with different sizes When the items have different or unknown sizes, you can use the `AutoSizeVirtualScrollStrategy`. This can be added to your viewport by using the `autosize` directive. ``...
{ "end_byte": 1279, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/scrolling.md" }
components/src/cdk-experimental/scrolling/BUILD.bazel_0_1016
load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") package(default_visibility = ["//visibility:public"]) ng_module( name = "scrolling", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.t...
{ "end_byte": 1016, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/BUILD.bazel" }
components/src/cdk-experimental/scrolling/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/cdk-experimental/scrolling/index.ts" }
components/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts_0_6480
/** * @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 {coerceNumberProperty, NumberInput} from '@angular/cdk/coercion'; import {ListRange} from '@angular/cdk/colle...
{ "end_byte": 6480, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts" }
components/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts_6483_15474
private _updateRenderedContentAfterScroll() { const viewport = this._viewport!; // The current scroll offset. const scrollOffset = viewport.measureScrollOffset(); // The delta between the current scroll offset and the previously recorded scroll offset. let scrollDelta = scrollOffset - this._lastScr...
{ "end_byte": 15474, "start_byte": 6483, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts" }
components/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts_15477_20257
private _renderContentForCurrentOffset() { const viewport = this._viewport!; const scrollOffset = viewport.measureScrollOffset(); this._lastScrollOffset = scrollOffset; this._removalFailures = 0; const itemSize = this._averager.getAverageItemSize(); const firstVisibleIndex = Math.min( vie...
{ "end_byte": 20257, "start_byte": 15477, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts" }
components/src/cdk-experimental/popover-edit/table-directives.ts_0_6430
/** * @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 {FocusTrap} from '@angular/cdk/a11y'; import {OverlayRef, OverlaySizeConfig, PositionStrategy} from '@angular/...
{ "end_byte": 6430, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/table-directives.ts" }
components/src/cdk-experimental/popover-edit/table-directives.ts_6431_14151
@Directive({ selector: '[cdkPopoverEdit]:not([cdkPopoverEditTabOut])', host: POPOVER_EDIT_HOST_BINDINGS, inputs: POPOVER_EDIT_INPUTS, }) export class CdkPopoverEdit<C> implements AfterViewInit, OnDestroy { protected readonly services = inject(EditServices); protected readonly elementRef = inject(ElementRef); ...
{ "end_byte": 14151, "start_byte": 6431, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/table-directives.ts" }
components/src/cdk-experimental/popover-edit/table-directives.ts_14152_18118
@Directive({ selector: '[cdkRowHoverContent]', }) export class CdkRowHoverContent implements AfterViewInit, OnDestroy { protected readonly services = inject(EditServices); protected readonly elementRef = inject(ElementRef); protected readonly templateRef = inject<TemplateRef<any>>(TemplateRef); protected read...
{ "end_byte": 18118, "start_byte": 14152, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/table-directives.ts" }
components/src/cdk-experimental/popover-edit/popover-edit-module.ts_0_829
/** * @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 {OverlayModule} from '@angular/cdk/overlay'; import { CdkPopoverEdi...
{ "end_byte": 829, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit-module.ts" }
components/src/cdk-experimental/popover-edit/polyfill.ts_0_623
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** closest implementation that is able to start from non-Element Nodes. */ export function closest( element: Even...
{ "end_byte": 623, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/polyfill.ts" }
components/src/cdk-experimental/popover-edit/public-api.ts_0_602
/** * @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 './edit-event-dispatcher'; export * from './edit-ref'; export * from './focus-dispatcher'; export * fr...
{ "end_byte": 602, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/public-api.ts" }
components/src/cdk-experimental/popover-edit/focus-escape-notifier.ts_0_2251
/** * @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, NgZone, inject} from '@angular/core'; import {DOCUMENT} from '@angular/common'; import {FocusTra...
{ "end_byte": 2251, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/focus-escape-notifier.ts" }
components/src/cdk-experimental/popover-edit/form-value-container.ts_0_1031
/** * @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 interface Entry<FormValue> { value?: FormValue; } /** * A convenience class for preserving unsaved form s...
{ "end_byte": 1031, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/form-value-container.ts" }
components/src/cdk-experimental/popover-edit/edit-event-dispatcher.ts_0_1389
/** * @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, NgZone, inject} from '@angular/core'; import {combineLatest, MonoTypeOperatorFunction, Observabl...
{ "end_byte": 1389, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/edit-event-dispatcher.ts" }
components/src/cdk-experimental/popover-edit/edit-event-dispatcher.ts_1390_9211
@Injectable() export class EditEventDispatcher<R> { private readonly _ngZone = inject(NgZone); /** A subject that indicates which table cell is currently editing (unless it is disabled). */ readonly editing = new Subject<Element | null>(); /** A subject that indicates which table row is currently hovered. */ ...
{ "end_byte": 9211, "start_byte": 1390, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/edit-event-dispatcher.ts" }
components/src/cdk-experimental/popover-edit/edit-event-dispatcher.ts_9213_10252
function computeHoverContentState([ firstRow, lastRow, activeRow, hoverRow, ]: (Element | null)[]): Map<Element, HoverContentState> { const hoverContentState = new Map<Element, HoverContentState>(); // Add focusable rows. for (const focussableRow of [ firstRow, lastRow, activeRow && activeRow...
{ "end_byte": 10252, "start_byte": 9213, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/edit-event-dispatcher.ts" }
components/src/cdk-experimental/popover-edit/lens-directives.ts_0_6050
/** * @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 {Subject} from 'rxjs'; import {Directive, ElementRef, EventEmitter, OnDestroy, OnInit, Input, inject} from '@...
{ "end_byte": 6050, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/lens-directives.ts" }
components/src/cdk-experimental/popover-edit/constants.ts_0_862
/** * @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 */ /** Selector for finding table cells. */ export const CELL_SELECTOR = '.cdk-cell, .mat-cell, td'; /** Selector for ...
{ "end_byte": 862, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/constants.ts" }
components/src/cdk-experimental/popover-edit/edit-ref.ts_0_2959
/** * @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, OnDestroy, afterNextRender, inject, Injector} from '@angular/core'; import {ControlContainer} fr...
{ "end_byte": 2959, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/edit-ref.ts" }
components/src/cdk-experimental/popover-edit/BUILD.bazel_0_1105
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite") package(default_visibility = ["//visibility:public"]) ng_module( name = "popover-edit", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src/cdk/a11y", "//src/cdk/bidi"...
{ "end_byte": 1105, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/BUILD.bazel" }
components/src/cdk-experimental/popover-edit/focus-dispatcher.ts_0_3244
/** * @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 {Directionality} from '@angular/cdk/bidi'; import {LEFT_ARROW, UP_ARROW, RIGHT_ARROW, DOWN_ARROW} from '@angu...
{ "end_byte": 3244, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/focus-dispatcher.ts" }
components/src/cdk-experimental/popover-edit/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/cdk-experimental/popover-edit/index.ts" }
components/src/cdk-experimental/popover-edit/edit-services.ts_0_1369
/** * @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, NgZone, inject} from '@angular/core'; import {FocusTrapFactory} from '@angular/cdk/a11y'; import...
{ "end_byte": 1369, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/edit-services.ts" }
components/src/cdk-experimental/popover-edit/popover-edit.spec.ts_0_7044
import {BidiModule, Direction} from '@angular/cdk/bidi'; import {DataSource} from '@angular/cdk/collections'; import {DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, TAB, UP_ARROW} from '@angular/cdk/keycodes'; import {CdkTableModule} from '@angular/cdk/table'; import {dispatchKeyboardEvent} from '@angular/cdk/testing/private'; i...
{ "end_byte": 7044, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit.spec.ts" }
components/src/cdk-experimental/popover-edit/popover-edit.spec.ts_7046_10011
@Component({ template: ` <div #table [dir]="direction"> <cdk-table cdk-table editable [dataSource]="dataSource"> <ng-container cdkColumnDef="before"> <cdk-cell *cdkCellDef="let element"> just a cell </cdk-cell> </ng-container> <ng-container cdkColumnDef="name"> ...
{ "end_byte": 10011, "start_byte": 7046, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit.spec.ts" }
components/src/cdk-experimental/popover-edit/popover-edit.spec.ts_10013_17824
describe('CDK Popover Edit', () => { for (const [componentClass, label] of testCases) { describe(label, () => { let component: BaseTestComponent; let fixture: ComponentFixture<BaseTestComponent>; beforeEach(fakeAsync(() => { TestBed.configureTestingModule({ imports: [CdkTableM...
{ "end_byte": 17824, "start_byte": 10013, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit.spec.ts" }
components/src/cdk-experimental/popover-edit/popover-edit.spec.ts_17832_23281
describe('focus manipulation', () => { const getRowCells = () => component.getRows().map(getCells); describe('tabindex', () => { it('sets tabindex to 0 on editable cells', () => { expect(component.getEditCell().getAttribute('tabindex')).toBe('0'); }); it('unse...
{ "end_byte": 23281, "start_byte": 17832, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit.spec.ts" }
components/src/cdk-experimental/popover-edit/popover-edit.spec.ts_23282_33370
{ function expectPixelsToEqual(actual: number, expected: number) { expect(Math.floor(actual)).toBe(Math.floor(expected)); } it('shows a lens with the value from the table', fakeAsync(() => { component.openLens(); fixture.detectChanges(); expect(component...
{ "end_byte": 33370, "start_byte": 23282, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit.spec.ts" }
components/src/cdk-experimental/popover-edit/popover-edit.spec.ts_33380_35793
it('sets focus on the first input in the lens', fakeAsync(() => { component.openLens(); fixture.detectChanges(); expect(document.activeElement).toBe(component.getNameInput()); clearLeftoverTimers(); })); it('returns focus to the edited cell after closing', fakeA...
{ "end_byte": 35793, "start_byte": 33380, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/popover-edit/popover-edit.spec.ts" }
components/src/cdk-experimental/selection/selection-set.ts_0_3855
/** * @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 {TrackByFunction} from '@angular/core'; import {Subject} from 'rxjs'; /** * Maintains a set of selected val...
{ "end_byte": 3855, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection-set.ts" }
components/src/cdk-experimental/selection/selection.ts_0_6472
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion'; import {CollectionViewer, DataSource, isD...
{ "end_byte": 6472, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection.ts" }
components/src/cdk-experimental/selection/public-api.ts_0_437
/** * @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 './selection'; export * from './select-all'; export * from './selection-toggle'; export * from './sele...
{ "end_byte": 437, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/public-api.ts" }
components/src/cdk-experimental/selection/selection-toggle.ts_0_3196
/** * @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 {coerceNumberProperty, NumberInput} from '@angular/cdk/coercion'; import {Directive, Input, OnDestroy, OnInit...
{ "end_byte": 3196, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection-toggle.ts" }
components/src/cdk-experimental/selection/row-selection.ts_0_1268
/** * @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 {coerceNumberProperty, NumberInput} from '@angular/cdk/coercion'; import {Directive, Input, inject} from '@an...
{ "end_byte": 1268, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/row-selection.ts" }
components/src/cdk-experimental/selection/selection-column.ts_0_3351
/** * @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 {CdkCellDef, CdkColumnDef, CdkHeaderCellDef, CdkTable} from '@angular/cdk/table'; import { Component, Inp...
{ "end_byte": 3351, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection-column.ts" }
components/src/cdk-experimental/selection/selection.spec.ts_0_9312
import {AsyncPipe} from '@angular/common'; import {CdkTableModule} from '@angular/cdk/table'; import {ChangeDetectorRef, Component, ElementRef, ViewChild, inject} from '@angular/core'; import {waitForAsync, ComponentFixture, fakeAsync, flush, TestBed} from '@angular/core/testing'; import {CdkSelection} from './selecti...
{ "end_byte": 9312, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection.spec.ts" }
components/src/cdk-experimental/selection/selection.spec.ts_9314_17309
describe('CdkSelection with multiple = false', () => { let fixture: ComponentFixture<ListWithSingleSelection>; let component: ListWithSingleSelection; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [CdkSelectionModule, ListWithSingleSelection], }); })); beforeEach(()...
{ "end_byte": 17309, "start_byte": 9314, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection.spec.ts" }
components/src/cdk-experimental/selection/selection.spec.ts_17311_23872
@Component({ template: ` <ul cdkSelection [dataSource]="data" [cdkSelectionMultiple]="true" (cdkSelectionChange)="selectionChange = $event"> <button cdkSelectAll #toggleAll="cdkSelectAll" (click)="toggleAll.toggle($event)"> {{selectAllState(toggleAll.indeterminate | async, toggleAll.checked ...
{ "end_byte": 23872, "start_byte": 17311, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection.spec.ts" }
components/src/cdk-experimental/selection/selection-module.ts_0_832
/** * @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 {CdkTableModule} from '@angular/cdk/table'; import {NgModule} from '@angular/core'; import {CdkRowSelection}...
{ "end_byte": 832, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/selection-module.ts" }
components/src/cdk-experimental/selection/select-all.ts_0_3850
/** * @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, OnDestroy, OnInit, inject} from '@angular/core'; import {NG_VALUE_ACCESSOR} from '@angular/forms'...
{ "end_byte": 3850, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/select-all.ts" }
components/src/cdk-experimental/selection/BUILD.bazel_0_846
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite") package(default_visibility = ["//visibility:public"]) ng_module( name = "selection", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src:dev_mode_types", "//src/cdk/co...
{ "end_byte": 846, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/cdk-experimental/selection/BUILD.bazel" }
components/src/cdk-experimental/selection/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/cdk-experimental/selection/index.ts" }
components/src/material-luxon-adapter/require-config.js_0_265
// Require.js is being used by the karma bazel rules and needs to be configured to properly // load AMD modules which are not explicitly named in their output bundle. require.config({ paths: { 'luxon': '/base/npm/node_modules/luxon/build/amd/luxon', }, });
{ "end_byte": 265, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/require-config.js" }
components/src/material-luxon-adapter/public-api.ts_0_237
/** * @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 './adapter/index';
{ "end_byte": 237, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/public-api.ts" }
components/src/material-luxon-adapter/BUILD.bazel_0_1049
load("//tools:defaults.bzl", "ng_module", "ng_package", "ng_test_library", "ng_web_test_suite") package(default_visibility = ["//visibility:public"]) ng_module( name = "material-luxon-adapter", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src:dev_mode_ty...
{ "end_byte": 1049, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/BUILD.bazel" }
components/src/material-luxon-adapter/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-luxon-adapter/index.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts_0_625
/** * @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 {LOCALE_ID} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {DateAdapter, MAT_DAT...
{ "end_byte": 625, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts_626_7391
() => { let adapter: DateAdapter<DateTime>; beforeEach(() => { TestBed.configureTestingModule({imports: [LuxonDateModule]}); adapter = TestBed.inject(DateAdapter); adapter.setLocale('en-US'); }); it('should get year', () => { expect(adapter.getYear(DateTime.local(2017, JAN, 1))).toBe(2017); ...
{ "end_byte": 7391, "start_byte": 626, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts_7395_14436
).not.toBeNull(); expect(adapter.isDateInstance(d)).toBe(true); expect(adapter.isValid(d as DateTime)) .withContext('Expected to parse as "invalid date" object') .toBe(false); }); it('should format date according to given format', () => { expect(adapter.format(DateTime.local(2017, JAN, 2), ...
{ "end_byte": 14436, "start_byte": 7395, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts_14440_21590
itialLocale = date.locale; expect(initialLocale).toBeTruthy(); adapter.setLocale('ja-JP'); adapter.getYear(date); adapter.getMonth(date); adapter.getDate(date); adapter.getDayOfWeek(date); adapter.getYearName(date); adapter.getNumDaysInMonth(date); adapter.clone(date); adapter.pa...
{ "end_byte": 21590, "start_byte": 14440, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts_21592_24904
=> { TestBed.configureTestingModule({ imports: [LuxonDateModule], providers: [{provide: LOCALE_ID, useValue: 'fr-FR'}], }); adapter = TestBed.inject(DateAdapter); }); it('should take the default locale id from the LOCALE_ID injection token', () => { const date = adapter.format(DateTim...
{ "end_byte": 24904, "start_byte": 21592, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.spec.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-formats.ts_0_553
/** * @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 {MatDateFormats} from '@angular/material/core'; export const MAT_LUXON_DATE_FORMATS: MatDateFormats = { pa...
{ "end_byte": 553, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-formats.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.ts_0_1944
/** * @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, InjectionToken, inject} from '@angular/core'; import {DateAdapter, MAT_DATE_LOCALE} from '@angul...
{ "end_byte": 1944, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.ts_1945_9809
@Injectable() export class LuxonDateAdapter extends DateAdapter<LuxonDateTime> { private _useUTC: boolean; private _firstDayOfWeek: number; private _defaultOutputCalendar: LuxonCalendarSystem; constructor(...args: unknown[]); constructor() { super(); const dateLocale = inject(MAT_DATE_LOCALE, {opti...
{ "end_byte": 9809, "start_byte": 1945, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.ts" }
components/src/material-luxon-adapter/adapter/luxon-date-adapter.ts_9813_10251
override addSeconds(date: LuxonDateTime, amount: number): LuxonDateTime { return date.reconfigure(this._getOptions()).plus({seconds: amount}); } /** Gets the options that should be used when constructing a new `DateTime` object. */ private _getOptions(): LuxonDateTimeOptions { return { zone: this._...
{ "end_byte": 10251, "start_byte": 9813, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/luxon-date-adapter.ts" }
components/src/material-luxon-adapter/adapter/index.ts_0_1210
/** * @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, Provider} from '@angular/core'; import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, M...
{ "end_byte": 1210, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/adapter/index.ts" }
components/src/material-luxon-adapter/schematics/BUILD.bazel_0_908
load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin") load("//tools:defaults.bzl", "pkg_npm", "ts_library") package(default_visibility = ["//visibility:public"]) copy_to_bin( name = "schematics_assets", srcs = glob(["**/*.json"]), ) ts_library( name = "schematics", srcs = glob( ["**/*....
{ "end_byte": 908, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/schematics/BUILD.bazel" }
components/src/material-luxon-adapter/schematics/ng-add/index.ts_0_455
/** * @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} from '@angular-devkit/schematics'; export default function (): Rule { // Noop schematic so the CLI ...
{ "end_byte": 455, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-luxon-adapter/schematics/ng-add/index.ts" }
components/src/e2e-app/index.html_0_807
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Angular Material</title> <base href="/"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" r...
{ "end_byte": 807, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/index.html" }
components/src/e2e-app/main.ts_0_1119
import {enableProdMode} from '@angular/core'; import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {provideRouter} from '@angular/router'; import {E2eApp} from './components/e2e-app/e2e-app'; ...
{ "end_byte": 1119, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/main.ts" }
components/src/e2e-app/test_suite.bzl_0_402
load("//tools:defaults.bzl", "protractor_web_test_suite") def e2e_test_suite(name, data = [], tags = ["e2e"], deps = []): protractor_web_test_suite( name = name, configuration = "//src/e2e-app:protractor.conf.js", data = data, on_prepare = "//src/e2e-app:start-devserver.js", ...
{ "end_byte": 402, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/test_suite.bzl" }
components/src/e2e-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/e2e-app/start-devserver.js" }
components/src/e2e-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/e2e-app/protractor.conf.js" }
components/src/e2e-app/BUILD.bazel_0_2567
load("//tools:defaults.bzl", "devmode_esbuild", "esbuild_config", "http_server", "ng_module", "sass_binary") load("//src/components-examples:config.bzl", "ALL_EXAMPLES") load("//tools/angular:index.bzl", "LINKER_PROCESSED_FW_PACKAGES") package(default_visibility = ["//visibility:public"]) # List of dependencies that ...
{ "end_byte": 2567, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/BUILD.bazel" }
components/src/e2e-app/esbuild.config.mjs_0_271
/** * @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 default { resolveExtensions: ['.js'], format: 'esm', };
{ "end_byte": 271, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/esbuild.config.mjs" }
components/src/e2e-app/theme.scss_0_300
@use '@angular/material' as mat; $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-hierarchy($theme);
{ "end_byte": 300, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/theme.scss" }
components/src/e2e-app/components/component-harness-e2e.ts_0_636
import {Component} from '@angular/core'; import {TestMainComponent} from '@angular/cdk/testing/tests'; @Component({ selector: 'component-harness-e2e', template: ` <button id="reset-state" (click)="reset()">Reset state</button> @if (isShown) { <test-main></test-main> } `, imports: [TestMainCo...
{ "end_byte": 636, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/component-harness-e2e.ts" }
components/src/e2e-app/components/home.ts_0_150
import {Component} from '@angular/core'; @Component({ selector: 'home', template: `<p>Welcome to the e2e tests app</p>`, }) export class Home {}
{ "end_byte": 150, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/home.ts" }
components/src/e2e-app/components/slider-e2e.ts_0_911
/** * @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 {Component} from '@angular/core'; import {MatSliderModule} from '@angular/material/slider'; @Component({ s...
{ "end_byte": 911, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/slider-e2e.ts" }
components/src/e2e-app/components/virtual-scroll/virtual-scroll-e2e.ts_0_625
import {Component} from '@angular/core'; import {ScrollingModule} from '@angular/cdk/scrolling'; import {ScrollingModule as ExperimentalScrollingModule} from '@angular/cdk-experimental/scrolling'; const itemSizeSample = [100, 25, 50, 50, 100, 200, 75, 100, 50, 250]; @Component({ selector: 'virtual-scroll-e2e', te...
{ "end_byte": 625, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/virtual-scroll/virtual-scroll-e2e.ts" }
components/src/e2e-app/components/virtual-scroll/virtual-scroll-e2e.html_0_855
<section class="demo-virtual-scroll-uniform-size"> <h3>Uniform size</h3> <cdk-virtual-scroll-viewport class="demo-viewport" autosize tabindex="0"> <div *cdkVirtualFor="let size of uniformItems; let i = index; let odd = odd" class="demo-item" [style.height.px]="size" [class.demo-odd]="odd" [attr.data-in...
{ "end_byte": 855, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/virtual-scroll/virtual-scroll-e2e.html" }
components/src/e2e-app/components/virtual-scroll/virtual-scroll-e2e.css_0_157
.demo-viewport { height: 300px; width: 300px; box-shadow: 0 0 0 1px black; } .demo-item { background: magenta; } .demo-odd { background: cyan; }
{ "end_byte": 157, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/virtual-scroll/virtual-scroll-e2e.css" }
components/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.ts_0_581
import {Component, inject} from '@angular/core'; import {Overlay, OverlayContainer} from '@angular/cdk/overlay'; import {ScrollingModule} from '@angular/cdk/scrolling'; @Component({ selector: 'block-scroll-strategy-e2e', templateUrl: 'block-scroll-strategy-e2e.html', styleUrl: 'block-scroll-strategy-e2e.css', ...
{ "end_byte": 581, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.ts" }
components/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.css_0_392
.demo-spacer { background: #3f51b5; margin-bottom: 10px; } .demo-spacer-vertical { width: 100px; height: 3000px; } .demo-spacer-horizontal { width: 3000px; height: 100px; } .demo-scroller { width: 100px; height: 100px; overflow: auto; position: absolute; top: 100px; left: 200px; } .demo-scro...
{ "end_byte": 392, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.css" }
components/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.html_0_485
<p> <button id="enable" (click)="scrollStrategy.enable()">Enable scroll blocking</button> <button id="disable" (click)="scrollStrategy.disable()">Disable scroll blocking</button> </p> <div class="demo-spacer demo-spacer-vertical"></div> <!-- this one needs a tabindex so protractor can trigger key presses inside it ...
{ "end_byte": 485, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.html" }
components/src/e2e-app/components/e2e-app/e2e-app.ts_0_628
import {Component, ViewEncapsulation} from '@angular/core'; import {MatListModule} from '@angular/material/list'; import {RouterLink, RouterOutlet} from '@angular/router'; @Component({ selector: 'e2e-app', templateUrl: 'e2e-app.html', encapsulation: ViewEncapsulation.None, imports: [MatListModule, RouterLink, ...
{ "end_byte": 628, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/e2e-app/e2e-app.ts" }
components/src/e2e-app/components/e2e-app/e2e-app.html_0_339
<button (click)="showLinks = !showLinks">Toggle Navigation Links</button> <main> @if (showLinks) { <mat-nav-list (click)="showLinks = false"> @for (link of navLinks; track link) { <a mat-list-item [routerLink]="[link.path]">{{link.title}}</a> } </mat-nav-list> } <router-outlet></rout...
{ "end_byte": 339, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/e2e-app/components/e2e-app/e2e-app.html" }
components/src/material-moment-adapter/public-api.ts_0_237
/** * @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 './adapter/index';
{ "end_byte": 237, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-moment-adapter/public-api.ts" }
components/src/material-moment-adapter/BUILD.bazel_0_1029
load("//tools:defaults.bzl", "ng_module", "ng_package", "ng_test_library", "ng_web_test_suite") package(default_visibility = ["//visibility:public"]) ng_module( name = "material-moment-adapter", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src:dev_mode_t...
{ "end_byte": 1029, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material-moment-adapter/BUILD.bazel" }