@angular/material 17.1.0-rc.0 → 17.1.1
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/badge/_badge-theme.scss +0 -169
- package/badge/index.d.ts +11 -1
- package/core/index.d.ts +7 -4
- package/core/tokens/m2/mat/_form-field.scss +15 -0
- package/core/tokens/m2/mdc/_filled-text-field.scss +8 -8
- package/core/tokens/m2/mdc/_outlined-text-field.scss +6 -6
- package/core/tokens/m2/mdc/_switch.scss +12 -3
- package/esm2022/badge/badge-module.mjs +6 -4
- package/esm2022/badge/badge.mjs +29 -3
- package/esm2022/badge/public-api.mjs +2 -2
- package/esm2022/button/button.mjs +2 -3
- package/esm2022/button/fab.mjs +2 -3
- package/esm2022/button/icon-button.mjs +2 -3
- package/esm2022/checkbox/checkbox.mjs +2 -3
- package/esm2022/chips/chip-row.mjs +2 -3
- package/esm2022/chips/chip.mjs +2 -3
- package/esm2022/core/common-behaviors/error-state.mjs +2 -4
- package/esm2022/core/ripple/ripple.mjs +2 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -3
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/dialog/dialog-container.mjs +4 -5
- package/esm2022/expansion/expansion-panel-header.mjs +2 -3
- package/esm2022/expansion/expansion-panel.mjs +2 -3
- package/esm2022/form-field/form-field.mjs +4 -5
- package/esm2022/list/list-base.mjs +2 -3
- package/esm2022/list/list.mjs +2 -3
- package/esm2022/progress-bar/progress-bar.mjs +4 -5
- package/esm2022/progress-spinner/progress-spinner.mjs +2 -3
- package/esm2022/radio/radio.mjs +2 -3
- package/esm2022/sidenav/drawer.mjs +2 -3
- package/esm2022/slide-toggle/slide-toggle.mjs +4 -5
- package/esm2022/slider/slider.mjs +2 -3
- package/esm2022/tabs/paginated-tab-header.mjs +2 -3
- package/esm2022/tabs/tab-group.mjs +2 -3
- package/esm2022/tabs/tab-header.mjs +2 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -3
- package/esm2022/tooltip/tooltip.mjs +2 -3
- package/fesm2022/badge.mjs +32 -4
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/button.mjs +1 -2
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +1 -2
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +1 -2
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +4 -7
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/dialog.mjs +5 -6
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/expansion.mjs +1 -2
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +3 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/list.mjs +3 -4
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +3 -4
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +1 -2
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +1 -2
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +1 -2
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +3 -4
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +1 -2
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/tabs.mjs +1 -2
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +1 -2
- package/fesm2022/tooltip.mjs.map +1 -1
- package/package.json +7 -7
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -15
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +44 -44
- package/schematics/ng-update/index_bundled.js +31 -31
- package/slide-toggle/_slide-toggle-theme.scss +7 -7
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Version, InjectionToken, inject, NgModule, Optional, Inject, LOCALE_ID, Injectable, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, booleanAttribute, EventEmitter, Output, ViewChild,
|
|
2
|
+
import { Version, InjectionToken, inject, NgModule, Optional, Inject, LOCALE_ID, Injectable, Directive, ANIMATION_MODULE_TYPE, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, booleanAttribute, EventEmitter, Output, ViewChild, NgZone, ElementRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/a11y';
|
|
4
4
|
import { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from '@angular/cdk/a11y';
|
|
5
5
|
import { BidiModule } from '@angular/cdk/bidi';
|
|
@@ -10,11 +10,10 @@ import { Platform, _isTestEnvironment, normalizePassiveListenerOptions, _getEven
|
|
|
10
10
|
import { coerceBooleanProperty, coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';
|
|
11
11
|
import { Observable, Subject } from 'rxjs';
|
|
12
12
|
import { startWith } from 'rxjs/operators';
|
|
13
|
-
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
14
13
|
import { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
15
14
|
|
|
16
15
|
/** Current version of Angular Material. */
|
|
17
|
-
const VERSION = new Version('17.1.
|
|
16
|
+
const VERSION = new Version('17.1.1');
|
|
18
17
|
|
|
19
18
|
/** @docs-private */
|
|
20
19
|
class AnimationCurves {
|
|
@@ -235,9 +234,7 @@ class _ErrorStateTracker {
|
|
|
235
234
|
const parent = this._parentFormGroup || this._parentForm;
|
|
236
235
|
const matcher = this.matcher || this._defaultMatcher;
|
|
237
236
|
const control = this.ngControl ? this.ngControl.control : null;
|
|
238
|
-
|
|
239
|
-
// test that appears to pass an object whose `isErrorState` isn't a function.
|
|
240
|
-
const newState = typeof matcher?.isErrorState === 'function' ? matcher.isErrorState(control, parent) : false;
|
|
237
|
+
const newState = matcher?.isErrorState(control, parent) ?? false;
|
|
241
238
|
if (newState !== oldState) {
|
|
242
239
|
this.errorState = newState;
|
|
243
240
|
this._stateChanges.next();
|
|
@@ -1779,7 +1776,7 @@ const matRippleDisabled = 'mat-ripple-loader-disabled';
|
|
|
1779
1776
|
class MatRippleLoader {
|
|
1780
1777
|
constructor() {
|
|
1781
1778
|
this._document = inject(DOCUMENT, { optional: true });
|
|
1782
|
-
this._animationMode = inject(ANIMATION_MODULE_TYPE
|
|
1779
|
+
this._animationMode = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
|
1783
1780
|
this._globalRippleOptions = inject(MAT_RIPPLE_GLOBAL_OPTIONS, { optional: true });
|
|
1784
1781
|
this._platform = inject(Platform);
|
|
1785
1782
|
this._ngZone = inject(NgZone);
|