@angular/material 11.2.9 → 11.2.13

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 (71) hide show
  1. package/_theming.scss +4 -0
  2. package/bundles/material-autocomplete.umd.js +1 -1
  3. package/bundles/material-autocomplete.umd.js.map +1 -1
  4. package/bundles/material-autocomplete.umd.min.js +1 -1
  5. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  6. package/bundles/material-core.umd.js +17 -2
  7. package/bundles/material-core.umd.js.map +1 -1
  8. package/bundles/material-core.umd.min.js +4 -4
  9. package/bundles/material-core.umd.min.js.map +1 -1
  10. package/bundles/material-datepicker.umd.js +39 -5
  11. package/bundles/material-datepicker.umd.js.map +1 -1
  12. package/bundles/material-datepicker.umd.min.js +8 -8
  13. package/bundles/material-datepicker.umd.min.js.map +1 -1
  14. package/bundles/material-paginator.umd.js +1 -0
  15. package/bundles/material-paginator.umd.js.map +1 -1
  16. package/bundles/material-paginator.umd.min.js +1 -1
  17. package/bundles/material-paginator.umd.min.js.map +1 -1
  18. package/bundles/material-snack-bar.umd.js +1 -0
  19. package/bundles/material-snack-bar.umd.js.map +1 -1
  20. package/bundles/material-snack-bar.umd.min.js +1 -1
  21. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  22. package/bundles/material-sort.umd.js +7 -1
  23. package/bundles/material-sort.umd.js.map +1 -1
  24. package/bundles/material-sort.umd.min.js +1 -1
  25. package/bundles/material-sort.umd.min.js.map +1 -1
  26. package/bundles/material-tabs.umd.js +7 -0
  27. package/bundles/material-tabs.umd.js.map +1 -1
  28. package/bundles/material-tabs.umd.min.js +5 -5
  29. package/bundles/material-tabs.umd.min.js.map +1 -1
  30. package/core/index.metadata.json +1 -1
  31. package/core/ripple/ripple-renderer.d.ts +2 -0
  32. package/core/ripple/ripple.d.ts +2 -0
  33. package/datepicker/date-range-input-parts.d.ts +2 -0
  34. package/datepicker/date-range-input.d.ts +4 -1
  35. package/datepicker/date-selection-model.d.ts +2 -0
  36. package/datepicker/index.metadata.json +1 -1
  37. package/esm2015/autocomplete/autocomplete-trigger.js +2 -2
  38. package/esm2015/core/common-behaviors/common-module.js +1 -1
  39. package/esm2015/core/ripple/ripple-renderer.js +9 -1
  40. package/esm2015/core/ripple/ripple.js +8 -1
  41. package/esm2015/core/version.js +1 -1
  42. package/esm2015/datepicker/date-range-input-parts.js +23 -1
  43. package/esm2015/datepicker/date-range-input.js +14 -3
  44. package/esm2015/datepicker/date-selection-model.js +3 -2
  45. package/esm2015/paginator/paginator.js +2 -1
  46. package/esm2015/snack-bar/snack-bar-ref.js +2 -1
  47. package/esm2015/sort/sort-header.js +8 -2
  48. package/esm2015/tabs/tab-group.js +8 -1
  49. package/fesm2015/autocomplete.js +1 -1
  50. package/fesm2015/autocomplete.js.map +1 -1
  51. package/fesm2015/core.js +17 -2
  52. package/fesm2015/core.js.map +1 -1
  53. package/fesm2015/datepicker.js +37 -3
  54. package/fesm2015/datepicker.js.map +1 -1
  55. package/fesm2015/paginator.js +1 -0
  56. package/fesm2015/paginator.js.map +1 -1
  57. package/fesm2015/snack-bar.js +1 -0
  58. package/fesm2015/snack-bar.js.map +1 -1
  59. package/fesm2015/sort.js +7 -1
  60. package/fesm2015/sort.js.map +1 -1
  61. package/fesm2015/tabs.js +7 -0
  62. package/fesm2015/tabs.js.map +1 -1
  63. package/package.json +2 -2
  64. package/paginator/index.metadata.json +1 -1
  65. package/prebuilt-themes/deeppurple-amber.css +1 -1
  66. package/prebuilt-themes/indigo-pink.css +1 -1
  67. package/prebuilt-themes/pink-bluegrey.css +1 -1
  68. package/prebuilt-themes/purple-green.css +1 -1
  69. package/schematics/ng-add/index.js +1 -1
  70. package/sort/sort-header.d.ts +1 -1
  71. package/tabs/index.metadata.json +1 -1
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
8
- */var d,h,g=new e.Version("11.2.9");
8
+ */var d,h,g=new e.Version("11.2.13");
9
9
  /**
10
10
  * @license
11
11
  * Copyright Google LLC All Rights Reserved.
@@ -20,7 +20,7 @@
20
20
  * Use of this source code is governed by an MIT-style license that can be
21
21
  * found in the LICENSE file at https://angular.io/license
22
22
  */
23
- var f=new e.Version("11.2.9");function m(){return!0}var y=new e.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:m}),_=function(){function t(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._getWindow=function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null},t.prototype._checksAreEnabled=function(){return e.isDevMode()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkCdkVersionMatch=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&f.full!==r.VERSION.full&&console.warn("The Angular Material version ("+f.full+") does not match the Angular CDK version ("+r.VERSION.full+").\nPlease ensure the versions of these two packages exactly match.")},t}();_.decorators=[{type:e.NgModule,args:[{imports:[i.BidiModule],exports:[i.BidiModule]}]}],_.ctorParameters=function(){return[{type:n.HighContrastModeDetector},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[y]}]},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]};
23
+ var f=new e.Version("11.2.13");function m(){return!0}var y=new e.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:m}),_=function(){function t(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._getWindow=function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null},t.prototype._checksAreEnabled=function(){return e.isDevMode()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkCdkVersionMatch=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&f.full!==r.VERSION.full&&console.warn("The Angular Material version ("+f.full+") does not match the Angular CDK version ("+r.VERSION.full+").\nPlease ensure the versions of these two packages exactly match.")},t}();_.decorators=[{type:e.NgModule,args:[{imports:[i.BidiModule],exports:[i.BidiModule]}]}],_.ctorParameters=function(){return[{type:n.HighContrastModeDetector},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[y]}]},{type:void 0,decorators:[{type:e.Inject,args:[o.DOCUMENT]}]}]};
24
24
  /*! *****************************************************************************
25
25
  Copyright (c) Microsoft Corporation.
26
26
 
@@ -64,7 +64,7 @@ var O=new e.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:C});func
64
64
  *
65
65
  * Use of this source code is governed by an MIT-style license that can be
66
66
  * found in the LICENSE file at https://angular.io/license
67
- */try{k="undefined"!=typeof Intl}catch(t){k=!1}var I={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},R=A(31,(function(t){return String(t+1)})),T={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},S=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function A(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e(i);return n}var P=function(t){function e(e,n){var i=t.call(this)||this;return i.useUtcForDisplay=!0,t.prototype.setLocale.call(i,e),i.useUtcForDisplay=!n.TRIDENT,i._clampDate=n.TRIDENT||n.EDGE,i}return v(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getDayOfWeek=function(t){return t.getDay()},e.prototype.getMonthNames=function(t){var e=this;if(k){var n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return A(12,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,t,1)))}))}return I[t]},e.prototype.getDateNames=function(){var t=this;if(k){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return A(31,(function(n){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,n+1)))}))}return R},e.prototype.getDayOfWeekNames=function(t){var e=this;if(k){var n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return A(7,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,0,t+1)))}))}return T[t]},e.prototype.getYearName=function(t){if(k){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))},e.prototype.getFirstDayOfWeek=function(){return 0},e.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},e.prototype.clone=function(t){return new Date(t.getTime())},e.prototype.createDate=function(t,e,n){var i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(k){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(S.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)},e}(w);P.decorators=[{type:e.Injectable}],P.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[O]}]},{type:c.Platform}]};
67
+ */try{k="undefined"!=typeof Intl}catch(t){k=!1}var I={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},R=S(31,(function(t){return String(t+1)})),T={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},A=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function S(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e(i);return n}var P=function(t){function e(e,n){var i=t.call(this)||this;return i.useUtcForDisplay=!0,t.prototype.setLocale.call(i,e),i.useUtcForDisplay=!n.TRIDENT,i._clampDate=n.TRIDENT||n.EDGE,i}return v(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getDayOfWeek=function(t){return t.getDay()},e.prototype.getMonthNames=function(t){var e=this;if(k){var n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return S(12,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,t,1)))}))}return I[t]},e.prototype.getDateNames=function(){var t=this;if(k){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return S(31,(function(n){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,n+1)))}))}return R},e.prototype.getDayOfWeekNames=function(t){var e=this;if(k){var n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return S(7,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,0,t+1)))}))}return T[t]},e.prototype.getYearName=function(t){if(k){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))},e.prototype.getFirstDayOfWeek=function(){return 0},e.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},e.prototype.clone=function(t){return new Date(t.getTime())},e.prototype.createDate=function(t,e,n){var i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(k){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(A.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)},e}(w);P.decorators=[{type:e.Injectable}],P.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[O]}]},{type:c.Platform}]};
68
68
  /**
69
69
  * @license
70
70
  * Copyright Google LLC All Rights Reserved.
@@ -102,7 +102,7 @@ var B,H,Z,q=function(){function t(t,e,n){this._renderer=t,this.element=e,this.co
102
102
  *
103
103
  * Use of this source code is governed by an MIT-style license that can be
104
104
  * found in the LICENSE file at https://angular.io/license
105
- */(t,e,r),c=t-r.left,l=e-r.top,p=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=c-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration=p+"ms",this._containerElement.appendChild(u),function d(t){window.getComputedStyle(t).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";var h=new q(this,u,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()}),p),h},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},G),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))},t.prototype.setupTriggerEvents=function(t){var e=a.coerceElement(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(K))},t.prototype.handleEvent=function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)},t.prototype._onMousedown=function(t){var e=n.isFakeMousedownFromScreenReader(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||i||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},t.prototype._onTouchStart=function(t){if(!this._target.rippleDisabled&&!n.isFakeTouchstartFromScreenReader(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}},t.prototype._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()})))},t.prototype._runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))},t.prototype._registerEvents=function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,J)}))}))},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&(K.forEach((function(e){t._triggerElement.removeEventListener(e,t,J)})),this._pointerUpEventsRegistered&&X.forEach((function(e){t._triggerElement.removeEventListener(e,t,J)})))},t}(),Q=new e.InjectionToken("mat-ripple-global-options"),tt=function(){function t(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new $(this,e,t,n)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!1,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],tt.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:c.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Q]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},tt.propDecorators={color:[{type:e.Input,args:["matRippleColor"]}],unbounded:[{type:e.Input,args:["matRippleUnbounded"]}],centered:[{type:e.Input,args:["matRippleCentered"]}],radius:[{type:e.Input,args:["matRippleRadius"]}],animation:[{type:e.Input,args:["matRippleAnimation"]}],disabled:[{type:e.Input,args:["matRippleDisabled"]}],trigger:[{type:e.Input,args:["matRippleTrigger"]}]},(B=function B(){}).decorators=[{type:e.NgModule,args:[{imports:[_,c.PlatformModule],exports:[tt,_],declarations:[tt]}]}],(H=function H(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}).decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"mat-pseudo-checkbox",template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"'},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n']}]}],H.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},H.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},(Z=function Z(){}).decorators=[{type:e.NgModule,args:[{imports:[_],exports:[H],declarations:[H]}]}];
105
+ */(t,e,r),c=t-r.left,l=e-r.top,p=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=c-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration=p+"ms",this._containerElement.appendChild(u),function d(t){window.getComputedStyle(t).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";var h=new q(this,u,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()}),p),h},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},G),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))},t.prototype.fadeOutAllNonPersistent=function(){this._activeRipples.forEach((function(t){t.config.persistent||t.fadeOut()}))},t.prototype.setupTriggerEvents=function(t){var e=a.coerceElement(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(K))},t.prototype.handleEvent=function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)},t.prototype._onMousedown=function(t){var e=n.isFakeMousedownFromScreenReader(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||i||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},t.prototype._onTouchStart=function(t){if(!this._target.rippleDisabled&&!n.isFakeTouchstartFromScreenReader(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}},t.prototype._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()})))},t.prototype._runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))},t.prototype._registerEvents=function(t){var e=this;this._ngZone.runOutsideAngular((function(){t.forEach((function(t){e._triggerElement.addEventListener(t,e,J)}))}))},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&(K.forEach((function(e){t._triggerElement.removeEventListener(e,t,J)})),this._pointerUpEventsRegistered&&X.forEach((function(e){t._triggerElement.removeEventListener(e,t,J)})))},t}(),Q=new e.InjectionToken("mat-ripple-global-options"),tt=function(){function t(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new $(this,e,t,n)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},t.prototype.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!1,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],tt.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:c.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Q]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},tt.propDecorators={color:[{type:e.Input,args:["matRippleColor"]}],unbounded:[{type:e.Input,args:["matRippleUnbounded"]}],centered:[{type:e.Input,args:["matRippleCentered"]}],radius:[{type:e.Input,args:["matRippleRadius"]}],animation:[{type:e.Input,args:["matRippleAnimation"]}],disabled:[{type:e.Input,args:["matRippleDisabled"]}],trigger:[{type:e.Input,args:["matRippleTrigger"]}]},(B=function B(){}).decorators=[{type:e.NgModule,args:[{imports:[_,c.PlatformModule],exports:[tt,_],declarations:[tt]}]}],(H=function H(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}).decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,selector:"mat-pseudo-checkbox",template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"'},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n']}]}],H.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},H.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},(Z=function Z(){}).decorators=[{type:e.NgModule,args:[{imports:[_],exports:[H],declarations:[H]}]}];
106
106
  /**
107
107
  * @license
108
108
  * Copyright Google LLC All Rights Reserved.