nxt-pick-datetime 16.0.0-alpha.6 → 16.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/{esm2020 → esm2022}/lib/class/date-time-adapter.class.mjs +96 -96
- package/{esm2020 → esm2022}/lib/class/date-time-format.class.mjs +3 -3
- package/esm2022/lib/class/date-time.class.mjs +96 -0
- package/{esm2020 → esm2022}/lib/class/dialog-config.class.mjs +46 -46
- package/{esm2020 → esm2022}/lib/class/dialog-ref.class.mjs +118 -118
- package/esm2022/lib/date-time/calendar/calendar.component.mjs +347 -0
- package/esm2022/lib/date-time/calendar-body/calendar-body.component.mjs +152 -0
- package/esm2022/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +430 -0
- package/esm2022/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +359 -0
- package/esm2022/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +363 -0
- package/esm2022/lib/date-time/date-time-inline/date-time-inline.component.mjs +276 -0
- package/esm2022/lib/date-time/date-time-picker/date-time-picker.component.mjs +542 -0
- package/{esm2020 → esm2022}/lib/date-time/date-time-picker-container/date-time-picker-container.animations.mjs +18 -18
- package/esm2022/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +390 -0
- package/esm2022/lib/date-time/date-time-picker-input.directive.mjs +619 -0
- package/esm2022/lib/date-time/date-time-picker-intl.service.mjs +62 -0
- package/esm2022/lib/date-time/date-time-picker-trigger.directive.mjs +71 -0
- package/esm2022/lib/date-time/date-time.module.mjs +97 -0
- package/esm2022/lib/date-time/number-fixed-len.pipe.mjs +23 -0
- package/esm2022/lib/date-time/timer/timer.component.mjs +300 -0
- package/esm2022/lib/date-time/timer-box/timer-box.component.mjs +96 -0
- package/esm2022/lib/dialog/dialog-container/dialog-container.component.mjs +249 -0
- package/esm2022/lib/dialog/dialog.module.mjs +43 -0
- package/esm2022/lib/dialog/dialog.service.mjs +252 -0
- package/esm2022/lib/utils/object.mjs +24 -0
- package/esm2022/moment-adapter/date-time-adapter.class.mjs +221 -0
- package/{esm2020 → esm2022}/moment-adapter/date-time-format.class.mjs +12 -12
- package/esm2022/moment-adapter/moment-adapter.module.mjs +38 -0
- package/{esm2020 → esm2022}/moment-adapter/nxt-pick-datetime-moment-adapter.mjs +4 -4
- package/{esm2020 → esm2022}/moment-adapter/public-api.mjs +2 -2
- package/esm2022/native-adapter/date-time-adapter.class.mjs +367 -0
- package/{esm2020 → esm2022}/native-adapter/date-time-format.class.mjs +12 -12
- package/esm2022/native-adapter/native-adapter.module.mjs +38 -0
- package/{esm2020 → esm2022}/native-adapter/nxt-pick-datetime-native-adapter.mjs +4 -4
- package/{esm2020 → esm2022}/native-adapter/public-api.mjs +1 -1
- package/{esm2020 → esm2022}/nxt-pick-datetime.mjs +4 -4
- package/{esm2020 → esm2022}/public-api.mjs +13 -13
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-moment-adapter.mjs +257 -257
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-native-adapter.mjs +402 -402
- package/{fesm2020 → fesm2022}/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/nxt-pick-datetime.mjs +4858 -4860
- package/{fesm2020 → fesm2022}/nxt-pick-datetime.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/class/date-time-adapter.class.d.ts +176 -176
- package/lib/class/date-time-format.class.d.ts +12 -12
- package/lib/class/date-time.class.d.ts +76 -76
- package/lib/class/dialog-config.class.d.ts +90 -90
- package/lib/class/dialog-ref.class.d.ts +50 -50
- package/lib/date-time/calendar/calendar.component.d.ts +147 -147
- package/lib/date-time/calendar-body/calendar-body.component.d.ts +79 -79
- package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +139 -139
- package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +115 -115
- package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +123 -123
- package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +106 -106
- package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +172 -172
- package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +6 -6
- package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +129 -129
- package/lib/date-time/date-time-picker-input.directive.d.ts +167 -167
- package/lib/date-time/date-time-picker-intl.service.d.ts +51 -51
- package/lib/date-time/date-time-picker-trigger.directive.d.ts +22 -22
- package/lib/date-time/date-time.module.d.ts +23 -23
- package/lib/date-time/number-fixed-len.pipe.d.ts +8 -8
- package/lib/date-time/timer/timer.component.d.ts +131 -131
- package/lib/date-time/timer-box/timer-box.component.d.ts +37 -37
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +69 -69
- package/lib/dialog/dialog.module.d.ts +12 -12
- package/lib/dialog/dialog.service.d.ts +78 -78
- package/lib/utils/object.d.ts +9 -10
- package/moment-adapter/date-time-adapter.class.d.ts +64 -64
- package/moment-adapter/date-time-format.class.d.ts +5 -5
- package/moment-adapter/index.d.ts +5 -5
- package/moment-adapter/moment-adapter.module.d.ts +6 -6
- package/moment-adapter/public-api.d.ts +2 -2
- package/native-adapter/date-time-adapter.class.d.ts +72 -72
- package/native-adapter/date-time-format.class.d.ts +5 -5
- package/native-adapter/index.d.ts +5 -5
- package/native-adapter/native-adapter.module.d.ts +7 -7
- package/native-adapter/public-api.d.ts +1 -1
- package/package.json +18 -28
- package/public-api.d.ts +14 -14
- package/esm2020/lib/class/date-time.class.mjs +0 -95
- package/esm2020/lib/date-time/calendar/calendar.component.mjs +0 -346
- package/esm2020/lib/date-time/calendar-body/calendar-body.component.mjs +0 -151
- package/esm2020/lib/date-time/calendar-month-view/calendar-month-view.component.mjs +0 -429
- package/esm2020/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.mjs +0 -358
- package/esm2020/lib/date-time/calendar-year-view/calendar-year-view.component.mjs +0 -362
- package/esm2020/lib/date-time/date-time-inline/date-time-inline.component.mjs +0 -275
- package/esm2020/lib/date-time/date-time-picker/date-time-picker.component.mjs +0 -541
- package/esm2020/lib/date-time/date-time-picker-container/date-time-picker-container.component.mjs +0 -389
- package/esm2020/lib/date-time/date-time-picker-input.directive.mjs +0 -618
- package/esm2020/lib/date-time/date-time-picker-intl.service.mjs +0 -61
- package/esm2020/lib/date-time/date-time-picker-trigger.directive.mjs +0 -70
- package/esm2020/lib/date-time/date-time.module.mjs +0 -96
- package/esm2020/lib/date-time/number-fixed-len.pipe.mjs +0 -22
- package/esm2020/lib/date-time/timer/timer.component.mjs +0 -299
- package/esm2020/lib/date-time/timer-box/timer-box.component.mjs +0 -95
- package/esm2020/lib/dialog/dialog-container/dialog-container.component.mjs +0 -248
- package/esm2020/lib/dialog/dialog.module.mjs +0 -42
- package/esm2020/lib/dialog/dialog.service.mjs +0 -252
- package/esm2020/lib/utils/object.mjs +0 -25
- package/esm2020/moment-adapter/date-time-adapter.class.mjs +0 -220
- package/esm2020/moment-adapter/moment-adapter.module.mjs +0 -37
- package/esm2020/native-adapter/date-time-adapter.class.mjs +0 -366
- package/esm2020/native-adapter/native-adapter.module.mjs +0 -37
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs +0 -274
- package/fesm2015/nxt-pick-datetime-moment-adapter.mjs.map +0 -1
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs +0 -420
- package/fesm2015/nxt-pick-datetime-native-adapter.mjs.map +0 -1
- package/fesm2015/nxt-pick-datetime.mjs +0 -5014
- package/fesm2015/nxt-pick-datetime.mjs.map +0 -1
|
@@ -1,69 +1,69 @@
|
|
|
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
|
+
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 +1,12 @@
|
|
|
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
|
+
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 +1,78 @@
|
|
|
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
|
-
}
|
|
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
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare function extendObject(dest: any, ...sources: any[]): any;
|
|
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 +1,64 @@
|
|
|
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
|
+
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,5 +1,5 @@
|
|
|
1
|
-
import { DateTimeFormats } from 'nxt-pick-datetime';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare const NXT_MOMENT_DATE_TIME_FORMATS: DateTimeFormats;
|
|
1
|
+
import { DateTimeFormats } from 'nxt-pick-datetime';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const NXT_MOMENT_DATE_TIME_FORMATS: DateTimeFormats;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="nxt-pick-datetime/moment-adapter" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="nxt-pick-datetime/moment-adapter" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MomentDateTimeModule {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateTimeModule, never>;
|
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateTimeModule, never, never, never>;
|
|
5
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MomentDateTimeModule>;
|
|
6
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MomentDateTimeModule {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateTimeModule, never>;
|
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateTimeModule, never, never, never>;
|
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MomentDateTimeModule>;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { MomentDateTimeAdapterOptions, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS } from './date-time-adapter.class';
|
|
2
|
-
export { MomentDateTimeModule } from './moment-adapter.module';
|
|
1
|
+
export { MomentDateTimeAdapterOptions, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS } from './date-time-adapter.class';
|
|
2
|
+
export { MomentDateTimeModule } from './moment-adapter.module';
|