@fundamental-ngx/core 0.46.2-rc.2 → 0.46.2-rc.4

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.
Files changed (28) hide show
  1. package/calendar/calendar-directives.d.ts +5 -9
  2. package/calendar/calendar-header/calendar-header.component.d.ts +7 -25
  3. package/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.d.ts +1 -20
  4. package/calendar/calendar-views/calendar-day-view/calendar-day-view.component.d.ts +6 -44
  5. package/calendar/calendar-views/calendar-month-view/calendar-month-view.component.d.ts +2 -21
  6. package/calendar/calendar-views/calendar-year-view/calendar-year-view.component.d.ts +3 -22
  7. package/calendar/calendar.component.d.ts +9 -9
  8. package/calendar/i18n/calendar-i18n-labels.d.ts +20 -22
  9. package/calendar/patch-deprecated-i18n-labels.d.ts +6 -0
  10. package/esm2022/calendar/calendar-directives.mjs +10 -18
  11. package/esm2022/calendar/calendar-header/calendar-header.component.mjs +30 -60
  12. package/esm2022/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.mjs +10 -35
  13. package/esm2022/calendar/calendar-views/calendar-day-view/calendar-day-view.component.mjs +13 -65
  14. package/esm2022/calendar/calendar-views/calendar-month-view/calendar-month-view.component.mjs +11 -36
  15. package/esm2022/calendar/calendar-views/calendar-year-view/calendar-year-view.component.mjs +12 -37
  16. package/esm2022/calendar/calendar.component.mjs +20 -10
  17. package/esm2022/calendar/i18n/calendar-i18n-labels.mjs +22 -28
  18. package/esm2022/calendar/patch-deprecated-i18n-labels.mjs +21 -0
  19. package/esm2022/multi-input/multi-input.component.mjs +13 -4
  20. package/fesm2022/fundamental-ngx-core-calendar.mjs +150 -288
  21. package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
  22. package/fesm2022/fundamental-ngx-core-multi-input.mjs +12 -3
  23. package/fesm2022/fundamental-ngx-core-multi-input.mjs.map +1 -1
  24. package/fundamental-ngx-core-v0.46.2-rc.4.tgz +0 -0
  25. package/multi-input/multi-input.component.d.ts +2 -0
  26. package/package.json +3 -3
  27. package/schematics/add-dependencies/index.js +4 -4
  28. package/fundamental-ngx-core-v0.46.2-rc.2.tgz +0 -0
@@ -1,15 +1,11 @@
1
- import { CalendarI18nLabels } from './i18n/calendar-i18n-labels';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class CalendarCloseButtonDirective {
4
- private _originalAriaLabel;
5
- private _originalTitle;
6
- private _calendarI18nLabels;
3
+ protected _originalAriaLabel: string;
4
+ protected _originalTitle: string;
7
5
  /** @hidden */
8
- get _ariaLabel(): string;
6
+ protected _closeCalendarLabel: import("@angular/core").Signal<string>;
9
7
  /** @hidden */
10
- get _title(): string;
11
- /** @hidden */
12
- constructor(_originalAriaLabel: string, _originalTitle: string, _calendarI18nLabels: CalendarI18nLabels);
13
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarCloseButtonDirective, [{ attribute: "aria-label"; }, { attribute: "title"; }, null]>;
8
+ constructor(_originalAriaLabel: string, _originalTitle: string);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarCloseButtonDirective, [{ attribute: "aria-label"; }, { attribute: "title"; }]>;
14
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarCloseButtonDirective, "[fd-calendar-close-button]", never, {}, {}, never, never, true, never>;
15
11
  }
@@ -1,17 +1,15 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { DatetimeAdapter } from '@fundamental-ngx/core/datetime';
3
- import { CalendarI18nLabels } from '../i18n/calendar-i18n-labels';
4
- import { FdCalendarView } from '../types';
3
+ import { CalendarService } from '../calendar.service';
5
4
  import { CalendarCurrent } from '../models/calendar-current';
6
5
  import { CalendarYearGrid } from '../models/calendar-year-grid';
7
- import { CalendarService } from '../calendar.service';
6
+ import { FdCalendarView } from '../types';
8
7
  import * as i0 from "@angular/core";
9
8
  /**
10
9
  * Internal use only.
11
10
  * Header of the calendar component.
12
11
  */
13
12
  export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, OnChanges {
14
- private _calendarI18nLabels;
15
13
  private _changeDetRef;
16
14
  private _calendarService;
17
15
  private _dateTimeAdapter;
@@ -38,15 +36,13 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
38
36
  /** Event emitted when the next button is clicked. */
39
37
  readonly nextClicked: EventEmitter<void>;
40
38
  /** Aria label for the previous button. Depends on the active view. */
41
- previousAriaLabel: string;
39
+ get previousAriaLabel(): 'coreCalendar.previousMonthLabel' | 'coreCalendar.previousYearLabel';
42
40
  /** Aria label for the next button. Depends on the active view. */
43
- nextAriaLabel: string;
41
+ get nextAriaLabel(): 'coreCalendar.nextMonthLabel' | 'coreCalendar.nextYearLabel';
44
42
  /** Button aria label to open month selection view. */
45
- selectMonthAriaLabel: string;
46
- /** Button aria label to open year selection view. */
47
- selectYearAriaLabel: string;
43
+ get selectMonthAriaLabel(): 'coreCalendar.monthSelectionLabel' | 'coreCalendar.dateSelectionLabel';
48
44
  /** Button aria label to open aggregated years selection view. */
49
- selectAggregatedYearAriaLabel: string;
45
+ get selectAggregatedYearAriaLabel(): 'coreCalendar.yearsRangeSelectionLabel' | 'coreCalendar.dateSelectionLabel';
50
46
  /** Button label to open month selection view. */
51
47
  selectMonthLabel: string;
52
48
  /** Button label to open year selection view. */
@@ -114,7 +110,7 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
114
110
  /** Get information about amount of years displayed at once on year view */
115
111
  private _amountOfYearsPerPeriod;
116
112
  /** @hidden */
117
- constructor(_calendarI18nLabels: CalendarI18nLabels, _changeDetRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeAdapter: DatetimeAdapter<D>);
113
+ constructor(_changeDetRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeAdapter: DatetimeAdapter<D>);
118
114
  /** @hidden */
119
115
  ngOnDestroy(): void;
120
116
  /** @hidden */
@@ -130,22 +126,8 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
130
126
  /** @hidden */
131
127
  private _listenToLocaleChanges;
132
128
  /** @hidden */
133
- private _listenToCalendarLabelsChanges;
134
- /** @hidden */
135
- private _calculateAriaLabels;
136
- /** @hidden */
137
129
  private _calculateLabels;
138
130
  /** @hidden */
139
- private _calculatePreviousAriaLabel;
140
- /** @hidden */
141
- private _calculateNextAriaLabel;
142
- /** @hidden */
143
- private _calculateSelectMonthAriaLabel;
144
- /** @hidden */
145
- private _calculateSelectYearAriaLabel;
146
- /** @hidden */
147
- private _calculateSelectAggregatedYearAriaLabel;
148
- /** @hidden */
149
131
  private _calculateSelectMonthLabel;
150
132
  /** @hidden */
151
133
  private _calculateSelectYearLabel;
@@ -4,7 +4,6 @@ import { CalendarService } from '../../calendar.service';
4
4
  import { AggregatedYear, CalendarAggregatedYear } from '../../models/aggregated-year';
5
5
  import { CalendarYearGrid } from '../../models/calendar-year-grid';
6
6
  import { EscapeFocusFunction, FocusableCalendarView } from '../../models/common';
7
- import { CalendarI18nLabels } from '../../i18n/calendar-i18n-labels';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class CalendarAggregatedYearViewComponent<D> implements OnInit, OnDestroy, OnChanges, FocusableCalendarView {
10
9
  private _eRef;
@@ -12,7 +11,6 @@ export declare class CalendarAggregatedYearViewComponent<D> implements OnInit, O
12
11
  private _calendarService;
13
12
  private _dateTimeAdapter;
14
13
  private _dateTimeFormats;
15
- private _calendarI18nLabels;
16
14
  /** Parameter used in id of years used for help with focusing on the correct element during keyboard navigation. */
17
15
  id: string;
18
16
  /** Function that is called when the focus would escape the element. */
@@ -29,23 +27,6 @@ export declare class CalendarAggregatedYearViewComponent<D> implements OnInit, O
29
27
  yearViewGrid: CalendarYearGrid;
30
28
  /** Event fired when a year is selected. */
31
29
  readonly yearsClicked: EventEmitter<AggregatedYear>;
32
- /**
33
- * @hidden
34
- * Today cell label.
35
- * Is used in conjunction with cell date itself
36
- */
37
- get _todayAriaLabel(): string;
38
- /**
39
- * @hidden
40
- * Selected date cell label.
41
- * Is used in conjunction with cell date itself
42
- */
43
- get _selectedDateAriaLabel(): string;
44
- /**
45
- * @hidden
46
- * View description
47
- */
48
- get _viewRoleDescription(): string;
49
30
  /**
50
31
  * View ID
51
32
  */
@@ -93,7 +74,7 @@ export declare class CalendarAggregatedYearViewComponent<D> implements OnInit, O
93
74
  /** @hidden */
94
75
  private _initiated;
95
76
  /** @hidden */
96
- constructor(_eRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats, _calendarI18nLabels: CalendarI18nLabels);
77
+ constructor(_eRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats);
97
78
  /** @hidden */
98
79
  ngOnInit(): void;
99
80
  /** @hidden */
@@ -1,14 +1,13 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { DateTimeFormats, DatetimeAdapter } from '@fundamental-ngx/core/datetime';
3
3
  import { SpecialDayRule } from '@fundamental-ngx/core/shared';
4
- import { DateRange } from '../../models/date-range';
5
4
  import { CalendarCurrent } from '../../models/calendar-current';
6
5
  import { CalendarDay } from '../../models/calendar-day';
7
- import { CalendarType, DaysOfWeek } from '../../types';
6
+ import { DateRange } from '../../models/date-range';
7
+ import { Nullable } from '@fundamental-ngx/cdk/utils';
8
8
  import { CalendarService } from '../../calendar.service';
9
- import { CalendarI18nLabels } from '../../i18n/calendar-i18n-labels';
10
9
  import { DisableDateFunction, EscapeFocusFunction, FocusableCalendarView } from '../../models/common';
11
- import { Nullable } from '@fundamental-ngx/cdk/utils';
10
+ import { CalendarType, DaysOfWeek } from '../../types';
12
11
  import * as i0 from "@angular/core";
13
12
  /** Component representing the day view of the calendar. */
14
13
  export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, FocusableCalendarView {
@@ -17,7 +16,6 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
17
16
  private calendarService;
18
17
  private _dateTimeFormats;
19
18
  _dateTimeAdapter: DatetimeAdapter<D>;
20
- private _calendarI18nLabels;
21
19
  /**
22
20
  * Function used to disable certain dates in the calendar.
23
21
  * @param date date type
@@ -117,7 +115,7 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
117
115
  */
118
116
  private _longWeekDays;
119
117
  /** @hidden */
120
- constructor(eRef: ElementRef, changeDetRef: ChangeDetectorRef, calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>, _calendarI18nLabels: CalendarI18nLabels);
118
+ constructor(eRef: ElementRef, changeDetRef: ChangeDetectorRef, calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>);
121
119
  /** @hidden */
122
120
  ngOnInit(): void;
123
121
  /** @hidden */
@@ -125,6 +123,7 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
125
123
  /**
126
124
  * Function for selecting a date on the calendar. Typically called when a date is clicked, but can also be called programmatically.
127
125
  * @param day CalendarDay object to be selected.
126
+ * @param event
128
127
  */
129
128
  selectDate(day: CalendarDay<D>, event?: MouseEvent): void;
130
129
  /**
@@ -158,43 +157,6 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
158
157
  * Function that gives array of all displayed CalendarDays
159
158
  */
160
159
  get _calendarDayList(): CalendarDay<D>[];
161
- /**
162
- * @hidden
163
- * Today cell label.
164
- * Is used in conjunction with cell date itself
165
- */
166
- get _todayAriaLabel(): string;
167
- /**
168
- * @hidden
169
- * Selected date cell label.
170
- * Is used in conjunction with cell date itself
171
- */
172
- get _selectedDateAriaLabel(): string;
173
- /**
174
- * @hidden
175
- * column label
176
- */
177
- get _weekColumnLabelAriaLabel(): string;
178
- /**
179
- * @hidden
180
- * Range start label
181
- */
182
- get _rangeStartAriaLabel(): string;
183
- /**
184
- * @hidden
185
- * Range end label
186
- */
187
- get _rangeEndAriaLabel(): string;
188
- /**
189
- * @hidden
190
- * Date in past label
191
- */
192
- get _dateInPastAriaLabel(): string;
193
- /**
194
- * @hidden
195
- * View description
196
- */
197
- get _viewRoleDescription(): string;
198
160
  /**
199
161
  * View ID
200
162
  */
@@ -234,7 +196,7 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, F
234
196
  * Method that handles day cells keydown events,
235
197
  * @param event KeyboardEvent
236
198
  * @param cell CalendarDay
237
- * @param grid with specified column and row as a x and y
199
+ * @param index with specified column and row as a x and y
238
200
  */
239
201
  _onKeydownDayHandler(event: KeyboardEvent, cell: CalendarDay<D>, index: number): void;
240
202
  /**
@@ -1,9 +1,8 @@
1
- import { EventEmitter, ElementRef, OnInit, OnDestroy, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { DateTimeFormats, DatetimeAdapter } from '@fundamental-ngx/core/datetime';
3
3
  import { CalendarService } from '../../calendar.service';
4
4
  import { CalendarMonth } from '../../models/calendar-month';
5
5
  import { EscapeFocusFunction, FocusableCalendarView } from '../../models/common';
6
- import { CalendarI18nLabels } from '../../i18n/calendar-i18n-labels';
7
6
  import * as i0 from "@angular/core";
8
7
  /** Component representing the month view of the calendar. */
9
8
  export declare class CalendarMonthViewComponent<D> implements OnInit, OnDestroy, OnChanges, FocusableCalendarView {
@@ -12,7 +11,6 @@ export declare class CalendarMonthViewComponent<D> implements OnInit, OnDestroy,
12
11
  private _calendarService;
13
12
  private _dateTimeFormats;
14
13
  private _dateTimeAdapter;
15
- private _calendarI18nLabels;
16
14
  /** The id of the calendar passed from the parent component */
17
15
  id: string;
18
16
  /** A number (1-12) representing the selected month */
@@ -45,7 +43,7 @@ export declare class CalendarMonthViewComponent<D> implements OnInit, OnDestroy,
45
43
  /** @hidden */
46
44
  private _initiated;
47
45
  /** @hidden */
48
- constructor(_eRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>, _calendarI18nLabels: CalendarI18nLabels);
46
+ constructor(_eRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>);
49
47
  /** @hidden */
50
48
  ngOnInit(): void;
51
49
  /** @hidden */
@@ -58,23 +56,6 @@ export declare class CalendarMonthViewComponent<D> implements OnInit, OnDestroy,
58
56
  get monthOffset(): number;
59
57
  /** View ID */
60
58
  get viewId(): string;
61
- /**
62
- * @hidden
63
- * Today cell label.
64
- * Is used in conjunction with cell date itself
65
- */
66
- get _todayAriaLabel(): string;
67
- /**
68
- * @hidden
69
- * Selected date cell label.
70
- * Is used in conjunction with cell date itself
71
- */
72
- get _selectedDateAriaLabel(): string;
73
- /**
74
- * @hidden
75
- * View description
76
- */
77
- get _viewRoleDescription(): string;
78
59
  /**
79
60
  * @hidden
80
61
  * Today cell label ID
@@ -1,9 +1,8 @@
1
- import { OnInit, EventEmitter, ElementRef, OnDestroy, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { DateTimeFormats, DatetimeAdapter } from '@fundamental-ngx/core/datetime';
3
3
  import { CalendarService } from '../../calendar.service';
4
- import { CalendarYearGrid, CalendarYear } from '../../models/calendar-year-grid';
4
+ import { CalendarYear, CalendarYearGrid } from '../../models/calendar-year-grid';
5
5
  import { EscapeFocusFunction, FocusableCalendarView } from '../../models/common';
6
- import { CalendarI18nLabels } from '../../i18n/calendar-i18n-labels';
7
6
  import * as i0 from "@angular/core";
8
7
  /** Component representing the YearView of the Calendar Component. */
9
8
  export declare class CalendarYearViewComponent<D> implements OnInit, OnChanges, OnDestroy, FocusableCalendarView {
@@ -12,7 +11,6 @@ export declare class CalendarYearViewComponent<D> implements OnInit, OnChanges,
12
11
  private _calendarService;
13
12
  private _dateTimeAdapter;
14
13
  private _dateTimeFormats;
15
- private _calendarI18nLabels;
16
14
  /** The id of the calendar passed from the parent component */
17
15
  id: string;
18
16
  /** Function that is called when the focus would escape the element. */
@@ -45,23 +43,6 @@ export declare class CalendarYearViewComponent<D> implements OnInit, OnChanges,
45
43
  * Parameter storing first shown year on list
46
44
  */
47
45
  _firstYearInList: number;
48
- /**
49
- * @hidden
50
- * Today cell label.
51
- * Is used in conjunction with cell date itself
52
- */
53
- get _todayAriaLabel(): string;
54
- /**
55
- * @hidden
56
- * Selected date cell label.
57
- * Is used in conjunction with cell date itself
58
- */
59
- get _selectedDateAriaLabel(): string;
60
- /**
61
- * @hidden
62
- * View description
63
- */
64
- get _viewRoleDescription(): string;
65
46
  /** View ID */
66
47
  get viewId(): string;
67
48
  /**
@@ -82,7 +63,7 @@ export declare class CalendarYearViewComponent<D> implements OnInit, OnChanges,
82
63
  /** @hidden */
83
64
  private _initiated;
84
65
  /** @hidden */
85
- constructor(_eRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats, _calendarI18nLabels: CalendarI18nLabels);
66
+ constructor(_eRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _calendarService: CalendarService, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats);
86
67
  /** @hidden */
87
68
  ngOnInit(): void;
88
69
  /** @hidden */
@@ -2,19 +2,19 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnIn
2
2
  import { ControlValueAccessor, Validator } from '@angular/forms';
3
3
  import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime';
4
4
  import { SpecialDayRule } from '@fundamental-ngx/core/shared';
5
- import { DateRange } from './models/date-range';
6
- import { CalendarCurrent } from './models/calendar-current';
7
- import { CalendarYearGrid } from './models/calendar-year-grid';
8
- import { AggregatedYear } from './models/aggregated-year';
9
- import { CalendarDayViewComponent } from './calendar-views/calendar-day-view/calendar-day-view.component';
10
- import { CalendarYearViewComponent } from './calendar-views/calendar-year-view/calendar-year-view.component';
11
- import { CalendarMonthViewComponent } from './calendar-views/calendar-month-view/calendar-month-view.component';
5
+ import { Nullable } from '@fundamental-ngx/cdk/utils';
6
+ import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
12
7
  import { CalendarHeaderComponent } from './calendar-header/calendar-header.component';
13
8
  import { CalendarAggregatedYearViewComponent } from './calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component';
9
+ import { CalendarDayViewComponent } from './calendar-views/calendar-day-view/calendar-day-view.component';
10
+ import { CalendarMonthViewComponent } from './calendar-views/calendar-month-view/calendar-month-view.component';
11
+ import { CalendarYearViewComponent } from './calendar-views/calendar-year-view/calendar-year-view.component';
12
+ import { AggregatedYear } from './models/aggregated-year';
13
+ import { CalendarCurrent } from './models/calendar-current';
14
+ import { CalendarYearGrid } from './models/calendar-year-grid';
14
15
  import { DisableDateFunction, EscapeFocusFunction } from './models/common';
16
+ import { DateRange } from './models/date-range';
15
17
  import { CalendarType, DaysOfWeek, FdCalendarView, NavigationButtonDisableFunction } from './types';
16
- import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
17
- import { Nullable } from '@fundamental-ngx/cdk/utils';
18
18
  import * as i0 from "@angular/core";
19
19
  /**
20
20
  * Months: 1 = January, 12 = december.
@@ -1,49 +1,47 @@
1
1
  import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
2
  /**
4
3
  * Provides i18n support for labels inside the calendar component.
4
+ * @deprecated use i18n `coreCalendar` key instead
5
5
  */
6
6
  export declare class CalendarI18nLabels {
7
7
  /** This is event that should be called, when labels are changed, to let component detect an changes. */
8
8
  readonly labelsChange: Subject<void>;
9
9
  /** Year selection aria label. Used on the button to navigate to the years view. */
10
- yearSelectionLabel: string;
10
+ yearSelectionLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
11
11
  /** Years range selection aria label. Used on the button to navigate to the years range view. */
12
- yearsRangeSelectionLabel: string;
12
+ yearsRangeSelectionLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
13
13
  /** Month selection aria label. Used on the button to navigate to the months view. */
14
- monthSelectionLabel: string;
14
+ monthSelectionLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
15
15
  /** Day selection aria label. Used on the button to navigate to the day view. */
16
- dateSelectionLabel: string;
16
+ dateSelectionLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
17
17
  /** Previous year aria label. Used on the button to switch to a previous year in the years view. */
18
- previousYearLabel: string;
18
+ previousYearLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
19
19
  /** Next year aria label. Used on the button to switch to a next year in the years view. */
20
- nextYearLabel: string;
20
+ nextYearLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
21
21
  /** Previous month aria label. Used on the button to switch to a previous month in the months view. */
22
- previousMonthLabel: string;
22
+ previousMonthLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
23
23
  /** Next month aria label. Used on the button to switch to a next month in the months view. */
24
- nextMonthLabel: string;
24
+ nextMonthLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
25
25
  /** Week number column label */
26
- weekColumnLabel: string;
26
+ weekColumnLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
27
27
  /** Selected date label. Used on the selected day/month/year cell. */
28
- dateSelectedLabel: string;
28
+ dateSelectedLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
29
29
  /** Is used to describe present date */
30
- todayLabel: string;
30
+ todayLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
31
31
  /** Range start label. Used for date range selection */
32
- rangeStartLabel: string;
32
+ rangeStartLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
33
33
  /** Range end label. Used for date range selection */
34
- rangeEndLabel: string;
34
+ rangeEndLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
35
35
  /** Past days aria label. Used when days in the past are accessed */
36
- dayInPastLabel: string;
36
+ dayInPastLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
37
37
  /** Past days aria label. Used when days in the past are accessed */
38
- closeCalendarLabel: string;
38
+ closeCalendarLabel: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
39
39
  /** Calendar day view aria role description. */
40
- calendarDayViewDescription: string;
40
+ calendarDayViewDescription: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
41
41
  /** Calendar month view aria role description. */
42
- calendarMonthViewDescription: string;
42
+ calendarMonthViewDescription: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
43
43
  /** Calendar years view aria role description. */
44
- calendarYearsViewDescription: string;
44
+ calendarYearsViewDescription: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
45
45
  /** Calendar years range view aria role description. */
46
- calendarYearsRangeViewDescription: string;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarI18nLabels, never>;
48
- static ɵprov: i0.ɵɵInjectableDeclaration<CalendarI18nLabels>;
46
+ calendarYearsRangeViewDescription: import("@fundamental-ngx/i18n").FdLanguageKey<undefined>;
49
47
  }
@@ -0,0 +1,6 @@
1
+ import { FdLanguage } from '@fundamental-ngx/i18n';
2
+ import { Observable } from 'rxjs';
3
+ /**
4
+ * Use deprecated `CalendarI18nLabels` to patch `FD_LANGUAGE` observable
5
+ */
6
+ export declare function patchDeprecatedI18nLabels(): Observable<FdLanguage>;
@@ -1,24 +1,16 @@
1
1
  import { Attribute, Directive } from '@angular/core';
2
- import { CalendarI18nLabels } from './i18n/calendar-i18n-labels';
2
+ import { resolveTranslationSignal } from '@fundamental-ngx/i18n';
3
3
  import * as i0 from "@angular/core";
4
- import * as i1 from "./i18n/calendar-i18n-labels";
5
4
  export class CalendarCloseButtonDirective {
6
5
  /** @hidden */
7
- get _ariaLabel() {
8
- return this._originalAriaLabel || this._calendarI18nLabels.closeCalendarLabel;
9
- }
10
- /** @hidden */
11
- get _title() {
12
- return this._originalTitle || this._calendarI18nLabels.closeCalendarLabel;
13
- }
14
- /** @hidden */
15
- constructor(_originalAriaLabel, _originalTitle, _calendarI18nLabels) {
6
+ constructor(_originalAriaLabel, _originalTitle) {
16
7
  this._originalAriaLabel = _originalAriaLabel;
17
8
  this._originalTitle = _originalTitle;
18
- this._calendarI18nLabels = _calendarI18nLabels;
9
+ /** @hidden */
10
+ this._closeCalendarLabel = resolveTranslationSignal('coreCalendar.closeCalendarLabel');
19
11
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: CalendarCloseButtonDirective, deps: [{ token: 'aria-label', attribute: true }, { token: 'title', attribute: true }, { token: i1.CalendarI18nLabels }], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.7", type: CalendarCloseButtonDirective, isStandalone: true, selector: "[fd-calendar-close-button]", host: { properties: { "attr.aria-label": "_ariaLabel", "attr.title": "_title" }, classAttribute: "fd-calendar__close-button" }, ngImport: i0 }); }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: CalendarCloseButtonDirective, deps: [{ token: 'aria-label', attribute: true }, { token: 'title', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
13
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.7", type: CalendarCloseButtonDirective, isStandalone: true, selector: "[fd-calendar-close-button]", host: { properties: { "attr.aria-label": "_originalAriaLabel || _closeCalendarLabel()", "attr.title": "_originalTitle || _closeCalendarLabel()" }, classAttribute: "fd-calendar__close-button" }, ngImport: i0 }); }
22
14
  }
23
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: CalendarCloseButtonDirective, decorators: [{
24
16
  type: Directive,
@@ -27,8 +19,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
27
19
  selector: '[fd-calendar-close-button]',
28
20
  host: {
29
21
  class: 'fd-calendar__close-button',
30
- '[attr.aria-label]': '_ariaLabel',
31
- '[attr.title]': '_title'
22
+ '[attr.aria-label]': '_originalAriaLabel || _closeCalendarLabel()',
23
+ '[attr.title]': '_originalTitle || _closeCalendarLabel()'
32
24
  },
33
25
  standalone: true
34
26
  }]
@@ -38,5 +30,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
38
30
  }] }, { type: undefined, decorators: [{
39
31
  type: Attribute,
40
32
  args: ['title']
41
- }] }, { type: i1.CalendarI18nLabels }]; } });
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXItZGlyZWN0aXZlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL2NhbGVuZGFyL2NhbGVuZGFyLWRpcmVjdGl2ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFckQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7OztBQVlqRSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLGNBQWM7SUFDZCxJQUFJLFVBQVU7UUFDVixPQUFPLElBQUksQ0FBQyxrQkFBa0IsSUFBSSxJQUFJLENBQUMsbU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