nxt-pick-datetime 14.0.0 → 15.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/README.md +130 -147
- package/assets/picker.scss +88 -93
- package/esm2020/lib/class/date-time-adapter.class.mjs +8 -8
- package/esm2020/lib/class/date-time-format.class.mjs +2 -2
- package/esm2020/lib/class/date-time.class.mjs +54 -71
- package/esm2020/lib/class/dialog-config.class.mjs +3 -13
- package/esm2020/lib/class/dialog-ref.class.mjs +8 -9
- package/esm2020/lib/date-time/calendar/calendar.component.mjs +85 -90
- package/esm2020/lib/date-time/calendar-body/calendar-body.component.mjs +32 -28
- package/esm2020/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +69 -78
- package/esm2020/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +57 -63
- package/esm2020/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +57 -68
- package/esm2020/lib/date-time/date-time-inline/date-time-inline.component.mjs +68 -78
- package/esm2020/lib/date-time/date-time-picker/date-time-picker.component.mjs +164 -182
- package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.animations.mjs +2 -2
- package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +106 -114
- package/esm2020/lib/date-time/date-time-picker-input.directive.mjs +185 -203
- package/esm2020/lib/date-time/date-time-picker-intl.service.mjs +5 -5
- package/esm2020/lib/date-time/date-time-picker-trigger.directive.mjs +20 -19
- package/esm2020/lib/date-time/date-time.module.mjs +79 -68
- package/esm2020/lib/date-time/number-fixed-len.pipe.mjs +9 -13
- package/esm2020/lib/date-time/timer/timer.component.mjs +62 -57
- package/esm2020/lib/date-time/timer-box/timer-box.component.mjs +22 -17
- package/esm2020/lib/dialog/dialog-container/dialog-container.component.mjs +44 -49
- package/esm2020/lib/dialog/dialog.module.mjs +26 -16
- package/esm2020/lib/dialog/dialog.service.mjs +52 -49
- package/esm2020/lib/utils/object.mjs +3 -3
- package/esm2020/moment-adapter/date-time-adapter.class.mjs +17 -16
- package/esm2020/moment-adapter/date-time-format.class.mjs +2 -2
- package/esm2020/moment-adapter/moment-adapter.module.mjs +18 -22
- package/esm2020/moment-adapter/nxt-pick-datetime-moment-adapter.mjs +1 -1
- package/esm2020/moment-adapter/public-api.mjs +2 -2
- package/esm2020/native-adapter/date-time-adapter.class.mjs +13 -13
- package/esm2020/native-adapter/date-time-format.class.mjs +2 -2
- package/esm2020/native-adapter/native-adapter.module.mjs +23 -21
- package/esm2020/native-adapter/nxt-pick-datetime-native-adapter.mjs +1 -1
- package/esm2020/native-adapter/public-api.mjs +2 -2
- package/esm2020/nxt-pick-datetime.mjs +1 -1
- package/esm2020/public-api.mjs +14 -14
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs +32 -35
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs +34 -32
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2015/nxt-pick-datetime.mjs +1229 -1247
- package/fesm2015/nxt-pick-datetime.mjs.map +1 -1
- package/fesm2020/nxt-pick-datetime-moment-adapter.mjs +32 -35
- package/fesm2020/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2020/nxt-pick-datetime-native-adapter.mjs +34 -32
- package/fesm2020/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2020/nxt-pick-datetime.mjs +1159 -1237
- package/fesm2020/nxt-pick-datetime.mjs.map +1 -1
- package/lib/class/date-time-adapter.class.d.ts +31 -31
- package/lib/class/date-time-format.class.d.ts +2 -2
- package/lib/class/date-time.class.d.ts +24 -23
- package/lib/class/dialog-config.class.d.ts +5 -5
- package/lib/class/dialog-ref.class.d.ts +16 -17
- package/lib/date-time/calendar/calendar.component.d.ts +41 -41
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +11 -11
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +40 -40
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +38 -38
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +36 -36
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +38 -40
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +51 -53
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +1 -1
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +38 -39
- package/lib/date-time/date-time-picker-input.directive.d.ts +59 -53
- package/lib/date-time/date-time-picker-intl.service.d.ts +3 -3
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +9 -9
- package/lib/date-time/date-time.module.d.ts +4 -4
- package/lib/date-time/number-fixed-len.pipe.d.ts +1 -1
- package/lib/date-time/timer/timer.component.d.ts +22 -22
- package/lib/date-time/timer-box/timer-box.component.d.ts +10 -10
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +28 -24
- package/lib/dialog/dialog.module.d.ts +4 -4
- package/lib/dialog/dialog.service.d.ts +28 -28
- package/moment-adapter/date-time-adapter.class.d.ts +9 -9
- package/moment-adapter/date-time-format.class.d.ts +2 -2
- package/moment-adapter/moment-adapter.module.d.ts +0 -5
- package/moment-adapter/public-api.d.ts +1 -1
- package/native-adapter/date-time-adapter.class.d.ts +6 -6
- package/native-adapter/date-time-format.class.d.ts +2 -2
- package/native-adapter/native-adapter.module.d.ts +0 -5
- package/native-adapter/public-api.d.ts +1 -1
- package/package.json +13 -11
- package/public-api.d.ts +13 -13
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class TimerBoxComponent implements OnInit, OnDestroy {
|
|
4
4
|
showDivider: boolean;
|
|
5
|
-
upBtnAriaLabel
|
|
5
|
+
upBtnAriaLabel?: string;
|
|
6
6
|
upBtnDisabled: boolean;
|
|
7
|
-
downBtnAriaLabel
|
|
7
|
+
downBtnAriaLabel?: string;
|
|
8
8
|
downBtnDisabled: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Value would be displayed in the box
|
|
11
|
-
* If it is
|
|
11
|
+
* If it is undefiend, the box would display [value]
|
|
12
12
|
* */
|
|
13
|
-
boxValue
|
|
13
|
+
boxValue?: number;
|
|
14
14
|
value: number;
|
|
15
15
|
min: number;
|
|
16
16
|
max: number;
|
|
17
17
|
step: number;
|
|
18
|
-
inputLabel
|
|
18
|
+
inputLabel?: string;
|
|
19
19
|
valueChange: EventEmitter<number>;
|
|
20
20
|
inputChange: EventEmitter<number>;
|
|
21
21
|
private inputStream;
|
|
22
|
-
private inputStreamSub
|
|
22
|
+
private inputStreamSub?;
|
|
23
23
|
get displayValue(): number;
|
|
24
|
-
get
|
|
24
|
+
get timerBoxClass(): boolean;
|
|
25
25
|
constructor();
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
ngOnDestroy(): void;
|
|
@@ -30,6 +30,6 @@ export declare class OwlTimerBoxComponent implements OnInit, OnDestroy {
|
|
|
30
30
|
handleInputChange(val: string): void;
|
|
31
31
|
private updateValue;
|
|
32
32
|
private updateValueViaInput;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimerBoxComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimerBoxComponent, "nxt-date-time-timer-box", never, { "showDivider": "showDivider"; "upBtnAriaLabel": "upBtnAriaLabel"; "upBtnDisabled": "upBtnDisabled"; "downBtnAriaLabel": "downBtnAriaLabel"; "downBtnDisabled": "downBtnDisabled"; "boxValue": "boxValue"; "value": "value"; "min": "min"; "max": "max"; "step": "step"; "inputLabel": "inputLabel"; }, { "valueChange": "valueChange"; "inputChange": "inputChange"; }, never, never, false, never>;
|
|
35
35
|
}
|
|
@@ -2,41 +2,45 @@ import { AnimationEvent } from '@angular/animations';
|
|
|
2
2
|
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
3
3
|
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
4
4
|
import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, OnInit } from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { DialogConfig } from '../../class/dialog-config.class';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
|
|
7
|
+
export type DialogContainerState = 'void' | 'enter' | 'exit';
|
|
8
|
+
export declare class DialogContainerComponent extends BasePortalOutlet implements OnInit {
|
|
9
|
+
private readonly changeDetector;
|
|
10
|
+
private readonly elementRef;
|
|
11
|
+
private readonly focusTrapFactory;
|
|
12
|
+
private readonly document?;
|
|
13
|
+
portalOutlet?: CdkPortalOutlet;
|
|
13
14
|
/** The class that traps and manages focus within the dialog. */
|
|
14
|
-
private focusTrap
|
|
15
|
+
private focusTrap?;
|
|
15
16
|
/** ID of the element that should be considered as the dialog's label. */
|
|
16
|
-
ariaLabelledBy
|
|
17
|
+
ariaLabelledBy?: string;
|
|
17
18
|
/** Emits when an animation state changes. */
|
|
18
|
-
animationStateChanged: EventEmitter<AnimationEvent>;
|
|
19
|
+
readonly animationStateChanged: EventEmitter<AnimationEvent>;
|
|
19
20
|
isAnimating: boolean;
|
|
20
|
-
private _config
|
|
21
|
-
get config():
|
|
21
|
+
private _config?;
|
|
22
|
+
get config(): DialogConfig | undefined;
|
|
22
23
|
private state;
|
|
23
24
|
private params;
|
|
24
|
-
private elementFocusedBeforeDialogWasOpened
|
|
25
|
-
get
|
|
26
|
-
get
|
|
27
|
-
get
|
|
28
|
-
get
|
|
29
|
-
get
|
|
30
|
-
get
|
|
31
|
-
get
|
|
32
|
-
|
|
25
|
+
private elementFocusedBeforeDialogWasOpened?;
|
|
26
|
+
get dialogContainerClass(): boolean;
|
|
27
|
+
get dialogContainerTabIndex(): number;
|
|
28
|
+
get dialogContainerId(): string | undefined;
|
|
29
|
+
get dialogContainerRole(): "dialog" | "alertdialog" | undefined;
|
|
30
|
+
get dialogContainerAriaLabelledby(): string | undefined;
|
|
31
|
+
get dialogContainerAriaDescribedby(): string | undefined;
|
|
32
|
+
get dialogContainerAnimation(): {
|
|
33
|
+
value: DialogContainerState;
|
|
34
|
+
params: any;
|
|
35
|
+
};
|
|
36
|
+
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, focusTrapFactory: ConfigurableFocusTrapFactory, document?: Document | undefined);
|
|
33
37
|
ngOnInit(): void;
|
|
34
38
|
/**
|
|
35
39
|
* Attach a ComponentPortal as content to this dialog container.
|
|
36
40
|
*/
|
|
37
41
|
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
38
42
|
attachTemplatePortal<C>(_portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
39
|
-
setConfig(config:
|
|
43
|
+
setConfig(config: DialogConfig): void;
|
|
40
44
|
onAnimationStart(event: AnimationEvent): void;
|
|
41
45
|
onAnimationDone(event: AnimationEvent): void;
|
|
42
46
|
startExitAnimation(): void;
|
|
@@ -51,6 +55,6 @@ export declare class OwlDialogContainerComponent extends BasePortalOutlet implem
|
|
|
51
55
|
private savePreviouslyFocusedElement;
|
|
52
56
|
private trapFocus;
|
|
53
57
|
private restoreFocus;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogContainerComponent, [null, null, null, { optional: true; }]>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogContainerComponent, "nxt-dialog-container", never, {}, {}, never, never, false, never>;
|
|
56
60
|
}
|
|
@@ -4,8 +4,8 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/cdk/a11y";
|
|
5
5
|
import * as i4 from "@angular/cdk/overlay";
|
|
6
6
|
import * as i5 from "@angular/cdk/portal";
|
|
7
|
-
export declare class
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
7
|
+
export declare class DialogModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.DialogContainerComponent], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.OverlayModule, typeof i5.PortalModule], never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
11
11
|
}
|
|
@@ -2,50 +2,50 @@ import { Overlay, OverlayContainer, ScrollStrategy } from '@angular/cdk/overlay'
|
|
|
2
2
|
import { ComponentType } from '@angular/cdk/portal';
|
|
3
3
|
import { Location } from '@angular/common';
|
|
4
4
|
import { InjectionToken, Injector, TemplateRef } from '@angular/core';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { DialogConfig } from '../class/dialog-config.class';
|
|
7
|
+
import { DialogRef } from '../class/dialog-ref.class';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const NXT_DIALOG_DATA: InjectionToken<any>;
|
|
10
10
|
/**
|
|
11
11
|
* Injection token that determines the scroll handling while the dialog is open.
|
|
12
12
|
* */
|
|
13
|
-
export declare const
|
|
14
|
-
export declare function
|
|
13
|
+
export declare const NXT_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
14
|
+
export declare function NXT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
15
15
|
/** @docs-private */
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const NXT_DIALOG_SCROLL_STRATEGY_PROVIDER: {
|
|
17
17
|
provide: InjectionToken<() => ScrollStrategy>;
|
|
18
18
|
deps: (typeof Overlay)[];
|
|
19
|
-
useFactory: typeof
|
|
19
|
+
useFactory: typeof NXT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
|
|
20
20
|
};
|
|
21
21
|
/** I
|
|
22
22
|
* njection token that can be used to specify default dialog options.
|
|
23
23
|
* */
|
|
24
|
-
export declare const
|
|
25
|
-
export declare class
|
|
26
|
-
private overlay;
|
|
27
|
-
private injector;
|
|
28
|
-
private location;
|
|
29
|
-
private defaultOptions;
|
|
30
|
-
private parentDialog;
|
|
31
|
-
private overlayContainer;
|
|
32
|
-
private ariaHiddenElements;
|
|
33
|
-
private _openDialogsAtThisLevel;
|
|
34
|
-
private _afterOpenAtThisLevel;
|
|
35
|
-
private _afterAllClosedAtThisLevel;
|
|
24
|
+
export declare const NXT_DIALOG_DEFAULT_OPTIONS: InjectionToken<DialogConfig>;
|
|
25
|
+
export declare class DialogService {
|
|
26
|
+
private readonly overlay;
|
|
27
|
+
private readonly injector;
|
|
28
|
+
private readonly location;
|
|
29
|
+
private readonly defaultOptions;
|
|
30
|
+
private readonly parentDialog;
|
|
31
|
+
private readonly overlayContainer;
|
|
32
|
+
private readonly ariaHiddenElements;
|
|
33
|
+
private readonly _openDialogsAtThisLevel;
|
|
34
|
+
private readonly _afterOpenAtThisLevel;
|
|
35
|
+
private readonly _afterAllClosedAtThisLevel;
|
|
36
36
|
/** Keeps track of the currently-open dialogs. */
|
|
37
|
-
get openDialogs():
|
|
37
|
+
get openDialogs(): Array<DialogRef<any>>;
|
|
38
38
|
/** Stream that emits when a dialog has been opened. */
|
|
39
|
-
get afterOpen(): Subject<
|
|
39
|
+
get afterOpen(): Subject<DialogRef<any>>;
|
|
40
40
|
get _afterAllClosed(): Subject<void>;
|
|
41
41
|
/**
|
|
42
42
|
* Stream that emits when all open dialog have finished closing.
|
|
43
43
|
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
44
44
|
*/
|
|
45
|
-
afterAllClosed: Observable<
|
|
45
|
+
readonly afterAllClosed: import("rxjs").Observable<void | undefined>;
|
|
46
46
|
private scrollStrategy;
|
|
47
|
-
constructor(overlay: Overlay, injector: Injector, location: Location, scrollStrategy:
|
|
48
|
-
open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?:
|
|
47
|
+
constructor(overlay: Overlay, injector: Injector, location: Location | undefined, scrollStrategy: () => ScrollStrategy, defaultOptions: DialogConfig | undefined, parentDialog: DialogService | undefined, overlayContainer: OverlayContainer);
|
|
48
|
+
open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: DialogConfig): DialogRef<any>;
|
|
49
49
|
/**
|
|
50
50
|
* Closes all of the currently-open dialogs.
|
|
51
51
|
*/
|
|
@@ -55,7 +55,7 @@ export declare class OwlDialogService {
|
|
|
55
55
|
*
|
|
56
56
|
* @param id ID to use when looking up the dialog.
|
|
57
57
|
*/
|
|
58
|
-
getDialogById(id: string):
|
|
58
|
+
getDialogById(id: string): DialogRef<any> | undefined;
|
|
59
59
|
private attachDialogContent;
|
|
60
60
|
private createInjector;
|
|
61
61
|
private createOverlay;
|
|
@@ -66,6 +66,6 @@ export declare class OwlDialogService {
|
|
|
66
66
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
67
67
|
*/
|
|
68
68
|
private hideNonDialogContentFromAssistiveTechnology;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
70
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
70
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
71
71
|
}
|
|
@@ -3,7 +3,7 @@ import { Moment } from 'moment';
|
|
|
3
3
|
import { DateTimeAdapter } from 'nxt-pick-datetime';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/** Configurable options for {@see MomentDateAdapter}. */
|
|
6
|
-
export interface
|
|
6
|
+
export interface MomentDateTimeAdapterOptions {
|
|
7
7
|
/**
|
|
8
8
|
* Turns the use of utc dates on or off.
|
|
9
9
|
* Changing this will change how the DateTimePicker output value.
|
|
@@ -12,13 +12,13 @@ export interface OwlMomentDateTimeAdapterOptions {
|
|
|
12
12
|
useUtc: boolean;
|
|
13
13
|
}
|
|
14
14
|
/** InjectionToken for moment date adapter to configure options. */
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS: InjectionToken<MomentDateTimeAdapterOptions>;
|
|
16
16
|
/** @docs-private */
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS_FACTORY(): MomentDateTimeAdapterOptions;
|
|
18
18
|
export declare class MomentDateTimeAdapter extends DateTimeAdapter<Moment> {
|
|
19
|
-
private options?;
|
|
19
|
+
private readonly options?;
|
|
20
20
|
private _localeData;
|
|
21
|
-
constructor(
|
|
21
|
+
constructor(dateTimeLocale?: string, options?: MomentDateTimeAdapterOptions | undefined);
|
|
22
22
|
setLocale(locale: string): void;
|
|
23
23
|
getYear(date: Moment): number;
|
|
24
24
|
getMonth(date: Moment): number;
|
|
@@ -50,13 +50,13 @@ export declare class MomentDateTimeAdapter extends DateTimeAdapter<Moment> {
|
|
|
50
50
|
clone(date: Moment): Moment;
|
|
51
51
|
now(): Moment;
|
|
52
52
|
format(date: Moment, displayFormat: any): string;
|
|
53
|
-
parse(value: any, parseFormat: any): Moment |
|
|
53
|
+
parse(value: any, parseFormat: any): Moment | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* Returns the given value if given a valid Moment or
|
|
55
|
+
* Returns the given value if given a valid Moment or undefined. Deserializes valid ISO 8601 strings
|
|
56
56
|
* (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty
|
|
57
|
-
* string into
|
|
57
|
+
* string into undefined. Returns an invalid date for all other values.
|
|
58
58
|
*/
|
|
59
|
-
deserialize(value: any): Moment |
|
|
59
|
+
deserialize(value: any): Moment | undefined;
|
|
60
60
|
/** Creates a Moment instance while respecting the current UTC settings. */
|
|
61
61
|
private createMoment;
|
|
62
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateTimeAdapter, [{ optional: true; }, { optional: true; }]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { DateTimeFormats } from 'nxt-pick-datetime';
|
|
2
|
+
export declare const NXT_MOMENT_DATE_TIME_FORMATS: DateTimeFormats;
|
|
@@ -4,8 +4,3 @@ export declare class MomentDateTimeModule {
|
|
|
4
4
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateTimeModule, never, never, never>;
|
|
5
5
|
static ɵinj: i0.ɵɵInjectorDeclaration<MomentDateTimeModule>;
|
|
6
6
|
}
|
|
7
|
-
export declare class OwlMomentDateTimeModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlMomentDateTimeModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OwlMomentDateTimeModule, never, [typeof MomentDateTimeModule], never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OwlMomentDateTimeModule>;
|
|
11
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MomentDateTimeModule } from './moment-adapter.module';
|
|
@@ -11,7 +11,7 @@ export declare class NativeDateTimeAdapter extends DateTimeAdapter<Date> {
|
|
|
11
11
|
* will produce `'8/13/1800'`.
|
|
12
12
|
*/
|
|
13
13
|
useUtcForDisplay: boolean;
|
|
14
|
-
constructor(platform: Platform,
|
|
14
|
+
constructor(platform: Platform, dateTimeLocale?: string);
|
|
15
15
|
getYear(date: Date): number;
|
|
16
16
|
getMonth(date: Date): number;
|
|
17
17
|
getDay(date: Date): number;
|
|
@@ -21,7 +21,7 @@ export declare class NativeDateTimeAdapter extends DateTimeAdapter<Date> {
|
|
|
21
21
|
getSeconds(date: Date): number;
|
|
22
22
|
getTime(date: Date): number;
|
|
23
23
|
getNumDaysInMonth(date: Date): number;
|
|
24
|
-
differenceInCalendarDays(dateLeft: Date, dateRight: Date): number;
|
|
24
|
+
differenceInCalendarDays(dateLeft: Date, dateRight: Date): number | undefined;
|
|
25
25
|
getYearName(date: Date): string;
|
|
26
26
|
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
27
27
|
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
@@ -42,13 +42,13 @@ export declare class NativeDateTimeAdapter extends DateTimeAdapter<Date> {
|
|
|
42
42
|
clone(date: Date): Date;
|
|
43
43
|
now(): Date;
|
|
44
44
|
format(date: Date, displayFormat: any): string;
|
|
45
|
-
parse(value: any, _parseFormat: any): Date |
|
|
45
|
+
parse(value: any, _parseFormat: any): Date | undefined;
|
|
46
46
|
/**
|
|
47
|
-
* Returns the given value if given a valid Date or
|
|
48
|
-
* (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into
|
|
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
49
|
* invalid date for all other values.
|
|
50
50
|
*/
|
|
51
|
-
deserialize(value: any): Date |
|
|
51
|
+
deserialize(value: any): Date | undefined;
|
|
52
52
|
/**
|
|
53
53
|
* Creates a date but allows the month and date to overflow.
|
|
54
54
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { DateTimeFormats } from 'nxt-pick-datetime';
|
|
2
|
+
export declare const NXT_NATIVE_DATE_TIME_FORMATS: DateTimeFormats;
|
|
@@ -5,8 +5,3 @@ export declare class NativeDateTimeModule {
|
|
|
5
5
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateTimeModule, never, [typeof i1.PlatformModule], never>;
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<NativeDateTimeModule>;
|
|
7
7
|
}
|
|
8
|
-
export declare class OwlNativeDateTimeModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OwlNativeDateTimeModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<OwlNativeDateTimeModule, never, [typeof NativeDateTimeModule], never>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<OwlNativeDateTimeModule>;
|
|
12
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { NativeDateTimeModule } from './native-adapter.module';
|
package/package.json
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nxt-pick-datetime",
|
|
3
|
-
"version": "14.0.0",
|
|
4
3
|
"description": "Date time picker for Angular",
|
|
5
|
-
"bugs": "https://github.com/Liquid-JS/nxt-
|
|
4
|
+
"bugs": "https://github.com/Liquid-JS/nxt-components/issues",
|
|
5
|
+
"version": "15.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"repository":
|
|
8
|
-
|
|
9
|
-
"url": "https://github.com/Liquid-JS/nxt-pick-datetime.git"
|
|
10
|
-
},
|
|
7
|
+
"repository": "https://github.com/Liquid-JS/nxt-components.git",
|
|
8
|
+
"homepage": "https://github.com/Liquid-JS/nxt-components/tree/master/packages/pick-datetime",
|
|
11
9
|
"peerDependencies": {
|
|
12
|
-
"@angular/animations": "
|
|
13
|
-
"@angular/
|
|
14
|
-
"@angular/
|
|
15
|
-
"@angular/core": "
|
|
10
|
+
"@angular/animations": "^15.2.1",
|
|
11
|
+
"@angular/cdk": "^15.2.1",
|
|
12
|
+
"@angular/common": "^15.2.1",
|
|
13
|
+
"@angular/core": "^15.2.1",
|
|
14
|
+
"@angular/forms": "^15.2.1",
|
|
15
|
+
"@angular/localize": "^15.2.1",
|
|
16
|
+
"moment": "^2.29.4",
|
|
17
|
+
"rxjs": "^7.8.0"
|
|
16
18
|
},
|
|
17
19
|
"dependencies": {
|
|
18
|
-
"tslib": "^2.
|
|
20
|
+
"tslib": "^2.5.0"
|
|
19
21
|
},
|
|
20
22
|
"exports": {
|
|
21
23
|
"./assets/picker.scss": {
|
package/public-api.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { DateTimeAdapter,
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
1
|
+
export { DateTimeAdapter, NXT_DATE_TIME_LOCALE, NXT_DATE_TIME_LOCALE_PROVIDER } from './lib/class/date-time-adapter.class';
|
|
2
|
+
export { DateTimeFormats, NXT_DATE_TIME_FORMATS } from './lib/class/date-time-format.class';
|
|
3
|
+
export { MonthViewComponent } from './lib/date-time/calendar-month-view/calendar-month-view.component';
|
|
4
|
+
export { MultiYearViewComponent } from './lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component';
|
|
5
|
+
export { YearViewComponent } from './lib/date-time/calendar-year-view/calendar-year-view.component';
|
|
6
|
+
export { CalendarComponent } from './lib/date-time/calendar/calendar.component';
|
|
7
|
+
export { DateTimeInlineComponent } from './lib/date-time/date-time-inline/date-time-inline.component';
|
|
8
|
+
export { DateTimeInputDirective } from './lib/date-time/date-time-picker-input.directive';
|
|
9
|
+
export { DateTimeIntl } from './lib/date-time/date-time-picker-intl.service';
|
|
10
|
+
export { DateTimeTriggerDirective } from './lib/date-time/date-time-picker-trigger.directive';
|
|
11
|
+
export { DateTimeComponent } from './lib/date-time/date-time-picker/date-time-picker.component';
|
|
12
|
+
export { DateTimeModule } from './lib/date-time/date-time.module';
|
|
13
|
+
export { TimerComponent } from './lib/date-time/timer/timer.component';
|