@fundamental-ngx/core 0.58.0-rc.73 → 0.58.0-rc.75
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/index.d.ts +40 -27
- package/date-picker/index.d.ts +25 -14
- package/datetime-picker/index.d.ts +23 -13
- package/fesm2022/fundamental-ngx-core-calendar.mjs +105 -98
- package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs +34 -12
- package/fesm2022/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs +26 -18
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/package.json +29 -29
package/calendar/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, EventEmitter, ElementRef, ChangeDetectorRef, SimpleChanges, OnDestroy } from '@angular/core';
|
|
3
|
-
import { DatetimeAdapter,
|
|
3
|
+
import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { Nullable, RtlService } from '@fundamental-ngx/cdk/utils';
|
|
6
6
|
import { SpecialDayRule } from '@fundamental-ngx/core/shared';
|
|
@@ -283,24 +283,17 @@ declare class CalendarHeaderComponent<D> implements OnInit, OnChanges {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
declare class CalendarLegendFocusingService {
|
|
286
|
-
/**
|
|
287
|
-
|
|
288
|
-
legendId: Nullable<string>;
|
|
289
|
-
specialDayNumber: Nullable<number>;
|
|
290
|
-
}>;
|
|
286
|
+
/** Signal to track the focused special day number. Only one legend item can have focus at a time. */
|
|
287
|
+
readonly focusedSpecialDayNumber: i0.WritableSignal<Nullable<number>>;
|
|
291
288
|
/** Clearing the focused element */
|
|
292
289
|
clearFocusedElement(): void;
|
|
293
|
-
/** Setting the
|
|
294
|
-
|
|
290
|
+
/** Setting the special day number that is currently focused */
|
|
291
|
+
handleLegendItemFocus(specialDayNumber: Nullable<number>): void;
|
|
295
292
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarLegendFocusingService, never>;
|
|
296
293
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarLegendFocusingService>;
|
|
297
294
|
}
|
|
298
295
|
|
|
299
296
|
declare class CalendarLegendComponent<D> {
|
|
300
|
-
datetimeAdapter: DatetimeAdapter<FdDate>;
|
|
301
|
-
private focusingService;
|
|
302
|
-
/** The unique identifier of the calendar legend. This is a required property. */
|
|
303
|
-
legendId: i0.InputSignal<string>;
|
|
304
297
|
/**
|
|
305
298
|
* Make it a column instead
|
|
306
299
|
*/
|
|
@@ -317,11 +310,12 @@ declare class CalendarLegendComponent<D> {
|
|
|
317
310
|
* Special days rules to be displayed in the legend
|
|
318
311
|
*/
|
|
319
312
|
specialDaysRules: i0.InputSignal<SpecialDayRule<D>[]>;
|
|
320
|
-
|
|
313
|
+
/** @hidden */
|
|
314
|
+
private readonly _focusingService;
|
|
321
315
|
/** @hidden */
|
|
322
316
|
_handleFocusedElementEvent(specialDayNumber: Nullable<number>): void;
|
|
323
317
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarLegendComponent<any>, never>;
|
|
324
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarLegendComponent<any>, "fd-calendar-legend", never, { "
|
|
318
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarLegendComponent<any>, "fd-calendar-legend", never, { "col": { "alias": "col"; "required": false; "isSignal": true; }; "displayTodayLegendItem": { "alias": "displayTodayLegendItem"; "required": false; "isSignal": true; }; "displaySelectedLegendItem": { "alias": "displaySelectedLegendItem"; "required": false; "isSignal": true; }; "displayWorkDayLegendItem": { "alias": "displayWorkDayLegendItem"; "required": false; "isSignal": true; }; "displayNonWorkDayLegendItem": { "alias": "displayNonWorkDayLegendItem"; "required": false; "isSignal": true; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
325
319
|
}
|
|
326
320
|
|
|
327
321
|
interface AggregatedYear {
|
|
@@ -535,7 +529,6 @@ declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, Focusabl
|
|
|
535
529
|
private eRef;
|
|
536
530
|
private changeDetRef;
|
|
537
531
|
private calendarService;
|
|
538
|
-
private legendFocusedService;
|
|
539
532
|
private _dateTimeFormats;
|
|
540
533
|
_dateTimeAdapter: DatetimeAdapter<D>;
|
|
541
534
|
/** Currently displayed month and year for days */
|
|
@@ -586,8 +579,6 @@ declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, Focusabl
|
|
|
586
579
|
calType: i0.ModelSignal<CalendarType>;
|
|
587
580
|
/** Id of the calendar. If none is provided, one will be generated. */
|
|
588
581
|
id: i0.InputSignal<string | undefined>;
|
|
589
|
-
/** @hidden Id of the associated legend, passed from the parent calendar component. */
|
|
590
|
-
associatedLegendId: i0.InputSignal<string | undefined>;
|
|
591
582
|
/**
|
|
592
583
|
* Whether user wants to mark day cells on hover.
|
|
593
584
|
* Works only on range mode, when start date is selected.
|
|
@@ -634,6 +625,11 @@ declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, Focusabl
|
|
|
634
625
|
* and the date is not disabled.
|
|
635
626
|
*/
|
|
636
627
|
_weekHeaderClasses: string[];
|
|
628
|
+
/**
|
|
629
|
+
* @hidden
|
|
630
|
+
* Computed signal for the focused special day number
|
|
631
|
+
*/
|
|
632
|
+
protected readonly _focusedSpecialDayNumber: i0.Signal<Nullable<number>>;
|
|
637
633
|
/** @hidden */
|
|
638
634
|
private _selectedDate;
|
|
639
635
|
/** @hidden */
|
|
@@ -670,8 +666,15 @@ declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, Focusabl
|
|
|
670
666
|
* global variable to store the new range.
|
|
671
667
|
*/
|
|
672
668
|
private _newRange;
|
|
669
|
+
/**
|
|
670
|
+
* @hidden
|
|
671
|
+
* Cache of days with special markers for efficient legend focus updates
|
|
672
|
+
*/
|
|
673
|
+
private _daysWithSpecialMarkers;
|
|
674
|
+
/** @hidden */
|
|
675
|
+
private readonly legendFocusedService;
|
|
673
676
|
/** @hidden */
|
|
674
|
-
constructor(eRef: ElementRef, changeDetRef: ChangeDetectorRef, calendarService: CalendarService,
|
|
677
|
+
constructor(eRef: ElementRef, changeDetRef: ChangeDetectorRef, calendarService: CalendarService, _dateTimeFormats: DateTimeFormats, _dateTimeAdapter: DatetimeAdapter<D>);
|
|
675
678
|
/** @hidden */
|
|
676
679
|
ngOnInit(): void;
|
|
677
680
|
/** @hidden */
|
|
@@ -801,10 +804,12 @@ declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, Focusabl
|
|
|
801
804
|
* Also triggers event to parent calendar component and rebuilds day view grid
|
|
802
805
|
*/
|
|
803
806
|
private _selectNextMonth;
|
|
804
|
-
/**
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
807
|
+
/**
|
|
808
|
+
* @hidden
|
|
809
|
+
* Updates the legend focus state for calendar days with special markers
|
|
810
|
+
* @param focusedSpecialDayNumber The currently focused special day number, or null/undefined if no legend item is focused
|
|
811
|
+
*/
|
|
812
|
+
private _updateLegendFocusState;
|
|
808
813
|
/**
|
|
809
814
|
* @hidden
|
|
810
815
|
* Method that creates array of CalendarDay models which will be shown on day grid,
|
|
@@ -1015,7 +1020,7 @@ declare class CalendarDayViewComponent<D> implements OnInit, OnChanges, Focusabl
|
|
|
1015
1020
|
*/
|
|
1016
1021
|
private _handleMultiRangeHover;
|
|
1017
1022
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayViewComponent<any>, never>;
|
|
1018
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayViewComponent<any>, "fd-calendar-day-view", never, { "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; "isSignal": true; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; "isSignal": true; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; "isSignal": true; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; "isSignal": true; }; "calType": { "alias": "calType"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "
|
|
1023
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayViewComponent<any>, "fd-calendar-day-view", never, { "currentlyDisplayed": { "alias": "currentlyDisplayed"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; "isSignal": true; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; "isSignal": true; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; "isSignal": true; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; "isSignal": true; }; "calType": { "alias": "calType"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; "isSignal": true; }; "markWeekends": { "alias": "markWeekends"; "required": false; "isSignal": true; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; "isSignal": true; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; "isSignal": true; }; "focusEscapeFunction": { "alias": "focusEscapeFunction"; "required": false; "isSignal": true; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; "isSignal": true; }; }, { "nextMonthSelect": "nextMonthSelect"; "previousMonthSelect": "previousMonthSelect"; "selectedDateChange": "selectedDateChange"; "selectedMultipleDatesChange": "selectedMultipleDatesChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "selectedMultipleDateRangesChange": "selectedMultipleDateRangesChange"; "disableFunction": "disableFunctionChange"; "disableRangeStartFunction": "disableRangeStartFunctionChange"; "disableRangeEndFunction": "disableRangeEndFunctionChange"; "startingDayOfWeek": "startingDayOfWeekChange"; "calType": "calTypeChange"; "rangeHoverEffect": "rangeHoverEffectChange"; "allowMultipleSelection": "allowMultipleSelectionChange"; }, never, never, true, never>;
|
|
1019
1024
|
}
|
|
1020
1025
|
|
|
1021
1026
|
interface CalendarMonth<D> extends BaseCalendarCell {
|
|
@@ -1539,8 +1544,16 @@ declare class CalendarComponent<D> implements OnInit, OnChanges, ControlValueAcc
|
|
|
1539
1544
|
* @param activeView current view of calendar
|
|
1540
1545
|
*/
|
|
1541
1546
|
nextButtonDisableFunction: NavigationButtonDisableFunction<D>;
|
|
1542
|
-
/**
|
|
1543
|
-
|
|
1547
|
+
/**
|
|
1548
|
+
* Whether to show the calendar legend below the calendar.
|
|
1549
|
+
* The legend displays special day markers and their meanings.
|
|
1550
|
+
*/
|
|
1551
|
+
showCalendarLegend: boolean;
|
|
1552
|
+
/**
|
|
1553
|
+
* Whether to display the legend in column layout (true) or row layout (false).
|
|
1554
|
+
* Column layout is useful when legend is displayed alongside the calendar.
|
|
1555
|
+
*/
|
|
1556
|
+
legendCol: boolean;
|
|
1544
1557
|
/**
|
|
1545
1558
|
* @hidden
|
|
1546
1559
|
* Currently displayed days depending on month and year
|
|
@@ -1695,7 +1708,7 @@ declare class CalendarComponent<D> implements OnInit, OnChanges, ControlValueAcc
|
|
|
1695
1708
|
/** @hidden */
|
|
1696
1709
|
private _isNavigationButtonDisabled;
|
|
1697
1710
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent<any>, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
1698
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "fd-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "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; }; "dateRangeFormat": { "alias": "dateRangeFormat"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "
|
|
1711
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "fd-calendar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "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; }; "dateRangeFormat": { "alias": "dateRangeFormat"; "required": false; }; "previousButtonDisableFunction": { "alias": "previousButtonDisableFunction"; "required": false; }; "nextButtonDisableFunction": { "alias": "nextButtonDisableFunction"; "required": false; }; "showCalendarLegend": { "alias": "showCalendarLegend"; "required": false; }; "legendCol": { "alias": "legendCol"; "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"; "selectedMultipleDatesChange": "selectedMultipleDatesChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "selectedMultipleDateRangesChange": "selectedMultipleDateRangesChange"; "isValidDateChange": "isValidDateChange"; "closeCalendar": "closeCalendar"; "closeClicked": "closeClicked"; }, never, never, true, never>;
|
|
1699
1712
|
}
|
|
1700
1713
|
|
|
1701
1714
|
declare class CalendarModule {
|
|
@@ -1751,5 +1764,5 @@ declare class CalendarI18nLabels {
|
|
|
1751
1764
|
calendarYearsRangeViewDescription: _fundamental_ngx_i18n.FdLanguageKey<undefined>;
|
|
1752
1765
|
}
|
|
1753
1766
|
|
|
1754
|
-
export { CalendarAggregatedYearViewComponent, CalendarCloseButtonDirective, CalendarComponent, CalendarDayViewComponent, CalendarHeaderComponent, CalendarI18nLabels, CalendarLegendComponent, CalendarModule, CalendarMonthViewComponent, CalendarService, CalendarTypeEnum, CalendarYearViewComponent, DateRange, FdCalendarViewEnum };
|
|
1767
|
+
export { CalendarAggregatedYearViewComponent, CalendarCloseButtonDirective, CalendarComponent, CalendarDayViewComponent, CalendarHeaderComponent, CalendarI18nLabels, CalendarLegendComponent, CalendarLegendFocusingService, CalendarModule, CalendarMonthViewComponent, CalendarService, CalendarTypeEnum, CalendarYearViewComponent, DateRange, FdCalendarViewEnum };
|
|
1755
1768
|
export type { AggregatedYear, CalendarAggregatedYear, CalendarCurrent, CalendarType, CalendarYear, CalendarYearGrid, DaysOfWeek, FdCalendarView, NavigationButtonDisableFunction };
|
package/date-picker/index.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, TemplateRef, OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { InputSignal, InputSignalWithTransform, EventEmitter, TemplateRef, OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { MobileMode, MobileModeBase, MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
|
|
4
4
|
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
5
5
|
import { DateRange, CalendarType, DaysOfWeek, FdCalendarView, NavigationButtonDisableFunction, CalendarYearGrid, CalendarComponent } from '@fundamental-ngx/core/calendar';
|
|
6
|
+
import { SpecialDayRule, Placement } from '@fundamental-ngx/core/shared';
|
|
6
7
|
import { ControlValueAccessor, Validator } from '@angular/forms';
|
|
7
8
|
import { FormStates } from '@fundamental-ngx/cdk/forms';
|
|
8
9
|
import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime';
|
|
9
10
|
import { FormItemControl, PopoverFormMessageService } from '@fundamental-ngx/core/form';
|
|
10
|
-
import { Placement, SpecialDayRule } from '@fundamental-ngx/core/shared';
|
|
11
11
|
import { FdLanguageKeyIdentifier } from '@fundamental-ngx/i18n';
|
|
12
12
|
|
|
13
13
|
interface DatePicker<D> extends MobileMode {
|
|
14
14
|
selectedDate: Nullable<D>;
|
|
15
|
+
specialDaysRules?: SpecialDayRule<D>[];
|
|
16
|
+
showCalendarLegend?: boolean | InputSignal<boolean> | InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
legendCol?: boolean | InputSignal<boolean> | InputSignalWithTransform<boolean, unknown>;
|
|
15
18
|
isOpenChange: EventEmitter<boolean>;
|
|
16
19
|
dialogApprove(): void;
|
|
17
20
|
dialogDismiss(value: D | Array<D> | DateRange<D> | Array<DateRange<D>>): void;
|
|
@@ -33,6 +36,10 @@ declare class DatePickerMobileComponent<D> extends MobileModeBase<DatePicker<D>>
|
|
|
33
36
|
controlTemplate: TemplateRef<any>;
|
|
34
37
|
}, datePickerComponent: DatePicker<D>);
|
|
35
38
|
/** @hidden */
|
|
39
|
+
_getShowCalendarLegend(): boolean;
|
|
40
|
+
/** @hidden */
|
|
41
|
+
_getLegendCol(): boolean;
|
|
42
|
+
/** @hidden */
|
|
36
43
|
handleApprove(): void;
|
|
37
44
|
/** @hidden */
|
|
38
45
|
handleDismiss(): void;
|
|
@@ -118,14 +125,6 @@ declare class DatePickerComponent<D> implements DatePicker<D>, OnInit, OnDestroy
|
|
|
118
125
|
* Function used to disable next button in the calendar header.
|
|
119
126
|
*/
|
|
120
127
|
nextButtonDisableFunction: NavigationButtonDisableFunction<D>;
|
|
121
|
-
/**
|
|
122
|
-
* The state of the form control - applies css classes.
|
|
123
|
-
* Also, this is applied to message.
|
|
124
|
-
* Can be `success`, `error`, `warning`, `information` or blank for default.
|
|
125
|
-
*/
|
|
126
|
-
set state(state: Nullable<FormStates>);
|
|
127
|
-
/** @hidden */
|
|
128
|
-
get state(): FormStates;
|
|
129
128
|
/**
|
|
130
129
|
* @deprecated Popover is toggled with f4 key
|
|
131
130
|
*/
|
|
@@ -163,9 +162,6 @@ declare class DatePickerComponent<D> implements DatePicker<D>, OnInit, OnDestroy
|
|
|
163
162
|
* Note: Clickable selection for week row or column does not work for range selections.
|
|
164
163
|
*/
|
|
165
164
|
allowMultipleSelection: boolean;
|
|
166
|
-
/** Whether the date picker is open. Can be used through two-way binding. */
|
|
167
|
-
set isOpen(value: boolean);
|
|
168
|
-
get isOpen(): boolean;
|
|
169
165
|
/** Should date picker be inlined. */
|
|
170
166
|
inline: boolean;
|
|
171
167
|
/** aria-labelledby for element describing date-picker. */
|
|
@@ -217,6 +213,21 @@ declare class DatePickerComponent<D> implements DatePicker<D>, OnInit, OnDestroy
|
|
|
217
213
|
private readonly _messagePopoverTemplate;
|
|
218
214
|
/** @hideen */
|
|
219
215
|
private readonly _calendars;
|
|
216
|
+
/** Whether to display the calendar legend below the calendar. Default is false. */
|
|
217
|
+
showCalendarLegend: i0.InputSignalWithTransform<boolean, unknown>;
|
|
218
|
+
/** Whether the legend should display in column layout instead of row layout. Default is false. */
|
|
219
|
+
legendCol: i0.InputSignalWithTransform<boolean, unknown>;
|
|
220
|
+
/**
|
|
221
|
+
* The state of the form control - applies css classes.
|
|
222
|
+
* Also, this is applied to message.
|
|
223
|
+
* Can be `success`, `error`, `warning`, `information` or blank for default.
|
|
224
|
+
*/
|
|
225
|
+
set state(state: Nullable<FormStates>);
|
|
226
|
+
/** @hidden */
|
|
227
|
+
get state(): FormStates;
|
|
228
|
+
/** Whether the date picker is open. Can be used through two-way binding. */
|
|
229
|
+
set isOpen(value: boolean);
|
|
230
|
+
get isOpen(): boolean;
|
|
220
231
|
/** @hidden */
|
|
221
232
|
_calendarComponent: CalendarComponent<D>;
|
|
222
233
|
/** @hidden */
|
|
@@ -445,7 +456,7 @@ declare class DatePickerComponent<D> implements DatePicker<D>, OnInit, OnDestroy
|
|
|
445
456
|
/** Helper method to compare two arrays of date ranges */
|
|
446
457
|
private _areDateRangesEqual;
|
|
447
458
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent<any>, [null, { optional: true; }, { optional: true; }, null]>;
|
|
448
|
-
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; }; "customDateTimeFormat": { "alias": "customDateTimeFormat"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messageTriggers": { "alias": "messageTriggers"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "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; }; "
|
|
459
|
+
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; }; "customDateTimeFormat": { "alias": "customDateTimeFormat"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messageTriggers": { "alias": "messageTriggers"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedMultipleDates": { "alias": "selectedMultipleDates"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "selectedMultipleDateRanges": { "alias": "selectedMultipleDateRanges"; "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; }; "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; }; "allowMultipleSelection": { "alias": "allowMultipleSelection"; "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; }; "dateRangeFormat": { "alias": "dateRangeFormat"; "required": false; }; "showCalendarLegend": { "alias": "showCalendarLegend"; "required": false; "isSignal": true; }; "legendCol": { "alias": "legendCol"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "selectedDateChange": "selectedDateChange"; "selectedMultipleDatesChange": "selectedMultipleDatesChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "selectedMultipleDateRangesChange": "selectedMultipleDateRangesChange"; "activeViewChange": "activeViewChange"; }, never, ["*"], true, never>;
|
|
449
460
|
static ngAcceptInputType_processInputOnBlur: unknown;
|
|
450
461
|
}
|
|
451
462
|
|
|
@@ -128,14 +128,6 @@ declare class DatetimePickerComponent<D> implements DateTimePicker<D>, OnInit, O
|
|
|
128
128
|
* @deprecated Popover is toggled with f4 key
|
|
129
129
|
*/
|
|
130
130
|
buttonFocusable: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Special days mark, it can be used by passing array of object with
|
|
133
|
-
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
134
|
-
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
135
|
-
* Rule accepts method with FdDate object as a parameter. ex:
|
|
136
|
-
* `rule: (fdDate: FdDate) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
137
|
-
*/
|
|
138
|
-
specialDaysRules: SpecialDayRule<D>[];
|
|
139
131
|
/**
|
|
140
132
|
* Object to customize year grid,
|
|
141
133
|
* Row, Columns and method to display year can be modified
|
|
@@ -192,10 +184,6 @@ declare class DatetimePickerComponent<D> implements DateTimePicker<D>, OnInit, O
|
|
|
192
184
|
readonly onClose: EventEmitter<void>;
|
|
193
185
|
/** Event emitted when datepicker changes it's "touched" state. */
|
|
194
186
|
readonly touched: EventEmitter<void>;
|
|
195
|
-
/** Indicates when datetime input is in invalid state. */
|
|
196
|
-
get isInvalidDateInput(): boolean;
|
|
197
|
-
/** @hidden Reference to the inner calendar component. */
|
|
198
|
-
private set _calendarCmp(value);
|
|
199
187
|
/** @hidden */
|
|
200
188
|
_inputGroupElement: ElementRef;
|
|
201
189
|
/** @hidden */
|
|
@@ -204,6 +192,28 @@ declare class DatetimePickerComponent<D> implements DateTimePicker<D>, OnInit, O
|
|
|
204
192
|
private readonly _formMessageTemplate;
|
|
205
193
|
/** @hidden */
|
|
206
194
|
private readonly _pickerTemplate;
|
|
195
|
+
/**
|
|
196
|
+
* Special days mark, it can be used by passing array of object with
|
|
197
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
198
|
+
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
199
|
+
* Rule accepts method with FdDate object as a parameter. ex:
|
|
200
|
+
* `rule: (fdDate: FdDate) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
201
|
+
*/
|
|
202
|
+
specialDaysRules: i0.InputSignal<SpecialDayRule<D>[]>;
|
|
203
|
+
/**
|
|
204
|
+
* Whether to show the calendar legend below the calendar.
|
|
205
|
+
* The legend displays explanations for special day markers.
|
|
206
|
+
*/
|
|
207
|
+
showCalendarLegend: i0.InputSignalWithTransform<boolean, unknown>;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the calendar legend should display in a single column layout.
|
|
210
|
+
* When false (default), the legend items flow into multiple columns automatically.
|
|
211
|
+
*/
|
|
212
|
+
legendCol: i0.InputSignalWithTransform<boolean, unknown>;
|
|
213
|
+
/** Indicates when datetime input is in invalid state. */
|
|
214
|
+
get isInvalidDateInput(): boolean;
|
|
215
|
+
/** @hidden Reference to the inner calendar component. */
|
|
216
|
+
private set _calendarCmp(value);
|
|
207
217
|
/** @hidden */
|
|
208
218
|
_calendarComponent: CalendarComponent<D>;
|
|
209
219
|
/** @hidden */
|
|
@@ -367,7 +377,7 @@ declare class DatetimePickerComponent<D> implements DateTimePicker<D>, OnInit, O
|
|
|
367
377
|
/** @hidden */
|
|
368
378
|
private _setUpMobileMode;
|
|
369
379
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatetimePickerComponent<any>, [null, null, { optional: true; }, { optional: true; }, null]>;
|
|
370
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatetimePickerComponent<any>, "fd-datetime-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "customDateTimeFormat": { "alias": "customDateTimeFormat"; "required": false; }; "meridian": { "alias": "meridian"; "required": false; }; "displaySeconds": { "alias": "displaySeconds"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messageTriggers": { "alias": "messageTriggers"; "required": false; }; "displayMinutes": { "alias": "displayMinutes"; "required": false; }; "displayHours": { "alias": "displayHours"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "date": { "alias": "date"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "keepTwoDigitsTime": { "alias": "keepTwoDigitsTime"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "
|
|
380
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatetimePickerComponent<any>, "fd-datetime-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "customDateTimeFormat": { "alias": "customDateTimeFormat"; "required": false; }; "meridian": { "alias": "meridian"; "required": false; }; "displaySeconds": { "alias": "displaySeconds"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messageTriggers": { "alias": "messageTriggers"; "required": false; }; "displayMinutes": { "alias": "displayMinutes"; "required": false; }; "displayHours": { "alias": "displayHours"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "date": { "alias": "date"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "keepTwoDigitsTime": { "alias": "keepTwoDigitsTime"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "spinnerButtons": { "alias": "spinnerButtons"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showFooter": { "alias": "showFooter"; "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; }; "isFullWidth": { "alias": "isFullWidth"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; "isSignal": true; }; "showCalendarLegend": { "alias": "showCalendarLegend"; "required": false; "isSignal": true; }; "legendCol": { "alias": "legendCol"; "required": false; "isSignal": true; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "activeViewChange": "activeViewChange"; "dateChange": "dateChange"; "calendarChange": "calendarChange"; "timeChange": "timeChange"; "onClose": "onClose"; "touched": "touched"; }, never, ["*"], true, never>;
|
|
371
381
|
static ngAcceptInputType_processInputOnBlur: unknown;
|
|
372
382
|
}
|
|
373
383
|
|