@angular/material 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/_theming.scss +69 -69
- package/autocomplete/index.metadata.json +1 -1
- package/bottom-sheet/bottom-sheet.d.ts +12 -0
- package/bundles/material-autocomplete.umd.js +4 -3
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-button.umd.js +2 -2
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-chips-testing.umd.js +22 -4
- package/bundles/material-chips-testing.umd.js.map +1 -1
- package/bundles/material-chips-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +13 -10
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +7 -7
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +36 -0
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +1 -1
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +1 -8
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +2 -2
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +2 -2
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +50 -36
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +2 -2
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-list-testing.umd.js +5 -3
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.min.js +1 -1
- package/bundles/material-list-testing.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +21 -11
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +1 -1
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +14 -16
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +3 -3
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +7 -3
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +3 -3
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +3 -1
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/button/_button-theme.scss +1 -1
- package/button/index.metadata.json +1 -1
- package/checkbox/_checkbox-theme.scss +1 -1
- package/chips/_chips-theme.scss +1 -1
- package/chips/testing/chip-harness-filters.d.ts +5 -1
- package/chips/testing/chip-harness.d.ts +20 -4
- package/chips/testing/chip-list-harness.d.ts +2 -0
- package/core/density/_index.scss +6 -6
- package/core/focus-indicators/_focus-indicators.scss +1 -1
- package/core/index.metadata.json +1 -1
- package/core/ripple/_ripple.scss +2 -2
- package/core/theming/_check-duplicate-styles.scss +6 -6
- package/core/theming/_palette.scss +16 -16
- package/core/theming/_theming.scss +33 -33
- package/datepicker/date-range-input-parts.d.ts +6 -2
- package/datepicker/index.metadata.json +1 -1
- package/dialog/dialog.d.ts +10 -3
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete-trigger.js +6 -5
- package/esm2015/bottom-sheet/bottom-sheet.js +1 -1
- package/esm2015/button/button.js +2 -2
- package/esm2015/chips/testing/chip-harness-filters.js +1 -1
- package/esm2015/chips/testing/chip-harness.js +21 -5
- package/esm2015/chips/testing/chip-list-harness.js +3 -1
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/datetime/native-date-adapter.js +12 -9
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input-parts.js +37 -1
- package/esm2015/dialog/dialog-animations.js +2 -2
- package/esm2015/dialog/dialog.js +1 -8
- package/esm2015/form-field/form-field.js +1 -1
- package/esm2015/form-field/hint.js +2 -2
- package/esm2015/icon/icon.js +46 -36
- package/esm2015/list/selection-list.js +22 -12
- package/esm2015/list/testing/list-item-harness-base.js +6 -4
- package/esm2015/menu/menu-item.js +15 -17
- package/esm2015/tabs/tab-content.js +3 -2
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +9 -6
- package/esm2015/tooltip/tooltip.js +4 -2
- package/fesm2015/autocomplete.js +5 -4
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/bottom-sheet.js.map +1 -1
- package/fesm2015/button.js +2 -2
- package/fesm2015/chips/testing.js +22 -4
- package/fesm2015/chips/testing.js.map +1 -1
- package/fesm2015/core.js +13 -10
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +36 -0
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +1 -8
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/form-field.js +2 -2
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/icon.js +45 -35
- package/fesm2015/icon.js.map +1 -1
- package/fesm2015/list/testing.js +5 -3
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/list.js +21 -11
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu.js +14 -16
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/tabs.js +7 -3
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/tooltip.js +3 -1
- package/fesm2015/tooltip.js.map +1 -1
- package/form-field/index.metadata.json +1 -1
- package/icon/icon.d.ts +7 -4
- package/icon/index.metadata.json +1 -1
- package/list/index.metadata.json +1 -1
- package/list/selection-list.d.ts +16 -4
- package/menu/index.metadata.json +1 -1
- package/menu/menu-item.d.ts +6 -2
- package/package.json +2 -2
- package/radio/_radio-theme.scss +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 +2 -2
- package/schematics/ng-update/data/input-names.js +10 -10
- package/schematics/ng-update/data/output-names.js +10 -10
- package/schematics/ng-update/data/property-names.js +24 -24
- package/slide-toggle/_slide-toggle-theme.scss +1 -1
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab-content.d.ts +3 -2
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +8 -5
- package/tooltip/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("10.2.
|
|
8
|
+
*/var d,h,g=new e.Version("10.2.7");
|
|
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("10.2.
|
|
23
|
+
var f=new e.Version("10.2.7");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._getDocument=function(){var t=this._document||document;return"object"==typeof t&&t?t:null},t.prototype._getWindow=function(){var t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e: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(){var t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.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(){var t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(!t&&e&&e.body&&"function"==typeof getComputedStyle){var n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.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"),e.body.removeChild(n)}},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.Optional},{type:e.Inject,args:[o.DOCUMENT]}]}]};
|
|
24
24
|
/*! *****************************************************************************
|
|
25
25
|
Copyright (c) Microsoft Corporation.
|
|
26
26
|
|
|
@@ -57,7 +57,7 @@ var b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
57
57
|
* Use of this source code is governed by an MIT-style license that can be
|
|
58
58
|
* found in the LICENSE file at https://angular.io/license
|
|
59
59
|
*/
|
|
60
|
-
var x=new e.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:C});function C(){return e.inject(e.LOCALE_ID)}var k,M={provide:x,useExisting:e.LOCALE_ID},w=function(){function t(){this._localeChanges=new s.Subject,this.localeChanges=this._localeChanges}return t.prototype.getValidDateOrNull=function(t){return this.isDateInstance(t)&&this.isValid(t)?t:null},t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){if(t&&e){var n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e},t.prototype.clampDate=function(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t},t}(),I=new e.InjectionToken("mat-date-formats");try{k="undefined"!=typeof Intl}catch(t){k=!1}var R={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"]},T=P(31,(function(t){return String(t+1)})),A={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 P(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e(i);return n}var j=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 P(12,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,t,1)))}))}return R[t]},e.prototype.getDateNames=function(){var t=this;if(k){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,(function(n){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,n+1)))}))}return T},e.prototype.getDayOfWeekNames=function(t){var e=this;if(k){var n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,0,t+1)))}))}return A[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(t,e,n)
|
|
60
|
+
var x=new e.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:C});function C(){return e.inject(e.LOCALE_ID)}var k,M={provide:x,useExisting:e.LOCALE_ID},w=function(){function t(){this._localeChanges=new s.Subject,this.localeChanges=this._localeChanges}return t.prototype.getValidDateOrNull=function(t){return this.isDateInstance(t)&&this.isValid(t)?t:null},t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){if(t&&e){var n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e},t.prototype.clampDate=function(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t},t}(),I=new e.InjectionToken("mat-date-formats");try{k="undefined"!=typeof Intl}catch(t){k=!1}var R={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"]},T=P(31,(function(t){return String(t+1)})),A={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 P(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e(i);return n}var j=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 P(12,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,t,1)))}))}return R[t]},e.prototype.getDateNames=function(){var t=this;if(k){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,(function(n){return t._stripDirectionalityCharacters(t._format(e,new Date(2017,0,n+1)))}))}return T},e.prototype.getDayOfWeekNames=function(t){var e=this;if(k){var n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,(function(t){return e._stripDirectionalityCharacters(e._format(n,new Date(2017,0,t+1)))}))}return A[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);j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[x]}]},{type:c.Platform}]};
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -80,7 +80,7 @@ var N,L={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeri
|
|
|
80
80
|
* Use of this source code is governed by an MIT-style license that can be
|
|
81
81
|
* found in the LICENSE file at https://angular.io/license
|
|
82
82
|
*/
|
|
83
|
-
var U=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))},t}();U.decorators=[{type:e.Injectable}];var Y,z=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t}();function B(t,e,n){void 0===n&&(n="mat"),t.changes.pipe(l.startWith(t)).subscribe((function(t){var i=t.length;W(e,n+"-2-line",!1),W(e,n+"-3-line",!1),W(e,n+"-multi-line",!1),2===i||3===i?W(e,n+"-"+i+"-line",!0):i>3&&W(e,n+"-multi-line",!0)}))}function W(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}z.ɵprov=e.ɵɵdefineInjectable({factory:function t(){return new z},token:z,providedIn:"root"}),z.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],(Y=function Y(){}).decorators=[{type:e.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}];var Z
|
|
83
|
+
var U=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))},t}();U.decorators=[{type:e.Injectable}];var Y,z=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t}();function B(t,e,n){void 0===n&&(n="mat"),t.changes.pipe(l.startWith(t)).subscribe((function(t){var i=t.length;W(e,n+"-2-line",!1),W(e,n+"-3-line",!1),W(e,n+"-multi-line",!1),2===i||3===i?W(e,n+"-"+i+"-line",!0):i>3&&W(e,n+"-multi-line",!0)}))}function W(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}z.ɵprov=e.ɵɵdefineInjectable({factory:function t(){return new z},token:z,providedIn:"root"}),z.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],(Y=function Y(){}).decorators=[{type:e.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}];var H,Z=function Z(t,e){B(t,e)};(H=function H(){}).decorators=[{type:e.NgModule,args:[{imports:[_],exports:[Y,_],declarations:[Y]}]}];
|
|
84
84
|
/**
|
|
85
85
|
* @license
|
|
86
86
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -88,14 +88,14 @@ var U=function(){function t(){}return t.prototype.isErrorState=function(t,e){ret
|
|
|
88
88
|
* Use of this source code is governed by an MIT-style license that can be
|
|
89
89
|
* found in the LICENSE file at https://angular.io/license
|
|
90
90
|
*/
|
|
91
|
-
var G,J,
|
|
91
|
+
var q,G,J,K=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),X={enterDuration:450,exitDuration:400},$=c.normalizePassiveListenerOptions({passive:!0}),Q=["mousedown","touchstart"],tt=["mouseup","mouseleave","touchend","touchcancel"],et=function(){function t(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=a.coerceElement(n))}return t.prototype.fadeInRipple=function(t,e,n){var i=this;void 0===n&&(n={});var r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},X),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function s(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright Google LLC All Rights Reserved.
|
|
95
95
|
*
|
|
96
96
|
* Use of this source code is governed by an MIT-style license that can be
|
|
97
97
|
* found in the LICENSE file at https://angular.io/license
|
|
98
|
-
*/(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 K(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({},X),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(Q))},t.prototype.handleEvent=function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tt),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){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].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,$)}))}))},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&(Q.forEach((function(e){t._triggerElement.removeEventListener(e,t,$)})),this._pointerUpEventsRegistered&&tt.forEach((function(e){t._triggerElement.removeEventListener(e,t,$)})))},t}(),nt=new e.InjectionToken("mat-ripple-global-options"),it=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 et(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}();it.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],it.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:c.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[nt]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},it.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"]}]},(G=function G(){}).decorators=[{type:e.NgModule,args:[{imports:[_,c.PlatformModule],exports:[it,_],declarations:[it]}]}],(J=function J(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']}]}],J.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},J.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},(H=function H(){}).decorators=[{type:e.NgModule,args:[{exports:[J],declarations:[J]}]}];var rt=O((function ot(){})),at=0,st=function(t){function e(){var e=t.apply(this,E(arguments))||this;return e._labelId="mat-optgroup-label-"+at++,e}return v(e,t),e}(rt);st.decorators=[{type:e.Directive}],st.propDecorators={label:[{type:e.Input}]};var ct=new e.InjectionToken("MatOptgroup"),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(st);lt.decorators=[{type:e.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }} <ng-content></ng-content></label>\n<ng-content select="mat-option, ng-container"></ng-content>\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"},providers:[{provide:ct,useExisting:lt}],styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"]}]}];var pt=0,ut=function ut(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e},dt=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),ht=function(){function t(t,n,i,r){this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pt++,this.onSelectionChange=new e.EventEmitter,this._stateChanges=new s.Subject}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=a.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!1,configurable:!0}),t.prototype.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.focus=function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==u.ENTER&&t.keyCode!==u.SPACE||u.hasModifierKey(t)||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getAriaSelected=function(){return this.selected||!this.multiple&&null},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype.ngAfterViewChecked=function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new ut(this,t))},t}();ht.decorators=[{type:e.Directive}],ht.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0},{type:st}]},ht.propDecorators={value:[{type:e.Input}],id:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]};var gt,ft=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return v(e,t),e}(ht);ft.decorators=[{type:e.Component,args:[{selector:"mat-option",exportAs:"matOption",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"_getAriaSelected()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option mat-focus-indicator"},template:'<mat-pseudo-checkbox *ngIf="multiple" class="mat-option-pseudo-checkbox"\n [state]="selected ? \'checked\' : \'unchecked\'" [disabled]="disabled"></mat-pseudo-checkbox>\n\n<span class="mat-option-text"><ng-content></ng-content></span>\n\n<div class="mat-option-ripple" mat-ripple\n [matRippleTrigger]="_getHostElement()"\n [matRippleDisabled]="disabled || disableRipple">\n</div>\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"]}]}],ft.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[dt]}]},{type:lt,decorators:[{type:e.Optional},{type:e.Inject,args:[ct]}]}]},(gt=function gt(){}).decorators=[{type:e.NgModule,args:[{imports:[G,o.CommonModule,H],exports:[ft,lt],declarations:[ft,lt]}]}];
|
|
98
|
+
*/(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 K(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({},X),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(Q))},t.prototype.handleEvent=function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tt),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){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].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,$)}))}))},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&(Q.forEach((function(e){t._triggerElement.removeEventListener(e,t,$)})),this._pointerUpEventsRegistered&&tt.forEach((function(e){t._triggerElement.removeEventListener(e,t,$)})))},t}(),nt=new e.InjectionToken("mat-ripple-global-options"),it=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 et(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}();it.decorators=[{type:e.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],it.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:c.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[nt]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},it.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"]}]},(q=function q(){}).decorators=[{type:e.NgModule,args:[{imports:[_,c.PlatformModule],exports:[it,_],declarations:[it]}]}],(G=function G(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']}]}],G.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p.ANIMATION_MODULE_TYPE]}]}]},G.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]},(J=function J(){}).decorators=[{type:e.NgModule,args:[{exports:[G],declarations:[G]}]}];var rt=O((function ot(){})),at=0,st=function(t){function e(){var e=t.apply(this,E(arguments))||this;return e._labelId="mat-optgroup-label-"+at++,e}return v(e,t),e}(rt);st.decorators=[{type:e.Directive}],st.propDecorators={label:[{type:e.Input}]};var ct=new e.InjectionToken("MatOptgroup"),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(st);lt.decorators=[{type:e.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }} <ng-content></ng-content></label>\n<ng-content select="mat-option, ng-container"></ng-content>\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"},providers:[{provide:ct,useExisting:lt}],styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"]}]}];var pt=0,ut=function ut(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e},dt=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),ht=function(){function t(t,n,i,r){this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pt++,this.onSelectionChange=new e.EventEmitter,this._stateChanges=new s.Subject}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=a.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!1,configurable:!0}),t.prototype.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.focus=function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){t.keyCode!==u.ENTER&&t.keyCode!==u.SPACE||u.hasModifierKey(t)||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getAriaSelected=function(){return this.selected||!this.multiple&&null},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype.ngAfterViewChecked=function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new ut(this,t))},t}();ht.decorators=[{type:e.Directive}],ht.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0},{type:st}]},ht.propDecorators={value:[{type:e.Input}],id:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]};var gt,ft=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return v(e,t),e}(ht);ft.decorators=[{type:e.Component,args:[{selector:"mat-option",exportAs:"matOption",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"_getAriaSelected()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option mat-focus-indicator"},template:'<mat-pseudo-checkbox *ngIf="multiple" class="mat-option-pseudo-checkbox"\n [state]="selected ? \'checked\' : \'unchecked\'" [disabled]="disabled"></mat-pseudo-checkbox>\n\n<span class="mat-option-text"><ng-content></ng-content></span>\n\n<div class="mat-option-ripple" mat-ripple\n [matRippleTrigger]="_getHostElement()"\n [matRippleDisabled]="disabled || disableRipple">\n</div>\n',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"]}]}],ft.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[dt]}]},{type:lt,decorators:[{type:e.Optional},{type:e.Inject,args:[ct]}]}]},(gt=function gt(){}).decorators=[{type:e.NgModule,args:[{imports:[q,o.CommonModule,J],exports:[ft,lt],declarations:[ft,lt]}]}];
|
|
99
99
|
/**
|
|
100
100
|
* @license
|
|
101
101
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -118,7 +118,7 @@ var mt=new e.InjectionToken("mat-label-global-options");
|
|
|
118
118
|
* Use of this source code is governed by an MIT-style license that can be
|
|
119
119
|
* found in the LICENSE file at https://angular.io/license
|
|
120
120
|
*/
|
|
121
|
-
t.APR=3,t.AUG=7,t.AnimationCurves=d,t.AnimationDurations=h,t.DEC=11,t.DateAdapter=w,t.ErrorStateMatcher=z,t.FEB=1,t.JAN=0,t.JUL=6,t.JUN=5,t.MAR=2,t.MATERIAL_SANITY_CHECKS=y,t.MAT_DATE_FORMATS=I,t.MAT_DATE_LOCALE=x,t.MAT_DATE_LOCALE_FACTORY=C,t.MAT_DATE_LOCALE_PROVIDER=M,t.MAT_LABEL_GLOBAL_OPTIONS=mt,t.MAT_NATIVE_DATE_FORMATS=L,t.MAT_OPTGROUP=ct,t.MAT_OPTION_PARENT_COMPONENT=dt,t.MAT_RIPPLE_GLOBAL_OPTIONS=nt,t.MAY=4,t.MatCommonModule=_,t.MatLine=Y,t.MatLineModule=
|
|
121
|
+
t.APR=3,t.AUG=7,t.AnimationCurves=d,t.AnimationDurations=h,t.DEC=11,t.DateAdapter=w,t.ErrorStateMatcher=z,t.FEB=1,t.JAN=0,t.JUL=6,t.JUN=5,t.MAR=2,t.MATERIAL_SANITY_CHECKS=y,t.MAT_DATE_FORMATS=I,t.MAT_DATE_LOCALE=x,t.MAT_DATE_LOCALE_FACTORY=C,t.MAT_DATE_LOCALE_PROVIDER=M,t.MAT_LABEL_GLOBAL_OPTIONS=mt,t.MAT_NATIVE_DATE_FORMATS=L,t.MAT_OPTGROUP=ct,t.MAT_OPTION_PARENT_COMPONENT=dt,t.MAT_RIPPLE_GLOBAL_OPTIONS=nt,t.MAY=4,t.MatCommonModule=_,t.MatLine=Y,t.MatLineModule=H,t.MatLineSetter=Z,t.MatNativeDateModule=V,t.MatOptgroup=lt,t.MatOption=ft,t.MatOptionModule=gt,t.MatOptionSelectionChange=ut,t.MatPseudoCheckbox=G,t.MatPseudoCheckboxModule=J,t.MatRipple=it,t.MatRippleModule=q,t.NOV=10,t.NativeDateAdapter=j,t.NativeDateModule=N,t.OCT=9,t.RippleRef=K,t.RippleRenderer=et,t.SEP=8,t.ShowOnDirtyErrorStateMatcher=U,t.VERSION=g,t._MatOptgroupBase=st,t._MatOptionBase=ht,t._countGroupLabelsBeforeOption=function yt(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),o=0,a=0;a<t+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0},t._getOptionScrollPosition=function _t(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}
|
|
122
122
|
/**
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright Google LLC All Rights Reserved.
|