nxt-pick-datetime 19.0.4 → 21.0.0-alpha.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.
Files changed (49) hide show
  1. package/README.md +11 -14
  2. package/assets/picker.scss +23 -23
  3. package/fesm2022/nxt-pick-datetime-moment-adapter.mjs +19 -27
  4. package/fesm2022/nxt-pick-datetime-moment-adapter.mjs.map +1 -1
  5. package/fesm2022/nxt-pick-datetime-native-adapter.mjs +19 -22
  6. package/fesm2022/nxt-pick-datetime-native-adapter.mjs.map +1 -1
  7. package/fesm2022/nxt-pick-datetime.mjs +1862 -2637
  8. package/fesm2022/nxt-pick-datetime.mjs.map +1 -1
  9. package/package.json +16 -13
  10. package/types/nxt-pick-datetime-moment-adapter.d.ts +25 -0
  11. package/types/nxt-pick-datetime-native-adapter.d.ts +13 -0
  12. package/types/nxt-pick-datetime.d.ts +1200 -0
  13. package/index.d.ts +0 -5
  14. package/lib/class/date-time-adapter.class.d.ts +0 -176
  15. package/lib/class/date-time-format.class.d.ts +0 -12
  16. package/lib/class/date-time.class.d.ts +0 -76
  17. package/lib/class/dialog-config.class.d.ts +0 -90
  18. package/lib/class/dialog-ref.class.d.ts +0 -50
  19. package/lib/date-time/calendar/calendar.component.d.ts +0 -147
  20. package/lib/date-time/calendar-body/calendar-body.component.d.ts +0 -79
  21. package/lib/date-time/calendar-month-view/calendar-month-view.component.d.ts +0 -139
  22. package/lib/date-time/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +0 -115
  23. package/lib/date-time/calendar-year-view/calendar-year-view.component.d.ts +0 -123
  24. package/lib/date-time/date-time-inline/date-time-inline.component.d.ts +0 -106
  25. package/lib/date-time/date-time-picker/date-time-picker.component.d.ts +0 -172
  26. package/lib/date-time/date-time-picker-container/date-time-picker-container.animations.d.ts +0 -6
  27. package/lib/date-time/date-time-picker-container/date-time-picker-container.component.d.ts +0 -129
  28. package/lib/date-time/date-time-picker-input.directive.d.ts +0 -167
  29. package/lib/date-time/date-time-picker-intl.service.d.ts +0 -51
  30. package/lib/date-time/date-time-picker-trigger.directive.d.ts +0 -22
  31. package/lib/date-time/date-time.module.d.ts +0 -23
  32. package/lib/date-time/number-fixed-len.pipe.d.ts +0 -8
  33. package/lib/date-time/timer/timer.component.d.ts +0 -131
  34. package/lib/date-time/timer-box/timer-box.component.d.ts +0 -37
  35. package/lib/dialog/dialog-container/dialog-container.component.d.ts +0 -69
  36. package/lib/dialog/dialog.module.d.ts +0 -12
  37. package/lib/dialog/dialog.service.d.ts +0 -78
  38. package/lib/utils/object.d.ts +0 -9
  39. package/moment-adapter/date-time-adapter.class.d.ts +0 -64
  40. package/moment-adapter/date-time-format.class.d.ts +0 -5
  41. package/moment-adapter/index.d.ts +0 -5
  42. package/moment-adapter/moment-adapter.module.d.ts +0 -8
  43. package/moment-adapter/public-api.d.ts +0 -2
  44. package/native-adapter/date-time-adapter.class.d.ts +0 -72
  45. package/native-adapter/date-time-format.class.d.ts +0 -5
  46. package/native-adapter/index.d.ts +0 -5
  47. package/native-adapter/native-adapter.module.d.ts +0 -9
  48. package/native-adapter/public-api.d.ts +0 -1
  49. package/public-api.d.ts +0 -14
package/package.json CHANGED
@@ -2,10 +2,13 @@
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": "19.0.4",
5
+ "version": "21.0.0-alpha.0",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
- "repository": "https://github.com/Liquid-JS/nxt-components.git",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/Liquid-JS/nxt-components.git"
11
+ },
9
12
  "homepage": "https://github.com/Liquid-JS/nxt-components/tree/master/packages/pick-datetime",
10
13
  "keywords": [
11
14
  "nxt-pick-datetime",
@@ -20,14 +23,14 @@
20
23
  "picker"
21
24
  ],
22
25
  "peerDependencies": {
23
- "@angular/animations": "^19.0.0",
24
- "@angular/cdk": "^19.0.0",
25
- "@angular/common": "^19.0.0",
26
- "@angular/core": "^19.0.0",
27
- "@angular/forms": "^19.0.0",
28
- "@angular/localize": "^19.0.0",
26
+ "@angular/animations": "^21.0.0",
27
+ "@angular/cdk": "^21.0.0",
28
+ "@angular/common": "^21.0.0",
29
+ "@angular/core": "^21.0.0",
30
+ "@angular/forms": "^21.0.0",
31
+ "@angular/localize": "^21.0.0",
29
32
  "moment": "^2.30.1",
30
- "rxjs": "^7.8.1"
33
+ "rxjs": "^7.8.2"
31
34
  },
32
35
  "dependencies": {
33
36
  "tslib": "^2.8.1"
@@ -40,19 +43,19 @@
40
43
  "default": "./package.json"
41
44
  },
42
45
  ".": {
43
- "types": "./index.d.ts",
46
+ "types": "./types/nxt-pick-datetime.d.ts",
44
47
  "default": "./fesm2022/nxt-pick-datetime.mjs"
45
48
  },
46
49
  "./moment-adapter": {
47
- "types": "./moment-adapter/index.d.ts",
50
+ "types": "./types/nxt-pick-datetime-moment-adapter.d.ts",
48
51
  "default": "./fesm2022/nxt-pick-datetime-moment-adapter.mjs"
49
52
  },
50
53
  "./native-adapter": {
51
- "types": "./native-adapter/index.d.ts",
54
+ "types": "./types/nxt-pick-datetime-native-adapter.d.ts",
52
55
  "default": "./fesm2022/nxt-pick-datetime-native-adapter.mjs"
53
56
  }
54
57
  },
55
58
  "module": "fesm2022/nxt-pick-datetime.mjs",
56
- "typings": "index.d.ts",
59
+ "typings": "types/nxt-pick-datetime.d.ts",
57
60
  "sideEffects": false
58
61
  }
@@ -0,0 +1,25 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Provider } from '@angular/core';
3
+
4
+ /** Configurable options for {@see MomentDateAdapter} */
5
+ interface MomentDateTimeAdapterOptions {
6
+ /**
7
+ * Turns the use of utc dates on or off.
8
+ * Changing this will change how the DateTimePicker output value.
9
+ * {@default false}
10
+ */
11
+ useUtc: boolean;
12
+ }
13
+ /** InjectionToken for moment date adapter to configure options */
14
+ declare const NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS: InjectionToken<MomentDateTimeAdapterOptions>;
15
+
16
+ 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
+
24
+ export { MomentDateTimeModule, NXT_MOMENT_DATE_TIME_ADAPTER_OPTIONS, provideMomentDateTimeAdapter };
25
+ export type { MomentDateTimeAdapterOptions };
@@ -0,0 +1,13 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Provider } from '@angular/core';
3
+ import * as i1 from '@angular/cdk/platform';
4
+
5
+ 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
+
13
+ export { NativeDateTimeModule, provideNativeDateTimeAdapter };