nxt-pick-datetime 19.0.4 → 20.0.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/assets/picker.scss +21 -21
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs +8 -8
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs +8 -8
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime.mjs +62 -62
- package/fesm2022/nxt-pick-datetime.mjs.map +1 -1
- package/index.d.ts +1888 -5
- package/moment-adapter/index.d.ts +24 -5
- package/native-adapter/index.d.ts +12 -5
- package/package.json +8 -8
- package/lib/class/date-time-adapter.class.d.ts +0 -176
- package/lib/class/date-time-format.class.d.ts +0 -12
- package/lib/class/date-time.class.d.ts +0 -76
- package/lib/class/dialog-config.class.d.ts +0 -90
- package/lib/class/dialog-ref.class.d.ts +0 -50
- package/lib/date-time/calendar/calendar.component.d.ts +0 -147
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +0 -79
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +0 -139
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +0 -115
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +0 -123
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +0 -106
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +0 -172
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +0 -6
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +0 -129
- package/lib/date-time/date-time-picker-input.directive.d.ts +0 -167
- package/lib/date-time/date-time-picker-intl.service.d.ts +0 -51
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -22
- package/lib/date-time/date-time.module.d.ts +0 -23
- package/lib/date-time/number-fixed-len.pipe.d.ts +0 -8
- package/lib/date-time/timer/timer.component.d.ts +0 -131
- package/lib/date-time/timer-box/timer-box.component.d.ts +0 -37
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +0 -69
- package/lib/dialog/dialog.module.d.ts +0 -12
- package/lib/dialog/dialog.service.d.ts +0 -78
- package/lib/utils/object.d.ts +0 -9
- package/moment-adapter/date-time-adapter.class.d.ts +0 -64
- package/moment-adapter/date-time-format.class.d.ts +0 -5
- package/moment-adapter/moment-adapter.module.d.ts +0 -8
- package/moment-adapter/public-api.d.ts +0 -2
- package/native-adapter/date-time-adapter.class.d.ts +0 -72
- package/native-adapter/date-time-format.class.d.ts +0 -5
- package/native-adapter/native-adapter.module.d.ts +0 -9
- package/native-adapter/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -14
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { BlockScrollStrategy, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter, InjectionToken, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import { DateTimeAdapter } from '../../class/date-time-adapter.class';
|
|
4
|
-
import { DateTimeFormats } from '../../class/date-time-format.class';
|
|
5
|
-
import { DateTimeDirective, PickerMode, PickerType } from '../../class/date-time.class';
|
|
6
|
-
import { DialogService } from '../../dialog/dialog.service';
|
|
7
|
-
import { DateTimeInputDirective } from '../date-time-picker-input.directive';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Injection token that determines the scroll handling while the dtPicker is open.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare const NXT_DTPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare function NXT_DTPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => BlockScrollStrategy;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const NXT_DTPICKER_SCROLL_STRATEGY_PROVIDER: {
|
|
19
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
20
|
-
deps: (typeof Overlay)[];
|
|
21
|
-
useFactory: typeof NXT_DTPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY;
|
|
22
|
-
};
|
|
23
|
-
export declare class DateTimeComponent<T> extends DateTimeDirective<T> implements OnInit, OnDestroy {
|
|
24
|
-
private readonly overlay;
|
|
25
|
-
private readonly viewContainerRef;
|
|
26
|
-
private readonly dialogService;
|
|
27
|
-
private readonly ngZone;
|
|
28
|
-
protected readonly changeDetector: ChangeDetectorRef;
|
|
29
|
-
private readonly defaultScrollStrategy;
|
|
30
|
-
private readonly document?;
|
|
31
|
-
/** Custom class for the picker backdrop */
|
|
32
|
-
backdropClass?: string | string[];
|
|
33
|
-
/** Custom class for the picker overlay pane */
|
|
34
|
-
panelClass?: string | string[];
|
|
35
|
-
private _startAt?;
|
|
36
|
-
/**
|
|
37
|
-
* The date to show when picker opens
|
|
38
|
-
*
|
|
39
|
-
* Defaults to selected date (if available) or current date.
|
|
40
|
-
*/
|
|
41
|
-
get startAt(): T | undefined;
|
|
42
|
-
set startAt(date: T | undefined);
|
|
43
|
-
private _pickerType;
|
|
44
|
-
/**
|
|
45
|
-
* Set the type of the dateTime picker
|
|
46
|
-
*
|
|
47
|
-
* - `'both'` - show both calendar and timer
|
|
48
|
-
* - `'calendar'` - show only calendar
|
|
49
|
-
* - `'timer'` - show only timer
|
|
50
|
-
*/
|
|
51
|
-
get pickerType(): PickerType;
|
|
52
|
-
set pickerType(val: PickerType);
|
|
53
|
-
private _pickerMode;
|
|
54
|
-
/**
|
|
55
|
-
* The style the picker would open as
|
|
56
|
-
*
|
|
57
|
-
* - `'popup'` - display picker attached to the trigger element
|
|
58
|
-
* - `'dialog'` - display picker as a dialog
|
|
59
|
-
*/
|
|
60
|
-
get pickerMode(): PickerMode;
|
|
61
|
-
set pickerMode(mode: PickerMode);
|
|
62
|
-
private _disabled?;
|
|
63
|
-
/** Whether the date time picker should be disabled */
|
|
64
|
-
get disabled(): boolean;
|
|
65
|
-
set disabled(value: boolean);
|
|
66
|
-
private _isOpen;
|
|
67
|
-
/** Whether the calendar is open */
|
|
68
|
-
get isOpen(): boolean;
|
|
69
|
-
set isOpen(val: boolean);
|
|
70
|
-
/**
|
|
71
|
-
* The scroll strategy when the picker is open (see [CDK documentation](https://material.angular.io/cdk/overlay/overview#scroll-strategies))
|
|
72
|
-
*/
|
|
73
|
-
scrollStrategy?: ScrollStrategy;
|
|
74
|
-
/**
|
|
75
|
-
* Callback when the picker is opened
|
|
76
|
-
*/
|
|
77
|
-
readonly afterPickerOpened: EventEmitter<void>;
|
|
78
|
-
/**
|
|
79
|
-
* Callback when the picker is closed
|
|
80
|
-
*/
|
|
81
|
-
readonly afterPickerClosed: EventEmitter<void>;
|
|
82
|
-
/**
|
|
83
|
-
* Emits selected year in multi-year view
|
|
84
|
-
*
|
|
85
|
-
* This doesn't imply a change on the selected date.
|
|
86
|
-
*/
|
|
87
|
-
readonly yearSelected: EventEmitter<T>;
|
|
88
|
-
/**
|
|
89
|
-
* Emits selected month in year view
|
|
90
|
-
*
|
|
91
|
-
* This doesn't imply a change on the selected date.
|
|
92
|
-
*/
|
|
93
|
-
readonly monthSelected: EventEmitter<T>;
|
|
94
|
-
/**
|
|
95
|
-
* Emits when picker open state changes
|
|
96
|
-
*/
|
|
97
|
-
readonly isOpenChange: EventEmitter<boolean>;
|
|
98
|
-
/**
|
|
99
|
-
* Emit when the selected value has been confirmed
|
|
100
|
-
*/
|
|
101
|
-
readonly confirmSelectedChange: EventEmitter<T | (T | undefined)[]>;
|
|
102
|
-
/**
|
|
103
|
-
* Emits when the date time picker is disabled
|
|
104
|
-
*/
|
|
105
|
-
readonly disabledChange: EventEmitter<boolean>;
|
|
106
|
-
private pickerContainerPortal?;
|
|
107
|
-
private pickerContainer?;
|
|
108
|
-
private popupRef?;
|
|
109
|
-
private dialogRef?;
|
|
110
|
-
private dtInputSub?;
|
|
111
|
-
private hidePickerStreamSub?;
|
|
112
|
-
private confirmSelectedStreamSub?;
|
|
113
|
-
private pickerOpenedStreamSub?;
|
|
114
|
-
/** The element that was focused before the date time picker was isOpen */
|
|
115
|
-
private focusedElementBeforeOpen?;
|
|
116
|
-
private _dtInput?;
|
|
117
|
-
get dtInput(): DateTimeInputDirective<T> | undefined;
|
|
118
|
-
private _selected?;
|
|
119
|
-
get selected(): T | undefined;
|
|
120
|
-
set selected(value: T | undefined);
|
|
121
|
-
private _selecteds;
|
|
122
|
-
get selecteds(): Array<T | undefined>;
|
|
123
|
-
set selecteds(values: Array<T | undefined>);
|
|
124
|
-
/** The minimum selectable date */
|
|
125
|
-
get min(): T | undefined;
|
|
126
|
-
/** The maximum selectable date */
|
|
127
|
-
get max(): T | undefined;
|
|
128
|
-
get dateTimeFilter(): import("../../class/date-time.class").DateFilter<T> | undefined;
|
|
129
|
-
get selectMode(): import("../../class/date-time.class").SelectMode | undefined;
|
|
130
|
-
get isInSingleMode(): boolean;
|
|
131
|
-
get isInRangeMode(): boolean;
|
|
132
|
-
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dialogService: DialogService, ngZone: NgZone, changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, defaultScrollStrategy: () => ScrollStrategy, dateTimeFormats: DateTimeFormats, document?: Document | undefined);
|
|
133
|
-
ngOnInit(): void;
|
|
134
|
-
ngOnDestroy(): void;
|
|
135
|
-
registerInput(input: DateTimeInputDirective<T>): void;
|
|
136
|
-
open(): void;
|
|
137
|
-
/**
|
|
138
|
-
* Selects the given date
|
|
139
|
-
*/
|
|
140
|
-
select(date: T[] | T): void;
|
|
141
|
-
/**
|
|
142
|
-
* Emits the selected year in multi-year view
|
|
143
|
-
*/
|
|
144
|
-
selectYear(normalizedYear: T): void;
|
|
145
|
-
/**
|
|
146
|
-
* Emits selected month in year view
|
|
147
|
-
*/
|
|
148
|
-
selectMonth(normalizedMonth: T): void;
|
|
149
|
-
/**
|
|
150
|
-
* Hide the picker
|
|
151
|
-
*/
|
|
152
|
-
close(): void;
|
|
153
|
-
/**
|
|
154
|
-
* Confirm the selected value
|
|
155
|
-
*/
|
|
156
|
-
confirmSelect(_event?: any): void;
|
|
157
|
-
/**
|
|
158
|
-
* Open the picker as a dialog
|
|
159
|
-
*/
|
|
160
|
-
private openAsDialog;
|
|
161
|
-
/**
|
|
162
|
-
* Open the picker as popup
|
|
163
|
-
*/
|
|
164
|
-
private openAsPopup;
|
|
165
|
-
private createPopup;
|
|
166
|
-
/**
|
|
167
|
-
* Create the popup PositionStrategy.
|
|
168
|
-
*/
|
|
169
|
-
private createPopupPositionStrategy;
|
|
170
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeComponent<any>, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
171
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeComponent<any>, "nxt-date-time", never, { "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "pickerType": { "alias": "pickerType"; "required": false; }; "pickerMode": { "alias": "pickerMode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; }; }, { "afterPickerOpened": "open"; "afterPickerClosed": "close"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "isOpenChange": "isOpenChange"; }, never, never, false, never>;
|
|
172
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { AnimationEvent } from '@angular/animations';
|
|
2
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
3
|
-
import { DateTimeAdapter } from '../../class/date-time-adapter.class';
|
|
4
|
-
import { DateTimeDirective } from '../../class/date-time.class';
|
|
5
|
-
import { CalendarComponent } from '../calendar/calendar.component';
|
|
6
|
-
import { DateTimeIntl } from '../date-time-picker-intl.service';
|
|
7
|
-
import { TimerComponent } from '../timer/timer.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare class DateTimeContainerComponent<T> implements OnInit, AfterContentInit, AfterViewInit {
|
|
11
|
-
private readonly cdRef;
|
|
12
|
-
private readonly elmRef;
|
|
13
|
-
private readonly pickerIntl;
|
|
14
|
-
private readonly dateTimeAdapter;
|
|
15
|
-
calendar?: CalendarComponent<T>;
|
|
16
|
-
timer?: TimerComponent<T>;
|
|
17
|
-
picker?: DateTimeDirective<T>;
|
|
18
|
-
activeSelectedIndex: number;
|
|
19
|
-
/**
|
|
20
|
-
* Stream emits when try to hide picker
|
|
21
|
-
*/
|
|
22
|
-
private readonly hidePicker$;
|
|
23
|
-
readonly hidePickerStream: import("rxjs").Observable<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Stream emits when try to confirm the selected value
|
|
26
|
-
*/
|
|
27
|
-
private readonly confirmSelected$;
|
|
28
|
-
readonly confirmSelectedStream: import("rxjs").Observable<Event>;
|
|
29
|
-
private readonly pickerOpened$;
|
|
30
|
-
readonly pickerOpenedStream: import("rxjs").Observable<void>;
|
|
31
|
-
/**
|
|
32
|
-
* The current picker moment. This determines which time period is shown and which date is
|
|
33
|
-
* highlighted when using keyboard navigation.
|
|
34
|
-
*/
|
|
35
|
-
private _clamPickerMoment?;
|
|
36
|
-
get pickerMoment(): T | undefined;
|
|
37
|
-
set pickerMoment(value: T | undefined);
|
|
38
|
-
get pickerType(): import("../../class/date-time.class").PickerType | undefined;
|
|
39
|
-
get cancelLabel(): string;
|
|
40
|
-
get setLabel(): string;
|
|
41
|
-
/**
|
|
42
|
-
* The range 'from' label
|
|
43
|
-
*/
|
|
44
|
-
get fromLabel(): string;
|
|
45
|
-
/**
|
|
46
|
-
* The range 'to' label
|
|
47
|
-
*/
|
|
48
|
-
get toLabel(): string;
|
|
49
|
-
/**
|
|
50
|
-
* The range 'from' formatted value
|
|
51
|
-
*/
|
|
52
|
-
get fromFormattedValue(): string;
|
|
53
|
-
/**
|
|
54
|
-
* The range 'to' formatted value
|
|
55
|
-
*/
|
|
56
|
-
get toFormattedValue(): string;
|
|
57
|
-
/**
|
|
58
|
-
* Cases in which the control buttons show in the picker
|
|
59
|
-
* 1) picker mode is 'dialog'
|
|
60
|
-
* 2) picker type is NOT 'calendar' and the picker mode is NOT 'inline'
|
|
61
|
-
*/
|
|
62
|
-
get showControlButtons(): boolean;
|
|
63
|
-
get containerElm(): HTMLElement;
|
|
64
|
-
/** @internal */
|
|
65
|
-
get containerClass(): boolean;
|
|
66
|
-
/** @internal */
|
|
67
|
-
get popupContainerClass(): boolean;
|
|
68
|
-
/** @internal */
|
|
69
|
-
get dialogContainerClass(): boolean;
|
|
70
|
-
/** @internal */
|
|
71
|
-
get inlineContainerClass(): boolean;
|
|
72
|
-
/** @internal */
|
|
73
|
-
get containerDisabledClass(): boolean;
|
|
74
|
-
/** @internal */
|
|
75
|
-
get containerId(): string | undefined;
|
|
76
|
-
/** @internal */
|
|
77
|
-
get containerAnimation(): any;
|
|
78
|
-
constructor(cdRef: ChangeDetectorRef, elmRef: ElementRef<HTMLElement>, pickerIntl: DateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>);
|
|
79
|
-
ngOnInit(): void;
|
|
80
|
-
ngAfterContentInit(): void;
|
|
81
|
-
ngAfterViewInit(): void;
|
|
82
|
-
handleContainerAnimationDone(event: AnimationEvent): void;
|
|
83
|
-
dateSelected(date?: T): void;
|
|
84
|
-
timeSelected(time?: T): void;
|
|
85
|
-
/**
|
|
86
|
-
* Handle click on cancel button
|
|
87
|
-
*/
|
|
88
|
-
onCancelClicked(event: Event): void;
|
|
89
|
-
/**
|
|
90
|
-
* Handle click on set button
|
|
91
|
-
*/
|
|
92
|
-
onSetClicked(event: Event): void;
|
|
93
|
-
/**
|
|
94
|
-
* Handle click on inform radio group
|
|
95
|
-
*/
|
|
96
|
-
handleClickOnInfoGroup(event: any, index: number): void;
|
|
97
|
-
/**
|
|
98
|
-
* Handle click on inform radio group
|
|
99
|
-
*/
|
|
100
|
-
handleKeydownOnInfoGroup(event: any, next: any, index: number): void;
|
|
101
|
-
/**
|
|
102
|
-
* Set the value of activeSelectedIndex
|
|
103
|
-
*/
|
|
104
|
-
private setActiveSelectedIndex;
|
|
105
|
-
private initPicker;
|
|
106
|
-
/**
|
|
107
|
-
* Select calendar date in single mode,
|
|
108
|
-
* it returns undefined when date is not selected.
|
|
109
|
-
*/
|
|
110
|
-
private dateSelectedInSingleMode;
|
|
111
|
-
/**
|
|
112
|
-
* Select dates in range Mode
|
|
113
|
-
*/
|
|
114
|
-
private dateSelectedInRangeMode;
|
|
115
|
-
/**
|
|
116
|
-
* Update the given calendar date's time and check if it is valid
|
|
117
|
-
* Because the calendar date has 00:00:00 as default time, if the picker type is 'both',
|
|
118
|
-
* we need to update the given calendar date's time before selecting it.
|
|
119
|
-
* if it is valid, return the updated dateTime
|
|
120
|
-
* if it is not valid, return undefined
|
|
121
|
-
*/
|
|
122
|
-
private updateAndCheckCalendarDate;
|
|
123
|
-
/**
|
|
124
|
-
* Focus to the picker
|
|
125
|
-
*/
|
|
126
|
-
private focusPicker;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeContainerComponent<any>, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeContainerComponent<any>, "nxt-date-time-container", never, {}, {}, never, never, false, never>;
|
|
129
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit, Provider, Renderer2 } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { DateTimeAdapter } from '../class/date-time-adapter.class';
|
|
4
|
-
import { DateTimeFormats } from '../class/date-time-format.class';
|
|
5
|
-
import { DateFilter, SelectMode } from '../class/date-time.class';
|
|
6
|
-
import { DateTimeComponent } from './date-time-picker/date-time-picker.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const NXT_DATETIME_VALUE_ACCESSOR: Provider;
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const NXT_DATETIME_VALIDATORS: Provider;
|
|
12
|
-
export interface DateTimeInputEvent<T> {
|
|
13
|
-
source: DateTimeInputDirective<T>;
|
|
14
|
-
value?: T | Array<T | undefined>;
|
|
15
|
-
input: HTMLInputElement;
|
|
16
|
-
}
|
|
17
|
-
export declare class DateTimeInputDirective<T> implements OnInit, AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
|
|
18
|
-
private readonly elmRef;
|
|
19
|
-
private readonly renderer;
|
|
20
|
-
private readonly dateTimeAdapter;
|
|
21
|
-
private readonly dateTimeFormats;
|
|
22
|
-
/**
|
|
23
|
-
* The date & time picker this input is associated with
|
|
24
|
-
*/
|
|
25
|
-
set dateTime(value: DateTimeComponent<T>);
|
|
26
|
-
private _dateTimeFilter?;
|
|
27
|
-
/**
|
|
28
|
-
* A function to filter available date & time
|
|
29
|
-
*/
|
|
30
|
-
set dateTimeFilter(filter: DateFilter<T> | undefined);
|
|
31
|
-
get dateTimeFilter(): DateFilter<T> | undefined;
|
|
32
|
-
private _disabled;
|
|
33
|
-
/** Whether the date & time picker input is disabled */
|
|
34
|
-
get disabled(): boolean;
|
|
35
|
-
set disabled(value: boolean);
|
|
36
|
-
private _min?;
|
|
37
|
-
/** The minimum valid date */
|
|
38
|
-
get min(): T | undefined;
|
|
39
|
-
set min(value: T | undefined);
|
|
40
|
-
private _max?;
|
|
41
|
-
/** The maximum valid date */
|
|
42
|
-
get max(): T | undefined;
|
|
43
|
-
set max(value: T | undefined);
|
|
44
|
-
private _selectMode;
|
|
45
|
-
/**
|
|
46
|
-
* The picker select mode
|
|
47
|
-
*
|
|
48
|
-
* - `'single'` - select a single date
|
|
49
|
-
* - `'range'` - select a range [from, to]
|
|
50
|
-
* - `'rangeFrom'` - an open range with a fixed start date
|
|
51
|
-
* - `'rangeTo'` - an open range with a fixed end date
|
|
52
|
-
*/
|
|
53
|
-
get selectMode(): SelectMode;
|
|
54
|
-
set selectMode(mode: SelectMode);
|
|
55
|
-
/**
|
|
56
|
-
* The character to separate the 'from' and 'to' in input value
|
|
57
|
-
*/
|
|
58
|
-
rangeSeparator: string;
|
|
59
|
-
private _value?;
|
|
60
|
-
get value(): T | undefined;
|
|
61
|
-
set value(value: T | undefined);
|
|
62
|
-
private _values;
|
|
63
|
-
get values(): Array<T | undefined>;
|
|
64
|
-
set values(values: Array<T | undefined>);
|
|
65
|
-
/**
|
|
66
|
-
* Callback to invoke when `change` event is fired on this `<input>`
|
|
67
|
-
*/
|
|
68
|
-
readonly dateTimeChange: EventEmitter<DateTimeInputEvent<T>>;
|
|
69
|
-
/**
|
|
70
|
-
* Callback to invoke when an `input` event is fired on this `<input>`.
|
|
71
|
-
*/
|
|
72
|
-
readonly dateTimeInput: EventEmitter<DateTimeInputEvent<T>>;
|
|
73
|
-
get elementRef(): ElementRef<HTMLInputElement>;
|
|
74
|
-
get isInSingleMode(): boolean;
|
|
75
|
-
get isInRangeMode(): boolean;
|
|
76
|
-
/** The date-time-picker that this input is associated with */
|
|
77
|
-
dtPicker?: DateTimeComponent<T>;
|
|
78
|
-
private dtPickerSub?;
|
|
79
|
-
private localeSub?;
|
|
80
|
-
private lastValueValid;
|
|
81
|
-
private onModelChange?;
|
|
82
|
-
private onModelTouched?;
|
|
83
|
-
private validatorOnChange?;
|
|
84
|
-
/** The form control validator for whether the input parses */
|
|
85
|
-
private readonly parseValidator;
|
|
86
|
-
/** The form control validator for the min date */
|
|
87
|
-
private readonly minValidator;
|
|
88
|
-
/** The form control validator for the max date */
|
|
89
|
-
private readonly maxValidator;
|
|
90
|
-
/** The form control validator for the date filter */
|
|
91
|
-
private readonly filterValidator;
|
|
92
|
-
/**
|
|
93
|
-
* The form control validator for the range.
|
|
94
|
-
* Check whether the 'before' value is before the 'to' value
|
|
95
|
-
*/
|
|
96
|
-
private readonly rangeValidator;
|
|
97
|
-
/** The combined form control validator for this input */
|
|
98
|
-
private readonly validator;
|
|
99
|
-
/** Emits when the value changes (either due to user input or programmatic change) */
|
|
100
|
-
readonly valueChange: EventEmitter<T | (T | undefined)[] | undefined>;
|
|
101
|
-
/** Emits when the disabled state has changed */
|
|
102
|
-
readonly disabledChange: EventEmitter<boolean>;
|
|
103
|
-
/** @internal */
|
|
104
|
-
get inputAriaHaspopup(): boolean;
|
|
105
|
-
/** @internal */
|
|
106
|
-
get inputAriaOwns(): string | undefined;
|
|
107
|
-
/** @internal */
|
|
108
|
-
get minIso8601(): string | undefined;
|
|
109
|
-
/** @internal */
|
|
110
|
-
get maxIso8601(): string | undefined;
|
|
111
|
-
/** @internal */
|
|
112
|
-
get inputDisabled(): boolean;
|
|
113
|
-
constructor(elmRef: ElementRef<HTMLInputElement>, renderer: Renderer2, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: DateTimeFormats);
|
|
114
|
-
ngOnInit(): void;
|
|
115
|
-
ngAfterContentInit(): void;
|
|
116
|
-
ngOnDestroy(): void;
|
|
117
|
-
writeValue(value: any): void;
|
|
118
|
-
registerOnChange(fn: any): void;
|
|
119
|
-
registerOnTouched(fn: any): void;
|
|
120
|
-
setDisabledState(isDisabled: boolean): void;
|
|
121
|
-
validate(c: AbstractControl): ValidationErrors | null;
|
|
122
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
123
|
-
/**
|
|
124
|
-
* Open the picker when user hold alt + ArrowDown
|
|
125
|
-
*/
|
|
126
|
-
handleKeydownOnHost(event: KeyboardEvent): void;
|
|
127
|
-
handleBlurOnHost(_event: Event): void;
|
|
128
|
-
handleInputOnHost(event: any): void;
|
|
129
|
-
handleChangeOnHost(_event: any): void;
|
|
130
|
-
/**
|
|
131
|
-
* Set the native input property 'value'
|
|
132
|
-
*/
|
|
133
|
-
formatNativeInputValue(): void;
|
|
134
|
-
/**
|
|
135
|
-
* Register the relationship between this input and its picker component
|
|
136
|
-
*/
|
|
137
|
-
private registerDateTimePicker;
|
|
138
|
-
/**
|
|
139
|
-
* Convert a given obj to a valid date object
|
|
140
|
-
*/
|
|
141
|
-
private getValidDate;
|
|
142
|
-
/**
|
|
143
|
-
* Convert a time string to a date-time string
|
|
144
|
-
* When pickerType is 'timer', the value in the picker's input is a time string.
|
|
145
|
-
* The dateTimeAdapter parse fn could not parse a time string to a Date Object.
|
|
146
|
-
* Therefore we need this fn to convert a time string to a date-time string.
|
|
147
|
-
*/
|
|
148
|
-
private convertTimeStringToDateTimeString;
|
|
149
|
-
/**
|
|
150
|
-
* Handle input change in single mode
|
|
151
|
-
*/
|
|
152
|
-
private changeInputInSingleMode;
|
|
153
|
-
/**
|
|
154
|
-
* Handle input change in rangeFrom or rangeTo mode
|
|
155
|
-
*/
|
|
156
|
-
private changeInputInRangeFromToMode;
|
|
157
|
-
/**
|
|
158
|
-
* Handle input change in range mode
|
|
159
|
-
*/
|
|
160
|
-
private changeInputInRangeMode;
|
|
161
|
-
/**
|
|
162
|
-
* Check if the two value is the same
|
|
163
|
-
*/
|
|
164
|
-
private isSameValue;
|
|
165
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputDirective<any>, never>;
|
|
166
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeInputDirective<any>, "input[nxtDateTime]", ["nxtDateTimeInput"], { "dateTime": { "alias": "nxtDateTime"; "required": false; }; "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "rangeSeparator": { "alias": "rangeSeparator"; "required": false; }; "value": { "alias": "value"; "required": false; }; "values": { "alias": "values"; "required": false; }; }, { "dateTimeChange": "dateTimeChange"; "dateTimeInput": "dateTimeInput"; }, never, never, false, never>;
|
|
167
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DateTimeIntl {
|
|
4
|
-
/**
|
|
5
|
-
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
6
|
-
* components if the labels have changed after initialization.
|
|
7
|
-
*/
|
|
8
|
-
readonly changes: Subject<void>;
|
|
9
|
-
/** A label for the up second button (used by screen readers). */
|
|
10
|
-
upSecondLabel: string;
|
|
11
|
-
/** A label for the down second button (used by screen readers). */
|
|
12
|
-
downSecondLabel: string;
|
|
13
|
-
/** A label for the up minute button (used by screen readers). */
|
|
14
|
-
upMinuteLabel: string;
|
|
15
|
-
/** A label for the down minute button (used by screen readers). */
|
|
16
|
-
downMinuteLabel: string;
|
|
17
|
-
/** A label for the up hour button (used by screen readers). */
|
|
18
|
-
upHourLabel: string;
|
|
19
|
-
/** A label for the down hour button (used by screen readers). */
|
|
20
|
-
downHourLabel: string;
|
|
21
|
-
/** A label for the previous month button (used by screen readers) */
|
|
22
|
-
prevMonthLabel: string;
|
|
23
|
-
/** A label for the next month button (used by screen readers) */
|
|
24
|
-
nextMonthLabel: string;
|
|
25
|
-
/** A label for the previous year button (used by screen readers) */
|
|
26
|
-
prevYearLabel: string;
|
|
27
|
-
/** A label for the next year button (used by screen readers) */
|
|
28
|
-
nextYearLabel: string;
|
|
29
|
-
/** A label for the previous multi-year button (used by screen readers) */
|
|
30
|
-
prevMultiYearLabel: string;
|
|
31
|
-
/** A label for the next multi-year button (used by screen readers) */
|
|
32
|
-
nextMultiYearLabel: string;
|
|
33
|
-
/** A label for the 'switch to month view' button (used by screen readers) */
|
|
34
|
-
switchToMonthViewLabel: string;
|
|
35
|
-
/** A label for the 'switch to year view' button (used by screen readers) */
|
|
36
|
-
switchToMultiYearViewLabel: string;
|
|
37
|
-
/** A label for the cancel button */
|
|
38
|
-
cancelBtnLabel: string;
|
|
39
|
-
/** A label for the set button */
|
|
40
|
-
setBtnLabel: string;
|
|
41
|
-
/** A label for the range 'from' in picker info */
|
|
42
|
-
rangeFromLabel: string;
|
|
43
|
-
/** A label for the range 'to' in picker info */
|
|
44
|
-
rangeToLabel: string;
|
|
45
|
-
/** A label for the hour12 button (AM) */
|
|
46
|
-
hour12AMLabel: string;
|
|
47
|
-
/** A label for the hour12 button (PM) */
|
|
48
|
-
hour12PMLabel: string;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeIntl, never>;
|
|
50
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DateTimeIntl>;
|
|
51
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { DateTimeComponent } from './date-time-picker/date-time-picker.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DateTimeTriggerDirective<T> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
5
|
-
protected readonly changeDetector: ChangeDetectorRef;
|
|
6
|
-
dtPicker?: DateTimeComponent<T>;
|
|
7
|
-
private _disabled?;
|
|
8
|
-
get disabled(): boolean;
|
|
9
|
-
set disabled(value: boolean);
|
|
10
|
-
/** @internal */
|
|
11
|
-
get triggerDisabledClass(): boolean;
|
|
12
|
-
private stateChanges?;
|
|
13
|
-
constructor(changeDetector: ChangeDetectorRef);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
-
ngAfterContentInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
handleClickOnHost(event: Event): void;
|
|
19
|
-
private watchStateChanges;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeTriggerDirective<any>, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, { "dtPicker": { "alias": "nxtDateTimeTrigger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./date-time-picker-trigger.directive";
|
|
3
|
-
import * as i2 from "./date-time-picker-input.directive";
|
|
4
|
-
import * as i3 from "./date-time-picker/date-time-picker.component";
|
|
5
|
-
import * as i4 from "./date-time-picker-container/date-time-picker-container.component";
|
|
6
|
-
import * as i5 from "./calendar-multi-year-view/calendar-multi-year-view.component";
|
|
7
|
-
import * as i6 from "./calendar-year-view/calendar-year-view.component";
|
|
8
|
-
import * as i7 from "./calendar-month-view/calendar-month-view.component";
|
|
9
|
-
import * as i8 from "./timer/timer.component";
|
|
10
|
-
import * as i9 from "./timer-box/timer-box.component";
|
|
11
|
-
import * as i10 from "./calendar/calendar.component";
|
|
12
|
-
import * as i11 from "./calendar-body/calendar-body.component";
|
|
13
|
-
import * as i12 from "./number-fixed-len.pipe";
|
|
14
|
-
import * as i13 from "./date-time-inline/date-time-inline.component";
|
|
15
|
-
import * as i14 from "@angular/common";
|
|
16
|
-
import * as i15 from "@angular/cdk/overlay";
|
|
17
|
-
import * as i16 from "../dialog/dialog.module";
|
|
18
|
-
import * as i17 from "@angular/cdk/a11y";
|
|
19
|
-
export declare class DateTimeModule {
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimeModule, [typeof i1.DateTimeTriggerDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeComponent, typeof i4.DateTimeContainerComponent, typeof i5.MultiYearViewComponent, typeof i6.YearViewComponent, typeof i7.MonthViewComponent, typeof i8.TimerComponent, typeof i9.TimerBoxComponent, typeof i10.CalendarComponent, typeof i11.CalendarBodyComponent, typeof i12.NumberFixedLenPipe, typeof i13.DateTimeInlineComponent], [typeof i14.CommonModule, typeof i15.OverlayModule, typeof i16.DialogModule, typeof i17.A11yModule], [typeof i10.CalendarComponent, typeof i8.TimerComponent, typeof i1.DateTimeTriggerDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeComponent, typeof i13.DateTimeInlineComponent, typeof i5.MultiYearViewComponent, typeof i6.YearViewComponent, typeof i7.MonthViewComponent]>;
|
|
22
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DateTimeModule>;
|
|
23
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export declare class NumberFixedLenPipe implements PipeTransform {
|
|
5
|
-
transform(num: number | undefined, len: number | undefined): string | number | undefined;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFixedLenPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NumberFixedLenPipe, "numberFixedLen", false>;
|
|
8
|
-
}
|