@angular/material 12.0.0-rc.0 → 12.0.0

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 (110) hide show
  1. package/bundles/material-chips.umd.js.map +1 -1
  2. package/bundles/material-core.umd.js +27 -30
  3. package/bundles/material-core.umd.js.map +1 -1
  4. package/bundles/material-datepicker-testing.umd.js +5 -5
  5. package/bundles/material-datepicker-testing.umd.js.map +1 -1
  6. package/bundles/material-datepicker.umd.js +57 -7
  7. package/bundles/material-datepicker.umd.js.map +1 -1
  8. package/bundles/material-form-field-testing.umd.js +16 -8
  9. package/bundles/material-form-field-testing.umd.js.map +1 -1
  10. package/bundles/material-menu.umd.js.map +1 -1
  11. package/bundles/material-paginator.umd.js +1 -0
  12. package/bundles/material-paginator.umd.js.map +1 -1
  13. package/bundles/material-table-testing.umd.js +103 -143
  14. package/bundles/material-table-testing.umd.js.map +1 -1
  15. package/bundles/material-tabs.umd.js +8 -1
  16. package/bundles/material-tabs.umd.js.map +1 -1
  17. package/bundles/material-tree.umd.js +1 -3
  18. package/bundles/material-tree.umd.js.map +1 -1
  19. package/chips/chip.d.ts +2 -1
  20. package/chips/index.metadata.json +1 -1
  21. package/core/common-behaviors/color.d.ts +3 -3
  22. package/core/common-behaviors/constructor.d.ts +1 -3
  23. package/core/common-behaviors/disable-ripple.d.ts +2 -2
  24. package/core/common-behaviors/disabled.d.ts +3 -3
  25. package/core/common-behaviors/error-state.d.ts +3 -3
  26. package/core/common-behaviors/tabindex.d.ts +1 -1
  27. package/core/index.metadata.json +1 -1
  28. package/core/ripple/ripple-renderer.d.ts +2 -0
  29. package/core/ripple/ripple.d.ts +2 -0
  30. package/datepicker/date-range-input-parts.d.ts +2 -0
  31. package/datepicker/date-range-input.d.ts +6 -1
  32. package/datepicker/date-selection-model.d.ts +2 -0
  33. package/datepicker/datepicker-base.d.ts +1 -0
  34. package/datepicker/datepicker-input.d.ts +4 -2
  35. package/datepicker/index.metadata.json +1 -1
  36. package/datepicker/testing/datepicker-input-harness-base.d.ts +3 -2
  37. package/esm2015/chips/chip.js +1 -1
  38. package/esm2015/core/common-behaviors/color.js +1 -2
  39. package/esm2015/core/common-behaviors/common-module.js +1 -1
  40. package/esm2015/core/common-behaviors/constructor.js +1 -1
  41. package/esm2015/core/common-behaviors/disable-ripple.js +3 -8
  42. package/esm2015/core/common-behaviors/disabled.js +1 -2
  43. package/esm2015/core/common-behaviors/error-state.js +1 -5
  44. package/esm2015/core/common-behaviors/tabindex.js +3 -10
  45. package/esm2015/core/ripple/ripple-renderer.js +9 -1
  46. package/esm2015/core/ripple/ripple.js +8 -1
  47. package/esm2015/core/version.js +1 -1
  48. package/esm2015/datepicker/date-range-input-parts.js +23 -1
  49. package/esm2015/datepicker/date-range-input.js +18 -3
  50. package/esm2015/datepicker/date-selection-model.js +3 -2
  51. package/esm2015/datepicker/datepicker-base.js +8 -3
  52. package/esm2015/datepicker/datepicker-input.js +8 -1
  53. package/esm2015/datepicker/datepicker-toggle.js +1 -1
  54. package/esm2015/datepicker/testing/datepicker-input-harness-base.js +4 -3
  55. package/esm2015/form-field/testing/form-field-harness.js +12 -3
  56. package/esm2015/menu/menu-trigger.js +1 -1
  57. package/esm2015/menu/menu.js +1 -1
  58. package/esm2015/paginator/paginator.js +2 -1
  59. package/esm2015/table/testing/cell-harness.js +9 -9
  60. package/esm2015/table/testing/row-harness.js +38 -70
  61. package/esm2015/table/testing/table-harness.js +23 -15
  62. package/esm2015/tabs/paginated-tab-header.js +2 -2
  63. package/esm2015/tabs/tab-group.js +8 -1
  64. package/esm2015/tree/data-source/nested-data-source.js +2 -4
  65. package/fesm2015/chips.js.map +1 -1
  66. package/fesm2015/core.js +21 -24
  67. package/fesm2015/core.js.map +1 -1
  68. package/fesm2015/datepicker/testing.js +2 -1
  69. package/fesm2015/datepicker/testing.js.map +1 -1
  70. package/fesm2015/datepicker.js +55 -5
  71. package/fesm2015/datepicker.js.map +1 -1
  72. package/fesm2015/form-field/testing.js +11 -2
  73. package/fesm2015/form-field/testing.js.map +1 -1
  74. package/fesm2015/menu.js.map +1 -1
  75. package/fesm2015/paginator.js +1 -0
  76. package/fesm2015/paginator.js.map +1 -1
  77. package/fesm2015/table/testing.js +66 -90
  78. package/fesm2015/table/testing.js.map +1 -1
  79. package/fesm2015/tabs.js +8 -1
  80. package/fesm2015/tabs.js.map +1 -1
  81. package/fesm2015/tree.js +1 -3
  82. package/fesm2015/tree.js.map +1 -1
  83. package/form-field/testing/form-field-harness.d.ts +6 -1
  84. package/package.json +6 -6
  85. package/paginator/index.metadata.json +1 -1
  86. package/prebuilt-themes/deeppurple-amber.css +1 -1
  87. package/prebuilt-themes/indigo-pink.css +1 -1
  88. package/prebuilt-themes/pink-bluegrey.css +1 -1
  89. package/prebuilt-themes/purple-green.css +1 -1
  90. package/schematics/collection.json +0 -6
  91. package/schematics/ng-add/index.js +2 -2
  92. package/schematics/ng-update/index.js +3 -1
  93. package/schematics/{ng-generate/theming-api → ng-update/migrations/theming-api-v12}/config.d.ts +6 -0
  94. package/schematics/ng-update/migrations/theming-api-v12/config.js +206 -0
  95. package/schematics/{ng-generate/theming-api → ng-update/migrations/theming-api-v12}/migration.d.ts +0 -0
  96. package/schematics/ng-update/migrations/theming-api-v12/migration.js +234 -0
  97. package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.d.ts +18 -0
  98. package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +45 -0
  99. package/table/testing/cell-harness.d.ts +2 -1
  100. package/table/testing/row-harness.d.ts +21 -22
  101. package/table/testing/table-harness.d.ts +32 -13
  102. package/tabs/_tabs-theme.scss +5 -2
  103. package/tabs/index.metadata.json +1 -1
  104. package/schematics/ng-generate/theming-api/config.js +0 -183
  105. package/schematics/ng-generate/theming-api/index.d.ts +0 -10
  106. package/schematics/ng-generate/theming-api/index.js +0 -26
  107. package/schematics/ng-generate/theming-api/migration.js +0 -223
  108. package/schematics/ng-generate/theming-api/schema.d.ts +0 -9
  109. package/schematics/ng-generate/theming-api/schema.js +0 -10
  110. package/schematics/ng-generate/theming-api/schema.json +0 -7
@@ -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.0.0-rc.0');
37
+ var VERSION$1 = new i0.Version('12.0.0');
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.0.0-rc.0');
77
+ var VERSION = new i0.Version('12.0.0');
78
78
  /** @docs-private */
79
79
  function MATERIAL_SANITY_CHECKS_FACTORY() {
80
80
  return true;
@@ -489,7 +489,6 @@
489
489
  return value;
490
490
  }
491
491
 
492
- /** Mixin to augment a directive with a `disabled` property. */
493
492
  function mixinDisabled(base) {
494
493
  return /** @class */ (function (_super) {
495
494
  __extends(class_1, _super);
@@ -519,7 +518,6 @@
519
518
  * Use of this source code is governed by an MIT-style license that can be
520
519
  * found in the LICENSE file at https://angular.io/license
521
520
  */
522
- /** Mixin to augment a directive with a `color` property. */
523
521
  function mixinColor(base, defaultColor) {
524
522
  return /** @class */ (function (_super) {
525
523
  __extends(class_1, _super);
@@ -555,11 +553,10 @@
555
553
  }(base));
556
554
  }
557
555
 
558
- /** Mixin to augment a directive with a `disableRipple` property. */
559
556
  function mixinDisableRipple(base) {
560
- var Mixin = /** @class */ (function (_super) {
561
- __extends(Mixin, _super);
562
- function Mixin() {
557
+ return /** @class */ (function (_super) {
558
+ __extends(class_1, _super);
559
+ function class_1() {
563
560
  var args = [];
564
561
  for (var _i = 0; _i < arguments.length; _i++) {
565
562
  args[_i] = arguments[_i];
@@ -568,29 +565,22 @@
568
565
  _this._disableRipple = false;
569
566
  return _this;
570
567
  }
571
- Object.defineProperty(Mixin.prototype, "disableRipple", {
568
+ Object.defineProperty(class_1.prototype, "disableRipple", {
572
569
  /** Whether the ripple effect is disabled or not. */
573
570
  get: function () { return this._disableRipple; },
574
571
  set: function (value) { this._disableRipple = coercion.coerceBooleanProperty(value); },
575
572
  enumerable: false,
576
573
  configurable: true
577
574
  });
578
- return Mixin;
575
+ return class_1;
579
576
  }(base));
580
- // Since we don't directly extend from `base` with it's original types, and we instruct
581
- // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
582
- // This is a limitation in TS as abstract classes cannot be typed properly dynamically.
583
- return Mixin;
584
577
  }
585
578
 
586
- /** Mixin to augment a directive with a `tabIndex` property. */
587
579
  function mixinTabIndex(base, defaultTabIndex) {
588
580
  if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
589
- // Note: We cast `base` to `unknown` and then `Constructor`. It could be an abstract class,
590
- // but given we `extend` it from another class, we can assume a constructor being accessible.
591
- var Mixin = /** @class */ (function (_super) {
592
- __extends(Mixin, _super);
593
- function Mixin() {
581
+ return /** @class */ (function (_super) {
582
+ __extends(class_1, _super);
583
+ function class_1() {
594
584
  var args = [];
595
585
  for (var _i = 0; _i < arguments.length; _i++) {
596
586
  args[_i] = arguments[_i];
@@ -600,7 +590,7 @@
600
590
  _this.defaultTabIndex = defaultTabIndex;
601
591
  return _this;
602
592
  }
603
- Object.defineProperty(Mixin.prototype, "tabIndex", {
593
+ Object.defineProperty(class_1.prototype, "tabIndex", {
604
594
  get: function () { return this.disabled ? -1 : this._tabIndex; },
605
595
  set: function (value) {
606
596
  // If the specified tabIndex value is null or undefined, fall back to the default value.
@@ -609,18 +599,10 @@
609
599
  enumerable: false,
610
600
  configurable: true
611
601
  });
612
- return Mixin;
602
+ return class_1;
613
603
  }(base));
614
- // Since we don't directly extend from `base` with it's original types, and we instruct
615
- // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
616
- // This is a limitation in TS as abstract classes cannot be typed properly dynamically.
617
- return Mixin;
618
604
  }
619
605
 
620
- /**
621
- * Mixin to augment a directive with updateErrorState method.
622
- * For component with `errorState` and need to update `errorState`.
623
- */
624
606
  function mixinErrorState(base) {
625
607
  return /** @class */ (function (_super) {
626
608
  __extends(class_1, _super);
@@ -1420,6 +1402,14 @@
1420
1402
  RippleRenderer.prototype.fadeOutAll = function () {
1421
1403
  this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });
1422
1404
  };
1405
+ /** Fades out all currently active non-persistent ripples. */
1406
+ RippleRenderer.prototype.fadeOutAllNonPersistent = function () {
1407
+ this._activeRipples.forEach(function (ripple) {
1408
+ if (!ripple.config.persistent) {
1409
+ ripple.fadeOut();
1410
+ }
1411
+ });
1412
+ };
1423
1413
  /** Sets up the trigger event listeners */
1424
1414
  RippleRenderer.prototype.setupTriggerEvents = function (elementOrElementRef) {
1425
1415
  var element = coercion.coerceElement(elementOrElementRef);
@@ -1576,6 +1566,9 @@
1576
1566
  */
1577
1567
  get: function () { return this._disabled; },
1578
1568
  set: function (value) {
1569
+ if (value) {
1570
+ this.fadeOutAllNonPersistent();
1571
+ }
1579
1572
  this._disabled = value;
1580
1573
  this._setupTriggerEventsIfEnabled();
1581
1574
  },
@@ -1606,6 +1599,10 @@
1606
1599
  MatRipple.prototype.fadeOutAll = function () {
1607
1600
  this._rippleRenderer.fadeOutAll();
1608
1601
  };
1602
+ /** Fades out all currently showing non-persistent ripple elements. */
1603
+ MatRipple.prototype.fadeOutAllNonPersistent = function () {
1604
+ this._rippleRenderer.fadeOutAllNonPersistent();
1605
+ };
1609
1606
  Object.defineProperty(MatRipple.prototype, "rippleConfig", {
1610
1607
  /**
1611
1608
  * Ripple configuration from the directive's input values.