@angular/material 11.0.2 → 11.0.3
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 +1 -1
- package/bundles/material-checkbox-testing.umd.js +3 -3
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +2 -2
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +2 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +4 -1
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +4 -4
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +4 -0
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +5 -5
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +5 -0
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +4 -4
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +6 -2
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +3 -3
- package/bundles/material-select.umd.min.js.map +1 -1
- package/checkbox/testing/checkbox-harness.d.ts +3 -3
- package/core/index.metadata.json +1 -1
- package/core/typography/_typography.scss +1 -1
- package/datepicker/calendar.d.ts +1 -0
- package/datepicker/index.metadata.json +1 -1
- package/esm2015/checkbox/testing/checkbox-harness.js +4 -4
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/calendar.js +5 -2
- package/esm2015/expansion/accordion.js +6 -2
- package/esm2015/menu/menu.js +6 -1
- package/esm2015/select/select.js +7 -3
- package/expansion/accordion.d.ts +3 -2
- package/expansion/index.metadata.json +1 -1
- package/fesm2015/checkbox/testing.js +3 -3
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/core.js +2 -2
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +4 -1
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/expansion.js +4 -0
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/menu.js +5 -0
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/select.js +6 -2
- package/fesm2015/select.js.map +1 -1
- package/menu/index.metadata.json +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/select/index.metadata.json +1 -1
|
@@ -72,7 +72,7 @@ var W=function(){function e(e,t,a){this._changeDetectorRef=e,this._dateAdapter=t
|
|
|
72
72
|
* Use of this source code is governed by an MIT-style license that can be
|
|
73
73
|
* found in the LICENSE file at https://angular.io/license
|
|
74
74
|
*/
|
|
75
|
-
var U=function(){function e(e,t,a,n,r){this._intl=e,this.calendar=t,this._dateAdapter=a,this._dateFormats=n,this.calendar.stateChanges.subscribe((function(){return r.markForCheck()}))}return Object.defineProperty(e.prototype,"periodButtonText",{get:function(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);var e=this._dateAdapter.getYear(this.calendar.activeDate)-G(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+24-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(a,n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]},enumerable:!1,configurable:!0}),e.prototype.currentPeriodClicked=function(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"},e.prototype.previousClicked=function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)},e.prototype.nextClicked=function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)},e.prototype.previousEnabled=function(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)},e.prototype.nextEnabled=function(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)},e.prototype._isSameView=function(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):H(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)},e}();U.decorators=[{type:i.Component,args:[{selector:"mat-calendar-header",template:'<div class="mat-calendar-header">\n <div class="mat-calendar-controls">\n <button mat-button type="button" class="mat-calendar-period-button"\n (click)="currentPeriodClicked()" [attr.aria-label]="periodButtonLabel"\n cdkAriaLive="polite">\n {{periodButtonText}}\n <div class="mat-calendar-arrow"\n [class.mat-calendar-invert]="calendar.currentView != \'month\'"></div>\n </button>\n\n <div class="mat-calendar-spacer"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type="button" class="mat-calendar-previous-button"\n [disabled]="!previousEnabled()" (click)="previousClicked()"\n [attr.aria-label]="prevButtonLabel">\n </button>\n\n <button mat-icon-button type="button" class="mat-calendar-next-button"\n [disabled]="!nextEnabled()" (click)="nextClicked()"\n [attr.aria-label]="nextButtonLabel">\n </button>\n </div>\n</div>\n',exportAs:"matCalendarHeader",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}]}],U.ctorParameters=function(){return[{type:v},{type:$,decorators:[{type:i.Inject,args:[i.forwardRef((function(){return $}))]}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]},{type:i.ChangeDetectorRef}]};var $=function(){function e(e,t,a,n){var r=this;this._dateAdapter=t,this._dateFormats=a,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.EventEmitter,this.yearSelected=new i.EventEmitter,this.monthSelected=new i.EventEmitter,this.viewChanged=new i.EventEmitter(!0),this._userSelection=new i.EventEmitter,this.stateChanges=new c.Subject,this._intlChanges=e.changes.subscribe((function(){n.markForCheck(),r.stateChanges.next()}))}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof V?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._clampedActiveDate},set:function(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentView",{get:function(){return this._currentView},set:function(e){var t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._calendarHeaderPortal=new n.ComponentPortal(this.headerComponent||U),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView},e.prototype.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe(),this.stateChanges.complete()},e.prototype.ngOnChanges=function(e){var t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){var a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()},e.prototype.focusActiveCell=function(){this._getCurrentViewComponent()._focusActiveCell(!1)},e.prototype.updateTodaysDate=function(){var e=this.currentView;("month"===e?this.monthView:"year"===e?this.yearView:this.multiYearView)._init()},e.prototype._dateSelected=function(e){var t=e.value;(this.selected instanceof V||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)},e.prototype._yearSelectedInMultiYearView=function(e){this.yearSelected.emit(e)},e.prototype._monthSelectedInYearView=function(e){this.monthSelected.emit(e)},e.prototype._goToDateInView=function(e,t){this.activeDate=e,this.currentView=t},e.prototype._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView},e}();$.decorators=[{type:i.Component,args:[{selector:"mat-calendar",template:'<ng-template [cdkPortalOutlet]="_calendarHeaderPortal"></ng-template>\n\n<div class="mat-calendar-content" [ngSwitch]="currentView" cdkMonitorSubtreeFocus tabindex="-1">\n <mat-month-view\n *ngSwitchCase="\'month\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n (_userSelection)="_dateSelected($event)">\n </mat-month-view>\n\n <mat-year-view\n *ngSwitchCase="\'year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (monthSelected)="_monthSelectedInYearView($event)"\n (selectedChange)="_goToDateInView($event, \'month\')">\n </mat-year-view>\n\n <mat-multi-year-view\n *ngSwitchCase="\'multi-year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (yearSelected)="_yearSelectedInMultiYearView($event)"\n (selectedChange)="_goToDateInView($event, \'year\')">\n </mat-multi-year-view>\n</div>\n',host:{class:"mat-calendar"},exportAs:"matCalendar",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,providers:[F],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n']}]}],$.ctorParameters=function(){return[{type:v},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]},{type:i.ChangeDetectorRef}]},$.propDecorators={headerComponent:[{type:i.Input}],startAt:[{type:i.Input}],startView:[{type:i.Input}],selected:[{type:i.Input}],minDate:[{type:i.Input}],maxDate:[{type:i.Input}],dateFilter:[{type:i.Input}],dateClass:[{type:i.Input}],comparisonStart:[{type:i.Input}],comparisonEnd:[{type:i.Input}],selectedChange:[{type:i.Output}],yearSelected:[{type:i.Output}],monthSelected:[{type:i.Output}],viewChanged:[{type:i.Output}],_userSelection:[{type:i.Output}],monthView:[{type:i.ViewChild,args:[z]}],yearView:[{type:i.ViewChild,args:[K]}],multiYearView:[{type:i.ViewChild,args:[W]}]};
|
|
75
|
+
var U=0,$=function(){function e(e,t,a,n,r){this._intl=e,this.calendar=t,this._dateAdapter=a,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+U++,this.calendar.stateChanges.subscribe((function(){return r.markForCheck()}))}return Object.defineProperty(e.prototype,"periodButtonText",{get:function(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);var e=this._dateAdapter.getYear(this.calendar.activeDate)-G(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+24-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(a,n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]},enumerable:!1,configurable:!0}),e.prototype.currentPeriodClicked=function(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"},e.prototype.previousClicked=function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)},e.prototype.nextClicked=function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)},e.prototype.previousEnabled=function(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)},e.prototype.nextEnabled=function(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)},e.prototype._isSameView=function(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):H(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)},e}();$.decorators=[{type:i.Component,args:[{selector:"mat-calendar-header",template:'<div class="mat-calendar-header">\n <div class="mat-calendar-controls">\n <button mat-button type="button" class="mat-calendar-period-button"\n (click)="currentPeriodClicked()" [attr.aria-label]="periodButtonLabel"\n [attr.aria-describedby]="_buttonDescriptionId"\n cdkAriaLive="polite">\n <span [attr.id]="_buttonDescriptionId">{{periodButtonText}}</span>\n <div class="mat-calendar-arrow"\n [class.mat-calendar-invert]="calendar.currentView !== \'month\'"></div>\n </button>\n\n <div class="mat-calendar-spacer"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type="button" class="mat-calendar-previous-button"\n [disabled]="!previousEnabled()" (click)="previousClicked()"\n [attr.aria-label]="prevButtonLabel">\n </button>\n\n <button mat-icon-button type="button" class="mat-calendar-next-button"\n [disabled]="!nextEnabled()" (click)="nextClicked()"\n [attr.aria-label]="nextButtonLabel">\n </button>\n </div>\n</div>\n',exportAs:"matCalendarHeader",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}]}],$.ctorParameters=function(){return[{type:v},{type:X,decorators:[{type:i.Inject,args:[i.forwardRef((function(){return X}))]}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]},{type:i.ChangeDetectorRef}]};var X=function(){function e(e,t,a,n){var r=this;this._dateAdapter=t,this._dateFormats=a,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.EventEmitter,this.yearSelected=new i.EventEmitter,this.monthSelected=new i.EventEmitter,this.viewChanged=new i.EventEmitter(!0),this._userSelection=new i.EventEmitter,this.stateChanges=new c.Subject,this._intlChanges=e.changes.subscribe((function(){n.markForCheck(),r.stateChanges.next()}))}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof V?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._clampedActiveDate},set:function(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentView",{get:function(){return this._currentView},set:function(e){var t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._calendarHeaderPortal=new n.ComponentPortal(this.headerComponent||$),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView},e.prototype.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe(),this.stateChanges.complete()},e.prototype.ngOnChanges=function(e){var t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){var a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()},e.prototype.focusActiveCell=function(){this._getCurrentViewComponent()._focusActiveCell(!1)},e.prototype.updateTodaysDate=function(){var e=this.currentView;("month"===e?this.monthView:"year"===e?this.yearView:this.multiYearView)._init()},e.prototype._dateSelected=function(e){var t=e.value;(this.selected instanceof V||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)},e.prototype._yearSelectedInMultiYearView=function(e){this.yearSelected.emit(e)},e.prototype._monthSelectedInYearView=function(e){this.monthSelected.emit(e)},e.prototype._goToDateInView=function(e,t){this.activeDate=e,this.currentView=t},e.prototype._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView},e}();X.decorators=[{type:i.Component,args:[{selector:"mat-calendar",template:'<ng-template [cdkPortalOutlet]="_calendarHeaderPortal"></ng-template>\n\n<div class="mat-calendar-content" [ngSwitch]="currentView" cdkMonitorSubtreeFocus tabindex="-1">\n <mat-month-view\n *ngSwitchCase="\'month\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n (_userSelection)="_dateSelected($event)">\n </mat-month-view>\n\n <mat-year-view\n *ngSwitchCase="\'year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (monthSelected)="_monthSelectedInYearView($event)"\n (selectedChange)="_goToDateInView($event, \'month\')">\n </mat-year-view>\n\n <mat-multi-year-view\n *ngSwitchCase="\'multi-year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (yearSelected)="_yearSelectedInMultiYearView($event)"\n (selectedChange)="_goToDateInView($event, \'year\')">\n </mat-multi-year-view>\n</div>\n',host:{class:"mat-calendar"},exportAs:"matCalendar",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,providers:[F],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n']}]}],X.ctorParameters=function(){return[{type:v},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]},{type:i.ChangeDetectorRef}]},X.propDecorators={headerComponent:[{type:i.Input}],startAt:[{type:i.Input}],startView:[{type:i.Input}],selected:[{type:i.Input}],minDate:[{type:i.Input}],maxDate:[{type:i.Input}],dateFilter:[{type:i.Input}],dateClass:[{type:i.Input}],comparisonStart:[{type:i.Input}],comparisonEnd:[{type:i.Input}],selectedChange:[{type:i.Output}],yearSelected:[{type:i.Output}],monthSelected:[{type:i.Output}],viewChanged:[{type:i.Output}],_userSelection:[{type:i.Output}],monthView:[{type:i.ViewChild,args:[z]}],yearView:[{type:i.ViewChild,args:[K]}],multiYearView:[{type:i.ViewChild,args:[W]}]};
|
|
76
76
|
/**
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -80,7 +80,7 @@ var U=function(){function e(e,t,a,n,r){this._intl=e,this.calendar=t,this._dateAd
|
|
|
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 X={transformPanel:m.trigger("transformPanel",[m.state("void",m.style({opacity:0,transform:"scale(1, 0.8)"})),m.transition("void => enter",m.animate("120ms cubic-bezier(0, 0, 0.2, 1)",m.style({opacity:1,transform:"scale(1, 1)"}))),m.transition("* => void",m.animate("100ms linear",m.style({opacity:0})))]),fadeInCalendar:m.trigger("fadeInCalendar",[m.state("void",m.style({opacity:0})),m.state("enter",m.style({opacity:1})),m.transition("void => *",m.animate("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Z=0,J=new i.InjectionToken("mat-datepicker-scroll-strategy");function Q(e){return function(){return e.scrollStrategies.reposition()}}var ee={provide:J,deps:[a.Overlay],useFactory:Q},te=function(e){function t(t,a,n,r,i,o){var s=e.call(this,t)||this;return s._changeDetectorRef=a,s._model=n,s._dateAdapter=r,s._rangeSelectionStrategy=i,s._subscriptions=new c.Subscription,s._animationState="enter",s._animationDone=new c.Subject,s._closeButtonText=(null==o?void 0:o.closeCalendarLabel)||"Close calendar",s}return O(t,e),t.prototype.ngAfterViewInit=function(){var e=this;this._subscriptions.add(this.datepicker._stateChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()},t.prototype.ngOnDestroy=function(){this._subscriptions.unsubscribe(),this._animationDone.complete()},t.prototype._handleUserSelection=function(e){var t=this._model.selection,a=e.value,n=t instanceof V;if(n&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(a,t,e.event);this._model.updateSelection(r,this)}else!a||!n&&this._dateAdapter.sameDate(a,t)||this._model.add(a);this._model&&!this._model.isComplete()||this.datepicker.close()},t.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef.markForCheck()},t.prototype._getSelected=function(){return this._model.selection},t}(l.mixinColor((function ae(e){this._elementRef=e})));te.decorators=[{type:i.Component,args:[{selector:"mat-datepicker-content",template:'<div cdkTrapFocus>\n <mat-calendar\n [id]="datepicker.id"\n [ngClass]="datepicker.panelClass"\n [startAt]="datepicker.startAt"\n [startView]="datepicker.startView"\n [minDate]="datepicker._getMinDate()"\n [maxDate]="datepicker._getMaxDate()"\n [dateFilter]="datepicker._getDateFilter()"\n [headerComponent]="datepicker.calendarHeaderComponent"\n [selected]="_getSelected()"\n [dateClass]="datepicker.dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n [@fadeInCalendar]="\'enter\'"\n (yearSelected)="datepicker._selectYear($event)"\n (monthSelected)="datepicker._selectMonth($event)"\n (viewChanged)="datepicker._viewChanged($event)"\n (_userSelection)="_handleUserSelection($event)"></mat-calendar>\n\n \x3c!-- Invisible close button for screen reader users. --\x3e\n <button\n type="button"\n mat-raised-button\n color="primary"\n class="mat-datepicker-close-button"\n [class.cdk-visually-hidden]="!_closeButtonFocused"\n (focus)="_closeButtonFocused = true"\n (blur)="_closeButtonFocused = false"\n (click)="datepicker.close()">{{ _closeButtonText }}</button>\n</div>\n',host:{class:"mat-datepicker-content","[@transformPanel]":"_animationState","(@transformPanel.done)":"_animationDone.next()","[class.mat-datepicker-content-touch]":"datepicker.touchUi"},animations:[X.transformPanel,X.fadeInCalendar],exportAs:"matDatepickerContent",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,inputs:["color"],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"]}]}],te.ctorParameters=function(){return[{type:i.ElementRef},{type:i.ChangeDetectorRef},{type:S},{type:l.DateAdapter},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[N]}]},{type:v}]},te.propDecorators={_calendar:[{type:i.ViewChild,args:[$]}]};var ne=function(){function e(e,t,a,n,r,o,s,d,l){this._dialog=e,this._overlay=t,this._ngZone=a,this._viewContainerRef=n,this._dateAdapter=o,this._dir=s,this._document=d,this._model=l,this._inputStateChanges=c.Subscription.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new i.EventEmitter,this.monthSelected=new i.EventEmitter,this.viewChanged=new i.EventEmitter(!0),this.openedStream=new i.EventEmitter,this.closedStream=new i.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+Z++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new c.Subject,this._scrollStrategy=r}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchUi",{get:function(){return this._touchUi},set:function(e){this._touchUi=_.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=_.coerceBooleanProperty(e);t!==this._disabled&&(this._disabled=t,this._stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panelClass",{get:function(){return this._panelClass},set:function(e){this._panelClass=_.coerceStringArray(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){_.coerceBooleanProperty(e)?this.open():this.close()},enumerable:!1,configurable:!0}),e.prototype._getMinDate=function(){return this._datepickerInput&&this._datepickerInput.min},e.prototype._getMaxDate=function(){return this._datepickerInput&&this._datepickerInput.max},e.prototype._getDateFilter=function(){return this._datepickerInput&&this._datepickerInput.dateFilter},e.prototype.ngOnChanges=function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()},e.prototype.select=function(e){this._model.add(e)},e.prototype._selectYear=function(e){this.yearSelected.emit(e)},e.prototype._selectMonth=function(e){this.monthSelected.emit(e)},e.prototype._viewChanged=function(e){this.viewChanged.emit(e)},e.prototype._registerInput=function(e){var t=this;return this._inputStateChanges.unsubscribe(),this._datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe((function(){return t._stateChanges.next(void 0)})),this._model},e.prototype.open=function(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())},e.prototype.close=function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(h.take(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var a=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(a)):a()}},e.prototype._openAsDialog=function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(te,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._forwardContentValues(this._dialogRef.componentInstance)},e.prototype._openAsPopup=function(){var e=this,t=new n.ComponentPortal(te,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(h.take(1)).subscribe((function(){e._popupRef.updatePosition()}))},e.prototype._forwardContentValues=function(e){e.datepicker=this,e.color=this.color},e.prototype._createPopup=function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new a.OverlayConfig({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),c.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(h.filter((function(t){return t.keyCode===p.ESCAPE&&!p.hasModifierKey(t)||e._datepickerInput&&p.hasModifierKey(t,"altKey")&&t.keyCode===p.UP_ARROW})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))},e.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},e.prototype._setConnectedPositions=function(e){var t="end"===this.xPosition?"end":"start",a="start"===t?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return e.withPositions([{originX:t,originY:r,overlayX:t,overlayY:n},{originX:t,originY:n,overlayX:t,overlayY:r},{originX:a,originY:r,overlayX:a,overlayY:n},{originX:a,originY:n,overlayX:a,overlayY:r}])},e}();ne.decorators=[{type:i.Directive}],ne.ctorParameters=function(){return[{type:s.MatDialog},{type:a.Overlay},{type:i.NgZone},{type:i.ViewContainerRef},{type:void 0,decorators:[{type:i.Inject,args:[J]}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:u.Directionality,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[r.DOCUMENT]}]},{type:S}]},ne.propDecorators={calendarHeaderComponent:[{type:i.Input}],startAt:[{type:i.Input}],startView:[{type:i.Input}],color:[{type:i.Input}],touchUi:[{type:i.Input}],disabled:[{type:i.Input}],xPosition:[{type:i.Input}],yPosition:[{type:i.Input}],yearSelected:[{type:i.Output}],monthSelected:[{type:i.Output}],viewChanged:[{type:i.Output}],dateClass:[{type:i.Input}],openedStream:[{type:i.Output,args:["opened"]}],closedStream:[{type:i.Output,args:["closed"]}],panelClass:[{type:i.Input}],opened:[{type:i.Input}]};var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t}(ne);re.decorators=[{type:i.Component,args:[{selector:"mat-datepicker",template:"",exportAs:"matDatepicker",changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[F]}]}];var ie=function ie(e,t){this.target=e,this.targetElement=t,this.value=this.target.value},oe=function(){function e(e,t,a){var n=this;this._elementRef=e,this._dateAdapter=t,this._dateFormats=a,this.dateChange=new i.EventEmitter,this.dateInput=new i.EventEmitter,this._valueChange=new i.EventEmitter,this.stateChanges=new c.Subject,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=c.Subscription.EMPTY,this._localeSubscription=c.Subscription.EMPTY,this._parseValidator=function(){return n._lastValueValid?null:{matDatepickerParse:{text:n._elementRef.nativeElement.value}}},this._filterValidator=function(e){var t=n._dateAdapter.getValidDateOrNull(n._dateAdapter.deserialize(e.value));return!t||n._matchesFilter(t)?null:{matDatepickerFilter:!0}},this._minValidator=function(e){var t=n._dateAdapter.getValidDateOrNull(n._dateAdapter.deserialize(e.value)),a=n._getMinDate();return!a||!t||n._dateAdapter.compareDate(a,t)<=0?null:{matDatepickerMin:{min:a,actual:t}}},this._maxValidator=function(e){var t=n._dateAdapter.getValidDateOrNull(n._dateAdapter.deserialize(e.value)),a=n._getMaxDate();return!a||!t||n._dateAdapter.compareDate(a,t)>=0?null:{matDatepickerMax:{max:a,actual:t}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe((function(){n.value=n.value}))}return Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e);var t=this.value;this._assignValue(e),this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled||this._parentDisabled()},set:function(e){var t=_.coerceBooleanProperty(e),a=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&a.blur&&a.blur()},enumerable:!1,configurable:!0}),e.prototype._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]},e.prototype._registerModel=function(e){var t=this;this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((function(e){if(e.source!==t){var a=t._getValueFromModel(e.selection);t._lastValueValid=t._isValidValue(a),t._cvaOnChange(a),t._onTouched(),t._formatValue(a),t._canEmitChangeEvent(e)&&(t.dateInput.emit(new ie(t,t._elementRef.nativeElement)),t.dateChange.emit(new ie(t,t._elementRef.nativeElement))),t._outsideValueChanged&&t._outsideValueChanged()}}))},e.prototype.ngAfterViewInit=function(){this._isInitialized=!0},e.prototype.ngOnChanges=function(e){se(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()},e.prototype.registerOnValidatorChange=function(e){this._validatorOnChange=e},e.prototype.validate=function(e){return this._validator?this._validator(e):null},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this._cvaOnChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype._onKeydown=function(e){e.altKey&&e.keyCode===p.DOWN_ARROW&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())},e.prototype._onInput=function(e){var t=this._lastValueValid,a=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(a),a=this._dateAdapter.getValidDateOrNull(a),this._dateAdapter.sameDate(a,this.value)?(e&&!this.value&&this._cvaOnChange(a),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(a),this._cvaOnChange(a),this._valueChange.emit(a),this.dateInput.emit(new ie(this,this._elementRef.nativeElement)))},e.prototype._onChange=function(){this.dateChange.emit(new ie(this,this._elementRef.nativeElement))},e.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},e.prototype._formatValue=function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""},e.prototype._assignValue=function(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e},e.prototype._isValidValue=function(e){return!e||this._dateAdapter.isValid(e)},e.prototype._parentDisabled=function(){return!1},e.prototype._matchesFilter=function(e){var t=this._getDateFilter();return!t||t(e)},e}();function se(e,t){var a,n,r=Object.keys(e);try{for(var i=function o(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],n=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),s=i.next();!s.done;s=i.next()){var d=e[s.value],l=d.previousValue,c=d.currentValue;if(!t.isDateInstance(l)||!t.isDateInstance(c))return!0;if(!t.sameDate(l,c))return!0}}catch(e){a={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return!1}oe.decorators=[{type:i.Directive}],oe.ctorParameters=function(){return[{type:i.ElementRef},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]},oe.propDecorators={value:[{type:i.Input}],disabled:[{type:i.Input}],dateChange:[{type:i.Output}],dateInput:[{type:i.Output}]};var de,le={provide:g.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return pe})),multi:!0},ce={provide:g.NG_VALIDATORS,useExisting:i.forwardRef((function(){return pe})),multi:!0},pe=function(e){function t(t,a,n,r){var i=e.call(this,t,a,n)||this;return i._formField=r,i._validator=g.Validators.compose(e.prototype._getValidators.call(i)),i}return O(t,e),Object.defineProperty(t.prototype,"matDatepicker",{set:function(e){e&&(this._datepicker=e,this._registerModel(e._registerInput(this)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){var t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()},enumerable:!1,configurable:!0}),t.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},t.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},t.prototype.getStartValue=function(){return this.value},t.prototype._openPopup=function(){this._datepicker&&this._datepicker.open()},t.prototype._getValueFromModel=function(e){return e},t.prototype._assignValueToModel=function(e){this._model&&this._model.updateSelection(e,this)},t.prototype._getMinDate=function(){return this._min},t.prototype._getMaxDate=function(){return this._max},t.prototype._getDateFilter=function(){return this._dateFilter},t.prototype._canEmitChangeEvent=function(){return!0},t}(oe);pe.decorators=[{type:i.Directive,args:[{selector:"input[matDatepicker]",providers:[le,ce,{provide:f.MAT_INPUT_VALUE_ACCESSOR,useExisting:pe}],host:{class:"mat-datepicker-input","[attr.aria-haspopup]":'_datepicker ? "dialog" : null',"[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[attr.data-mat-calendar]":"_datepicker ? _datepicker.id : null","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onBlur()","(keydown)":"_onKeydown($event)"},exportAs:"matDatepickerInput"}]}],pe.ctorParameters=function(){return[{type:i.ElementRef},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]},{type:y.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[y.MAT_FORM_FIELD]}]}]},pe.propDecorators={matDatepicker:[{type:i.Input}],min:[{type:i.Input}],max:[{type:i.Input}],dateFilter:[{type:i.Input,args:["matDatepickerFilter"]}]},(de=function de(){}).decorators=[{type:i.Directive,args:[{selector:"[matDatepickerToggleIcon]"}]}];var ue=function(){function e(e,t,a){this._intl=e,this._changeDetectorRef=t,this._stateChanges=c.Subscription.EMPTY;var n=Number(a);this.tabIndex=n||0===n?n:null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=_.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){e.datepicker&&this._watchStateChanges()},e.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},e.prototype.ngAfterContentInit=function(){this._watchStateChanges()},e.prototype._open=function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())},e.prototype._watchStateChanges=function(){var e=this,t=this.datepicker?this.datepicker._stateChanges:c.of(),a=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:c.of(),n=this.datepicker?c.merge(this.datepicker.openedStream,this.datepicker.closedStream):c.of();this._stateChanges.unsubscribe(),this._stateChanges=c.merge(this._intl.changes,t,a,n).subscribe((function(){return e._changeDetectorRef.markForCheck()}))},e}();ue.decorators=[{type:i.Component,args:[{selector:"mat-datepicker-toggle",template:'<button\n #button\n mat-icon-button\n type="button"\n [attr.aria-haspopup]="datepicker ? \'dialog\' : null"\n [attr.aria-label]="_intl.openCalendarLabel"\n [attr.tabindex]="disabled ? -1 : tabIndex"\n [disabled]="disabled"\n [disableRipple]="disableRipple"\n (click)="_open($event)">\n\n <svg\n *ngIf="!_customIcon"\n class="mat-datepicker-toggle-default-icon"\n viewBox="0 0 24 24"\n width="24px"\n height="24px"\n fill="currentColor"\n focusable="false">\n <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>\n </svg>\n\n <ng-content select="[matDatepickerToggleIcon]"></ng-content>\n</button>\n',host:{class:"mat-datepicker-toggle","[attr.tabindex]":"disabled ? null : -1","[class.mat-datepicker-toggle-active]":"datepicker && datepicker.opened","[class.mat-accent]":'datepicker && datepicker.color === "accent"',"[class.mat-warn]":'datepicker && datepicker.color === "warn"',"[attr.data-mat-calendar]":"datepicker ? datepicker.id : null","(focus)":"_button.focus()"},exportAs:"matDatepickerToggle",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"]}]}],ue.ctorParameters=function(){return[{type:v},{type:i.ChangeDetectorRef},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]}]},ue.propDecorators={datepicker:[{type:i.Input,args:["for"]}],tabIndex:[{type:i.Input}],disabled:[{type:i.Input}],disableRipple:[{type:i.Input}],_customIcon:[{type:i.ContentChild,args:[de]}],_button:[{type:i.ViewChild,args:["button"]}]};var he=new i.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),_e=function(e){function t(t,a,n,r,i,o,s,d){var l=e.call(this,a,s,d)||this;return l._rangeInput=t,l._defaultErrorStateMatcher=n,l._injector=r,l._parentForm=i,l._parentFormGroup=o,l._outsideValueChanged=function(){l._validatorOnChange()},l}return O(t,e),t.prototype.ngOnInit=function(){var e=this._injector.get(g.NgControl,null,i.InjectFlags.Self);e&&(this.ngControl=e)},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},t.prototype.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length},t.prototype._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._onInput=function(t){e.prototype._onInput.call(this,t),this._rangeInput._handleChildValueChange()},t.prototype._openPopup=function(){this._rangeInput._openDatepicker()},t.prototype._getMinDate=function(){return this._rangeInput.min},t.prototype._getMaxDate=function(){return this._rangeInput.max},t.prototype._getDateFilter=function(){return this._rangeInput.dateFilter},t.prototype._parentDisabled=function(){return this._rangeInput._groupDisabled},t}(oe);_e.decorators=[{type:i.Directive}],_e.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[he]}]},{type:i.ElementRef},{type:l.ErrorStateMatcher},{type:i.Injector},{type:g.NgForm,decorators:[{type:i.Optional}]},{type:g.FormGroupDirective,decorators:[{type:i.Optional}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]};var me=l.mixinErrorState(_e),ge=function(e){function t(t,a,n,r,i,o,s,d){var l=e.call(this,t,a,n,r,i,o,s,d)||this;return l._startValidator=function(e){var t=l._dateAdapter.getValidDateOrNull(l._dateAdapter.deserialize(e.value)),a=l._model?l._model.selection.end:null;return!t||!a||l._dateAdapter.compareDate(t,a)<=0?null:{matStartDateInvalid:{end:a,actual:t}}},l._validator=g.Validators.compose(x(e.prototype._getValidators.call(l),[l._startValidator])),l._canEmitChangeEvent=function(e){return e.source!==l._rangeInput._endInput},l}return O(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},t.prototype._getValueFromModel=function(e){return e.start},t.prototype._assignValueToModel=function(e){if(this._model){var t=new V(e,this._model.selection.end);this._model.updateSelection(t,this),this._cvaOnChange(e)}},t.prototype._formatValue=function(t){e.prototype._formatValue.call(this,t),this._rangeInput._handleChildValueChange()},t.prototype.getMirrorValue=function(){var e=this._elementRef.nativeElement,t=e.value;return t.length>0?t:e.placeholder},t}(me);ge.decorators=[{type:i.Directive,args:[{selector:"input[matStartDate]",host:{class:"mat-start-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.id]":"_rangeInput.id","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:g.NG_VALUE_ACCESSOR,useExisting:ge,multi:!0},{provide:g.NG_VALIDATORS,useExisting:ge,multi:!0}],outputs:["dateChange","dateInput"]}]}],ge.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[he]}]},{type:i.ElementRef},{type:l.ErrorStateMatcher},{type:i.Injector},{type:g.NgForm,decorators:[{type:i.Optional}]},{type:g.FormGroupDirective,decorators:[{type:i.Optional}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]};var ye=function(e){function t(t,a,n,r,i,o,s,d){var l=e.call(this,t,a,n,r,i,o,s,d)||this;return l._endValidator=function(e){var t=l._dateAdapter.getValidDateOrNull(l._dateAdapter.deserialize(e.value)),a=l._model?l._model.selection.start:null;return!t||!a||l._dateAdapter.compareDate(t,a)>=0?null:{matEndDateInvalid:{start:a,actual:t}}},l._validator=g.Validators.compose(x(e.prototype._getValidators.call(l),[l._endValidator])),l._canEmitChangeEvent=function(e){return e.source!==l._rangeInput._startInput},l}return O(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},t.prototype._getValueFromModel=function(e){return e.end},t.prototype._assignValueToModel=function(e){if(this._model){var t=new V(this._model.selection.start,e);this._model.updateSelection(t,this),this._cvaOnChange(e)}},t.prototype._onKeydown=function(t){t.keyCode!==p.BACKSPACE||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),e.prototype._onKeydown.call(this,t)},t}(me);ye.decorators=[{type:i.Directive,args:[{selector:"input[matEndDate]",host:{class:"mat-end-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:g.NG_VALUE_ACCESSOR,useExisting:ye,multi:!0},{provide:g.NG_VALIDATORS,useExisting:ye,multi:!0}],outputs:["dateChange","dateInput"]}]}],ye.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[he]}]},{type:i.ElementRef},{type:l.ErrorStateMatcher},{type:i.Injector},{type:g.NgForm,decorators:[{type:i.Optional}]},{type:g.FormGroupDirective,decorators:[{type:i.Optional}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]};
|
|
83
|
+
var Z={transformPanel:m.trigger("transformPanel",[m.state("void",m.style({opacity:0,transform:"scale(1, 0.8)"})),m.transition("void => enter",m.animate("120ms cubic-bezier(0, 0, 0.2, 1)",m.style({opacity:1,transform:"scale(1, 1)"}))),m.transition("* => void",m.animate("100ms linear",m.style({opacity:0})))]),fadeInCalendar:m.trigger("fadeInCalendar",[m.state("void",m.style({opacity:0})),m.state("enter",m.style({opacity:1})),m.transition("void => *",m.animate("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},J=0,Q=new i.InjectionToken("mat-datepicker-scroll-strategy");function ee(e){return function(){return e.scrollStrategies.reposition()}}var te={provide:Q,deps:[a.Overlay],useFactory:ee},ae=function(e){function t(t,a,n,r,i,o){var s=e.call(this,t)||this;return s._changeDetectorRef=a,s._model=n,s._dateAdapter=r,s._rangeSelectionStrategy=i,s._subscriptions=new c.Subscription,s._animationState="enter",s._animationDone=new c.Subject,s._closeButtonText=(null==o?void 0:o.closeCalendarLabel)||"Close calendar",s}return O(t,e),t.prototype.ngAfterViewInit=function(){var e=this;this._subscriptions.add(this.datepicker._stateChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()},t.prototype.ngOnDestroy=function(){this._subscriptions.unsubscribe(),this._animationDone.complete()},t.prototype._handleUserSelection=function(e){var t=this._model.selection,a=e.value,n=t instanceof V;if(n&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(a,t,e.event);this._model.updateSelection(r,this)}else!a||!n&&this._dateAdapter.sameDate(a,t)||this._model.add(a);this._model&&!this._model.isComplete()||this.datepicker.close()},t.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef.markForCheck()},t.prototype._getSelected=function(){return this._model.selection},t}(l.mixinColor((function ne(e){this._elementRef=e})));ae.decorators=[{type:i.Component,args:[{selector:"mat-datepicker-content",template:'<div cdkTrapFocus>\n <mat-calendar\n [id]="datepicker.id"\n [ngClass]="datepicker.panelClass"\n [startAt]="datepicker.startAt"\n [startView]="datepicker.startView"\n [minDate]="datepicker._getMinDate()"\n [maxDate]="datepicker._getMaxDate()"\n [dateFilter]="datepicker._getDateFilter()"\n [headerComponent]="datepicker.calendarHeaderComponent"\n [selected]="_getSelected()"\n [dateClass]="datepicker.dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n [@fadeInCalendar]="\'enter\'"\n (yearSelected)="datepicker._selectYear($event)"\n (monthSelected)="datepicker._selectMonth($event)"\n (viewChanged)="datepicker._viewChanged($event)"\n (_userSelection)="_handleUserSelection($event)"></mat-calendar>\n\n \x3c!-- Invisible close button for screen reader users. --\x3e\n <button\n type="button"\n mat-raised-button\n color="primary"\n class="mat-datepicker-close-button"\n [class.cdk-visually-hidden]="!_closeButtonFocused"\n (focus)="_closeButtonFocused = true"\n (blur)="_closeButtonFocused = false"\n (click)="datepicker.close()">{{ _closeButtonText }}</button>\n</div>\n',host:{class:"mat-datepicker-content","[@transformPanel]":"_animationState","(@transformPanel.done)":"_animationDone.next()","[class.mat-datepicker-content-touch]":"datepicker.touchUi"},animations:[Z.transformPanel,Z.fadeInCalendar],exportAs:"matDatepickerContent",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,inputs:["color"],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"]}]}],ae.ctorParameters=function(){return[{type:i.ElementRef},{type:i.ChangeDetectorRef},{type:S},{type:l.DateAdapter},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[N]}]},{type:v}]},ae.propDecorators={_calendar:[{type:i.ViewChild,args:[X]}]};var re=function(){function e(e,t,a,n,r,o,s,d,l){this._dialog=e,this._overlay=t,this._ngZone=a,this._viewContainerRef=n,this._dateAdapter=o,this._dir=s,this._document=d,this._model=l,this._inputStateChanges=c.Subscription.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new i.EventEmitter,this.monthSelected=new i.EventEmitter,this.viewChanged=new i.EventEmitter(!0),this.openedStream=new i.EventEmitter,this.closedStream=new i.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+J++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new c.Subject,this._scrollStrategy=r}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchUi",{get:function(){return this._touchUi},set:function(e){this._touchUi=_.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=_.coerceBooleanProperty(e);t!==this._disabled&&(this._disabled=t,this._stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panelClass",{get:function(){return this._panelClass},set:function(e){this._panelClass=_.coerceStringArray(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){_.coerceBooleanProperty(e)?this.open():this.close()},enumerable:!1,configurable:!0}),e.prototype._getMinDate=function(){return this._datepickerInput&&this._datepickerInput.min},e.prototype._getMaxDate=function(){return this._datepickerInput&&this._datepickerInput.max},e.prototype._getDateFilter=function(){return this._datepickerInput&&this._datepickerInput.dateFilter},e.prototype.ngOnChanges=function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()},e.prototype.select=function(e){this._model.add(e)},e.prototype._selectYear=function(e){this.yearSelected.emit(e)},e.prototype._selectMonth=function(e){this.monthSelected.emit(e)},e.prototype._viewChanged=function(e){this.viewChanged.emit(e)},e.prototype._registerInput=function(e){var t=this;return this._inputStateChanges.unsubscribe(),this._datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe((function(){return t._stateChanges.next(void 0)})),this._model},e.prototype.open=function(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())},e.prototype.close=function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(h.take(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var a=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(a)):a()}},e.prototype._openAsDialog=function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(ae,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._forwardContentValues(this._dialogRef.componentInstance)},e.prototype._openAsPopup=function(){var e=this,t=new n.ComponentPortal(ae,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(h.take(1)).subscribe((function(){e._popupRef.updatePosition()}))},e.prototype._forwardContentValues=function(e){e.datepicker=this,e.color=this.color},e.prototype._createPopup=function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new a.OverlayConfig({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),c.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(h.filter((function(t){return t.keyCode===p.ESCAPE&&!p.hasModifierKey(t)||e._datepickerInput&&p.hasModifierKey(t,"altKey")&&t.keyCode===p.UP_ARROW})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))},e.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},e.prototype._setConnectedPositions=function(e){var t="end"===this.xPosition?"end":"start",a="start"===t?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return e.withPositions([{originX:t,originY:r,overlayX:t,overlayY:n},{originX:t,originY:n,overlayX:t,overlayY:r},{originX:a,originY:r,overlayX:a,overlayY:n},{originX:a,originY:n,overlayX:a,overlayY:r}])},e}();re.decorators=[{type:i.Directive}],re.ctorParameters=function(){return[{type:s.MatDialog},{type:a.Overlay},{type:i.NgZone},{type:i.ViewContainerRef},{type:void 0,decorators:[{type:i.Inject,args:[Q]}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:u.Directionality,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[r.DOCUMENT]}]},{type:S}]},re.propDecorators={calendarHeaderComponent:[{type:i.Input}],startAt:[{type:i.Input}],startView:[{type:i.Input}],color:[{type:i.Input}],touchUi:[{type:i.Input}],disabled:[{type:i.Input}],xPosition:[{type:i.Input}],yPosition:[{type:i.Input}],yearSelected:[{type:i.Output}],monthSelected:[{type:i.Output}],viewChanged:[{type:i.Output}],dateClass:[{type:i.Input}],openedStream:[{type:i.Output,args:["opened"]}],closedStream:[{type:i.Output,args:["closed"]}],panelClass:[{type:i.Input}],opened:[{type:i.Input}]};var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t}(re);ie.decorators=[{type:i.Component,args:[{selector:"mat-datepicker",template:"",exportAs:"matDatepicker",changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[F]}]}];var oe=function oe(e,t){this.target=e,this.targetElement=t,this.value=this.target.value},se=function(){function e(e,t,a){var n=this;this._elementRef=e,this._dateAdapter=t,this._dateFormats=a,this.dateChange=new i.EventEmitter,this.dateInput=new i.EventEmitter,this._valueChange=new i.EventEmitter,this.stateChanges=new c.Subject,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=c.Subscription.EMPTY,this._localeSubscription=c.Subscription.EMPTY,this._parseValidator=function(){return n._lastValueValid?null:{matDatepickerParse:{text:n._elementRef.nativeElement.value}}},this._filterValidator=function(e){var t=n._dateAdapter.getValidDateOrNull(n._dateAdapter.deserialize(e.value));return!t||n._matchesFilter(t)?null:{matDatepickerFilter:!0}},this._minValidator=function(e){var t=n._dateAdapter.getValidDateOrNull(n._dateAdapter.deserialize(e.value)),a=n._getMinDate();return!a||!t||n._dateAdapter.compareDate(a,t)<=0?null:{matDatepickerMin:{min:a,actual:t}}},this._maxValidator=function(e){var t=n._dateAdapter.getValidDateOrNull(n._dateAdapter.deserialize(e.value)),a=n._getMaxDate();return!a||!t||n._dateAdapter.compareDate(a,t)>=0?null:{matDatepickerMax:{max:a,actual:t}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe((function(){n.value=n.value}))}return Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e);var t=this.value;this._assignValue(e),this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled||this._parentDisabled()},set:function(e){var t=_.coerceBooleanProperty(e),a=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&a.blur&&a.blur()},enumerable:!1,configurable:!0}),e.prototype._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]},e.prototype._registerModel=function(e){var t=this;this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((function(e){if(e.source!==t){var a=t._getValueFromModel(e.selection);t._lastValueValid=t._isValidValue(a),t._cvaOnChange(a),t._onTouched(),t._formatValue(a),t._canEmitChangeEvent(e)&&(t.dateInput.emit(new oe(t,t._elementRef.nativeElement)),t.dateChange.emit(new oe(t,t._elementRef.nativeElement))),t._outsideValueChanged&&t._outsideValueChanged()}}))},e.prototype.ngAfterViewInit=function(){this._isInitialized=!0},e.prototype.ngOnChanges=function(e){de(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()},e.prototype.registerOnValidatorChange=function(e){this._validatorOnChange=e},e.prototype.validate=function(e){return this._validator?this._validator(e):null},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this._cvaOnChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype._onKeydown=function(e){e.altKey&&e.keyCode===p.DOWN_ARROW&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())},e.prototype._onInput=function(e){var t=this._lastValueValid,a=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(a),a=this._dateAdapter.getValidDateOrNull(a),this._dateAdapter.sameDate(a,this.value)?(e&&!this.value&&this._cvaOnChange(a),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(a),this._cvaOnChange(a),this._valueChange.emit(a),this.dateInput.emit(new oe(this,this._elementRef.nativeElement)))},e.prototype._onChange=function(){this.dateChange.emit(new oe(this,this._elementRef.nativeElement))},e.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},e.prototype._formatValue=function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""},e.prototype._assignValue=function(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e},e.prototype._isValidValue=function(e){return!e||this._dateAdapter.isValid(e)},e.prototype._parentDisabled=function(){return!1},e.prototype._matchesFilter=function(e){var t=this._getDateFilter();return!t||t(e)},e}();function de(e,t){var a,n,r=Object.keys(e);try{for(var i=function o(e){var t="function"==typeof Symbol&&Symbol.iterator,a=t&&e[t],n=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),s=i.next();!s.done;s=i.next()){var d=e[s.value],l=d.previousValue,c=d.currentValue;if(!t.isDateInstance(l)||!t.isDateInstance(c))return!0;if(!t.sameDate(l,c))return!0}}catch(e){a={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return!1}se.decorators=[{type:i.Directive}],se.ctorParameters=function(){return[{type:i.ElementRef},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]},se.propDecorators={value:[{type:i.Input}],disabled:[{type:i.Input}],dateChange:[{type:i.Output}],dateInput:[{type:i.Output}]};var le,ce={provide:g.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return ue})),multi:!0},pe={provide:g.NG_VALIDATORS,useExisting:i.forwardRef((function(){return ue})),multi:!0},ue=function(e){function t(t,a,n,r){var i=e.call(this,t,a,n)||this;return i._formField=r,i._validator=g.Validators.compose(e.prototype._getValidators.call(i)),i}return O(t,e),Object.defineProperty(t.prototype,"matDatepicker",{set:function(e){e&&(this._datepicker=e,this._registerModel(e._registerInput(this)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){var t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()},enumerable:!1,configurable:!0}),t.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},t.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},t.prototype.getStartValue=function(){return this.value},t.prototype._openPopup=function(){this._datepicker&&this._datepicker.open()},t.prototype._getValueFromModel=function(e){return e},t.prototype._assignValueToModel=function(e){this._model&&this._model.updateSelection(e,this)},t.prototype._getMinDate=function(){return this._min},t.prototype._getMaxDate=function(){return this._max},t.prototype._getDateFilter=function(){return this._dateFilter},t.prototype._canEmitChangeEvent=function(){return!0},t}(se);ue.decorators=[{type:i.Directive,args:[{selector:"input[matDatepicker]",providers:[ce,pe,{provide:f.MAT_INPUT_VALUE_ACCESSOR,useExisting:ue}],host:{class:"mat-datepicker-input","[attr.aria-haspopup]":'_datepicker ? "dialog" : null',"[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[attr.data-mat-calendar]":"_datepicker ? _datepicker.id : null","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onBlur()","(keydown)":"_onKeydown($event)"},exportAs:"matDatepickerInput"}]}],ue.ctorParameters=function(){return[{type:i.ElementRef},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]},{type:y.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[y.MAT_FORM_FIELD]}]}]},ue.propDecorators={matDatepicker:[{type:i.Input}],min:[{type:i.Input}],max:[{type:i.Input}],dateFilter:[{type:i.Input,args:["matDatepickerFilter"]}]},(le=function le(){}).decorators=[{type:i.Directive,args:[{selector:"[matDatepickerToggleIcon]"}]}];var he=function(){function e(e,t,a){this._intl=e,this._changeDetectorRef=t,this._stateChanges=c.Subscription.EMPTY;var n=Number(a);this.tabIndex=n||0===n?n:null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=_.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){e.datepicker&&this._watchStateChanges()},e.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},e.prototype.ngAfterContentInit=function(){this._watchStateChanges()},e.prototype._open=function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())},e.prototype._watchStateChanges=function(){var e=this,t=this.datepicker?this.datepicker._stateChanges:c.of(),a=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:c.of(),n=this.datepicker?c.merge(this.datepicker.openedStream,this.datepicker.closedStream):c.of();this._stateChanges.unsubscribe(),this._stateChanges=c.merge(this._intl.changes,t,a,n).subscribe((function(){return e._changeDetectorRef.markForCheck()}))},e}();he.decorators=[{type:i.Component,args:[{selector:"mat-datepicker-toggle",template:'<button\n #button\n mat-icon-button\n type="button"\n [attr.aria-haspopup]="datepicker ? \'dialog\' : null"\n [attr.aria-label]="_intl.openCalendarLabel"\n [attr.tabindex]="disabled ? -1 : tabIndex"\n [disabled]="disabled"\n [disableRipple]="disableRipple"\n (click)="_open($event)">\n\n <svg\n *ngIf="!_customIcon"\n class="mat-datepicker-toggle-default-icon"\n viewBox="0 0 24 24"\n width="24px"\n height="24px"\n fill="currentColor"\n focusable="false">\n <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>\n </svg>\n\n <ng-content select="[matDatepickerToggleIcon]"></ng-content>\n</button>\n',host:{class:"mat-datepicker-toggle","[attr.tabindex]":"disabled ? null : -1","[class.mat-datepicker-toggle-active]":"datepicker && datepicker.opened","[class.mat-accent]":'datepicker && datepicker.color === "accent"',"[class.mat-warn]":'datepicker && datepicker.color === "warn"',"[attr.data-mat-calendar]":"datepicker ? datepicker.id : null","(focus)":"_button.focus()"},exportAs:"matDatepickerToggle",encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"]}]}],he.ctorParameters=function(){return[{type:v},{type:i.ChangeDetectorRef},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]}]},he.propDecorators={datepicker:[{type:i.Input,args:["for"]}],tabIndex:[{type:i.Input}],disabled:[{type:i.Input}],disableRipple:[{type:i.Input}],_customIcon:[{type:i.ContentChild,args:[le]}],_button:[{type:i.ViewChild,args:["button"]}]};var _e=new i.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),me=function(e){function t(t,a,n,r,i,o,s,d){var l=e.call(this,a,s,d)||this;return l._rangeInput=t,l._defaultErrorStateMatcher=n,l._injector=r,l._parentForm=i,l._parentFormGroup=o,l._outsideValueChanged=function(){l._validatorOnChange()},l}return O(t,e),t.prototype.ngOnInit=function(){var e=this._injector.get(g.NgControl,null,i.InjectFlags.Self);e&&(this.ngControl=e)},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},t.prototype.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length},t.prototype._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._onInput=function(t){e.prototype._onInput.call(this,t),this._rangeInput._handleChildValueChange()},t.prototype._openPopup=function(){this._rangeInput._openDatepicker()},t.prototype._getMinDate=function(){return this._rangeInput.min},t.prototype._getMaxDate=function(){return this._rangeInput.max},t.prototype._getDateFilter=function(){return this._rangeInput.dateFilter},t.prototype._parentDisabled=function(){return this._rangeInput._groupDisabled},t}(se);me.decorators=[{type:i.Directive}],me.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[_e]}]},{type:i.ElementRef},{type:l.ErrorStateMatcher},{type:i.Injector},{type:g.NgForm,decorators:[{type:i.Optional}]},{type:g.FormGroupDirective,decorators:[{type:i.Optional}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]};var ge=l.mixinErrorState(me),ye=function(e){function t(t,a,n,r,i,o,s,d){var l=e.call(this,t,a,n,r,i,o,s,d)||this;return l._startValidator=function(e){var t=l._dateAdapter.getValidDateOrNull(l._dateAdapter.deserialize(e.value)),a=l._model?l._model.selection.end:null;return!t||!a||l._dateAdapter.compareDate(t,a)<=0?null:{matStartDateInvalid:{end:a,actual:t}}},l._validator=g.Validators.compose(x(e.prototype._getValidators.call(l),[l._startValidator])),l._canEmitChangeEvent=function(e){return e.source!==l._rangeInput._endInput},l}return O(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},t.prototype._getValueFromModel=function(e){return e.start},t.prototype._assignValueToModel=function(e){if(this._model){var t=new V(e,this._model.selection.end);this._model.updateSelection(t,this),this._cvaOnChange(e)}},t.prototype._formatValue=function(t){e.prototype._formatValue.call(this,t),this._rangeInput._handleChildValueChange()},t.prototype.getMirrorValue=function(){var e=this._elementRef.nativeElement,t=e.value;return t.length>0?t:e.placeholder},t}(ge);ye.decorators=[{type:i.Directive,args:[{selector:"input[matStartDate]",host:{class:"mat-start-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.id]":"_rangeInput.id","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:g.NG_VALUE_ACCESSOR,useExisting:ye,multi:!0},{provide:g.NG_VALIDATORS,useExisting:ye,multi:!0}],outputs:["dateChange","dateInput"]}]}],ye.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[_e]}]},{type:i.ElementRef},{type:l.ErrorStateMatcher},{type:i.Injector},{type:g.NgForm,decorators:[{type:i.Optional}]},{type:g.FormGroupDirective,decorators:[{type:i.Optional}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]};var fe=function(e){function t(t,a,n,r,i,o,s,d){var l=e.call(this,t,a,n,r,i,o,s,d)||this;return l._endValidator=function(e){var t=l._dateAdapter.getValidDateOrNull(l._dateAdapter.deserialize(e.value)),a=l._model?l._model.selection.start:null;return!t||!a||l._dateAdapter.compareDate(t,a)>=0?null:{matEndDateInvalid:{start:a,actual:t}}},l._validator=g.Validators.compose(x(e.prototype._getValidators.call(l),[l._endValidator])),l._canEmitChangeEvent=function(e){return e.source!==l._rangeInput._startInput},l}return O(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},t.prototype._getValueFromModel=function(e){return e.end},t.prototype._assignValueToModel=function(e){if(this._model){var t=new V(this._model.selection.start,e);this._model.updateSelection(t,this),this._cvaOnChange(e)}},t.prototype._onKeydown=function(t){t.keyCode!==p.BACKSPACE||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),e.prototype._onKeydown.call(this,t)},t}(ge);fe.decorators=[{type:i.Directive,args:[{selector:"input[matEndDate]",host:{class:"mat-end-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:g.NG_VALUE_ACCESSOR,useExisting:fe,multi:!0},{provide:g.NG_VALIDATORS,useExisting:fe,multi:!0}],outputs:["dateChange","dateInput"]}]}],fe.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[_e]}]},{type:i.ElementRef},{type:l.ErrorStateMatcher},{type:i.Injector},{type:g.NgForm,decorators:[{type:i.Optional}]},{type:g.FormGroupDirective,decorators:[{type:i.Optional}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.MAT_DATE_FORMATS]}]}]};
|
|
84
84
|
/**
|
|
85
85
|
* @license
|
|
86
86
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -88,7 +88,7 @@ var X={transformPanel:m.trigger("transformPanel",[m.state("void",m.style({opacit
|
|
|
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 fe=0,ve=function(){function e(e,t,a,n,r){this._changeDetectorRef=e,this._elementRef=t,this._dateAdapter=n,this._formField=r,this.id="mat-date-range-input-"+fe++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="–",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new c.Subject,this.ngControl=a}return Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._model.selection:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){var e,t,a=(null===(e=this._startInput)||void 0===e?void 0:e._getPlaceholder())||"",n=(null===(t=this._endInput)||void 0===t?void 0:t._getPlaceholder())||"";return a||n?a+" "+this.separator+" "+n:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rangePicker",{get:function(){return this._rangePicker},set:function(e){e&&(this._model=e._registerInput(this),this._rangePicker=e,this._registerModel(this._model))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return!!this._required},set:function(e){this._required=_.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){var t=this._startInput,a=this._endInput,n=t&&t._matchesFilter(t.value),r=a&&a._matchesFilter(t.value);this._dateFilter=e,t&&t._matchesFilter(t.value)!==n&&t._validatorOnChange(),a&&a._matchesFilter(a.value)!==r&&a._validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled},set:function(e){var t=_.coerceBooleanProperty(e);t!==this._groupDisabled&&(this._groupDisabled=t,this.stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorState",{get:function(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){var e=!!this._startInput&&this._startInput.isEmpty(),t=!!this._endInput&&this._endInput.isEmpty();return e&&t},enumerable:!1,configurable:!0}),e.prototype.setDescribedByIds=function(e){this._ariaDescribedBy=e.length?e.join(" "):null},e.prototype.onContainerClick=function(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())},e.prototype.ngAfterContentInit=function(){var e=this;this._model&&this._registerModel(this._model),c.merge(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((function(){e.stateChanges.next(void 0)}))},e.prototype.ngOnChanges=function(e){se(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.getStartValue=function(){return this.value?this.value.start:null},e.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},e.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},e.prototype._getInputMirrorValue=function(){return this._startInput?this._startInput.getMirrorValue():""},e.prototype._shouldHidePlaceholders=function(){return!!this._startInput&&!this._startInput.isEmpty()},e.prototype._handleChildValueChange=function(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()},e.prototype._openDatepicker=function(){this._rangePicker&&this._rangePicker.open()},e.prototype._shouldHideSeparator=function(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty},e.prototype._getAriaLabelledby=function(){var e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null},e.prototype._revalidate=function(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()},e.prototype._registerModel=function(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)},e}();ve.decorators=[{type:i.Component,args:[{selector:"mat-date-range-input",template:'<div\n class="mat-date-range-input-container"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)="focused = $event !== null">\n <div class="mat-date-range-input-start-wrapper">\n <ng-content select="input[matStartDate]"></ng-content>\n <span\n class="mat-date-range-input-mirror"\n aria-hidden="true">{{_getInputMirrorValue()}}</span>\n </div>\n\n <span\n class="mat-date-range-input-separator"\n [class.mat-date-range-input-separator-hidden]="_shouldHideSeparator()">{{separator}}</span>\n\n <div class="mat-date-range-input-end-wrapper">\n <ng-content select="input[matEndDate]"></ng-content>\n </div>\n</div>\n\n',exportAs:"matDateRangeInput",host:{class:"mat-date-range-input","[class.mat-date-range-input-hide-placeholders]":"_shouldHidePlaceholders()","[class.mat-date-range-input-required]":"required","[attr.id]":"null",role:"group","[attr.aria-labelledby]":"_getAriaLabelledby()","[attr.aria-describedby]":"_ariaDescribedBy","[attr.data-mat-calendar]":"rangePicker ? rangePicker.id : null"},changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[{provide:y.MatFormFieldControl,useExisting:ve},{provide:he,useExisting:ve}],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"]}]}],ve.ctorParameters=function(){return[{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:g.ControlContainer,decorators:[{type:i.Optional},{type:i.Self}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:y.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[y.MAT_FORM_FIELD]}]}]},ve.propDecorators={rangePicker:[{type:i.Input}],required:[{type:i.Input}],dateFilter:[{type:i.Input}],min:[{type:i.Input}],max:[{type:i.Input}],disabled:[{type:i.Input}],separator:[{type:i.Input}],comparisonStart:[{type:i.Input}],comparisonEnd:[{type:i.Input}],_startInput:[{type:i.ContentChild,args:[ge]}],_endInput:[{type:i.ContentChild,args:[ye]}]};var be,De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype._forwardContentValues=function(t){e.prototype._forwardContentValues.call(this,t);var a=this._datepickerInput;a&&(t.comparisonStart=a.comparisonStart,t.comparisonEnd=a.comparisonEnd)},t}(ne);De.decorators=[{type:i.Component,args:[{selector:"mat-date-range-picker",template:"",exportAs:"matDateRangePicker",changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[Y,B]}]}],(be=function be(){}).decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule,o.MatButtonModule,s.MatDialogModule,a.OverlayModule,t.A11yModule,n.PortalModule,l.MatCommonModule],exports:[d.CdkScrollableModule,$,D,re,te,pe,ue,de,z,K,W,U,ve,ge,ye,De],declarations:[$,D,re,te,pe,ue,de,z,K,W,U,ve,ge,ye,De],providers:[v,ee],entryComponents:[te,U]}]}],
|
|
91
|
+
var ve=0,be=function(){function e(e,t,a,n,r){this._changeDetectorRef=e,this._elementRef=t,this._dateAdapter=n,this._formField=r,this.id="mat-date-range-input-"+ve++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="–",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new c.Subject,this.ngControl=a}return Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._model.selection:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){var e,t,a=(null===(e=this._startInput)||void 0===e?void 0:e._getPlaceholder())||"",n=(null===(t=this._endInput)||void 0===t?void 0:t._getPlaceholder())||"";return a||n?a+" "+this.separator+" "+n:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rangePicker",{get:function(){return this._rangePicker},set:function(e){e&&(this._model=e._registerInput(this),this._rangePicker=e,this._registerModel(this._model))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return!!this._required},set:function(e){this._required=_.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){var t=this._startInput,a=this._endInput,n=t&&t._matchesFilter(t.value),r=a&&a._matchesFilter(t.value);this._dateFilter=e,t&&t._matchesFilter(t.value)!==n&&t._validatorOnChange(),a&&a._matchesFilter(a.value)!==r&&a._validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled},set:function(e){var t=_.coerceBooleanProperty(e);t!==this._groupDisabled&&(this._groupDisabled=t,this.stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorState",{get:function(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){var e=!!this._startInput&&this._startInput.isEmpty(),t=!!this._endInput&&this._endInput.isEmpty();return e&&t},enumerable:!1,configurable:!0}),e.prototype.setDescribedByIds=function(e){this._ariaDescribedBy=e.length?e.join(" "):null},e.prototype.onContainerClick=function(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())},e.prototype.ngAfterContentInit=function(){var e=this;this._model&&this._registerModel(this._model),c.merge(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((function(){e.stateChanges.next(void 0)}))},e.prototype.ngOnChanges=function(e){de(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.getStartValue=function(){return this.value?this.value.start:null},e.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},e.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},e.prototype._getInputMirrorValue=function(){return this._startInput?this._startInput.getMirrorValue():""},e.prototype._shouldHidePlaceholders=function(){return!!this._startInput&&!this._startInput.isEmpty()},e.prototype._handleChildValueChange=function(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()},e.prototype._openDatepicker=function(){this._rangePicker&&this._rangePicker.open()},e.prototype._shouldHideSeparator=function(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty},e.prototype._getAriaLabelledby=function(){var e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null},e.prototype._revalidate=function(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()},e.prototype._registerModel=function(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)},e}();be.decorators=[{type:i.Component,args:[{selector:"mat-date-range-input",template:'<div\n class="mat-date-range-input-container"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)="focused = $event !== null">\n <div class="mat-date-range-input-start-wrapper">\n <ng-content select="input[matStartDate]"></ng-content>\n <span\n class="mat-date-range-input-mirror"\n aria-hidden="true">{{_getInputMirrorValue()}}</span>\n </div>\n\n <span\n class="mat-date-range-input-separator"\n [class.mat-date-range-input-separator-hidden]="_shouldHideSeparator()">{{separator}}</span>\n\n <div class="mat-date-range-input-end-wrapper">\n <ng-content select="input[matEndDate]"></ng-content>\n </div>\n</div>\n\n',exportAs:"matDateRangeInput",host:{class:"mat-date-range-input","[class.mat-date-range-input-hide-placeholders]":"_shouldHidePlaceholders()","[class.mat-date-range-input-required]":"required","[attr.id]":"null",role:"group","[attr.aria-labelledby]":"_getAriaLabelledby()","[attr.aria-describedby]":"_ariaDescribedBy","[attr.data-mat-calendar]":"rangePicker ? rangePicker.id : null"},changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[{provide:y.MatFormFieldControl,useExisting:be},{provide:_e,useExisting:be}],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"]}]}],be.ctorParameters=function(){return[{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:g.ControlContainer,decorators:[{type:i.Optional},{type:i.Self}]},{type:l.DateAdapter,decorators:[{type:i.Optional}]},{type:y.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[y.MAT_FORM_FIELD]}]}]},be.propDecorators={rangePicker:[{type:i.Input}],required:[{type:i.Input}],dateFilter:[{type:i.Input}],min:[{type:i.Input}],max:[{type:i.Input}],disabled:[{type:i.Input}],separator:[{type:i.Input}],comparisonStart:[{type:i.Input}],comparisonEnd:[{type:i.Input}],_startInput:[{type:i.ContentChild,args:[ye]}],_endInput:[{type:i.ContentChild,args:[fe]}]};var De,Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype._forwardContentValues=function(t){e.prototype._forwardContentValues.call(this,t);var a=this._datepickerInput;a&&(t.comparisonStart=a.comparisonStart,t.comparisonEnd=a.comparisonEnd)},t}(re);Ce.decorators=[{type:i.Component,args:[{selector:"mat-date-range-picker",template:"",exportAs:"matDateRangePicker",changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[Y,B]}]}],(De=function De(){}).decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule,o.MatButtonModule,s.MatDialogModule,a.OverlayModule,t.A11yModule,n.PortalModule,l.MatCommonModule],exports:[d.CdkScrollableModule,X,D,ie,ae,ue,he,le,z,K,W,$,be,ye,fe,Ce],declarations:[X,D,ie,ae,ue,he,le,z,K,W,$,be,ye,fe,Ce],providers:[v,te],entryComponents:[ae,$]}]}],
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -96,4 +96,4 @@ var fe=0,ve=function(){function e(e,t,a,n,r){this._changeDetectorRef=e,this._ele
|
|
|
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
98
|
*/
|
|
99
|
-
e.DateRange=V,e.DefaultMatCalendarRangeStrategy=j,e.MAT_DATEPICKER_SCROLL_STRATEGY=
|
|
99
|
+
e.DateRange=V,e.DefaultMatCalendarRangeStrategy=j,e.MAT_DATEPICKER_SCROLL_STRATEGY=Q,e.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY=ee,e.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER=te,e.MAT_DATEPICKER_VALIDATORS=pe,e.MAT_DATEPICKER_VALUE_ACCESSOR=ce,e.MAT_DATE_RANGE_SELECTION_STRATEGY=N,e.MAT_RANGE_DATE_SELECTION_MODEL_FACTORY=T,e.MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER=Y,e.MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY=P,e.MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER=F,e.MatCalendar=X,e.MatCalendarBody=D,e.MatCalendarCell=b,e.MatCalendarHeader=$,e.MatDateRangeInput=be,e.MatDateRangePicker=Ce,e.MatDateSelectionModel=S,e.MatDatepicker=ie,e.MatDatepickerContent=ae,e.MatDatepickerInput=ue,e.MatDatepickerInputEvent=oe,e.MatDatepickerIntl=v,e.MatDatepickerModule=De,e.MatDatepickerToggle=he,e.MatDatepickerToggleIcon=le,e.MatEndDate=fe,e.MatMonthView=z,e.MatMultiYearView=W,e.MatRangeDateSelectionModel=M,e.MatSingleDateSelectionModel=R,e.MatStartDate=ye,e.MatYearView=K,e.matDatepickerAnimations=Z,e.yearsPerPage=24,e.yearsPerRow=4,e.ɵangular_material_src_material_datepicker_datepicker_a=L,e.ɵangular_material_src_material_datepicker_datepicker_b=B,e.ɵangular_material_src_material_datepicker_datepicker_c=re,e.ɵangular_material_src_material_datepicker_datepicker_d=se,e.ɵangular_material_src_material_datepicker_datepicker_e=_e,Object.defineProperty(e,"__esModule",{value:!0})}));
|