@coreui/angular-pro 5.2.20 → 5.2.21
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/esm2022/lib/calendar/calendar/calendar.component.mjs +312 -410
- package/esm2022/lib/calendar/calendar-month/calendar-class-month.pipe.mjs +3 -2
- package/esm2022/lib/calendar/calendar-month/calendar-class-row.pipe.mjs +2 -4
- package/esm2022/lib/calendar/calendar-month/calendar-day.directive.mjs +2 -2
- package/esm2022/lib/calendar/calendar-month/calendar-month.component.mjs +182 -262
- package/esm2022/lib/calendar/calendar-month/calendar-row.directive.mjs +33 -31
- package/esm2022/lib/calendar/calendar-navigation/calendar-navigation.component.mjs +41 -13
- package/esm2022/lib/calendar/calendar.service.mjs +13 -10
- package/esm2022/lib/calendar/calendar.utils.mjs +19 -12
- package/esm2022/lib/date-picker/date-picker.component.mjs +23 -26
- package/esm2022/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +193 -295
- package/fesm2022/coreui-angular-pro.mjs +803 -1044
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/calendar/calendar/calendar.component.d.ts +60 -80
- package/lib/calendar/calendar-month/calendar-class-row.pipe.d.ts +2 -1
- package/lib/calendar/calendar-month/calendar-month.component.d.ts +33 -59
- package/lib/calendar/calendar-month/calendar-row.directive.d.ts +1 -1
- package/lib/calendar/calendar-navigation/calendar-navigation.component.d.ts +16 -6
- package/lib/calendar/calendar.service.d.ts +11 -3
- package/lib/calendar/calendar.utils.d.ts +4 -3
- package/lib/date-picker/date-picker.component.d.ts +9 -10
- package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +65 -94
- package/package.json +2 -2
|
@@ -1,57 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
2
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
3
|
-
import {
|
|
4
|
-
import { CalendarMonthComponent } from '../calendar-month/calendar-month.component';
|
|
3
|
+
import { DateFilterType, DayFormatType, DaysOfWeek, SelectionType, WeekdayFormatType } from '../calendar.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CalendarComponent implements OnInit {
|
|
5
|
+
export declare class CalendarComponent implements OnInit, AfterViewInit {
|
|
7
6
|
#private;
|
|
8
|
-
|
|
9
|
-
constructor(calendarService: CalendarService);
|
|
7
|
+
readonly calendarDateChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
10
8
|
/**
|
|
11
9
|
* Default date of the component
|
|
12
10
|
* @type Date | string
|
|
13
11
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
readonly calendarDateModel: import("@angular/core").ModelSignal<string | number | Date>;
|
|
13
|
+
readonly calendarDate: import("@angular/core").Signal<Date>;
|
|
14
|
+
readonly calendarDateEffect: import("@angular/core").EffectRef;
|
|
17
15
|
/**
|
|
18
16
|
* The number of calendars that render on desktop devices.
|
|
19
17
|
* @type number
|
|
20
18
|
* default 1
|
|
21
19
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
private _calendars;
|
|
25
|
-
get calendarsArray(): number[];
|
|
20
|
+
readonly calendars: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
21
|
+
readonly calendarsArray: import("@angular/core").Signal<number[]>;
|
|
26
22
|
/**
|
|
27
23
|
* Set the format of day name.
|
|
28
24
|
* @default 'numeric'
|
|
29
25
|
* @type DayFormatType
|
|
30
26
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
private _dayFormat;
|
|
27
|
+
readonly dayFormat: import("@angular/core").InputSignal<DayFormatType>;
|
|
28
|
+
readonly dayFormatEffect: import("@angular/core").EffectRef;
|
|
34
29
|
/**
|
|
35
30
|
* Specify the list of dates that cannot be selected.
|
|
36
|
-
* @type
|
|
31
|
+
* @type (Date | Date[])[]
|
|
37
32
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
readonly disabledDates: import("@angular/core").InputSignal<(Date | Date[])[]>;
|
|
34
|
+
readonly disabledDatesEffect: import("@angular/core").EffectRef;
|
|
35
|
+
readonly endDateChange: import("@angular/core").OutputEmitterRef<Date | null>;
|
|
36
|
+
readonly startDateChange: import("@angular/core").OutputEmitterRef<Date | null>;
|
|
41
37
|
/**
|
|
42
38
|
* Initial selected date.
|
|
43
39
|
* @type (Date | null)
|
|
44
40
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
_startDate: Date | null;
|
|
41
|
+
readonly startDateModel: import("@angular/core").ModelSignal<string | number | Date | null>;
|
|
42
|
+
readonly startDate: import("@angular/core").Signal<Date | null>;
|
|
48
43
|
/**
|
|
49
44
|
* Initial selected to date (range).
|
|
50
45
|
* @type Date | null
|
|
51
46
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
readonly endDateModel: import("@angular/core").ModelSignal<string | number | Date | null>;
|
|
48
|
+
readonly endDate: import("@angular/core").Signal<Date | null>;
|
|
49
|
+
readonly datesEffect: import("@angular/core").EffectRef;
|
|
55
50
|
/**
|
|
56
51
|
* Sets the day of start week.
|
|
57
52
|
* - 0 - Sunday,
|
|
@@ -65,115 +60,109 @@ export declare class CalendarComponent implements OnInit {
|
|
|
65
60
|
* @type number
|
|
66
61
|
* @default 1
|
|
67
62
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
private _firstDayOfWeek;
|
|
63
|
+
readonly firstDayOfWeek: import("@angular/core").InputSignal<DaysOfWeek>;
|
|
64
|
+
readonly firstDayOfWeekEffect: import("@angular/core").EffectRef;
|
|
71
65
|
/**
|
|
72
66
|
* Sets the default locale for components. If not set, it is inherited from the browser.
|
|
73
67
|
* @default 'default'
|
|
74
68
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
private _locale;
|
|
69
|
+
readonly locale: import("@angular/core").InputSignal<string>;
|
|
70
|
+
readonly localeEffect: import("@angular/core").EffectRef;
|
|
78
71
|
/**
|
|
79
72
|
* Max selectable date.
|
|
80
73
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
private _maxDate;
|
|
74
|
+
readonly maxDateInput: import("@angular/core").InputSignal<string | number | Date | null>;
|
|
75
|
+
readonly maxDateEffect: import("@angular/core").EffectRef;
|
|
84
76
|
/**
|
|
85
77
|
* Min selectable date.
|
|
86
78
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
private _minDate;
|
|
79
|
+
readonly minDateInput: import("@angular/core").InputSignal<string | number | Date | null>;
|
|
80
|
+
readonly minDateEffect: import("@angular/core").EffectRef;
|
|
90
81
|
/**
|
|
91
82
|
* Show navigation.
|
|
92
83
|
* @type boolean
|
|
93
84
|
*/
|
|
94
|
-
|
|
95
|
-
get navigation(): boolean;
|
|
96
|
-
private _navigation;
|
|
85
|
+
readonly navigation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
97
86
|
/**
|
|
98
87
|
* Reorder year-month navigation, and render year first.
|
|
99
88
|
* @type boolean
|
|
100
89
|
* @default false
|
|
101
90
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
private _navYearFirst;
|
|
91
|
+
readonly navYearFirst: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
92
|
+
readonly navYearFirstEffect: import("@angular/core").EffectRef;
|
|
105
93
|
/**
|
|
106
94
|
* Allow range selection.
|
|
107
95
|
* @type boolean
|
|
108
96
|
* @default false
|
|
109
97
|
*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
private _range;
|
|
98
|
+
readonly range: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
readonly rangeEffect: import("@angular/core").EffectRef;
|
|
113
100
|
/**
|
|
114
101
|
* Set calendar view.
|
|
115
102
|
* @type 'days' | 'months' | 'years'
|
|
116
103
|
* @default 'days'
|
|
117
104
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
private _view;
|
|
105
|
+
readonly view: import("@angular/core").ModelSignal<"days" | "months" | "years">;
|
|
106
|
+
readonly viewEffect: import("@angular/core").EffectRef;
|
|
121
107
|
/**
|
|
122
108
|
* Set length or format of day name.
|
|
123
109
|
* @type number | 'long' | 'narrow' | 'short'
|
|
124
110
|
* @default 'short'
|
|
125
111
|
*/
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
readonly weekdayFormat: import("@angular/core").InputSignal<WeekdayFormatType>;
|
|
113
|
+
readonly weekdayFormatEffect: import("@angular/core").EffectRef;
|
|
114
|
+
readonly dateFilter: import("@angular/core").InputSignal<DateFilterType | undefined>;
|
|
115
|
+
readonly dateFilterEffect: import("@angular/core").EffectRef;
|
|
130
116
|
/**
|
|
131
117
|
* Set whether days in adjacent months shown before or after the current month are selectable. This only applies if the `showAdjacentDays` option is set to true.
|
|
132
118
|
* @type boolean
|
|
133
119
|
* @default false
|
|
134
120
|
* @since 4.4.10
|
|
135
121
|
*/
|
|
136
|
-
|
|
122
|
+
readonly selectAdjacentDays: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
readonly selectAdjacentDaysEffect: import("@angular/core").EffectRef;
|
|
137
124
|
/**
|
|
138
125
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
139
126
|
* @type boolean
|
|
140
127
|
* @default true
|
|
141
128
|
* @since 4.4.10
|
|
142
129
|
*/
|
|
143
|
-
|
|
130
|
+
readonly showAdjacentDays: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
131
|
+
readonly showAdjacentDaysEffect: import("@angular/core").EffectRef;
|
|
144
132
|
/**
|
|
145
133
|
* Specify the type of date selection as day, week, month, or year.
|
|
146
134
|
* @type 'day' | 'week' | 'month' | 'year'
|
|
147
135
|
* @default 'day'
|
|
148
136
|
* @since 5.0.0
|
|
149
137
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
138
|
+
readonly selectionType: import("@angular/core").InputSignal<SelectionType>;
|
|
139
|
+
readonly selectionTypeEffect: import("@angular/core").EffectRef;
|
|
152
140
|
/**
|
|
153
141
|
* Set whether to display week numbers in the calendar.
|
|
154
142
|
* @type boolean
|
|
155
143
|
* @default false
|
|
156
144
|
* @since 5.0.0
|
|
157
145
|
*/
|
|
158
|
-
|
|
146
|
+
readonly showWeekNumber: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
147
|
+
readonly showWeekNumberEffect: import("@angular/core").EffectRef;
|
|
159
148
|
/**
|
|
160
149
|
* Label displayed over week numbers in the calendar.
|
|
161
150
|
* @type string
|
|
162
151
|
* @default undefined
|
|
163
152
|
* @since 5.0.0
|
|
164
153
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
calendarMonths: QueryList<CalendarMonthComponent>;
|
|
154
|
+
readonly weekNumbersLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
155
|
+
readonly weekNumbersLabelEffect: import("@angular/core").EffectRef;
|
|
156
|
+
readonly ariaNextMonthLabel: import("@angular/core").InputSignal<string>;
|
|
157
|
+
readonly ariaNextYearLabel: import("@angular/core").InputSignal<string>;
|
|
158
|
+
readonly ariaPrevMonthLabel: import("@angular/core").InputSignal<string>;
|
|
159
|
+
readonly ariaPrevYearLabel: import("@angular/core").InputSignal<string>;
|
|
160
|
+
readonly calendarCellHover: import("@angular/core").OutputEmitterRef<Date | null>;
|
|
161
|
+
readonly hoverDate: import("@angular/core").WritableSignal<Date | null>;
|
|
162
|
+
readonly hoverDateEffect: import("@angular/core").EffectRef;
|
|
163
|
+
readonly hostClasses: import("@angular/core").Signal<Record<string, boolean>>;
|
|
176
164
|
ngOnInit(): void;
|
|
165
|
+
ngAfterViewInit(): void;
|
|
177
166
|
calendarStateSubscribe(): void;
|
|
178
167
|
setCalendarPage(years: number, months?: number, setMonth?: number): void;
|
|
179
168
|
handleNavigationClick(direction: 'prev' | 'next', years?: boolean): void;
|
|
@@ -183,15 +172,6 @@ export declare class CalendarComponent implements OnInit {
|
|
|
183
172
|
*/
|
|
184
173
|
clearDates(): void;
|
|
185
174
|
handleFocusChange($event: FocusOrigin): void;
|
|
186
|
-
protected readonly getCalendarDate: (calendarDate: Date, order: number, view: "days" | "months" | "years") => Date;
|
|
187
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
188
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "c-calendar", ["cCalendar"], { "
|
|
189
|
-
static ngAcceptInputType_calendars: unknown;
|
|
190
|
-
static ngAcceptInputType_firstDayOfWeek: unknown;
|
|
191
|
-
static ngAcceptInputType_navigation: unknown;
|
|
192
|
-
static ngAcceptInputType_navYearFirst: unknown;
|
|
193
|
-
static ngAcceptInputType_range: unknown;
|
|
194
|
-
static ngAcceptInputType_selectAdjacentDays: unknown;
|
|
195
|
-
static ngAcceptInputType_showAdjacentDays: unknown;
|
|
196
|
-
static ngAcceptInputType_showWeekNumber: unknown;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "c-calendar", ["cCalendar"], { "calendarDateModel": { "alias": "calendarDate"; "required": false; "isSignal": true; }; "calendars": { "alias": "calendars"; "required": false; "isSignal": true; }; "dayFormat": { "alias": "dayFormat"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "startDateModel": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDateModel": { "alias": "endDate"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "maxDateInput": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDateInput": { "alias": "minDate"; "required": false; "isSignal": true; }; "navigation": { "alias": "navigation"; "required": false; "isSignal": true; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "selectAdjacentDays": { "alias": "selectAdjacentDays"; "required": false; "isSignal": true; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; "isSignal": true; }; "selectionType": { "alias": "selectionType"; "required": false; "isSignal": true; }; "showWeekNumber": { "alias": "showWeekNumber"; "required": false; "isSignal": true; }; "weekNumbersLabel": { "alias": "weekNumbersLabel"; "required": false; "isSignal": true; }; "ariaNextMonthLabel": { "alias": "ariaNextMonthLabel"; "required": false; "isSignal": true; }; "ariaNextYearLabel": { "alias": "ariaNextYearLabel"; "required": false; "isSignal": true; }; "ariaPrevMonthLabel": { "alias": "ariaPrevMonthLabel"; "required": false; "isSignal": true; }; "ariaPrevYearLabel": { "alias": "ariaPrevYearLabel"; "required": false; "isSignal": true; }; }, { "calendarDateChange": "calendarDateChange"; "calendarDateModel": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; "startDateModel": "startDateChange"; "endDateModel": "endDateChange"; "view": "viewChange"; "calendarCellHover": "calendarCellHover"; }, never, never, true, never>;
|
|
197
177
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SelectionType } from '../calendar.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CalendarClassRowPipe implements PipeTransform {
|
|
4
5
|
transform(week: {
|
|
@@ -13,7 +14,7 @@ export declare class CalendarClassRowPipe implements PipeTransform {
|
|
|
13
14
|
disabledDates: any;
|
|
14
15
|
dateFilter: any;
|
|
15
16
|
calendarDate: any;
|
|
16
|
-
selectionType:
|
|
17
|
+
selectionType: SelectionType;
|
|
17
18
|
}): {
|
|
18
19
|
'calendar-row': boolean;
|
|
19
20
|
disabled: boolean;
|
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { QueryList } from '@angular/core';
|
|
2
|
+
import { DateFilterType, DayFormatType, MonthDetails, SelectionType } from '../calendar.service';
|
|
3
3
|
import { CalendarDayDirective } from './calendar-day.directive';
|
|
4
4
|
import { CalendarRowDirective } from './calendar-row.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CalendarMonthComponent
|
|
6
|
+
export declare class CalendarMonthComponent {
|
|
7
7
|
#private;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
addMonths: number
|
|
8
|
+
constructor();
|
|
9
|
+
readonly pageIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
10
|
+
readonly addMonths: import("@angular/core").Signal<number>;
|
|
11
11
|
/**
|
|
12
12
|
* Initial selected date.
|
|
13
13
|
* @type (Date | null)
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
get startDate(): Date | null;
|
|
17
|
-
_startDate: Date | null;
|
|
15
|
+
readonly startDate: import("@angular/core").WritableSignal<Date | null>;
|
|
18
16
|
/**
|
|
19
17
|
* Initial selected to date (range).
|
|
20
18
|
* @type Date | null
|
|
21
19
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_endDate: Date | null;
|
|
20
|
+
readonly endDate: import("@angular/core").WritableSignal<Date | null>;
|
|
21
|
+
readonly datesEffect: import("@angular/core").EffectRef;
|
|
25
22
|
/**
|
|
26
23
|
* Specify the list of dates that cannot be selected.
|
|
27
24
|
* @type Date[] | Date[][]
|
|
28
25
|
*/
|
|
29
|
-
|
|
30
|
-
get disabledDates(): (Date[] | Date)[];
|
|
31
|
-
private _disabledDates;
|
|
26
|
+
readonly disabledDates: import("@angular/core").WritableSignal<(Date | Date[])[]>;
|
|
32
27
|
/**
|
|
33
28
|
* Sets the day of start week.
|
|
34
29
|
* - 0 - Sunday,
|
|
@@ -39,81 +34,64 @@ export declare class CalendarMonthComponent implements OnInit {
|
|
|
39
34
|
* - 5 - Friday,
|
|
40
35
|
* - 6 - Saturday,
|
|
41
36
|
*/
|
|
42
|
-
firstDayOfWeek: number
|
|
37
|
+
readonly firstDayOfWeek: import("@angular/core").WritableSignal<number>;
|
|
43
38
|
/**
|
|
44
39
|
* Sets the default locale for components. If not set, it is inherited from the browser.
|
|
45
40
|
* @default 'default'
|
|
46
41
|
*/
|
|
47
|
-
|
|
48
|
-
get locale(): string;
|
|
42
|
+
readonly locale: import("@angular/core").WritableSignal<string>;
|
|
49
43
|
/**
|
|
50
44
|
* Allow range selection.
|
|
51
45
|
* @type boolean
|
|
52
46
|
* @default false
|
|
53
47
|
*/
|
|
54
|
-
range: boolean
|
|
48
|
+
readonly range: import("@angular/core").WritableSignal<boolean>;
|
|
55
49
|
/**
|
|
56
50
|
* Set length or format of day name.
|
|
57
51
|
* @type number | 'long' | 'narrow' | 'short'
|
|
58
52
|
* @default 'short'
|
|
59
53
|
*/
|
|
60
|
-
weekdayFormat:
|
|
54
|
+
readonly weekdayFormat: import("@angular/core").WritableSignal<number | "long" | "short" | "narrow">;
|
|
61
55
|
/**
|
|
62
56
|
* Set calendar view.
|
|
63
57
|
* @type 'days' | 'months' | 'years'
|
|
64
58
|
* @default 'days'
|
|
65
59
|
*/
|
|
66
|
-
|
|
67
|
-
get view(): "days" | "months" | "years";
|
|
60
|
+
readonly view: import("@angular/core").WritableSignal<"days" | "months" | "years">;
|
|
68
61
|
/**
|
|
69
62
|
* Max selectable date.
|
|
70
63
|
*/
|
|
71
|
-
|
|
72
|
-
get maxDate(): Date | null;
|
|
73
|
-
private _maxDate;
|
|
64
|
+
readonly maxDate: import("@angular/core").WritableSignal<Date | null>;
|
|
74
65
|
/**
|
|
75
66
|
* Min selectable date.
|
|
76
67
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
private _minDate;
|
|
80
|
-
listOfMonths: import("@angular/core").Signal<{
|
|
68
|
+
readonly minDate: import("@angular/core").WritableSignal<Date | null>;
|
|
69
|
+
readonly listOfMonths: import("@angular/core").Signal<{
|
|
81
70
|
year: number;
|
|
82
71
|
month: string;
|
|
83
72
|
}[][]>;
|
|
84
|
-
listOfYears: import("@angular/core").Signal<number[][]>;
|
|
73
|
+
readonly listOfYears: import("@angular/core").Signal<number[][]>;
|
|
85
74
|
/**
|
|
86
75
|
* Default date of the component
|
|
87
76
|
* @type Date
|
|
88
77
|
*/
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
78
|
+
readonly calendarDate: import("@angular/core").WritableSignal<Date>;
|
|
79
|
+
readonly date: import("@angular/core").Signal<Date>;
|
|
80
|
+
readonly calendarDateEffect: import("@angular/core").EffectRef;
|
|
92
81
|
calendarDays: QueryList<CalendarDayDirective>;
|
|
93
82
|
calendarRows: QueryList<CalendarRowDirective>;
|
|
94
|
-
dateFilter: DateFilterType
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
private _monthDetails;
|
|
104
|
-
get monthDetails(): {
|
|
105
|
-
weekNumber: number;
|
|
106
|
-
days: {
|
|
107
|
-
date: Date;
|
|
108
|
-
month: string;
|
|
109
|
-
}[];
|
|
110
|
-
}[];
|
|
111
|
-
get weekDays(): {
|
|
83
|
+
readonly dateFilter: import("@angular/core").WritableSignal<DateFilterType | undefined>;
|
|
84
|
+
readonly dayFormat: import("@angular/core").WritableSignal<DayFormatType>;
|
|
85
|
+
readonly selectAdjacentDays: import("@angular/core").WritableSignal<boolean>;
|
|
86
|
+
readonly showAdjacentDays: import("@angular/core").WritableSignal<boolean>;
|
|
87
|
+
readonly selectionType: import("@angular/core").WritableSignal<SelectionType>;
|
|
88
|
+
readonly showWeekNumber: import("@angular/core").WritableSignal<boolean>;
|
|
89
|
+
readonly weekNumbersLabel: import("@angular/core").WritableSignal<string>;
|
|
90
|
+
readonly monthDetails: import("@angular/core").Signal<MonthDetails>;
|
|
91
|
+
readonly weekDays: import("@angular/core").Signal<{
|
|
112
92
|
date: Date;
|
|
113
93
|
month: string;
|
|
114
|
-
}[]
|
|
115
|
-
ngOnInit(): void;
|
|
116
|
-
setMonthDetails(date?: Date): void;
|
|
94
|
+
}[]>;
|
|
117
95
|
yearNumber(year: any): string;
|
|
118
96
|
isDateDisabled(date: Date): boolean;
|
|
119
97
|
calendarCellTitle(date: Date): string;
|
|
@@ -130,12 +108,8 @@ export declare class CalendarMonthComponent implements OnInit {
|
|
|
130
108
|
calendarStateSubscribe(): void;
|
|
131
109
|
getMonthStart(index: number): Date;
|
|
132
110
|
getMonthEnd(index: number): Date;
|
|
133
|
-
protected readonly isDateInRangeDisabled: (startDate?: Date | null, endDate?: Date | null, dates?: (Date | Date[])[]) => boolean;
|
|
134
|
-
protected readonly isDateBetweenMinMax: (date: Date | null, min: Date | null, max: Date | null) => boolean;
|
|
135
111
|
getYearStart(year: number): Date;
|
|
136
112
|
getYearEnd(year: number): Date;
|
|
137
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthComponent, never>;
|
|
138
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthComponent, "c-calendar-month", ["cCalendarMonth"], { "
|
|
139
|
-
static ngAcceptInputType_firstDayOfWeek: unknown;
|
|
140
|
-
static ngAcceptInputType_range: unknown;
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthComponent, "c-calendar-month", ["cCalendarMonth"], { "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
141
115
|
}
|
|
@@ -34,7 +34,7 @@ export declare class CalendarRowDirective implements FocusableOption {
|
|
|
34
34
|
private locale;
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
current: boolean;
|
|
37
|
-
|
|
37
|
+
readonly tabindex: import("@angular/core").WritableSignal<number>;
|
|
38
38
|
get selectEndDate(): boolean;
|
|
39
39
|
get hostClasses(): any;
|
|
40
40
|
get ariaSelected(): true | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectionType } from '../calendar.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
interface INavigationClick {
|
|
4
4
|
direction: 'prev' | 'next';
|
|
@@ -6,22 +6,32 @@ interface INavigationClick {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class CalendarNavigationComponent {
|
|
8
8
|
#private;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly addMonths: import("@angular/core").
|
|
9
|
+
constructor();
|
|
10
|
+
readonly pageIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
11
|
+
readonly addMonths: import("@angular/core").Signal<number>;
|
|
12
12
|
readonly navigation: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
readonly maxDate: import("@angular/core").WritableSignal<Date | null>;
|
|
14
|
+
readonly minDate: import("@angular/core").WritableSignal<Date | null>;
|
|
13
15
|
readonly calendarDate: import("@angular/core").WritableSignal<Date>;
|
|
14
16
|
readonly navYearFirst: import("@angular/core").WritableSignal<boolean>;
|
|
15
17
|
readonly locale: import("@angular/core").WritableSignal<string>;
|
|
16
18
|
readonly view: import("@angular/core").WritableSignal<"days" | "months" | "years">;
|
|
17
|
-
selectionType: SelectionType
|
|
19
|
+
readonly selectionType: import("@angular/core").WritableSignal<SelectionType>;
|
|
20
|
+
readonly ariaNextMonthLabel: import("@angular/core").InputSignal<string>;
|
|
21
|
+
readonly ariaNextYearLabel: import("@angular/core").InputSignal<string>;
|
|
22
|
+
readonly ariaPrevMonthLabel: import("@angular/core").InputSignal<string>;
|
|
23
|
+
readonly ariaPrevYearLabel: import("@angular/core").InputSignal<string>;
|
|
18
24
|
readonly navigationClick: import("@angular/core").OutputEmitterRef<INavigationClick>;
|
|
19
25
|
readonly date: import("@angular/core").Signal<Date>;
|
|
26
|
+
readonly disableNextMonth: import("@angular/core").Signal<boolean>;
|
|
27
|
+
readonly disablePrevMonth: import("@angular/core").Signal<boolean>;
|
|
28
|
+
readonly disableNextYear: import("@angular/core").Signal<boolean>;
|
|
29
|
+
readonly disablePrevYear: import("@angular/core").Signal<boolean>;
|
|
20
30
|
calendarStateSubscribe(): void;
|
|
21
31
|
setView(view: 'days' | 'months' | 'years'): void;
|
|
22
32
|
handleNavigationClick(direction: 'prev' | 'next', years?: boolean): void;
|
|
23
33
|
handleNavigationKeyUp($event: KeyboardEvent, direction: 'prev' | 'next', years?: boolean): void;
|
|
24
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarNavigationComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarNavigationComponent, "c-calendar-navigation", never, { "
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarNavigationComponent, "c-calendar-navigation", never, { "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "navigation": { "alias": "navigation"; "required": false; "isSignal": true; }; "ariaNextMonthLabel": { "alias": "ariaNextMonthLabel"; "required": false; "isSignal": true; }; "ariaNextYearLabel": { "alias": "ariaNextYearLabel"; "required": false; "isSignal": true; }; "ariaPrevMonthLabel": { "alias": "ariaPrevMonthLabel"; "required": false; "isSignal": true; }; "ariaPrevYearLabel": { "alias": "ariaPrevYearLabel"; "required": false; "isSignal": true; }; }, { "navigationClick": "navigationClick"; }, never, never, true, never>;
|
|
26
36
|
}
|
|
27
37
|
export {};
|
|
@@ -4,6 +4,14 @@ export type DateFilterType = (date: Date) => boolean;
|
|
|
4
4
|
export type DayFormatType = 'numeric' | '2-digit' | ((date: Date) => string | number);
|
|
5
5
|
export type WeekdayFormatType = number | 'long' | 'narrow' | 'short' | ((date: Date) => string | number);
|
|
6
6
|
export type SelectionType = 'day' | 'week' | 'month' | 'year';
|
|
7
|
+
export type DaysOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
export type MonthDetails = {
|
|
9
|
+
weekNumber: number;
|
|
10
|
+
days: {
|
|
11
|
+
date: Date;
|
|
12
|
+
month: string;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
7
15
|
export interface ICalendarState {
|
|
8
16
|
[key: string]: any;
|
|
9
17
|
calendarDate?: Date | null;
|
|
@@ -25,14 +33,14 @@ export interface ICalendarState {
|
|
|
25
33
|
selectionType?: SelectionType;
|
|
26
34
|
showWeekNumber?: boolean;
|
|
27
35
|
weekNumbersLabel?: string;
|
|
36
|
+
firstDayOfWeek?: DaysOfWeek;
|
|
28
37
|
}
|
|
29
38
|
export declare class CalendarService {
|
|
39
|
+
#private;
|
|
30
40
|
private keyValueDiffers;
|
|
31
41
|
constructor(keyValueDiffers: KeyValueDiffers);
|
|
32
|
-
private readonly differ;
|
|
33
42
|
calendarStateObject: ICalendarState;
|
|
34
|
-
|
|
35
|
-
calendarState$: import("rxjs").Observable<ICalendarState>;
|
|
43
|
+
readonly calendarState$: import("rxjs").Observable<ICalendarState>;
|
|
36
44
|
update(state: ICalendarState): void;
|
|
37
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarService, never>;
|
|
38
46
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarService>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SelectionType } from './calendar.service';
|
|
1
|
+
import { DateFilterType, SelectionType } from './calendar.service';
|
|
2
2
|
export declare function dateTransform(value: Date | number): Date;
|
|
3
3
|
export declare const convertIsoWeekToDate: (isoWeek: string) => Date;
|
|
4
|
-
export declare const convertToDateObject: (date: Date | string, selectionType?: SelectionType) => Date;
|
|
4
|
+
export declare const convertToDateObject: (date: Date | string | number, selectionType?: SelectionType, propName?: string) => Date;
|
|
5
5
|
export declare const convertToLocalDate: (d: Date, locale: string, options?: {}) => string;
|
|
6
6
|
export declare const convertToLocalTime: (d: Date, locale: string, options?: {}) => string;
|
|
7
7
|
export declare const createGroupsInArray: <T>(arr: T[], numberOfGroups: number) => T[][];
|
|
@@ -34,6 +34,7 @@ export declare const isMonthSelected: (date: Date | null, start: Date | null, en
|
|
|
34
34
|
export declare const isYearSelected: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
|
|
35
35
|
export declare const isEndDate: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
|
|
36
36
|
export declare const isLastDayOfMonth: (date: Date) => boolean;
|
|
37
|
+
export declare const equalDates: (a: Date | null, b: Date | null) => boolean;
|
|
37
38
|
export declare const isSameDateAs: (date: Date, date2: Date) => boolean;
|
|
38
39
|
export declare const isSameMonthAs: (date: Date, date2: Date) => boolean;
|
|
39
40
|
export declare const isSameYearAs: (date: Date, date2: Date) => boolean;
|
|
@@ -43,4 +44,4 @@ export declare const isThisMonth: (date: Date, index: number) => boolean;
|
|
|
43
44
|
export declare const isThisYear: (year: number) => boolean;
|
|
44
45
|
export declare const isValidDate: (date: number | string | Date) => boolean;
|
|
45
46
|
export declare const tryDate: (value: string | number | Date, propName?: string) => Date;
|
|
46
|
-
export declare const isDateInRangeDisabled: (startDate?: Date | null, endDate?: Date | null, dates?: (Date | Date[])[]) => boolean;
|
|
47
|
+
export declare const isDateInRangeDisabled: (startDate?: Date | null, endDate?: Date | null, dates?: (Date | Date[])[], dateFilter?: DateFilterType) => boolean;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModelSignal } from '@angular/core';
|
|
2
2
|
import { DateRangePickerComponent } from '../date-range-picker';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DatePickerComponent extends DateRangePickerComponent {
|
|
5
|
-
constructor(breakpointObserver: BreakpointObserver);
|
|
6
|
-
placeholder: string;
|
|
7
5
|
readonly dateChange: import("@angular/core").OutputEmitterRef<Date | null | undefined>;
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
readonly calendars: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
7
|
+
readonly placeholder: import("@angular/core").InputSignal<string | string[]>;
|
|
8
|
+
readonly range: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
readonly endDate: import("@angular/core").WritableSignal<null>;
|
|
10
|
+
readonly startDateModel: ModelSignal<Date | null>;
|
|
11
|
+
get date(): Date | null;
|
|
12
|
+
writeValue(value: Date | null): void;
|
|
14
13
|
subscribeDateChange(subscribe?: boolean): void;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "c-date-picker", ["cDatePicker"], { "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "c-date-picker", ["cDatePicker"], { "calendars": { "alias": "calendars"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "startDateModel": { "alias": "date"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; "startDateModel": "dateChange"; }, never, ["*"], true, never>;
|
|
17
16
|
}
|