[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
---|
| 9 | import { MatDatepickerBase } from './datepicker-base';
|
---|
| 10 | import { MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER } from './date-selection-model';
|
---|
| 11 | // TODO(mmalerba): We use a component instead of a directive here so the user can use implicit
|
---|
| 12 | // template reference variables (e.g. #d vs #d="matDatepicker"). We can change this to a directive
|
---|
| 13 | // if angular adds support for `exportAs: '$implicit'` on directives.
|
---|
| 14 | /** Component responsible for managing the datepicker popup/dialog. */
|
---|
| 15 | export class MatDatepicker extends MatDatepickerBase {
|
---|
| 16 | }
|
---|
| 17 | MatDatepicker.decorators = [
|
---|
| 18 | { type: Component, args: [{
|
---|
| 19 | selector: 'mat-datepicker',
|
---|
| 20 | template: '',
|
---|
| 21 | exportAs: 'matDatepicker',
|
---|
| 22 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
| 23 | encapsulation: ViewEncapsulation.None,
|
---|
| 24 | providers: [
|
---|
| 25 | MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
|
---|
| 26 | { provide: MatDatepickerBase, useExisting: MatDatepicker },
|
---|
| 27 | ]
|
---|
| 28 | },] }
|
---|
| 29 | ];
|
---|
| 30 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9kYXRlcGlja2VyL2RhdGVwaWNrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1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