@angular/cdk 10.2.3 → 10.2.7
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/bundles/cdk-a11y.umd.js +7 -6
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +2 -2
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-collections.umd.js +1 -3
- package/bundles/cdk-collections.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +20 -4
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +19 -19
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +2 -2
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js +1 -1
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/collections/index.metadata.json +1 -1
- package/collections/view-repeater.d.ts +1 -3
- package/drag-drop/drag-styling.d.ts +7 -0
- package/esm2015/a11y/focus-monitor/focus-monitor.js +6 -5
- package/esm2015/a11y/live-announcer/live-announcer.js +3 -3
- package/esm2015/collections/view-repeater.js +2 -4
- package/esm2015/drag-drop/clone-node.js +5 -2
- package/esm2015/drag-drop/drag-ref.js +6 -5
- package/esm2015/drag-drop/drag-styling.js +13 -1
- package/esm2015/scrolling/virtual-for-of.js +3 -3
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +7 -6
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/collections.js +1 -3
- package/fesm2015/collections.js.map +1 -1
- package/fesm2015/drag-drop.js +20 -4
- package/fesm2015/drag-drop.js.map +1 -1
- package/fesm2015/scrolling.js +2 -2
- package/fesm2015/scrolling.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/data/css-selectors.d.ts +6 -3
- package/schematics/ng-update/data/css-selectors.js +1 -1
- package/schematics/ng-update/data/input-names.d.ts +2 -2
- package/schematics/ng-update/data/input-names.js +13 -13
- package/schematics/ng-update/data/output-names.d.ts +2 -2
- package/schematics/ng-update/data/output-names.js +2 -2
- package/schematics/ng-update/data/property-names.d.ts +2 -2
- package/schematics/ng-update/data/property-names.js +19 -19
- package/schematics/ng-update/migrations/class-inheritance.js +3 -3
- package/schematics/ng-update/migrations/css-selectors.d.ts +3 -2
- package/schematics/ng-update/migrations/css-selectors.js +4 -4
- package/schematics/ng-update/migrations/input-names.js +6 -6
- package/schematics/ng-update/migrations/output-names.js +6 -6
- package/schematics/ng-update/migrations/property-names.js +2 -2
package/bundles/cdk-a11y.umd.js
CHANGED
|
@@ -1966,14 +1966,14 @@
|
|
|
1966
1966
|
this._liveAnnouncer = _liveAnnouncer;
|
|
1967
1967
|
this._contentObserver = _contentObserver;
|
|
1968
1968
|
this._ngZone = _ngZone;
|
|
1969
|
-
this._politeness = '
|
|
1969
|
+
this._politeness = 'polite';
|
|
1970
1970
|
}
|
|
1971
1971
|
Object.defineProperty(CdkAriaLive.prototype, "politeness", {
|
|
1972
1972
|
/** The aria-live politeness level to use when announcing messages. */
|
|
1973
1973
|
get: function () { return this._politeness; },
|
|
1974
1974
|
set: function (value) {
|
|
1975
1975
|
var _this = this;
|
|
1976
|
-
this._politeness = value === '
|
|
1976
|
+
this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';
|
|
1977
1977
|
if (this._politeness === 'off') {
|
|
1978
1978
|
if (this._subscription) {
|
|
1979
1979
|
this._subscription.unsubscribe();
|
|
@@ -2148,11 +2148,11 @@
|
|
|
2148
2148
|
}
|
|
2149
2149
|
FocusMonitor.prototype.monitor = function (element, checkChildren) {
|
|
2150
2150
|
if (checkChildren === void 0) { checkChildren = false; }
|
|
2151
|
-
|
|
2152
|
-
if
|
|
2151
|
+
var nativeElement = coercion.coerceElement(element);
|
|
2152
|
+
// Do nothing if we're not on the browser platform or the passed in node isn't an element.
|
|
2153
|
+
if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {
|
|
2153
2154
|
return rxjs.of(null);
|
|
2154
2155
|
}
|
|
2155
|
-
var nativeElement = coercion.coerceElement(element);
|
|
2156
2156
|
// If the element is inside the shadow DOM, we need to bind our focus/blur listeners to
|
|
2157
2157
|
// the shadow root, rather than the `document`, because the browser won't emit focus events
|
|
2158
2158
|
// to the `document`, if focus is moving within the same shadow root.
|
|
@@ -2424,7 +2424,8 @@
|
|
|
2424
2424
|
}
|
|
2425
2425
|
CdkMonitorFocus.prototype.ngAfterViewInit = function () {
|
|
2426
2426
|
var _this = this;
|
|
2427
|
-
|
|
2427
|
+
var element = this._elementRef.nativeElement;
|
|
2428
|
+
this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))
|
|
2428
2429
|
.subscribe(function (origin) { return _this.cdkFocusChange.emit(origin); });
|
|
2429
2430
|
};
|
|
2430
2431
|
CdkMonitorFocus.prototype.ngOnDestroy = function () {
|