@wkly/datetime-picker 17.1.0 → 18.1.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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@wkly/datetime-picker",
3
- "version": "17.1.0",
4
- "description": "Angular 17 integration for WKLY date and time picker",
3
+ "version": "18.1.0",
4
+ "description": "Angular 18 integration for WKLY date and time picker",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "peerDependencies": {
8
- "@angular/core": ">=17 <18",
9
- "@angular/common": ">=17 <18",
10
- "@angular/forms": ">=17 <18",
11
- "@angular/cdk": ">=17 <18",
8
+ "@angular/core": ">=18 <19",
9
+ "@angular/common": ">=18 <19",
10
+ "@angular/forms": ">=18 <19",
11
+ "@angular/cdk": ">=18 <19",
12
12
  "rxjs": "^6.5.3 || ^7.4.0"
13
13
  },
14
14
  "peerDependenciesMeta": {
@@ -44,7 +44,7 @@
44
44
  "repository": {
45
45
  "type": "git",
46
46
  "url": "git+https://github.com/cokkto/wkly-datetime-picker.git",
47
- "directory": "projects/wkly-datetime-picker.17"
47
+ "directory": "projects/wkly-datetime-picker.18"
48
48
  },
49
49
  "bugs": {
50
50
  "url": "https://github.com/cokkto/wkly-datetime-picker/issues"
@@ -1,11 +1,11 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit } from "@angular/core";
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from "@angular/core";
2
2
  import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
3
3
  import { WklyWeekOffset } from "@wkly/core";
4
+ import { WklyDraft as Draft, WklyWeekRow as Row, WklyPickerInputsPropertyKeys } from "@wkly/presentation";
4
5
  import { WklyCalendarAdapter, WklyCalendarDate, WklyPickerValue, WklyValidationError } from "@wkly/adapters";
5
- import { WklyDraft as Draft, WklyWeekRow as Row } from "@wkly/presentation";
6
- import { WklyClock, WklyCloseReason, WklyConfiguration, WklyJumpOptions, WklyPickerInputs, WklyPickerInputsPropertyKeys, WklyStrings, WklyTranslations } from "./config";
6
+ import { WklyClock, WklyCloseReason, WklyConfiguration, WklyJumpOptions, WklyPickerInputs, WklyStrings, WklyTranslations } from "./config";
7
7
  import * as i0 from "@angular/core";
8
- export declare class WklyDateTimePickerComponent extends WklyPickerInputs implements OnInit, OnChanges, AfterViewInit, OnDestroy, ControlValueAccessor, Validator {
8
+ export declare class WklyDateTimePickerComponent extends WklyPickerInputs implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, Validator {
9
9
  private defaultLocale;
10
10
  private defaults;
11
11
  private clock;
@@ -58,9 +58,13 @@ export declare class WklyDateTimePickerComponent extends WklyPickerInputs implem
58
58
  private pendingValue;
59
59
  private emittedValue;
60
60
  private manualDateEndpoint;
61
+ private readonly formValue;
62
+ private readonly formDisabled;
63
+ private previousInputs?;
64
+ currentValue(): WklyPickerValue;
65
+ isDisabled(): boolean;
61
66
  constructor(defaultLocale: string, defaults: WklyConfiguration, clock: WklyClock, strings: WklyStrings, defaultTranslations: WklyTranslations, platform: Object, host: ElementRef<HTMLElement>, changeDetector: ChangeDetectorRef);
62
67
  ngOnInit(): void;
63
- ngOnChanges(changes: any): void;
64
68
  initialize(): void;
65
69
  configure(): void;
66
70
  private setSupportedScrollRange;
package/presentation.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { ApplicationRef, ComponentFactoryResolver, ComponentRef, ElementRef, Injector, OnChanges, OnDestroy } from "@angular/core";
1
+ import { ApplicationRef, ComponentRef, ElementRef, EnvironmentInjector, Injector, OnDestroy } from "@angular/core";
2
2
  import { ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
3
3
  import { WklyCalendarDate, WklyPickerValue } from "@wkly/adapters";
4
- import { Subscription } from "rxjs";
5
4
  import { WklyCloseReason, WklyJumpOptions, WklyPickerInputs } from "./config";
6
5
  import { WklyDateTimePickerComponent } from "./picker.component";
7
6
  import * as i0 from "@angular/core";
@@ -11,32 +10,37 @@ export interface WklyPresentationRef {
11
10
  }
12
11
  /** Native-dialog factory. Browser resources are allocated only by open(). */
13
12
  export declare class WklyDateTimePickerDialogService {
14
- private resolver;
15
- private injector;
13
+ private environmentInjector;
16
14
  private app;
17
15
  private document;
18
16
  private platform;
19
- constructor(resolver: ComponentFactoryResolver, injector: Injector, app: ApplicationRef, document: Document, platform: Object);
17
+ constructor(environmentInjector: EnvironmentInjector, app: ApplicationRef, document: Document, platform: Object);
20
18
  open(trigger: HTMLElement, onCancel: (reason: WklyCloseReason) => void, backdrop?: boolean, injector?: Injector): WklyPresentationRef;
21
19
  static ɵfac: i0.ɵɵFactoryDeclaration<WklyDateTimePickerDialogService, never>;
22
20
  static ɵprov: i0.ɵɵInjectableDeclaration<WklyDateTimePickerDialogService>;
23
21
  }
24
22
  /** Shared trigger lifecycle; optional presentation packages extend this class. */
25
- export declare abstract class WklyTriggerBase extends WklyPickerInputs implements ControlValueAccessor, Validator, OnChanges, OnDestroy {
23
+ export declare abstract class WklyTriggerBase extends WklyPickerInputs implements ControlValueAccessor, Validator, OnDestroy {
26
24
  protected element: ElementRef<HTMLElement>;
27
25
  protected ref: WklyPresentationRef | null;
28
- protected subscriptions: Subscription[];
26
+ protected subscriptions: {
27
+ unsubscribe(): void;
28
+ }[];
29
29
  private errors;
30
30
  private change;
31
31
  private touched;
32
32
  private validation;
33
+ private readonly formValue;
34
+ private readonly formDisabled;
35
+ private previousInputs?;
36
+ private currentValue;
37
+ private isDisabled;
33
38
  constructor(element: ElementRef<HTMLElement>);
34
39
  protected abstract create(): WklyPresentationRef;
35
40
  open(): void;
36
41
  key(event: KeyboardEvent): void;
37
42
  blur(): void;
38
43
  close(reason?: WklyCloseReason): void;
39
- ngOnChanges(): void;
40
44
  ngOnDestroy(): void;
41
45
  private copy;
42
46
  private display;