@netwin/angular-datetime-picker 19.0.0 → 20.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/assets/style/picker.min.css +1 -1
  2. package/fesm2022/netwin-angular-datetime-picker.mjs +813 -3150
  3. package/fesm2022/netwin-angular-datetime-picker.mjs.map +1 -1
  4. package/index.d.ts +1474 -3
  5. package/package.json +4 -4
  6. package/lib/date-time/adapter/date-time-adapter.class.d.ts +0 -193
  7. package/lib/date-time/adapter/date-time-format.class.d.ts +0 -15
  8. package/lib/date-time/adapter/native-date-time-adapter.class.d.ts +0 -72
  9. package/lib/date-time/adapter/native-date-time-format.class.d.ts +0 -5
  10. package/lib/date-time/adapter/native-date-time.module.d.ts +0 -12
  11. package/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class.d.ts +0 -67
  12. package/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-format.class.d.ts +0 -5
  13. package/lib/date-time/calendar-body.component.d.ts +0 -79
  14. package/lib/date-time/calendar-month-view.component.d.ts +0 -141
  15. package/lib/date-time/calendar-multi-year-view.component.d.ts +0 -107
  16. package/lib/date-time/calendar-year-view.component.d.ts +0 -120
  17. package/lib/date-time/calendar.component.d.ts +0 -168
  18. package/lib/date-time/date-time-inline.component.d.ts +0 -115
  19. package/lib/date-time/date-time-picker-container.component.d.ts +0 -131
  20. package/lib/date-time/date-time-picker-input.directive.d.ts +0 -172
  21. package/lib/date-time/date-time-picker-intl.service.d.ts +0 -53
  22. package/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -23
  23. package/lib/date-time/date-time-picker.animations.d.ts +0 -8
  24. package/lib/date-time/date-time-picker.component.d.ts +0 -171
  25. package/lib/date-time/date-time.class.d.ts +0 -103
  26. package/lib/date-time/date-time.module.d.ts +0 -22
  27. package/lib/date-time/numberedFixLen.pipe.d.ts +0 -10
  28. package/lib/date-time/options-provider.d.ts +0 -23
  29. package/lib/date-time/timer-box.component.d.ts +0 -42
  30. package/lib/date-time/timer.component.d.ts +0 -131
  31. package/lib/dialog/dialog-config.class.d.ts +0 -169
  32. package/lib/dialog/dialog-container.component.d.ts +0 -69
  33. package/lib/dialog/dialog-ref.class.d.ts +0 -51
  34. package/lib/dialog/dialog.module.d.ts +0 -11
  35. package/lib/dialog/dialog.service.d.ts +0 -76
  36. package/lib/utils/array.utils.d.ts +0 -2
  37. package/lib/utils/constants.d.ts +0 -16
  38. package/lib/utils/date.utils.d.ts +0 -9
  39. package/lib/utils/index.d.ts +0 -4
  40. package/lib/utils/object.utils.d.ts +0 -8
  41. package/public_api.d.ts +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwin/angular-datetime-picker",
3
- "version": "19.0.0",
3
+ "version": "20.0.0-rc.1",
4
4
  "description": "Angular Date Time Picker",
5
5
  "keywords": [
6
6
  "Angular",
@@ -24,9 +24,9 @@
24
24
  "access": "public"
25
25
  },
26
26
  "peerDependencies": {
27
- "@angular/common": "^19.0.0",
28
- "@angular/core": "^19.0.0",
29
- "@angular/cdk": "^19.0.0"
27
+ "@angular/common": "^20.0.0",
28
+ "@angular/core": "^20.0.0",
29
+ "@angular/cdk": "^20.0.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.8.1"
@@ -1,193 +0,0 @@
1
- /**
2
- * date-time-adapter.class
3
- */
4
- import { InjectionToken } from '@angular/core';
5
- import { Observable, Subject } from 'rxjs';
6
- /** InjectionToken for date time picker that can be used to override default locale code. */
7
- export declare const OWL_DATE_TIME_LOCALE: InjectionToken<string>;
8
- /** @docs-private */
9
- export declare function OWL_DATE_TIME_LOCALE_FACTORY(): string;
10
- /** Provider for OWL_DATE_TIME_LOCALE injection token. */
11
- export declare const OWL_DATE_TIME_LOCALE_PROVIDER: {
12
- provide: InjectionToken<string>;
13
- useExisting: InjectionToken<string>;
14
- };
15
- export declare abstract class DateTimeAdapter<T> {
16
- /** The locale to use for all dates. */
17
- protected locale: any;
18
- /** A stream that emits when the locale changes. */
19
- protected _localeChanges: Subject<string>;
20
- get localeChanges(): Observable<string>;
21
- /** total milliseconds in a day. */
22
- protected readonly millisecondsInDay = 86400000;
23
- /** total milliseconds in a minute. */
24
- protected readonly milliseondsInMinute = 60000;
25
- /**
26
- * Get the year of the given date
27
- */
28
- abstract getYear(date: T): number;
29
- /**
30
- * Get the month of the given date
31
- * 0 -- January
32
- * 11 -- December
33
- */
34
- abstract getMonth(date: T): number;
35
- /**
36
- * Get the day of the week of the given date
37
- * 0 -- Sunday
38
- * 6 -- Saturday
39
- */
40
- abstract getDay(date: T): number;
41
- /**
42
- * Get the day num of the given date
43
- */
44
- abstract getDate(date: T): number;
45
- /**
46
- * Get the hours of the given date
47
- */
48
- abstract getHours(date: T): number;
49
- /**
50
- * Get the minutes of the given date
51
- */
52
- abstract getMinutes(date: T): number;
53
- /**
54
- * Get the seconds of the given date
55
- */
56
- abstract getSeconds(date: T): number;
57
- /**
58
- * Get the milliseconds timestamp of the given date
59
- */
60
- abstract getTime(date: T): number;
61
- /**
62
- * Gets the number of days in the month of the given date.
63
- */
64
- abstract getNumDaysInMonth(date: T): number;
65
- /**
66
- * Get the number of calendar days between the given dates.
67
- * If dateLeft is before dateRight, it would return positive value
68
- * If dateLeft is after dateRight, it would return negative value
69
- */
70
- abstract differenceInCalendarDays(dateLeft: T, dateRight: T): number;
71
- /**
72
- * Gets the name for the year of the given date.
73
- */
74
- abstract getYearName(date: T): string;
75
- /**
76
- * Get a list of month names
77
- */
78
- abstract getMonthNames(style: 'long' | 'short' | 'narrow'): Array<string>;
79
- /**
80
- * Get a list of week names
81
- */
82
- abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): Array<string>;
83
- /**
84
- * Gets a list of names for the dates of the month.
85
- */
86
- abstract getDateNames(): Array<string>;
87
- /**
88
- * Return a Date object as a string, using the ISO standard
89
- */
90
- abstract toIso8601(date: T): string;
91
- /**
92
- * Check if the give dates are equal
93
- */
94
- abstract isEqual(dateLeft: T, dateRight: T): boolean;
95
- /**
96
- * Check if the give dates are the same day
97
- */
98
- abstract isSameDay(dateLeft: T, dateRight: T): boolean;
99
- /**
100
- * Checks whether the given date is valid.
101
- */
102
- abstract isValid(date: T): boolean;
103
- /**
104
- * Gets date instance that is not valid.
105
- */
106
- abstract invalid(): T;
107
- /**
108
- * Checks whether the given object is considered a date instance by this DateTimeAdapter.
109
- */
110
- abstract isDateInstance(obj: unknown): obj is T;
111
- /**
112
- * Add the specified number of years to the given date
113
- */
114
- abstract addCalendarYears(date: T, amount: number): T;
115
- /**
116
- * Add the specified number of months to the given date
117
- */
118
- abstract addCalendarMonths(date: T, amount: number): T;
119
- /**
120
- * Add the specified number of days to the given date
121
- */
122
- abstract addCalendarDays(date: T, amount: number): T;
123
- /**
124
- * Set the hours to the given date.
125
- */
126
- abstract setHours(date: T, amount: number): T;
127
- /**
128
- * Set the minutes to the given date.
129
- */
130
- abstract setMinutes(date: T, amount: number): T;
131
- /**
132
- * Set the seconds to the given date.
133
- */
134
- abstract setSeconds(date: T, amount: number): T;
135
- /**
136
- * Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
137
- * month and date.
138
- */
139
- abstract createDate(year: number, month: number, date: number): T;
140
- abstract createDate(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): T;
141
- /**
142
- * Clone the given date
143
- */
144
- abstract clone(date: T): T;
145
- /**
146
- * Get a new moment
147
- */
148
- abstract now(): T;
149
- /**
150
- * Formats a date as a string according to the given format.
151
- */
152
- abstract format(date: T, displayFormat: any): string;
153
- /**
154
- * Parse a user-provided value to a Date Object
155
- */
156
- abstract parse(value: any, parseFormat: any): T | null;
157
- /**
158
- * Compare two given dates
159
- * 1 if the first date is after the second,
160
- * -1 if the first date is before the second
161
- * 0 if dates are equal.
162
- */
163
- compare(first: T, second: T): number;
164
- /**
165
- * Check if two given dates are in the same year
166
- * 1 if the first date's year is after the second,
167
- * -1 if the first date's year is before the second
168
- * 0 if two given dates are in the same year
169
- */
170
- compareYear(first: T, second: T): number;
171
- /**
172
- * Attempts to deserialize a value to a valid date object. This is different from parsing in that
173
- * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
174
- * string). The default implementation does not allow any deserialization, it simply checks that
175
- * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
176
- * method on all of it's `@Input()` properties that accept dates. It is therefore possible to
177
- * support passing values from your backend directly to these properties by overriding this method
178
- * to also deserialize the format used by your backend.
179
- */
180
- deserialize(value: any): T | null;
181
- /**
182
- * Sets the locale used for all dates.
183
- */
184
- setLocale(locale: string): void;
185
- /**
186
- * Get the locale used for all dates.
187
- */
188
- getLocale(): any;
189
- /**
190
- * Clamp the given date between min and max dates.
191
- */
192
- clampDate(date: T, min?: T | null, max?: T | null): T;
193
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * date-time-format.class
3
- */
4
- import { InjectionToken } from '@angular/core';
5
- export interface OwlDateTimeFormats {
6
- parseInput: any;
7
- fullPickerInput: any;
8
- datePickerInput: any;
9
- timePickerInput: any;
10
- monthYearLabel: any;
11
- dateA11yLabel: any;
12
- monthYearA11yLabel: any;
13
- }
14
- /** InjectionToken for date time picker that can be used to override default format. */
15
- export declare const OWL_DATE_TIME_FORMATS: InjectionToken<OwlDateTimeFormats>;
@@ -1,72 +0,0 @@
1
- /**
2
- * native-date-time-adapter.class
3
- */
4
- import { Platform } from '@angular/cdk/platform';
5
- import { DateTimeAdapter } from './date-time-adapter.class';
6
- import * as i0 from "@angular/core";
7
- export declare class NativeDateTimeAdapter extends DateTimeAdapter<Date> {
8
- private owlDateTimeLocale;
9
- /** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors. */
10
- private readonly _clampDate;
11
- /**
12
- * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
13
- * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
14
- * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
15
- * will produce `'8/13/1800'`.
16
- */
17
- useUtcForDisplay: boolean;
18
- constructor(owlDateTimeLocale: string, platform: Platform);
19
- getYear(date: Date): number;
20
- getMonth(date: Date): number;
21
- getDay(date: Date): number;
22
- getDate(date: Date): number;
23
- getHours(date: Date): number;
24
- getMinutes(date: Date): number;
25
- getSeconds(date: Date): number;
26
- getTime(date: Date): number;
27
- getNumDaysInMonth(date: Date): number;
28
- differenceInCalendarDays(dateLeft: Date, dateRight: Date): number;
29
- getYearName(date: Date): string;
30
- getMonthNames(style: 'long' | 'short' | 'narrow'): Array<string>;
31
- getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): Array<string>;
32
- getDateNames(): Array<string>;
33
- toIso8601(date: Date): string;
34
- isEqual(dateLeft: Date, dateRight: Date): boolean;
35
- isSameDay(dateLeft: Date, dateRight: Date): boolean;
36
- isValid(date: Date): boolean;
37
- invalid(): Date;
38
- isDateInstance(obj: unknown): obj is Date;
39
- addCalendarYears(date: Date, amount: number): Date;
40
- addCalendarMonths(date: Date, amount: number): Date;
41
- addCalendarDays(date: Date, amount: number): Date;
42
- setHours(date: Date, amount: number): Date;
43
- setMinutes(date: Date, amount: number): Date;
44
- setSeconds(date: Date, amount: number): Date;
45
- createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): Date;
46
- clone(date: Date): Date;
47
- now(): Date;
48
- format(date: Date, displayFormat: Intl.DateTimeFormatOptions): string;
49
- parse(value: any, parseFormat: any): Date | null;
50
- /**
51
- * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings
52
- * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an
53
- * invalid date for all other values.
54
- */
55
- deserialize(value: any): Date | null;
56
- /**
57
- * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
58
- * other browsers do not. We remove them to make output consistent and because they interfere with
59
- * date parsing.
60
- */
61
- private stripDirectionalityCharacters;
62
- /**
63
- * When converting Date object to string, javascript built-in functions may return wrong
64
- * results because it applies its internal DST rules. The DST rules around the world change
65
- * very frequently, and the current valid rule is not always valid in previous years though.
66
- * We work around this problem building a new Date object which has its internal UTC
67
- * representation with the local date and time.
68
- */
69
- private _format;
70
- static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateTimeAdapter, [{ optional: true; }, null]>;
71
- static ɵprov: i0.ɵɵInjectableDeclaration<NativeDateTimeAdapter>;
72
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * native-date-time-format.class
3
- */
4
- import { OwlDateTimeFormats } from './date-time-format.class';
5
- export declare const OWL_NATIVE_DATE_TIME_FORMATS: OwlDateTimeFormats;
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/cdk/platform";
3
- export declare class NativeDateTimeModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateTimeModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateTimeModule, never, [typeof i1.PlatformModule], never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<NativeDateTimeModule>;
7
- }
8
- export declare class OwlNativeDateTimeModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlNativeDateTimeModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<OwlNativeDateTimeModule, never, [typeof NativeDateTimeModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<OwlNativeDateTimeModule>;
12
- }
@@ -1,67 +0,0 @@
1
- /**
2
- * unix-timestamp-date-time-adapter.class
3
- */
4
- import { Platform } from '@angular/cdk/platform';
5
- import { DateTimeAdapter } from '../date-time-adapter.class';
6
- import * as i0 from "@angular/core";
7
- export declare class UnixTimestampDateTimeAdapter extends DateTimeAdapter<number> {
8
- private owlDateTimeLocale;
9
- constructor(owlDateTimeLocale: string, platform: Platform);
10
- /** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors. */
11
- private readonly _clampDate;
12
- /**
13
- * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
14
- * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
15
- * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
16
- * will produce `'8/13/1800'`.
17
- */
18
- useUtcForDisplay: boolean;
19
- /**
20
- * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
21
- * other browsers do not. We remove them to make output consistent and because they interfere with
22
- * date parsing.
23
- */
24
- private static search_ltr_rtl_pattern;
25
- private static stripDirectionalityCharacters;
26
- /**
27
- * When converting Date object to string, javascript built-in functions may return wrong
28
- * results because it applies its internal DST rules. The DST rules around the world change
29
- * very frequently, and the current valid rule is not always valid in previous years though.
30
- * We work around this problem building a new Date object which has its internal UTC
31
- * representation with the local date and time.
32
- */
33
- private static _format;
34
- addCalendarDays(date: number, amount: number): number;
35
- addCalendarMonths(date: number, amount: number): number;
36
- addCalendarYears(date: number, amount: number): number;
37
- clone(date: number): number;
38
- createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): number;
39
- differenceInCalendarDays(dateLeft: number, dateRight: number): number;
40
- format(date: number, displayFormat: Intl.DateTimeFormatOptions): string;
41
- getDate(date: number): number;
42
- getDateNames(): Array<string>;
43
- getDay(date: number): number;
44
- getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): Array<string>;
45
- getHours(date: number): number;
46
- getMinutes(date: number): number;
47
- getMonth(date: number): number;
48
- getMonthNames(style: 'long' | 'short' | 'narrow'): Array<string>;
49
- getNumDaysInMonth(date: number): number;
50
- getSeconds(date: number): number;
51
- getTime(date: number): number;
52
- getYear(date: number): number;
53
- getYearName(date: number): string;
54
- invalid(): number;
55
- isDateInstance(obj: unknown): obj is number;
56
- isEqual(dateLeft: number, dateRight: number): boolean;
57
- isSameDay(dateLeft: number, dateRight: number): boolean;
58
- isValid(date: number): boolean;
59
- now(): number;
60
- parse(value: any, parseFormat: any): number | null;
61
- setHours(date: number, amount: number): number;
62
- setMinutes(date: number, amount: number): number;
63
- setSeconds(date: number, amount: number): number;
64
- toIso8601(date: number): string;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<UnixTimestampDateTimeAdapter, [{ optional: true; }, null]>;
66
- static ɵprov: i0.ɵɵInjectableDeclaration<UnixTimestampDateTimeAdapter>;
67
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * unix-timestamp-date-time-format.class
3
- */
4
- import { OwlDateTimeFormats } from '../date-time-format.class';
5
- export declare const OWL_UNIX_TIMESTAMP_DATE_TIME_FORMATS: OwlDateTimeFormats;
@@ -1,79 +0,0 @@
1
- /**
2
- * calendar-body.component
3
- */
4
- import { ElementRef, NgZone } from '@angular/core';
5
- import { SelectMode } from './date-time.class';
6
- import * as i0 from "@angular/core";
7
- export declare class CalendarCell {
8
- value: number;
9
- displayValue: string;
10
- ariaLabel: string;
11
- enabled: boolean;
12
- out: boolean;
13
- cellClass: string;
14
- constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, out?: boolean, cellClass?: string);
15
- }
16
- export declare class OwlCalendarBodyComponent {
17
- private elmRef;
18
- private ngZone;
19
- /**
20
- * The cell number of the active cell in the table.
21
- */
22
- activeCell: number;
23
- /**
24
- * The cells to display in the table.
25
- */
26
- rows: Array<Array<CalendarCell>>;
27
- /**
28
- * The number of columns in the table.
29
- */
30
- numCols: number;
31
- /**
32
- * The ratio (width / height) to use for the cells in the table.
33
- */
34
- cellRatio: number;
35
- /**
36
- * The value in the table that corresponds to today.
37
- */
38
- todayValue: number;
39
- /**
40
- * The value in the table that is currently selected.
41
- */
42
- selectedValues: Array<number>;
43
- /**
44
- * Current picker select mode
45
- */
46
- selectMode: SelectMode;
47
- /**
48
- * Emit when a calendar cell is selected
49
- */
50
- readonly select: import("@angular/core").OutputEmitterRef<CalendarCell>;
51
- get owlDTCalendarBodyClass(): boolean;
52
- get isInSingleMode(): boolean;
53
- get isInRangeMode(): boolean;
54
- constructor(elmRef: ElementRef, ngZone: NgZone);
55
- selectCell(cell: CalendarCell): void;
56
- isActiveCell(rowIndex: number, colIndex: number): boolean;
57
- /**
58
- * Check if the cell is selected
59
- */
60
- isSelected(value: number): boolean;
61
- /**
62
- * Check if the cell in the range
63
- */
64
- isInRange(value: number): boolean;
65
- /**
66
- * Check if the cell is the range from
67
- */
68
- isRangeFrom(value: number): boolean;
69
- /**
70
- * Check if the cell is the range to
71
- */
72
- isRangeTo(value: number): boolean;
73
- /**
74
- * Focus to a active cell
75
- */
76
- focusActiveCell(): void;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlCalendarBodyComponent, never>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<OwlCalendarBodyComponent, "[owl-date-time-calendar-body]", ["owlDateTimeCalendarBody"], { "activeCell": { "alias": "activeCell"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "cellRatio": { "alias": "cellRatio"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
79
- }
@@ -1,141 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { DateTimeAdapter } from './adapter/date-time-adapter.class';
3
- import { OwlDateTimeFormats } from './adapter/date-time-format.class';
4
- import { CalendarCell, OwlCalendarBodyComponent } from './calendar-body.component';
5
- import { SelectMode } from './date-time.class';
6
- import * as i0 from "@angular/core";
7
- export declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDestroy {
8
- private cdRef;
9
- private dateTimeAdapter;
10
- private dateTimeFormats;
11
- /**
12
- * Whether to hide dates in other months at the start or end of the current month.
13
- */
14
- hideOtherMonths: boolean;
15
- private isDefaultFirstDayOfWeek;
16
- /**
17
- * Define the first day of a week
18
- * Sunday: 0 - Saturday: 6
19
- */
20
- private _firstDayOfWeek;
21
- get firstDayOfWeek(): number;
22
- set firstDayOfWeek(val: number);
23
- /**
24
- * The select mode of the picker;
25
- */
26
- private _selectMode;
27
- get selectMode(): SelectMode;
28
- set selectMode(val: SelectMode);
29
- /** The currently selected date. */
30
- private _selected;
31
- get selected(): T | null;
32
- set selected(value: T | null);
33
- private _selecteds;
34
- get selecteds(): Array<T>;
35
- set selecteds(values: Array<T>);
36
- private _pickerMoment;
37
- get pickerMoment(): T;
38
- set pickerMoment(value: T);
39
- /**
40
- * A function used to filter which dates are selectable
41
- */
42
- private _dateFilter;
43
- get dateFilter(): (date: T) => boolean;
44
- set dateFilter(filter: (date: T) => boolean);
45
- /** The minimum selectable date. */
46
- private _minDate;
47
- get minDate(): T | null;
48
- set minDate(value: T | null);
49
- /** The maximum selectable date. */
50
- private _maxDate;
51
- get maxDate(): T | null;
52
- set maxDate(value: T | null);
53
- private _weekdays;
54
- get weekdays(): {
55
- long: string;
56
- short: string;
57
- narrow: string;
58
- }[];
59
- private _days;
60
- get days(): CalendarCell[][];
61
- get activeCell(): number;
62
- get isInSingleMode(): boolean;
63
- get isInRangeMode(): boolean;
64
- private firstDateOfMonth;
65
- private localeSub;
66
- private initiated;
67
- private dateNames;
68
- /**
69
- * The date of the month that today falls on.
70
- */
71
- todayDate: number | null;
72
- /**
73
- * An array to hold all selectedDates' value
74
- * the value is the day number in current month
75
- */
76
- selectedDates: Array<number>;
77
- firstRowOffset: number;
78
- /**
79
- * Callback to invoke when a new date is selected
80
- */
81
- readonly selectedChange: import("@angular/core").OutputEmitterRef<T>;
82
- /**
83
- * Callback to invoke when any date is selected.
84
- */
85
- readonly userSelection: import("@angular/core").OutputEmitterRef<void>;
86
- /** Emits when any date is activated. */
87
- readonly pickerMomentChange: import("@angular/core").OutputEmitterRef<T>;
88
- /** The body of calendar table */
89
- calendarBodyElm: OwlCalendarBodyComponent;
90
- get owlDTCalendarView(): boolean;
91
- constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
92
- ngOnInit(): void;
93
- ngAfterContentInit(): void;
94
- ngOnDestroy(): void;
95
- /**
96
- * Handle a calendarCell selected
97
- */
98
- selectCalendarCell(cell: CalendarCell): void;
99
- /**
100
- * Handle a new date selected
101
- */
102
- private selectDate;
103
- /**
104
- * Handle keydown event on calendar body
105
- */
106
- handleCalendarKeydown(event: KeyboardEvent): void;
107
- /**
108
- * Generate the calendar weekdays array
109
- */
110
- private generateWeekDays;
111
- /**
112
- * Generate the calendar days array
113
- */
114
- private generateCalendar;
115
- private updateFirstDayOfWeek;
116
- /**
117
- * Creates CalendarCell for days.
118
- */
119
- private createDateCell;
120
- /**
121
- * Check if the date is valid
122
- */
123
- private isDateEnabled;
124
- /**
125
- * Get a valid date object
126
- */
127
- private getValidDate;
128
- /**
129
- * Check if the give dates are none-null and in the same month
130
- */
131
- isSameMonth(dateLeft: T, dateRight: T): boolean;
132
- /**
133
- * Set the selectedDates value.
134
- * In single mode, it has only one value which represent the selected date
135
- * In range mode, it would has two values, one for the fromValue and the other for the toValue
136
- */
137
- private setSelectedDates;
138
- private focusActiveCell;
139
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlMonthViewComponent<any>, [null, { optional: true; }, { optional: true; }]>;
140
- static ɵcmp: i0.ɵɵComponentDeclaration<OwlMonthViewComponent<any>, "owl-date-time-month-view", ["owlYearView"], { "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "selecteds": { "alias": "selecteds"; "required": false; }; "pickerMoment": { "alias": "pickerMoment"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectedChange": "selectedChange"; "userSelection": "userSelection"; "pickerMomentChange": "pickerMomentChange"; }, never, never, false, never>;
141
- }