Skip to content

Commit

Permalink
fix(material/datepicker): Resolve issue with MatDatepickerIntl not be…
Browse files Browse the repository at this point in the history
…ing picked up in lazy-loaded modules

Along the same lines as angular#12934, where the consumer-provided instance was not being picked up within lazy-loaded modules. The fix also resolves an issue with the close button text when switching to French language in components-examples.

fixes angular#25021
  • Loading branch information
hamzajazyri committed Feb 19, 2023
1 parent d372e03 commit 8f7f27f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/public_api_guard/material/datepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { Observable } from 'rxjs';
import { OnChanges } from '@angular/core';
import { OnDestroy } from '@angular/core';
import { OnInit } from '@angular/core';
import { Optional } from '@angular/core';
import { Overlay } from '@angular/cdk/overlay';
import { Portal } from '@angular/cdk/portal';
import { ScrollStrategy } from '@angular/cdk/overlay';
Expand Down Expand Up @@ -107,6 +108,16 @@ export type ExtractDateTypeFromSelection<T> = T extends DateRange<infer D> ? D :
// @public
export const MAT_DATE_RANGE_SELECTION_STRATEGY: InjectionToken<MatDateRangeSelectionStrategy<any>>;

// @public
export const MAT_DATEPICKER_INTL_PROVIDER: {
provide: typeof MatDatepickerIntl;
deps: Optional[][];
useFactory: typeof MAT_DATEPICKER_INTL_PROVIDER_FACTORY;
};

// @public
export function MAT_DATEPICKER_INTL_PROVIDER_FACTORY(parentIntl: MatDatepickerIntl): MatDatepickerIntl;

// @public
export const MAT_DATEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;

Expand Down

0 comments on commit 8f7f27f

Please sign in to comment.