nxt-pick-datetime 21.0.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/picker.scss +13 -11
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs +5 -21
- package/fesm2022/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs +7 -24
- package/fesm2022/nxt-pick-datetime-native-adapter.mjs.map +1 -1
- package/fesm2022/nxt-pick-datetime.mjs +718 -526
- package/fesm2022/nxt-pick-datetime.mjs.map +1 -1
- package/package.json +6 -7
- package/types/nxt-pick-datetime-moment-adapter.d.ts +1 -8
- package/types/nxt-pick-datetime-native-adapter.d.ts +1 -9
- package/types/nxt-pick-datetime.d.ts +12 -12
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "nxt-pick-datetime",
|
|
3
3
|
"description": "Date time picker for Angular",
|
|
4
4
|
"bugs": "https://github.com/Liquid-JS/nxt-components/issues",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "22.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"repository": {
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
"picker"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@angular/
|
|
27
|
-
"@angular/
|
|
28
|
-
"@angular/
|
|
29
|
-
"@angular/
|
|
30
|
-
"@angular/
|
|
31
|
-
"@angular/localize": "^21.0.0",
|
|
26
|
+
"@angular/cdk": "^22.0.0",
|
|
27
|
+
"@angular/common": "^22.0.0",
|
|
28
|
+
"@angular/core": "^22.0.0",
|
|
29
|
+
"@angular/forms": "^22.0.0",
|
|
30
|
+
"@angular/localize": "^22.0.0",
|
|
32
31
|
"moment": "^2.30.1",
|
|
33
32
|
"rxjs": "^7.8.2"
|
|
34
33
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
1
|
import { InjectionToken, Provider } from '@angular/core';
|
|
3
2
|
|
|
4
3
|
/** Configurable options for {@see MomentDateAdapter} */
|
|
@@ -14,12 +13,6 @@ interface MomentDateTimeAdapterOptions {
|
|
|
14
13
|
declare const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS: InjectionToken<MomentDateTimeAdapterOptions>;
|
|
15
14
|
|
|
16
15
|
declare function provideMomentDateTimeAdapter(): Provider[];
|
|
17
|
-
/** @deprecated use provideMomentDateTimeAdapter */
|
|
18
|
-
declare class MomentDateTimeModule {
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateTimeModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateTimeModule, never, never, never>;
|
|
21
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MomentDateTimeModule>;
|
|
22
|
-
}
|
|
23
16
|
|
|
24
|
-
export {
|
|
17
|
+
export { NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS, provideMomentDateTimeAdapter };
|
|
25
18
|
export type { MomentDateTimeAdapterOptions };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
1
|
import { Provider } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/cdk/platform';
|
|
4
2
|
|
|
5
3
|
declare function provideNativeDateTimeAdapter(): Provider[];
|
|
6
|
-
/** @deprecated use provideNativeDateTimeAdapter */
|
|
7
|
-
declare class NativeDateTimeModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateTimeModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateTimeModule, never, [typeof i1.PlatformModule], never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NativeDateTimeModule>;
|
|
11
|
-
}
|
|
12
4
|
|
|
13
|
-
export {
|
|
5
|
+
export { provideNativeDateTimeAdapter };
|
|
@@ -547,6 +547,8 @@ declare class CalendarComponent<T> {
|
|
|
547
547
|
private readonly elmRef;
|
|
548
548
|
private readonly pickerIntl;
|
|
549
549
|
private readonly ngZone;
|
|
550
|
+
private readonly injector;
|
|
551
|
+
private readonly destroyRef;
|
|
550
552
|
private readonly dateTimeAdapter;
|
|
551
553
|
private readonly dateTimeFormats;
|
|
552
554
|
/**
|
|
@@ -741,7 +743,8 @@ declare class DateTimeComponent<T> extends DateTimeDirective<T> implements OnDes
|
|
|
741
743
|
private readonly overlay;
|
|
742
744
|
private readonly viewContainerRef;
|
|
743
745
|
private readonly dialogService;
|
|
744
|
-
private readonly
|
|
746
|
+
private readonly injector;
|
|
747
|
+
private readonly destroyRef;
|
|
745
748
|
private readonly defaultScrollStrategy;
|
|
746
749
|
private readonly document;
|
|
747
750
|
/** Custom class for the picker backdrop */
|
|
@@ -837,7 +840,7 @@ declare class DateTimeComponent<T> extends DateTimeDirective<T> implements OnDes
|
|
|
837
840
|
constructor();
|
|
838
841
|
ngOnDestroy(): void;
|
|
839
842
|
registerInput(inputDirective: DateTimeInputDirective<T>): void;
|
|
840
|
-
open(): void;
|
|
843
|
+
open(event?: PointerEvent): void;
|
|
841
844
|
/**
|
|
842
845
|
* Selects the given date
|
|
843
846
|
*/
|
|
@@ -1065,15 +1068,19 @@ declare class DateTimeIntl {
|
|
|
1065
1068
|
|
|
1066
1069
|
declare class DateTimeTriggerDirective<T> {
|
|
1067
1070
|
readonly dtPicker: _angular_core.InputSignal<DateTimeComponent<T> | undefined>;
|
|
1071
|
+
/** Use the event to calculate origin when opening in dialog mode */
|
|
1072
|
+
readonly dialogOrigin: _angular_core.InputSignal<boolean>;
|
|
1068
1073
|
readonly _disabled: _angular_core.InputSignal<boolean | undefined>;
|
|
1069
1074
|
readonly disabled: _angular_core.Signal<boolean>;
|
|
1070
|
-
handleClickOnHost(event:
|
|
1075
|
+
handleClickOnHost(event: PointerEvent): void;
|
|
1071
1076
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeTriggerDirective<any>, never>;
|
|
1072
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, { "dtPicker": { "alias": "nxtDateTimeTrigger"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1077
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, { "dtPicker": { "alias": "nxtDateTimeTrigger"; "required": false; "isSignal": true; }; "dialogOrigin": { "alias": "dialogOrigin"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1073
1078
|
}
|
|
1074
1079
|
|
|
1075
1080
|
declare class TimerComponent<T> {
|
|
1076
1081
|
private readonly ngZone;
|
|
1082
|
+
private readonly injector;
|
|
1083
|
+
private readonly destroyRef;
|
|
1077
1084
|
private readonly elmRef;
|
|
1078
1085
|
private readonly pickerIntl;
|
|
1079
1086
|
private readonly dateTimeAdapter;
|
|
@@ -1189,12 +1196,5 @@ declare class TimerComponent<T> {
|
|
|
1189
1196
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimerComponent<any>, "nxt-date-time-timer", never, { "pickerMoment": { "alias": "pickerMoment"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; "isSignal": true; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; "isSignal": true; }; "stepHour": { "alias": "stepHour"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "stepSecond": { "alias": "stepSecond"; "required": false; "isSignal": true; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
1190
1197
|
}
|
|
1191
1198
|
|
|
1192
|
-
|
|
1193
|
-
declare class DateTimeModule {
|
|
1194
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeModule, never>;
|
|
1195
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<DateTimeModule, never, [typeof CalendarComponent, typeof TimerComponent, typeof DateTimeTriggerDirective, typeof DateTimeInputDirective, typeof DateTimeComponent, typeof DateTimeInlineComponent, typeof MultiYearViewComponent, typeof YearViewComponent, typeof MonthViewComponent], [typeof CalendarComponent, typeof TimerComponent, typeof DateTimeTriggerDirective, typeof DateTimeInputDirective, typeof DateTimeComponent, typeof DateTimeInlineComponent, typeof MultiYearViewComponent, typeof YearViewComponent, typeof MonthViewComponent]>;
|
|
1196
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<DateTimeModule>;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
export { CalendarComponent, DateTimeAdapter, DateTimeComponent, DateTimeInlineComponent, DateTimeInputDirective, DateTimeIntl, DateTimeModule, DateTimeTriggerDirective, MonthViewComponent, MultiYearViewComponent, NXT_DATE_TIME_FORMATS, TimerComponent, YearViewComponent };
|
|
1199
|
+
export { CalendarComponent, DateTimeAdapter, DateTimeComponent, DateTimeInlineComponent, DateTimeInputDirective, DateTimeIntl, DateTimeTriggerDirective, MonthViewComponent, MultiYearViewComponent, NXT_DATE_TIME_FORMATS, TimerComponent, YearViewComponent };
|
|
1200
1200
|
export type { DateFilter, DateTimeFormats, DateTimeInputEvent, PickerMode, PickerType, RenderItem, SelectMode, ViewType };
|