@angular/material 11.2.11 → 11.2.12

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 (34) hide show
  1. package/bundles/material-core.umd.js +17 -2
  2. package/bundles/material-core.umd.js.map +1 -1
  3. package/bundles/material-core.umd.min.js +4 -4
  4. package/bundles/material-core.umd.min.js.map +1 -1
  5. package/bundles/material-datepicker.umd.js +26 -3
  6. package/bundles/material-datepicker.umd.js.map +1 -1
  7. package/bundles/material-datepicker.umd.min.js +7 -7
  8. package/bundles/material-datepicker.umd.min.js.map +1 -1
  9. package/bundles/material-paginator.umd.js +1 -0
  10. package/bundles/material-paginator.umd.js.map +1 -1
  11. package/bundles/material-paginator.umd.min.js +1 -1
  12. package/bundles/material-paginator.umd.min.js.map +1 -1
  13. package/core/index.metadata.json +1 -1
  14. package/core/ripple/ripple-renderer.d.ts +2 -0
  15. package/core/ripple/ripple.d.ts +2 -0
  16. package/datepicker/date-range-input-parts.d.ts +2 -0
  17. package/datepicker/date-selection-model.d.ts +2 -0
  18. package/datepicker/index.metadata.json +1 -1
  19. package/esm2015/core/common-behaviors/common-module.js +1 -1
  20. package/esm2015/core/ripple/ripple-renderer.js +9 -1
  21. package/esm2015/core/ripple/ripple.js +8 -1
  22. package/esm2015/core/version.js +1 -1
  23. package/esm2015/datepicker/date-range-input-parts.js +23 -1
  24. package/esm2015/datepicker/date-selection-model.js +3 -2
  25. package/esm2015/paginator/paginator.js +2 -1
  26. package/fesm2015/core.js +17 -2
  27. package/fesm2015/core.js.map +1 -1
  28. package/fesm2015/datepicker.js +24 -1
  29. package/fesm2015/datepicker.js.map +1 -1
  30. package/fesm2015/paginator.js +1 -0
  31. package/fesm2015/paginator.js.map +1 -1
  32. package/package.json +2 -2
  33. package/paginator/index.metadata.json +1 -1
  34. package/schematics/ng-add/index.js +1 -1
@@ -12,7 +12,7 @@
12
12
  * found in the LICENSE file at https://angular.io/license
13
13
  */
14
14
  /** Current version of Angular Material. */
15
- var VERSION = new i0.Version('11.2.11');
15
+ var VERSION = new i0.Version('11.2.12');
16
16
 
17
17
  /**
18
18
  * @license
@@ -52,7 +52,7 @@
52
52
  // i.e. avoid core to depend on the @angular/material primary entry-point
53
53
  // Can be removed once the Material primary entry-point no longer
54
54
  // re-exports all secondary entry-points
55
- var VERSION$1 = new i0.Version('11.2.11');
55
+ var VERSION$1 = new i0.Version('11.2.12');
56
56
  /** @docs-private */
57
57
  function MATERIAL_SANITY_CHECKS_FACTORY() {
58
58
  return true;
@@ -1398,6 +1398,14 @@
1398
1398
  RippleRenderer.prototype.fadeOutAll = function () {
1399
1399
  this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });
1400
1400
  };
1401
+ /** Fades out all currently active non-persistent ripples. */
1402
+ RippleRenderer.prototype.fadeOutAllNonPersistent = function () {
1403
+ this._activeRipples.forEach(function (ripple) {
1404
+ if (!ripple.config.persistent) {
1405
+ ripple.fadeOut();
1406
+ }
1407
+ });
1408
+ };
1401
1409
  /** Sets up the trigger event listeners */
1402
1410
  RippleRenderer.prototype.setupTriggerEvents = function (elementOrElementRef) {
1403
1411
  var element = coercion.coerceElement(elementOrElementRef);
@@ -1554,6 +1562,9 @@
1554
1562
  */
1555
1563
  get: function () { return this._disabled; },
1556
1564
  set: function (value) {
1565
+ if (value) {
1566
+ this.fadeOutAllNonPersistent();
1567
+ }
1557
1568
  this._disabled = value;
1558
1569
  this._setupTriggerEventsIfEnabled();
1559
1570
  },
@@ -1584,6 +1595,10 @@
1584
1595
  MatRipple.prototype.fadeOutAll = function () {
1585
1596
  this._rippleRenderer.fadeOutAll();
1586
1597
  };
1598
+ /** Fades out all currently showing non-persistent ripple elements. */
1599
+ MatRipple.prototype.fadeOutAllNonPersistent = function () {
1600
+ this._rippleRenderer.fadeOutAllNonPersistent();
1601
+ };
1587
1602
  Object.defineProperty(MatRipple.prototype, "rippleConfig", {
1588
1603
  /**
1589
1604
  * Ripple configuration from the directive's input values.