@angular/material 12.2.6 → 12.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.
Files changed (39) hide show
  1. package/bundles/material-core.umd.js +7 -17
  2. package/bundles/material-core.umd.js.map +1 -1
  3. package/bundles/material-list.umd.js +3 -3
  4. package/bundles/material-select.umd.js +3 -1
  5. package/bundles/material-select.umd.js.map +1 -1
  6. package/bundles/material-snack-bar-testing.umd.js +19 -20
  7. package/bundles/material-snack-bar-testing.umd.js.map +1 -1
  8. package/bundles/material-tabs.umd.js +22 -8
  9. package/bundles/material-tabs.umd.js.map +1 -1
  10. package/core/common-behaviors/common-module.d.ts +0 -4
  11. package/core/index.metadata.json +1 -1
  12. package/esm2015/core/common-behaviors/common-module.js +4 -13
  13. package/esm2015/core/version.js +1 -1
  14. package/esm2015/list/list.js +2 -2
  15. package/esm2015/list/selection-list.js +1 -1
  16. package/esm2015/select/select.js +4 -2
  17. package/esm2015/snack-bar/testing/snack-bar-harness.js +20 -21
  18. package/esm2015/tabs/public-api.js +2 -2
  19. package/esm2015/tabs/tab-label.js +16 -2
  20. package/esm2015/tabs/tab.js +9 -8
  21. package/fesm2015/core.js +4 -14
  22. package/fesm2015/core.js.map +1 -1
  23. package/fesm2015/list.js +3 -3
  24. package/fesm2015/select.js +3 -1
  25. package/fesm2015/select.js.map +1 -1
  26. package/fesm2015/snack-bar/testing.js +19 -20
  27. package/fesm2015/snack-bar/testing.js.map +1 -1
  28. package/fesm2015/tabs.js +23 -8
  29. package/fesm2015/tabs.js.map +1 -1
  30. package/list/index.metadata.json +1 -1
  31. package/package.json +2 -2
  32. package/schematics/ng-add/index.js +1 -1
  33. package/schematics/ng-add/index.mjs +1 -1
  34. package/select/index.metadata.json +1 -1
  35. package/snack-bar/testing/snack-bar-harness.d.ts +8 -9
  36. package/tabs/index.metadata.json +1 -1
  37. package/tabs/public-api.d.ts +1 -1
  38. package/tabs/tab-label.d.ts +8 -1
  39. package/tabs/tab.d.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk'), require('@angular/common'), require('@angular/cdk/coercion'), require('rxjs'), require('@angular/cdk/platform'), require('rxjs/operators'), require('@angular/platform-browser/animations'), require('@angular/cdk/keycodes')) :
3
- typeof define === 'function' && define.amd ? define('@angular/material/core', ['exports', '@angular/core', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk', '@angular/common', '@angular/cdk/coercion', 'rxjs', '@angular/cdk/platform', 'rxjs/operators', '@angular/platform-browser/animations', '@angular/cdk/keycodes'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.core = {}), global.ng.core, global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk, global.ng.common, global.ng.cdk.coercion, global.rxjs, global.ng.cdk.platform, global.rxjs.operators, global.ng.platformBrowser.animations, global.ng.cdk.keycodes));
5
- }(this, (function (exports, i0, a11y, bidi, cdk, common, coercion, rxjs, platform, operators, animations, keycodes) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk'), require('@angular/common'), require('@angular/cdk/platform'), require('@angular/cdk/coercion'), require('rxjs'), require('rxjs/operators'), require('@angular/platform-browser/animations'), require('@angular/cdk/keycodes')) :
3
+ typeof define === 'function' && define.amd ? define('@angular/material/core', ['exports', '@angular/core', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk', '@angular/common', '@angular/cdk/platform', '@angular/cdk/coercion', 'rxjs', 'rxjs/operators', '@angular/platform-browser/animations', '@angular/cdk/keycodes'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.core = {}), global.ng.core, global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk, global.ng.common, global.ng.cdk.platform, global.ng.cdk.coercion, global.rxjs, global.rxjs.operators, global.ng.platformBrowser.animations, global.ng.cdk.keycodes));
5
+ }(this, (function (exports, i0, a11y, bidi, cdk, common, platform, coercion, rxjs, operators, animations, keycodes) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -34,7 +34,7 @@
34
34
  * found in the LICENSE file at https://angular.io/license
35
35
  */
36
36
  /** Current version of Angular Material. */
37
- var VERSION$1 = new i0.Version('12.2.6');
37
+ var VERSION$1 = new i0.Version('12.2.7');
38
38
 
39
39
  /**
40
40
  * @license
@@ -74,7 +74,7 @@
74
74
  // i.e. avoid core to depend on the @angular/material primary entry-point
75
75
  // Can be removed once the Material primary entry-point no longer
76
76
  // re-exports all secondary entry-points
77
- var VERSION = new i0.Version('12.2.6');
77
+ var VERSION = new i0.Version('12.2.7');
78
78
  /** @docs-private */
79
79
  function MATERIAL_SANITY_CHECKS_FACTORY() {
80
80
  return true;
@@ -108,18 +108,13 @@
108
108
  this._hasDoneGlobalChecks = true;
109
109
  }
110
110
  }
111
- /** Use defaultView of injected document if available or fallback to global window reference */
112
- MatCommonModule.prototype._getWindow = function () {
113
- var win = this._document.defaultView || window;
114
- return typeof win === 'object' && win ? win : null;
115
- };
116
111
  /** Gets whether a specific sanity check is enabled. */
117
112
  MatCommonModule.prototype._checkIsEnabled = function (name) {
118
113
  // TODO(crisbeto): we can't use `ngDevMode` here yet, because ViewEngine apps might not support
119
114
  // it. Since these checks can have performance implications and they aren't tree shakeable
120
115
  // in their current form, we can leave the `isDevMode` check in for now.
121
116
  // tslint:disable-next-line:ban
122
- if (!i0.isDevMode() || this._isTestEnv()) {
117
+ if (!i0.isDevMode() || platform._isTestEnvironment()) {
123
118
  return false;
124
119
  }
125
120
  if (typeof this._sanityChecks === 'boolean') {
@@ -127,11 +122,6 @@
127
122
  }
128
123
  return !!this._sanityChecks[name];
129
124
  };
130
- /** Whether the code is running in tests. */
131
- MatCommonModule.prototype._isTestEnv = function () {
132
- var window = this._getWindow();
133
- return window && (window.__karma__ || window.jasmine);
134
- };
135
125
  MatCommonModule.prototype._checkDoctypeIsDefined = function () {
136
126
  if (this._checkIsEnabled('doctype') && !this._document.doctype) {
137
127
  console.warn('Current document does not have a doctype. This may cause ' +