{"version":3,"file":"date-range-selection-strategy.d.ts","sources":["date-range-selection-strategy.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;AACA;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { InjectionToken, FactoryProvider } from '@angular/core';\nimport { DateAdapter } from '@angular/material/core';\nimport { DateRange } from './date-selection-model';\n/** Injection token used to customize the date range selection behavior. */\nexport declare const MAT_DATE_RANGE_SELECTION_STRATEGY: InjectionToken>;\n/** Object that can be provided in order to customize the date range selection behavior. */\nexport interface MatDateRangeSelectionStrategy {\n /**\n * Called when the user has finished selecting a value.\n * @param date Date that was selected. Will be null if the user cleared the selection.\n * @param currentRange Range that is currently show in the calendar.\n * @param event DOM event that triggered the selection. Currently only corresponds to a `click`\n * event, but it may get expanded in the future.\n */\n selectionFinished(date: D | null, currentRange: DateRange, event: Event): DateRange;\n /**\n * Called when the user has activated a new date (e.g. by hovering over\n * it or moving focus) and the calendar tries to display a date range.\n *\n * @param activeDate Date that the user has activated. Will be null if the user moved\n * focus to an element that's no a calendar cell.\n * @param currentRange Range that is currently shown in the calendar.\n * @param event DOM event that caused the preview to be changed. Will be either a\n * `mouseenter`/`mouseleave` or `focus`/`blur` depending on how the user is navigating.\n */\n createPreview(activeDate: D | null, currentRange: DateRange, event: Event): DateRange;\n}\n/** Provides the default date range selection behavior. */\nexport declare class DefaultMatCalendarRangeStrategy implements MatDateRangeSelectionStrategy {\n private _dateAdapter;\n constructor(_dateAdapter: DateAdapter);\n selectionFinished(date: D, currentRange: DateRange): DateRange;\n createPreview(activeDate: D | null, currentRange: DateRange): DateRange;\n}\n/** @docs-private */\nexport declare function MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY(parent: MatDateRangeSelectionStrategy, adapter: DateAdapter): MatDateRangeSelectionStrategy;\n/** @docs-private */\nexport declare const MAT_CALENDAR_RANGE_STRATEGY_PROVIDER: FactoryProvider;\n"]}