@fundamental-ngx/core 0.46.0-rc.0 → 0.46.0-rc.2
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.
- package/calendar/calendar-directives.d.ts +1 -1
- package/calendar/calendar-header/calendar-header.component.d.ts +2 -6
- package/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.d.ts +1 -1
- package/calendar/calendar-views/calendar-day-view/calendar-day-view.component.d.ts +27 -32
- package/calendar/calendar-views/calendar-month-view/calendar-month-view.component.d.ts +1 -1
- package/calendar/calendar-views/calendar-year-view/calendar-year-view.component.d.ts +1 -1
- package/calendar/calendar.component.d.ts +7 -8
- package/calendar/calendar.module.d.ts +2 -5
- package/combobox/combobox-mobile/combobox-mobile.component.d.ts +2 -1
- package/date-picker/date-picker-mobile/date-picker-mobile.component.d.ts +31 -0
- package/date-picker/date-picker.component.d.ts +46 -16
- package/date-picker/date-picker.model.d.ts +11 -0
- package/date-picker/date-picker.module.d.ts +2 -12
- package/date-picker/index.d.ts +2 -0
- package/date-picker/tokens.d.ts +5 -0
- package/datetime-picker/datetime-picker-mobile/datetime-picker-mobile.component.d.ts +29 -0
- package/datetime-picker/datetime-picker.component.d.ts +34 -12
- package/datetime-picker/datetime-picker.model.d.ts +9 -0
- package/datetime-picker/datetime-picker.module.d.ts +2 -14
- package/datetime-picker/index.d.ts +2 -0
- package/datetime-picker/tokens.d.ts +5 -0
- package/esm2022/calendar/calendar-directives.mjs +4 -3
- package/esm2022/calendar/calendar-header/calendar-header.component.mjs +7 -15
- package/esm2022/calendar/calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component.mjs +6 -5
- package/esm2022/calendar/calendar-views/calendar-day-view/calendar-day-view.component.mjs +21 -30
- package/esm2022/calendar/calendar-views/calendar-month-view/calendar-month-view.component.mjs +6 -5
- package/esm2022/calendar/calendar-views/calendar-year-view/calendar-year-view.component.mjs +6 -5
- package/esm2022/calendar/calendar.component.mjs +17 -13
- package/esm2022/calendar/calendar.module.mjs +9 -9
- package/esm2022/combobox/combobox-mobile/combobox-mobile.component.mjs +3 -2
- package/esm2022/date-picker/date-picker-mobile/date-picker-mobile.component.mjs +96 -0
- package/esm2022/date-picker/date-picker.component.mjs +142 -40
- package/esm2022/date-picker/date-picker.model.mjs +2 -0
- package/esm2022/date-picker/date-picker.module.mjs +6 -49
- package/esm2022/date-picker/index.mjs +3 -1
- package/esm2022/date-picker/tokens.mjs +4 -0
- package/esm2022/datetime-picker/datetime-picker-mobile/datetime-picker-mobile.component.mjs +96 -0
- package/esm2022/datetime-picker/datetime-picker.component.mjs +120 -36
- package/esm2022/datetime-picker/datetime-picker.model.mjs +2 -0
- package/esm2022/datetime-picker/datetime-picker.module.mjs +6 -57
- package/esm2022/datetime-picker/index.mjs +3 -1
- package/esm2022/datetime-picker/tokens.mjs +4 -0
- package/esm2022/mobile-mode/mobile-mode.class.mjs +3 -1
- package/esm2022/shared/interfaces/special-day-rule.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-calendar.mjs +91 -95
- package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs +2 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs +235 -86
- package/fesm2022/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs +211 -88
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-mobile-mode.mjs +2 -0
- package/fesm2022/fundamental-ngx-core-mobile-mode.mjs.map +1 -1
- package/fundamental-ngx-core-v0.46.0-rc.2.tgz +0 -0
- package/mobile-mode/mobile-mode.class.d.ts +3 -1
- package/package.json +3 -3
- package/schematics/add-dependencies/index.js +4 -4
- package/shared/interfaces/special-day-rule.d.ts +1 -1
- package/fundamental-ngx-core-v0.46.0-rc.0.tgz +0 -0
|
@@ -11,5 +11,5 @@ export declare class CalendarCloseButtonDirective {
|
|
|
11
11
|
/** @hidden */
|
|
12
12
|
constructor(_originalAriaLabel: string, _originalTitle: string, _calendarI18nLabels: CalendarI18nLabels);
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarCloseButtonDirective, [{ attribute: "aria-label"; }, { attribute: "title"; }, null]>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarCloseButtonDirective, "[fd-calendar-close-button]", never, {}, {}, never, never,
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarCloseButtonDirective, "[fd-calendar-close-button]", never, {}, {}, never, never, true, never, false>;
|
|
15
15
|
}
|
|
@@ -29,7 +29,7 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
|
|
|
29
29
|
set calendarYearGrid(yearGrid: CalendarYearGrid);
|
|
30
30
|
/** Calendar ID */
|
|
31
31
|
id: string;
|
|
32
|
-
/** Whether
|
|
32
|
+
/** Whether calendar should be rendered in mobile landscape mode. */
|
|
33
33
|
mobileLandscape: boolean;
|
|
34
34
|
/** Event emitted when the active view should change. */
|
|
35
35
|
readonly activeViewChange: EventEmitter<FdCalendarView>;
|
|
@@ -37,8 +37,6 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
|
|
|
37
37
|
readonly previousClicked: EventEmitter<void>;
|
|
38
38
|
/** Event emitted when the next button is clicked. */
|
|
39
39
|
readonly nextClicked: EventEmitter<void>;
|
|
40
|
-
/** Event thrown, when the close button is clicked */
|
|
41
|
-
readonly closeClicked: EventEmitter<void>;
|
|
42
40
|
/** Aria label for the previous button. Depends on the active view. */
|
|
43
41
|
previousAriaLabel: string;
|
|
44
42
|
/** Aria label for the next button. Depends on the active view. */
|
|
@@ -130,8 +128,6 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
|
|
|
130
128
|
/** @hidden */
|
|
131
129
|
_processViewChange(type: FdCalendarView, event?: MouseEvent): void;
|
|
132
130
|
/** @hidden */
|
|
133
|
-
_emitClose(): void;
|
|
134
|
-
/** @hidden */
|
|
135
131
|
private _listenToLocaleChanges;
|
|
136
132
|
/** @hidden */
|
|
137
133
|
private _listenToCalendarLabelsChanges;
|
|
@@ -160,5 +156,5 @@ export declare class CalendarHeaderComponent<D> implements OnDestroy, OnInit, On
|
|
|
160
156
|
/** @hidden */
|
|
161
157
|
private _getYearName;
|
|
162
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarHeaderComponent<any>, never>;
|
|
163
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeaderComponent<any>, "fd-calendar-header", never, { "activeView": { "alias": "activeView"; "required": false; }; "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "previousButtonDisabled": { "alias": "previousButtonDisabled"; "required": false; }; "nextButtonDisabled": { "alias": "nextButtonDisabled"; "required": false; }; "calendarYearGrid": { "alias": "calendarYearGrid"; "required": false; }; "id": { "alias": "id"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; }, { "activeViewChange": "activeViewChange"; "previousClicked": "previousClicked"; "nextClicked": "nextClicked";
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarHeaderComponent<any>, "fd-calendar-header", never, { "activeView": { "alias": "activeView"; "required": false; }; "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "previousButtonDisabled": { "alias": "previousButtonDisabled"; "required": false; }; "nextButtonDisabled": { "alias": "nextButtonDisabled"; "required": false; }; "calendarYearGrid": { "alias": "calendarYearGrid"; "required": false; }; "id": { "alias": "id"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; }, { "activeViewChange": "activeViewChange"; "previousClicked": "previousClicked"; "nextClicked": "nextClicked"; }, never, never, true, never, false>;
|
|
164
160
|
}
|
|
@@ -181,5 +181,5 @@ export declare class CalendarAggregatedYearViewComponent<D> implements OnInit, O
|
|
|
181
181
|
/** @hidden */
|
|
182
182
|
private _focusOnCellByIndex;
|
|
183
183
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAggregatedYearViewComponent<any>, never>;
|
|
184
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarAggregatedYearViewComponent<any>, "fd-calendar-aggregated-year-view", never, { "id": { "alias": "id"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "yearSelected": { "alias": "yearSelected"; "required": false; }; "aggregatedYearsViewGrid": { "alias": "aggregatedYearsViewGrid"; "required": false; }; "yearViewGrid": { "alias": "yearViewGrid"; "required": false; }; }, { "yearsClicked": "yearsClicked"; }, never, never,
|
|
184
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarAggregatedYearViewComponent<any>, "fd-calendar-aggregated-year-view", never, { "id": { "alias": "id"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "yearSelected": { "alias": "yearSelected"; "required": false; }; "aggregatedYearsViewGrid": { "alias": "aggregatedYearsViewGrid"; "required": false; }; "yearViewGrid": { "alias": "yearViewGrid"; "required": false; }; }, { "yearsClicked": "yearsClicked"; }, never, never, true, never, false>;
|
|
185
185
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges,
|
|
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
4
|
import { DateRange } from '../../models/date-range';
|
|
@@ -11,28 +11,37 @@ import { DisableDateFunction, EscapeFocusFunction, FocusableCalendarView } from
|
|
|
11
11
|
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
/** Component representing the day view of the calendar. */
|
|
14
|
-
export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges,
|
|
14
|
+
export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, FocusableCalendarView {
|
|
15
15
|
private eRef;
|
|
16
16
|
private changeDetRef;
|
|
17
17
|
private calendarService;
|
|
18
18
|
private _dateTimeFormats;
|
|
19
19
|
_dateTimeAdapter: DatetimeAdapter<D>;
|
|
20
20
|
private _calendarI18nLabels;
|
|
21
|
+
/**
|
|
22
|
+
* Function used to disable certain dates in the calendar.
|
|
23
|
+
* @param date date type
|
|
24
|
+
*/
|
|
25
|
+
disableFunction: DisableDateFunction<D>;
|
|
26
|
+
/**
|
|
27
|
+
* Function used to disable certain dates in the calendar for the range start selection.
|
|
28
|
+
* @param date date representation
|
|
29
|
+
*/
|
|
30
|
+
disableRangeStartFunction: DisableDateFunction<D>;
|
|
31
|
+
/**
|
|
32
|
+
* Function used to disable certain dates in the calendar for the range end selection.
|
|
33
|
+
* @param date date representation
|
|
34
|
+
*/
|
|
35
|
+
disableRangeEndFunction: DisableDateFunction<D>;
|
|
21
36
|
/** Currently displayed month and year for days */
|
|
22
37
|
set currentlyDisplayed(currentlyDisplayed: CalendarCurrent);
|
|
23
38
|
get currentlyDisplayed(): CalendarCurrent;
|
|
24
|
-
/** @hidden */
|
|
25
|
-
private _currentlyDisplayed;
|
|
26
39
|
/** The currently selected date model in single mode. */
|
|
27
40
|
set selectedDate(date: Nullable<D>);
|
|
28
41
|
get selectedDate(): Nullable<D>;
|
|
29
|
-
/** @hidden */
|
|
30
|
-
private _selectedDate;
|
|
31
42
|
/** The currently selected FdDates model start and end in range mode. */
|
|
32
43
|
set selectedRangeDate(dateRange: DateRange<D>);
|
|
33
44
|
get selectedRangeDate(): DateRange<D>;
|
|
34
|
-
/** @hidden */
|
|
35
|
-
private _selectedRangeDate;
|
|
36
45
|
/** The day of the week the calendar should start on. 1 represents Sunday, 2 is Monday, 3 is Tuesday, and so on. */
|
|
37
46
|
startingDayOfWeek: DaysOfWeek;
|
|
38
47
|
/** The type of calendar, 'single' for single date selection or 'range' for a range of dates. */
|
|
@@ -56,7 +65,7 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, O
|
|
|
56
65
|
focusEscapeFunction: EscapeFocusFunction;
|
|
57
66
|
/**
|
|
58
67
|
* Special days mark, it can be used by passing array of object with
|
|
59
|
-
* Special day number, list 1-20 [class:`fd-
|
|
68
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
60
69
|
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
61
70
|
* Rule accepts method with date object as a parameter. ex:
|
|
62
71
|
* `rule: (date: D) => this.dateAdapter.getDay(date) === 1`, which will mark all sundays as special day.
|
|
@@ -80,11 +89,12 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, O
|
|
|
80
89
|
* Array of week numbers displayed for current month/year
|
|
81
90
|
*/
|
|
82
91
|
_weeks: string[];
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
/** @hidden */
|
|
93
|
+
private _selectedRangeDate;
|
|
94
|
+
/** @hidden */
|
|
95
|
+
private _selectedDate;
|
|
96
|
+
/** @hidden */
|
|
97
|
+
private readonly _destroyRef;
|
|
88
98
|
/**
|
|
89
99
|
* @hidden
|
|
90
100
|
* Days per week
|
|
@@ -94,6 +104,8 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, O
|
|
|
94
104
|
private _isOnRangePick;
|
|
95
105
|
/** @hidden */
|
|
96
106
|
private _isInitiated;
|
|
107
|
+
/** @hidden */
|
|
108
|
+
private _currentlyDisplayed;
|
|
97
109
|
/**
|
|
98
110
|
* @hidden
|
|
99
111
|
* Variable that contains short weekday names.
|
|
@@ -104,29 +116,12 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, O
|
|
|
104
116
|
* Variable that contains short weekday names.
|
|
105
117
|
*/
|
|
106
118
|
private _longWeekDays;
|
|
107
|
-
/**
|
|
108
|
-
* Function used to disable certain dates in the calendar.
|
|
109
|
-
* @param date date type
|
|
110
|
-
*/
|
|
111
|
-
disableFunction: DisableDateFunction<D>;
|
|
112
|
-
/**
|
|
113
|
-
* Function used to disable certain dates in the calendar for the range start selection.
|
|
114
|
-
* @param date date representation
|
|
115
|
-
*/
|
|
116
|
-
disableRangeStartFunction: DisableDateFunction<D>;
|
|
117
|
-
/**
|
|
118
|
-
* Function used to disable certain dates in the calendar for the range end selection.
|
|
119
|
-
* @param date date representation
|
|
120
|
-
*/
|
|
121
|
-
disableRangeEndFunction: DisableDateFunction<D>;
|
|
122
119
|
/** @hidden */
|
|
123
120
|
constructor(eRef: ElementRef, changeDetRef: ChangeDetectorRef, calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>, _calendarI18nLabels: CalendarI18nLabels);
|
|
124
121
|
/** @hidden */
|
|
125
122
|
ngOnInit(): void;
|
|
126
123
|
/** @hidden */
|
|
127
124
|
ngOnChanges(changes: SimpleChanges): void;
|
|
128
|
-
/** @hidden */
|
|
129
|
-
ngOnDestroy(): void;
|
|
130
125
|
/**
|
|
131
126
|
* Function for selecting a date on the calendar. Typically called when a date is clicked, but can also be called programmatically.
|
|
132
127
|
* @param day CalendarDay object to be selected.
|
|
@@ -364,5 +359,5 @@ export declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, O
|
|
|
364
359
|
/** @hidden */
|
|
365
360
|
private focusOnCellByIndex;
|
|
366
361
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayViewComponent<any>, never>;
|
|
367
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayViewComponent<any>, "fd-calendar-day-view", never, { "
|
|
362
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayViewComponent<any>, "fd-calendar-day-view", never, { "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "calType": { "alias": "calType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; }, { "selectedRangeDateChange": "selectedRangeDateChange"; "nextMonthSelect": "nextMonthSelect"; "previousMonthSelect": "previousMonthSelect"; "selectedDateChange": "selectedDateChange"; }, never, never, true, never, false>;
|
|
368
363
|
}
|
|
@@ -140,5 +140,5 @@ export declare class CalendarMonthViewComponent<D> implements OnInit, OnDestroy,
|
|
|
140
140
|
/** @hidden */
|
|
141
141
|
private _focusOnCellByIndex;
|
|
142
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthViewComponent<any>, never>;
|
|
143
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthViewComponent<any>, "fd-calendar-month-view", never, { "id": { "alias": "id"; "required": false; }; "monthSelected": { "alias": "monthSelected"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "year": { "alias": "year"; "required": false; }; }, { "monthClicked": "monthClicked"; }, never, never,
|
|
143
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthViewComponent<any>, "fd-calendar-month-view", never, { "id": { "alias": "id"; "required": false; }; "monthSelected": { "alias": "monthSelected"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "year": { "alias": "year"; "required": false; }; }, { "monthClicked": "monthClicked"; }, never, never, true, never, false>;
|
|
144
144
|
}
|
|
@@ -164,5 +164,5 @@ export declare class CalendarYearViewComponent<D> implements OnInit, OnChanges,
|
|
|
164
164
|
/** @hidden */
|
|
165
165
|
private _focusOnCellByIndex;
|
|
166
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarYearViewComponent<any>, never>;
|
|
167
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarYearViewComponent<any>, "fd-calendar-year-view", never, { "id": { "alias": "id"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "yearSelected": { "alias": "yearSelected"; "required": false; }; "yearViewGrid": { "alias": "yearViewGrid"; "required": false; }; }, { "yearClicked": "yearClicked"; }, never, never,
|
|
167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarYearViewComponent<any>, "fd-calendar-year-view", never, { "id": { "alias": "id"; "required": false; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; }; "yearSelected": { "alias": "yearSelected"; "required": false; }; "yearViewGrid": { "alias": "yearViewGrid"; "required": false; }; }, { "yearClicked": "yearClicked"; }, never, never, true, never, false>;
|
|
168
168
|
}
|
|
@@ -30,7 +30,6 @@ import * as i0 from "@angular/core";
|
|
|
30
30
|
export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlValueAccessor, Validator, OnDestroy {
|
|
31
31
|
private _elementRef;
|
|
32
32
|
private _changeDetectorRef;
|
|
33
|
-
private _contentDensityObserver;
|
|
34
33
|
private _dateTimeAdapter;
|
|
35
34
|
private _dateTimeFormats;
|
|
36
35
|
/** The currently selected date model in single mode. */
|
|
@@ -59,7 +58,7 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
59
58
|
id: string;
|
|
60
59
|
/**
|
|
61
60
|
* Special days mark, it can be used by passing array of object with
|
|
62
|
-
* Special day number, list 1-20 [class:`fd-
|
|
61
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
63
62
|
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
64
63
|
* Rule accepts method with D object as a parameter. ex:
|
|
65
64
|
* `rule: (fdDate: D) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
@@ -122,13 +121,15 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
122
121
|
*/
|
|
123
122
|
_currentlyDisplayed: CalendarCurrent;
|
|
124
123
|
/** @hidden */
|
|
124
|
+
previousButtonDisabled: boolean;
|
|
125
|
+
/** @hidden */
|
|
126
|
+
nextButtonDisabled: boolean;
|
|
127
|
+
/** @hidden */
|
|
125
128
|
private _subscriptions;
|
|
126
129
|
/** @hidden */
|
|
127
130
|
private _adapterStartingDayOfWeek;
|
|
128
131
|
/** @hidden */
|
|
129
|
-
|
|
130
|
-
/** @hidden */
|
|
131
|
-
nextButtonDisabled: boolean;
|
|
132
|
+
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _contentDensityObserver: ContentDensityObserver, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats);
|
|
132
133
|
/** That allows to define function that should happen, when focus should normally escape of component */
|
|
133
134
|
escapeFocusFunction: EscapeFocusFunction;
|
|
134
135
|
/**
|
|
@@ -151,8 +152,6 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
151
152
|
/** @hidden */
|
|
152
153
|
onTouched: () => void;
|
|
153
154
|
/** @hidden */
|
|
154
|
-
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _contentDensityObserver: ContentDensityObserver, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats);
|
|
155
|
-
/** @hidden */
|
|
156
155
|
ngOnInit(): void;
|
|
157
156
|
/** @hidden */
|
|
158
157
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -255,5 +254,5 @@ export declare class CalendarComponent<D> implements OnInit, OnChanges, ControlV
|
|
|
255
254
|
/** @hidden */
|
|
256
255
|
private _focusOut;
|
|
257
256
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent<any>, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
258
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "fd-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "calType": { "alias": "calType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "escapeFocusFunction": { "alias": "escapeFocusFunction"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "activeViewChange": "activeViewChange"; "selectedDateChange": "selectedDateChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "isValidDateChange": "isValidDateChange"; "closeCalendar": "closeCalendar"; "closeClicked": "closeClicked"; }, never, never,
|
|
257
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "fd-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "calType": { "alias": "calType"; "required": false; }; "id": { "alias": "id"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "escapeFocusFunction": { "alias": "escapeFocusFunction"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "activeViewChange": "activeViewChange"; "selectedDateChange": "selectedDateChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "isValidDateChange": "isValidDateChange"; "closeCalendar": "closeCalendar"; "closeClicked": "closeClicked"; }, never, never, true, never, false>;
|
|
259
258
|
}
|
|
@@ -6,12 +6,9 @@ import * as i4 from "./calendar-views/calendar-month-view/calendar-month-view.co
|
|
|
6
6
|
import * as i5 from "./calendar-views/calendar-year-view/calendar-year-view.component";
|
|
7
7
|
import * as i6 from "./calendar-views/calendar-aggregated-year-view/calendar-aggregated-year-view.component";
|
|
8
8
|
import * as i7 from "./calendar-directives";
|
|
9
|
-
import * as i8 from "@
|
|
10
|
-
import * as i9 from "@fundamental-ngx/core/icon";
|
|
11
|
-
import * as i10 from "@fundamental-ngx/core/button";
|
|
12
|
-
import * as i11 from "@fundamental-ngx/core/content-density";
|
|
9
|
+
import * as i8 from "@fundamental-ngx/core/content-density";
|
|
13
10
|
export declare class CalendarModule {
|
|
14
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CalendarModule, [typeof i1.CalendarComponent, typeof i2.CalendarHeaderComponent, typeof i3.CalendarDayViewComponent, typeof i4.CalendarMonthViewComponent, typeof i5.CalendarYearViewComponent, typeof i6.CalendarAggregatedYearViewComponent, typeof i7.CalendarCloseButtonDirective], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CalendarModule, never, [typeof i1.CalendarComponent, typeof i2.CalendarHeaderComponent, typeof i3.CalendarDayViewComponent, typeof i4.CalendarMonthViewComponent, typeof i5.CalendarYearViewComponent, typeof i6.CalendarAggregatedYearViewComponent, typeof i7.CalendarCloseButtonDirective], [typeof i1.CalendarComponent, typeof i3.CalendarDayViewComponent, typeof i2.CalendarHeaderComponent, typeof i5.CalendarYearViewComponent, typeof i4.CalendarMonthViewComponent, typeof i6.CalendarAggregatedYearViewComponent, typeof i7.CalendarCloseButtonDirective, typeof i8.ContentDensityModule]>;
|
|
16
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<CalendarModule>;
|
|
17
14
|
}
|
|
@@ -6,7 +6,8 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class ComboboxMobileComponent extends MobileModeBase<ComboboxInterface> implements OnInit, OnDestroy {
|
|
7
7
|
/** @hidden */
|
|
8
8
|
dialogTemplate: TemplateRef<any>;
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
10
11
|
* For internal usage
|
|
11
12
|
* Control element, which will be rendered inside dialog.
|
|
12
13
|
* List element, which will be rendered inside dialog.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MobileModeBase, MobileModeConfigToken } from '@fundamental-ngx/core/mobile-mode';
|
|
3
|
+
import { DialogService } from '@fundamental-ngx/core/dialog';
|
|
4
|
+
import { DatePicker } from '../date-picker.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DatePickerMobileComponent<D> extends MobileModeBase<DatePicker<D>> {
|
|
7
|
+
private readonly _destroyRef;
|
|
8
|
+
datePickerConfig: {
|
|
9
|
+
calendarTemplate: TemplateRef<any>;
|
|
10
|
+
controlTemplate: TemplateRef<any>;
|
|
11
|
+
};
|
|
12
|
+
/** @hidden */
|
|
13
|
+
dialogTemplate: TemplateRef<any>;
|
|
14
|
+
/** @hidden */
|
|
15
|
+
private _selectedBackup;
|
|
16
|
+
/** @hidden */
|
|
17
|
+
constructor(elementRef: ElementRef, dialogService: DialogService, _destroyRef: DestroyRef, datePickerConfig: {
|
|
18
|
+
calendarTemplate: TemplateRef<any>;
|
|
19
|
+
controlTemplate: TemplateRef<any>;
|
|
20
|
+
}, datePickerComponent: DatePicker<D>, mobileModes: MobileModeConfigToken[]);
|
|
21
|
+
/** @hidden */
|
|
22
|
+
handleApprove(): void;
|
|
23
|
+
/** @hidden */
|
|
24
|
+
handleDismiss(): void;
|
|
25
|
+
/** @hidden */
|
|
26
|
+
private _toggleDialog;
|
|
27
|
+
/** @hidden */
|
|
28
|
+
private _open;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerMobileComponent<any>, [null, null, null, null, null, { optional: true; }]>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerMobileComponent<any>, "fd-date-picker-mobile", never, {}, {}, never, never, true, never, false>;
|
|
31
|
+
}
|
|
@@ -6,6 +6,8 @@ import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime
|
|
|
6
6
|
import { FormItemControl, PopoverFormMessageService } from '@fundamental-ngx/core/form';
|
|
7
7
|
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
8
8
|
import { FormStates } from '@fundamental-ngx/cdk/forms';
|
|
9
|
+
import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
|
|
10
|
+
import { DatePicker } from './date-picker.model';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
/**
|
|
11
13
|
* The datetime picker component is an opinionated composition of the fd-popover and
|
|
@@ -17,7 +19,7 @@ import * as i0 from "@angular/core";
|
|
|
17
19
|
* ```
|
|
18
20
|
*
|
|
19
21
|
*/
|
|
20
|
-
export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterViewInit, ControlValueAccessor, Validator, FormItemControl {
|
|
22
|
+
export declare class DatePickerComponent<D> implements DatePicker<D>, OnInit, OnDestroy, AfterViewInit, ControlValueAccessor, Validator, FormItemControl {
|
|
21
23
|
private _changeDetectionRef;
|
|
22
24
|
private _dateTimeAdapter;
|
|
23
25
|
private _dateTimeFormats;
|
|
@@ -32,13 +34,9 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
32
34
|
required: boolean;
|
|
33
35
|
/** Text displayed in message */
|
|
34
36
|
set message(message: string);
|
|
35
|
-
/** @hidden */
|
|
36
|
-
_message: string | null;
|
|
37
37
|
/** The trigger events that will open/close the message box.
|
|
38
38
|
* Accepts any [HTML DOM Events](https://www.w3schools.com/jsref/dom_obj_event.asp). */
|
|
39
39
|
set messageTriggers(triggers: string[]);
|
|
40
|
-
/** @hidden */
|
|
41
|
-
_messageTriggers: string[];
|
|
42
40
|
/** The currently selected CalendarDay model */
|
|
43
41
|
selectedDate: Nullable<D>;
|
|
44
42
|
/** The currently selected FdDates model start and end in range mode. */
|
|
@@ -94,7 +92,7 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
94
92
|
buttonFocusable: boolean;
|
|
95
93
|
/**
|
|
96
94
|
* Special days mark, it can be used by passing array of object with
|
|
97
|
-
* Special day number, list 1-20 [class:`fd-
|
|
95
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
98
96
|
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
99
97
|
* Rule accepts method with FdDate object as a parameter. ex:
|
|
100
98
|
* `rule: (fdDate: FdDate) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
@@ -138,8 +136,14 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
138
136
|
* Whether to prevent page scrolling when focusing date picker input field after calendar has been closed.
|
|
139
137
|
*/
|
|
140
138
|
preventScrollOnFocus: boolean;
|
|
141
|
-
/**
|
|
142
|
-
|
|
139
|
+
/** Whether date picker should rendered in mobile mode. */
|
|
140
|
+
mobile: boolean;
|
|
141
|
+
/** Mobile mode configuration. */
|
|
142
|
+
mobileConfig: MobileModeConfig;
|
|
143
|
+
/** Whether calendar is used inside mobile in landscape mode, it also adds close button on right side */
|
|
144
|
+
mobileLandscape: boolean;
|
|
145
|
+
/** Whether calendar is used inside mobile in portrait mode */
|
|
146
|
+
mobilePortrait: boolean;
|
|
143
147
|
/** Event emitted when the state of the isOpen property changes. */
|
|
144
148
|
readonly isOpenChange: EventEmitter<boolean>;
|
|
145
149
|
/** Fired when a new date is selected. */
|
|
@@ -156,6 +160,16 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
156
160
|
_inputGroupElement: ElementRef;
|
|
157
161
|
/** @hidden */
|
|
158
162
|
_inputElement: ElementRef<HTMLInputElement>;
|
|
163
|
+
/** @hidden */
|
|
164
|
+
private readonly _controlTemplate;
|
|
165
|
+
/** @hidden */
|
|
166
|
+
private readonly _calendarTemplate;
|
|
167
|
+
/** @hidden */
|
|
168
|
+
_message: string | null;
|
|
169
|
+
/** @hidden */
|
|
170
|
+
_processInputOnBlur: boolean;
|
|
171
|
+
/** @hidden */
|
|
172
|
+
_messageTriggers: string[];
|
|
159
173
|
/** @hidden The value of the input */
|
|
160
174
|
_inputFieldDate: string | null;
|
|
161
175
|
/** @hidden Whether the date input is invalid */
|
|
@@ -172,6 +186,21 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
172
186
|
private _subscriptions;
|
|
173
187
|
/** @hidden */
|
|
174
188
|
private _state;
|
|
189
|
+
/** @hidden */
|
|
190
|
+
private readonly _injector;
|
|
191
|
+
/** @hidden */
|
|
192
|
+
private readonly _dynamicComponentService;
|
|
193
|
+
/** @hidden */
|
|
194
|
+
private _mobileComponentRef;
|
|
195
|
+
/** @hidden */
|
|
196
|
+
get _rangeDelimiter(): string;
|
|
197
|
+
/**
|
|
198
|
+
* Date input aria label key based on type
|
|
199
|
+
* @hidden
|
|
200
|
+
*/
|
|
201
|
+
get _dateInputArialLabelKey(): string;
|
|
202
|
+
/** @hidden */
|
|
203
|
+
constructor(_changeDetectionRef: ChangeDetectorRef, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats, _popoverFormMessage: PopoverFormMessageService);
|
|
175
204
|
/**
|
|
176
205
|
* Function used to disable certain dates in the calendar.
|
|
177
206
|
* @param date date representation
|
|
@@ -192,14 +221,9 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
192
221
|
/** @hidden */
|
|
193
222
|
onTouched: any;
|
|
194
223
|
/** @hidden */
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Date input aria label key based on type
|
|
198
|
-
* @hidden
|
|
199
|
-
*/
|
|
200
|
-
get _dateInputArialLabelKey(): string;
|
|
224
|
+
dialogApprove(): void;
|
|
201
225
|
/** @hidden */
|
|
202
|
-
|
|
226
|
+
dialogDismiss(prevValue: D | DateRange<D>): void;
|
|
203
227
|
/** @hidden */
|
|
204
228
|
ngOnInit(): void;
|
|
205
229
|
/** @hidden */
|
|
@@ -273,6 +297,8 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
273
297
|
dateStringUpdate(dateStr: string): void;
|
|
274
298
|
/** Method that provides information if model selected date/dates have properly types and are valid */
|
|
275
299
|
isModelValid(): boolean;
|
|
300
|
+
/** Returns current selected date. */
|
|
301
|
+
getSelectedDate(): D | DateRange<D>;
|
|
276
302
|
/** @hidden */
|
|
277
303
|
_changeMessageVisibility(): void;
|
|
278
304
|
/** @hidden */
|
|
@@ -301,6 +327,10 @@ export declare class DatePickerComponent<D> implements OnInit, OnDestroy, AfterV
|
|
|
301
327
|
private _InitialiseVariablesInMessageService;
|
|
302
328
|
/** @hidden */
|
|
303
329
|
private _setOpenState;
|
|
330
|
+
/** @hidden */
|
|
331
|
+
private _setUpMobileMode;
|
|
332
|
+
/** @hidden */
|
|
333
|
+
private _isDateRange;
|
|
304
334
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent<any>, [null, { optional: true; }, { optional: true; }, null]>;
|
|
305
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent<any>, "fd-date-picker", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messageTriggers": { "alias": "messageTriggers"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "closeOnDateChoose": { "alias": "closeOnDateChoose"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "todayButtonLabel": { "alias": "todayButtonLabel"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "processInputOnBlur": { "alias": "processInputOnBlur"; "required": false; }; "preventScrollOnFocus": { "alias": "preventScrollOnFocus"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "selectedDateChange": "selectedDateChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "activeViewChange": "activeViewChange"; }, never, ["*"],
|
|
335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent<any>, "fd-date-picker", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messageTriggers": { "alias": "messageTriggers"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "closeOnDateChoose": { "alias": "closeOnDateChoose"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "todayButtonLabel": { "alias": "todayButtonLabel"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "processInputOnBlur": { "alias": "processInputOnBlur"; "required": false; }; "preventScrollOnFocus": { "alias": "preventScrollOnFocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mobileConfig": { "alias": "mobileConfig"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "selectedDateChange": "selectedDateChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "activeViewChange": "activeViewChange"; }, never, ["*"], true, never, false>;
|
|
306
336
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
3
|
+
import { DateRange } from '@fundamental-ngx/core/calendar';
|
|
4
|
+
import { MobileMode } from '@fundamental-ngx/core/mobile-mode';
|
|
5
|
+
export interface DatePicker<D> extends MobileMode {
|
|
6
|
+
selectedDate: Nullable<D>;
|
|
7
|
+
isOpenChange: EventEmitter<boolean>;
|
|
8
|
+
dialogApprove(): void;
|
|
9
|
+
dialogDismiss(value: D | DateRange<D>): void;
|
|
10
|
+
getSelectedDate(): D | DateRange<D>;
|
|
11
|
+
}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./date-picker.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@fundamental-ngx/core/icon";
|
|
5
|
-
import * as i4 from "@fundamental-ngx/core/popover";
|
|
6
|
-
import * as i5 from "@fundamental-ngx/i18n";
|
|
7
|
-
import * as i6 from "@fundamental-ngx/core/calendar";
|
|
8
|
-
import * as i7 from "@angular/forms";
|
|
9
|
-
import * as i8 from "@fundamental-ngx/core/input-group";
|
|
10
|
-
import * as i9 from "@fundamental-ngx/core/button";
|
|
11
|
-
import * as i10 from "@fundamental-ngx/core/form";
|
|
12
|
-
import * as i11 from "@fundamental-ngx/core/bar";
|
|
13
|
-
import * as i12 from "@fundamental-ngx/core/content-density";
|
|
3
|
+
import * as i2 from "./date-picker-mobile/date-picker-mobile.component";
|
|
14
4
|
export declare class DatePickerModule {
|
|
15
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, [typeof i1.DatePickerComponent
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, never, [typeof i1.DatePickerComponent, typeof i2.DatePickerMobileComponent], [typeof i1.DatePickerComponent, typeof i2.DatePickerMobileComponent]>;
|
|
17
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<DatePickerModule>;
|
|
18
8
|
}
|
package/date-picker/index.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
|
|
3
|
+
import { DatePicker } from './date-picker.model';
|
|
4
|
+
export declare const FD_DATE_PICKER_COMPONENT: InjectionToken<DatePicker<any>>;
|
|
5
|
+
export declare const FD_DATE_PICKER_MOBILE_CONFIG: InjectionToken<MobileModeConfig>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MobileModeBase, MobileModeConfigToken } from '@fundamental-ngx/core/mobile-mode';
|
|
3
|
+
import { DateTimePicker } from '../datetime-picker.model';
|
|
4
|
+
import { DialogService } from '@fundamental-ngx/core/dialog';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DatetimePickerMobileComponent<D> extends MobileModeBase<DateTimePicker<D>> {
|
|
7
|
+
private readonly _destroyRef;
|
|
8
|
+
dateTimePickerConfig: {
|
|
9
|
+
pickerTemplate: TemplateRef<any>;
|
|
10
|
+
};
|
|
11
|
+
/** @hidden */
|
|
12
|
+
dialogTemplate: TemplateRef<any>;
|
|
13
|
+
/** @hidden */
|
|
14
|
+
private _selectedBackup;
|
|
15
|
+
/** @hidden */
|
|
16
|
+
constructor(elementRef: ElementRef, dialogService: DialogService, _destroyRef: DestroyRef, dateTimePickerConfig: {
|
|
17
|
+
pickerTemplate: TemplateRef<any>;
|
|
18
|
+
}, datePickerComponent: DateTimePicker<D>, mobileModes: MobileModeConfigToken[]);
|
|
19
|
+
/** @hidden */
|
|
20
|
+
handleApprove(): void;
|
|
21
|
+
/** @hidden */
|
|
22
|
+
handleDismiss(): void;
|
|
23
|
+
/** @hidden */
|
|
24
|
+
private _toggleDialog;
|
|
25
|
+
/** @hidden */
|
|
26
|
+
private _open;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatetimePickerMobileComponent<any>, [null, null, null, null, null, { optional: true; }]>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatetimePickerMobileComponent<any>, "fd-datetime-picker-mobile", never, {}, {}, never, never, true, never, false>;
|
|
29
|
+
}
|