_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
components/src/material/core/_core-theme.scss_0_6151
@use './theming/theming'; @use './theming/inspection'; @use './theming/validation'; @use './ripple/ripple-theme'; @use './option/option-theme'; @use './option/optgroup-theme'; @use './selection/pseudo-checkbox/pseudo-checkbox-theme'; @use './style/sass-utils'; @use './typography/typography'; @use './tokens/token-utils'...
{ "end_byte": 6151, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/_core-theme.scss" }
components/src/material/core/public-api.ts_0_681
/** * @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'; export * from './animation/animation'; export * from './common-behaviors/index'; export *...
{ "end_byte": 681, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/public-api.ts" }
components/src/material/core/README.md_0_60
Core library code for other `@angular/material` components.
{ "end_byte": 60, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/README.md" }
components/src/material/core/_core.scss_0_2271
@use './tokens/m2/mat/app' as tokens-mat-app; @use './tokens/token-utils'; @use './style/elevation'; /// @deprecated This mixin is a no-op and is going to be removed in v21. @mixin core() {} // Emits the mat-app-background CSS class. This predefined class sets the // background color and text color of an element. @mi...
{ "end_byte": 2271, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/_core.scss" }
components/src/material/core/BUILD.bazel_0_4700
load("//src/material:config.bzl", "MATERIAL_SCSS_LIBS") 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"]) exports_files(["themin...
{ "end_byte": 4700, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/BUILD.bazel" }
components/src/material/core/core.md_0_194
The `@angular/material/core` package contains common components and services used by multiple other components in the library. See the API tab for a listing of components and classes available.
{ "end_byte": 194, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/core.md" }
components/src/material/core/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/core/index.ts" }
components/src/material/core/version.ts_0_345
/** * @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 Angular Material. */ export const VERSION = new Versi...
{ "end_byte": 345, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/version.ts" }
components/src/material/core/datetime/date-adapter.ts_0_779
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {inject, InjectionToken, LOCALE_ID} from '@angular/core'; import {Observable, Subject} from 'rxjs'; /** Inje...
{ "end_byte": 779, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/date-adapter.ts" }
components/src/material/core/datetime/date-adapter.ts_780_8409
export abstract class DateAdapter<D, L = any> { /** The locale to use for all dates. */ protected locale: L; protected readonly _localeChanges = new Subject<void>(); /** A stream that emits when the locale changes. */ readonly localeChanges: Observable<void> = this._localeChanges; /** * Gets the year c...
{ "end_byte": 8409, "start_byte": 780, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/date-adapter.ts" }
components/src/material/core/datetime/date-adapter.ts_8413_13131
/** * Adds an amount of seconds to the specified date. * @param date Date to which to add the seconds. * @param amount Amount of seconds to add to the date. */ addSeconds(date: D, amount: number): D { throw new Error(NOT_IMPLEMENTED); } /** * Given a potential date object, returns that same da...
{ "end_byte": 13131, "start_byte": 8413, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/date-adapter.ts" }
components/src/material/core/datetime/native-date-adapter.spec.ts_0_228
import {LOCALE_ID} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {DEC, FEB, JAN, MAR} from '../../testing'; import {DateAdapter, MAT_DATE_LOCALE, NativeDateAdapter, NativeDateModule} from './index';
{ "end_byte": 228, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.spec.ts" }
components/src/material/core/datetime/native-date-adapter.spec.ts_230_7056
describe('NativeDateAdapter', () => { let adapter: NativeDateAdapter; let assertValidDate: (d: Date | null, valid: boolean) => void; beforeEach(() => { TestBed.configureTestingModule({imports: [NativeDateModule]}); adapter = TestBed.inject(DateAdapter) as NativeDateAdapter; assertValidDate = (d: Dat...
{ "end_byte": 7056, "start_byte": 230, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.spec.ts" }
components/src/material/core/datetime/native-date-adapter.spec.ts_7060_13786
dapter.isDateInstance(d)) .withContext('Expected string to have been fed through Date.parse') .toBe(true); expect(adapter.isValid(d as Date)) .withContext('Expected to parse as "invalid date" object') .toBe(false); }); it('should format', () => { expect(adapter.format(new Date(2017,...
{ "end_byte": 13786, "start_byte": 7060, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.spec.ts" }
components/src/material/core/datetime/native-date-adapter.spec.ts_13790_21594
seconds', () => { expect(adapter.getSeconds(new Date(2024, JAN, 1, 14, 53, 42))).toBe(42); }); it('should set the time of a date', () => { const target = new Date(2024, JAN, 1, 0, 0, 0); const result = adapter.setTime(target, 14, 53, 42); expect(adapter.getHours(result)).toBe(14); expect(adapte...
{ "end_byte": 21594, "start_byte": 13790, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.spec.ts" }
components/src/material/core/datetime/native-date-formats.ts_0_750
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {MatDateFormats} from './date-formats'; export const MAT_NATIVE_DATE_FORMATS: MatDateFormats = { parse: { ...
{ "end_byte": 750, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-formats.ts" }
components/src/material/core/datetime/native-date-adapter.ts_0_1448
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {inject, Injectable} from '@angular/core'; import {DateAdapter, MAT_DATE_LOCALE} from './date-adapter'; /** ...
{ "end_byte": 1448, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.ts" }
components/src/material/core/datetime/native-date-adapter.ts_1449_8850
@Injectable() export class NativeDateAdapter extends DateAdapter<Date> { /** * @deprecated No longer being used. To be removed. * @breaking-change 14.0.0 */ useUtcForDisplay: boolean = false; /** The injected locale. */ private readonly _matDateLocale = inject(MAT_DATE_LOCALE, {optional: true}); co...
{ "end_byte": 8850, "start_byte": 1449, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.ts" }
components/src/material/core/datetime/native-date-adapter.ts_8854_13160
override parseTime(userValue: any, parseFormat?: any): Date | null { if (typeof userValue !== 'string') { return userValue instanceof Date ? new Date(userValue.getTime()) : null; } const value = userValue.trim(); if (value.length === 0) { return null; } // Attempt to parse the val...
{ "end_byte": 13160, "start_byte": 8854, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/native-date-adapter.ts" }
components/src/material/core/datetime/index.ts_0_1077
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {NgModule, Provider} from '@angular/core'; import {DateAdapter} from './date-adapter'; import {MAT_DATE_FORMA...
{ "end_byte": 1077, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/index.ts" }
components/src/material/core/datetime/date-formats.ts_0_617
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {InjectionToken} from '@angular/core'; export type MatDateFormats = { parse: { dateInput: any; tim...
{ "end_byte": 617, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/datetime/date-formats.ts" }
components/src/material/core/common-behaviors/error-state.ts_0_1615
/** * @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 {AbstractControl, FormGroupDirective, NgControl, NgForm} from '@angular/forms'; import {Subject} from 'rxjs';...
{ "end_byte": 1615, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/common-behaviors/error-state.ts" }
components/src/material/core/common-behaviors/palette.ts_0_312
/** * @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 */ /** Possible color palette values. */ export type ThemePalette = 'primary' | 'accent' | 'warn' | undefined;
{ "end_byte": 312, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/common-behaviors/palette.ts" }
components/src/material/core/common-behaviors/index.ts_0_415
/** * @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 { MatCommonModule, MATERIAL_SANITY_CHECKS, SanityChecks, GranularSanityChecks, } from './common-modul...
{ "end_byte": 415, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/common-behaviors/index.ts" }
components/src/material/core/common-behaviors/common-module.ts_0_1916
/** * @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 {HighContrastModeDetector} from '@angular/cdk/a11y'; import {BidiModule} from '@angular/cdk/bidi'; import {in...
{ "end_byte": 1916, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/common-behaviors/common-module.ts" }
components/src/material/core/color/_all-color.scss_0_475
@use '../theming/all-theme'; @use '../theming/inspection'; // Includes all of the color styles. @mixin all-component-colors($theme) { @if not inspection.theme-has($theme, color) { @error 'No color configuration specified.'; } @include all-theme.all-component-themes( inspection.theme-remove($theme, bas...
{ "end_byte": 475, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/color/_all-color.scss" }
components/src/material/core/density/private/_all-density.scss_0_3203
@use '../../theming/inspection'; @use '../../../button/button-theme'; @use '../../../button/icon-button-theme'; @use '../../../button/fab-theme'; @use '../../../expansion/expansion-theme'; @use '../../../stepper/stepper-theme'; @use '../../../toolbar/toolbar-theme'; @use '../../../tree/tree-theme'; @use '../../../pagin...
{ "end_byte": 3203, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/density/private/_all-density.scss" }
components/src/material/core/focus-indicators/structural-styles.scss_0_58
@use './private'; @include private.structural-styling();
{ "end_byte": 58, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/focus-indicators/structural-styles.scss" }
components/src/material/core/focus-indicators/_private.scss_0_3566
@use 'sass:map'; @use 'sass:meta'; @use '@angular/cdk'; @use '../style/layout-common'; @use '../theming/theming'; @use '../theming/inspection'; // Private sass variables that will be used as reference throughout component stylesheets. $default-border-width: 3px; $default-border-style: solid; $default-border-color: tra...
{ "end_byte": 3566, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/focus-indicators/_private.scss" }
components/src/material/core/focus-indicators/structural-styles.ts_0_615
/** * @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'; /** * Component used to load ...
{ "end_byte": 615, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/focus-indicators/structural-styles.ts" }
components/src/material/core/animation/animation.ts_0_632
/** * @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 class AnimationCurves { static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)'; stati...
{ "end_byte": 632, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/animation/animation.ts" }
components/src/material/core/ripple/ripple.ts_0_7447
/** * @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 {Platform} from '@angular/cdk/platform'; import { Directive, ElementRef, InjectionToken, Input, NgZ...
{ "end_byte": 7447, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.ts" }
components/src/material/core/ripple/ripple.spec.ts_0_1930
import {Platform} from '@angular/cdk/platform'; import { createMouseEvent, createTouchEvent, dispatchEvent, dispatchFakeEvent, dispatchMouseEvent, dispatchTouchEvent, } from '@angular/cdk/testing/private'; import {Component, ViewChild, ViewEncapsulation} from '@angular/core'; import {ComponentFixture, TestB...
{ "end_byte": 1930, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.spec.ts" }
components/src/material/core/ripple/ripple.spec.ts_1934_10921
describe('basic ripple', () => { let rippleDirective: MatRipple; const TARGET_HEIGHT = 200; const TARGET_WIDTH = 300; beforeEach(() => { fixture = TestBed.createComponent(BasicRippleContainer); fixture.detectChanges(); rippleTarget = fixture.nativeElement.querySelector('.mat-ripple'...
{ "end_byte": 10921, "start_byte": 1934, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.spec.ts" }
components/src/material/core/ripple/ripple.spec.ts_10927_18011
describe('when page is scrolled', () => { let veryLargeElement: HTMLDivElement = document.createElement('div'); let pageScrollTop = 500; let pageScrollLeft = 500; beforeEach(() => { // Add a very large element to make the page scroll veryLargeElement.style.width = '4000px'; ...
{ "end_byte": 18011, "start_byte": 10927, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.spec.ts" }
components/src/material/core/ripple/ripple.spec.ts_18015_22547
describe('global ripple options', () => { let rippleDirective: MatRipple; function createTestComponent( rippleConfig: RippleGlobalOptions, testComponent: any = BasicRippleContainer, extraImports: any[] = [], ) { // Reset the previously configured testing module to be able set new pr...
{ "end_byte": 22547, "start_byte": 18015, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.spec.ts" }
components/src/material/core/ripple/ripple.spec.ts_22551_31494
describe('configuring behavior', () => { let controller: RippleContainerWithInputBindings; beforeEach(() => { fixture = TestBed.createComponent(RippleContainerWithInputBindings); fixture.detectChanges(); controller = fixture.debugElement.componentInstance; rippleTarget = fixture.debugE...
{ "end_byte": 31494, "start_byte": 22551, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.spec.ts" }
components/src/material/core/ripple/ripple.spec.ts_31496_33325
@Component({ template: ` <div id="container" style="position: relative; width:300px; height:200px;" matRipple [matRippleTrigger]="trigger" [matRippleCentered]="centered" [matRippleRadius]="radius" [matRippleDisabled]="disabled" [matRippleAnimation]="animationConfig" [matR...
{ "end_byte": 33325, "start_byte": 31496, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.spec.ts" }
components/src/material/core/ripple/ripple-structure.scss_0_42
@use './ripple'; @include ripple.ripple;
{ "end_byte": 42, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-structure.scss" }
components/src/material/core/ripple/ripple.md_0_5842
Connect user input to screen reactions by using ripples to both indicate the point of touch, and to confirm that touch input was received. For touch or mouse, this occurs at the point of contact. The `matRipple` attribute directive defines an area in which a ripple animates on user interaction. ```html <div matRipple...
{ "end_byte": 5842, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.md" }
components/src/material/core/ripple/ripple.zone.spec.ts_0_1753
import {dispatchMouseEvent} from '@angular/cdk/testing/private'; import {Component, ViewChild} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {MatRippleModule} from '.'; import {MatRipple} from './ripple'; describe('MatRipple Zone.js integration', () => { let fixture: C...
{ "end_byte": 1753, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple.zone.spec.ts" }
components/src/material/core/ripple/_ripple.scss_0_2088
@use '@angular/cdk'; @use '../tokens/m2/mat/ripple' as tokens-mat-ripple; @use '../tokens/token-utils'; @mixin ripple() { // The host element of an mat-ripple directive should always have a position of "absolute" or // "relative" so that the ripples inside are correctly positioned relatively to the container. .m...
{ "end_byte": 2088, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/_ripple.scss" }
components/src/material/core/ripple/ripple-event-manager.ts_0_2484
/** * @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 {normalizePassiveListenerOptions, _getEventTarget} from '@angular/cdk/platform'; import {NgZone} from '@angul...
{ "end_byte": 2484, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-event-manager.ts" }
components/src/material/core/ripple/ripple-ref.ts_0_1585
/** * @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 */ /** Possible states for a ripple element. */ export enum RippleState { FADING_IN, VISIBLE, FADING_OUT, HIDDE...
{ "end_byte": 1585, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-ref.ts" }
components/src/material/core/ripple/index.ts_0_628
/** * @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 '../common-behaviors/common-module'; import {M...
{ "end_byte": 628, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/index.ts" }
components/src/material/core/ripple/ripple-renderer.ts_0_2802
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ElementRef, NgZone, Component, ChangeDetectionStrategy, ViewEncapsulation, Injector, } from '@an...
{ "end_byte": 2802, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-renderer.ts" }
components/src/material/core/ripple/ripple-renderer.ts_2803_10795
export class RippleRenderer implements EventListenerObject { /** Element where the ripples are being added to. */ private _containerElement: HTMLElement; /** Element which triggers the ripple elements on mouse events. */ private _triggerElement: HTMLElement | null; /** Whether the pointer is currently down ...
{ "end_byte": 10795, "start_byte": 2803, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-renderer.ts" }
components/src/material/core/ripple/ripple-renderer.ts_10798_19485
fadeOutRipple(rippleRef: RippleRef) { // For ripples already fading out or hidden, this should be a noop. if (rippleRef.state === RippleState.FADING_OUT || rippleRef.state === RippleState.HIDDEN) { return; } const rippleEl = rippleRef.element; const animationConfig = {...defaultRippleAnimatio...
{ "end_byte": 19485, "start_byte": 10798, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-renderer.ts" }
components/src/material/core/ripple/ripple-renderer.ts_19487_19859
/** * Returns the distance from the point (x, y) to the furthest corner of a rectangle. */ function distanceToFurthestCorner(x: number, y: number, rect: DOMRect) { const distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right)); const distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom)); ...
{ "end_byte": 19859, "start_byte": 19487, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/ripple-renderer.ts" }
components/src/material/core/ripple/_ripple-theme.scss_0_2792
@use 'sass:map'; @use '../tokens/m2/mat/ripple' as tokens-mat-ripple; @use '../tokens/token-utils'; @use '../style/sass-utils'; @use '../theming/theming'; @use '../theming/inspection'; @use '../theming/validation'; @mixin base($theme) { @if inspection.get-theme-version($theme) == 1 { @include _theme-from-tokens(...
{ "end_byte": 2792, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/ripple/_ripple-theme.scss" }
components/src/material/core/style/_layout-common.scss_0_178
// This mixin ensures an element spans to fill the nearest ancestor with defined positioning. @mixin fill { top: 0; left: 0; right: 0; bottom: 0; position: absolute; }
{ "end_byte": 178, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_layout-common.scss" }
components/src/material/core/style/_variables.scss_0_1700
// Media queries // TODO(josephperrott): Change $mat-xsmall and $mat-small usages to rely on BreakpointObserver, $xsmall: 'max-width: 599px'; $small: 'max-width: 959px'; // TODO: Revisit all z-indices before beta // z-index main list $z-index-fab: 20 !default; $z-index-drawer: 100 !default; // Global constants $pi: ...
{ "end_byte": 1700, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_variables.scss" }
components/src/material/core/style/_form-common.scss_0_918
@use '../theming/inspection'; @use './sass-utils'; // Renders a gradient for showing the dashed line when the input is disabled. // Unlike using a border, a gradient allows us to adjust the spacing of the dotted line // to match the Material Design spec. @mixin private-control-disabled-underline($color) { background...
{ "end_byte": 918, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_form-common.scss" }
components/src/material/core/style/_menu-common.scss_0_2216
@use '@angular/cdk'; @use './list-common'; @use './layout-common'; // The mixins below are shared between mat-menu and mat-select // menu width must be a multiple of 56px $overlay-min-width: 112px !default; // 56 * 2 $overlay-max-width: 280px !default; // 56 * 5 $item-height: 48px !default; $side-padding: 16px ...
{ "end_byte": 2216, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_menu-common.scss" }
components/src/material/core/style/_sass-utils.scss_0_4141
@use 'sass:color'; @use 'sass:string'; @use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; /// Whether our theming API is using --sys- variables for color tokens. $use-system-color-variables: false; /// Whether our theming API is using --sys- variables for typography tokens. $use-system-typography-variables: false; ...
{ "end_byte": 4141, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_sass-utils.scss" }
components/src/material/core/style/_checkbox-common.scss_0_349
// The width/height of the checkbox element. $size: 18px !default; // The width/height of the legacy-checkbox element. $legacy-size: 16px !default; // The width of the checkbox border shown when the checkbox is unchecked. $border-width: 2px; // The base duration used for the majority of transitions for the checkbox....
{ "end_byte": 349, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_checkbox-common.scss" }
components/src/material/core/style/_vendor-prefixes.scss_0_1052
// stylelint-disable material/no-prefixes @mixin user-select($value) { -webkit-user-select: $value; user-select: $value; } @mixin input-placeholder { &::placeholder { @content; } &::-moz-placeholder { @content; } &::-webkit-input-placeholder { @content; } // Note: this isn't necessary ...
{ "end_byte": 1052, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_vendor-prefixes.scss" }
components/src/material/core/style/_elevation.scss_0_3721
@use 'sass:map'; @use 'sass:math'; @use 'sass:meta'; @use 'sass:string'; @use './variables'; @use './sass-utils'; $_umbra-opacity: 0.2; $_penumbra-opacity: 0.14; $_ambient-opacity: 0.12; $_umbra-map: ( 0: '0px 0px 0px 0px', 1: '0px 2px 1px -1px', 2: '0px 3px 1px -2px', 3: '0px 3px 3px -2px', 4: '0px 2px 4px...
{ "end_byte": 3721, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_elevation.scss" }
components/src/material/core/style/_elevation.scss_3722_6060
@function get-box-shadow($zValue, $shadow-color: black, $opacity: null) { @if $zValue == null { @return null; } @if (sass-utils.is-css-var-name($zValue)) { @return $zValue; } @if meta.type-of($zValue) != number or not math.is-unitless($zValue) { @error '$zValue must be a unitless number, but rec...
{ "end_byte": 6060, "start_byte": 3722, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_elevation.scss" }
components/src/material/core/style/_button-common.scss_0_561
@use './vendor-prefixes'; // Mixin overriding default button styles like the gray background, the border, and the outline. @mixin reset { @include vendor-prefixes.user-select(none); cursor: pointer; outline: none; border: none; -webkit-tap-highlight-color: transparent; // The `outline: none` from above wo...
{ "end_byte": 561, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_button-common.scss" }
components/src/material/core/style/_private.scss_0_1202
@use './elevation'; @use '../theming/inspection'; @mixin private-theme-elevation($zValue, $theme) { $elevation-color: inspection.get-theme-color($theme, foreground, elevation); $elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color); @include elevation.elevation($zValue, $e...
{ "end_byte": 1202, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_private.scss" }
components/src/material/core/style/_validation.scss_0_1565
@use 'sass:list'; @use 'sass:meta'; /// Validates that the object's type matches any of the expected types. /// @param {any} $obj The object to test /// @param {List} $types The expected types /// @return {String} null if no error, else the unexpected type. @function validate-type($obj, $types...) { $result: meta.ty...
{ "end_byte": 1565, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_validation.scss" }
components/src/material/core/style/_list-common.scss_0_1219
// This mixin will ensure that lines that overflow the container will hide the overflow and // truncate neatly with an ellipsis. @mixin truncate-line() { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } // Mixin to provide all mat-line styles, changing secondary font size based on whether the li...
{ "end_byte": 1219, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/style/_list-common.scss" }
components/src/material/core/option/_optgroup-theme.scss_0_2643
@use 'sass:map'; @use '../tokens/m2/mat/optgroup' as tokens-mat-optgroup; @use '../tokens/token-utils'; @use '../style/sass-utils'; @use '../theming/theming'; @use '../theming/validation'; @use '../theming/inspection'; @use '../typography/typography'; @mixin base($theme) { @if inspection.get-theme-version($theme) ==...
{ "end_byte": 2643, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/_optgroup-theme.scss" }
components/src/material/core/option/optgroup.html_0_283
<span class="mat-mdc-optgroup-label" role="presentation" [class.mdc-list-item--disabled]="disabled" [id]="_labelId"> <span class="mdc-list-item__primary-text">{{ label }} <ng-content></ng-content></span> </span> <ng-content select="mat-option, ng-container"></ng-content>
{ "end_byte": 283, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/optgroup.html" }
components/src/material/core/option/option.html_0_1426
<!-- Set aria-hidden="true" to this DOM node and other decorative nodes in this file. This might be contributing to issue where sometimes VoiceOver focuses on a TextNode in the a11y tree instead of the Option node (#23202). Most assistive technology will generally ignore non-role, non-text-content elements. Adding a...
{ "end_byte": 1426, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option.html" }
components/src/material/core/option/option.scss_0_7268
@use '@angular/cdk'; @use '../tokens/m2/mat/option' as tokens-mat-option; @use '../tokens/m2/mdc/list' as tokens-mdc-list; @use '../tokens/token-utils'; @use '../style/vendor-prefixes'; @use '../style/layout-common'; $_side-padding: 16px; .mat-mdc-option { @include vendor-prefixes.user-select(none); @include ven...
{ "end_byte": 7268, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option.scss" }
components/src/material/core/option/optgroup.scss_0_1634
@use '../tokens/m2/mat/optgroup' as tokens-mat-optgroup; @use '../tokens/token-utils'; .mat-mdc-optgroup { // These tokens are set on the root option group to make them easier to override. @include token-utils.use-tokens( tokens-mat-optgroup.$prefix, tokens-mat-optgroup.get-token-slots()) { @include token-...
{ "end_byte": 1634, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/optgroup.scss" }
components/src/material/core/option/option.ts_0_1630
/** * @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 {FocusableOption, FocusOrigin} from '@angular/cdk/a11y'; import {ENTER, hasModifierKey, SPACE} from '@angular...
{ "end_byte": 1630, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option.ts" }
components/src/material/core/option/option.ts_1631_10097
@Component({ selector: 'mat-option', exportAs: 'matOption', host: { 'role': 'option', '[class.mdc-list-item--selected]': 'selected', '[class.mat-mdc-option-multiple]': 'multiple', '[class.mat-mdc-option-active]': 'active', '[class.mdc-list-item--disabled]': 'disabled', '[id]': 'id', //...
{ "end_byte": 10097, "start_byte": 1631, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option.ts" }
components/src/material/core/option/option.ts_10099_11660
/** * Counts the amount of option group labels that precede the specified option. * @param optionIndex Index of the option at which to start counting. * @param options Flat list of all of the options. * @param optionGroups Flat list of all of the option groups. * @docs-private */ export function _countGroupLabels...
{ "end_byte": 11660, "start_byte": 10099, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option.ts" }
components/src/material/core/option/_option-theme.scss_0_4365
@use '../tokens/m2/mat/option' as tokens-mat-option; @use '../tokens/token-utils'; @use '../style/sass-utils'; @use '../theming/theming'; @use '../theming/inspection'; @use '../theming/validation'; @use '../typography/typography'; /// Outputs base theme styles (styles not dependent on the color, typography, or density...
{ "end_byte": 4365, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/_option-theme.scss" }
components/src/material/core/option/index.ts_0_765
/** * @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 {MatRippleModule} from '../ripple/index'; import {MatPseudoCheckboxMo...
{ "end_byte": 765, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/index.ts" }
components/src/material/core/option/option.spec.ts_0_9151
import {waitForAsync, ComponentFixture, TestBed} from '@angular/core/testing'; import {Component, DebugElement, signal} from '@angular/core'; import {By} from '@angular/platform-browser'; import { dispatchFakeEvent, dispatchKeyboardEvent, createKeyboardEvent, dispatchEvent, } from '@angular/cdk/testing/private'...
{ "end_byte": 9151, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option.spec.ts" }
components/src/material/core/option/option-parent.ts_0_783
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {InjectionToken, Signal} from '@angular/core'; /** * Describes a parent component that manages a list of op...
{ "end_byte": 783, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/option-parent.ts" }
components/src/material/core/option/optgroup.ts_0_3575
/** * @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, Input, InjectionToken, booleanAttribute,...
{ "end_byte": 3575, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/option/optgroup.ts" }
components/src/material/core/testing/option-harness.spec.ts_0_4144
import {HarnessLoader, parallel} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, QueryList, ViewChildren, signal} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import { MAT_OPTION_PARENT_COMPONENT, MatOp...
{ "end_byte": 4144, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/option-harness.spec.ts" }
components/src/material/core/testing/public-api.ts_0_360
/** * @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 './option-harness'; export * from './option-harness-filters'; export * from './optgroup-harness'; expo...
{ "end_byte": 360, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/public-api.ts" }
components/src/material/core/testing/optgroup-harness.ts_0_2028
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ComponentHarness, ComponentHarnessConstructor, HarnessPredicate, } from '@angular/cdk/testing'; impor...
{ "end_byte": 2028, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/optgroup-harness.ts" }
components/src/material/core/testing/optgroup-harness-filters.ts_0_364
/** * @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'; export interface OptgroupHarnessFilters extends BaseHarnes...
{ "end_byte": 364, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/optgroup-harness-filters.ts" }
components/src/material/core/testing/BUILD.bazel_0_676
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/testing", ], ) filegroup( ...
{ "end_byte": 676, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/BUILD.bazel" }
components/src/material/core/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/core/testing/index.ts" }
components/src/material/core/testing/optgroup-harness.spec.ts_0_2644
import {Component} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {HarnessLoader, parallel} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {MatOptionModule} from '@angular/material/core'; import {MatOptgroupHarne...
{ "end_byte": 2644, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/optgroup-harness.spec.ts" }
components/src/material/core/testing/option-harness-filters.ts_0_381
/** * @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'; export interface OptionHarnessFilters extends BaseHarnessF...
{ "end_byte": 381, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/option-harness-filters.ts" }
components/src/material/core/testing/option-harness.ts_0_2397
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ComponentHarnessConstructor, ContentContainerComponentHarness, HarnessPredicate, } from '@angular/cdk...
{ "end_byte": 2397, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/testing/option-harness.ts" }
components/src/material/core/theming/_m2-inspection.scss_0_7006
@use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; @use './theming'; @use '../m2/theming' as m2-theming; @use '../m2/typography-utils' as m2-typography-utils; @use '../typography/versioning' as typography-versioning; /// Key used to access the Angular Material theme internals. $_internals: _mat-theming-internals-do-...
{ "end_byte": 7006, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_m2-inspection.scss" }
components/src/material/core/theming/_m2-inspection.scss_7007_10302
@function theme-has($theme, $system) { $theme: _get-m2-config($theme); @if $system == base { @return true; } @if $system == color { $color: m2-theming.get-color-config($theme); @return $color != null and _has-any-key($color, $_color-keys); } @if $system == typography { $typography: m2-themin...
{ "end_byte": 10302, "start_byte": 7007, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_m2-inspection.scss" }
components/src/material/core/theming/_color-api-backwards-compatibility.scss_0_3935
@use '../../badge/badge-theme'; @use '../../button/button-theme'; @use '../../button/fab-theme'; @use '../../button/icon-button-theme'; @use '../../checkbox/checkbox-theme'; @use '../../chips/chips-theme'; @use '../../datepicker/datepicker-theme'; @use '../../icon/icon-theme'; @use '../../progress-bar/progress-bar-them...
{ "end_byte": 3935, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_color-api-backwards-compatibility.scss" }
components/src/material/core/theming/_config-validation.scss_0_5732
@use 'sass:list'; @use 'sass:map'; @use 'sass:meta'; @use 'sass:string'; @use '../style/validation'; @use './palettes'; /// Creates an error message by finding `$config` in the existing message and appending a suffix to /// it. /// @param {List|String} $err The error message. /// @param {String} $suffix The suffix to ...
{ "end_byte": 5732, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_config-validation.scss" }
components/src/material/core/theming/_palettes.scss_0_588
@use 'sass:map'; /// Adds the error colors to the given palette. @function _patch-error-palette($palette) { @return map.merge( $palette, ( error: ( 0: #000000, 10: #410002, 20: #690005, 25: #7e0007, 30: #93000a, 35: #a80710, 40: #ba1a1a, 5...
{ "end_byte": 588, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palettes.scss" }
components/src/material/core/theming/_palettes.scss_589_3964
$red-palette: _patch-error-palette(( 0: #000000, 10: #410000, 20: #690100, 25: #7e0100, 30: #930100, 35: #a90100, 40: #c00100, 50: #ef0000, 60: #ff5540, 70: #ff8a78, 80: #ffb4a8, 90: #ffdad4, 95: #ffedea, 98: #fff8f6, 99: #fffbff, 100: #ffffff, secondary: ( 0: #000000, 10: #2c1...
{ "end_byte": 3964, "start_byte": 589, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palettes.scss" }
components/src/material/core/theming/_palettes.scss_3965_7701
( 0: #000000, 10: #1b1b1f, 20: #303034, 25: #3c3b3f, 30: #47464a, 35: #535256, 40: #5f5e62, 50: #78767a, 60: #929094, 70: #adaaaf, 80: #c8c5ca, 90: #e5e1e6, 95: #f3eff4, 98: #fcf8fd, 99: #fffbff, 100: #ffffff, 4: #0e0e11, 6: #131316, 12: #201f2...
{ "end_byte": 7701, "start_byte": 3965, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palettes.scss" }
components/src/material/core/theming/_palettes.scss_7701_10975
: #950094, 40: #a900a9, 50: #d200d2, 60: #fe00fe, 70: #ff76f6, 80: #ffabf3, 90: #ffd7f5, 95: #ffebf8, 98: #fff7f9, 99: #fffbff, 100: #ffffff, secondary: ( 0: #000000, 10: #271624, 20: #3d2b3a, 25: #493545, 30: #554151, 35: #614c5d, 40: #6e5869, 50: #877082, 60: ...
{ "end_byte": 10975, "start_byte": 7701, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palettes.scss" }
components/src/material/core/theming/_palettes.scss_10976_14710
( 0: #000000, 10: #1a1c18, 20: #2f312c, 25: #3a3c37, 30: #464742, 35: #52534e, 40: #5e5f5a, 50: #767872, 60: #90918b, 70: #abaca5, 80: #c7c7c0, 90: #e3e3dc, 95: #f1f1ea, 98: #fafaf2, 99: #fdfdf5, 100: #ffffff, 4: #0c0f0b, 6: #121410, 12: #1e201...
{ "end_byte": 14710, "start_byte": 10976, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palettes.scss" }
components/src/material/core/theming/_palettes.scss_14711_17334
#5f00c0, 35: #6e00dc, 40: #7d00fa, 50: #944aff, 60: #a974ff, 70: #bf98ff, 80: #d5baff, 90: #ecdcff, 95: #f7edff, 98: #fef7ff, 99: #fffbff, 100: #ffffff, secondary: ( 0: #000000, 10: #1f182a, 20: #352d40, 25: #40384c, 30: #4b4357, 35: #574f63, 40: #645b70, 50: #7d7...
{ "end_byte": 17334, "start_byte": 14711, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palettes.scss" }
components/src/material/core/theming/_definition.scss_0_4512
// This file contains functions used to define Angular Material theme objects. @use 'sass:map'; @use '../style/sass-utils'; @use './palettes'; @use '../tokens/m3-tokens'; @use './config-validation'; // Prefix used for component token fallback variables, e.g. // `color: var(--mdc-text-button-label-text-color, var(--ma...
{ "end_byte": 4512, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_definition.scss" }
components/src/material/core/theming/_palette-deprecated.scss_0_2241
@use './palette'; // @deprecated Use `$red-palette` instead $red: palette.$red-palette; // @deprecated Use `$pink-palette` instead $pink: palette.$pink-palette; // @deprecated Use `$indigo-palette` instead $indigo: palette.$indigo-palette; // @deprecated Use `$purple-palette` instead. $purple: palette.$purple-palet...
{ "end_byte": 2241, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_palette-deprecated.scss" }
components/src/material/core/theming/_inspection.scss_0_2853
@use 'sass:list'; @use 'sass:map'; @use '../style/validation'; @use './m2-inspection'; $_internals: _mat-theming-internals-do-not-access; $_m3-typescales: ( display-large, display-medium, display-small, headline-large, headline-medium, headline-small, title-large, title-medium, title-small, label-...
{ "end_byte": 2853, "start_byte": 0, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_inspection.scss" }
components/src/material/core/theming/_inspection.scss_2857_10048
@if $version == 0 { @return m2-inspection.get-theme-color($theme, $args...); } @else if $version == 1 { @if $args-count == 1 { @return _get-theme-role-color($theme, $args...); } @else if $args-count == 2 { @return _get-theme-palette-color($theme, $args...); } } @else { @error...
{ "end_byte": 10048, "start_byte": 2857, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_inspection.scss" }
components/src/material/core/theming/_inspection.scss_10049_11217
@function get-theme-tokens($theme, $systems...) { $systems: if(list.length($systems) == 0, (color, typography, density, base), $systems); $err: _validate-theme-object($theme); @if $err { @error #{'Expected $theme to be an Angular Material theme object. Got:'} $theme; } $err: validation.validate-allowed-va...
{ "end_byte": 11217, "start_byte": 10049, "url": "https://github.com/angular/components/blob/main/src/material/core/theming/_inspection.scss" }