@angular/material 20.2.0-next.2 → 20.2.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +7 -7
- package/autocomplete/testing/index.d.ts +1 -1
- package/badge/index.d.ts +4 -4
- package/badge/testing/index.d.ts +2 -2
- package/{badge.d-Cn81aRz4.d.ts → badge.d.d.ts} +3 -3
- package/bottom-sheet/index.d.ts +1 -1
- package/button/index.d.ts +5 -5
- package/button-toggle/index.d.ts +5 -5
- package/button-toggle/testing/index.d.ts +1 -1
- package/{button-toggle.d-B_G01PhW.d.ts → button-toggle.d.d.ts} +2 -2
- package/card/index.d.ts +1 -1
- package/checkbox/index.d.ts +2 -2
- package/chips/index.d.ts +8 -6
- package/{common-module.d-C8xzHJDr.d.ts → common-module.d.d.ts} +2 -2
- package/core/index.d.ts +14 -14
- package/core/testing/index.d.ts +1 -1
- package/core/tokens/_system.scss +33 -0
- package/core/tokens/m2/_md-sys-color.scss +20 -20
- package/{date-adapter.d-CtKXIxk0.d.ts → date-adapter.d.d.ts} +1 -1
- package/{date-range-input-harness.d-D9G3xNDV.d.ts → date-range-input-harness.d.d.ts} +2 -2
- package/datepicker/index.d.ts +8 -8
- package/datepicker/testing/index.d.ts +2 -2
- package/dialog/index.d.ts +3 -3
- package/dialog/testing/index.d.ts +1 -1
- package/{dialog.d-hlN3f-Hk.d.ts → dialog.d.d.ts} +2 -2
- package/divider/index.d.ts +1 -1
- package/{error-options.d-CGdTZUYk.d.ts → error-options.d.d.ts} +1 -1
- package/expansion/index.d.ts +1 -1
- package/fesm2022/{animation-ChQ1vjiF.mjs → animation.mjs} +2 -2
- package/fesm2022/animation.mjs.map +1 -0
- package/fesm2022/autocomplete/testing.mjs +1 -1
- package/fesm2022/autocomplete.mjs +25 -25
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +12 -12
- package/fesm2022/bottom-sheet.mjs +12 -12
- package/fesm2022/button-toggle.mjs +18 -18
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +21 -21
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +47 -47
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +12 -12
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +67 -55
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-Ckwlusp6.mjs → common-module.mjs} +6 -6
- package/fesm2022/common-module.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +1 -1
- package/fesm2022/core.mjs +28 -28
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-formats-K6TQue-Y.mjs → date-formats.mjs} +2 -2
- package/fesm2022/date-formats.mjs.map +1 -0
- package/fesm2022/{date-range-input-harness-BZyjpIJH.mjs → date-range-input-harness.mjs} +2 -2
- package/fesm2022/date-range-input-harness.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +2 -2
- package/fesm2022/datepicker.mjs +94 -94
- package/fesm2022/dialog/testing.mjs +3 -3
- package/fesm2022/{module-BVI4kAmT.mjs → dialog-module.mjs} +29 -29
- package/fesm2022/dialog-module.mjs.map +1 -0
- package/fesm2022/dialog.mjs +3 -3
- package/fesm2022/divider.mjs +8 -8
- package/fesm2022/{error-options-DasykDPK.mjs → error-options.mjs} +8 -8
- package/fesm2022/error-options.mjs.map +1 -0
- package/fesm2022/{error-state-Dtb1IHM-.mjs → error-state.mjs} +2 -2
- package/fesm2022/error-state.mjs.map +1 -0
- package/fesm2022/expansion.mjs +28 -28
- package/fesm2022/form-field/testing.mjs +2 -2
- package/fesm2022/{module-Bww_vjaX.mjs → form-field-module.mjs} +8 -8
- package/fesm2022/form-field-module.mjs.map +1 -0
- package/fesm2022/form-field.mjs +4 -4
- package/fesm2022/{form-field-Ce1YJL9K.mjs → form-field2.mjs} +41 -37
- package/fesm2022/form-field2.mjs.map +1 -0
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list.mjs +26 -26
- package/fesm2022/icon/testing.mjs +8 -8
- package/fesm2022/{icon-button-CfB6KH_E.mjs → icon-button.mjs} +11 -11
- package/fesm2022/icon-button.mjs.map +1 -0
- package/fesm2022/{icon-registry-CLBDUSOu.mjs → icon-registry.mjs} +5 -5
- package/fesm2022/icon-registry.mjs.map +1 -0
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/input/testing.mjs +1 -1
- package/fesm2022/{input-harness-C5Msdc4-.mjs → input-harness.mjs} +2 -2
- package/fesm2022/input-harness.mjs.map +1 -0
- package/fesm2022/{input-value-accessor-D1GvPuqO.mjs → input-value-accessor.mjs} +2 -2
- package/fesm2022/input-value-accessor.mjs.map +1 -0
- package/fesm2022/input.mjs +15 -15
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-C-QWn7el.mjs → internal-form-field.mjs} +5 -5
- package/fesm2022/internal-form-field.mjs.map +1 -0
- package/fesm2022/{line-B0IgETj1.mjs → line.mjs} +10 -10
- package/fesm2022/line.mjs.map +1 -0
- package/fesm2022/list.mjs +56 -56
- package/fesm2022/menu.mjs +27 -27
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{option-harness-BFcc-M_4.mjs → option-harness.mjs} +2 -2
- package/fesm2022/option-harness.mjs.map +1 -0
- package/fesm2022/{index-CAi4o7I5.mjs → option-module.mjs} +10 -10
- package/fesm2022/option-module.mjs.map +1 -0
- package/fesm2022/{option-_yFTwxlw.mjs → option.mjs} +11 -11
- package/fesm2022/option.mjs.map +1 -0
- package/fesm2022/paginator.mjs +27 -27
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +9 -9
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +9 -9
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/{pseudo-checkbox-module-BwXRv-p0.mjs → pseudo-checkbox-module.mjs} +8 -8
- package/fesm2022/pseudo-checkbox-module.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox-CJSCiP0Y.mjs → pseudo-checkbox.mjs} +6 -6
- package/fesm2022/pseudo-checkbox.mjs.map +1 -0
- package/fesm2022/{public-api-BoO5eSq-.mjs → public-api.mjs} +2 -2
- package/fesm2022/public-api.mjs.map +1 -0
- package/fesm2022/radio.mjs +16 -16
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-loader-B_67UOY7.mjs → ripple-loader.mjs} +7 -7
- package/fesm2022/ripple-loader.mjs.map +1 -0
- package/fesm2022/{index-rIXEckYE.mjs → ripple-module.mjs} +8 -8
- package/fesm2022/ripple-module.mjs.map +1 -0
- package/fesm2022/{ripple-DToxr3s4.mjs → ripple.mjs} +9 -9
- package/fesm2022/ripple.mjs.map +1 -0
- package/fesm2022/{module-BpF6A05B.mjs → select-module.mjs} +20 -20
- package/fesm2022/select-module.mjs.map +1 -0
- package/fesm2022/select.mjs +14 -14
- package/fesm2022/sidenav.mjs +24 -24
- package/fesm2022/slide-toggle.mjs +12 -12
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +21 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +29 -29
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +16 -16
- package/fesm2022/stepper.mjs +38 -38
- package/fesm2022/{structural-styles-wmZbw0XJ.mjs → structural-styles.mjs} +5 -5
- package/fesm2022/structural-styles.mjs.map +1 -0
- package/fesm2022/table.mjs +56 -56
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +47 -47
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker.mjs +23 -23
- package/fesm2022/toolbar.mjs +11 -11
- package/fesm2022/{module-X8APgGCS.mjs → tooltip-module.mjs} +14 -14
- package/fesm2022/tooltip-module.mjs.map +1 -0
- package/fesm2022/tooltip.mjs +3 -3
- package/fesm2022/tree.mjs +26 -26
- package/form-field/index.d.ts +5 -5
- package/form-field/testing/control/index.d.ts +1 -1
- package/form-field/testing/index.d.ts +3 -3
- package/{form-field-control-harness.d-BXb3NofW.d.ts → form-field-control-harness.d.d.ts} +1 -1
- package/{form-field-control.d-DvB4ZVlf.d.ts → form-field-control.d.d.ts} +1 -1
- package/{module.d-DZ2PGGPh.d.ts → form-field-module.d.d.ts} +3 -3
- package/{form-field.d-e195lFUo.d.ts → form-field.d.d.ts} +5 -5
- package/grid-list/index.d.ts +2 -2
- package/icon/index.d.ts +4 -4
- package/icon/testing/index.d.ts +1 -1
- package/{icon-module.d-COXCrhrh.d.ts → icon-module.d.d.ts} +4 -4
- package/{icon-registry.d-BVwP8t9_.d.ts → icon-registry.d.d.ts} +2 -2
- package/input/index.d.ts +8 -8
- package/input/testing/index.d.ts +2 -2
- package/{input-harness.d-DVI6ttzl.d.ts → input-harness.d.d.ts} +2 -2
- package/{line.d-C-QdueRc.d.ts → line.d.d.ts} +2 -2
- package/list/index.d.ts +6 -6
- package/list/testing/index.d.ts +1 -1
- package/{list-option-types.d-77dQtwu8.d.ts → list-option-types.d.d.ts} +1 -1
- package/menu/index.d.ts +3 -3
- package/{option-harness.d-IqsW95GR.d.ts → option-harness.d.d.ts} +2 -2
- package/{index.d-DAhBYbjm.d.ts → option-module.d.d.ts} +5 -5
- package/{option-parent.d-CnYuuMkO.d.ts → option-parent.d.d.ts} +2 -2
- package/{option.d-BcvS44bt.d.ts → option.d.d.ts} +1 -1
- package/package.json +2 -2
- package/paginator/index.d.ts +16 -16
- package/{paginator.d-Zo1cMMo4.d.ts → paginator.d.d.ts} +4 -4
- package/{palette.d-BSSFKjO6.d.ts → palette.d.d.ts} +1 -1
- package/progress-bar/index.d.ts +2 -2
- package/progress-spinner/index.d.ts +4 -4
- package/progress-spinner/testing/index.d.ts +2 -2
- package/{progress-spinner.d-Lfz4Wh5x.d.ts → progress-spinner.d.d.ts} +3 -3
- package/{pseudo-checkbox-module.d-BHmTZ10P.d.ts → pseudo-checkbox-module.d.d.ts} +3 -3
- package/radio/index.d.ts +4 -4
- package/{ripple-loader.d-9me-KFSi.d.ts → ripple-loader.d.d.ts} +1 -1
- package/{index.d-C5neTPvr.d.ts → ripple-module.d.d.ts} +3 -3
- package/{ripple.d-BT30YVLB.d.ts → ripple.d.d.ts} +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/select/index.d.ts +12 -12
- package/{module.d-gWBlTHnh.d.ts → select-module.d.d.ts} +9 -9
- package/sidenav/index.d.ts +1 -1
- package/slide-toggle/index.d.ts +2 -2
- package/slider/index.d.ts +4 -4
- package/snack-bar/index.d.ts +5 -5
- package/sort/index.d.ts +4 -4
- package/sort/testing/index.d.ts +1 -1
- package/{sort-direction.d-CF7VUsH-.d.ts → sort-direction.d.d.ts} +1 -1
- package/{sort.d-i-bF_IaU.d.ts → sort.d.d.ts} +3 -3
- package/stepper/index.d.ts +6 -6
- package/table/index.d.ts +7 -7
- package/tabs/index.d.ts +3 -3
- package/timepicker/index.d.ts +2 -2
- package/timepicker/testing/index.d.ts +1 -1
- package/toolbar/index.d.ts +1 -1
- package/tooltip/index.d.ts +2 -2
- package/{module.d-m-qXd3m8.d.ts → tooltip-module.d.d.ts} +3 -3
- package/tree/index.d.ts +1 -1
- package/fesm2022/animation-ChQ1vjiF.mjs.map +0 -1
- package/fesm2022/common-module-Ckwlusp6.mjs.map +0 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +0 -1
- package/fesm2022/date-range-input-harness-BZyjpIJH.mjs.map +0 -1
- package/fesm2022/error-options-DasykDPK.mjs.map +0 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +0 -1
- package/fesm2022/form-field-Ce1YJL9K.mjs.map +0 -1
- package/fesm2022/icon-button-CfB6KH_E.mjs.map +0 -1
- package/fesm2022/icon-registry-CLBDUSOu.mjs.map +0 -1
- package/fesm2022/index-CAi4o7I5.mjs.map +0 -1
- package/fesm2022/index-rIXEckYE.mjs.map +0 -1
- package/fesm2022/input-harness-C5Msdc4-.mjs.map +0 -1
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +0 -1
- package/fesm2022/internal-form-field-C-QWn7el.mjs.map +0 -1
- package/fesm2022/line-B0IgETj1.mjs.map +0 -1
- package/fesm2022/module-BVI4kAmT.mjs.map +0 -1
- package/fesm2022/module-BpF6A05B.mjs.map +0 -1
- package/fesm2022/module-Bww_vjaX.mjs.map +0 -1
- package/fesm2022/module-X8APgGCS.mjs.map +0 -1
- package/fesm2022/option-_yFTwxlw.mjs.map +0 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-CJSCiP0Y.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-module-BwXRv-p0.mjs.map +0 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +0 -1
- package/fesm2022/ripple-DToxr3s4.mjs.map +0 -1
- package/fesm2022/ripple-loader-B_67UOY7.mjs.map +0 -1
- package/fesm2022/structural-styles-wmZbw0XJ.mjs.map +0 -1
package/autocomplete/index.d.ts
CHANGED
|
@@ -2,18 +2,18 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, AfterContentInit, OnDestroy, TemplateRef, ElementRef, QueryList, EventEmitter, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/cdk/overlay';
|
|
4
4
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { MatOptionModule } from '../option-module.d.js';
|
|
6
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
7
|
+
import { ThemePalette } from '../palette.d.js';
|
|
8
|
+
import { MatOption, MatOptgroup, MatOptionSelectionChange } from '../option.d.js';
|
|
9
9
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
10
10
|
import { ControlValueAccessor } from '@angular/forms';
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import * as i5 from '@angular/cdk/scrolling';
|
|
13
|
-
import '../
|
|
14
|
-
import '../ripple.d
|
|
13
|
+
import '../ripple-module.d.js';
|
|
14
|
+
import '../ripple.d.js';
|
|
15
15
|
import '@angular/cdk/platform';
|
|
16
|
-
import '../pseudo-checkbox-module.d
|
|
16
|
+
import '../pseudo-checkbox-module.d.js';
|
|
17
17
|
import '@angular/cdk/bidi';
|
|
18
18
|
|
|
19
19
|
/** Event object that is emitted when an autocomplete option is selected. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
2
|
+
import { OptionHarnessFilters, MatOptionHarness } from '../../option-harness.d.js';
|
|
3
3
|
import { OptgroupHarnessFilters, MatOptgroupHarness } from '../../core/testing/index.js';
|
|
4
4
|
|
|
5
5
|
/** A set of criteria that can be used to filter a list of `MatAutocompleteHarness` instances. */
|
package/badge/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@angular/cdk/a11y';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
3
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
4
|
+
import { MatBadge, _MatBadgeStyleLoader } from '../badge.d.js';
|
|
5
|
+
export { MatBadgePosition, MatBadgeSize } from '../badge.d.js';
|
|
6
6
|
import '@angular/cdk/bidi';
|
|
7
|
-
import '../palette.d
|
|
7
|
+
import '../palette.d.js';
|
|
8
8
|
|
|
9
9
|
declare class MatBadgeModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeModule, never>;
|
package/badge/testing/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
2
|
+
import { MatBadgePosition, MatBadgeSize } from '../../badge.d.js';
|
|
3
3
|
import '@angular/core';
|
|
4
|
-
import '../../palette.d
|
|
4
|
+
import '../../palette.d.js';
|
|
5
5
|
|
|
6
6
|
interface BadgeHarnessFilters extends BaseHarnessFilters {
|
|
7
7
|
text?: string | RegExp;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemePalette } from './palette.d.js';
|
|
4
4
|
|
|
5
5
|
/** Allowed position options for matBadgePosition */
|
|
6
6
|
type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
|
|
@@ -95,5 +95,5 @@ declare class MatBadge implements OnInit, OnDestroy {
|
|
|
95
95
|
static ngAcceptInputType_hidden: unknown;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
export { MatBadge
|
|
99
|
-
export type { MatBadgePosition
|
|
98
|
+
export { MatBadge, _MatBadgeStyleLoader };
|
|
99
|
+
export type { MatBadgePosition, MatBadgeSize };
|
package/bottom-sheet/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnDestroy, EventEmitter, InjectionToken, ViewContainerRef, ComponentRef, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/dialog';
|
|
4
4
|
import { CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
|
|
5
|
-
import {
|
|
5
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
6
6
|
import * as i3 from '@angular/cdk/portal';
|
|
7
7
|
import { ComponentType } from '@angular/cdk/portal';
|
|
8
8
|
import { Direction } from '@angular/cdk/bidi';
|
package/button/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, NgZone } from '@angular/core';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { ThemePalette } from '../palette.d.js';
|
|
5
|
+
import { MatRippleLoader } from '../ripple-loader.d.js';
|
|
6
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
7
|
+
import { MatRippleModule } from '../ripple-module.d.js';
|
|
8
8
|
import '@angular/cdk/bidi';
|
|
9
|
-
import '../ripple.d
|
|
9
|
+
import '../ripple.d.js';
|
|
10
10
|
import '@angular/cdk/platform';
|
|
11
11
|
|
|
12
12
|
/**
|
package/button-toggle/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { MatButtonToggleGroup, MatButtonToggle } from '../button-toggle.d.js';
|
|
2
|
+
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP, MAT_BUTTON_TOGGLE_GROUP_DEFAULT_OPTIONS_FACTORY, MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, MatButtonToggleAppearance, MatButtonToggleChange, MatButtonToggleDefaultOptions, ToggleType } from '../button-toggle.d.js';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
5
|
+
import { MatRippleModule } from '../ripple-module.d.js';
|
|
6
6
|
import '@angular/cdk/bidi';
|
|
7
7
|
import '@angular/forms';
|
|
8
|
-
import '../ripple.d
|
|
8
|
+
import '../ripple.d.js';
|
|
9
9
|
import '@angular/cdk/platform';
|
|
10
10
|
|
|
11
11
|
declare class MatButtonToggleModule {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
2
|
+
import { MatButtonToggleAppearance } from '../../button-toggle.d.js';
|
|
3
3
|
import '@angular/cdk/bidi';
|
|
4
4
|
import '@angular/core';
|
|
5
5
|
import '@angular/forms';
|
|
@@ -254,5 +254,5 @@ declare class MatButtonToggle implements OnInit, AfterViewInit, OnDestroy {
|
|
|
254
254
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
export {
|
|
258
|
-
export type {
|
|
257
|
+
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP, MAT_BUTTON_TOGGLE_GROUP_DEFAULT_OPTIONS_FACTORY, MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, MatButtonToggle, MatButtonToggleChange, MatButtonToggleGroup };
|
|
258
|
+
export type { MatButtonToggleAppearance, MatButtonToggleDefaultOptions, ToggleType };
|
package/card/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
4
4
|
import '@angular/cdk/bidi';
|
|
5
5
|
|
|
6
6
|
type MatCardAppearance = 'outlined' | 'raised' | 'filled';
|
package/checkbox/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { FocusableOption } from '@angular/cdk/a11y';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { AfterViewInit, OnChanges, ElementRef, EventEmitter, SimpleChanges, InjectionToken } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ThemePalette } from '../palette.d.js';
|
|
6
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
7
7
|
import '@angular/cdk/bidi';
|
|
8
8
|
|
|
9
9
|
/**
|
package/chips/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { ElementRef, OnInit, AfterViewInit, AfterContentInit, DoCheck, OnDestroy
|
|
|
3
3
|
import { Subject, Observable } from 'rxjs';
|
|
4
4
|
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
5
5
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { ErrorStateMatcher } from '../error-options.d.js';
|
|
7
|
+
import { MatFormFieldControl } from '../form-field-control.d.js';
|
|
8
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
9
|
+
import { MatRippleModule } from '../ripple-module.d.js';
|
|
10
10
|
import '@angular/cdk/bidi';
|
|
11
|
-
import '../ripple.d
|
|
11
|
+
import '../ripple.d.js';
|
|
12
12
|
import '@angular/cdk/platform';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -39,7 +39,7 @@ declare class MatChipAction {
|
|
|
39
39
|
/**
|
|
40
40
|
* Private API to allow focusing this chip when it is disabled.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
_allowFocusWhenDisabled: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Determine the value of the disabled attribute for this chip action.
|
|
45
45
|
*/
|
|
@@ -175,6 +175,8 @@ declare class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoChec
|
|
|
175
175
|
_ariaDescriptionId: string;
|
|
176
176
|
/** Whether the chip list is disabled. */
|
|
177
177
|
_chipListDisabled: boolean;
|
|
178
|
+
/** Whether the chip was focused when it was removed. */
|
|
179
|
+
_hadFocusOnRemove: boolean;
|
|
178
180
|
private _textElement;
|
|
179
181
|
/**
|
|
180
182
|
* The value of the chip. Defaults to the content inside
|
|
@@ -40,5 +40,5 @@ declare class MatCommonModule {
|
|
|
40
40
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatCommonModule>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export {
|
|
44
|
-
export type { GranularSanityChecks
|
|
43
|
+
export { MATERIAL_SANITY_CHECKS, MatCommonModule };
|
|
44
|
+
export type { GranularSanityChecks, SanityChecks };
|
package/core/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Version, InjectionToken, Provider } from '@angular/core';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { GranularSanityChecks, MATERIAL_SANITY_CHECKS, MatCommonModule, SanityChecks } from '../common-module.d.js';
|
|
4
|
+
export { ThemePalette } from '../palette.d.js';
|
|
5
5
|
import { NgControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
export {
|
|
7
|
+
import { ErrorStateMatcher as ErrorStateMatcher$1 } from '../error-options.d.js';
|
|
8
|
+
export { ShowOnDirtyErrorStateMatcher } from '../error-options.d.js';
|
|
9
|
+
export { MatLine, MatLineModule, setLines } from '../line.d.js';
|
|
10
|
+
export { MatOptionModule } from '../option-module.d.js';
|
|
11
|
+
export { MAT_OPTGROUP, MatOptgroup, MatOption, MatOptionSelectionChange, _countGroupLabelsBeforeOption, _getOptionScrollPosition } from '../option.d.js';
|
|
12
|
+
export { MAT_OPTION_PARENT_COMPONENT, MatOptionParentComponent } from '../option-parent.d.js';
|
|
13
|
+
export { MatRippleLoader } from '../ripple-loader.d.js';
|
|
14
|
+
export { MAT_RIPPLE_GLOBAL_OPTIONS, MatRipple, RippleAnimationConfig, RippleConfig, RippleGlobalOptions, RippleRef, RippleRenderer, RippleState, RippleTarget, defaultRippleAnimationConfig } from '../ripple.d.js';
|
|
15
|
+
export { MatRippleModule } from '../ripple-module.d.js';
|
|
16
|
+
export { MatPseudoCheckbox, MatPseudoCheckboxModule, MatPseudoCheckboxState } from '../pseudo-checkbox-module.d.js';
|
|
17
|
+
import { DateAdapter } from '../date-adapter.d.js';
|
|
18
|
+
export { MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY } from '../date-adapter.d.js';
|
|
19
19
|
import '@angular/cdk/bidi';
|
|
20
20
|
import '@angular/cdk/a11y';
|
|
21
21
|
import '@angular/cdk/platform';
|
package/core/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OptionHarnessFilters, MatOptionHarness } from '../../option-harness.d.js';
|
|
2
2
|
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
3
|
|
|
4
4
|
interface OptgroupHarnessFilters extends BaseHarnessFilters {
|
package/core/tokens/_system.scss
CHANGED
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
@use '../style/elevation';
|
|
19
19
|
@use '../theming/config-validation';
|
|
20
20
|
@use '../theming/definition';
|
|
21
|
+
@use '../theming/inspection';
|
|
21
22
|
@use '../theming/m2-inspection';
|
|
22
23
|
@use '../theming/palettes';
|
|
23
24
|
@use '../style/sass-utils';
|
|
24
25
|
@use './m2';
|
|
25
26
|
@use './m3';
|
|
27
|
+
@use 'sass:list';
|
|
26
28
|
@use 'sass:map';
|
|
27
29
|
@use 'sass:meta';
|
|
28
30
|
|
|
@@ -322,6 +324,25 @@
|
|
|
322
324
|
// Unlike M3's `mat.theme()`, this mixin does not replace the need to call
|
|
323
325
|
// individual component theme mixins for Angular Material components.
|
|
324
326
|
@mixin m2-theme($theme-config, $overrides: ()) {
|
|
327
|
+
@if inspection.get-theme-version($theme-config) == 1 {
|
|
328
|
+
@error '`m2-theme` mixin should only be called for M2 theme ' +
|
|
329
|
+
'configs created with define-light-theme or define-dark-theme';
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Check whether any override keys do not match keys in the theme
|
|
333
|
+
// config system map.
|
|
334
|
+
$invalid-keys: ();
|
|
335
|
+
$config-system: map.get($theme-config, _mat-system);
|
|
336
|
+
@each $key, $value in $overrides {
|
|
337
|
+
@if (not map.has-key($config-system, $key)) {
|
|
338
|
+
$invalid-keys: list.append($invalid-keys, $key);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
@if (list.length($invalid-keys) > 0) {
|
|
342
|
+
@error 'The following overrides are not valid system variables: #{$invalid-keys}. ' +
|
|
343
|
+
'Valid keys are: #{map.keys($config-system)}';
|
|
344
|
+
}
|
|
345
|
+
|
|
325
346
|
$config: m2-inspection.get-m2-config($theme-config);
|
|
326
347
|
|
|
327
348
|
$color: map.get($config, color);
|
|
@@ -350,6 +371,18 @@
|
|
|
350
371
|
|
|
351
372
|
@include _define-m2-system-vars(m2.md-sys-shape-values(), $overrides);
|
|
352
373
|
@include _define-m2-system-vars(m2.md-sys-state-values(), $overrides);
|
|
374
|
+
|
|
375
|
+
// The icon button's color token is set to `inherit` for M2 and intended to display
|
|
376
|
+
// the color inherited from its parent element. This is crucial because it's unknown
|
|
377
|
+
// whether the icon button sits on a container with background like "surface" or "primary",
|
|
378
|
+
// where both may have different contrast colors like white or black.
|
|
379
|
+
// However, variables set to inherit AND define a fallback will always use the fallback,
|
|
380
|
+
// which is "on-surface-variant". This mixin now defines this value.
|
|
381
|
+
// To avoid this, and continue using `inherit` for the icon button color, set the color explicitly
|
|
382
|
+
// to the token without a fallback.
|
|
383
|
+
.mat-mdc-button-base.mat-mdc-icon-button:not(.mat-mdc-button-disabled) {
|
|
384
|
+
color: var(--mat-icon-button-icon-color);
|
|
385
|
+
}
|
|
353
386
|
}
|
|
354
387
|
|
|
355
388
|
@mixin _define-m2-system-vars($vars, $overrides) {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
on-primary-container: map.get($palettes, primary, default-contrast),
|
|
29
29
|
on-primary-fixed: map.get($palettes, primary, default-contrast),
|
|
30
30
|
on-primary-fixed-variant: map.get($palettes, primary, default-contrast),
|
|
31
|
-
on-secondary-container: map.get($palettes, accent, default),
|
|
32
|
-
on-secondary-fixed: map.get($palettes, accent, default),
|
|
33
|
-
on-secondary-fixed-variant: map.get($palettes, accent, default),
|
|
31
|
+
on-secondary-container: map.get($palettes, accent, default-contrast),
|
|
32
|
+
on-secondary-fixed: map.get($palettes, accent, default-contrast),
|
|
33
|
+
on-secondary-fixed-variant: map.get($palettes, accent, default-contrast),
|
|
34
34
|
on-tertiary: map.get($palettes, accent, default-contrast),
|
|
35
35
|
on-tertiary-container: map.get($palettes, accent, default-contrast),
|
|
36
36
|
on-tertiary-fixed: map.get($palettes, accent, default-contrast),
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
primary-fixed: map.get($palettes, primary, default),
|
|
40
40
|
primary-fixed-dim: map.get($palettes, primary, default),
|
|
41
41
|
scrim: black,
|
|
42
|
-
secondary-container: map.get($palettes, accent, default
|
|
43
|
-
secondary-fixed: map.get($palettes, accent, default
|
|
44
|
-
secondary-fixed-dim: map.get($palettes, accent, default
|
|
42
|
+
secondary-container: map.get($palettes, accent, default),
|
|
43
|
+
secondary-fixed: map.get($palettes, accent, default),
|
|
44
|
+
secondary-fixed-dim: map.get($palettes, accent, default),
|
|
45
45
|
surface-bright: map.get(palette.$grey-palette, 800),
|
|
46
46
|
surface-container: map.get(palette.$grey-palette, 800),
|
|
47
47
|
surface-container-high: map.get(palette.$grey-palette, 800),
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
on-primary-container: map.get($palettes, primary, default-contrast),
|
|
85
85
|
on-primary-fixed: map.get($palettes, primary, default-contrast),
|
|
86
86
|
on-primary-fixed-variant: map.get($palettes, primary, default-contrast),
|
|
87
|
-
on-secondary-container: map.get($palettes, accent, default),
|
|
88
|
-
on-secondary-fixed: map.get($palettes, accent, default),
|
|
89
|
-
on-secondary-fixed-variant: map.get($palettes, accent, default),
|
|
87
|
+
on-secondary-container: map.get($palettes, accent, default-contrast),
|
|
88
|
+
on-secondary-fixed: map.get($palettes, accent, default-contrast),
|
|
89
|
+
on-secondary-fixed-variant: map.get($palettes, accent, default-contrast),
|
|
90
90
|
on-tertiary: map.get($palettes, accent, default-contrast),
|
|
91
91
|
on-tertiary-container: map.get($palettes, accent, default-contrast),
|
|
92
92
|
on-tertiary-fixed: map.get($palettes, accent, default-contrast),
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
primary-fixed: map.get($palettes, primary, default),
|
|
96
96
|
primary-fixed-dim: map.get($palettes, primary, default),
|
|
97
97
|
scrim: black,
|
|
98
|
-
secondary-container: map.get($palettes, accent, default
|
|
99
|
-
secondary-fixed: map.get($palettes, accent, default
|
|
100
|
-
secondary-fixed-dim: map.get($palettes, accent, default
|
|
101
|
-
surface-bright:
|
|
102
|
-
surface-container:
|
|
103
|
-
surface-container-high:
|
|
104
|
-
surface-container-highest:
|
|
105
|
-
surface-container-low:
|
|
106
|
-
surface-container-lowest:
|
|
107
|
-
surface-dim:
|
|
108
|
-
surface-tint:
|
|
98
|
+
secondary-container: map.get($palettes, accent, default),
|
|
99
|
+
secondary-fixed: map.get($palettes, accent, default),
|
|
100
|
+
secondary-fixed-dim: map.get($palettes, accent, default),
|
|
101
|
+
surface-bright: white,
|
|
102
|
+
surface-container: white,
|
|
103
|
+
surface-container-high: white,
|
|
104
|
+
surface-container-highest: white,
|
|
105
|
+
surface-container-low: white,
|
|
106
|
+
surface-container-lowest: white,
|
|
107
|
+
surface-dim: white,
|
|
108
|
+
surface-tint: white,
|
|
109
109
|
tertiary: map.get($palettes, accent, default),
|
|
110
110
|
tertiary-container: map.get($palettes, accent, default),
|
|
111
111
|
tertiary-fixed: map.get($palettes, accent, default),
|
|
@@ -264,4 +264,4 @@ declare abstract class DateAdapter<D, L = any> {
|
|
|
264
264
|
clampDate(date: D, min?: D | null, max?: D | null): D;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
export { DateAdapter
|
|
267
|
+
export { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY };
|
|
@@ -280,5 +280,5 @@ declare class MatDateRangeInputHarness extends DatepickerTriggerHarnessBase {
|
|
|
280
280
|
protected _openCalendar(): Promise<void>;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
export {
|
|
284
|
-
export type { CalendarHarnessFilters
|
|
283
|
+
export { CalendarView, DatepickerTriggerHarnessBase, MatCalendarCellHarness, MatCalendarHarness, MatDateRangeInputHarness, MatDatepickerInputHarness, MatEndDateHarness, MatStartDateHarness };
|
|
284
|
+
export type { CalendarCellHarnessFilters, CalendarHarnessFilters, DateRangeInputHarnessFilters, DatepickerInputHarnessFilters, DatepickerToggleHarnessFilters };
|
package/datepicker/index.d.ts
CHANGED
|
@@ -7,18 +7,18 @@ import * as i1 from '@angular/cdk/a11y';
|
|
|
7
7
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
8
8
|
import * as i3 from '@angular/cdk/portal';
|
|
9
9
|
import { ComponentType, Portal, TemplatePortal } from '@angular/cdk/portal';
|
|
10
|
-
import {
|
|
10
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
11
11
|
import { Observable, Subject } from 'rxjs';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { DateAdapter } from '../date-adapter.d.js';
|
|
13
|
+
import { ThemePalette } from '../palette.d.js';
|
|
14
14
|
import { ControlValueAccessor, Validator, ValidatorFn, AbstractControl, ValidationErrors, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
|
|
15
|
-
import {
|
|
15
|
+
import { MatFormFieldControl } from '../form-field-control.d.js';
|
|
16
16
|
import { Directionality } from '@angular/cdk/bidi';
|
|
17
|
-
import {
|
|
17
|
+
import { ErrorStateMatcher } from '../error-options.d.js';
|
|
18
18
|
import * as i5 from '@angular/cdk/scrolling';
|
|
19
|
-
import '../ripple-loader.d
|
|
20
|
-
import '../
|
|
21
|
-
import '../ripple.d
|
|
19
|
+
import '../ripple-loader.d.js';
|
|
20
|
+
import '../ripple-module.d.js';
|
|
21
|
+
import '../ripple.d.js';
|
|
22
22
|
import '@angular/cdk/platform';
|
|
23
23
|
|
|
24
24
|
/** Extra CSS classes that can be associated with a calendar cell. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { DatepickerTriggerHarnessBase, DatepickerToggleHarnessFilters } from '../../date-range-input-harness.d.js';
|
|
2
|
+
export { CalendarCellHarnessFilters, CalendarHarnessFilters, CalendarView, DateRangeInputHarnessFilters, DatepickerInputHarnessFilters, MatCalendarCellHarness, MatCalendarHarness, MatDateRangeInputHarness, MatDatepickerInputHarness, MatEndDateHarness, MatStartDateHarness } from '../../date-range-input-harness.d.js';
|
|
3
3
|
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
4
4
|
import '@angular/material/form-field/testing/control';
|
|
5
5
|
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { MatDialogRef, MatDialogContainer } from '../dialog.d.js';
|
|
2
|
+
export { AutoFocusTarget, DialogPosition, DialogRole, MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MatDialog, MatDialogConfig, MatDialogState, _closeDialogVia } from '../dialog.d.js';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
5
5
|
import * as i5 from '@angular/cdk/scrolling';
|
|
6
6
|
import * as i1 from '@angular/cdk/dialog';
|
|
7
7
|
import * as i2 from '@angular/cdk/overlay';
|
|
8
8
|
import * as i3 from '@angular/cdk/portal';
|
|
9
|
-
import {
|
|
9
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
10
10
|
import '@angular/cdk/bidi';
|
|
11
11
|
import '@angular/cdk/a11y';
|
|
12
12
|
import 'rxjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
2
|
import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
-
import {
|
|
3
|
+
import { DialogRole, MatDialog, MatDialogConfig, MatDialogRef } from '../../dialog.d.js';
|
|
4
4
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
5
|
import { OnDestroy } from '@angular/core';
|
|
6
6
|
import '@angular/cdk/bidi';
|
|
@@ -335,5 +335,5 @@ declare class MatDialog implements OnDestroy {
|
|
|
335
335
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatDialog>;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
export {
|
|
339
|
-
export type { AutoFocusTarget
|
|
338
|
+
export { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MatDialog, MatDialogConfig, MatDialogContainer, MatDialogRef, MatDialogState, _closeDialogVia };
|
|
339
|
+
export type { AutoFocusTarget, DialogPosition, DialogRole };
|
package/divider/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
4
4
|
import '@angular/cdk/bidi';
|
|
5
5
|
|
|
6
6
|
declare class MatDivider {
|
package/expansion/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, TemplateRef, AfterContentInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, ElementRef, AfterViewInit, QueryList } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { MatCommonModule } from '../common-module.d.js';
|
|
4
4
|
import * as i2 from '@angular/cdk/accordion';
|
|
5
5
|
import { CdkAccordion, CdkAccordionItem } from '@angular/cdk/accordion';
|
|
6
6
|
import * as i3 from '@angular/cdk/portal';
|
|
@@ -45,5 +45,5 @@ function _animationsDisabled() {
|
|
|
45
45
|
return _getAnimationsState() !== 'enabled';
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export { AnimationCurves
|
|
49
|
-
//# sourceMappingURL=animation
|
|
48
|
+
export { AnimationCurves, AnimationDurations, MATERIAL_ANIMATIONS, _animationsDisabled, _getAnimationsState };
|
|
49
|
+
//# sourceMappingURL=animation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/core/animation/animation.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {MediaMatcher} from '@angular/cdk/layout';\nimport {ANIMATION_MODULE_TYPE, inject, InjectionToken} from '@angular/core';\n\n/** Object used to configure the animation in Angular Material. */\nexport interface AnimationsConfig {\n /** Whether all animations should be disabled. */\n animationsDisabled?: boolean;\n}\n\n/** Injection token used to configure the animations in Angular Material. */\nexport const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS');\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationCurves {\n static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\n static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\n static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\n static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n}\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationDurations {\n static COMPLEX = '375ms';\n static ENTERING = '225ms';\n static EXITING = '195ms';\n}\n\nlet reducedMotion: boolean | null = null;\n\n/**\n * Gets the the configured animations state.\n * @docs-private\n */\nexport function _getAnimationsState(): 'enabled' | 'di-disabled' | 'reduced-motion' {\n if (\n inject(MATERIAL_ANIMATIONS, {optional: true})?.animationsDisabled ||\n inject(ANIMATION_MODULE_TYPE, {optional: true}) === 'NoopAnimations'\n ) {\n return 'di-disabled';\n }\n\n reducedMotion ??= inject(MediaMatcher).matchMedia('(prefers-reduced-motion)').matches;\n return reducedMotion ? 'reduced-motion' : 'enabled';\n}\n\n/**\n * Returns whether animations have been disabled by DI. Must be called in a DI context.\n * @docs-private\n */\nexport function _animationsDisabled(): boolean {\n return _getAnimationsState() !== 'enabled';\n}\n"],"names":[],"mappings":";;;AAiBA;MACa,mBAAmB,GAAG,IAAI,cAAc,CAAmB,qBAAqB;AAE7F;;;;AAIG;MACU,eAAe,CAAA;AAC1B,IAAA,OAAO,cAAc,GAAG,6BAA6B;AACrD,IAAA,OAAO,kBAAkB,GAAG,6BAA6B;AACzD,IAAA,OAAO,kBAAkB,GAAG,2BAA2B;AACvD,IAAA,OAAO,WAAW,GAAG,6BAA6B;;AAGpD;;;;AAIG;MACU,kBAAkB,CAAA;AAC7B,IAAA,OAAO,OAAO,GAAG,OAAO;AACxB,IAAA,OAAO,QAAQ,GAAG,OAAO;AACzB,IAAA,OAAO,OAAO,GAAG,OAAO;;AAG1B,IAAI,aAAa,GAAmB,IAAI;AAExC;;;AAGG;SACa,mBAAmB,GAAA;IACjC,IACE,MAAM,CAAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,kBAAkB;AACjE,QAAA,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,KAAK,gBAAgB,EACpE;AACA,QAAA,OAAO,aAAa;;AAGtB,IAAA,aAAa,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO;IACrF,OAAO,aAAa,GAAG,gBAAgB,GAAG,SAAS;AACrD;AAEA;;;AAGG;SACa,mBAAmB,GAAA;AACjC,IAAA,OAAO,mBAAmB,EAAE,KAAK,SAAS;AAC5C;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
2
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
-
import {
|
|
3
|
+
import { MatOptionHarness } from '../option-harness.mjs';
|
|
4
4
|
import { MatOptgroupHarness } from '../core/testing.mjs';
|
|
5
5
|
|
|
6
6
|
class MatAutocompleteHarness extends ComponentHarness {
|