_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
components/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-icon-button.scss_0_3565
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-shape'; @use './md-sys-state'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-shape': md-sys-shape.values(), 'md-sys-state': md-sys-state.values(), ); @f...
{ "end_byte": 3565, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-icon-button.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss_0_2177
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 2177, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss_2182_9619
'menu-list-item-label-text-type': if( $exclude-hardcoded-values, null, map.get($deps, 'md-sys-typescale', 'label-large-weight') map.get($deps, 'md-sys-typescale', 'label-large-size') #{'/'} map.get( $deps, 'md-sys-typescale', 'label-large-lin...
{ "end_byte": 9619, "start_byte": 2182, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss_9624_12728
'text-field-label-text-line-height': map.get($deps, 'md-sys-typescale', 'body-large-line-height'), 'text-field-label-text-populated-line-height': map.get($deps, 'md-sys-typescale', 'body-small-line-height'), 'text-field-label-text-populated-size': map.get($deps, 'md-sys-typescale', 'body-small...
{ "end_byte": 12728, "start_byte": 9624, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-time-input.scss_0_1439
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 1439, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-time-input.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-time-input.scss_1444_9373
'headline-type': if( $exclude-hardcoded-values, null, map.get($deps, 'md-sys-typescale', 'label-medium-weight') map.get($deps, 'md-sys-typescale', 'label-medium-size') #{'/'} map.get( $deps, 'md-sys-typescale', 'label-medium-line-height' ...
{ "end_byte": 9373, "start_byte": 1444, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-time-input.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-time-input.scss_9378_10832
'time-input-field-separator-weight': map.get($deps, 'md-sys-typescale', 'display-large-weight'), 'time-input-field-supporting-text-color': map.get($deps, 'md-sys-color', 'on-surface-variant'), 'time-input-field-supporting-text-font': map.get($deps, 'md-sys-typescale', 'body-small-font'), '...
{ "end_byte": 10832, "start_byte": 9378, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-time-input.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-carousel-item.scss_0_2487
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-s...
{ "end_byte": 2487, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-carousel-item.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-bottom-app-bar.scss_0_791
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-shape': md-sys-shape.valu...
{ "end_byte": 791, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-bottom-app-bar.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-rich-tooltip.scss_0_5331
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 5331, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-rich-tooltip.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-full-screen-dialog.scss_0_4740
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 4740, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-full-screen-dialog.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-extended-fab-surface.scss_0_3840
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 3840, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-extended-fab-surface.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small.scss_0_2385
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-s...
{ "end_byte": 2385, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small-centered.scss_0_2523
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-s...
{ "end_byte": 2523, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small-centered.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-date-input-modal.scss_0_3625
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-s...
{ "end_byte": 3625, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-date-input-modal.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss_0_2175
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 2175, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss_2180_9425
'menu-list-item-label-text-type': if( $exclude-hardcoded-values, null, map.get($deps, 'md-sys-typescale', 'label-large-weight') map.get($deps, 'md-sys-typescale', 'label-large-size') #{'/'} map.get( $deps, 'md-sys-typescale', 'label-large-lin...
{ "end_byte": 9425, "start_byte": 2180, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss_9430_13072
'text-field-input-text-type': if( $exclude-hardcoded-values, null, map.get($deps, 'md-sys-typescale', 'body-large-weight') map.get($deps, 'md-sys-typescale', 'body-large-size') #{'/'} map.get( $deps, 'md-sys-typescale', 'body-large-line-heigh...
{ "end_byte": 13072, "start_byte": 9430, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-divider.scss_0_400
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; $_default: ( 'md-sys-color': md-sys-color.values-light(), ); @function values($deps: $_default, $exclude-hardcoded-values: false) { @return ( 'color': map.get($deps, 'md-sys-color', 'outl...
{ "end_byte": 400, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-divider.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-fab-branded.scss_0_2184
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-s...
{ "end_byte": 2184, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-fab-branded.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-menu.scss_0_868
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-shape': md-sys-shape.valu...
{ "end_byte": 868, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-menu.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-sheet-floating.scss_0_697
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-shape': md-sys-shape.valu...
{ "end_byte": 697, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-sheet-floating.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-large.scss_0_2339
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-s...
{ "end_byte": 2339, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-large.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-fab-tertiary-large.scss_0_2491
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-s...
{ "end_byte": 2491, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-fab-tertiary-large.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-sheet-bottom.scss_0_1287
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-elevation.values(), 'md-sys-shape': md-sys-shape.valu...
{ "end_byte": 1287, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-sheet-bottom.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-scrim.scss_0_409
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; $_default: ( 'md-sys-color': md-sys-color.values-light(), ); @function values($deps: $_default, $exclude-hardcoded-values: false) { @return ( 'container-color': map.get($deps, 'md-sys-col...
{ "end_byte": 409, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-scrim.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-navigation-rail.scss_0_5802
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 5802, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-navigation-rail.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-sheet-side.scss_0_3526
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 3526, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-sheet-side.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-button.scss_0_4232
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 4232, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-button.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss_0_1369
// // Design system display name: Material 3 // Design system version: v0.161 // @use 'sass:map'; @use './md-sys-color'; @use './md-sys-elevation'; @use './md-sys-shape'; @use './md-sys-state'; @use './md-sys-typescale'; $_default: ( 'md-sys-color': md-sys-color.values-light(), 'md-sys-elevation': md-sys-ele...
{ "end_byte": 1369, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss_1374_9141
'clock-dial-label-text-type': if( $exclude-hardcoded-values, null, map.get($deps, 'md-sys-typescale', 'body-large-weight') map.get($deps, 'md-sys-typescale', 'body-large-size') #{'/'} map.get( $deps, 'md-sys-typescale', 'body-large-line-heigh...
{ "end_byte": 9141, "start_byte": 1374, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss" }
components/src/material/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss_9146_13321
'time-selector-label-text-size': map.get($deps, 'md-sys-typescale', 'display-large-size'), 'time-selector-label-text-tracking': map.get($deps, 'md-sys-typescale', 'display-large-tracking'), // Warning: risk of reduced fidelity from using this composite typography token. // Tokens md.comp.time-pi...
{ "end_byte": 13321, "start_byte": 9146, "url": "https://github.com/angular/components/blob/main/src/material/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss" }
components/src/material/core/internal-form-field/internal-form-field.ts_0_1059
/** * @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'; /** * Internal shared ...
{ "end_byte": 1059, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/internal-form-field/internal-form-field.ts" }
components/src/material/core/internal-form-field/internal-form-field.scss_0_719
@use '../style/vendor-prefixes'; .mat-internal-form-field { @include vendor-prefixes.smooth-font(); display: inline-flex; align-items: center; vertical-align: middle; & > label { margin-left: 0; margin-right: auto; padding-left: 4px; padding-right: 0; order: 0; } [dir='rtl'] & > lab...
{ "end_byte": 719, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/internal-form-field/internal-form-field.scss" }
components/src/material/autocomplete/_autocomplete-theme.scss_0_3151
@use 'sass:map'; @use '../core/theming/theming'; @use '../core/theming/inspection'; @use '../core/theming/validation'; @use '../core/typography/typography'; @use '../core/style/sass-utils'; @use '../core/tokens/token-utils'; @use '../core/tokens/m2/mat/autocomplete' as tokens-mat-autocomplete; @mixin base($theme) { ...
{ "end_byte": 3151, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/_autocomplete-theme.scss" }
components/src/material/autocomplete/autocomplete.ts_0_3453
/** * @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 { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Eleme...
{ "end_byte": 3453, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.ts" }
components/src/material/autocomplete/autocomplete.ts_3454_12177
class MatAutocomplete implements AfterContentInit, OnDestroy { private _changeDetectorRef = inject(ChangeDetectorRef); private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef); protected _defaults = inject<MatAutocompleteDefaultOptions>(MAT_AUTOCOMPLETE_DEFAULT_OPTIONS); private _activeOptionChanges =...
{ "end_byte": 12177, "start_byte": 3454, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.ts" }
components/src/material/autocomplete/module.ts_0_1095
/** * @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, MatOptionModule} from '@angular/material/core'; imp...
{ "end_byte": 1095, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/module.ts" }
components/src/material/autocomplete/autocomplete-origin.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 {Directive, ElementRef, inject} from '@angular/core'; /** * Directive applied to an element to make it usab...
{ "end_byte": 625, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-origin.ts" }
components/src/material/autocomplete/autocomplete.zone.spec.ts_0_5775
import {OverlayModule} from '@angular/cdk/overlay'; import {dispatchFakeEvent} from '@angular/cdk/testing/private'; import { Component, NgZone, OnDestroy, Provider, QueryList, Type, ViewChild, ViewChildren, provideZoneChangeDetection, } from '@angular/core'; import {ComponentFixture, TestBed, waitForA...
{ "end_byte": 5775, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.zone.spec.ts" }
components/src/material/autocomplete/public-api.ts_0_492
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export * from './module'; export * from './autocomplete'; export * from './autocomplete-origin'; export * from './au...
{ "end_byte": 492, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/public-api.ts" }
components/src/material/autocomplete/autocomplete.md_0_8000
The autocomplete is a normal text input enhanced by a panel of suggested options. ### Simple autocomplete Start by creating the autocomplete panel and the options displayed inside it. Each option should be defined by a `mat-option` tag. Set each option's value property to whatever you'd like the value of the text inp...
{ "end_byte": 8000, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.md" }
components/src/material/autocomplete/README.md_0_73
See documentation on [material.angular.io](https://material.angular.io/).
{ "end_byte": 73, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/README.md" }
components/src/material/autocomplete/autocomplete.spec.ts_0_2349
import {Directionality} from '@angular/cdk/bidi'; import {DOWN_ARROW, ENTER, ESCAPE, SPACE, TAB, UP_ARROW} from '@angular/cdk/keycodes'; import {Overlay, OverlayContainer, OverlayModule} from '@angular/cdk/overlay'; import {_supportsShadowDom} from '@angular/cdk/platform'; import {ScrollDispatcher} from '@angular/cdk/s...
{ "end_byte": 2349, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_2353_12133
describe('panel toggling', () => { let fixture: ComponentFixture<SimpleAutocomplete>; let input: HTMLInputElement; beforeEach(() => { fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); input = fixture.debugElement.query(By.css('input'))!.nativeElement; }); it...
{ "end_byte": 12133, "start_byte": 2353, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_12139_22873
it('should not mess with label placement if set to never', fakeAsync(() => { fixture.componentInstance.floatLabel = 'never'; fixture.changeDetectorRef.markForCheck(); fixture.detectChanges(); fixture.componentInstance.trigger.openPanel(); expect(fixture.componentInstance.formField.floatLa...
{ "end_byte": 22873, "start_byte": 12139, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_22877_26848
it('should update the panel direction if it changes for the trigger', () => { const dirProvider = {value: 'rtl', change: EMPTY}; const rtlFixture = createComponent(SimpleAutocomplete, [ {provide: Directionality, useFactory: () => dirProvider}, ]); rtlFixture.detectChanges(); rtlFixture.compon...
{ "end_byte": 26848, "start_byte": 22877, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_26852_37282
describe('forms integration', () => { let fixture: ComponentFixture<SimpleAutocomplete>; let input: HTMLInputElement; beforeEach(() => { fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); input = fixture.debugElement.query(By.css('input'))!.nativeElement; }); ...
{ "end_byte": 37282, "start_byte": 26852, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_37286_47065
describe('keyboard events', () => { let fixture: ComponentFixture<SimpleAutocomplete>; let input: HTMLInputElement; let DOWN_ARROW_EVENT: KeyboardEvent; let UP_ARROW_EVENT: KeyboardEvent; let ENTER_EVENT: KeyboardEvent; beforeEach(waitForAsync(async () => { fixture = createComponent(Simpl...
{ "end_byte": 47065, "start_byte": 37286, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_47071_55635
it('should not open the panel if the `input` event was dispatched with changing the value', fakeAsync(() => { const trigger = fixture.componentInstance.trigger; dispatchFakeEvent(input, 'focusin'); typeInElement(input, 'A'); fixture.detectChanges(); tick(); expect(trigger.panelOpen...
{ "end_byte": 55635, "start_byte": 47071, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_55641_59903
it('should close the panel when tabbing away from a trigger without results', fakeAsync(() => { fixture.componentInstance.states = []; fixture.componentInstance.filteredStates = []; fixture.changeDetectorRef.markForCheck(); fixture.detectChanges(); input.focus(); flush(); expe...
{ "end_byte": 59903, "start_byte": 55641, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_59907_66295
describe('option groups', () => { let DOWN_ARROW_EVENT: KeyboardEvent; let UP_ARROW_EVENT: KeyboardEvent; beforeEach(() => { DOWN_ARROW_EVENT = createKeyboardEvent('keydown', DOWN_ARROW); UP_ARROW_EVENT = createKeyboardEvent('keydown', UP_ARROW); }); it('should scroll to active options...
{ "end_byte": 66295, "start_byte": 59907, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_66299_75005
describe('aria', () => { let fixture: ComponentFixture<SimpleAutocomplete>; let input: HTMLInputElement; beforeEach(() => { fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); input = fixture.debugElement.query(By.css('input'))!.nativeElement; }); it('should ...
{ "end_byte": 75005, "start_byte": 66299, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_75009_84505
describe('Fallback positions', () => { it('should use below positioning by default', waitForAsync(async () => { let fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); let inputReference = fixture.debugElement.query(By.css('.mdc-text-field'))!.nativeElement; fixture.comp...
{ "end_byte": 84505, "start_byte": 75009, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_84511_87457
it('should be able to force above position even if there is not enough space', waitForAsync(async () => { let fixture = createComponent(SimpleAutocomplete); fixture.componentInstance.position = 'above'; fixture.changeDetectorRef.markForCheck(); fixture.detectChanges(); let inputReference =...
{ "end_byte": 87457, "start_byte": 84511, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_87461_96795
describe('Option selection', () => { let fixture: ComponentFixture<SimpleAutocomplete>; beforeEach(() => { fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); }); it('should deselect any other selected option', waitForAsync(async () => { fixture.componentInstance....
{ "end_byte": 96795, "start_byte": 87461, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_96801_106099
it('should reposition the panel when the amount of options changes', waitForAsync(async () => { const flushPosition = async () => { fixture.detectChanges(); await new Promise(r => setTimeout(r)); fixture.detectChanges(); await new Promise(r => setTimeout(r)); fixture.detect...
{ "end_byte": 106099, "start_byte": 96801, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_106105_114154
it('should preserve the value if a selection is required, and there are no options', waitForAsync(async () => { const input = fixture.nativeElement.querySelector('input'); const {stateCtrl, trigger, states} = fixture.componentInstance; fixture.componentInstance.requireSelection = true; fixture.c...
{ "end_byte": 114154, "start_byte": 106105, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_114158_121213
describe('misc', () => { it('should allow basic use without any forms directives', () => { expect(() => { const fixture = createComponent(AutocompleteWithoutForms); fixture.detectChanges(); const input = fixture.debugElement.query(By.css('input'))!.nativeElement; typeInElement...
{ "end_byte": 121213, "start_byte": 114158, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_121217_131249
describe('automatically selecting the active option', () => { let fixture: ComponentFixture<SimpleAutocomplete>; beforeEach(() => { fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); fixture.componentInstance.trigger.autocomplete.autoSelectActiveOption = true; fixtu...
{ "end_byte": 131249, "start_byte": 121217, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_131253_141040
it('should not reopen a closed autocomplete when returning to a blurred tab', () => { const fixture = createComponent(SimpleAutocomplete); fixture.detectChanges(); const trigger = fixture.componentInstance.trigger; const input = fixture.debugElement.query(By.css('input'))!.nativeElement; input.foc...
{ "end_byte": 141040, "start_byte": 131253, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_141044_150353
it('should be able to change the origin after the panel has been opened', waitForAsync(async () => { const fixture = createComponent(AutocompleteWithDifferentOrigin); fixture.detectChanges(); fixture.componentInstance.trigger.openPanel(); fixture.detectChanges(); await new Promise(r => setTimeout(r...
{ "end_byte": 150353, "start_byte": 141044, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_150355_158462
@Component({ template: ` @if (isVisible) { <mat-form-field> <input matInput placeholder="Choose" [matAutocomplete]="auto" [formControl]="optionCtrl"> </mat-form-field> } <mat-autocomplete #auto="matAutocomplete"> @for (option of filteredOptions | async; track option) { <mat-option [value]="...
{ "end_byte": 158462, "start_byte": 150355, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete.spec.ts_158464_161792
@Component({ template: ` <div> <mat-form-field> <input matInput [matAutocomplete]="auto" [matAutocompleteConnectedTo]="connectedTo" [(ngModel)]="selectedValue"> </mat-form-field> </div> <div class="origin" matAutocompleteOrigin ...
{ "end_byte": 161792, "start_byte": 158464, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.spec.ts" }
components/src/material/autocomplete/autocomplete-trigger.ts_0_4474
/** * @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 {addAriaReferencedId, removeAriaReferencedId} from '@angular/cdk/a11y'; import {Directionality} from '@angula...
{ "end_byte": 4474, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-trigger.ts" }
components/src/material/autocomplete/autocomplete-trigger.ts_4475_13041
class MatAutocompleteTrigger implements ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy { private _element = inject<ElementRef<HTMLInputElement>>(ElementRef); private _overlay = inject(Overlay); private _viewContainerRef = inject(ViewContainerRef); private _zone = inject(NgZone); private _changeDe...
{ "end_byte": 13041, "start_byte": 4475, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-trigger.ts" }
components/src/material/autocomplete/autocomplete-trigger.ts_13044_21773
get panelClosingActions(): Observable<MatOptionSelectionChange | null> { return merge( this.optionSelections, this.autocomplete._keyManager.tabOut.pipe(filter(() => this._overlayAttached)), this._closeKeyEventStream, this._getOutsideClickStream(), this._overlayRef ? this._overl...
{ "end_byte": 21773, "start_byte": 13044, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-trigger.ts" }
components/src/material/autocomplete/autocomplete-trigger.ts_21776_28996
private _floatLabel(shouldAnimate = false): void { if (this._formField && this._formField.floatLabel === 'auto') { if (shouldAnimate) { this._formField._animateAndLockLabel(); } else { this._formField.floatLabel = 'always'; } this._manuallyFloatingLabel = true; } } ...
{ "end_byte": 28996, "start_byte": 21776, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-trigger.ts" }
components/src/material/autocomplete/autocomplete-trigger.ts_29000_37767
private _attachOverlay(valueOnAttach: string): void { if (!this.autocomplete && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw getMatAutocompleteMissingPanelError(); } let overlayRef = this._overlayRef; if (!overlayRef) { this._portal = new TemplatePortal(this.autocomplete.templa...
{ "end_byte": 37767, "start_byte": 29000, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-trigger.ts" }
components/src/material/autocomplete/autocomplete-trigger.ts_37770_42342
private _canOpen(): boolean { const element = this._element.nativeElement; return !element.readOnly && !element.disabled && !this.autocompleteDisabled; } /** Use defaultView of injected document if available or fallback to global window reference */ private _getWindow(): Window { return this._documen...
{ "end_byte": 42342, "start_byte": 37770, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete-trigger.ts" }
components/src/material/autocomplete/BUILD.bazel_0_1946
load( "//tools:defaults.bzl", "extract_tokens", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", "sass_binary", "sass_library", ) package(default_visibility = ["//visibility:public"]) ng_module( name = "autocomplete", srcs = glob( ["**/*.ts"], ...
{ "end_byte": 1946, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/BUILD.bazel" }
components/src/material/autocomplete/autocomplete.html_0_703
<ng-template let-formFieldId="id"> <div class="mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open" role="listbox" [id]="id" [class]="_classList" [class.mat-mdc-autocomplete-visible]="showPanel" [class.mat-mdc-autocomplete-hidden]="!showPanel" [class.mat-primary]="_color ===...
{ "end_byte": 703, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.html" }
components/src/material/autocomplete/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/autocomplete/index.ts" }
components/src/material/autocomplete/animations.ts_0_931
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { animate, AnimationTriggerMetadata, group, state, style, transition, trigger, } from '@angular...
{ "end_byte": 931, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/animations.ts" }
components/src/material/autocomplete/autocomplete.scss_0_1782
@use '@angular/cdk'; @use '../core/tokens/token-utils'; @use '../core/tokens/m2/mat/autocomplete' as tokens-mat-autocomplete; // Even though we don't use the MDC styles, we need to keep the classes in the // DOM for the Gmat versions to work. We need to bump up the specificity here // so that it's higher than MDC's st...
{ "end_byte": 1782, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/autocomplete.scss" }
components/src/material/autocomplete/testing/autocomplete-harness-filters.ts_0_637
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {BaseHarnessFilters} from '@angular/cdk/testing'; /** A set of criteria that can be used to filter a list of...
{ "end_byte": 637, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/testing/autocomplete-harness-filters.ts" }
components/src/material/autocomplete/testing/autocomplete-harness.ts_0_4928
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {coerceBooleanProperty} from '@angular/cdk/coercion'; import { ComponentHarness, ComponentHarnessConstruc...
{ "end_byte": 4928, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/testing/autocomplete-harness.ts" }
components/src/material/autocomplete/testing/public-api.ts_0_292
/** * @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 './autocomplete-harness'; export * from './autocomplete-harness-filters';
{ "end_byte": 292, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/testing/public-api.ts" }
components/src/material/autocomplete/testing/autocomplete-harness.spec.ts_0_8265
import {Component} from '@angular/core'; import {MatAutocompleteModule} from '@angular/material/autocomplete'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {HarnessLoader} from '@angular/cdk/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TestbedHa...
{ "end_byte": 8265, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/testing/autocomplete-harness.spec.ts" }
components/src/material/autocomplete/testing/BUILD.bazel_0_828
load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "testing", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src/cdk/coercion", "//src/cdk/test...
{ "end_byte": 828, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/testing/BUILD.bazel" }
components/src/material/autocomplete/testing/index.ts_0_234
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export * from './public-api';
{ "end_byte": 234, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/autocomplete/testing/index.ts" }
components/src/material/sort/sort-direction.ts_0_253
/** * @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 type SortDirection = 'asc' | 'desc' | '';
{ "end_byte": 253, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-direction.ts" }
components/src/material/sort/sort-header.html_0_2259
<!-- We set the `tabindex` on an element inside the table header, rather than the header itself, because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both be focusable, and have scre...
{ "end_byte": 2259, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-header.html" }
components/src/material/sort/sort-header-intl.ts_0_1189
/** * @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, SkipSelf, Optional} from '@angular/core'; import {Subject} from 'rxjs'; /** * To modify the la...
{ "end_byte": 1189, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-header-intl.ts" }
components/src/material/sort/sort-animations.ts_0_4682
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { animate, state, style, transition, trigger, keyframes, AnimationTriggerMetadata, query, an...
{ "end_byte": 4682, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-animations.ts" }
components/src/material/sort/sort-header.scss_0_3549
@use '@angular/cdk'; @use '../core/tokens/m2/mat/sort' as tokens-mat-sort; @use '../core/tokens/token-utils'; @use '../core/focus-indicators/private'; $header-arrow-margin: 6px; $header-arrow-container-size: 12px; $header-arrow-stem-size: 10px; $header-arrow-pointer-length: 6px; $header-arrow-thickness: 2px; $header-...
{ "end_byte": 3549, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-header.scss" }
components/src/material/sort/sort-errors.ts_0_887
/** * @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 */ /** @docs-private */ export function getSortDuplicateSortableIdError(id: string): Error { return Error(`Cannot hav...
{ "end_byte": 887, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-errors.ts" }
components/src/material/sort/sort-module.ts_0_626
/** * @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 {MatSortHeader} from './sort-header'; import {MatSort} from './sort';...
{ "end_byte": 626, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-module.ts" }
components/src/material/sort/public-api.ts_0_395
/** * @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 './sort-module'; export * from './sort-direction'; export * from './sort-header'; export * from './sor...
{ "end_byte": 395, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/public-api.ts" }
components/src/material/sort/sort.spec.ts_0_967
import {CollectionViewer, DataSource} from '@angular/cdk/collections'; import {CdkTableModule} from '@angular/cdk/table'; import { createFakeEvent, createMouseEvent, dispatchMouseEvent, wrappedErrorMessage, } from '@angular/cdk/testing/private'; import {Component, ElementRef, ViewChild, inject} from '@angular/c...
{ "end_byte": 967, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort.spec.ts" }
components/src/material/sort/sort.spec.ts_969_10272
describe('MatSort', () => { describe('without default options', () => { let fixture: ComponentFixture<SimpleMatSortApp>; let component: SimpleMatSortApp; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [ MatSortModule, MatTableModule, ...
{ "end_byte": 10272, "start_byte": 969, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort.spec.ts" }
components/src/material/sort/sort.spec.ts_10278_20837
it('should allow for the cycling the sort direction to be disabled per column', () => { const container = fixture.nativeElement.querySelector('#defaultA .mat-sort-header-container'); component.sort('defaultA'); expect(component.matSort.direction).toBe('asc'); expect(container.getAttribute('tabi...
{ "end_byte": 20837, "start_byte": 10278, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort.spec.ts" }
components/src/material/sort/sort.spec.ts_20843_28994
it('should render arrows in proper position based on arrowPosition parameter', () => { const matSortWithArrowPositionFixture = TestBed.createComponent(MatSortWithArrowPosition); const matSortWithArrowPositionComponent = matSortWithArrowPositionFixture.componentInstance; matSortWithArrowPositionFixtur...
{ "end_byte": 28994, "start_byte": 20843, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort.spec.ts" }
components/src/material/sort/sort.spec.ts_28996_34303
@Component({ template: ` <cdk-table [dataSource]="dataSource" matSort> <ng-container cdkColumnDef="column_a"> <cdk-header-cell *cdkHeaderCellDef #sortHeaderA mat-sort-header> Column A </cdk-header-cell> <cdk-cell *cdkCellDef="let row"> {{row.a}} </cdk-cell> </ng-container> <ng-c...
{ "end_byte": 34303, "start_byte": 28996, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort.spec.ts" }
components/src/material/sort/_sort-theme.scss_0_2834
@use 'sass:map'; @use '../core/tokens/m2/mat/sort' as tokens-mat-sort; @use '../core/style/sass-utils'; @use '../core/typography/typography'; @use '../core/theming/theming'; @use '../core/theming/inspection'; @use '../core/theming/validation'; @use '../core/tokens/token-utils'; @mixin base($theme) { @if inspection.g...
{ "end_byte": 2834, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/_sort-theme.scss" }
components/src/material/sort/sort-header.ts_0_3133
/** * @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 {AriaDescriber, FocusMonitor} from '@angular/cdk/a11y'; import {ENTER, SPACE} from '@angular/cdk/keycodes'; i...
{ "end_byte": 3133, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-header.ts" }
components/src/material/sort/sort-header.ts_3134_11670
{ _intl = inject(MatSortHeaderIntl); private _changeDetectorRef = inject(ChangeDetectorRef); _sort = inject(MatSort, {optional: true})!; _columnDef = inject<MatSortHeaderColumnDef>('MAT_SORT_HEADER_COLUMN_DEF' as any, { optional: true, }); private _focusMonitor = inject(FocusMonitor); private _element...
{ "end_byte": 11670, "start_byte": 3134, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-header.ts" }
components/src/material/sort/sort-header.ts_11674_14339
_isDisabled() { return this._sort.disabled || this.disabled; } /** * Gets the aria-sort attribute that should be applied to this sort header. If this header * is not sorted, returns null so that the attribute is removed from the host element. Aria spec * says that the aria-sort property should only be...
{ "end_byte": 14339, "start_byte": 11674, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort-header.ts" }
components/src/material/sort/sort.ts_0_6383
/** * @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, EventEmitter, Inject, InjectionToken, Input, OnChanges, OnDestroy, OnInit, Opt...
{ "end_byte": 6383, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/sort.ts" }
components/src/material/sort/BUILD.bazel_0_1622
load( "//tools:defaults.bzl", "extract_tokens", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", "sass_binary", "sass_library", ) package(default_visibility = ["//visibility:public"]) ng_module( name = "sort", srcs = glob( ["**/*.ts"], ex...
{ "end_byte": 1622, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/sort/BUILD.bazel" }