source: trip-planner-front/node_modules/@angular/material/esm2015/datepicker/datepicker-intl.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 6.5 KB
Line 
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 */
8import { Injectable } from '@angular/core';
9import { Subject } from 'rxjs';
10import * as i0 from "@angular/core";
11/** Datepicker data that requires internationalization. */
12export class MatDatepickerIntl {
13 constructor() {
14 /**
15 * Stream that emits whenever the labels here are changed. Use this to notify
16 * components if the labels have changed after initialization.
17 */
18 this.changes = new Subject();
19 /** A label for the calendar popup (used by screen readers). */
20 this.calendarLabel = 'Calendar';
21 /** A label for the button used to open the calendar popup (used by screen readers). */
22 this.openCalendarLabel = 'Open calendar';
23 /** Label for the button used to close the calendar popup. */
24 this.closeCalendarLabel = 'Close calendar';
25 /** A label for the previous month button (used by screen readers). */
26 this.prevMonthLabel = 'Previous month';
27 /** A label for the next month button (used by screen readers). */
28 this.nextMonthLabel = 'Next month';
29 /** A label for the previous year button (used by screen readers). */
30 this.prevYearLabel = 'Previous year';
31 /** A label for the next year button (used by screen readers). */
32 this.nextYearLabel = 'Next year';
33 /** A label for the previous multi-year button (used by screen readers). */
34 this.prevMultiYearLabel = 'Previous 24 years';
35 /** A label for the next multi-year button (used by screen readers). */
36 this.nextMultiYearLabel = 'Next 24 years';
37 /** A label for the 'switch to month view' button (used by screen readers). */
38 this.switchToMonthViewLabel = 'Choose date';
39 /** A label for the 'switch to year view' button (used by screen readers). */
40 this.switchToMultiYearViewLabel = 'Choose month and year';
41 }
42 /** Formats a range of years. */
43 formatYearRange(start, end) {
44 return `${start} \u2013 ${end}`;
45 }
46}
47MatDatepickerIntl.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatDatepickerIntl_Factory() { return new MatDatepickerIntl(); }, token: MatDatepickerIntl, providedIn: "root" });
48MatDatepickerIntl.decorators = [
49 { type: Injectable, args: [{ providedIn: 'root' },] }
50];
51//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pbnRsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL2RhdGVwaWNrZXIvZGF0ZXBpY2tlci1pbnRsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLE1BQU0sQ0FBQzs7QUFHN0IsMERBQTBEO0FBRTFELE1BQU0sT0FBTyxpQkFBaUI7SUFEOUI7UUFFRTs7O1dBR0c7UUFDTSxZQUFPLEdBQWtCLElBQUksT0FBTyxFQUFRLENBQUM7UUFFdEQsK0RBQStEO1FBQy9ELGtCQUFhLEdBQVcsVUFBVSxDQUFDO1FBRW5DLHVGQUF1RjtRQUN2RixzQkFBaUIsR0FBVyxlQUFlLENBQUM7UUFFNUMsNkRBQTZEO1FBQzdELHVCQUFrQixHQUFXLGdCQUFnQixDQUFDO1FBRTlDLHNFQUFzRTtRQUN0RSxtQkFBYyxHQUFXLGdCQUFnQixDQUFDO1FBRTFDLGtFQUFrRTtRQUNsRSxtQkFBYyxHQUFXLFlBQVksQ0FBQztRQUV0QyxxRUFBcUU7UUFDckUsa0JBQWEsR0FBVyxlQUFlLENBQUM7UUFFeEMsaUVBQWlFO1FBQ2pFLGtCQUFhLEdBQVcsV0FBVyxDQUFDO1FBRXBDLDJFQUEyRTtRQUMzRSx1QkFBa0IsR0FBVyxtQkFBbUIsQ0FBQztRQUVqRCx1RUFBdUU7UUFDdkUsdUJBQWtCLEdBQVcsZUFBZSxDQUFDO1FBRTdDLDhFQUE4RTtRQ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