@imihai/angular-datetime-picker 21.0.2 → 22.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/.browserslistrc +9 -0
- package/.editorconfig +13 -0
- package/.eslintrc.js +208 -0
- package/.github/workflows/ci_test.yml +35 -0
- package/.prettierrc +2 -0
- package/.travis.yml +16 -0
- package/angular.json +221 -0
- package/e2e/protractor.conf.js +28 -0
- package/e2e/src/app.e2e-spec.ts +14 -0
- package/e2e/src/app.po.ts +11 -0
- package/e2e/tsconfig.e2e.json +13 -0
- package/package.json +77 -33
- package/projects/picker/karma.conf.js +62 -0
- package/projects/picker/ng-package.json +7 -0
- package/projects/picker/package.json +23 -0
- package/projects/picker/src/lib/date-time/adapter/date-time-adapter.class.ts +313 -0
- package/projects/picker/src/lib/date-time/adapter/date-time-format.class.ts +18 -0
- package/projects/picker/src/lib/date-time/adapter/luxon-date-time-adapter.class.ts +307 -0
- package/projects/picker/src/lib/date-time/adapter/luxon-date-time-format.class.ts +11 -0
- package/projects/picker/src/lib/date-time/adapter/luxon-date-time.module.ts +31 -0
- package/projects/picker/src/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-adapter.class.ts +356 -0
- package/projects/picker/src/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time-format.class.ts +14 -0
- package/projects/picker/src/lib/date-time/adapter/unix-timestamp-adapter/unix-timestamp-date-time.module.ts +26 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.html +38 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.spec.ts +120 -0
- package/projects/picker/src/lib/date-time/calendar-body.component.ts +190 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.html +47 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.scss +16 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.spec.ts +394 -0
- package/projects/picker/src/lib/date-time/calendar-month-view.component.ts +705 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.html +44 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.spec.ts +343 -0
- package/projects/picker/src/lib/date-time/calendar-multi-year-view.component.ts +465 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.html +16 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.spec.ts +381 -0
- package/projects/picker/src/lib/date-time/calendar-year-view.component.ts +549 -0
- package/projects/picker/src/lib/date-time/calendar.component.html +169 -0
- package/projects/picker/src/lib/date-time/calendar.component.scss +0 -0
- package/projects/picker/src/lib/date-time/calendar.component.spec.ts +592 -0
- package/projects/picker/src/lib/date-time/calendar.component.ts +496 -0
- package/projects/picker/src/lib/date-time/date-time-inline.component.html +1 -0
- package/projects/picker/src/lib/date-time/date-time-inline.component.scss +4 -0
- package/projects/picker/src/lib/date-time/date-time-inline.component.ts +365 -0
- package/projects/picker/src/lib/date-time/date-time-picker-animation-event.ts +4 -0
- package/projects/picker/src/lib/date-time/date-time-picker-container.component.html +126 -0
- package/projects/picker/src/lib/date-time/date-time-picker-container.component.scss +0 -0
- package/projects/picker/src/lib/date-time/date-time-picker-container.component.ts +631 -0
- package/projects/picker/src/lib/date-time/date-time-picker-input.directive.ts +851 -0
- package/projects/picker/src/lib/date-time/date-time-picker-intl.service.ts +76 -0
- package/projects/picker/src/lib/date-time/date-time-picker-trigger.directive.ts +88 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.html +0 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.scss +0 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.spec.ts +2648 -0
- package/projects/picker/src/lib/date-time/date-time-picker.component.ts +731 -0
- package/projects/picker/src/lib/date-time/date-time.class.ts +256 -0
- package/projects/picker/src/lib/date-time/date-time.module.ts +61 -0
- package/projects/picker/src/lib/date-time/numberedFixLen.pipe.ts +28 -0
- package/projects/picker/src/lib/date-time/options-provider.ts +44 -0
- package/projects/picker/src/lib/date-time/timer-box.component.html +79 -0
- package/projects/picker/src/lib/date-time/timer-box.component.scss +0 -0
- package/projects/picker/src/lib/date-time/timer-box.component.ts +175 -0
- package/projects/picker/src/lib/date-time/timer.component.html +58 -0
- package/projects/picker/src/lib/date-time/timer.component.scss +0 -0
- package/projects/picker/src/lib/date-time/timer.component.spec.ts +399 -0
- package/projects/picker/src/lib/date-time/timer.component.ts +371 -0
- package/projects/picker/src/lib/dialog/dialog-config.class.ts +220 -0
- package/projects/picker/src/lib/dialog/dialog-container.component.html +1 -0
- package/projects/picker/src/lib/dialog/dialog-container.component.scss +0 -0
- package/projects/picker/src/lib/dialog/dialog-container.component.ts +231 -0
- package/projects/picker/src/lib/dialog/dialog-ref.class.ts +178 -0
- package/projects/picker/src/lib/dialog/dialog.module.ts +25 -0
- package/projects/picker/src/lib/dialog/dialog.service.ts +353 -0
- package/projects/picker/src/lib/utils/array.utils.ts +12 -0
- package/projects/picker/src/lib/utils/constants.ts +59 -0
- package/projects/picker/src/lib/utils/date.utils.ts +97 -0
- package/projects/picker/src/lib/utils/index.ts +5 -0
- package/projects/picker/src/lib/utils/object.utils.ts +29 -0
- package/projects/picker/src/public_api.ts +56 -0
- package/projects/picker/src/sass/picker.scss +743 -0
- package/projects/picker/src/test-helpers.ts +125 -0
- package/projects/picker/src/test.ts +52 -0
- package/projects/picker/tsconfig.lib.json +19 -0
- package/projects/picker/tsconfig.lib.prod.json +7 -0
- package/projects/picker/tsconfig.spec.json +17 -0
- package/projects/picker/tslint.json +8 -0
- package/src/app/app.component.html +77 -0
- package/src/app/app.component.scss +32 -0
- package/src/app/app.component.spec.ts +16 -0
- package/src/app/app.component.ts +35 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +14 -0
- package/src/karma.conf.js +31 -0
- package/src/main.ts +16 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +7 -0
- package/src/test.ts +50 -0
- package/src/tsconfig.app.json +16 -0
- package/src/tsconfig.spec.json +18 -0
- package/src/tslint.json +17 -0
- package/tsconfig.base.json +31 -0
- package/tsconfig.json +30 -0
- package/tslint.json +130 -0
- package/assets/style/picker.min.css +0 -1
- package/fesm2022/imihai-angular-datetime-picker.mjs +0 -5845
- package/fesm2022/imihai-angular-datetime-picker.mjs.map +0 -1
- package/imihai-angular-datetime-picker-21.0.2.tgz +0 -0
- package/types/imihai-angular-datetime-picker.d.ts +0 -2193
|
@@ -1,2193 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewContainerRef, OnInit, EventEmitter, ElementRef, ComponentRef, EmbeddedViewRef, Signal, Injector, TemplateRef, InjectionToken, AfterContentInit, OnDestroy, Renderer2, ChangeDetectorRef, NgZone, OnChanges, SimpleChanges, AfterViewChecked, AfterViewInit, AnimationCallbackEvent, PipeTransform, Provider } from '@angular/core';
|
|
3
|
-
import * as i4 from '@angular/cdk/overlay';
|
|
4
|
-
import { ScrollStrategy, OverlayRef, Overlay, OverlayContainer } from '@angular/cdk/overlay';
|
|
5
|
-
import * as i2 from '@angular/common';
|
|
6
|
-
import { Location } from '@angular/common';
|
|
7
|
-
import { Observable, Subject } from 'rxjs';
|
|
8
|
-
import * as i3 from '@angular/cdk/a11y';
|
|
9
|
-
import { FocusTrapFactory } from '@angular/cdk/a11y';
|
|
10
|
-
import * as i5 from '@angular/cdk/portal';
|
|
11
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, ComponentType } from '@angular/cdk/portal';
|
|
12
|
-
import { ControlValueAccessor, Validator, AbstractControl } from '@angular/forms';
|
|
13
|
-
import { DateTime } from 'luxon';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* dialog-config.class
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/** Possible overrides for a dialog's position. */
|
|
20
|
-
interface DialogPosition {
|
|
21
|
-
/** Override for the dialog's top position. */
|
|
22
|
-
top?: string;
|
|
23
|
-
/** Override for the dialog's bottom position. */
|
|
24
|
-
bottom?: string;
|
|
25
|
-
/** Override for the dialog's left position. */
|
|
26
|
-
left?: string;
|
|
27
|
-
/** Override for the dialog's right position. */
|
|
28
|
-
right?: string;
|
|
29
|
-
}
|
|
30
|
-
interface OwlDialogConfigInterface {
|
|
31
|
-
/**
|
|
32
|
-
* ID of the element that describes the dialog.
|
|
33
|
-
*/
|
|
34
|
-
ariaDescribedBy?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* Whether to focus the dialog when the dialog is opened
|
|
37
|
-
*/
|
|
38
|
-
autoFocus?: boolean;
|
|
39
|
-
/** Whether the dialog has a backdrop. */
|
|
40
|
-
hasBackdrop?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Custom style for the backdrop
|
|
43
|
-
* */
|
|
44
|
-
backdropStyle?: any;
|
|
45
|
-
/** Data being injected into the child component. */
|
|
46
|
-
data?: any;
|
|
47
|
-
/** Whether the user can use escape or clicking outside to close a modal. */
|
|
48
|
-
disableClose?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* ID for the modal. If omitted, a unique one will be generated.
|
|
51
|
-
*/
|
|
52
|
-
id?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The ARIA role of the dialog element.
|
|
55
|
-
*/
|
|
56
|
-
role?: 'dialog' | 'alertdialog';
|
|
57
|
-
/**
|
|
58
|
-
* Custom class for the pane
|
|
59
|
-
* */
|
|
60
|
-
paneClass?: string | string[];
|
|
61
|
-
/**
|
|
62
|
-
* Mouse Event
|
|
63
|
-
* */
|
|
64
|
-
event?: MouseEvent;
|
|
65
|
-
/**
|
|
66
|
-
* Custom class for the backdrop
|
|
67
|
-
* */
|
|
68
|
-
backdropClass?: string | string[];
|
|
69
|
-
/**
|
|
70
|
-
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
71
|
-
* */
|
|
72
|
-
closeOnNavigation?: boolean;
|
|
73
|
-
/** Width of the dialog. */
|
|
74
|
-
width?: string;
|
|
75
|
-
/** Height of the dialog. */
|
|
76
|
-
height?: string;
|
|
77
|
-
/**
|
|
78
|
-
* The min-width of the overlay panel.
|
|
79
|
-
* If a number is provided, pixel units are assumed.
|
|
80
|
-
* */
|
|
81
|
-
minWidth?: number | string;
|
|
82
|
-
/**
|
|
83
|
-
* The min-height of the overlay panel.
|
|
84
|
-
* If a number is provided, pixel units are assumed.
|
|
85
|
-
* */
|
|
86
|
-
minHeight?: number | string;
|
|
87
|
-
/**
|
|
88
|
-
* The max-width of the overlay panel.
|
|
89
|
-
* If a number is provided, pixel units are assumed.
|
|
90
|
-
* */
|
|
91
|
-
maxWidth?: number | string;
|
|
92
|
-
/**
|
|
93
|
-
* The max-height of the overlay panel.
|
|
94
|
-
* If a number is provided, pixel units are assumed.
|
|
95
|
-
* */
|
|
96
|
-
maxHeight?: number | string;
|
|
97
|
-
/** Position overrides. */
|
|
98
|
-
position?: DialogPosition;
|
|
99
|
-
/**
|
|
100
|
-
* The scroll strategy when the dialog is open
|
|
101
|
-
* Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
|
|
102
|
-
* */
|
|
103
|
-
scrollStrategy?: ScrollStrategy;
|
|
104
|
-
viewContainerRef?: ViewContainerRef;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface IDateTimePickerAnimationEvent {
|
|
108
|
-
phaseName: 'start' | 'done';
|
|
109
|
-
toState: 'enter' | 'leave';
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare class OwlDialogContainerComponent extends BasePortalOutlet implements OnInit {
|
|
113
|
-
private elementRef;
|
|
114
|
-
private focusTrapFactory;
|
|
115
|
-
private document;
|
|
116
|
-
portalOutlet: CdkPortalOutlet | null;
|
|
117
|
-
/** The class that traps and manages focus within the dialog. */
|
|
118
|
-
private focusTrap;
|
|
119
|
-
/** ID of the element that should be considered as the dialog's label. */
|
|
120
|
-
ariaLabelledBy: string | null;
|
|
121
|
-
/** Emits when an animation state changes. */
|
|
122
|
-
animationStateChanged: EventEmitter<IDateTimePickerAnimationEvent>;
|
|
123
|
-
isAnimating: i0.WritableSignal<boolean>;
|
|
124
|
-
private _config;
|
|
125
|
-
private _component;
|
|
126
|
-
get config(): OwlDialogConfigInterface;
|
|
127
|
-
private params;
|
|
128
|
-
private elementFocusedBeforeDialogWasOpened;
|
|
129
|
-
get owlDialogContainerClass(): boolean;
|
|
130
|
-
get owlDialogContainerTabIndex(): number;
|
|
131
|
-
get owlDialogContainerId(): string;
|
|
132
|
-
get owlDialogContainerRole(): string;
|
|
133
|
-
get owlDialogContainerAriaLabelledby(): string;
|
|
134
|
-
get owlDialogContainerAriaDescribedby(): string;
|
|
135
|
-
constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, document: any);
|
|
136
|
-
ngOnInit(): void;
|
|
137
|
-
/**
|
|
138
|
-
* Attach a ComponentPortal as content to this dialog container.
|
|
139
|
-
*/
|
|
140
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
141
|
-
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
142
|
-
setConfig(config: OwlDialogConfigInterface): void;
|
|
143
|
-
onAnimationStart(event: IDateTimePickerAnimationEvent): void;
|
|
144
|
-
onAnimationDone(event: IDateTimePickerAnimationEvent): void;
|
|
145
|
-
startExitAnimation(): void;
|
|
146
|
-
/**
|
|
147
|
-
* Calculate origin used in the `zoomFadeInFrom()`
|
|
148
|
-
* for animation purpose
|
|
149
|
-
*/
|
|
150
|
-
private calculateZoomOrigin;
|
|
151
|
-
/**
|
|
152
|
-
* Save the focused element before dialog was open
|
|
153
|
-
*/
|
|
154
|
-
private savePreviouslyFocusedElement;
|
|
155
|
-
private trapFocus;
|
|
156
|
-
private restoreFocus;
|
|
157
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogContainerComponent, [null, null, { optional: true; }]>;
|
|
158
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlDialogContainerComponent, "owl-dialog-container", never, {}, {}, never, never, false, never>;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare class OwlDialogRef<T> {
|
|
162
|
-
private overlayRef;
|
|
163
|
-
private container;
|
|
164
|
-
readonly id: string;
|
|
165
|
-
private result;
|
|
166
|
-
private _beforeClose$;
|
|
167
|
-
private _beforeOpen$;
|
|
168
|
-
private _afterOpen$;
|
|
169
|
-
private _afterClosed$;
|
|
170
|
-
/** Subscription to changes in the user's location. */
|
|
171
|
-
private locationChanged;
|
|
172
|
-
/**
|
|
173
|
-
* The instance of component opened into modal
|
|
174
|
-
* */
|
|
175
|
-
componentInstance: i0.WritableSignal<T>;
|
|
176
|
-
/** Whether the user is allowed to close the dialog. */
|
|
177
|
-
disableClose: boolean;
|
|
178
|
-
constructor(overlayRef: OverlayRef, container: OwlDialogContainerComponent, id: string, location?: Location);
|
|
179
|
-
close(dialogResult?: any): void;
|
|
180
|
-
/**
|
|
181
|
-
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
182
|
-
*/
|
|
183
|
-
backdropClick(): Observable<any>;
|
|
184
|
-
/**
|
|
185
|
-
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
186
|
-
*/
|
|
187
|
-
keydownEvents(): Observable<KeyboardEvent>;
|
|
188
|
-
/**
|
|
189
|
-
* Updates the dialog's position.
|
|
190
|
-
* @param position New dialog position.
|
|
191
|
-
*/
|
|
192
|
-
updatePosition(position?: DialogPosition): this;
|
|
193
|
-
/**
|
|
194
|
-
* Updates the dialog's width and height.
|
|
195
|
-
* @param width New width of the dialog.
|
|
196
|
-
* @param height New height of the dialog.
|
|
197
|
-
*/
|
|
198
|
-
updateSize(width?: string, height?: string): this;
|
|
199
|
-
isAnimating(): Signal<boolean>;
|
|
200
|
-
beforeOpen(): Observable<any>;
|
|
201
|
-
afterOpen(): Observable<any>;
|
|
202
|
-
beforeClose(): Observable<any>;
|
|
203
|
-
afterClosed(): Observable<any>;
|
|
204
|
-
/** Fetches the position strategy object from the overlay ref. */
|
|
205
|
-
private getPositionStrategy;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* dialog.service
|
|
210
|
-
*/
|
|
211
|
-
|
|
212
|
-
declare class OwlDialogService {
|
|
213
|
-
private overlay;
|
|
214
|
-
private injector;
|
|
215
|
-
private location;
|
|
216
|
-
private defaultOptions;
|
|
217
|
-
private parentDialog;
|
|
218
|
-
private overlayContainer;
|
|
219
|
-
private ariaHiddenElements;
|
|
220
|
-
private _openDialogsAtThisLevel;
|
|
221
|
-
private _beforeOpenAtThisLevel;
|
|
222
|
-
private _afterOpenAtThisLevel;
|
|
223
|
-
private _afterAllClosedAtThisLevel;
|
|
224
|
-
/** Keeps track of the currently-open dialogs. */
|
|
225
|
-
get openDialogs(): OwlDialogRef<any>[];
|
|
226
|
-
/** Stream that emits when a dialog has been opened. */
|
|
227
|
-
get beforeOpen(): Subject<OwlDialogRef<any>>;
|
|
228
|
-
/** Stream that emits when a dialog has been opened. */
|
|
229
|
-
get afterOpen(): Subject<OwlDialogRef<any>>;
|
|
230
|
-
get _afterAllClosed(): any;
|
|
231
|
-
/**
|
|
232
|
-
* Stream that emits when all open dialog have finished closing.
|
|
233
|
-
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
234
|
-
*/
|
|
235
|
-
afterAllClosed: Observable<{}>;
|
|
236
|
-
private readonly scrollStrategy;
|
|
237
|
-
constructor(overlay: Overlay, injector: Injector, location: Location, scrollStrategy: any, defaultOptions: OwlDialogConfigInterface, parentDialog: OwlDialogService, overlayContainer: OverlayContainer);
|
|
238
|
-
open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: OwlDialogConfigInterface): OwlDialogRef<any>;
|
|
239
|
-
/**
|
|
240
|
-
* Closes all of the currently-open dialogs.
|
|
241
|
-
*/
|
|
242
|
-
closeAll(): void;
|
|
243
|
-
/**
|
|
244
|
-
* Finds an open dialog by its id.
|
|
245
|
-
* @param id ID to use when looking up the dialog.
|
|
246
|
-
*/
|
|
247
|
-
getDialogById(id: string): OwlDialogRef<any> | undefined;
|
|
248
|
-
private attachDialogContent;
|
|
249
|
-
private createInjector;
|
|
250
|
-
private createOverlay;
|
|
251
|
-
private attachDialogContainer;
|
|
252
|
-
private getOverlayConfig;
|
|
253
|
-
private removeOpenDialog;
|
|
254
|
-
/**
|
|
255
|
-
* Hides all of the content that isn't an overlay from assistive technology.
|
|
256
|
-
*/
|
|
257
|
-
private hideNonDialogContentFromAssistiveTechnology;
|
|
258
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogService, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
259
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OwlDialogService>;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* date-time-adapter.class
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
|
-
/** InjectionToken for date time picker that can be used to override default locale code. */
|
|
267
|
-
declare const OWL_DATE_TIME_LOCALE: InjectionToken<string>;
|
|
268
|
-
/** Provider for OWL_DATE_TIME_LOCALE injection token. */
|
|
269
|
-
declare const OWL_DATE_TIME_LOCALE_PROVIDER: {
|
|
270
|
-
provide: InjectionToken<string>;
|
|
271
|
-
useExisting: InjectionToken<string>;
|
|
272
|
-
};
|
|
273
|
-
declare abstract class DateTimeAdapter<T> {
|
|
274
|
-
/** The locale to use for all dates. */
|
|
275
|
-
protected locale: any;
|
|
276
|
-
/** A stream that emits when the locale changes. */
|
|
277
|
-
protected _localeChanges: Subject<string>;
|
|
278
|
-
get localeChanges(): Observable<string>;
|
|
279
|
-
firstMonthOfTheYear: number;
|
|
280
|
-
firstDayOfTheWeek: number;
|
|
281
|
-
/** total milliseconds in a day. */
|
|
282
|
-
protected readonly millisecondsInDay = 86400000;
|
|
283
|
-
/** total milliseconds in a minute. */
|
|
284
|
-
protected readonly millisecondsInMinute = 60000;
|
|
285
|
-
/**
|
|
286
|
-
* Get the year of the given date
|
|
287
|
-
*/
|
|
288
|
-
abstract getYear(date: T): number;
|
|
289
|
-
/**
|
|
290
|
-
* Get the month of the given date
|
|
291
|
-
* 0 -- January
|
|
292
|
-
* 11 -- December
|
|
293
|
-
* */
|
|
294
|
-
abstract getMonth(date: T): number;
|
|
295
|
-
/**
|
|
296
|
-
* Get the day of the week of the given date
|
|
297
|
-
* 0 -- Sunday
|
|
298
|
-
* 6 -- Saturday
|
|
299
|
-
* */
|
|
300
|
-
abstract getDay(date: T): number;
|
|
301
|
-
/**
|
|
302
|
-
* Get the day num of the given date
|
|
303
|
-
*/
|
|
304
|
-
abstract getDate(date: T): number;
|
|
305
|
-
/**
|
|
306
|
-
* Get the hours of the given date
|
|
307
|
-
*/
|
|
308
|
-
abstract getHours(date: T): number;
|
|
309
|
-
/**
|
|
310
|
-
* Get the minutes of the given date
|
|
311
|
-
*/
|
|
312
|
-
abstract getMinutes(date: T): number;
|
|
313
|
-
/**
|
|
314
|
-
* Get the seconds of the given date
|
|
315
|
-
*/
|
|
316
|
-
abstract getSeconds(date: T): number;
|
|
317
|
-
/**
|
|
318
|
-
* Get the milliseconds timestamp of the given date
|
|
319
|
-
*/
|
|
320
|
-
abstract getTime(date: T): number;
|
|
321
|
-
/**
|
|
322
|
-
* Gets the number of days in the month of the given date.
|
|
323
|
-
*/
|
|
324
|
-
abstract getNumDaysInMonth(date: T): number;
|
|
325
|
-
/**
|
|
326
|
-
* Get the number of calendar days between the given dates.
|
|
327
|
-
* If dateLeft is before dateRight, it would return positive value
|
|
328
|
-
* If dateLeft is after dateRight, it would return negative value
|
|
329
|
-
*/
|
|
330
|
-
abstract differenceInCalendarDays(dateLeft: T, dateRight: T): number;
|
|
331
|
-
/**
|
|
332
|
-
* Gets the name for the year of the given date.
|
|
333
|
-
*/
|
|
334
|
-
abstract getYearName(date: T): string;
|
|
335
|
-
/**
|
|
336
|
-
* Get a list of month names
|
|
337
|
-
*/
|
|
338
|
-
abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
339
|
-
/**
|
|
340
|
-
* Get a list of week names
|
|
341
|
-
*/
|
|
342
|
-
abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
343
|
-
/**
|
|
344
|
-
* Gets a list of names for the dates of the month.
|
|
345
|
-
*/
|
|
346
|
-
abstract getDateNames(): string[];
|
|
347
|
-
/**
|
|
348
|
-
* Return a Date object as a string, using the ISO standard
|
|
349
|
-
*/
|
|
350
|
-
abstract toIso8601(date: T): string;
|
|
351
|
-
/**
|
|
352
|
-
* Check if the give dates are equal
|
|
353
|
-
*/
|
|
354
|
-
abstract isEqual(dateLeft: T, dateRight: T): boolean;
|
|
355
|
-
/**
|
|
356
|
-
* Check if the give dates are the same day
|
|
357
|
-
*/
|
|
358
|
-
abstract isSameDay(dateLeft: T, dateRight: T): boolean;
|
|
359
|
-
/**
|
|
360
|
-
* Checks whether the given date is valid.
|
|
361
|
-
*/
|
|
362
|
-
abstract isValid(date: T): boolean;
|
|
363
|
-
/**
|
|
364
|
-
* Gets date instance that is not valid.
|
|
365
|
-
*/
|
|
366
|
-
abstract invalid(): T;
|
|
367
|
-
/**
|
|
368
|
-
* Checks whether the given object is considered a date instance by this DateTimeAdapter.
|
|
369
|
-
*/
|
|
370
|
-
abstract isDateInstance(obj: any): boolean;
|
|
371
|
-
/**
|
|
372
|
-
* Add the specified number of years to the given date
|
|
373
|
-
*/
|
|
374
|
-
abstract addCalendarYears(date: T, amount: number): T;
|
|
375
|
-
/**
|
|
376
|
-
* Add the specified number of months to the given date
|
|
377
|
-
*/
|
|
378
|
-
abstract addCalendarMonths(date: T, amount: number): T;
|
|
379
|
-
/**
|
|
380
|
-
* Add the specified number of days to the given date
|
|
381
|
-
*/
|
|
382
|
-
abstract addCalendarDays(date: T, amount: number): T;
|
|
383
|
-
/**
|
|
384
|
-
* Set the hours to the given date.
|
|
385
|
-
*/
|
|
386
|
-
abstract setHours(date: T, amount: number): T;
|
|
387
|
-
/**
|
|
388
|
-
* Set the minutes to the given date.
|
|
389
|
-
*/
|
|
390
|
-
abstract setMinutes(date: T, amount: number): T;
|
|
391
|
-
/**
|
|
392
|
-
* Set the seconds to the given date.
|
|
393
|
-
*/
|
|
394
|
-
abstract setSeconds(date: T, amount: number): T;
|
|
395
|
-
/**
|
|
396
|
-
* Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
|
|
397
|
-
* month and date.
|
|
398
|
-
*/
|
|
399
|
-
abstract createDate(year: number, month: number, date: number): T;
|
|
400
|
-
abstract createDate(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): T;
|
|
401
|
-
/**
|
|
402
|
-
* Clone the given date
|
|
403
|
-
*/
|
|
404
|
-
abstract clone(date: T): T;
|
|
405
|
-
/**
|
|
406
|
-
* Get a new moment
|
|
407
|
-
* */
|
|
408
|
-
abstract now(): T;
|
|
409
|
-
/**
|
|
410
|
-
* Formats a date as a string according to the given format.
|
|
411
|
-
*/
|
|
412
|
-
abstract format(date: T, displayFormat: any): string;
|
|
413
|
-
/**
|
|
414
|
-
* Parse a user-provided value to a Date Object
|
|
415
|
-
*/
|
|
416
|
-
abstract parse(value: any, parseFormat: any): T | null;
|
|
417
|
-
/**
|
|
418
|
-
* Compare two given dates
|
|
419
|
-
* 1 if the first date is after the second,
|
|
420
|
-
* -1 if the first date is before the second
|
|
421
|
-
* 0 if dates are equal.
|
|
422
|
-
* */
|
|
423
|
-
compare(first: T, second: T): number;
|
|
424
|
-
/**
|
|
425
|
-
* Check if two given dates are in the same year
|
|
426
|
-
* 1 if the first date's year is after the second,
|
|
427
|
-
* -1 if the first date's year is before the second
|
|
428
|
-
* 0 if two given dates are in the same year
|
|
429
|
-
* */
|
|
430
|
-
compareYear(first: T, second: T): number;
|
|
431
|
-
/**
|
|
432
|
-
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
433
|
-
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
434
|
-
* string). The default implementation does not allow any deserialization, it simply checks that
|
|
435
|
-
* the given value is already a valid date object or null. The `<mat-datepicker>` will call this
|
|
436
|
-
* method on all of it's `@Input()` properties that accept dates. It is therefore possible to
|
|
437
|
-
* support passing values from your backend directly to these properties by overriding this method
|
|
438
|
-
* to also deserialize the format used by your backend.
|
|
439
|
-
*/
|
|
440
|
-
deserialize(value: any): T | null;
|
|
441
|
-
/**
|
|
442
|
-
* Sets the locale used for all dates.
|
|
443
|
-
*/
|
|
444
|
-
setLocale(locale: string): void;
|
|
445
|
-
/**
|
|
446
|
-
* Get the locale used for all dates.
|
|
447
|
-
* */
|
|
448
|
-
getLocale(): any;
|
|
449
|
-
/**
|
|
450
|
-
* Clamp the given date between min and max dates.
|
|
451
|
-
*/
|
|
452
|
-
clampDate(date: T, min?: T | null, max?: T | null): T;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* date-time-format.class
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
|
-
interface OwlDateTimeFormats {
|
|
460
|
-
parseInput: any;
|
|
461
|
-
fullPickerInput: any;
|
|
462
|
-
datePickerInput: any;
|
|
463
|
-
timePickerInput: any;
|
|
464
|
-
monthYearLabel: any;
|
|
465
|
-
dateA11yLabel: any;
|
|
466
|
-
monthYearA11yLabel: any;
|
|
467
|
-
}
|
|
468
|
-
/** InjectionToken for date time picker that can be used to override default format. */
|
|
469
|
-
declare const OWL_DATE_TIME_FORMATS: InjectionToken<OwlDateTimeFormats>;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* date-time.class
|
|
473
|
-
*/
|
|
474
|
-
|
|
475
|
-
type PickerType = 'both' | 'calendar' | 'timer';
|
|
476
|
-
type PickerMode = 'popup' | 'dialog' | 'inline';
|
|
477
|
-
type SelectMode = 'single' | 'range' | 'rangeFrom' | 'rangeTo';
|
|
478
|
-
declare enum DateView {
|
|
479
|
-
MONTH = "month",
|
|
480
|
-
YEAR = "year",
|
|
481
|
-
MULTI_YEARS = "multi-years"
|
|
482
|
-
}
|
|
483
|
-
type DateViewType = DateView.MONTH | DateView.YEAR | DateView.MULTI_YEARS;
|
|
484
|
-
declare abstract class OwlDateTime<T> {
|
|
485
|
-
protected dateTimeAdapter: DateTimeAdapter<T>;
|
|
486
|
-
protected dateTimeFormats: OwlDateTimeFormats;
|
|
487
|
-
/**
|
|
488
|
-
* Whether to show the second's timer
|
|
489
|
-
*/
|
|
490
|
-
private _showSecondsTimer;
|
|
491
|
-
get showSecondsTimer(): boolean;
|
|
492
|
-
set showSecondsTimer(val: boolean);
|
|
493
|
-
/**
|
|
494
|
-
* Whether the timer is in hour12 format
|
|
495
|
-
*/
|
|
496
|
-
private _hour12Timer;
|
|
497
|
-
get hour12Timer(): boolean;
|
|
498
|
-
set hour12Timer(val: boolean);
|
|
499
|
-
/**
|
|
500
|
-
* The view that the calendar should start in.
|
|
501
|
-
*/
|
|
502
|
-
startView: DateViewType;
|
|
503
|
-
/**
|
|
504
|
-
* Whether to show calendar weeks in the calendar
|
|
505
|
-
* */
|
|
506
|
-
showCalendarWeeks: boolean;
|
|
507
|
-
/**
|
|
508
|
-
* Whether to should only the year and multi-year views.
|
|
509
|
-
*/
|
|
510
|
-
yearOnly: boolean;
|
|
511
|
-
/**
|
|
512
|
-
* Whether to should only the multi-year view.
|
|
513
|
-
*/
|
|
514
|
-
multiyearOnly: boolean;
|
|
515
|
-
/**
|
|
516
|
-
* Hours to change per step
|
|
517
|
-
*/
|
|
518
|
-
private _stepHour;
|
|
519
|
-
get stepHour(): number;
|
|
520
|
-
set stepHour(val: number);
|
|
521
|
-
/**
|
|
522
|
-
* Minutes to change per step
|
|
523
|
-
*/
|
|
524
|
-
private _stepMinute;
|
|
525
|
-
get stepMinute(): number;
|
|
526
|
-
set stepMinute(val: number);
|
|
527
|
-
/**
|
|
528
|
-
* Seconds to change per step
|
|
529
|
-
*/
|
|
530
|
-
private _stepSecond;
|
|
531
|
-
get stepSecond(): number;
|
|
532
|
-
set stepSecond(val: number);
|
|
533
|
-
/**
|
|
534
|
-
* Set the first day of week
|
|
535
|
-
*/
|
|
536
|
-
private _firstDayOfWeek;
|
|
537
|
-
get firstDayOfWeek(): number;
|
|
538
|
-
set firstDayOfWeek(value: number);
|
|
539
|
-
/**
|
|
540
|
-
* Whether to hide dates in other months at the start or end of the current month.
|
|
541
|
-
*/
|
|
542
|
-
private _hideOtherMonths;
|
|
543
|
-
get hideOtherMonths(): boolean;
|
|
544
|
-
set hideOtherMonths(val: boolean);
|
|
545
|
-
private readonly _id;
|
|
546
|
-
get id(): string;
|
|
547
|
-
abstract get selected(): T | null;
|
|
548
|
-
abstract get selecteds(): T[] | null;
|
|
549
|
-
abstract get dateTimeFilter(): (date: T | null) => boolean;
|
|
550
|
-
abstract get maxDateTime(): T | null;
|
|
551
|
-
abstract get minDateTime(): T | null;
|
|
552
|
-
abstract get selectMode(): SelectMode;
|
|
553
|
-
abstract get startAt(): T | null;
|
|
554
|
-
abstract get endAt(): T | null;
|
|
555
|
-
abstract get opened(): boolean;
|
|
556
|
-
abstract get pickerMode(): PickerMode;
|
|
557
|
-
abstract get pickerType(): PickerType;
|
|
558
|
-
abstract get isInSingleMode(): boolean;
|
|
559
|
-
abstract get isInRangeMode(): boolean;
|
|
560
|
-
abstract select(date: T | T[]): void;
|
|
561
|
-
abstract yearSelected: EventEmitter<T>;
|
|
562
|
-
abstract monthSelected: EventEmitter<T>;
|
|
563
|
-
abstract dateSelected: EventEmitter<T>;
|
|
564
|
-
abstract selectYear(normalizedYear: T): void;
|
|
565
|
-
abstract selectMonth(normalizedMonth: T): void;
|
|
566
|
-
abstract selectDate(normalizedDate: T): void;
|
|
567
|
-
get formatString(): string;
|
|
568
|
-
/**
|
|
569
|
-
* Date Time Checker to check if the give dateTime is selectable
|
|
570
|
-
*/
|
|
571
|
-
dateTimeChecker: (dateTime: T) => boolean;
|
|
572
|
-
get disabled(): boolean;
|
|
573
|
-
protected constructor(dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
|
|
574
|
-
protected getValidDate(obj: any): T | null;
|
|
575
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTime<any>, [{ optional: true; }, { optional: true; }]>;
|
|
576
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTime<any>, never, never, { "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "showCalendarWeeks": { "alias": "showCalendarWeeks"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; "multiyearOnly": { "alias": "multiyearOnly"; "required": false; }; "stepHour": { "alias": "stepHour"; "required": false; }; "stepMinute": { "alias": "stepMinute"; "required": false; }; "stepSecond": { "alias": "stepSecond"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; }; }, {}, never, never, true, never>;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* date-time-picker-input.directive
|
|
581
|
-
*/
|
|
582
|
-
|
|
583
|
-
declare const OWL_DATETIME_VALUE_ACCESSOR: any;
|
|
584
|
-
declare const OWL_DATETIME_VALIDATORS: any;
|
|
585
|
-
declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
|
|
586
|
-
private elmRef;
|
|
587
|
-
private renderer;
|
|
588
|
-
private dateTimeAdapter;
|
|
589
|
-
private dateTimeFormats;
|
|
590
|
-
static ngAcceptInputType_disabled: boolean | '';
|
|
591
|
-
/**
|
|
592
|
-
* Required flag to be used for range of [null, null]
|
|
593
|
-
* */
|
|
594
|
-
private _required;
|
|
595
|
-
get required(): any;
|
|
596
|
-
set required(value: any);
|
|
597
|
-
/**
|
|
598
|
-
* The date time picker that this input is associated with.
|
|
599
|
-
* */
|
|
600
|
-
set owlDateTime(value: OwlDateTimeComponent<T>);
|
|
601
|
-
/**
|
|
602
|
-
* A function to filter date time
|
|
603
|
-
*/
|
|
604
|
-
set owlDateTimeFilter(filter: (date: T | null) => boolean);
|
|
605
|
-
private _dateTimeFilter;
|
|
606
|
-
get dateTimeFilter(): (date: T | null) => boolean;
|
|
607
|
-
/** Whether the date time picker's input is disabled. */
|
|
608
|
-
private _disabled;
|
|
609
|
-
get disabled(): boolean;
|
|
610
|
-
set disabled(value: boolean);
|
|
611
|
-
/** The minimum valid date. */
|
|
612
|
-
private _min;
|
|
613
|
-
get min(): T | null;
|
|
614
|
-
set min(value: T | null);
|
|
615
|
-
/** The maximum valid date. */
|
|
616
|
-
private _max;
|
|
617
|
-
get max(): T | null;
|
|
618
|
-
set max(value: T | null);
|
|
619
|
-
/**
|
|
620
|
-
* The picker's select mode
|
|
621
|
-
*/
|
|
622
|
-
private _selectMode;
|
|
623
|
-
get selectMode(): SelectMode;
|
|
624
|
-
set selectMode(mode: SelectMode);
|
|
625
|
-
/**
|
|
626
|
-
* The character to separate the 'from' and 'to' in input value
|
|
627
|
-
*/
|
|
628
|
-
rangeSeparator: string;
|
|
629
|
-
private _value;
|
|
630
|
-
get value(): T | null;
|
|
631
|
-
set value(value: T | null);
|
|
632
|
-
private _values;
|
|
633
|
-
get values(): T[];
|
|
634
|
-
set values(values: T[]);
|
|
635
|
-
/**
|
|
636
|
-
* Callback to invoke when `change` event is fired on this `<input>`
|
|
637
|
-
* */
|
|
638
|
-
dateTimeChange: EventEmitter<any>;
|
|
639
|
-
/**
|
|
640
|
-
* Callback to invoke when an `input` event is fired on this `<input>`.
|
|
641
|
-
* */
|
|
642
|
-
dateTimeInput: EventEmitter<any>;
|
|
643
|
-
get elementRef(): ElementRef;
|
|
644
|
-
get isInSingleMode(): boolean;
|
|
645
|
-
get isInRangeMode(): boolean;
|
|
646
|
-
/** The date-time-picker that this input is associated with. */
|
|
647
|
-
dtPicker: OwlDateTimeComponent<T>;
|
|
648
|
-
private dtPickerSub;
|
|
649
|
-
private localeSub;
|
|
650
|
-
private lastValueValid;
|
|
651
|
-
private onModelChange;
|
|
652
|
-
private onModelTouched;
|
|
653
|
-
private validatorOnChange;
|
|
654
|
-
/** The form control validator for whether the input parses. */
|
|
655
|
-
private parseValidator;
|
|
656
|
-
/** The form control validator for the min date. */
|
|
657
|
-
private minValidator;
|
|
658
|
-
/** The form control validator for the max date. */
|
|
659
|
-
private maxValidator;
|
|
660
|
-
/** The form control validator for the date filter. */
|
|
661
|
-
private filterValidator;
|
|
662
|
-
/**
|
|
663
|
-
* The form control validator for the range.
|
|
664
|
-
* Check whether the 'before' value is before the 'to' value
|
|
665
|
-
* */
|
|
666
|
-
private rangeValidator;
|
|
667
|
-
/**
|
|
668
|
-
* The form control validator for the range when required.
|
|
669
|
-
* Check whether the 'before' and 'to' values are present
|
|
670
|
-
* */
|
|
671
|
-
private requiredRangeValidator;
|
|
672
|
-
/** The combined form control validator for this input. */
|
|
673
|
-
private validator;
|
|
674
|
-
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
675
|
-
valueChange: EventEmitter<T | T[]>;
|
|
676
|
-
/** Emits when the disabled state has changed */
|
|
677
|
-
disabledChange: EventEmitter<boolean>;
|
|
678
|
-
get owlDateTimeInputAriaHaspopup(): boolean;
|
|
679
|
-
get owlDateTimeInputAriaOwns(): string;
|
|
680
|
-
get minIso8601(): string;
|
|
681
|
-
get maxIso8601(): string;
|
|
682
|
-
get owlDateTimeInputDisabled(): boolean;
|
|
683
|
-
constructor(elmRef: ElementRef, renderer: Renderer2, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
|
|
684
|
-
ngOnInit(): void;
|
|
685
|
-
ngAfterContentInit(): void;
|
|
686
|
-
ngOnDestroy(): void;
|
|
687
|
-
writeValue(value: any): void;
|
|
688
|
-
registerOnChange(fn: any): void;
|
|
689
|
-
registerOnTouched(fn: any): void;
|
|
690
|
-
setDisabledState(isDisabled: boolean): void;
|
|
691
|
-
validate(c: AbstractControl): {
|
|
692
|
-
[key: string]: any;
|
|
693
|
-
};
|
|
694
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
695
|
-
/**
|
|
696
|
-
* Open the picker when user hold alt + DOWN_ARROW
|
|
697
|
-
* */
|
|
698
|
-
handleKeydownOnHost(event: KeyboardEvent): void;
|
|
699
|
-
handleBlurOnHost(event: Event): void;
|
|
700
|
-
handleInputOnHost(event: any): void;
|
|
701
|
-
handleChangeOnHost(event: any): void;
|
|
702
|
-
/**
|
|
703
|
-
* Set the native input property 'value'
|
|
704
|
-
*/
|
|
705
|
-
formatNativeInputValue(): void;
|
|
706
|
-
/**
|
|
707
|
-
* Register the relationship between this input and its picker component
|
|
708
|
-
*/
|
|
709
|
-
private registerDateTimePicker;
|
|
710
|
-
/**
|
|
711
|
-
* Convert a given obj to a valid date object
|
|
712
|
-
*/
|
|
713
|
-
private getValidDate;
|
|
714
|
-
/**
|
|
715
|
-
* Convert a time string to a date-time string
|
|
716
|
-
* When pickerType is 'timer', the value in the picker's input is a time string.
|
|
717
|
-
* The dateTimeAdapter parse fn could not parse a time string to a Date Object.
|
|
718
|
-
* Therefore we need this fn to convert a time string to a date-time string.
|
|
719
|
-
*/
|
|
720
|
-
private convertTimeStringToDateTimeString;
|
|
721
|
-
/**
|
|
722
|
-
* Handle input change in single mode
|
|
723
|
-
*/
|
|
724
|
-
private changeInputInSingleMode;
|
|
725
|
-
/**
|
|
726
|
-
* Handle input change in rangeFrom or rangeTo mode
|
|
727
|
-
*/
|
|
728
|
-
private changeInputInRangeFromToMode;
|
|
729
|
-
/**
|
|
730
|
-
* Handle input change in range mode
|
|
731
|
-
*/
|
|
732
|
-
private changeInputInRangeMode;
|
|
733
|
-
/**
|
|
734
|
-
* Check if the two value is the same
|
|
735
|
-
*/
|
|
736
|
-
private isSameValue;
|
|
737
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInputDirective<any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
738
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeInputDirective<any>, "input[owlDateTime]", ["owlDateTimeInput"], { "required": { "alias": "required"; "required": false; }; "owlDateTime": { "alias": "owlDateTime"; "required": false; }; "owlDateTimeFilter": { "alias": "owlDateTimeFilter"; "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>;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* date-time-picker.component
|
|
743
|
-
*/
|
|
744
|
-
|
|
745
|
-
declare class OwlDateTimeComponent<T> extends OwlDateTime<T> implements OnInit, OnDestroy {
|
|
746
|
-
overlay: Overlay;
|
|
747
|
-
private viewContainerRef;
|
|
748
|
-
private dialogService;
|
|
749
|
-
private ngZone;
|
|
750
|
-
protected changeDetector: ChangeDetectorRef;
|
|
751
|
-
protected dateTimeAdapter: DateTimeAdapter<T>;
|
|
752
|
-
protected dateTimeFormats: OwlDateTimeFormats;
|
|
753
|
-
private document;
|
|
754
|
-
/** Custom class for the picker backdrop. */
|
|
755
|
-
backdropClass: string | string[];
|
|
756
|
-
/** Custom class for the picker overlay pane. */
|
|
757
|
-
panelClass: string | string[];
|
|
758
|
-
/** The date to open the calendar to initially. */
|
|
759
|
-
private _startAt;
|
|
760
|
-
get startAt(): T | null;
|
|
761
|
-
set startAt(date: T | null);
|
|
762
|
-
/** The end date to set for range calendar. */
|
|
763
|
-
private _endAt;
|
|
764
|
-
get endAt(): T | null;
|
|
765
|
-
set endAt(date: T | null);
|
|
766
|
-
/**
|
|
767
|
-
* Set the type of the dateTime picker
|
|
768
|
-
* 'both' -- show both calendar and timer
|
|
769
|
-
* 'calendar' -- show only calendar
|
|
770
|
-
* 'timer' -- show only timer
|
|
771
|
-
*/
|
|
772
|
-
private _pickerType;
|
|
773
|
-
get pickerType(): PickerType;
|
|
774
|
-
set pickerType(val: PickerType);
|
|
775
|
-
/**
|
|
776
|
-
* Whether the picker open as a dialog
|
|
777
|
-
*/
|
|
778
|
-
_pickerMode: PickerMode;
|
|
779
|
-
get pickerMode(): PickerMode;
|
|
780
|
-
set pickerMode(mode: PickerMode);
|
|
781
|
-
/** Whether the date time picker should be disabled. */
|
|
782
|
-
private _disabled;
|
|
783
|
-
get disabled(): boolean;
|
|
784
|
-
set disabled(value: boolean);
|
|
785
|
-
/** Whether the calendar is open. */
|
|
786
|
-
private _opened;
|
|
787
|
-
get opened(): boolean;
|
|
788
|
-
set opened(val: boolean);
|
|
789
|
-
/**
|
|
790
|
-
* The scroll strategy when the picker is open
|
|
791
|
-
* Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
|
|
792
|
-
* */
|
|
793
|
-
scrollStrategy: ScrollStrategy;
|
|
794
|
-
/**
|
|
795
|
-
* Callback when the picker is closed
|
|
796
|
-
* */
|
|
797
|
-
afterPickerClosed: EventEmitter<any>;
|
|
798
|
-
/**
|
|
799
|
-
* Callback before the picker is open
|
|
800
|
-
* */
|
|
801
|
-
beforePickerOpen: EventEmitter<any>;
|
|
802
|
-
/**
|
|
803
|
-
* Callback when the picker is open
|
|
804
|
-
* */
|
|
805
|
-
afterPickerOpen: EventEmitter<any>;
|
|
806
|
-
/**
|
|
807
|
-
* Emits selected year in multi-year view
|
|
808
|
-
* This doesn't imply a change on the selected date.
|
|
809
|
-
* */
|
|
810
|
-
yearSelected: EventEmitter<T>;
|
|
811
|
-
/**
|
|
812
|
-
* Emits selected month in year view
|
|
813
|
-
* This doesn't imply a change on the selected date.
|
|
814
|
-
* */
|
|
815
|
-
monthSelected: EventEmitter<T>;
|
|
816
|
-
/**
|
|
817
|
-
* Emits selected date
|
|
818
|
-
* */
|
|
819
|
-
dateSelected: EventEmitter<T>;
|
|
820
|
-
/**
|
|
821
|
-
* Emit when the selected value has been confirmed
|
|
822
|
-
* */
|
|
823
|
-
confirmSelectedChange: EventEmitter<T | T[]>;
|
|
824
|
-
/**
|
|
825
|
-
* Emits when the date time picker is disabled.
|
|
826
|
-
* */
|
|
827
|
-
disabledChange: EventEmitter<boolean>;
|
|
828
|
-
private pickerContainerPortal;
|
|
829
|
-
private pickerContainer;
|
|
830
|
-
private popupRef;
|
|
831
|
-
private dialogRef;
|
|
832
|
-
private dtInputSub;
|
|
833
|
-
private hidePickerStreamSub;
|
|
834
|
-
private confirmSelectedStreamSub;
|
|
835
|
-
private pickerOpenedStreamSub;
|
|
836
|
-
private pickerBeforeOpenedStreamSub;
|
|
837
|
-
/** The element that was focused before the date time picker was opened. */
|
|
838
|
-
private focusedElementBeforeOpen;
|
|
839
|
-
private _dtInput;
|
|
840
|
-
get dtInput(): OwlDateTimeInputDirective<T>;
|
|
841
|
-
private _selected;
|
|
842
|
-
get selected(): T | null;
|
|
843
|
-
set selected(value: T | null);
|
|
844
|
-
private _selecteds;
|
|
845
|
-
get selecteds(): T[];
|
|
846
|
-
set selecteds(values: T[]);
|
|
847
|
-
/** The minimum selectable date. */
|
|
848
|
-
get minDateTime(): T | null;
|
|
849
|
-
/** The maximum selectable date. */
|
|
850
|
-
get maxDateTime(): T | null;
|
|
851
|
-
get dateTimeFilter(): (date: T | null) => boolean;
|
|
852
|
-
get selectMode(): SelectMode;
|
|
853
|
-
get isInSingleMode(): boolean;
|
|
854
|
-
get isInRangeMode(): boolean;
|
|
855
|
-
private readonly defaultScrollStrategy;
|
|
856
|
-
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dialogService: OwlDialogService, ngZone: NgZone, changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, defaultScrollStrategy: any, dateTimeFormats: OwlDateTimeFormats, document: any);
|
|
857
|
-
ngOnInit(): void;
|
|
858
|
-
ngOnDestroy(): void;
|
|
859
|
-
registerInput(input: OwlDateTimeInputDirective<T>): void;
|
|
860
|
-
open(): void;
|
|
861
|
-
/**
|
|
862
|
-
* Selects the given date
|
|
863
|
-
*/
|
|
864
|
-
select(date: T[] | T): void;
|
|
865
|
-
/**
|
|
866
|
-
* Emits the selected year in multi-year view
|
|
867
|
-
* */
|
|
868
|
-
selectYear(normalizedYear: T): void;
|
|
869
|
-
/**
|
|
870
|
-
* Emits selected month in year view
|
|
871
|
-
* */
|
|
872
|
-
selectMonth(normalizedMonth: T): void;
|
|
873
|
-
/**
|
|
874
|
-
* Emits the selected date
|
|
875
|
-
* */
|
|
876
|
-
selectDate(normalizedDate: T): void;
|
|
877
|
-
/**
|
|
878
|
-
* Hide the picker
|
|
879
|
-
*/
|
|
880
|
-
close(): void;
|
|
881
|
-
/**
|
|
882
|
-
* Confirm the selected value
|
|
883
|
-
*/
|
|
884
|
-
confirmSelect(event?: any): void;
|
|
885
|
-
/**
|
|
886
|
-
* Open the picker as a dialog
|
|
887
|
-
*/
|
|
888
|
-
private openAsDialog;
|
|
889
|
-
/**
|
|
890
|
-
* Open the picker as popup
|
|
891
|
-
*/
|
|
892
|
-
private openAsPopup;
|
|
893
|
-
private createPopup;
|
|
894
|
-
/**
|
|
895
|
-
* Create the popup PositionStrategy.
|
|
896
|
-
* */
|
|
897
|
-
private createPopupPositionStrategy;
|
|
898
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeComponent<any>, [null, null, null, null, null, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
|
|
899
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeComponent<any>, "owl-date-time", ["owlDateTime"], { "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "endAt": { "alias": "endAt"; "required": false; }; "pickerType": { "alias": "pickerType"; "required": false; }; "pickerMode": { "alias": "pickerMode"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; }; }, { "afterPickerClosed": "afterPickerClosed"; "beforePickerOpen": "beforePickerOpen"; "afterPickerOpen": "afterPickerOpen"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "dateSelected": "dateSelected"; }, never, never, false, never>;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* date-time-picker-trigger.directive
|
|
904
|
-
*/
|
|
905
|
-
|
|
906
|
-
declare class OwlDateTimeTriggerDirective<T> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
907
|
-
protected changeDetector: ChangeDetectorRef;
|
|
908
|
-
dtPicker: OwlDateTimeComponent<T>;
|
|
909
|
-
private _disabled;
|
|
910
|
-
get disabled(): boolean;
|
|
911
|
-
set disabled(value: boolean);
|
|
912
|
-
get owlDTTriggerDisabledClass(): boolean;
|
|
913
|
-
private stateChanges;
|
|
914
|
-
constructor(changeDetector: ChangeDetectorRef);
|
|
915
|
-
ngOnInit(): void;
|
|
916
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
917
|
-
ngAfterContentInit(): void;
|
|
918
|
-
ngOnDestroy(): void;
|
|
919
|
-
handleClickOnHost(event: Event): void;
|
|
920
|
-
private watchStateChanges;
|
|
921
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeTriggerDirective<any>, never>;
|
|
922
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeTriggerDirective<any>, "[owlDateTimeTrigger]", never, { "dtPicker": { "alias": "owlDateTimeTrigger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
declare class OwlDateTimeIntl {
|
|
926
|
-
/**
|
|
927
|
-
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
928
|
-
* components if the labels have changed after initialization.
|
|
929
|
-
*/
|
|
930
|
-
readonly changes: Subject<void>;
|
|
931
|
-
/** A label for the up second button (used by screen readers). */
|
|
932
|
-
upSecondLabel: string;
|
|
933
|
-
/** A label for the down second button (used by screen readers). */
|
|
934
|
-
downSecondLabel: string;
|
|
935
|
-
/** A label for the up minute button (used by screen readers). */
|
|
936
|
-
upMinuteLabel: string;
|
|
937
|
-
/** A label for the down minute button (used by screen readers). */
|
|
938
|
-
downMinuteLabel: string;
|
|
939
|
-
/** A label for the up hour button (used by screen readers). */
|
|
940
|
-
upHourLabel: string;
|
|
941
|
-
/** A label for the down hour button (used by screen readers). */
|
|
942
|
-
downHourLabel: string;
|
|
943
|
-
/** A label for the previous month button (used by screen readers). */
|
|
944
|
-
prevMonthLabel: string;
|
|
945
|
-
/** A label for the next month button (used by screen readers). */
|
|
946
|
-
nextMonthLabel: string;
|
|
947
|
-
/** A label for the previous year button (used by screen readers). */
|
|
948
|
-
prevYearLabel: string;
|
|
949
|
-
/** A label for the next year button (used by screen readers). */
|
|
950
|
-
nextYearLabel: string;
|
|
951
|
-
/** A label for the previous multi-year button (used by screen readers). */
|
|
952
|
-
prevMultiYearLabel: string;
|
|
953
|
-
/** A label for the next multi-year button (used by screen readers). */
|
|
954
|
-
nextMultiYearLabel: string;
|
|
955
|
-
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
956
|
-
switchToMonthViewLabel: string;
|
|
957
|
-
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
958
|
-
switchToMultiYearViewLabel: string;
|
|
959
|
-
/** A label for the cancel button */
|
|
960
|
-
cancelBtnLabel: string;
|
|
961
|
-
/** A label for the set button */
|
|
962
|
-
setBtnLabel: string;
|
|
963
|
-
/** A label for the range 'from' in picker info */
|
|
964
|
-
rangeFromLabel: string;
|
|
965
|
-
/** A label for the range 'to' in picker info */
|
|
966
|
-
rangeToLabel: string;
|
|
967
|
-
/** A label for the hour12 button (AM) */
|
|
968
|
-
hour12AMLabel: string;
|
|
969
|
-
/** A label for the hour12 button (PM) */
|
|
970
|
-
hour12PMLabel: string;
|
|
971
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeIntl, never>;
|
|
972
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OwlDateTimeIntl>;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* calendar.component
|
|
977
|
-
*/
|
|
978
|
-
|
|
979
|
-
declare class OwlCalendarComponent<T> implements OnInit, AfterContentInit, AfterViewChecked, OnDestroy {
|
|
980
|
-
private elmRef;
|
|
981
|
-
private pickerIntl;
|
|
982
|
-
private ngZone;
|
|
983
|
-
private cdRef;
|
|
984
|
-
private dateTimeAdapter;
|
|
985
|
-
private dateTimeFormats;
|
|
986
|
-
DateView: typeof DateView;
|
|
987
|
-
get minDate(): T | null;
|
|
988
|
-
set minDate(value: T | null);
|
|
989
|
-
get maxDate(): T | null;
|
|
990
|
-
set maxDate(value: T | null);
|
|
991
|
-
get pickerMoment(): T;
|
|
992
|
-
set pickerMoment(value: T);
|
|
993
|
-
get selected(): T | null;
|
|
994
|
-
set selected(value: T | null);
|
|
995
|
-
get selecteds(): T[];
|
|
996
|
-
set selecteds(values: T[]);
|
|
997
|
-
get periodButtonText(): string;
|
|
998
|
-
get periodButtonLabel(): string;
|
|
999
|
-
get prevButtonLabel(): string;
|
|
1000
|
-
get nextButtonLabel(): string;
|
|
1001
|
-
get currentView(): DateViewType;
|
|
1002
|
-
set currentView(view: DateViewType);
|
|
1003
|
-
get isInSingleMode(): boolean;
|
|
1004
|
-
get isInRangeMode(): boolean;
|
|
1005
|
-
get showControlArrows(): boolean;
|
|
1006
|
-
get isMonthView(): boolean;
|
|
1007
|
-
/**
|
|
1008
|
-
* Bind class 'owl-dt-calendar' to host
|
|
1009
|
-
* */
|
|
1010
|
-
get owlDTCalendarClass(): boolean;
|
|
1011
|
-
constructor(elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, ngZone: NgZone, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
|
|
1012
|
-
/**
|
|
1013
|
-
* Date filter for the month and year view
|
|
1014
|
-
* */
|
|
1015
|
-
dateFilter: (date: T) => boolean;
|
|
1016
|
-
/**
|
|
1017
|
-
* Set the first day of week
|
|
1018
|
-
*/
|
|
1019
|
-
firstDayOfWeek: number;
|
|
1020
|
-
/** The minimum selectable date. */
|
|
1021
|
-
private _minDate;
|
|
1022
|
-
/** The maximum selectable date. */
|
|
1023
|
-
private _maxDate;
|
|
1024
|
-
/** The current picker moment */
|
|
1025
|
-
private _pickerMoment;
|
|
1026
|
-
selectMode: SelectMode;
|
|
1027
|
-
/** The currently selected moment. */
|
|
1028
|
-
private _selected;
|
|
1029
|
-
private _selecteds;
|
|
1030
|
-
/**
|
|
1031
|
-
* The view that the calendar should start in.
|
|
1032
|
-
*/
|
|
1033
|
-
startView: DateViewType;
|
|
1034
|
-
/**
|
|
1035
|
-
* Whether to should only the year and multi-year views.
|
|
1036
|
-
*/
|
|
1037
|
-
yearOnly: boolean;
|
|
1038
|
-
/**
|
|
1039
|
-
* Whether to show calendar weeks in the calendar
|
|
1040
|
-
* */
|
|
1041
|
-
showCalendarWeeks: boolean;
|
|
1042
|
-
/**
|
|
1043
|
-
* Whether to should only the multi-year view.
|
|
1044
|
-
*/
|
|
1045
|
-
multiyearOnly: boolean;
|
|
1046
|
-
/**
|
|
1047
|
-
* Whether to hide dates in other months at the start or end of the current month.
|
|
1048
|
-
* */
|
|
1049
|
-
hideOtherMonths: boolean;
|
|
1050
|
-
/** Emits when the currently picker moment changes. */
|
|
1051
|
-
pickerMomentChange: EventEmitter<T>;
|
|
1052
|
-
/** Emits when the selected date changes. */
|
|
1053
|
-
readonly dateClicked: EventEmitter<T>;
|
|
1054
|
-
/** Emits when the currently selected date changes. */
|
|
1055
|
-
readonly selectedChange: EventEmitter<T>;
|
|
1056
|
-
/** Emits when any date is selected. */
|
|
1057
|
-
readonly userSelection: EventEmitter<void>;
|
|
1058
|
-
/**
|
|
1059
|
-
* Emits the selected year. This doesn't imply a change on the selected date
|
|
1060
|
-
* */
|
|
1061
|
-
readonly yearSelected: EventEmitter<T>;
|
|
1062
|
-
/**
|
|
1063
|
-
* Emits the selected month. This doesn't imply a change on the selected date
|
|
1064
|
-
* */
|
|
1065
|
-
readonly monthSelected: EventEmitter<T>;
|
|
1066
|
-
private _currentView;
|
|
1067
|
-
private intlChangesSub;
|
|
1068
|
-
/**
|
|
1069
|
-
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
1070
|
-
* We need to schedule it, rather than do it immediately, because we have to wait
|
|
1071
|
-
* for Angular to re-evaluate the view children.
|
|
1072
|
-
*/
|
|
1073
|
-
private moveFocusOnNextTick;
|
|
1074
|
-
/**
|
|
1075
|
-
* Date filter for the month and year view
|
|
1076
|
-
*/
|
|
1077
|
-
dateFilterForViews: (date: T) => boolean;
|
|
1078
|
-
ngOnInit(): void;
|
|
1079
|
-
ngAfterContentInit(): void;
|
|
1080
|
-
ngAfterViewChecked(): void;
|
|
1081
|
-
ngOnDestroy(): void;
|
|
1082
|
-
/**
|
|
1083
|
-
* Toggle between month view and year view
|
|
1084
|
-
*/
|
|
1085
|
-
toggleViews(): void;
|
|
1086
|
-
/**
|
|
1087
|
-
* Handles user clicks on the previous button.
|
|
1088
|
-
* */
|
|
1089
|
-
previousClicked(): void;
|
|
1090
|
-
/**
|
|
1091
|
-
* Handles user clicks on the next button.
|
|
1092
|
-
* */
|
|
1093
|
-
nextClicked(): void;
|
|
1094
|
-
dateSelected(date: T): void;
|
|
1095
|
-
/**
|
|
1096
|
-
* Change the pickerMoment value and switch to a specific view
|
|
1097
|
-
*/
|
|
1098
|
-
goToDateInView(date: T, view: DateViewType): void;
|
|
1099
|
-
/**
|
|
1100
|
-
* Change the pickerMoment value
|
|
1101
|
-
*/
|
|
1102
|
-
handlePickerMomentChange(date: T): void;
|
|
1103
|
-
userSelected(): void;
|
|
1104
|
-
/**
|
|
1105
|
-
* Whether the previous period button is enabled.
|
|
1106
|
-
*/
|
|
1107
|
-
prevButtonEnabled(): boolean;
|
|
1108
|
-
/**
|
|
1109
|
-
* Whether the next period button is enabled.
|
|
1110
|
-
*/
|
|
1111
|
-
nextButtonEnabled(): boolean;
|
|
1112
|
-
/**
|
|
1113
|
-
* Focus to the host element
|
|
1114
|
-
* */
|
|
1115
|
-
focusActiveCell(): void;
|
|
1116
|
-
selectYearInMultiYearView(normalizedYear: T): void;
|
|
1117
|
-
selectMonthInYearView(normalizedMonth: T): void;
|
|
1118
|
-
/**
|
|
1119
|
-
* Whether the two dates represent the same view in the current view mode (month or year).
|
|
1120
|
-
*/
|
|
1121
|
-
private isSameView;
|
|
1122
|
-
/**
|
|
1123
|
-
* Get a valid date object
|
|
1124
|
-
*/
|
|
1125
|
-
private getValidDate;
|
|
1126
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlCalendarComponent<any>, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
1127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlCalendarComponent<any>, "owl-date-time-calendar", ["owlDateTimeCalendar"], { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "pickerMoment": { "alias": "pickerMoment"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "selecteds": { "alias": "selecteds"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; "showCalendarWeeks": { "alias": "showCalendarWeeks"; "required": false; }; "multiyearOnly": { "alias": "multiyearOnly"; "required": false; }; "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; }; }, { "pickerMomentChange": "pickerMomentChange"; "dateClicked": "dateClicked"; "selectedChange": "selectedChange"; "userSelection": "userSelection"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; }, never, never, false, never>;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* timer.component
|
|
1132
|
-
*/
|
|
1133
|
-
|
|
1134
|
-
declare class OwlTimerComponent<T> implements OnInit {
|
|
1135
|
-
private ngZone;
|
|
1136
|
-
private elmRef;
|
|
1137
|
-
private pickerIntl;
|
|
1138
|
-
private cdRef;
|
|
1139
|
-
private dateTimeAdapter;
|
|
1140
|
-
/** The current picker moment */
|
|
1141
|
-
private _pickerMoment;
|
|
1142
|
-
get pickerMoment(): T;
|
|
1143
|
-
set pickerMoment(value: T);
|
|
1144
|
-
/** The minimum selectable date time. */
|
|
1145
|
-
private _minDateTime;
|
|
1146
|
-
get minDateTime(): T | null;
|
|
1147
|
-
set minDateTime(value: T | null);
|
|
1148
|
-
/** The maximum selectable date time. */
|
|
1149
|
-
private _maxDateTime;
|
|
1150
|
-
get maxDateTime(): T | null;
|
|
1151
|
-
set maxDateTime(value: T | null);
|
|
1152
|
-
private isPM;
|
|
1153
|
-
/**
|
|
1154
|
-
* Whether to show the second's timer
|
|
1155
|
-
*/
|
|
1156
|
-
showSecondsTimer: boolean;
|
|
1157
|
-
/**
|
|
1158
|
-
* Whether the timer is in hour12 format
|
|
1159
|
-
*/
|
|
1160
|
-
hour12Timer: boolean;
|
|
1161
|
-
/**
|
|
1162
|
-
* Hours to change per step
|
|
1163
|
-
*/
|
|
1164
|
-
stepHour: number;
|
|
1165
|
-
/**
|
|
1166
|
-
* Minutes to change per step
|
|
1167
|
-
*/
|
|
1168
|
-
stepMinute: number;
|
|
1169
|
-
/**
|
|
1170
|
-
* Seconds to change per step
|
|
1171
|
-
*/
|
|
1172
|
-
stepSecond: number;
|
|
1173
|
-
get hourValue(): number;
|
|
1174
|
-
/**
|
|
1175
|
-
* The value would be displayed in hourBox.
|
|
1176
|
-
* We need this because the value displayed in hourBox it not
|
|
1177
|
-
* the same as the hourValue when the timer is in hour12Timer mode.
|
|
1178
|
-
* */
|
|
1179
|
-
get hourBoxValue(): number;
|
|
1180
|
-
get minuteValue(): number;
|
|
1181
|
-
get secondValue(): number;
|
|
1182
|
-
get upHourButtonLabel(): string;
|
|
1183
|
-
get downHourButtonLabel(): string;
|
|
1184
|
-
get upMinuteButtonLabel(): string;
|
|
1185
|
-
get downMinuteButtonLabel(): string;
|
|
1186
|
-
get upSecondButtonLabel(): string;
|
|
1187
|
-
get downSecondButtonLabel(): string;
|
|
1188
|
-
get hour12ButtonLabel(): string;
|
|
1189
|
-
selectedChange: EventEmitter<T>;
|
|
1190
|
-
get owlDTTimerClass(): boolean;
|
|
1191
|
-
get owlDTTimeTabIndex(): number;
|
|
1192
|
-
constructor(ngZone: NgZone, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>);
|
|
1193
|
-
ngOnInit(): void;
|
|
1194
|
-
/**
|
|
1195
|
-
* Focus to the host element
|
|
1196
|
-
* */
|
|
1197
|
-
focus(): void;
|
|
1198
|
-
/**
|
|
1199
|
-
* Set the hour value via typing into timer box input
|
|
1200
|
-
* We need this to handle the hour value when the timer is in hour12 mode
|
|
1201
|
-
* */
|
|
1202
|
-
setHourValueViaInput(hours: number): void;
|
|
1203
|
-
setHourValue(hours: number): void;
|
|
1204
|
-
setMinuteValue(minutes: number): void;
|
|
1205
|
-
setSecondValue(seconds: number): void;
|
|
1206
|
-
setMeridiem(event: any): void;
|
|
1207
|
-
/**
|
|
1208
|
-
* Check if the up hour button is enabled
|
|
1209
|
-
*/
|
|
1210
|
-
upHourEnabled(): boolean;
|
|
1211
|
-
/**
|
|
1212
|
-
* Check if the down hour button is enabled
|
|
1213
|
-
*/
|
|
1214
|
-
downHourEnabled(): boolean;
|
|
1215
|
-
/**
|
|
1216
|
-
* Check if the up minute button is enabled
|
|
1217
|
-
*/
|
|
1218
|
-
upMinuteEnabled(): boolean;
|
|
1219
|
-
/**
|
|
1220
|
-
* Check if the down minute button is enabled
|
|
1221
|
-
*/
|
|
1222
|
-
downMinuteEnabled(): boolean;
|
|
1223
|
-
/**
|
|
1224
|
-
* Check if the up second button is enabled
|
|
1225
|
-
*/
|
|
1226
|
-
upSecondEnabled(): boolean;
|
|
1227
|
-
/**
|
|
1228
|
-
* Check if the down second button is enabled
|
|
1229
|
-
*/
|
|
1230
|
-
downSecondEnabled(): boolean;
|
|
1231
|
-
/**
|
|
1232
|
-
* PickerMoment's hour value +/- certain amount and compare it to the give date
|
|
1233
|
-
* 1 is after the comparedDate
|
|
1234
|
-
* -1 is before the comparedDate
|
|
1235
|
-
* 0 is equal the comparedDate
|
|
1236
|
-
* */
|
|
1237
|
-
private compareHours;
|
|
1238
|
-
/**
|
|
1239
|
-
* PickerMoment's minute value +/- certain amount and compare it to the give date
|
|
1240
|
-
* 1 is after the comparedDate
|
|
1241
|
-
* -1 is before the comparedDate
|
|
1242
|
-
* 0 is equal the comparedDate
|
|
1243
|
-
* */
|
|
1244
|
-
private compareMinutes;
|
|
1245
|
-
/**
|
|
1246
|
-
* PickerMoment's second value +/- certain amount and compare it to the give date
|
|
1247
|
-
* 1 is after the comparedDate
|
|
1248
|
-
* -1 is before the comparedDate
|
|
1249
|
-
* 0 is equal the comparedDate
|
|
1250
|
-
* */
|
|
1251
|
-
private compareSeconds;
|
|
1252
|
-
/**
|
|
1253
|
-
* Get a valid date object
|
|
1254
|
-
*/
|
|
1255
|
-
private getValidDate;
|
|
1256
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerComponent<any>, [null, null, null, null, { optional: true; }]>;
|
|
1257
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlTimerComponent<any>, "owl-date-time-timer", ["owlDateTimeTimer"], { "pickerMoment": { "alias": "pickerMoment"; "required": false; }; "minDateTime": { "alias": "minDateTime"; "required": false; }; "maxDateTime": { "alias": "maxDateTime"; "required": false; }; "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; }; "stepHour": { "alias": "stepHour"; "required": false; }; "stepMinute": { "alias": "stepMinute"; "required": false; }; "stepSecond": { "alias": "stepSecond"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, false, never>;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* date-time-picker-container.component
|
|
1262
|
-
*/
|
|
1263
|
-
|
|
1264
|
-
declare class OwlDateTimeContainerComponent<T> implements OnInit, AfterContentInit, AfterViewInit {
|
|
1265
|
-
private cdRef;
|
|
1266
|
-
private elmRef;
|
|
1267
|
-
private pickerIntl;
|
|
1268
|
-
private dateTimeAdapter;
|
|
1269
|
-
calendar: OwlCalendarComponent<T>;
|
|
1270
|
-
timer: OwlTimerComponent<T>;
|
|
1271
|
-
picker: OwlDateTime<T>;
|
|
1272
|
-
activeSelectedIndex: number;
|
|
1273
|
-
/** Emits when an animation state changes. */
|
|
1274
|
-
animationStateChanged: EventEmitter<IDateTimePickerAnimationEvent>;
|
|
1275
|
-
private retainStartTime;
|
|
1276
|
-
private retainEndTime;
|
|
1277
|
-
/**
|
|
1278
|
-
* Stream emits when try to hide picker
|
|
1279
|
-
* */
|
|
1280
|
-
private hidePicker$;
|
|
1281
|
-
get hidePickerStream(): Observable<any>;
|
|
1282
|
-
/**
|
|
1283
|
-
* Stream emits when try to confirm the selected value
|
|
1284
|
-
* */
|
|
1285
|
-
private confirmSelected$;
|
|
1286
|
-
get confirmSelectedStream(): Observable<any>;
|
|
1287
|
-
private beforePickerOpened$;
|
|
1288
|
-
get beforePickerOpenedStream(): Observable<any>;
|
|
1289
|
-
private pickerOpened$;
|
|
1290
|
-
get pickerOpenedStream(): Observable<any>;
|
|
1291
|
-
/**
|
|
1292
|
-
* The current picker moment. This determines which time period is shown and which date is
|
|
1293
|
-
* highlighted when using keyboard navigation.
|
|
1294
|
-
*/
|
|
1295
|
-
private _clamPickerMoment;
|
|
1296
|
-
get pickerMoment(): T;
|
|
1297
|
-
set pickerMoment(value: T);
|
|
1298
|
-
get pickerType(): PickerType;
|
|
1299
|
-
get cancelLabel(): string;
|
|
1300
|
-
get setLabel(): string;
|
|
1301
|
-
/**
|
|
1302
|
-
* The range 'from' label
|
|
1303
|
-
* */
|
|
1304
|
-
get fromLabel(): string;
|
|
1305
|
-
/**
|
|
1306
|
-
* The range 'to' label
|
|
1307
|
-
* */
|
|
1308
|
-
get toLabel(): string;
|
|
1309
|
-
/**
|
|
1310
|
-
* The range 'from' formatted value
|
|
1311
|
-
* */
|
|
1312
|
-
get fromFormattedValue(): string;
|
|
1313
|
-
/**
|
|
1314
|
-
* The range 'to' formatted value
|
|
1315
|
-
* */
|
|
1316
|
-
get toFormattedValue(): string;
|
|
1317
|
-
/**
|
|
1318
|
-
* Cases in which the control buttons show in the picker
|
|
1319
|
-
* 1) picker mode is 'dialog'
|
|
1320
|
-
* 2) picker type is NOT 'calendar' and the picker mode is NOT 'inline'
|
|
1321
|
-
* */
|
|
1322
|
-
get showControlButtons(): boolean;
|
|
1323
|
-
get containerElm(): HTMLElement;
|
|
1324
|
-
get owlDTContainerClass(): boolean;
|
|
1325
|
-
get owlDTPopupContainerClass(): boolean;
|
|
1326
|
-
get owlDTDialogContainerClass(): boolean;
|
|
1327
|
-
get owlDTInlineContainerClass(): boolean;
|
|
1328
|
-
get owlDTContainerDisabledClass(): boolean;
|
|
1329
|
-
get owlDTContainerId(): string;
|
|
1330
|
-
get owlDTContainerAnimation(): any;
|
|
1331
|
-
constructor(cdRef: ChangeDetectorRef, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>);
|
|
1332
|
-
ngOnInit(): void;
|
|
1333
|
-
ngAfterContentInit(): void;
|
|
1334
|
-
ngAfterViewInit(): void;
|
|
1335
|
-
handleContainerAnimationStart(animationName: 'enter' | 'leave'): void;
|
|
1336
|
-
handleContainerAnimationDone(animationName: 'enter' | 'leave'): void;
|
|
1337
|
-
dateSelected(date: T): void;
|
|
1338
|
-
timeSelected(time: T): void;
|
|
1339
|
-
/**
|
|
1340
|
-
* Handle click on cancel button
|
|
1341
|
-
*/
|
|
1342
|
-
onCancelClicked(event: any): void;
|
|
1343
|
-
/**
|
|
1344
|
-
* Handle click on set button
|
|
1345
|
-
*/
|
|
1346
|
-
onSetClicked(event: any): void;
|
|
1347
|
-
/**
|
|
1348
|
-
* Handle click on inform radio group
|
|
1349
|
-
*/
|
|
1350
|
-
handleClickOnInfoGroup(event: any, index: number): void;
|
|
1351
|
-
/**
|
|
1352
|
-
* Handle click on inform radio group
|
|
1353
|
-
*/
|
|
1354
|
-
handleKeydownOnInfoGroup(event: any, next: any, index: number): void;
|
|
1355
|
-
protected onAnimateEnter(event: AnimationCallbackEvent): void;
|
|
1356
|
-
protected onAnimateLeave(event: AnimationCallbackEvent): void;
|
|
1357
|
-
/**
|
|
1358
|
-
* Set the value of activeSelectedIndex
|
|
1359
|
-
*/
|
|
1360
|
-
private setActiveSelectedIndex;
|
|
1361
|
-
private initPicker;
|
|
1362
|
-
/**
|
|
1363
|
-
* Select calendar date in single mode,
|
|
1364
|
-
* it returns null when date is not selected.
|
|
1365
|
-
*/
|
|
1366
|
-
private dateSelectedInSingleMode;
|
|
1367
|
-
/**
|
|
1368
|
-
* Select dates in range Mode
|
|
1369
|
-
*/
|
|
1370
|
-
private dateSelectedInRangeMode;
|
|
1371
|
-
/**
|
|
1372
|
-
* Update the given calendar date's time and check if it is valid
|
|
1373
|
-
* Because the calendar date has 00:00:00 as default time, if the picker type is 'both',
|
|
1374
|
-
* we need to update the given calendar date's time before selecting it.
|
|
1375
|
-
* if it is valid, return the updated dateTime
|
|
1376
|
-
* if it is not valid, return null
|
|
1377
|
-
*/
|
|
1378
|
-
private updateAndCheckCalendarDate;
|
|
1379
|
-
/**
|
|
1380
|
-
* Focus to the picker
|
|
1381
|
-
* */
|
|
1382
|
-
private focusPicker;
|
|
1383
|
-
private parseCssVariableDuration;
|
|
1384
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeContainerComponent<any>, [null, null, null, { optional: true; }]>;
|
|
1385
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeContainerComponent<any>, "owl-date-time-container", ["owlDateTimeContainer"], {}, {}, never, never, false, never>;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* calendar-body.component
|
|
1390
|
-
*/
|
|
1391
|
-
|
|
1392
|
-
declare class CalendarCell {
|
|
1393
|
-
value: number;
|
|
1394
|
-
displayValue: string;
|
|
1395
|
-
ariaLabel: string;
|
|
1396
|
-
enabled: boolean;
|
|
1397
|
-
out: boolean;
|
|
1398
|
-
cellClass: string;
|
|
1399
|
-
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, out?: boolean, cellClass?: string);
|
|
1400
|
-
}
|
|
1401
|
-
declare class OwlCalendarBodyComponent implements OnInit {
|
|
1402
|
-
private elmRef;
|
|
1403
|
-
private ngZone;
|
|
1404
|
-
/**
|
|
1405
|
-
* The cell number of the active cell in the table.
|
|
1406
|
-
*/
|
|
1407
|
-
activeCell: number;
|
|
1408
|
-
/**
|
|
1409
|
-
* The cells to display in the table.
|
|
1410
|
-
* */
|
|
1411
|
-
rows: CalendarCell[][];
|
|
1412
|
-
/**
|
|
1413
|
-
* The number of columns in the table.
|
|
1414
|
-
* */
|
|
1415
|
-
numCols: number;
|
|
1416
|
-
/**
|
|
1417
|
-
* The ratio (width / height) to use for the cells in the table.
|
|
1418
|
-
*/
|
|
1419
|
-
cellRatio: number;
|
|
1420
|
-
/**
|
|
1421
|
-
* The value in the table that corresponds to today.
|
|
1422
|
-
* */
|
|
1423
|
-
todayValue: number;
|
|
1424
|
-
/**
|
|
1425
|
-
* The value in the table that is currently selected.
|
|
1426
|
-
* */
|
|
1427
|
-
selectedValues: number[];
|
|
1428
|
-
/**
|
|
1429
|
-
* Current picker select mode
|
|
1430
|
-
*/
|
|
1431
|
-
selectMode: SelectMode;
|
|
1432
|
-
/**
|
|
1433
|
-
* Emit when a calendar cell is selected
|
|
1434
|
-
* */
|
|
1435
|
-
readonly select: EventEmitter<CalendarCell>;
|
|
1436
|
-
get owlDTCalendarBodyClass(): boolean;
|
|
1437
|
-
get isInSingleMode(): boolean;
|
|
1438
|
-
get isInRangeMode(): boolean;
|
|
1439
|
-
constructor(elmRef: ElementRef, ngZone: NgZone);
|
|
1440
|
-
ngOnInit(): void;
|
|
1441
|
-
selectCell(cell: CalendarCell): void;
|
|
1442
|
-
isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
1443
|
-
/**
|
|
1444
|
-
* Check if the cell is selected
|
|
1445
|
-
*/
|
|
1446
|
-
isSelected(value: number): boolean;
|
|
1447
|
-
/**
|
|
1448
|
-
* Check if the cell in the range
|
|
1449
|
-
* */
|
|
1450
|
-
isInRange(value: number): boolean;
|
|
1451
|
-
/**
|
|
1452
|
-
* Check if the cell is the range from
|
|
1453
|
-
* */
|
|
1454
|
-
isRangeFrom(value: number): boolean;
|
|
1455
|
-
/**
|
|
1456
|
-
* Check if the cell is the range to
|
|
1457
|
-
* */
|
|
1458
|
-
isRangeTo(value: number): boolean;
|
|
1459
|
-
/**
|
|
1460
|
-
* Focus to a active cell
|
|
1461
|
-
* */
|
|
1462
|
-
focusActiveCell(): void;
|
|
1463
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlCalendarBodyComponent, never>;
|
|
1464
|
-
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>;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* calendar-multi-year-view.component
|
|
1469
|
-
*/
|
|
1470
|
-
|
|
1471
|
-
declare class OwlMultiYearViewComponent<T> implements OnInit, AfterContentInit {
|
|
1472
|
-
private cdRef;
|
|
1473
|
-
private pickerIntl;
|
|
1474
|
-
private dateTimeAdapter;
|
|
1475
|
-
private options;
|
|
1476
|
-
/**
|
|
1477
|
-
* The select mode of the picker;
|
|
1478
|
-
* */
|
|
1479
|
-
private _selectMode;
|
|
1480
|
-
get selectMode(): SelectMode;
|
|
1481
|
-
set selectMode(val: SelectMode);
|
|
1482
|
-
/** The currently selected date. */
|
|
1483
|
-
private _selected;
|
|
1484
|
-
get selected(): T | null;
|
|
1485
|
-
set selected(value: T | null);
|
|
1486
|
-
private _selecteds;
|
|
1487
|
-
get selecteds(): T[];
|
|
1488
|
-
set selecteds(values: T[]);
|
|
1489
|
-
private _pickerMoment;
|
|
1490
|
-
get pickerMoment(): T;
|
|
1491
|
-
set pickerMoment(value: T);
|
|
1492
|
-
/**
|
|
1493
|
-
* A function used to filter which dates are selectable
|
|
1494
|
-
* */
|
|
1495
|
-
private _dateFilter;
|
|
1496
|
-
get dateFilter(): (date: T) => boolean;
|
|
1497
|
-
set dateFilter(filter: (date: T) => boolean);
|
|
1498
|
-
/** The minimum selectable date. */
|
|
1499
|
-
private _minDate;
|
|
1500
|
-
get minDate(): T | null;
|
|
1501
|
-
set minDate(value: T | null);
|
|
1502
|
-
/** The maximum selectable date. */
|
|
1503
|
-
private _maxDate;
|
|
1504
|
-
get maxDate(): T | null;
|
|
1505
|
-
set maxDate(value: T | null);
|
|
1506
|
-
private _todayYear;
|
|
1507
|
-
get todayYear(): number;
|
|
1508
|
-
private _years;
|
|
1509
|
-
get years(): CalendarCell[][];
|
|
1510
|
-
private _selectedYears;
|
|
1511
|
-
get selectedYears(): number[];
|
|
1512
|
-
private initiated;
|
|
1513
|
-
get isInSingleMode(): boolean;
|
|
1514
|
-
get isInRangeMode(): boolean;
|
|
1515
|
-
get activeCell(): number;
|
|
1516
|
-
get tableHeader(): string;
|
|
1517
|
-
get prevButtonLabel(): string;
|
|
1518
|
-
get nextButtonLabel(): string;
|
|
1519
|
-
/**
|
|
1520
|
-
* Callback to invoke when a new month is selected
|
|
1521
|
-
* */
|
|
1522
|
-
readonly change: EventEmitter<T>;
|
|
1523
|
-
/**
|
|
1524
|
-
* Emits the selected year. This doesn't imply a change on the selected date
|
|
1525
|
-
* */
|
|
1526
|
-
readonly yearSelected: EventEmitter<T>;
|
|
1527
|
-
/** Emits when any date is activated. */
|
|
1528
|
-
readonly pickerMomentChange: EventEmitter<T>;
|
|
1529
|
-
/** Emits when use keyboard enter to select a calendar cell */
|
|
1530
|
-
readonly keyboardEnter: EventEmitter<any>;
|
|
1531
|
-
/** The body of calendar table */
|
|
1532
|
-
calendarBodyElm: OwlCalendarBodyComponent;
|
|
1533
|
-
get owlDTCalendarView(): boolean;
|
|
1534
|
-
get owlDTCalendarMultiYearView(): boolean;
|
|
1535
|
-
constructor(cdRef: ChangeDetectorRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>, options: any);
|
|
1536
|
-
ngOnInit(): void;
|
|
1537
|
-
ngAfterContentInit(): void;
|
|
1538
|
-
/**
|
|
1539
|
-
* Handle a calendarCell selected
|
|
1540
|
-
*/
|
|
1541
|
-
selectCalendarCell(cell: CalendarCell): void;
|
|
1542
|
-
private selectYear;
|
|
1543
|
-
/**
|
|
1544
|
-
* Generate the previous year list
|
|
1545
|
-
* */
|
|
1546
|
-
prevYearList(event: any): void;
|
|
1547
|
-
/**
|
|
1548
|
-
* Generate the next year list
|
|
1549
|
-
* */
|
|
1550
|
-
nextYearList(event: any): void;
|
|
1551
|
-
generateYearList(): void;
|
|
1552
|
-
/** Whether the previous period button is enabled. */
|
|
1553
|
-
previousEnabled(): boolean;
|
|
1554
|
-
/** Whether the next period button is enabled. */
|
|
1555
|
-
nextEnabled(): boolean;
|
|
1556
|
-
handleCalendarKeydown(event: KeyboardEvent): void;
|
|
1557
|
-
/**
|
|
1558
|
-
* Creates an CalendarCell for the given year.
|
|
1559
|
-
*/
|
|
1560
|
-
private createYearCell;
|
|
1561
|
-
private setSelectedYears;
|
|
1562
|
-
/** Whether the given year is enabled. */
|
|
1563
|
-
private isYearEnabled;
|
|
1564
|
-
private isSameYearList;
|
|
1565
|
-
/**
|
|
1566
|
-
* Get a valid date object
|
|
1567
|
-
*/
|
|
1568
|
-
private getValidDate;
|
|
1569
|
-
private focusActiveCell;
|
|
1570
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlMultiYearViewComponent<any>, [null, null, { optional: true; }, null]>;
|
|
1571
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlMultiYearViewComponent<any>, "owl-date-time-multi-year-view", never, { "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; }; }, { "change": "change"; "yearSelected": "yearSelected"; "pickerMomentChange": "pickerMomentChange"; "keyboardEnter": "keyboardEnter"; }, never, never, false, never>;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
/**
|
|
1575
|
-
* calendar-year-view.component
|
|
1576
|
-
*/
|
|
1577
|
-
|
|
1578
|
-
declare class OwlYearViewComponent<T> implements OnInit, AfterContentInit, OnDestroy {
|
|
1579
|
-
private cdRef;
|
|
1580
|
-
private dateTimeAdapter;
|
|
1581
|
-
private dateTimeFormats;
|
|
1582
|
-
/**
|
|
1583
|
-
* The select mode of the picker;
|
|
1584
|
-
* */
|
|
1585
|
-
private _selectMode;
|
|
1586
|
-
get selectMode(): SelectMode;
|
|
1587
|
-
set selectMode(val: SelectMode);
|
|
1588
|
-
/** The currently selected date. */
|
|
1589
|
-
private _selected;
|
|
1590
|
-
get selected(): T | null;
|
|
1591
|
-
set selected(value: T | null);
|
|
1592
|
-
private _selecteds;
|
|
1593
|
-
get selecteds(): T[];
|
|
1594
|
-
set selecteds(values: T[]);
|
|
1595
|
-
private _pickerMoment;
|
|
1596
|
-
get pickerMoment(): T;
|
|
1597
|
-
set pickerMoment(value: T);
|
|
1598
|
-
/**
|
|
1599
|
-
* A function used to filter which dates are selectable
|
|
1600
|
-
* */
|
|
1601
|
-
private _dateFilter;
|
|
1602
|
-
get dateFilter(): (date: T) => boolean;
|
|
1603
|
-
set dateFilter(filter: (date: T) => boolean);
|
|
1604
|
-
/** The minimum selectable date. */
|
|
1605
|
-
private _minDate;
|
|
1606
|
-
get minDate(): T | null;
|
|
1607
|
-
set minDate(value: T | null);
|
|
1608
|
-
/** The maximum selectable date. */
|
|
1609
|
-
private _maxDate;
|
|
1610
|
-
get maxDate(): T | null;
|
|
1611
|
-
set maxDate(value: T | null);
|
|
1612
|
-
private readonly monthNames;
|
|
1613
|
-
private _months;
|
|
1614
|
-
get months(): CalendarCell[][];
|
|
1615
|
-
get activeCell(): number;
|
|
1616
|
-
get isInSingleMode(): boolean;
|
|
1617
|
-
get isInRangeMode(): boolean;
|
|
1618
|
-
private localeSub;
|
|
1619
|
-
private initiated;
|
|
1620
|
-
todayMonth: number | null;
|
|
1621
|
-
/**
|
|
1622
|
-
* An array to hold all selectedDates' month value
|
|
1623
|
-
* the value is the month number in current year
|
|
1624
|
-
* */
|
|
1625
|
-
selectedMonths: number[];
|
|
1626
|
-
/**
|
|
1627
|
-
* Callback to invoke when a new month is selected
|
|
1628
|
-
* */
|
|
1629
|
-
readonly change: EventEmitter<T>;
|
|
1630
|
-
/**
|
|
1631
|
-
* Emits the selected year. This doesn't imply a change on the selected date
|
|
1632
|
-
* */
|
|
1633
|
-
readonly monthSelected: EventEmitter<T>;
|
|
1634
|
-
/** Emits when any date is activated. */
|
|
1635
|
-
readonly pickerMomentChange: EventEmitter<T>;
|
|
1636
|
-
/** Emits when use keyboard enter to select a calendar cell */
|
|
1637
|
-
readonly keyboardEnter: EventEmitter<any>;
|
|
1638
|
-
/** The body of calendar table */
|
|
1639
|
-
calendarBodyElm: OwlCalendarBodyComponent;
|
|
1640
|
-
get owlDTCalendarView(): boolean;
|
|
1641
|
-
constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
|
|
1642
|
-
ngOnInit(): void;
|
|
1643
|
-
ngAfterContentInit(): void;
|
|
1644
|
-
ngOnDestroy(): void;
|
|
1645
|
-
/**
|
|
1646
|
-
* Handle a calendarCell selected
|
|
1647
|
-
*/
|
|
1648
|
-
selectCalendarCell(cell: CalendarCell): void;
|
|
1649
|
-
/**
|
|
1650
|
-
* Handle a new month selected
|
|
1651
|
-
*/
|
|
1652
|
-
private selectMonth;
|
|
1653
|
-
/**
|
|
1654
|
-
* Handle keydown event on calendar body
|
|
1655
|
-
*/
|
|
1656
|
-
handleCalendarKeydown(event: KeyboardEvent): void;
|
|
1657
|
-
/**
|
|
1658
|
-
* Generate the calendar month list
|
|
1659
|
-
* */
|
|
1660
|
-
private generateMonthList;
|
|
1661
|
-
/**
|
|
1662
|
-
* Creates an CalendarCell for the given month.
|
|
1663
|
-
*/
|
|
1664
|
-
private createMonthCell;
|
|
1665
|
-
/**
|
|
1666
|
-
* Check if the given month is enable
|
|
1667
|
-
*/
|
|
1668
|
-
private isMonthEnabled;
|
|
1669
|
-
/**
|
|
1670
|
-
* Gets the month in this year that the given Date falls on.
|
|
1671
|
-
* Returns null if the given Date is in another year.
|
|
1672
|
-
*/
|
|
1673
|
-
private getMonthInCurrentYear;
|
|
1674
|
-
/**
|
|
1675
|
-
* Set the selectedMonths value
|
|
1676
|
-
* In single mode, it has only one value which represent the month the selected date in
|
|
1677
|
-
* In range mode, it would has two values, one for the month the fromValue in and the other for the month the toValue in
|
|
1678
|
-
* */
|
|
1679
|
-
private setSelectedMonths;
|
|
1680
|
-
/**
|
|
1681
|
-
* Check the given dates are in the same year
|
|
1682
|
-
*/
|
|
1683
|
-
private hasSameYear;
|
|
1684
|
-
/**
|
|
1685
|
-
* Get a valid date object
|
|
1686
|
-
*/
|
|
1687
|
-
private getValidDate;
|
|
1688
|
-
private focusActiveCell;
|
|
1689
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlYearViewComponent<any>, [null, { optional: true; }, { optional: true; }]>;
|
|
1690
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlYearViewComponent<any>, "owl-date-time-year-view", ["owlMonthView"], { "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; }; }, { "change": "change"; "monthSelected": "monthSelected"; "pickerMomentChange": "pickerMomentChange"; "keyboardEnter": "keyboardEnter"; }, never, never, false, never>;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
/**
|
|
1694
|
-
* calendar-month-view.component
|
|
1695
|
-
*/
|
|
1696
|
-
|
|
1697
|
-
declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDestroy {
|
|
1698
|
-
private cdRef;
|
|
1699
|
-
private dateTimeAdapter;
|
|
1700
|
-
private dateTimeFormats;
|
|
1701
|
-
/**
|
|
1702
|
-
* Whether to hide dates in other months at the start or end of the current month.
|
|
1703
|
-
* */
|
|
1704
|
-
hideOtherMonths: boolean;
|
|
1705
|
-
/**
|
|
1706
|
-
* Whether to show calendar weeks in the calendar
|
|
1707
|
-
* */
|
|
1708
|
-
showCalendarWeeks: boolean;
|
|
1709
|
-
private isDefaultFirstDayOfWeek;
|
|
1710
|
-
/**
|
|
1711
|
-
* Define the first day of a week
|
|
1712
|
-
* Sunday: 0 - Saturday: 6
|
|
1713
|
-
* */
|
|
1714
|
-
private _firstDayOfWeek;
|
|
1715
|
-
get firstDayOfWeek(): number;
|
|
1716
|
-
set firstDayOfWeek(val: number);
|
|
1717
|
-
/**
|
|
1718
|
-
* The select mode of the picker;
|
|
1719
|
-
* */
|
|
1720
|
-
private _selectMode;
|
|
1721
|
-
get selectMode(): SelectMode;
|
|
1722
|
-
set selectMode(val: SelectMode);
|
|
1723
|
-
/** The currently selected date. */
|
|
1724
|
-
private _selected;
|
|
1725
|
-
get selected(): T | null;
|
|
1726
|
-
set selected(value: T | null);
|
|
1727
|
-
private _selecteds;
|
|
1728
|
-
get selecteds(): T[];
|
|
1729
|
-
set selecteds(values: T[]);
|
|
1730
|
-
private _pickerMoment;
|
|
1731
|
-
get pickerMoment(): T;
|
|
1732
|
-
set pickerMoment(value: T);
|
|
1733
|
-
/**
|
|
1734
|
-
* A function used to filter which dates are selectable
|
|
1735
|
-
* */
|
|
1736
|
-
private _dateFilter;
|
|
1737
|
-
get dateFilter(): (date: T) => boolean;
|
|
1738
|
-
set dateFilter(filter: (date: T) => boolean);
|
|
1739
|
-
/** The minimum selectable date. */
|
|
1740
|
-
private _minDate;
|
|
1741
|
-
get minDate(): T | null;
|
|
1742
|
-
set minDate(value: T | null);
|
|
1743
|
-
/** The maximum selectable date. */
|
|
1744
|
-
private _maxDate;
|
|
1745
|
-
get maxDate(): T | null;
|
|
1746
|
-
set maxDate(value: T | null);
|
|
1747
|
-
private _weekdays;
|
|
1748
|
-
get weekdays(): {
|
|
1749
|
-
long: string;
|
|
1750
|
-
short: string;
|
|
1751
|
-
narrow: string;
|
|
1752
|
-
}[];
|
|
1753
|
-
private _days;
|
|
1754
|
-
get days(): CalendarCell[][];
|
|
1755
|
-
get activeCell(): number;
|
|
1756
|
-
get isInSingleMode(): boolean;
|
|
1757
|
-
get isInRangeMode(): boolean;
|
|
1758
|
-
private firstDateOfMonth;
|
|
1759
|
-
private localeSub;
|
|
1760
|
-
private initiated;
|
|
1761
|
-
private dateNames;
|
|
1762
|
-
/**
|
|
1763
|
-
* The date of the month that today falls on.
|
|
1764
|
-
* */
|
|
1765
|
-
todayDate: number | null;
|
|
1766
|
-
/**
|
|
1767
|
-
* Week day numbers
|
|
1768
|
-
* */
|
|
1769
|
-
weekNumbers: number[];
|
|
1770
|
-
/**
|
|
1771
|
-
* An array to hold all selectedDates' value
|
|
1772
|
-
* the value is the day number in current month
|
|
1773
|
-
* */
|
|
1774
|
-
selectedDates: number[];
|
|
1775
|
-
firstRowOffset: number;
|
|
1776
|
-
/**
|
|
1777
|
-
* Callback to invoke when a new date is selected
|
|
1778
|
-
* */
|
|
1779
|
-
readonly selectedChange: EventEmitter<T>;
|
|
1780
|
-
/**
|
|
1781
|
-
* Callback to invoke when any date is selected.
|
|
1782
|
-
* */
|
|
1783
|
-
readonly userSelection: EventEmitter<void>;
|
|
1784
|
-
/** Emits when any date is activated. */
|
|
1785
|
-
readonly pickerMomentChange: EventEmitter<T>;
|
|
1786
|
-
/** The body of calendar table */
|
|
1787
|
-
calendarBodyElm: OwlCalendarBodyComponent;
|
|
1788
|
-
get owlDTCalendarView(): boolean;
|
|
1789
|
-
constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
|
|
1790
|
-
ngOnInit(): void;
|
|
1791
|
-
ngAfterContentInit(): void;
|
|
1792
|
-
ngOnDestroy(): void;
|
|
1793
|
-
/**
|
|
1794
|
-
* Handle a calendarCell selected
|
|
1795
|
-
*/
|
|
1796
|
-
selectCalendarCell(cell: CalendarCell): void;
|
|
1797
|
-
/**
|
|
1798
|
-
* Handle a new date selected
|
|
1799
|
-
*/
|
|
1800
|
-
private selectDate;
|
|
1801
|
-
/**
|
|
1802
|
-
* Handle keydown event on calendar body
|
|
1803
|
-
*/
|
|
1804
|
-
handleCalendarKeydown(event: KeyboardEvent): void;
|
|
1805
|
-
/**
|
|
1806
|
-
* Generate the calendar weekdays array
|
|
1807
|
-
* */
|
|
1808
|
-
private generateWeekDays;
|
|
1809
|
-
/**
|
|
1810
|
-
* Generate the calendar days array
|
|
1811
|
-
* */
|
|
1812
|
-
private generateCalendar;
|
|
1813
|
-
getISOWeek(d: Date): number;
|
|
1814
|
-
private updateFirstDayOfWeek;
|
|
1815
|
-
/**
|
|
1816
|
-
* Creates CalendarCell for days.
|
|
1817
|
-
*/
|
|
1818
|
-
private createDateCell;
|
|
1819
|
-
/**
|
|
1820
|
-
* Check if the date is valid
|
|
1821
|
-
*/
|
|
1822
|
-
private isDateEnabled;
|
|
1823
|
-
/**
|
|
1824
|
-
* Get a valid date object
|
|
1825
|
-
*/
|
|
1826
|
-
private getValidDate;
|
|
1827
|
-
/**
|
|
1828
|
-
* Check if the give dates are none-null and in the same month
|
|
1829
|
-
*/
|
|
1830
|
-
isSameMonth(dateLeft: T, dateRight: T): boolean;
|
|
1831
|
-
private getISOWeekFromDate;
|
|
1832
|
-
/**
|
|
1833
|
-
* Set the selectedDates value.
|
|
1834
|
-
* In single mode, it has only one value which represent the selected date
|
|
1835
|
-
* In range mode, it would has two values, one for the fromValue and the other for the toValue
|
|
1836
|
-
* */
|
|
1837
|
-
private setSelectedDates;
|
|
1838
|
-
private focusActiveCell;
|
|
1839
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlMonthViewComponent<any>, [null, { optional: true; }, { optional: true; }]>;
|
|
1840
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlMonthViewComponent<any>, "owl-date-time-month-view", ["owlYearView"], { "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; }; "showCalendarWeeks": { "alias": "showCalendarWeeks"; "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>;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* timer-box.component
|
|
1845
|
-
*/
|
|
1846
|
-
|
|
1847
|
-
declare class OwlTimerBoxComponent implements OnInit, OnDestroy {
|
|
1848
|
-
showDivider: boolean;
|
|
1849
|
-
upBtnAriaLabel: string;
|
|
1850
|
-
upBtnDisabled: boolean;
|
|
1851
|
-
downBtnAriaLabel: string;
|
|
1852
|
-
downBtnDisabled: boolean;
|
|
1853
|
-
/**
|
|
1854
|
-
* Value would be displayed in the box
|
|
1855
|
-
* If it is null, the box would display [value]
|
|
1856
|
-
* */
|
|
1857
|
-
boxValue: number;
|
|
1858
|
-
value: number;
|
|
1859
|
-
min: number;
|
|
1860
|
-
max: number;
|
|
1861
|
-
step: number;
|
|
1862
|
-
inputLabel: string;
|
|
1863
|
-
valueChange: EventEmitter<number>;
|
|
1864
|
-
inputChange: EventEmitter<number>;
|
|
1865
|
-
private inputStream;
|
|
1866
|
-
private inputStreamSub;
|
|
1867
|
-
private hasFocus;
|
|
1868
|
-
get displayValue(): string;
|
|
1869
|
-
get owlDTTimerBoxClass(): boolean;
|
|
1870
|
-
private valueInput;
|
|
1871
|
-
private onValueInputMouseWheelBind;
|
|
1872
|
-
constructor();
|
|
1873
|
-
ngOnInit(): void;
|
|
1874
|
-
ngOnDestroy(): void;
|
|
1875
|
-
upBtnClicked(): void;
|
|
1876
|
-
downBtnClicked(): void;
|
|
1877
|
-
handleInputChange(val: string): void;
|
|
1878
|
-
focusIn(): void;
|
|
1879
|
-
focusOut(value: string): void;
|
|
1880
|
-
private updateValue;
|
|
1881
|
-
private updateValueViaInput;
|
|
1882
|
-
private onValueInputMouseWheel;
|
|
1883
|
-
private bindValueInputMouseWheel;
|
|
1884
|
-
private unbindValueInputMouseWheel;
|
|
1885
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerBoxComponent, never>;
|
|
1886
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlTimerBoxComponent, "owl-date-time-timer-box", ["owlDateTimeTimerBox"], { "showDivider": { "alias": "showDivider"; "required": false; }; "upBtnAriaLabel": { "alias": "upBtnAriaLabel"; "required": false; }; "upBtnDisabled": { "alias": "upBtnDisabled"; "required": false; }; "downBtnAriaLabel": { "alias": "downBtnAriaLabel"; "required": false; }; "downBtnDisabled": { "alias": "downBtnDisabled"; "required": false; }; "boxValue": { "alias": "boxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; }, { "valueChange": "valueChange"; "inputChange": "inputChange"; }, never, never, false, never>;
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
/**
|
|
1890
|
-
* numberFixedLen.pipe
|
|
1891
|
-
*/
|
|
1892
|
-
|
|
1893
|
-
declare class NumberFixedLenPipe implements PipeTransform {
|
|
1894
|
-
transform(num: number, len: number): any;
|
|
1895
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFixedLenPipe, never>;
|
|
1896
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NumberFixedLenPipe, "numberFixedLen", false>;
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
/**
|
|
1900
|
-
* date-time-inline.component
|
|
1901
|
-
*/
|
|
1902
|
-
|
|
1903
|
-
declare class OwlDateTimeInlineComponent<T> extends OwlDateTime<T> implements OnInit, ControlValueAccessor {
|
|
1904
|
-
protected changeDetector: ChangeDetectorRef;
|
|
1905
|
-
protected dateTimeAdapter: DateTimeAdapter<T>;
|
|
1906
|
-
protected dateTimeFormats: OwlDateTimeFormats;
|
|
1907
|
-
container: OwlDateTimeContainerComponent<T>;
|
|
1908
|
-
/**
|
|
1909
|
-
* Set the type of the dateTime picker
|
|
1910
|
-
* 'both' -- show both calendar and timer
|
|
1911
|
-
* 'calendar' -- show only calendar
|
|
1912
|
-
* 'timer' -- show only timer
|
|
1913
|
-
*/
|
|
1914
|
-
private _pickerType;
|
|
1915
|
-
get pickerType(): PickerType;
|
|
1916
|
-
set pickerType(val: PickerType);
|
|
1917
|
-
private _disabled;
|
|
1918
|
-
get disabled(): boolean;
|
|
1919
|
-
set disabled(value: boolean);
|
|
1920
|
-
private _selectMode;
|
|
1921
|
-
get selectMode(): SelectMode;
|
|
1922
|
-
set selectMode(mode: SelectMode);
|
|
1923
|
-
/** The date to open the calendar to initially. */
|
|
1924
|
-
private _startAt;
|
|
1925
|
-
get startAt(): T | null;
|
|
1926
|
-
set startAt(date: T | null);
|
|
1927
|
-
/** The date to open for range calendar. */
|
|
1928
|
-
private _endAt;
|
|
1929
|
-
get endAt(): T | null;
|
|
1930
|
-
set endAt(date: T | null);
|
|
1931
|
-
private _dateTimeFilter;
|
|
1932
|
-
get dateTimeFilter(): (date: T | null) => boolean;
|
|
1933
|
-
set dateTimeFilter(filter: (date: T | null) => boolean);
|
|
1934
|
-
/** The minimum valid date. */
|
|
1935
|
-
private _min;
|
|
1936
|
-
get minDateTime(): T | null;
|
|
1937
|
-
set minDateTime(value: T | null);
|
|
1938
|
-
/** The maximum valid date. */
|
|
1939
|
-
private _max;
|
|
1940
|
-
get maxDateTime(): T | null;
|
|
1941
|
-
set maxDateTime(value: T | null);
|
|
1942
|
-
private _value;
|
|
1943
|
-
get value(): T | null;
|
|
1944
|
-
set value(value: T | null);
|
|
1945
|
-
private _values;
|
|
1946
|
-
get values(): (T | null)[];
|
|
1947
|
-
set values(values: (T | null)[]);
|
|
1948
|
-
/**
|
|
1949
|
-
* Emits selected year in multi-year view
|
|
1950
|
-
* This doesn't imply a change on the selected date.
|
|
1951
|
-
* */
|
|
1952
|
-
yearSelected: EventEmitter<T>;
|
|
1953
|
-
/**
|
|
1954
|
-
* Emits selected month in year view
|
|
1955
|
-
* This doesn't imply a change on the selected date.
|
|
1956
|
-
* */
|
|
1957
|
-
monthSelected: EventEmitter<T>;
|
|
1958
|
-
/**
|
|
1959
|
-
* Emits selected date
|
|
1960
|
-
* */
|
|
1961
|
-
dateSelected: EventEmitter<T>;
|
|
1962
|
-
private _selected;
|
|
1963
|
-
get selected(): T | null;
|
|
1964
|
-
set selected(value: T | null);
|
|
1965
|
-
private _selecteds;
|
|
1966
|
-
get selecteds(): T[];
|
|
1967
|
-
set selecteds(values: T[]);
|
|
1968
|
-
get opened(): boolean;
|
|
1969
|
-
get pickerMode(): PickerMode;
|
|
1970
|
-
get isInSingleMode(): boolean;
|
|
1971
|
-
get isInRangeMode(): boolean;
|
|
1972
|
-
get owlDTInlineClass(): boolean;
|
|
1973
|
-
private onModelChange;
|
|
1974
|
-
private onModelTouched;
|
|
1975
|
-
constructor(changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
|
|
1976
|
-
ngOnInit(): void;
|
|
1977
|
-
writeValue(value: any): void;
|
|
1978
|
-
registerOnChange(fn: any): void;
|
|
1979
|
-
registerOnTouched(fn: any): void;
|
|
1980
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1981
|
-
select(date: T[] | T): void;
|
|
1982
|
-
/**
|
|
1983
|
-
* Emits the selected year in multi-year view
|
|
1984
|
-
* */
|
|
1985
|
-
selectYear(normalizedYear: T): void;
|
|
1986
|
-
/**
|
|
1987
|
-
* Emits selected month in year view
|
|
1988
|
-
* */
|
|
1989
|
-
selectMonth(normalizedMonth: T): void;
|
|
1990
|
-
/**
|
|
1991
|
-
* Emits the selected date
|
|
1992
|
-
* */
|
|
1993
|
-
selectDate(normalizedDate: T): void;
|
|
1994
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInlineComponent<any>, [null, { optional: true; }, { optional: true; }]>;
|
|
1995
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OwlDateTimeInlineComponent<any>, "owl-date-time-inline", never, { "pickerType": { "alias": "pickerType"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "endAt": { "alias": "endAt"; "required": false; }; "dateTimeFilter": { "alias": "owlDateTimeFilter"; "required": false; }; "minDateTime": { "alias": "min"; "required": false; }; "maxDateTime": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "values": { "alias": "values"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "dateSelected": "dateSelected"; }, never, never, false, never>;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
declare class OwlDialogModule {
|
|
1999
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogModule, never>;
|
|
2000
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OwlDialogModule, [typeof OwlDialogContainerComponent], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.OverlayModule, typeof i5.PortalModule], never>;
|
|
2001
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OwlDialogModule>;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
declare class OwlDateTimeModule {
|
|
2005
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeModule, never>;
|
|
2006
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OwlDateTimeModule, [typeof OwlDateTimeTriggerDirective, typeof OwlDateTimeInputDirective, typeof OwlDateTimeComponent, typeof OwlDateTimeContainerComponent, typeof OwlMultiYearViewComponent, typeof OwlYearViewComponent, typeof OwlMonthViewComponent, typeof OwlTimerComponent, typeof OwlTimerBoxComponent, typeof OwlCalendarComponent, typeof OwlCalendarBodyComponent, typeof NumberFixedLenPipe, typeof OwlDateTimeInlineComponent], [typeof i2.CommonModule, typeof i4.OverlayModule, typeof OwlDialogModule, typeof i3.A11yModule], [typeof OwlCalendarComponent, typeof OwlTimerComponent, typeof OwlDateTimeTriggerDirective, typeof OwlDateTimeInputDirective, typeof OwlDateTimeComponent, typeof OwlDateTimeInlineComponent, typeof OwlMultiYearViewComponent, typeof OwlYearViewComponent, typeof OwlMonthViewComponent]>;
|
|
2007
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OwlDateTimeModule>;
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
declare class LuxonDateTimeModule {
|
|
2011
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuxonDateTimeModule, never>;
|
|
2012
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LuxonDateTimeModule, never, never, never>;
|
|
2013
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LuxonDateTimeModule>;
|
|
2014
|
-
}
|
|
2015
|
-
declare class OwlLuxonDateTimeModule {
|
|
2016
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlLuxonDateTimeModule, never>;
|
|
2017
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OwlLuxonDateTimeModule, never, [typeof LuxonDateTimeModule], never>;
|
|
2018
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OwlLuxonDateTimeModule>;
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
declare class UnixTimestampDateTimeAdapter extends DateTimeAdapter<number> {
|
|
2022
|
-
private owlDateTimeLocale;
|
|
2023
|
-
firstMonthOfTheYear: number;
|
|
2024
|
-
/**
|
|
2025
|
-
* Picker expects:
|
|
2026
|
-
* 0 - Sunday
|
|
2027
|
-
* 1 - Monday
|
|
2028
|
-
* ...
|
|
2029
|
-
* 6 - Saturday
|
|
2030
|
-
*/
|
|
2031
|
-
firstDayOfTheWeek: number;
|
|
2032
|
-
constructor(owlDateTimeLocale: string);
|
|
2033
|
-
getYear(date: number): number;
|
|
2034
|
-
/**
|
|
2035
|
-
* Picker expects:
|
|
2036
|
-
* 0 - January
|
|
2037
|
-
* 11 - December
|
|
2038
|
-
*
|
|
2039
|
-
* Luxon uses:
|
|
2040
|
-
* 1 - January
|
|
2041
|
-
* 12 - December
|
|
2042
|
-
*/
|
|
2043
|
-
getMonth(date: number): number;
|
|
2044
|
-
/**
|
|
2045
|
-
* Picker expects:
|
|
2046
|
-
* 0 - Sunday
|
|
2047
|
-
* 6 - Saturday
|
|
2048
|
-
*
|
|
2049
|
-
* Luxon weekday:
|
|
2050
|
-
* 1 - Monday
|
|
2051
|
-
* 7 - Sunday
|
|
2052
|
-
*/
|
|
2053
|
-
getDay(date: number): number;
|
|
2054
|
-
getDate(date: number): number;
|
|
2055
|
-
getHours(date: number): number;
|
|
2056
|
-
getMinutes(date: number): number;
|
|
2057
|
-
getSeconds(date: number): number;
|
|
2058
|
-
getTime(date: number): number;
|
|
2059
|
-
getNumDaysInMonth(date: number): number;
|
|
2060
|
-
differenceInCalendarDays(dateLeft: number, dateRight: number): number;
|
|
2061
|
-
getYearName(date: number): string;
|
|
2062
|
-
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
2063
|
-
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
2064
|
-
getDateNames(): string[];
|
|
2065
|
-
toIso8601(date: number): string;
|
|
2066
|
-
isEqual(dateLeft: number, dateRight: number): boolean;
|
|
2067
|
-
isSameDay(dateLeft: number, dateRight: number): boolean;
|
|
2068
|
-
isValid(date: number): boolean;
|
|
2069
|
-
invalid(): number;
|
|
2070
|
-
isDateInstance(obj: unknown): boolean;
|
|
2071
|
-
addCalendarYears(date: number, amount: number): number;
|
|
2072
|
-
addCalendarMonths(date: number, amount: number): number;
|
|
2073
|
-
addCalendarDays(date: number, amount: number): number;
|
|
2074
|
-
setHours(date: number, amount: number): number;
|
|
2075
|
-
setMinutes(date: number, amount: number): number;
|
|
2076
|
-
setSeconds(date: number, amount: number): number;
|
|
2077
|
-
createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): number;
|
|
2078
|
-
clone(date: number): number;
|
|
2079
|
-
now(): number;
|
|
2080
|
-
/**
|
|
2081
|
-
* Hybrid formatter:
|
|
2082
|
-
* - string => Luxon format, e.g. 'dd.MM.yyyy HH:mm'
|
|
2083
|
-
* - Intl.DateTimeFormatOptions => old adapter-compatible formatting
|
|
2084
|
-
*/
|
|
2085
|
-
format(date: number, displayFormat: string | Intl.DateTimeFormatOptions): string;
|
|
2086
|
-
parse(value: unknown, parseFormat: string | string[] | null): number | null;
|
|
2087
|
-
deserialize(value: unknown): number | null;
|
|
2088
|
-
setLocale(locale: string): void;
|
|
2089
|
-
private fromTimestamp;
|
|
2090
|
-
private stripDirectionalityCharacters;
|
|
2091
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UnixTimestampDateTimeAdapter, [{ optional: true; }]>;
|
|
2092
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UnixTimestampDateTimeAdapter>;
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
/**
|
|
2096
|
-
* unix-timestamp-date-time-format.class
|
|
2097
|
-
*/
|
|
2098
|
-
|
|
2099
|
-
declare const OWL_UNIX_TIMESTAMP_DATE_TIME_FORMATS: OwlDateTimeFormats;
|
|
2100
|
-
|
|
2101
|
-
declare class LuxonDateTimeAdapter extends DateTimeAdapter<DateTime> {
|
|
2102
|
-
private owlDateTimeLocale;
|
|
2103
|
-
firstMonthOfTheYear: number;
|
|
2104
|
-
/**
|
|
2105
|
-
* 0 - Sunday
|
|
2106
|
-
* 1 - Monday
|
|
2107
|
-
* ...
|
|
2108
|
-
* 6 - Saturday
|
|
2109
|
-
*/
|
|
2110
|
-
firstDayOfTheWeek: number;
|
|
2111
|
-
constructor(owlDateTimeLocale: string);
|
|
2112
|
-
getYear(date: DateTime): number;
|
|
2113
|
-
/**
|
|
2114
|
-
* Picker expects month index:
|
|
2115
|
-
* 0 - January
|
|
2116
|
-
* 11 - December
|
|
2117
|
-
*
|
|
2118
|
-
* Luxon uses:
|
|
2119
|
-
* 1 - January
|
|
2120
|
-
* 12 - December
|
|
2121
|
-
*/
|
|
2122
|
-
getMonth(date: DateTime): number;
|
|
2123
|
-
/**
|
|
2124
|
-
* Picker expects:
|
|
2125
|
-
* 0 - Sunday
|
|
2126
|
-
* 6 - Saturday
|
|
2127
|
-
*
|
|
2128
|
-
* Luxon weekday:
|
|
2129
|
-
* 1 - Monday
|
|
2130
|
-
* 7 - Sunday
|
|
2131
|
-
*/
|
|
2132
|
-
getDay(date: DateTime): number;
|
|
2133
|
-
getDate(date: DateTime): number;
|
|
2134
|
-
getHours(date: DateTime): number;
|
|
2135
|
-
getMinutes(date: DateTime): number;
|
|
2136
|
-
getSeconds(date: DateTime): number;
|
|
2137
|
-
getTime(date: DateTime): number;
|
|
2138
|
-
getNumDaysInMonth(date: DateTime): number;
|
|
2139
|
-
differenceInCalendarDays(dateLeft: DateTime, dateRight: DateTime): number;
|
|
2140
|
-
getYearName(date: DateTime): string;
|
|
2141
|
-
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
2142
|
-
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
2143
|
-
getDateNames(): string[];
|
|
2144
|
-
toIso8601(date: DateTime): string;
|
|
2145
|
-
isEqual(dateLeft: DateTime, dateRight: DateTime): boolean;
|
|
2146
|
-
isSameDay(dateLeft: DateTime, dateRight: DateTime): boolean;
|
|
2147
|
-
isValid(date: DateTime): boolean;
|
|
2148
|
-
invalid(): DateTime;
|
|
2149
|
-
isDateInstance(obj: unknown): boolean;
|
|
2150
|
-
addCalendarYears(date: DateTime, amount: number): DateTime;
|
|
2151
|
-
addCalendarMonths(date: DateTime, amount: number): DateTime;
|
|
2152
|
-
addCalendarDays(date: DateTime, amount: number): DateTime;
|
|
2153
|
-
setHours(date: DateTime, amount: number): DateTime;
|
|
2154
|
-
setMinutes(date: DateTime, amount: number): DateTime;
|
|
2155
|
-
setSeconds(date: DateTime, amount: number): DateTime;
|
|
2156
|
-
createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): DateTime;
|
|
2157
|
-
clone(date: DateTime): DateTime;
|
|
2158
|
-
now(): DateTime;
|
|
2159
|
-
format(date: DateTime, displayFormat: string): string;
|
|
2160
|
-
parse(value: unknown, parseFormat: string | string[]): DateTime | null;
|
|
2161
|
-
deserialize(value: unknown): DateTime | null;
|
|
2162
|
-
setLocale(locale: string): void;
|
|
2163
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuxonDateTimeAdapter, [{ optional: true; }]>;
|
|
2164
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LuxonDateTimeAdapter>;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
declare const OWL_LUXON_DATE_TIME_FORMATS: OwlDateTimeFormats;
|
|
2168
|
-
|
|
2169
|
-
declare function defaultOptionsFactory(): Options;
|
|
2170
|
-
declare function multiYearOptionsFactory(options: Options): {
|
|
2171
|
-
yearsPerRow: number;
|
|
2172
|
-
yearRows: number;
|
|
2173
|
-
};
|
|
2174
|
-
interface Options {
|
|
2175
|
-
multiYear: {
|
|
2176
|
-
yearsPerRow: number;
|
|
2177
|
-
yearRows: number;
|
|
2178
|
-
};
|
|
2179
|
-
}
|
|
2180
|
-
declare class DefaultOptions {
|
|
2181
|
-
static create(): Options;
|
|
2182
|
-
}
|
|
2183
|
-
declare abstract class OptionsTokens {
|
|
2184
|
-
static all: InjectionToken<Options>;
|
|
2185
|
-
static multiYear: InjectionToken<{
|
|
2186
|
-
yearsPerRow: number;
|
|
2187
|
-
yearRows: number;
|
|
2188
|
-
}>;
|
|
2189
|
-
}
|
|
2190
|
-
declare const optionsProviders: Provider[];
|
|
2191
|
-
|
|
2192
|
-
export { CalendarCell, DateTimeAdapter, DateView, DefaultOptions, LuxonDateTimeAdapter, LuxonDateTimeModule, OWL_DATETIME_VALIDATORS, OWL_DATETIME_VALUE_ACCESSOR, OWL_DATE_TIME_FORMATS, OWL_DATE_TIME_LOCALE, OWL_DATE_TIME_LOCALE_PROVIDER, OWL_LUXON_DATE_TIME_FORMATS, OWL_UNIX_TIMESTAMP_DATE_TIME_FORMATS, OptionsTokens, OwlCalendarBodyComponent, OwlCalendarComponent, OwlDateTimeComponent, OwlDateTimeInlineComponent, OwlDateTimeInputDirective, OwlDateTimeIntl, OwlDateTimeModule, OwlDateTimeTriggerDirective, OwlLuxonDateTimeModule, OwlMonthViewComponent, OwlMultiYearViewComponent, OwlTimerComponent, OwlYearViewComponent, UnixTimestampDateTimeAdapter, defaultOptionsFactory, multiYearOptionsFactory, optionsProviders };
|
|
2193
|
-
export type { DateViewType, Options, OwlDateTimeFormats, PickerMode, PickerType, SelectMode };
|