@angular/material 16.0.0-next.0 → 16.0.0-next.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/chips/index.d.ts +2 -2
- package/core/index.d.ts +0 -7
- package/core/tokens/m2/mdc/_circular-progress.scss +65 -0
- package/datepicker/index.d.ts +1 -0
- package/esm2020/chips/chip-set.mjs +7 -8
- package/esm2020/core/option/option.mjs +12 -12
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +12 -6
- package/esm2020/legacy-core/option/option.mjs +3 -3
- package/esm2020/legacy-snack-bar/snack-bar-container.mjs +3 -3
- package/esm2020/paginator/paginator.mjs +3 -3
- package/esm2020/progress-spinner/progress-spinner.mjs +5 -3
- package/esm2020/snack-bar/snack-bar-container.mjs +52 -4
- package/fesm2015/chips.mjs +6 -7
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +12 -12
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +11 -6
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/legacy-core.mjs +2 -2
- package/fesm2015/legacy-core.mjs.map +1 -1
- package/fesm2015/legacy-snack-bar.mjs +2 -2
- package/fesm2015/legacy-snack-bar.mjs.map +1 -1
- package/fesm2015/paginator.mjs +2 -2
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +4 -2
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +51 -4
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2020/chips.mjs +6 -7
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +12 -12
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +11 -6
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/legacy-core.mjs +2 -2
- package/fesm2020/legacy-core.mjs.map +1 -1
- package/fesm2020/legacy-snack-bar.mjs +2 -2
- package/fesm2020/legacy-snack-bar.mjs.map +1 -1
- package/fesm2020/paginator.mjs +2 -2
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +4 -2
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +51 -4
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/package.json +2 -2
- package/progress-spinner/_progress-spinner-theme.scss +12 -16
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/snack-bar/index.d.ts +12 -0
package/fesm2020/datepicker.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/port
|
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
|
-
import { Injectable, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Optional, SkipSelf, InjectionToken, Inject, ViewChild, forwardRef,
|
|
10
|
+
import { Injectable, inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Optional, SkipSelf, InjectionToken, Inject, ViewChild, forwardRef, Directive, Attribute, ContentChild, Self, TemplateRef, NgModule } from '@angular/core';
|
|
11
11
|
import * as i3 from '@angular/material/button';
|
|
12
12
|
import { MatButtonModule } from '@angular/material/button';
|
|
13
13
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
@@ -17,9 +17,9 @@ import { Subject, Subscription, merge, of } from 'rxjs';
|
|
|
17
17
|
import { ESCAPE, hasModifierKey, SPACE, ENTER, PAGE_DOWN, PAGE_UP, END, HOME, DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';
|
|
18
18
|
import * as i2 from '@angular/cdk/bidi';
|
|
19
19
|
import { Directionality } from '@angular/cdk/bidi';
|
|
20
|
+
import { Platform, _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
20
21
|
import { take, startWith, filter } from 'rxjs/operators';
|
|
21
22
|
import { coerceBooleanProperty, coerceStringArray } from '@angular/cdk/coercion';
|
|
22
|
-
import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
23
23
|
import { trigger, transition, animate, keyframes, style, state } from '@angular/animations';
|
|
24
24
|
import * as i2$1 from '@angular/forms';
|
|
25
25
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, NgControl } from '@angular/forms';
|
|
@@ -143,6 +143,7 @@ class MatCalendarBody {
|
|
|
143
143
|
constructor(_elementRef, _ngZone) {
|
|
144
144
|
this._elementRef = _elementRef;
|
|
145
145
|
this._ngZone = _ngZone;
|
|
146
|
+
this._platform = inject(Platform);
|
|
146
147
|
/**
|
|
147
148
|
* Used to focus the active cell after change detection has run.
|
|
148
149
|
*/
|
|
@@ -286,8 +287,10 @@ class MatCalendarBody {
|
|
|
286
287
|
element.addEventListener('blur', this._leaveHandler, true);
|
|
287
288
|
element.addEventListener('mousedown', this._mousedownHandler);
|
|
288
289
|
element.addEventListener('touchstart', this._mousedownHandler);
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
if (this._platform.isBrowser) {
|
|
291
|
+
window.addEventListener('mouseup', this._mouseupHandler);
|
|
292
|
+
window.addEventListener('touchend', this._touchendHandler);
|
|
293
|
+
}
|
|
291
294
|
});
|
|
292
295
|
}
|
|
293
296
|
/** Called when a cell is clicked. */
|
|
@@ -332,8 +335,10 @@ class MatCalendarBody {
|
|
|
332
335
|
element.removeEventListener('blur', this._leaveHandler, true);
|
|
333
336
|
element.removeEventListener('mousedown', this._mousedownHandler);
|
|
334
337
|
element.removeEventListener('touchstart', this._mousedownHandler);
|
|
335
|
-
|
|
336
|
-
|
|
338
|
+
if (this._platform.isBrowser) {
|
|
339
|
+
window.removeEventListener('mouseup', this._mouseupHandler);
|
|
340
|
+
window.removeEventListener('touchend', this._touchendHandler);
|
|
341
|
+
}
|
|
337
342
|
}
|
|
338
343
|
/** Returns whether a cell is active. */
|
|
339
344
|
_isActiveCell(rowIndex, colIndex) {
|