nxt-pick-datetime 14.0.0 → 16.0.0-alpha.0
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/README.md +34 -202
- package/assets/picker.scss +131 -126
- package/esm2020/lib/class/date-time-adapter.class.mjs +5 -20
- package/esm2020/lib/class/date-time-format.class.mjs +3 -3
- package/esm2020/lib/class/date-time.class.mjs +37 -103
- package/esm2020/lib/class/dialog-config.class.mjs +14 -23
- package/esm2020/lib/class/dialog-ref.class.mjs +11 -13
- package/esm2020/lib/date-time/calendar/calendar.component.mjs +97 -96
- package/esm2020/lib/date-time/calendar-body/calendar-body.component.mjs +40 -34
- package/esm2020/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +92 -101
- package/esm2020/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +85 -86
- package/esm2020/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +80 -87
- package/esm2020/lib/date-time/date-time-inline/date-time-inline.component.mjs +95 -84
- package/esm2020/lib/date-time/date-time-picker/date-time-picker.component.mjs +221 -209
- package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.animations.mjs +3 -2
- package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +125 -126
- package/esm2020/lib/date-time/date-time-picker-input.directive.mjs +215 -221
- package/esm2020/lib/date-time/date-time-picker-intl.service.mjs +13 -13
- package/esm2020/lib/date-time/date-time-picker-trigger.directive.mjs +21 -19
- package/esm2020/lib/date-time/date-time.module.mjs +79 -68
- package/esm2020/lib/date-time/number-fixed-len.pipe.mjs +10 -13
- package/esm2020/lib/date-time/timer/timer.component.mjs +70 -63
- package/esm2020/lib/date-time/timer-box/timer-box.component.mjs +24 -17
- package/esm2020/lib/dialog/dialog-container/dialog-container.component.mjs +55 -50
- package/esm2020/lib/dialog/dialog.module.mjs +27 -16
- package/esm2020/lib/dialog/dialog.service.mjs +66 -54
- package/esm2020/lib/utils/object.mjs +5 -3
- package/esm2020/moment-adapter/date-time-adapter.class.mjs +26 -21
- package/esm2020/moment-adapter/date-time-format.class.mjs +5 -2
- package/esm2020/moment-adapter/moment-adapter.module.mjs +19 -23
- package/esm2020/moment-adapter/nxt-pick-datetime-moment-adapter.mjs +1 -1
- package/esm2020/moment-adapter/public-api.mjs +3 -2
- package/esm2020/native-adapter/date-time-adapter.class.mjs +41 -19
- package/esm2020/native-adapter/date-time-format.class.mjs +5 -2
- package/esm2020/native-adapter/native-adapter.module.mjs +23 -21
- package/esm2020/native-adapter/nxt-pick-datetime-native-adapter.mjs +1 -1
- package/esm2020/native-adapter/public-api.mjs +2 -2
- package/esm2020/nxt-pick-datetime.mjs +1 -1
- package/esm2020/public-api.mjs +14 -14
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs +44 -40
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs +65 -38
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2015/nxt-pick-datetime.mjs +1492 -1447
- package/fesm2015/nxt-pick-datetime.mjs.map +1 -1
- package/fesm2020/nxt-pick-datetime-moment-adapter.mjs +44 -40
- package/fesm2020/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2020/nxt-pick-datetime-native-adapter.mjs +65 -38
- package/fesm2020/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2020/nxt-pick-datetime.mjs +1422 -1437
- package/fesm2020/nxt-pick-datetime.mjs.map +1 -1
- package/lib/class/date-time-adapter.class.d.ts +31 -41
- package/lib/class/date-time-format.class.d.ts +3 -3
- package/lib/class/date-time.class.d.ts +39 -51
- package/lib/class/dialog-config.class.d.ts +27 -27
- package/lib/class/dialog-ref.class.d.ts +21 -22
- package/lib/date-time/calendar/calendar.component.d.ts +66 -60
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +22 -20
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +57 -56
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +58 -52
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +51 -48
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +69 -53
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +106 -91
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +2 -1
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +54 -47
- package/lib/date-time/date-time-picker-input.directive.d.ts +93 -78
- package/lib/date-time/date-time-picker-intl.service.d.ts +11 -11
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +10 -9
- package/lib/date-time/date-time.module.d.ts +4 -4
- package/lib/date-time/number-fixed-len.pipe.d.ts +2 -1
- package/lib/date-time/timer/timer.component.d.ts +32 -30
- package/lib/date-time/timer-box/timer-box.component.d.ts +13 -11
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +40 -27
- package/lib/dialog/dialog.module.d.ts +5 -4
- package/lib/dialog/dialog.service.d.ts +42 -35
- package/lib/utils/object.d.ts +2 -0
- package/moment-adapter/date-time-adapter.class.d.ts +13 -13
- package/moment-adapter/date-time-format.class.d.ts +5 -2
- package/moment-adapter/moment-adapter.module.d.ts +0 -5
- package/moment-adapter/public-api.d.ts +2 -1
- package/native-adapter/date-time-adapter.class.d.ts +7 -7
- package/native-adapter/date-time-format.class.d.ts +5 -2
- package/native-adapter/native-adapter.module.d.ts +0 -5
- package/native-adapter/public-api.d.ts +1 -1
- package/package.json +13 -11
- package/public-api.d.ts +14 -13
|
@@ -1,74 +1,64 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
1
|
import { Observable, Subject } from 'rxjs';
|
|
3
|
-
/** InjectionToken for date time picker that can be used to override default locale code. */
|
|
4
|
-
export declare const OWL_DATE_TIME_LOCALE: InjectionToken<string>;
|
|
5
|
-
/** @docs-private */
|
|
6
|
-
export declare function OWL_DATE_TIME_LOCALE_FACTORY(): string;
|
|
7
|
-
/** Provider for OWL_DATE_TIME_LOCALE injection token. */
|
|
8
|
-
export declare const OWL_DATE_TIME_LOCALE_PROVIDER: {
|
|
9
|
-
provide: InjectionToken<string>;
|
|
10
|
-
useExisting: InjectionToken<string>;
|
|
11
|
-
};
|
|
12
2
|
export declare abstract class DateTimeAdapter<T> {
|
|
13
|
-
/** The locale to use for all dates
|
|
3
|
+
/** The locale to use for all dates */
|
|
14
4
|
protected locale: any;
|
|
15
|
-
/** A stream that emits when the locale changes
|
|
5
|
+
/** A stream that emits when the locale changes */
|
|
16
6
|
protected _localeChanges: Subject<void>;
|
|
17
7
|
get localeChanges(): Observable<void>;
|
|
18
|
-
/** total milliseconds in a day
|
|
8
|
+
/** total milliseconds in a day */
|
|
19
9
|
protected readonly millisecondsInDay = 86400000;
|
|
20
|
-
/** total milliseconds in a minute
|
|
10
|
+
/** total milliseconds in a minute */
|
|
21
11
|
protected readonly milliseondsInMinute = 60000;
|
|
22
12
|
/**
|
|
23
13
|
* Get the year of the given date
|
|
24
14
|
*/
|
|
25
|
-
abstract getYear(date
|
|
15
|
+
abstract getYear(date?: T): number;
|
|
26
16
|
/**
|
|
27
17
|
* Get the month of the given date
|
|
28
18
|
* 0 -- January
|
|
29
19
|
* 11 -- December
|
|
30
20
|
* */
|
|
31
|
-
abstract getMonth(date
|
|
21
|
+
abstract getMonth(date?: T): number;
|
|
32
22
|
/**
|
|
33
23
|
* Get the day of the week of the given date
|
|
34
24
|
* 0 -- Sunday
|
|
35
25
|
* 6 -- Saturday
|
|
36
26
|
* */
|
|
37
|
-
abstract getDay(date
|
|
27
|
+
abstract getDay(date?: T): number;
|
|
38
28
|
/**
|
|
39
29
|
* Get the day num of the given date
|
|
40
30
|
*/
|
|
41
|
-
abstract getDate(date
|
|
31
|
+
abstract getDate(date?: T): number;
|
|
42
32
|
/**
|
|
43
33
|
* Get the hours of the given date
|
|
44
34
|
*/
|
|
45
|
-
abstract getHours(date
|
|
35
|
+
abstract getHours(date?: T): number;
|
|
46
36
|
/**
|
|
47
37
|
* Get the minutes of the given date
|
|
48
38
|
*/
|
|
49
|
-
abstract getMinutes(date
|
|
39
|
+
abstract getMinutes(date?: T): number;
|
|
50
40
|
/**
|
|
51
41
|
* Get the seconds of the given date
|
|
52
42
|
*/
|
|
53
|
-
abstract getSeconds(date
|
|
43
|
+
abstract getSeconds(date?: T): number;
|
|
54
44
|
/**
|
|
55
45
|
* Get the milliseconds timestamp of the given date
|
|
56
46
|
*/
|
|
57
|
-
abstract getTime(date
|
|
47
|
+
abstract getTime(date?: T): number;
|
|
58
48
|
/**
|
|
59
49
|
* Gets the number of days in the month of the given date.
|
|
60
50
|
*/
|
|
61
|
-
abstract getNumDaysInMonth(date
|
|
51
|
+
abstract getNumDaysInMonth(date?: T): number;
|
|
62
52
|
/**
|
|
63
53
|
* Get the number of calendar days between the given dates.
|
|
64
54
|
* If dateLeft is before dateRight, it would return positive value
|
|
65
55
|
* If dateLeft is after dateRight, it would return negative value
|
|
66
56
|
*/
|
|
67
|
-
abstract differenceInCalendarDays(dateLeft
|
|
57
|
+
abstract differenceInCalendarDays(dateLeft?: T, dateRight?: T): number | undefined;
|
|
68
58
|
/**
|
|
69
59
|
* Gets the name for the year of the given date.
|
|
70
60
|
*/
|
|
71
|
-
abstract getYearName(date
|
|
61
|
+
abstract getYearName(date?: T): string;
|
|
72
62
|
/**
|
|
73
63
|
* Get a list of month names
|
|
74
64
|
*/
|
|
@@ -88,15 +78,15 @@ export declare abstract class DateTimeAdapter<T> {
|
|
|
88
78
|
/**
|
|
89
79
|
* Check if the give dates are equal
|
|
90
80
|
*/
|
|
91
|
-
abstract isEqual(dateLeft
|
|
81
|
+
abstract isEqual(dateLeft?: T, dateRight?: T): boolean;
|
|
92
82
|
/**
|
|
93
83
|
* Check if the give dates are the same day
|
|
94
84
|
*/
|
|
95
|
-
abstract isSameDay(dateLeft
|
|
85
|
+
abstract isSameDay(dateLeft?: T, dateRight?: T): boolean;
|
|
96
86
|
/**
|
|
97
87
|
* Checks whether the given date is valid.
|
|
98
88
|
*/
|
|
99
|
-
abstract isValid(date
|
|
89
|
+
abstract isValid(date?: T): boolean;
|
|
100
90
|
/**
|
|
101
91
|
* Gets date instance that is not valid.
|
|
102
92
|
*/
|
|
@@ -108,27 +98,27 @@ export declare abstract class DateTimeAdapter<T> {
|
|
|
108
98
|
/**
|
|
109
99
|
* Add the specified number of years to the given date
|
|
110
100
|
*/
|
|
111
|
-
abstract addCalendarYears(date: T, amount: number): T;
|
|
101
|
+
abstract addCalendarYears(date: T | undefined, amount: number): T;
|
|
112
102
|
/**
|
|
113
103
|
* Add the specified number of months to the given date
|
|
114
104
|
*/
|
|
115
|
-
abstract addCalendarMonths(date: T, amount: number): T;
|
|
105
|
+
abstract addCalendarMonths(date: T | undefined, amount: number): T;
|
|
116
106
|
/**
|
|
117
107
|
* Add the specified number of days to the given date
|
|
118
108
|
*/
|
|
119
|
-
abstract addCalendarDays(date: T, amount: number): T;
|
|
109
|
+
abstract addCalendarDays(date: T | undefined, amount: number): T;
|
|
120
110
|
/**
|
|
121
111
|
* Set the hours to the given date.
|
|
122
112
|
*/
|
|
123
|
-
abstract setHours(date: T, amount: number): T;
|
|
113
|
+
abstract setHours(date: T | undefined, amount: number): T;
|
|
124
114
|
/**
|
|
125
115
|
* Set the minutes to the given date.
|
|
126
116
|
*/
|
|
127
|
-
abstract setMinutes(date: T, amount: number): T;
|
|
117
|
+
abstract setMinutes(date: T | undefined, amount: number): T;
|
|
128
118
|
/**
|
|
129
119
|
* Set the seconds to the given date.
|
|
130
120
|
*/
|
|
131
|
-
abstract setSeconds(date: T, amount: number): T;
|
|
121
|
+
abstract setSeconds(date: T | undefined, amount: number): T;
|
|
132
122
|
/**
|
|
133
123
|
* Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
|
|
134
124
|
* month and date.
|
|
@@ -138,7 +128,7 @@ export declare abstract class DateTimeAdapter<T> {
|
|
|
138
128
|
/**
|
|
139
129
|
* Clone the given date
|
|
140
130
|
*/
|
|
141
|
-
abstract clone(date
|
|
131
|
+
abstract clone(date?: T): T;
|
|
142
132
|
/**
|
|
143
133
|
* Get a new moment
|
|
144
134
|
* */
|
|
@@ -146,25 +136,25 @@ export declare abstract class DateTimeAdapter<T> {
|
|
|
146
136
|
/**
|
|
147
137
|
* Formats a date as a string according to the given format.
|
|
148
138
|
*/
|
|
149
|
-
abstract format(date: T, displayFormat: any): string;
|
|
139
|
+
abstract format(date: T | undefined, displayFormat: any): string;
|
|
150
140
|
/**
|
|
151
141
|
* Parse a user-provided value to a Date Object
|
|
152
142
|
*/
|
|
153
|
-
abstract parse(value: any, parseFormat: any): T |
|
|
143
|
+
abstract parse(value: any, parseFormat: any): T | undefined;
|
|
154
144
|
/**
|
|
155
145
|
* Compare two given dates
|
|
156
146
|
* 1 if the first date is after the second,
|
|
157
147
|
* -1 if the first date is before the second
|
|
158
148
|
* 0 if dates are equal.
|
|
159
149
|
* */
|
|
160
|
-
compare(first
|
|
150
|
+
compare(first?: T, second?: T): number;
|
|
161
151
|
/**
|
|
162
152
|
* Check if two given dates are in the same year
|
|
163
153
|
* 1 if the first date's year is after the second,
|
|
164
154
|
* -1 if the first date's year is before the second
|
|
165
155
|
* 0 if two given dates are in the same year
|
|
166
156
|
* */
|
|
167
|
-
compareYear(first
|
|
157
|
+
compareYear(first?: T, second?: T): number;
|
|
168
158
|
/**
|
|
169
159
|
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
170
160
|
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
@@ -174,7 +164,7 @@ export declare abstract class DateTimeAdapter<T> {
|
|
|
174
164
|
* support passing values from your backend directly to these properties by overriding this method
|
|
175
165
|
* to also deserialize the format used by your backend.
|
|
176
166
|
*/
|
|
177
|
-
deserialize(value: any): T |
|
|
167
|
+
deserialize(value: any): T | undefined;
|
|
178
168
|
/**
|
|
179
169
|
* Sets the locale used for all dates.
|
|
180
170
|
*/
|
|
@@ -182,5 +172,5 @@ export declare abstract class DateTimeAdapter<T> {
|
|
|
182
172
|
/**
|
|
183
173
|
* Clamp the given date between min and max dates.
|
|
184
174
|
*/
|
|
185
|
-
clampDate(date: T, min?: T
|
|
175
|
+
clampDate(date: T, min?: T, max?: T): T;
|
|
186
176
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export interface
|
|
2
|
+
export interface DateTimeFormats {
|
|
3
3
|
parseInput: any;
|
|
4
4
|
fullPickerInput: any;
|
|
5
5
|
datePickerInput: any;
|
|
@@ -8,5 +8,5 @@ export interface OwlDateTimeFormats {
|
|
|
8
8
|
dateA11yLabel: any;
|
|
9
9
|
monthYearA11yLabel: any;
|
|
10
10
|
}
|
|
11
|
-
/** InjectionToken for date time picker that can be used to override default format
|
|
12
|
-
export declare const
|
|
11
|
+
/** InjectionToken for date time picker that can be used to override default format */
|
|
12
|
+
export declare const NXT_DATE_TIME_FORMATS: InjectionToken<DateTimeFormats>;
|
|
@@ -1,76 +1,64 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { DateTimeAdapter } from './date-time-adapter.class';
|
|
3
|
-
import {
|
|
3
|
+
import { DateTimeFormats } from './date-time-format.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
protected
|
|
5
|
+
export type PickerType = 'both' | 'calendar' | 'timer';
|
|
6
|
+
export type PickerMode = 'popup' | 'dialog' | 'inline';
|
|
7
|
+
export type SelectMode = 'single' | 'range' | 'rangeFrom' | 'rangeTo';
|
|
8
|
+
export type RenderItem = 'year' | 'month' | 'date';
|
|
9
|
+
export type ViewType = 'month' | 'year' | 'multi-years';
|
|
10
|
+
export type DateFilter<T> = (date?: T, forRender?: RenderItem) => boolean;
|
|
11
|
+
export declare abstract class DateTimeDirective<T> {
|
|
12
|
+
protected readonly dateTimeAdapter: DateTimeAdapter<T>;
|
|
13
|
+
protected readonly dateTimeFormats: DateTimeFormats;
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* When true, shows a timer to configure the seconds value
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
get showSecondsTimer(): boolean;
|
|
18
|
-
set showSecondsTimer(val: boolean);
|
|
17
|
+
showSecondsTimer: boolean;
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
19
|
+
* When true, the timer will be in 12-hour format mode
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
|
-
get hour12Timer(): boolean;
|
|
24
|
-
set hour12Timer(val: boolean);
|
|
21
|
+
hour12Timer: boolean;
|
|
25
22
|
/**
|
|
26
|
-
* The view that the calendar should start
|
|
23
|
+
* The view that the calendar should start on
|
|
27
24
|
*/
|
|
28
|
-
startView:
|
|
25
|
+
startView: ViewType;
|
|
29
26
|
/**
|
|
30
27
|
* Hours to change per step
|
|
31
28
|
*/
|
|
32
|
-
|
|
33
|
-
get stepHour(): number;
|
|
34
|
-
set stepHour(val: number);
|
|
29
|
+
stepHour: number;
|
|
35
30
|
/**
|
|
36
31
|
* Minutes to change per step
|
|
37
32
|
*/
|
|
38
|
-
|
|
39
|
-
get stepMinute(): number;
|
|
40
|
-
set stepMinute(val: number);
|
|
33
|
+
stepMinute: number;
|
|
41
34
|
/**
|
|
42
35
|
* Seconds to change per step
|
|
43
36
|
*/
|
|
44
|
-
|
|
45
|
-
get stepSecond(): number;
|
|
46
|
-
set stepSecond(val: number);
|
|
37
|
+
stepSecond: number;
|
|
47
38
|
/**
|
|
48
39
|
* Set the first day of week
|
|
40
|
+
*
|
|
41
|
+
* Valid values are from 0 [Sunday] to 6 [Saturday]
|
|
49
42
|
*/
|
|
50
|
-
|
|
51
|
-
get firstDayOfWeek(): number;
|
|
52
|
-
set firstDayOfWeek(value: number);
|
|
43
|
+
firstDayOfWeek: number;
|
|
53
44
|
/**
|
|
54
|
-
*
|
|
45
|
+
* If true, don't show dates from preious / next month on the calendar month view
|
|
55
46
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
get
|
|
61
|
-
abstract get
|
|
62
|
-
abstract get
|
|
63
|
-
abstract get
|
|
64
|
-
abstract get
|
|
65
|
-
abstract get
|
|
66
|
-
abstract get selectMode(): SelectMode;
|
|
67
|
-
abstract get startAt(): T | null;
|
|
68
|
-
abstract get opened(): boolean;
|
|
47
|
+
hideOtherMonths: boolean;
|
|
48
|
+
readonly id: string;
|
|
49
|
+
abstract get selected(): T | undefined;
|
|
50
|
+
abstract get selecteds(): Array<T | undefined>;
|
|
51
|
+
abstract get dateTimeFilter(): DateFilter<T> | undefined;
|
|
52
|
+
abstract get max(): T | undefined;
|
|
53
|
+
abstract get min(): T | undefined;
|
|
54
|
+
abstract get selectMode(): SelectMode | undefined;
|
|
55
|
+
abstract get startAt(): T | undefined;
|
|
56
|
+
abstract get isOpen(): boolean;
|
|
69
57
|
abstract get pickerMode(): PickerMode;
|
|
70
58
|
abstract get pickerType(): PickerType;
|
|
71
59
|
abstract get isInSingleMode(): boolean;
|
|
72
60
|
abstract get isInRangeMode(): boolean;
|
|
73
|
-
abstract select(date: T | T
|
|
61
|
+
abstract select(date: T | Array<T | undefined>): void;
|
|
74
62
|
abstract yearSelected: EventEmitter<T>;
|
|
75
63
|
abstract monthSelected: EventEmitter<T>;
|
|
76
64
|
abstract selectYear(normalizedYear: T): void;
|
|
@@ -79,10 +67,10 @@ export declare abstract class OwlDateTimeDirective<T> {
|
|
|
79
67
|
/**
|
|
80
68
|
* Date Time Checker to check if the give dateTime is selectable
|
|
81
69
|
*/
|
|
82
|
-
dateTimeChecker: (dateTime: T) => boolean;
|
|
70
|
+
dateTimeChecker: (dateTime: T | undefined) => boolean;
|
|
83
71
|
get disabled(): boolean;
|
|
84
|
-
constructor(dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats:
|
|
85
|
-
protected getValidDate(obj: any): T |
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
87
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
72
|
+
constructor(dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: DateTimeFormats);
|
|
73
|
+
protected getValidDate(obj: any): T | undefined;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeDirective<any>, never>;
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeDirective<any>, never, never, { "showSecondsTimer": "showSecondsTimer"; "hour12Timer": "hour12Timer"; "startView": "startView"; "stepHour": "stepHour"; "stepMinute": "stepMinute"; "stepSecond": "stepSecond"; "firstDayOfWeek": "firstDayOfWeek"; "hideOtherMonths": "hideOtherMonths"; }, {}, never, never, false, never>;
|
|
88
76
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
2
|
import { ViewContainerRef } from '@angular/core';
|
|
3
|
-
/** Possible overrides for a dialog's position
|
|
3
|
+
/** Possible overrides for a dialog's position */
|
|
4
4
|
export interface DialogPosition {
|
|
5
|
-
/** Override for the dialog's top position
|
|
5
|
+
/** Override for the dialog's top position */
|
|
6
6
|
top?: string;
|
|
7
|
-
/** Override for the dialog's bottom position
|
|
7
|
+
/** Override for the dialog's bottom position */
|
|
8
8
|
bottom?: string;
|
|
9
|
-
/** Override for the dialog's left position
|
|
9
|
+
/** Override for the dialog's left position */
|
|
10
10
|
left?: string;
|
|
11
|
-
/** Override for the dialog's right position
|
|
11
|
+
/** Override for the dialog's right position */
|
|
12
12
|
right?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class DialogConfig {
|
|
15
15
|
/**
|
|
16
16
|
* ID of the element that describes the dialog.
|
|
17
17
|
*/
|
|
18
|
-
ariaDescribedBy?: string
|
|
18
|
+
ariaDescribedBy?: string;
|
|
19
19
|
/**
|
|
20
|
-
* Whether to focus the dialog when the dialog is
|
|
20
|
+
* Whether to focus the dialog when the dialog is isOpen
|
|
21
21
|
*/
|
|
22
|
-
autoFocus
|
|
23
|
-
/** Whether the dialog has a backdrop
|
|
24
|
-
hasBackdrop?: boolean;
|
|
22
|
+
autoFocus: boolean;
|
|
23
|
+
/** Whether the dialog has a backdrop */
|
|
24
|
+
hasBackdrop?: boolean | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* Custom style for the backdrop
|
|
27
|
-
|
|
27
|
+
*/
|
|
28
28
|
backdropStyle?: any;
|
|
29
|
-
/** Data being injected into the child component
|
|
29
|
+
/** Data being injected into the child component */
|
|
30
30
|
data?: any;
|
|
31
|
-
/** Whether the user can use escape or clicking outside to close a modal
|
|
32
|
-
disableClose?: boolean;
|
|
31
|
+
/** Whether the user can use escape or clicking outside to close a modal */
|
|
32
|
+
disableClose?: boolean | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* ID for the modal. If omitted, a unique one will be generated.
|
|
35
35
|
*/
|
|
@@ -40,50 +40,50 @@ export declare class OwlDialogConfig {
|
|
|
40
40
|
role?: 'dialog' | 'alertdialog';
|
|
41
41
|
/**
|
|
42
42
|
* Custom class for the pane
|
|
43
|
-
|
|
43
|
+
*/
|
|
44
44
|
paneClass?: string | string[];
|
|
45
45
|
/**
|
|
46
46
|
* Mouse Event
|
|
47
|
-
|
|
47
|
+
*/
|
|
48
48
|
event?: MouseEvent;
|
|
49
49
|
/**
|
|
50
50
|
* Custom class for the backdrop
|
|
51
|
-
|
|
51
|
+
*/
|
|
52
52
|
backdropClass?: string | string[];
|
|
53
53
|
/**
|
|
54
54
|
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
55
|
-
|
|
55
|
+
*/
|
|
56
56
|
closeOnNavigation?: boolean;
|
|
57
|
-
/** Width of the dialog
|
|
57
|
+
/** Width of the dialog */
|
|
58
58
|
width?: string;
|
|
59
|
-
/** Height of the dialog
|
|
59
|
+
/** Height of the dialog */
|
|
60
60
|
height?: string;
|
|
61
61
|
/**
|
|
62
62
|
* The min-width of the overlay panel.
|
|
63
63
|
* If a number is provided, pixel units are assumed.
|
|
64
|
-
|
|
64
|
+
*/
|
|
65
65
|
minWidth?: number | string;
|
|
66
66
|
/**
|
|
67
67
|
* The min-height of the overlay panel.
|
|
68
68
|
* If a number is provided, pixel units are assumed.
|
|
69
|
-
|
|
69
|
+
*/
|
|
70
70
|
minHeight?: number | string;
|
|
71
71
|
/**
|
|
72
72
|
* The max-width of the overlay panel.
|
|
73
73
|
* If a number is provided, pixel units are assumed.
|
|
74
|
-
|
|
74
|
+
*/
|
|
75
75
|
maxWidth?: number | string;
|
|
76
76
|
/**
|
|
77
77
|
* The max-height of the overlay panel.
|
|
78
78
|
* If a number is provided, pixel units are assumed.
|
|
79
|
-
|
|
79
|
+
*/
|
|
80
80
|
maxHeight?: number | string;
|
|
81
|
-
/** Position overrides
|
|
81
|
+
/** Position overrides */
|
|
82
82
|
position?: DialogPosition;
|
|
83
83
|
/**
|
|
84
84
|
* The scroll strategy when the dialog is open
|
|
85
85
|
* Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
|
|
86
|
-
|
|
86
|
+
*/
|
|
87
87
|
scrollStrategy?: ScrollStrategy;
|
|
88
88
|
viewContainerRef?: ViewContainerRef;
|
|
89
89
|
constructor();
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
2
2
|
import { Location } from '@angular/common';
|
|
3
|
-
import {
|
|
4
|
-
import { OwlDialogContainerComponent } from '../dialog/dialog-container/dialog-container.component';
|
|
3
|
+
import { DialogContainerComponent } from '../dialog/dialog-container/dialog-container.component';
|
|
5
4
|
import { DialogPosition } from './dialog-config.class';
|
|
6
|
-
export declare class
|
|
7
|
-
private overlayRef;
|
|
8
|
-
private container;
|
|
9
|
-
readonly id
|
|
5
|
+
export declare class DialogRef<T> {
|
|
6
|
+
private readonly overlayRef;
|
|
7
|
+
private readonly container;
|
|
8
|
+
readonly id?: string | undefined;
|
|
10
9
|
private result;
|
|
11
|
-
private _beforeClose$;
|
|
12
|
-
private _afterOpen$;
|
|
13
|
-
private _afterClosed$;
|
|
14
|
-
/** Subscription to changes in the user's location
|
|
15
|
-
private locationChanged
|
|
10
|
+
private readonly _beforeClose$;
|
|
11
|
+
private readonly _afterOpen$;
|
|
12
|
+
private readonly _afterClosed$;
|
|
13
|
+
/** Subscription to changes in the user's location */
|
|
14
|
+
private locationChanged?;
|
|
16
15
|
/**
|
|
17
|
-
* The instance of component
|
|
18
|
-
|
|
19
|
-
componentInstance
|
|
20
|
-
/** Whether the user is allowed to close the dialog
|
|
16
|
+
* The instance of component isOpen into modal
|
|
17
|
+
*/
|
|
18
|
+
componentInstance?: T;
|
|
19
|
+
/** Whether the user is allowed to close the dialog */
|
|
21
20
|
disableClose: boolean;
|
|
22
|
-
constructor(overlayRef: OverlayRef, container:
|
|
21
|
+
constructor(overlayRef: OverlayRef, container: DialogContainerComponent, id?: string | undefined, location?: Location);
|
|
23
22
|
close(dialogResult?: any): void;
|
|
24
23
|
/**
|
|
25
24
|
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
26
25
|
*/
|
|
27
|
-
backdropClick(): Observable<
|
|
26
|
+
backdropClick(): import("rxjs").Observable<MouseEvent>;
|
|
28
27
|
/**
|
|
29
28
|
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
30
29
|
*/
|
|
31
|
-
keydownEvents(): Observable<KeyboardEvent>;
|
|
30
|
+
keydownEvents(): import("rxjs").Observable<KeyboardEvent>;
|
|
32
31
|
/**
|
|
33
32
|
* Updates the dialog's position.
|
|
34
33
|
*
|
|
@@ -43,9 +42,9 @@ export declare class OwlDialogRef<T> {
|
|
|
43
42
|
*/
|
|
44
43
|
updateSize(width?: string, height?: string): this;
|
|
45
44
|
isAnimating(): boolean;
|
|
46
|
-
afterOpen(): Observable<
|
|
47
|
-
beforeClose(): Observable<
|
|
48
|
-
afterClosed(): Observable<
|
|
49
|
-
/** Fetches the position strategy object from the overlay ref
|
|
45
|
+
afterOpen(): import("rxjs").Observable<void>;
|
|
46
|
+
beforeClose(): import("rxjs").Observable<void>;
|
|
47
|
+
afterClosed(): import("rxjs").Observable<void>;
|
|
48
|
+
/** Fetches the position strategy object from the overlay ref */
|
|
50
49
|
private getPositionStrategy;
|
|
51
50
|
}
|