@angular/material 10.2.3 → 10.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +69 -69
- package/autocomplete/index.metadata.json +1 -1
- package/bottom-sheet/bottom-sheet.d.ts +12 -0
- package/bundles/material-autocomplete.umd.js +4 -3
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-button.umd.js +2 -2
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-chips-testing.umd.js +22 -4
- package/bundles/material-chips-testing.umd.js.map +1 -1
- package/bundles/material-chips-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +13 -10
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +7 -7
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +36 -0
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +1 -1
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +1 -8
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +2 -2
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +2 -2
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +50 -36
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +2 -2
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-list-testing.umd.js +5 -3
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.min.js +1 -1
- package/bundles/material-list-testing.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +21 -11
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +1 -1
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +14 -16
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +3 -3
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +7 -3
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +3 -3
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +3 -1
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/button/_button-theme.scss +1 -1
- package/button/index.metadata.json +1 -1
- package/checkbox/_checkbox-theme.scss +1 -1
- package/chips/_chips-theme.scss +1 -1
- package/chips/testing/chip-harness-filters.d.ts +5 -1
- package/chips/testing/chip-harness.d.ts +20 -4
- package/chips/testing/chip-list-harness.d.ts +2 -0
- package/core/density/_index.scss +6 -6
- package/core/focus-indicators/_focus-indicators.scss +1 -1
- package/core/index.metadata.json +1 -1
- package/core/ripple/_ripple.scss +2 -2
- package/core/theming/_check-duplicate-styles.scss +6 -6
- package/core/theming/_palette.scss +16 -16
- package/core/theming/_theming.scss +33 -33
- package/datepicker/date-range-input-parts.d.ts +6 -2
- package/datepicker/index.metadata.json +1 -1
- package/dialog/dialog.d.ts +10 -3
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete-trigger.js +6 -5
- package/esm2015/bottom-sheet/bottom-sheet.js +1 -1
- package/esm2015/button/button.js +2 -2
- package/esm2015/chips/testing/chip-harness-filters.js +1 -1
- package/esm2015/chips/testing/chip-harness.js +21 -5
- package/esm2015/chips/testing/chip-list-harness.js +3 -1
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/datetime/native-date-adapter.js +12 -9
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input-parts.js +37 -1
- package/esm2015/dialog/dialog-animations.js +2 -2
- package/esm2015/dialog/dialog.js +1 -8
- package/esm2015/form-field/form-field.js +1 -1
- package/esm2015/form-field/hint.js +2 -2
- package/esm2015/icon/icon.js +46 -36
- package/esm2015/list/selection-list.js +22 -12
- package/esm2015/list/testing/list-item-harness-base.js +6 -4
- package/esm2015/menu/menu-item.js +15 -17
- package/esm2015/tabs/tab-content.js +3 -2
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +9 -6
- package/esm2015/tooltip/tooltip.js +4 -2
- package/fesm2015/autocomplete.js +5 -4
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/bottom-sheet.js.map +1 -1
- package/fesm2015/button.js +2 -2
- package/fesm2015/chips/testing.js +22 -4
- package/fesm2015/chips/testing.js.map +1 -1
- package/fesm2015/core.js +13 -10
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +36 -0
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +1 -8
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/form-field.js +2 -2
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/icon.js +45 -35
- package/fesm2015/icon.js.map +1 -1
- package/fesm2015/list/testing.js +5 -3
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/list.js +21 -11
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu.js +14 -16
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/tabs.js +7 -3
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/tooltip.js +3 -1
- package/fesm2015/tooltip.js.map +1 -1
- package/form-field/index.metadata.json +1 -1
- package/icon/icon.d.ts +7 -4
- package/icon/index.metadata.json +1 -1
- package/list/index.metadata.json +1 -1
- package/list/selection-list.d.ts +16 -4
- package/menu/index.metadata.json +1 -1
- package/menu/menu-item.d.ts +6 -2
- package/package.json +2 -2
- package/radio/_radio-theme.scss +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/data/css-selectors.d.ts +6 -3
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/input-names.js +10 -10
- package/schematics/ng-update/data/output-names.js +10 -10
- package/schematics/ng-update/data/property-names.js +24 -24
- package/slide-toggle/_slide-toggle-theme.scss +1 -1
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab-content.d.ts +3 -2
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +8 -5
- package/tooltip/index.metadata.json +1 -1
|
@@ -80,7 +80,7 @@ var K=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){var o=e.call(this,t)||this;return o._changeDetectorRef=a,o._model=n,o._dateAdapter=r,o._rangeSelectionStrategy=i,o._subscriptions=new c.Subscription,o._animationState="enter",o._animationDone=new c.Subject,o}return O(t,e),t.prototype.ngAfterViewInit=function(){var e=this;this._changeDetectorRef&&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){if(this._model&&this._dateAdapter){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&&this._changeDetectorRef.markForCheck()},t.prototype._getSelected=function(){return this._model?this._model.selection:null},t}(l.mixinColor((function ae(e){this._elementRef=e})));te.decorators=[{type:i.Component,args:[{selector:"mat-datepicker-content",template:'<mat-calendar cdkTrapFocus\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 (_userSelection)="_handleUserSelection($event)">\n</mat-calendar>\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-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]}]}]},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.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,"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._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||e._datepickerInput&&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}],panelClass:[{type:i.Input}],dateClass:[{type:i.Input}],openedStream:[{type:i.Output,args:["opened"]}],closedStream:[{type:i.Output,args:["closed"]}],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)),a=n._getDateFilter();return a&&t&&!a(t)?{matDatepickerFilter:!0}:null},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}();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){this._dateFilter=e,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.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},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._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}]}]}],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._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}]}]}],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 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){var o=e.call(this,t)||this;return o._changeDetectorRef=a,o._model=n,o._dateAdapter=r,o._rangeSelectionStrategy=i,o._subscriptions=new c.Subscription,o._animationState="enter",o._animationDone=new c.Subject,o}return O(t,e),t.prototype.ngAfterViewInit=function(){var e=this;this._changeDetectorRef&&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){if(this._model&&this._dateAdapter){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&&this._changeDetectorRef.markForCheck()},t.prototype._getSelected=function(){return this._model?this._model.selection:null},t}(l.mixinColor((function ae(e){this._elementRef=e})));te.decorators=[{type:i.Component,args:[{selector:"mat-datepicker-content",template:'<mat-calendar cdkTrapFocus\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 (_userSelection)="_handleUserSelection($event)">\n</mat-calendar>\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-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]}]}]},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.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,"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._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||e._datepickerInput&&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}],panelClass:[{type:i.Input}],dateClass:[{type:i.Input}],openedStream:[{type:i.Output,args:["opened"]}],closedStream:[{type:i.Output,args:["closed"]}],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)),a=n._getDateFilter();return a&&t&&!a(t)?{matDatepickerFilter:!0}:null},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}();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){this._dateFilter=e,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.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},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}]}]}],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}]}]}],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]}]}]};
|
|
84
84
|
/**
|
|
85
85
|
* @license
|
|
86
86
|
* Copyright Google LLC All Rights Reserved.
|