_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/material-experimental/public-api.ts_0_231 | /**
* @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 './version';
| {
"end_byte": 231,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/public-api.ts"
} |
components/src/material-experimental/config.bzl_0_1308 | entryPoints = [
"column-resize",
"menubar",
"popover-edit",
"selection",
]
# List of all non-testing entry-points of the Angular material-experimental package.
MATERIAL_EXPERIMENTAL_ENTRYPOINTS = [
ep
for ep in entryPoints
if not "/testing" in ep
]
# List of all testing entry-points of the... | {
"end_byte": 1308,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/config.bzl"
} |
components/src/material-experimental/README.md_0_2488 | # Angular Material Experimental
This package contains prototypes and experiments in development for Angular Material. Nothing in
this package is considered stable or production ready. While the package releases with Angular
Material, breaking changes may occur with any release.
## Using the experimental components ba... | {
"end_byte": 2488,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/README.md"
} |
components/src/material-experimental/BUILD.bazel_0_897 | load(
"//src/material-experimental:config.bzl",
"MATERIAL_EXPERIMENTAL_SCSS_LIBS",
"MATERIAL_EXPERIMENTAL_TARGETS",
"MATERIAL_EXPERIMENTAL_TESTING_TARGETS",
)
load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
... | {
"end_byte": 897,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/BUILD.bazel"
} |
components/src/material-experimental/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-experimental/index.ts"
} |
components/src/material-experimental/version.ts_0_362 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Version} from '@angular/core';
/** Current version of the Material experimental package. */
export const VE... | {
"end_byte": 362,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/version.ts"
} |
components/src/material-experimental/menubar/public-api.ts_0_297 | /**
* @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 './menubar';
export * from './menubar-item';
export * from './menubar-module';
| {
"end_byte": 297,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/public-api.ts"
} |
components/src/material-experimental/menubar/menubar-item.html_0_26 | <ng-content></ng-content>
| {
"end_byte": 26,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar-item.html"
} |
components/src/material-experimental/menubar/menubar.html_0_26 | <ng-content></ng-content>
| {
"end_byte": 26,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar.html"
} |
components/src/material-experimental/menubar/menubar-item.spec.ts_0_2229 | import {Component, ElementRef, ViewChild} from '@angular/core';
import {ComponentFixture, waitForAsync, TestBed} from '@angular/core/testing';
import {CdkMenuItem, CdkMenuModule, CdkMenu} from '@angular/cdk/menu';
import {MatMenuBarItem} from './menubar-item';
import {MatMenuBarModule} from './menubar-module';
describ... | {
"end_byte": 2229,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar-item.spec.ts"
} |
components/src/material-experimental/menubar/menubar-item.ts_0_1555 | /**
* @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, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
import {CdkMenuItem} from '@ang... | {
"end_byte": 1555,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar-item.ts"
} |
components/src/material-experimental/menubar/menubar.spec.ts_0_2007 | import {Component, ViewChild, ElementRef} from '@angular/core';
import {RIGHT_ARROW} from '@angular/cdk/keycodes';
import {CdkMenuBar} from '@angular/cdk/menu';
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {dispatchKeyboardEvent} from '../../cdk/testing/private';
import {MatMenu... | {
"end_byte": 2007,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar.spec.ts"
} |
components/src/material-experimental/menubar/menubar-module.ts_0_524 | /**
* @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 {CdkMenuModule} from '@angular/cdk/menu';
import {MatMenuBar} from '.... | {
"end_byte": 524,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar-module.ts"
} |
components/src/material-experimental/menubar/BUILD.bazel_0_1186 | load(
"//tools:defaults.bzl",
"ng_module",
"ng_test_library",
"ng_web_test_suite",
"sass_binary",
"sass_library",
)
package(default_visibility = ["//visibility:public"])
ng_module(
name = "menubar",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets... | {
"end_byte": 1186,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/BUILD.bazel"
} |
components/src/material-experimental/menubar/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-experimental/menubar/index.ts"
} |
components/src/material-experimental/menubar/menubar.ts_0_1084 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
import {CDK_MENU, CdkMenuBar, C... | {
"end_byte": 1084,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/menubar/menubar.ts"
} |
components/src/material-experimental/column-resize/resize-strategy.ts_0_989 | /**
* @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, Provider} from '@angular/core';
import {_CoalescedStyleScheduler, _COALESCED_STYLE_SCHEDULER} fr... | {
"end_byte": 989,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/resize-strategy.ts"
} |
components/src/material-experimental/column-resize/column-resize.spec.ts_0_8559 | import {BidiModule} from '@angular/cdk/bidi';
import {DataSource} from '@angular/cdk/collections';
import {ESCAPE} from '@angular/cdk/keycodes';
import {ChangeDetectionStrategy, Component, Directive, ElementRef, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, flush} from '@angular/core/te... | {
"end_byte": 8559,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize.spec.ts"
} |
components/src/material-experimental/column-resize/column-resize.spec.ts_8561_12113 | @Directive()
abstract class BaseTestComponentRtl extends BaseTestComponent {
override direction = 'rtl';
override getColumnOriginPosition(index: number): number {
return this.getColumnElement(index).offsetLeft;
}
override updateResizeWithMouseInProgress(totalDelta: number): void {
super.updateResizeWi... | {
"end_byte": 12113,
"start_byte": 8561,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize.spec.ts"
} |
components/src/material-experimental/column-resize/column-resize.spec.ts_12115_21374 | describe('Material Popover Edit', () => {
for (const [resizeModule, componentClass, label] of testCases) {
describe(label, () => {
let component: BaseTestComponent;
let fixture: ComponentFixture<BaseTestComponent>;
beforeEach(fakeAsync(() => {
jasmine.addMatchers(approximateMatcher);
... | {
"end_byte": 21374,
"start_byte": 12115,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize.spec.ts"
} |
components/src/material-experimental/column-resize/column-resize-module.ts_0_1718 | /**
* @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 {OverlayModul... | {
"end_byte": 1718,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize-module.ts"
} |
components/src/material-experimental/column-resize/overlay-handle.ts_0_2409 | /**
* @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,
ElementRef,
NgZone,
ViewChild,
ViewEncapsulation,
inject,... | {
"end_byte": 2409,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/overlay-handle.ts"
} |
components/src/material-experimental/column-resize/public-api.ts_0_703 | /**
* @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-directives/column-resize';
export * from './column-resize-directives/column-resize-fl... | {
"end_byte": 703,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/public-api.ts"
} |
components/src/material-experimental/column-resize/_column-resize-theme.scss_0_3942 | @use '@angular/material' as mat;
@mixin color($theme) {
$non-resizable-hover-divider: mat.get-theme-color($theme, foreground, divider);
$resizable-hover-divider: mat.get-theme-color($theme, primary, 600);
$resizable-active-divider: mat.get-theme-color($theme, primary, 600);
// TODO: these styles don't really ... | {
"end_byte": 3942,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/_column-resize-theme.scss"
} |
components/src/material-experimental/column-resize/BUILD.bazel_0_1095 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite", "sass_library")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "column-resize",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//src/cdk-experimental/c... | {
"end_byte": 1095,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/BUILD.bazel"
} |
components/src/material-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/material-experimental/column-resize/index.ts"
} |
components/src/material-experimental/column-resize/column-resize-directives/column-resize.ts_0_1215 | /**
* @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 {
ColumnResize,
ColumnResizeNotifier... | {
"end_byte": 1215,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize-directives/column-resize.ts"
} |
components/src/material-experimental/column-resize/column-resize-directives/column-resize-flex.ts_0_1214 | /**
* @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 {
ColumnResize,
ColumnResizeNotifier... | {
"end_byte": 1214,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize-directives/column-resize-flex.ts"
} |
components/src/material-experimental/column-resize/column-resize-directives/common.ts_0_1147 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Provider} from '@angular/core';
import {
ColumnResize,
ColumnResizeNotifier,
ColumnResizeNotifierSour... | {
"end_byte": 1147,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize-directives/common.ts"
} |
components/src/material-experimental/column-resize/column-resize-directives/default-enabled-column-resize-flex.ts_0_1245 | /**
* @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 {
ColumnResize,
ColumnResizeNotifier... | {
"end_byte": 1245,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize-directives/default-enabled-column-resize-flex.ts"
} |
components/src/material-experimental/column-resize/column-resize-directives/default-enabled-column-resize.ts_0_1246 | /**
* @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 {
ColumnResize,
ColumnResizeNotifier... | {
"end_byte": 1246,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/column-resize-directives/default-enabled-column-resize.ts"
} |
components/src/material-experimental/column-resize/resizable-directives/resizable.ts_0_1975 | /**
* @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,
Injector,
NgZone,
ViewContainerRef,
ChangeDetectorRef,
inject,
} from ... | {
"end_byte": 1975,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/resizable-directives/resizable.ts"
} |
components/src/material-experimental/column-resize/resizable-directives/common.ts_0_966 | /**
* @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 {Type} from '@angular/core';
import {Resizable} from '@angular/cdk-experimental/column-resize';
import {MatCo... | {
"end_byte": 966,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/resizable-directives/common.ts"
} |
components/src/material-experimental/column-resize/resizable-directives/default-enabled-resizable.ts_0_2051 | /**
* @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,
Injector,
NgZone,
ViewContainerRef,
ChangeDetectorRef,
inject,
} from ... | {
"end_byte": 2051,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/column-resize/resizable-directives/default-enabled-resizable.ts"
} |
components/src/material-experimental/popover-edit/table-directives.ts_0_3393 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Directive} from '@angular/core';
import {
_CELL_SELECTOR,
_closest,
CdkPopoverEdit,
CdkPopoverEditTab... | {
"end_byte": 3393,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/table-directives.ts"
} |
components/src/material-experimental/popover-edit/popover-edit-module.ts_0_1018 | /**
* @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 {CdkEditable,... | {
"end_byte": 1018,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/popover-edit-module.ts"
} |
components/src/material-experimental/popover-edit/_popover-edit-theme.scss_0_4192 | @use '@angular/cdk';
@use '@angular/material' as mat;
@function _hover-content-background($direction, $background-color) {
@return linear-gradient($direction, rgba($background-color, 0), $background-color 8px);
}
@mixin color($theme) {
$background-color: mat.get-theme-color($theme, background, 'card');
// TODO... | {
"end_byte": 4192,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/_popover-edit-theme.scss"
} |
components/src/material-experimental/popover-edit/public-api.ts_0_314 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export * from './lens-directives';
export * from './popover-edit-module';
export * from './table-directives';
| {
"end_byte": 314,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/public-api.ts"
} |
components/src/material-experimental/popover-edit/lens-directives.ts_0_1529 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Directive} from '@angular/core';
import {
CdkEditControl,
CdkEditRevert,
CdkEditClose,
EditRef,
} f... | {
"end_byte": 1529,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/lens-directives.ts"
} |
components/src/material-experimental/popover-edit/BUILD.bazel_0_1194 | load(
"//tools:defaults.bzl",
"ng_module",
"ng_test_library",
"ng_web_test_suite",
"sass_library",
)
package(default_visibility = ["//visibility:public"])
ng_module(
name = "popover-edit",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//... | {
"end_byte": 1194,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/BUILD.bazel"
} |
components/src/material-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/material-experimental/popover-edit/index.ts"
} |
components/src/material-experimental/popover-edit/popover-edit.spec.ts_0_7831 | import {DataSource} from '@angular/cdk/collections';
import {DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, TAB, UP_ARROW} from '@angular/cdk/keycodes';
import {Component, Directive, ElementRef, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, fakeAsync, flush, tick} from '@angular/core/testing';
import {Forms... | {
"end_byte": 7831,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/popover-edit.spec.ts"
} |
components/src/material-experimental/popover-edit/popover-edit.spec.ts_7833_14398 | describe('Material Popover Edit', () => {
for (const [componentClass, label] of testCases) {
describe(label, () => {
let component: BaseTestComponent;
let fixture: ComponentFixture<BaseTestComponent>;
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [MatT... | {
"end_byte": 14398,
"start_byte": 7833,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/popover-edit.spec.ts"
} |
components/src/material-experimental/popover-edit/popover-edit.spec.ts_14406_19783 | 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": 19783,
"start_byte": 14406,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/popover-edit.spec.ts"
} |
components/src/material-experimental/popover-edit/popover-edit.spec.ts_19791_29664 | describe('edit lens', () => {
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();
expect(component.getInp... | {
"end_byte": 29664,
"start_byte": 19791,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/popover-edit.spec.ts"
} |
components/src/material-experimental/popover-edit/popover-edit.spec.ts_29674_31039 | it(
'does not focus to the edited cell after closing if another element ' +
'outside the lens is already focused',
fakeAsync(() => {
component.openLens(0);
component.getEditCell(1).focus();
component.getEditCell(1).dispatchEvent(new Event('click', {bu... | {
"end_byte": 31039,
"start_byte": 29674,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/popover-edit/popover-edit.spec.ts"
} |
components/src/material-experimental/selection/selection-column.scss_0_102 | th.mat-selection-column-header,
td.mat-selection-column-cell {
text-align: center;
width: 48px;
}
| {
"end_byte": 102,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/selection-column.scss"
} |
components/src/material-experimental/selection/selection.ts_0_1439 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {coerceBooleanProperty} from '@angular/cdk/coercion';
import {CdkSelection, SelectionChange} from '@angular/c... | {
"end_byte": 1439,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/selection.ts"
} |
components/src/material-experimental/selection/public-api.ts_0_404 | /**
* @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": 404,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/public-api.ts"
} |
components/src/material-experimental/selection/selection-toggle.ts_0_1263 | /**
* @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 {CdkSelectionToggle} from '@angular/cdk-experimental/selection';
import {Directive, Input} from '@angular/cor... | {
"end_byte": 1263,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/selection-toggle.ts"
} |
components/src/material-experimental/selection/row-selection.ts_0_1103 | /**
* @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 {CdkRowSelection} from '@angular/cdk-experimental/selection';
import {Input, Directive} from '@angular/core';... | {
"end_byte": 1103,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/row-selection.ts"
} |
components/src/material-experimental/selection/_selection.scss_0_167 | @use '@angular/material' as mat;
@mixin theme($theme) {
@include mat.private-check-duplicate-theme-styles($theme, 'mat-selection');
}
@mixin typography($theme) {}
| {
"end_byte": 167,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/_selection.scss"
} |
components/src/material-experimental/selection/selection-column.ts_0_3367 | /**
* @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 {
MatCell,
MatCellDef,
MatColumnDef,
MatHeaderCell,
MatHeaderCellDef,
MatTable,
} from '@angular/... | {
"end_byte": 3367,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/selection-column.ts"
} |
components/src/material-experimental/selection/selection-module.ts_0_1064 | /**
* @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(yifange): Move the table-specific code to a separate module from the other selection
// behaviors once we mo... | {
"end_byte": 1064,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/selection-module.ts"
} |
components/src/material-experimental/selection/select-all.ts_0_1061 | /**
* @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 {CdkSelectAll} from '@angular/cdk-experimental/selection';
import {Directive} from '@angular/core';
/**
* M... | {
"end_byte": 1061,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/select-all.ts"
} |
components/src/material-experimental/selection/BUILD.bazel_0_660 | load("//tools:defaults.bzl", "ng_module", "sass_binary", "sass_library")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "selection",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = [":selection_column_scss"],
deps = [
"//src/cdk-ex... | {
"end_byte": 660,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/material-experimental/selection/BUILD.bazel"
} |
components/src/material-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/material-experimental/selection/index.ts"
} |
components/src/youtube-player/youtube-player-placeholder.ts_0_2586 | /**
* @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, Input, ViewEncapsulation} from '@angular/core';
/** Quality of the pla... | {
"end_byte": 2586,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player-placeholder.ts"
} |
components/src/youtube-player/youtube-module.ts_0_400 | /**
* @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 {YouTubePlayer} from './youtube-player';
@NgModule({
imports: [You... | {
"end_byte": 400,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-module.ts"
} |
components/src/youtube-player/public-api.ts_0_400 | /**
* @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 './youtube-module';
export {YouTubePlayer, YOUTUBE_PLAYER_CONFIG, YouTubePlayerConfig} from './youtube... | {
"end_byte": 400,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/public-api.ts"
} |
components/src/youtube-player/youtube-player.ts_0_3739 | /**
* @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
*/
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
/// <reference types="youtube" preserve="t... | {
"end_byte": 3739,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.ts"
} |
components/src/youtube-player/youtube-player.ts_3740_12101 | class YouTubePlayer implements AfterViewInit, OnChanges, OnDestroy {
private _ngZone = inject(NgZone);
private readonly _nonce = inject(CSP_NONCE, {optional: true});
private readonly _changeDetectorRef = inject(ChangeDetectorRef);
private _player: YT.Player | undefined;
private _pendingPlayer: YT.Player | und... | {
"end_byte": 12101,
"start_byte": 3740,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.ts"
} |
components/src/youtube-player/youtube-player.ts_12104_20728 | getPlaybackRate(): number {
if (this._player) {
return this._player.getPlaybackRate();
}
if (this._pendingPlayerState && this._pendingPlayerState.playbackRate != null) {
return this._pendingPlayerState.playbackRate;
}
return 0;
}
/** See https://developers.google.com/youtube/ifram... | {
"end_byte": 20728,
"start_byte": 12104,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.ts"
} |
components/src/youtube-player/youtube-player.ts_20731_23961 | private _setSize() {
this._player?.setSize(this.width, this.height);
}
/** Sets the player's quality based on the current input values. */
private _setQuality() {
if (this._player && this.suggestedQuality) {
this._player.setPlaybackQuality(this.suggestedQuality);
}
}
/** Gets an observable... | {
"end_byte": 23961,
"start_byte": 20731,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.ts"
} |
components/src/youtube-player/youtube-player.spec.ts_0_786 | import {Component, EnvironmentProviders, Provider, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {Subscription} from 'rxjs';
import {createFakeYtNamespace} from './fake-youtube-player';
import {
DEFAULT_PLAYER_HEIGHT,
DEFAULT_PLAYER_WIDTH,
Y... | {
"end_byte": 786,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.spec.ts"
} |
components/src/youtube-player/youtube-player.spec.ts_788_10304 | describe('YoutubePlayer', () => {
let playerCtorSpy: jasmine.Spy;
let playerSpy: jasmine.SpyObj<YT.Player>;
let fixture: ComponentFixture<TestApp>;
let testComponent: TestApp;
let events: Required<YT.Events>;
beforeEach(waitForAsync(() => {
const fake = createFakeYtNamespace();
playerCtorSpy = fake... | {
"end_byte": 10304,
"start_byte": 788,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.spec.ts"
} |
components/src/youtube-player/youtube-player.spec.ts_10310_19669 | it('proxies methods to the player', () => {
getPlaceholder(fixture).click();
fixture.detectChanges();
events.onReady({target: playerSpy});
testComponent.youtubePlayer.playVideo();
expect(playerSpy.playVideo).toHaveBeenCalled();
testComponent.youtubePlayer.pauseVideo();
expec... | {
"end_byte": 19669,
"start_byte": 10310,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.spec.ts"
} |
components/src/youtube-player/youtube-player.spec.ts_19673_28500 | describe('placeholder behavior', () => {
beforeEach(() => {
TestBed.configureTestingModule({providers: TEST_PROVIDERS});
fixture = TestBed.createComponent(TestApp);
testComponent = fixture.debugElement.componentInstance;
fixture.detectChanges();
});
afterEach(() => {
fixture =... | {
"end_byte": 28500,
"start_byte": 19673,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player.spec.ts"
} |
components/src/youtube-player/README.md_0_4964 | # Angular YouTube Player component
This component provides a simple Angular wrapper around the
[YouTube player API](https://developers.google.com/youtube/iframe_api_reference).
File any bugs against the [angular/components repo](https://github.com/angular/components/issues).
## Installation
To install, run `ng add @a... | {
"end_byte": 4964,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/README.md"
} |
components/src/youtube-player/BUILD.bazel_0_1362 | load(
"//tools:defaults.bzl",
"ng_module",
"ng_package",
"ng_test_library",
"ng_web_test_suite",
"sass_binary",
)
package(default_visibility = ["//visibility:public"])
ng_module(
name = "youtube-player",
srcs = glob(
["**/*.ts"],
exclude = [
"**/*.spec.ts",
... | {
"end_byte": 1362,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/BUILD.bazel"
} |
components/src/youtube-player/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/youtube-player/index.ts"
} |
components/src/youtube-player/youtube-player-placeholder.scss_0_957 | .youtube-player-placeholder {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
overflow: hidden;
cursor: pointer;
background-color: #000;
background-position: center center;
background-size: cover;
transition: box-shadow 300ms ease;
// YouTube has a slight drop shadow on ... | {
"end_byte": 957,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/youtube-player-placeholder.scss"
} |
components/src/youtube-player/fake-youtube-player.ts_0_3286 | /**
* @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
*/
// A re-creation of YT.PlayerState since enum values cannot be bound to the window object.
const playerState = {
U... | {
"end_byte": 3286,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/fake-youtube-player.ts"
} |
components/src/youtube-player/schematics/BUILD.bazel_0_900 | 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": 900,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/youtube-player/schematics/BUILD.bazel"
} |
components/src/youtube-player/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/youtube-player/schematics/ng-add/index.ts"
} |
components/src/cdk-experimental/public-api.ts_0_231 | /**
* @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 './version';
| {
"end_byte": 231,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/public-api.ts"
} |
components/src/cdk-experimental/config.bzl_0_459 | # List of all entry-points of the Angular cdk-experimental package.
CDK_EXPERIMENTAL_ENTRYPOINTS = [
"column-resize",
"combobox",
"popover-edit",
"scrolling",
"selection",
"table-scroll-container",
]
# List of all entry-point targets of the Angular cdk-experimental package.
CDK_EXPERIMENTAL_TAR... | {
"end_byte": 459,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/config.bzl"
} |
components/src/cdk-experimental/README.md_0_265 | # Angular CDK Experimental
This package contains prototypes and experiments in development for Angular CDK. Nothing in
this package is considered stable or production ready. While the package releases with Angular
CDK, breaking changes may occur with any release.
| {
"end_byte": 265,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/README.md"
} |
components/src/cdk-experimental/BUILD.bazel_0_481 | load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_TARGETS")
load("//tools:defaults.bzl", "ng_package", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "cdk-experimental",
srcs = glob(
["*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = ["@np... | {
"end_byte": 481,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/BUILD.bazel"
} |
components/src/cdk-experimental/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/index.ts"
} |
components/src/cdk-experimental/version.ts_0_357 | /**
* @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 {Version} from '@angular/core';
/** Current version of the CDK Experimental package. */
export const VERSION... | {
"end_byte": 357,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/version.ts"
} |
components/src/cdk-experimental/table-scroll-container/table-scroll-container.spec.ts_0_8701 | import {CollectionViewer, DataSource} from '@angular/cdk/collections';
import {Platform} from '@angular/cdk/platform';
import {CdkTable, CdkTableModule} from '@angular/cdk/table';
import {Component, Type, ViewChild} from '@angular/core';
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
imp... | {
"end_byte": 8701,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/table-scroll-container/table-scroll-container.spec.ts"
} |
components/src/cdk-experimental/table-scroll-container/table-scroll-container.spec.ts_8703_12298 | class FakeDataSource extends DataSource<TestData> {
isConnected = false;
get data() {
return this._dataChange.getValue();
}
set data(data: TestData[]) {
this._dataChange.next(data);
}
_dataChange = new BehaviorSubject<TestData[]>([]);
constructor() {
super();
for (let i = 0; i < 3; i++) ... | {
"end_byte": 12298,
"start_byte": 8703,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/table-scroll-container/table-scroll-container.spec.ts"
} |
components/src/cdk-experimental/table-scroll-container/public-api.ts_0_295 | /**
* @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 './table-scroll-container';
export * from './table-scroll-container-module';
| {
"end_byte": 295,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/table-scroll-container/public-api.ts"
} |
components/src/cdk-experimental/table-scroll-container/table-scroll-container.ts_0_4780 | /**
* @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 {CSP_NONCE, Directive, ElementRef, OnDestroy, OnInit, inject} from '@angular/core';
import {DOCUMENT} from '@... | {
"end_byte": 4780,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/table-scroll-container/table-scroll-container.ts"
} |
components/src/cdk-experimental/table-scroll-container/table-scroll-container-module.ts_0_449 | /**
* @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 {CdkTableScrollContainer} from './table-scroll-container';
@NgModul... | {
"end_byte": 449,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/table-scroll-container/table-scroll-container-module.ts"
} |
components/src/cdk-experimental/table-scroll-container/BUILD.bazel_0_868 | load(
"//tools:defaults.bzl",
"ng_module",
"ng_test_library",
"ng_web_test_suite",
)
package(default_visibility = ["//visibility:public"])
ng_module(
name = "table-scroll-container",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//src/cdk/bi... | {
"end_byte": 868,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/table-scroll-container/BUILD.bazel"
} |
components/src/cdk-experimental/table-scroll-container/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/table-scroll-container/index.ts"
} |
components/src/cdk-experimental/combobox/public-api.ts_0_301 | /**
* @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 './combobox-module';
export * from './combobox';
export * from './combobox-popup';
| {
"end_byte": 301,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/public-api.ts"
} |
components/src/cdk-experimental/combobox/combobox-module.ts_0_588 | /**
* @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 {CdkCombobox} fro... | {
"end_byte": 588,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/combobox-module.ts"
} |
components/src/cdk-experimental/combobox/BUILD.bazel_0_796 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "combobox",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = [
"//src:dev_mode_types",
"//src/cdk/a11... | {
"end_byte": 796,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/BUILD.bazel"
} |
components/src/cdk-experimental/combobox/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/combobox/index.ts"
} |
components/src/cdk-experimental/combobox/combobox.spec.ts_0_8525 | import {CdkComboboxPopup} from '@angular/cdk-experimental/combobox/combobox-popup';
import {DOWN_ARROW, ESCAPE} from '@angular/cdk/keycodes';
import {dispatchKeyboardEvent, dispatchMouseEvent} from '@angular/cdk/testing/private';
import {Component, DebugElement, ElementRef, ViewChild, signal} from '@angular/core';
impo... | {
"end_byte": 8525,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/combobox.spec.ts"
} |
components/src/cdk-experimental/combobox/combobox.spec.ts_8529_12523 | describe('with various open actions', () => {
let fixture: ComponentFixture<ComboboxToggle>;
let testComponent: ComboboxToggle;
let combobox: DebugElement;
let comboboxInstance: CdkCombobox;
let comboboxElement: HTMLElement;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule(... | {
"end_byte": 12523,
"start_byte": 8529,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/combobox.spec.ts"
} |
components/src/cdk-experimental/combobox/combobox-popup.ts_0_1569 | /**
* @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, OnInit, inject} from '@angular/core';
import {AriaHasPopupValue, CDK_COMBOBOX,... | {
"end_byte": 1569,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/combobox-popup.ts"
} |
components/src/cdk-experimental/combobox/combobox.ts_0_1898 | /**
* @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 {BooleanInput, coerceArray, coerceBooleanProperty} from '@an... | {
"end_byte": 1898,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/combobox.ts"
} |
components/src/cdk-experimental/combobox/combobox.ts_1899_9726 | class CdkCombobox<T = unknown> implements OnDestroy {
private readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
private readonly _overlay = inject(Overlay);
protected readonly _viewContainerRef = inject(ViewContainerRef);
private readonly _injector = inject(Injector);
private readonly _doc =... | {
"end_byte": 9726,
"start_byte": 1899,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/combobox/combobox.ts"
} |
components/src/cdk-experimental/column-resize/resize-strategy.ts_0_8913 | /**
* @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, Provider, CSP_NONCE, inject} from '@angular/core';
import {DOCUMENT} from '@angular/c... | {
"end_byte": 8913,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/resize-strategy.ts"
} |
components/src/cdk-experimental/column-resize/resize-strategy.ts_8914_9909 | function coercePixelsFromCssValue(cssValue: string): number {
return Number(cssValue.match(/(\d+)px/)?.[1]);
}
/** Gets the style.width pixels on the specified element if present, otherwise its offsetWidth. */
function getElementWidth(element: HTMLElement) {
// Optimization: Check style.width first as we probably ... | {
"end_byte": 9909,
"start_byte": 8914,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/resize-strategy.ts"
} |
components/src/cdk-experimental/column-resize/column-resize.ts_0_4016 | /**
* @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, NgZone, OnDestroy} from '@angular/core';
import {fromEvent, merge, Sub... | {
"end_byte": 4016,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/cdk-experimental/column-resize/column-resize.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.