nxt-pick-datetime 19.0.4 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/picker.scss +21 -21
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs +8 -8
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs +8 -8
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime.mjs +62 -62
- package/fesm2022/nxt-pick-datetime.mjs.map +1 -1
- package/index.d.ts +1888 -5
- package/moment-adapter/index.d.ts +24 -5
- package/native-adapter/index.d.ts +12 -5
- package/package.json +8 -8
- package/lib/class/date-time-adapter.class.d.ts +0 -176
- package/lib/class/date-time-format.class.d.ts +0 -12
- package/lib/class/date-time.class.d.ts +0 -76
- package/lib/class/dialog-config.class.d.ts +0 -90
- package/lib/class/dialog-ref.class.d.ts +0 -50
- package/lib/date-time/calendar/calendar.component.d.ts +0 -147
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +0 -79
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +0 -139
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +0 -115
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +0 -123
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +0 -106
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +0 -172
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +0 -6
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +0 -129
- package/lib/date-time/date-time-picker-input.directive.d.ts +0 -167
- package/lib/date-time/date-time-picker-intl.service.d.ts +0 -51
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -22
- package/lib/date-time/date-time.module.d.ts +0 -23
- package/lib/date-time/number-fixed-len.pipe.d.ts +0 -8
- package/lib/date-time/timer/timer.component.d.ts +0 -131
- package/lib/date-time/timer-box/timer-box.component.d.ts +0 -37
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +0 -69
- package/lib/dialog/dialog.module.d.ts +0 -12
- package/lib/dialog/dialog.service.d.ts +0 -78
- package/lib/utils/object.d.ts +0 -9
- package/moment-adapter/date-time-adapter.class.d.ts +0 -64
- package/moment-adapter/date-time-format.class.d.ts +0 -5
- package/moment-adapter/moment-adapter.module.d.ts +0 -8
- package/moment-adapter/public-api.d.ts +0 -2
- package/native-adapter/date-time-adapter.class.d.ts +0 -72
- package/native-adapter/date-time-format.class.d.ts +0 -5
- package/native-adapter/native-adapter.module.d.ts +0 -9
- package/native-adapter/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -14
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
|
|
2
|
-
import { DateTimeAdapter } from '../../class/date-time-adapter.class';
|
|
3
|
-
import { DateTimeIntl } from '../date-time-picker-intl.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TimerComponent<T> implements OnInit {
|
|
6
|
-
private readonly ngZone;
|
|
7
|
-
private readonly elmRef;
|
|
8
|
-
private readonly pickerIntl;
|
|
9
|
-
private readonly cdRef;
|
|
10
|
-
private readonly dateTimeAdapter;
|
|
11
|
-
/** The current picker moment */
|
|
12
|
-
private _pickerMoment?;
|
|
13
|
-
get pickerMoment(): T | undefined;
|
|
14
|
-
set pickerMoment(value: T | undefined);
|
|
15
|
-
/** The minimum selectable date time */
|
|
16
|
-
private _minDateTime?;
|
|
17
|
-
get min(): T | undefined;
|
|
18
|
-
set min(value: T | undefined);
|
|
19
|
-
/** The maximum selectable date time */
|
|
20
|
-
private _maxDateTime?;
|
|
21
|
-
get max(): T | undefined;
|
|
22
|
-
set max(value: T | undefined);
|
|
23
|
-
private isPM;
|
|
24
|
-
/**
|
|
25
|
-
* Whether to show the second's timer
|
|
26
|
-
*/
|
|
27
|
-
showSecondsTimer: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Whether the timer is in hour12 format
|
|
30
|
-
*/
|
|
31
|
-
hour12Timer: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Hours to change per step
|
|
34
|
-
*/
|
|
35
|
-
stepHour: number;
|
|
36
|
-
/**
|
|
37
|
-
* Minutes to change per step
|
|
38
|
-
*/
|
|
39
|
-
stepMinute: number;
|
|
40
|
-
/**
|
|
41
|
-
* Seconds to change per step
|
|
42
|
-
*/
|
|
43
|
-
stepSecond: number;
|
|
44
|
-
get hourValue(): number;
|
|
45
|
-
/**
|
|
46
|
-
* The value would be displayed in hourBox.
|
|
47
|
-
* We need this because the value displayed in hourBox it not
|
|
48
|
-
* the same as the hourValue when the timer is in hour12Timer mode.
|
|
49
|
-
*/
|
|
50
|
-
get hourBoxValue(): number;
|
|
51
|
-
get minuteValue(): number;
|
|
52
|
-
get secondValue(): number;
|
|
53
|
-
get upHourButtonLabel(): string;
|
|
54
|
-
get downHourButtonLabel(): string;
|
|
55
|
-
get upMinuteButtonLabel(): string;
|
|
56
|
-
get downMinuteButtonLabel(): string;
|
|
57
|
-
get upSecondButtonLabel(): string;
|
|
58
|
-
get downSecondButtonLabel(): string;
|
|
59
|
-
get hour12ButtonLabel(): string;
|
|
60
|
-
readonly selectedChange: EventEmitter<T>;
|
|
61
|
-
/** @internal */
|
|
62
|
-
get timerClass(): boolean;
|
|
63
|
-
/** @internal */
|
|
64
|
-
get timeTabIndex(): number;
|
|
65
|
-
constructor(ngZone: NgZone, elmRef: ElementRef<HTMLElement>, pickerIntl: DateTimeIntl, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>);
|
|
66
|
-
ngOnInit(): void;
|
|
67
|
-
/**
|
|
68
|
-
* Focus to the host element
|
|
69
|
-
*/
|
|
70
|
-
focus(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Set the hour value via typing into timer box input
|
|
73
|
-
* We need this to handle the hour value when the timer is in hour12 mode
|
|
74
|
-
*/
|
|
75
|
-
setHourValueViaInput(hours: number): void;
|
|
76
|
-
setHourValue(hours: number): void;
|
|
77
|
-
setMinuteValue(minutes: number): void;
|
|
78
|
-
setSecondValue(seconds: number): void;
|
|
79
|
-
setMeridiem(event: any): void;
|
|
80
|
-
/**
|
|
81
|
-
* Check if the up hour button is enabled
|
|
82
|
-
*/
|
|
83
|
-
upHourEnabled(): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Check if the down hour button is enabled
|
|
86
|
-
*/
|
|
87
|
-
downHourEnabled(): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Check if the up minute button is enabled
|
|
90
|
-
*/
|
|
91
|
-
upMinuteEnabled(): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Check if the down minute button is enabled
|
|
94
|
-
*/
|
|
95
|
-
downMinuteEnabled(): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Check if the up second button is enabled
|
|
98
|
-
*/
|
|
99
|
-
upSecondEnabled(): boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Check if the down second button is enabled
|
|
102
|
-
*/
|
|
103
|
-
downSecondEnabled(): boolean;
|
|
104
|
-
/**
|
|
105
|
-
* PickerMoment's hour value +/- certain amount and compare it to the give date
|
|
106
|
-
* 1 is after the comparedDate
|
|
107
|
-
* -1 is before the comparedDate
|
|
108
|
-
* 0 is equal the comparedDate
|
|
109
|
-
*/
|
|
110
|
-
private compareHours;
|
|
111
|
-
/**
|
|
112
|
-
* PickerMoment's minute value +/- certain amount and compare it to the give date
|
|
113
|
-
* 1 is after the comparedDate
|
|
114
|
-
* -1 is before the comparedDate
|
|
115
|
-
* 0 is equal the comparedDate
|
|
116
|
-
*/
|
|
117
|
-
private compareMinutes;
|
|
118
|
-
/**
|
|
119
|
-
* PickerMoment's second value +/- certain amount and compare it to the give date
|
|
120
|
-
* 1 is after the comparedDate
|
|
121
|
-
* -1 is before the comparedDate
|
|
122
|
-
* 0 is equal the comparedDate
|
|
123
|
-
*/
|
|
124
|
-
private compareSeconds;
|
|
125
|
-
/**
|
|
126
|
-
* Get a valid date object
|
|
127
|
-
*/
|
|
128
|
-
private getValidDate;
|
|
129
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TimerComponent<any>, never>;
|
|
130
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TimerComponent<any>, "nxt-date-time-timer", never, { "pickerMoment": { "alias": "pickerMoment"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "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>;
|
|
131
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export declare class TimerBoxComponent implements OnInit, OnDestroy {
|
|
5
|
-
showDivider: boolean;
|
|
6
|
-
upBtnAriaLabel?: string;
|
|
7
|
-
upBtnDisabled: boolean;
|
|
8
|
-
downBtnAriaLabel?: string;
|
|
9
|
-
downBtnDisabled: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Value would be displayed in the box
|
|
12
|
-
* If it is undefiend, the box would display [value]
|
|
13
|
-
*/
|
|
14
|
-
boxValue?: number;
|
|
15
|
-
value: number;
|
|
16
|
-
min: number;
|
|
17
|
-
max: number;
|
|
18
|
-
step: number;
|
|
19
|
-
inputLabel?: string;
|
|
20
|
-
valueChange: EventEmitter<number>;
|
|
21
|
-
inputChange: EventEmitter<number>;
|
|
22
|
-
private inputStream;
|
|
23
|
-
private inputStreamSub?;
|
|
24
|
-
get displayValue(): number;
|
|
25
|
-
/** @internal */
|
|
26
|
-
get timerBoxClass(): boolean;
|
|
27
|
-
constructor();
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
upBtnClicked(): void;
|
|
31
|
-
downBtnClicked(): void;
|
|
32
|
-
handleInputChange(val: string): void;
|
|
33
|
-
private updateValue;
|
|
34
|
-
private updateValueViaInput;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TimerBoxComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TimerBoxComponent, "nxt-date-time-timer-box", never, { "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>;
|
|
37
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AnimationEvent } from '@angular/animations';
|
|
2
|
-
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
3
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
4
|
-
import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, OnInit } from '@angular/core';
|
|
5
|
-
import { DialogConfig } from '../../class/dialog-config.class';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export type DialogContainerState = 'void' | 'enter' | 'exit';
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare class DialogContainerComponent extends BasePortalOutlet implements OnInit {
|
|
11
|
-
private readonly changeDetector;
|
|
12
|
-
private readonly elementRef;
|
|
13
|
-
private readonly focusTrapFactory;
|
|
14
|
-
private readonly document?;
|
|
15
|
-
portalOutlet?: CdkPortalOutlet;
|
|
16
|
-
/** The class that traps and manages focus within the dialog */
|
|
17
|
-
private focusTrap?;
|
|
18
|
-
/** ID of the element that should be considered as the dialog's label */
|
|
19
|
-
ariaLabelledBy?: string;
|
|
20
|
-
/** Emits when an animation state changes */
|
|
21
|
-
readonly animationStateChanged: EventEmitter<AnimationEvent>;
|
|
22
|
-
isAnimating: boolean;
|
|
23
|
-
private _config?;
|
|
24
|
-
get config(): DialogConfig | undefined;
|
|
25
|
-
private state;
|
|
26
|
-
private params;
|
|
27
|
-
private elementFocusedBeforeDialogWasOpened?;
|
|
28
|
-
/** @internal */
|
|
29
|
-
get dialogContainerClass(): boolean;
|
|
30
|
-
/** @internal */
|
|
31
|
-
get dialogContainerTabIndex(): number;
|
|
32
|
-
/** @internal */
|
|
33
|
-
get dialogContainerId(): string | undefined;
|
|
34
|
-
/** @internal */
|
|
35
|
-
get dialogContainerRole(): "dialog" | "alertdialog" | undefined;
|
|
36
|
-
/** @internal */
|
|
37
|
-
get dialogContainerAriaLabelledby(): string | undefined;
|
|
38
|
-
/** @internal */
|
|
39
|
-
get dialogContainerAriaDescribedby(): string | undefined;
|
|
40
|
-
/** @internal */
|
|
41
|
-
get dialogContainerAnimation(): {
|
|
42
|
-
value: DialogContainerState;
|
|
43
|
-
params: any;
|
|
44
|
-
};
|
|
45
|
-
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, focusTrapFactory: ConfigurableFocusTrapFactory, document?: Document | undefined);
|
|
46
|
-
ngOnInit(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Attach a ComponentPortal as content to this dialog container.
|
|
49
|
-
*/
|
|
50
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
51
|
-
attachTemplatePortal<C>(_portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
52
|
-
setConfig(config: DialogConfig): void;
|
|
53
|
-
onAnimationStart(event: AnimationEvent): void;
|
|
54
|
-
onAnimationDone(event: AnimationEvent): void;
|
|
55
|
-
startExitAnimation(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Calculate origin used in the `zoomFadeInFrom()`
|
|
58
|
-
* for animation purpose
|
|
59
|
-
*/
|
|
60
|
-
private calculateZoomOrigin;
|
|
61
|
-
/**
|
|
62
|
-
* Save the focused element before dialog was open
|
|
63
|
-
*/
|
|
64
|
-
private savePreviouslyFocusedElement;
|
|
65
|
-
private trapFocus;
|
|
66
|
-
private restoreFocus;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogContainerComponent, [null, null, null, { optional: true; }]>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogContainerComponent, "nxt-dialog-container", never, {}, {}, never, never, false, never>;
|
|
69
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./dialog-container/dialog-container.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/cdk/a11y";
|
|
5
|
-
import * as i4 from "@angular/cdk/overlay";
|
|
6
|
-
import * as i5 from "@angular/cdk/portal";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare class DialogModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogContainerComponent], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.OverlayModule, typeof i5.PortalModule], never>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
12
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Overlay, OverlayContainer, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
-
import { Location } from '@angular/common';
|
|
4
|
-
import { InjectionToken, Injector, TemplateRef } from '@angular/core';
|
|
5
|
-
import { Subject } from 'rxjs';
|
|
6
|
-
import { DialogConfig } from '../class/dialog-config.class';
|
|
7
|
-
import { DialogRef } from '../class/dialog-ref.class';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare const NXT_DIALOG_DATA: InjectionToken<any>;
|
|
11
|
-
/**
|
|
12
|
-
* Injection token that determines the scroll handling while the dialog is open.
|
|
13
|
-
*
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare const NXT_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare function NXT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const NXT_DIALOG_SCROLL_STRATEGY_PROVIDER: {
|
|
21
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
22
|
-
deps: (typeof Overlay)[];
|
|
23
|
-
useFactory: typeof NXT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Injection token that can be used to specify default dialog options.
|
|
27
|
-
*
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
export declare const NXT_DIALOG_DEFAULT_OPTIONS: InjectionToken<DialogConfig>;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare class DialogService {
|
|
33
|
-
private readonly overlay;
|
|
34
|
-
private readonly injector;
|
|
35
|
-
private readonly location;
|
|
36
|
-
private readonly defaultOptions;
|
|
37
|
-
private readonly parentDialog;
|
|
38
|
-
private readonly overlayContainer;
|
|
39
|
-
private readonly ariaHiddenElements;
|
|
40
|
-
private readonly _openDialogsAtThisLevel;
|
|
41
|
-
private readonly _afterOpenAtThisLevel;
|
|
42
|
-
private readonly _afterAllClosedAtThisLevel;
|
|
43
|
-
/** Keeps track of the currently-open dialogs */
|
|
44
|
-
get openDialogs(): Array<DialogRef<any>>;
|
|
45
|
-
/** Stream that emits when a dialog has been isOpen */
|
|
46
|
-
get afterOpen(): Subject<DialogRef<any>>;
|
|
47
|
-
get _afterAllClosed(): Subject<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Stream that emits when all open dialog have finished closing.
|
|
50
|
-
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
51
|
-
*/
|
|
52
|
-
readonly afterAllClosed: import("rxjs").Observable<void | undefined>;
|
|
53
|
-
private scrollStrategy;
|
|
54
|
-
constructor(overlay: Overlay, injector: Injector, location: Location | undefined, scrollStrategy: () => ScrollStrategy, defaultOptions: DialogConfig | undefined, parentDialog: DialogService | undefined, overlayContainer: OverlayContainer);
|
|
55
|
-
open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: DialogConfig): DialogRef<any>;
|
|
56
|
-
/**
|
|
57
|
-
* Closes all of the currently-open dialogs.
|
|
58
|
-
*/
|
|
59
|
-
closeAll(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Finds an open dialog by its id.
|
|
62
|
-
*
|
|
63
|
-
* @param id ID to use when looking up the dialog.
|
|
64
|
-
*/
|
|
65
|
-
getDialogById(id: string): DialogRef<any> | undefined;
|
|
66
|
-
private attachDialogContent;
|
|
67
|
-
private createInjector;
|
|
68
|
-
private createOverlay;
|
|
69
|
-
private attachDialogContainer;
|
|
70
|
-
private getOverlayConfig;
|
|
71
|
-
private removeOpenDialog;
|
|
72
|
-
/**
|
|
73
|
-
* Hides all of the content that isn't an overlay from assistive technology.
|
|
74
|
-
*/
|
|
75
|
-
private hideNonDialogContentFromAssistiveTechnology;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
77
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
78
|
-
}
|
package/lib/utils/object.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extends an object with the *enumerable* and *own* properties of one or more source objects,
|
|
3
|
-
* similar to Object.assign.
|
|
4
|
-
*
|
|
5
|
-
* @param dest The object which will have properties copied to it.
|
|
6
|
-
* @param sources The source objects from which properties will be copied.
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare function extendObject(dest: any, ...sources: any[]): any;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Moment } from 'moment';
|
|
3
|
-
import { DateTimeAdapter } from 'nxt-pick-datetime';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/** Configurable options for {@see MomentDateAdapter} */
|
|
6
|
-
export interface MomentDateTimeAdapterOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Turns the use of utc dates on or off.
|
|
9
|
-
* Changing this will change how the DateTimePicker output value.
|
|
10
|
-
* {@default false}
|
|
11
|
-
*/
|
|
12
|
-
useUtc: boolean;
|
|
13
|
-
}
|
|
14
|
-
/** InjectionToken for moment date adapter to configure options */
|
|
15
|
-
export declare const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS: InjectionToken<MomentDateTimeAdapterOptions>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare function NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY(): MomentDateTimeAdapterOptions;
|
|
18
|
-
export declare class MomentDateTimeAdapter extends DateTimeAdapter<Moment> {
|
|
19
|
-
private readonly options?;
|
|
20
|
-
private _localeData;
|
|
21
|
-
constructor(dateTimeLocale?: string, options?: MomentDateTimeAdapterOptions | undefined);
|
|
22
|
-
setLocale(locale: string): void;
|
|
23
|
-
getYear(date: Moment): number;
|
|
24
|
-
getMonth(date: Moment): number;
|
|
25
|
-
getDay(date: Moment): number;
|
|
26
|
-
getDate(date: Moment): number;
|
|
27
|
-
getHours(date: Moment): number;
|
|
28
|
-
getMinutes(date: Moment): number;
|
|
29
|
-
getSeconds(date: Moment): number;
|
|
30
|
-
getTime(date: Moment): number;
|
|
31
|
-
getNumDaysInMonth(date: Moment): number;
|
|
32
|
-
differenceInCalendarDays(dateLeft: Moment, dateRight: Moment): number;
|
|
33
|
-
getYearName(date: Moment): string;
|
|
34
|
-
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
35
|
-
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
36
|
-
getDateNames(): string[];
|
|
37
|
-
toIso8601(date: Moment): string;
|
|
38
|
-
isEqual(dateLeft: Moment, dateRight: Moment): boolean;
|
|
39
|
-
isSameDay(dateLeft: Moment, dateRight: Moment): boolean;
|
|
40
|
-
isValid(date: Moment): boolean;
|
|
41
|
-
invalid(): Moment;
|
|
42
|
-
isDateInstance(obj: any): boolean;
|
|
43
|
-
addCalendarYears(date: Moment, amount: number): Moment;
|
|
44
|
-
addCalendarMonths(date: Moment, amount: number): Moment;
|
|
45
|
-
addCalendarDays(date: Moment, amount: number): Moment;
|
|
46
|
-
setHours(date: Moment, amount: number): Moment;
|
|
47
|
-
setMinutes(date: Moment, amount: number): Moment;
|
|
48
|
-
setSeconds(date: Moment, amount: number): Moment;
|
|
49
|
-
createDate(year: number, month: number, date: number): Moment;
|
|
50
|
-
clone(date: Moment): Moment;
|
|
51
|
-
now(): Moment;
|
|
52
|
-
format(date: Moment, displayFormat: any): string;
|
|
53
|
-
parse(value: any, parseFormat: any): Moment | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings
|
|
56
|
-
* (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty
|
|
57
|
-
* string into undefined. Returns an invalid date for all other values.
|
|
58
|
-
*/
|
|
59
|
-
deserialize(value: any): Moment | undefined;
|
|
60
|
-
/** Creates a Moment instance while respecting the current UTC settings */
|
|
61
|
-
private createMoment;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateTimeAdapter, [{ optional: true; }, { optional: true; }]>;
|
|
63
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MomentDateTimeAdapter>;
|
|
64
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare function provideMomentDateTimeAdapter(): Provider[];
|
|
4
|
-
export declare class MomentDateTimeModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateTimeModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateTimeModule, never, never, never>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MomentDateTimeModule>;
|
|
8
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Platform } from '@angular/cdk/platform';
|
|
2
|
-
import { DateTimeAdapter } from 'nxt-pick-datetime';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NativeDateTimeAdapter extends DateTimeAdapter<Date> {
|
|
5
|
-
/** Whether to clamp the date between 1 and 9999 to avoid IE and Edge errors */
|
|
6
|
-
private readonly _clampDate;
|
|
7
|
-
/**
|
|
8
|
-
* Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
|
|
9
|
-
* Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
|
|
10
|
-
* the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
|
|
11
|
-
* will produce `'8/13/1800'`.
|
|
12
|
-
*/
|
|
13
|
-
useUtcForDisplay: boolean;
|
|
14
|
-
constructor(platform: Platform, dateTimeLocale?: string);
|
|
15
|
-
getYear(date: Date): number;
|
|
16
|
-
getMonth(date: Date): number;
|
|
17
|
-
getDay(date: Date): number;
|
|
18
|
-
getDate(date: Date): number;
|
|
19
|
-
getHours(date: Date): number;
|
|
20
|
-
getMinutes(date: Date): number;
|
|
21
|
-
getSeconds(date: Date): number;
|
|
22
|
-
getTime(date: Date): number;
|
|
23
|
-
getNumDaysInMonth(date: Date): number;
|
|
24
|
-
differenceInCalendarDays(dateLeft: Date, dateRight: Date): number | undefined;
|
|
25
|
-
getYearName(date: Date): string;
|
|
26
|
-
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
27
|
-
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
28
|
-
getDateNames(): string[];
|
|
29
|
-
toIso8601(date: Date): string;
|
|
30
|
-
isEqual(dateLeft: Date, dateRight: Date): boolean;
|
|
31
|
-
isSameDay(dateLeft: Date, dateRight: Date): boolean;
|
|
32
|
-
isValid(date: Date): boolean;
|
|
33
|
-
invalid(): Date;
|
|
34
|
-
isDateInstance(obj: any): boolean;
|
|
35
|
-
addCalendarYears(date: Date, amount: number): Date;
|
|
36
|
-
addCalendarMonths(date: Date, amount: number): Date;
|
|
37
|
-
addCalendarDays(date: Date, amount: number): Date;
|
|
38
|
-
setHours(date: Date, amount: number): Date;
|
|
39
|
-
setMinutes(date: Date, amount: number): Date;
|
|
40
|
-
setSeconds(date: Date, amount: number): Date;
|
|
41
|
-
createDate(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number): Date;
|
|
42
|
-
clone(date: Date): Date;
|
|
43
|
-
now(): Date;
|
|
44
|
-
format(date: Date, displayFormat: any): string;
|
|
45
|
-
parse(value: any, _parseFormat: any): Date | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the given value if given a valid Date or undefined. Deserializes valid ISO 8601 strings
|
|
48
|
-
* (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into undefined. Returns an
|
|
49
|
-
* invalid date for all other values.
|
|
50
|
-
*/
|
|
51
|
-
deserialize(value: any): Date | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Creates a date but allows the month and date to overflow.
|
|
54
|
-
*/
|
|
55
|
-
private createDateWithOverflow;
|
|
56
|
-
/**
|
|
57
|
-
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
58
|
-
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
59
|
-
* date parsing.
|
|
60
|
-
*/
|
|
61
|
-
private stripDirectionalityCharacters;
|
|
62
|
-
/**
|
|
63
|
-
* When converting Date object to string, javascript built-in functions may return wrong
|
|
64
|
-
* results because it applies its internal DST rules. The DST rules around the world change
|
|
65
|
-
* very frequently, and the current valid rule is not always valid in previous years though.
|
|
66
|
-
* We work around this problem building a new Date object which has its internal UTC
|
|
67
|
-
* representation with the local date and time.
|
|
68
|
-
*/
|
|
69
|
-
private _format;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateTimeAdapter, [null, { optional: true; }]>;
|
|
71
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NativeDateTimeAdapter>;
|
|
72
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/cdk/platform";
|
|
4
|
-
export declare function provideNativeDateTimeAdapter(): Provider[];
|
|
5
|
-
export declare class NativeDateTimeModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateTimeModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateTimeModule, never, [typeof i1.PlatformModule], never>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NativeDateTimeModule>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NativeDateTimeModule, provideNativeDateTimeAdapter } from './native-adapter.module';
|
package/public-api.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { DateTimeAdapter } from './lib/class/date-time-adapter.class';
|
|
2
|
-
export { DateTimeFormats, NXT_DATE_TIME_FORMATS } from './lib/class/date-time-format.class';
|
|
3
|
-
export { DateFilter, PickerMode, PickerType, RenderItem, SelectMode, ViewType } from './lib/class/date-time.class';
|
|
4
|
-
export { MonthViewComponent } from './lib/date-time/calendar-month-view/calendar-month-view.component';
|
|
5
|
-
export { MultiYearViewComponent } from './lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component';
|
|
6
|
-
export { YearViewComponent } from './lib/date-time/calendar-year-view/calendar-year-view.component';
|
|
7
|
-
export { CalendarComponent } from './lib/date-time/calendar/calendar.component';
|
|
8
|
-
export { DateTimeInlineComponent } from './lib/date-time/date-time-inline/date-time-inline.component';
|
|
9
|
-
export { DateTimeInputDirective, DateTimeInputEvent } from './lib/date-time/date-time-picker-input.directive';
|
|
10
|
-
export { DateTimeIntl } from './lib/date-time/date-time-picker-intl.service';
|
|
11
|
-
export { DateTimeTriggerDirective } from './lib/date-time/date-time-picker-trigger.directive';
|
|
12
|
-
export { DateTimeComponent } from './lib/date-time/date-time-picker/date-time-picker.component';
|
|
13
|
-
export { DateTimeModule } from './lib/date-time/date-time.module';
|
|
14
|
-
export { TimerComponent } from './lib/date-time/timer/timer.component';
|