@angular/material 15.2.1 → 15.2.2
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/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/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/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/snack-bar.mjs +51 -4
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/package.json +2 -2
- 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/fesm2015/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 { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Injectable, Optional, SkipSelf, InjectionToken, Inject, ViewChild, forwardRef,
|
|
10
|
+
import { inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Injectable, 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';
|
|
@@ -15,11 +15,11 @@ import * as i1$1 from '@angular/material/core';
|
|
|
15
15
|
import { DateAdapter, MAT_DATE_FORMATS, mixinColor, mixinErrorState, MatCommonModule } from '@angular/material/core';
|
|
16
16
|
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
|
+
import { Platform, _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
18
19
|
import { take, startWith, filter } from 'rxjs/operators';
|
|
19
20
|
import * as i2 from '@angular/cdk/bidi';
|
|
20
21
|
import { Directionality } from '@angular/cdk/bidi';
|
|
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';
|
|
@@ -77,6 +77,7 @@ class MatCalendarBody {
|
|
|
77
77
|
constructor(_elementRef, _ngZone) {
|
|
78
78
|
this._elementRef = _elementRef;
|
|
79
79
|
this._ngZone = _ngZone;
|
|
80
|
+
this._platform = inject(Platform);
|
|
80
81
|
/**
|
|
81
82
|
* Used to focus the active cell after change detection has run.
|
|
82
83
|
*/
|
|
@@ -221,8 +222,10 @@ class MatCalendarBody {
|
|
|
221
222
|
element.addEventListener('blur', this._leaveHandler, true);
|
|
222
223
|
element.addEventListener('mousedown', this._mousedownHandler);
|
|
223
224
|
element.addEventListener('touchstart', this._mousedownHandler);
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
if (this._platform.isBrowser) {
|
|
226
|
+
window.addEventListener('mouseup', this._mouseupHandler);
|
|
227
|
+
window.addEventListener('touchend', this._touchendHandler);
|
|
228
|
+
}
|
|
226
229
|
});
|
|
227
230
|
}
|
|
228
231
|
/** Called when a cell is clicked. */
|
|
@@ -267,8 +270,10 @@ class MatCalendarBody {
|
|
|
267
270
|
element.removeEventListener('blur', this._leaveHandler, true);
|
|
268
271
|
element.removeEventListener('mousedown', this._mousedownHandler);
|
|
269
272
|
element.removeEventListener('touchstart', this._mousedownHandler);
|
|
270
|
-
|
|
271
|
-
|
|
273
|
+
if (this._platform.isBrowser) {
|
|
274
|
+
window.removeEventListener('mouseup', this._mouseupHandler);
|
|
275
|
+
window.removeEventListener('touchend', this._touchendHandler);
|
|
276
|
+
}
|
|
272
277
|
}
|
|
273
278
|
/** Returns whether a cell is active. */
|
|
274
279
|
_isActiveCell(rowIndex, colIndex) {
|