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,51 +1,51 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DateTimeIntl {
|
|
4
|
-
/**
|
|
5
|
-
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
6
|
-
* components if the labels have changed after initialization.
|
|
7
|
-
*/
|
|
8
|
-
readonly changes: Subject<void>;
|
|
9
|
-
/** A label for the up second button (used by screen readers). */
|
|
10
|
-
upSecondLabel: string;
|
|
11
|
-
/** A label for the down second button (used by screen readers). */
|
|
12
|
-
downSecondLabel: string;
|
|
13
|
-
/** A label for the up minute button (used by screen readers). */
|
|
14
|
-
upMinuteLabel: string;
|
|
15
|
-
/** A label for the down minute button (used by screen readers). */
|
|
16
|
-
downMinuteLabel: string;
|
|
17
|
-
/** A label for the up hour button (used by screen readers). */
|
|
18
|
-
upHourLabel: string;
|
|
19
|
-
/** A label for the down hour button (used by screen readers). */
|
|
20
|
-
downHourLabel: string;
|
|
21
|
-
/** A label for the previous month button (used by screen readers) */
|
|
22
|
-
prevMonthLabel: string;
|
|
23
|
-
/** A label for the next month button (used by screen readers) */
|
|
24
|
-
nextMonthLabel: string;
|
|
25
|
-
/** A label for the previous year button (used by screen readers) */
|
|
26
|
-
prevYearLabel: string;
|
|
27
|
-
/** A label for the next year button (used by screen readers) */
|
|
28
|
-
nextYearLabel: string;
|
|
29
|
-
/** A label for the previous multi-year button (used by screen readers) */
|
|
30
|
-
prevMultiYearLabel: string;
|
|
31
|
-
/** A label for the next multi-year button (used by screen readers) */
|
|
32
|
-
nextMultiYearLabel: string;
|
|
33
|
-
/** A label for the 'switch to month view' button (used by screen readers) */
|
|
34
|
-
switchToMonthViewLabel: string;
|
|
35
|
-
/** A label for the 'switch to year view' button (used by screen readers) */
|
|
36
|
-
switchToMultiYearViewLabel: string;
|
|
37
|
-
/** A label for the cancel button */
|
|
38
|
-
cancelBtnLabel: string;
|
|
39
|
-
/** A label for the set button */
|
|
40
|
-
setBtnLabel: string;
|
|
41
|
-
/** A label for the range 'from' in picker info */
|
|
42
|
-
rangeFromLabel: string;
|
|
43
|
-
/** A label for the range 'to' in picker info */
|
|
44
|
-
rangeToLabel: string;
|
|
45
|
-
/** A label for the hour12 button (AM) */
|
|
46
|
-
hour12AMLabel: string;
|
|
47
|
-
/** A label for the hour12 button (PM) */
|
|
48
|
-
hour12PMLabel: string;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeIntl, never>;
|
|
50
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DateTimeIntl>;
|
|
51
|
-
}
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DateTimeIntl {
|
|
4
|
+
/**
|
|
5
|
+
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
6
|
+
* components if the labels have changed after initialization.
|
|
7
|
+
*/
|
|
8
|
+
readonly changes: Subject<void>;
|
|
9
|
+
/** A label for the up second button (used by screen readers). */
|
|
10
|
+
upSecondLabel: string;
|
|
11
|
+
/** A label for the down second button (used by screen readers). */
|
|
12
|
+
downSecondLabel: string;
|
|
13
|
+
/** A label for the up minute button (used by screen readers). */
|
|
14
|
+
upMinuteLabel: string;
|
|
15
|
+
/** A label for the down minute button (used by screen readers). */
|
|
16
|
+
downMinuteLabel: string;
|
|
17
|
+
/** A label for the up hour button (used by screen readers). */
|
|
18
|
+
upHourLabel: string;
|
|
19
|
+
/** A label for the down hour button (used by screen readers). */
|
|
20
|
+
downHourLabel: string;
|
|
21
|
+
/** A label for the previous month button (used by screen readers) */
|
|
22
|
+
prevMonthLabel: string;
|
|
23
|
+
/** A label for the next month button (used by screen readers) */
|
|
24
|
+
nextMonthLabel: string;
|
|
25
|
+
/** A label for the previous year button (used by screen readers) */
|
|
26
|
+
prevYearLabel: string;
|
|
27
|
+
/** A label for the next year button (used by screen readers) */
|
|
28
|
+
nextYearLabel: string;
|
|
29
|
+
/** A label for the previous multi-year button (used by screen readers) */
|
|
30
|
+
prevMultiYearLabel: string;
|
|
31
|
+
/** A label for the next multi-year button (used by screen readers) */
|
|
32
|
+
nextMultiYearLabel: string;
|
|
33
|
+
/** A label for the 'switch to month view' button (used by screen readers) */
|
|
34
|
+
switchToMonthViewLabel: string;
|
|
35
|
+
/** A label for the 'switch to year view' button (used by screen readers) */
|
|
36
|
+
switchToMultiYearViewLabel: string;
|
|
37
|
+
/** A label for the cancel button */
|
|
38
|
+
cancelBtnLabel: string;
|
|
39
|
+
/** A label for the set button */
|
|
40
|
+
setBtnLabel: string;
|
|
41
|
+
/** A label for the range 'from' in picker info */
|
|
42
|
+
rangeFromLabel: string;
|
|
43
|
+
/** A label for the range 'to' in picker info */
|
|
44
|
+
rangeToLabel: string;
|
|
45
|
+
/** A label for the hour12 button (AM) */
|
|
46
|
+
hour12AMLabel: string;
|
|
47
|
+
/** A label for the hour12 button (PM) */
|
|
48
|
+
hour12PMLabel: string;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeIntl, never>;
|
|
50
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DateTimeIntl>;
|
|
51
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { DateTimeComponent } from './date-time-picker/date-time-picker.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DateTimeTriggerDirective<T> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
5
|
-
protected readonly changeDetector: ChangeDetectorRef;
|
|
6
|
-
dtPicker?: DateTimeComponent<T>;
|
|
7
|
-
private _disabled?;
|
|
8
|
-
get disabled(): boolean;
|
|
9
|
-
set disabled(value: boolean);
|
|
10
|
-
/** @internal */
|
|
11
|
-
get triggerDisabledClass(): boolean;
|
|
12
|
-
private stateChanges?;
|
|
13
|
-
constructor(changeDetector: ChangeDetectorRef);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
-
ngAfterContentInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
handleClickOnHost(event: Event): void;
|
|
19
|
-
private watchStateChanges;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeTriggerDirective<any>, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, { "dtPicker": "nxtDateTimeTrigger"; "disabled": "disabled"; }, {}, never, never, false, never>;
|
|
22
|
-
}
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DateTimeComponent } from './date-time-picker/date-time-picker.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DateTimeTriggerDirective<T> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
5
|
+
protected readonly changeDetector: ChangeDetectorRef;
|
|
6
|
+
dtPicker?: DateTimeComponent<T>;
|
|
7
|
+
private _disabled?;
|
|
8
|
+
get disabled(): boolean;
|
|
9
|
+
set disabled(value: boolean);
|
|
10
|
+
/** @internal */
|
|
11
|
+
get triggerDisabledClass(): boolean;
|
|
12
|
+
private stateChanges?;
|
|
13
|
+
constructor(changeDetector: ChangeDetectorRef);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
ngAfterContentInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
handleClickOnHost(event: Event): void;
|
|
19
|
+
private watchStateChanges;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeTriggerDirective<any>, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, { "dtPicker": { "alias": "nxtDateTimeTrigger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./date-time-picker-trigger.directive";
|
|
3
|
-
import * as i2 from "./date-time-picker-input.directive";
|
|
4
|
-
import * as i3 from "./date-time-picker/date-time-picker.component";
|
|
5
|
-
import * as i4 from "./date-time-picker-container/date-time-picker-container.component";
|
|
6
|
-
import * as i5 from "./calendar-multi-year-view/calendar-multi-year-view.component";
|
|
7
|
-
import * as i6 from "./calendar-year-view/calendar-year-view.component";
|
|
8
|
-
import * as i7 from "./calendar-month-view/calendar-month-view.component";
|
|
9
|
-
import * as i8 from "./timer/timer.component";
|
|
10
|
-
import * as i9 from "./timer-box/timer-box.component";
|
|
11
|
-
import * as i10 from "./calendar/calendar.component";
|
|
12
|
-
import * as i11 from "./calendar-body/calendar-body.component";
|
|
13
|
-
import * as i12 from "./number-fixed-len.pipe";
|
|
14
|
-
import * as i13 from "./date-time-inline/date-time-inline.component";
|
|
15
|
-
import * as i14 from "@angular/common";
|
|
16
|
-
import * as i15 from "@angular/cdk/overlay";
|
|
17
|
-
import * as i16 from "../dialog/dialog.module";
|
|
18
|
-
import * as i17 from "@angular/cdk/a11y";
|
|
19
|
-
export declare class DateTimeModule {
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimeModule, [typeof i1.DateTimeTriggerDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeComponent, typeof i4.DateTimeContainerComponent, typeof i5.MultiYearViewComponent, typeof i6.YearViewComponent, typeof i7.MonthViewComponent, typeof i8.TimerComponent, typeof i9.TimerBoxComponent, typeof i10.CalendarComponent, typeof i11.CalendarBodyComponent, typeof i12.NumberFixedLenPipe, typeof i13.DateTimeInlineComponent], [typeof i14.CommonModule, typeof i15.OverlayModule, typeof i16.DialogModule, typeof i17.A11yModule], [typeof i10.CalendarComponent, typeof i8.TimerComponent, typeof i1.DateTimeTriggerDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeComponent, typeof i13.DateTimeInlineComponent, typeof i5.MultiYearViewComponent, typeof i6.YearViewComponent, typeof i7.MonthViewComponent]>;
|
|
22
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DateTimeModule>;
|
|
23
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./date-time-picker-trigger.directive";
|
|
3
|
+
import * as i2 from "./date-time-picker-input.directive";
|
|
4
|
+
import * as i3 from "./date-time-picker/date-time-picker.component";
|
|
5
|
+
import * as i4 from "./date-time-picker-container/date-time-picker-container.component";
|
|
6
|
+
import * as i5 from "./calendar-multi-year-view/calendar-multi-year-view.component";
|
|
7
|
+
import * as i6 from "./calendar-year-view/calendar-year-view.component";
|
|
8
|
+
import * as i7 from "./calendar-month-view/calendar-month-view.component";
|
|
9
|
+
import * as i8 from "./timer/timer.component";
|
|
10
|
+
import * as i9 from "./timer-box/timer-box.component";
|
|
11
|
+
import * as i10 from "./calendar/calendar.component";
|
|
12
|
+
import * as i11 from "./calendar-body/calendar-body.component";
|
|
13
|
+
import * as i12 from "./number-fixed-len.pipe";
|
|
14
|
+
import * as i13 from "./date-time-inline/date-time-inline.component";
|
|
15
|
+
import * as i14 from "@angular/common";
|
|
16
|
+
import * as i15 from "@angular/cdk/overlay";
|
|
17
|
+
import * as i16 from "../dialog/dialog.module";
|
|
18
|
+
import * as i17 from "@angular/cdk/a11y";
|
|
19
|
+
export declare class DateTimeModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimeModule, [typeof i1.DateTimeTriggerDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeComponent, typeof i4.DateTimeContainerComponent, typeof i5.MultiYearViewComponent, typeof i6.YearViewComponent, typeof i7.MonthViewComponent, typeof i8.TimerComponent, typeof i9.TimerBoxComponent, typeof i10.CalendarComponent, typeof i11.CalendarBodyComponent, typeof i12.NumberFixedLenPipe, typeof i13.DateTimeInlineComponent], [typeof i14.CommonModule, typeof i15.OverlayModule, typeof i16.DialogModule, typeof i17.A11yModule], [typeof i10.CalendarComponent, typeof i8.TimerComponent, typeof i1.DateTimeTriggerDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeComponent, typeof i13.DateTimeInlineComponent, typeof i5.MultiYearViewComponent, typeof i6.YearViewComponent, typeof i7.MonthViewComponent]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DateTimeModule>;
|
|
23
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export declare class NumberFixedLenPipe implements PipeTransform {
|
|
5
|
-
transform(num: number | undefined, len: number | undefined): string | number | undefined;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFixedLenPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NumberFixedLenPipe, "numberFixedLen", false>;
|
|
8
|
-
}
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare class NumberFixedLenPipe implements PipeTransform {
|
|
5
|
+
transform(num: number | undefined, len: number | undefined): string | number | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFixedLenPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumberFixedLenPipe, "numberFixedLen", false>;
|
|
8
|
+
}
|
|
@@ -1,131 +1,131 @@
|
|
|
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": "pickerMoment"; "min": "min"; "max": "max"; "showSecondsTimer": "showSecondsTimer"; "hour12Timer": "hour12Timer"; "stepHour": "stepHour"; "stepMinute": "stepMinute"; "stepSecond": "stepSecond"; }, { "selectedChange": "selectedChange"; }, never, never, false, never>;
|
|
131
|
-
}
|
|
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 +1,37 @@
|
|
|
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": "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>;
|
|
37
|
-
}
|
|
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
|
+
}
|