@wemake4u/form-player-se 1.0.36 → 1.0.37

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.
@@ -6,3 +6,5 @@ export declare class DateDirective {
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DateDirective, [{ host: true; }]>;
7
7
  static ɵdir: i0.ɵɵDirectiveDeclaration<DateDirective, "[isoDate]", never, {}, {}, never, never, true, never>;
8
8
  }
9
+ export declare function dateToDisplay(value: string): string | null;
10
+ export declare function dateToStore(value: string): string | null;
@@ -0,0 +1,42 @@
1
+ import { AfterViewInit, OnDestroy, Renderer2 } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { SirioDatepickerComponent, SirioTimepickerComponent } from 'ngx-sirio-lib';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DateTimeCoordinatorDirective implements ControlValueAccessor, AfterViewInit, OnDestroy {
6
+ datePicker: SirioDatepickerComponent;
7
+ timePicker: SirioTimepickerComponent;
8
+ private onChange;
9
+ private onTouched;
10
+ private dateValue;
11
+ private timeValue;
12
+ private destroy$;
13
+ ngOnDestroy(): void;
14
+ ngAfterViewInit(): void;
15
+ writeValue(value: any): void;
16
+ setDisabledState(isDisabled: boolean): void;
17
+ registerOnChange(fn: any): void;
18
+ registerOnTouched(fn: any): void;
19
+ private recalculate;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeCoordinatorDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeCoordinatorDirective, "[dateTimeCoordinator]", never, { "datePicker": { "alias": "datePicker"; "required": false; }; "timePicker": { "alias": "timePicker"; "required": false; }; }, {}, never, never, true, never>;
22
+ }
23
+ export declare class DateTimeValidationDirective implements AfterViewInit, OnDestroy {
24
+ private ngControl;
25
+ private renderer;
26
+ isWarning: boolean;
27
+ showWhenValid: boolean;
28
+ private sub?;
29
+ constructor(ngControl: NgControl, renderer: Renderer2);
30
+ ngOnDestroy(): void;
31
+ ngAfterViewInit(): void;
32
+ private getCoordinator;
33
+ private checkValidation;
34
+ private cleanupValidation;
35
+ private setValid;
36
+ private setInvalid;
37
+ private setWarning;
38
+ private setPending;
39
+ private applyClass;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeValidationDirective, never>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeValidationDirective, "[dateTimeValidator]", never, { "isWarning": { "alias": "isWarning"; "required": false; }; "showWhenValid": { "alias": "showWhenValid"; "required": false; }; }, {}, never, never, true, never>;
42
+ }
@@ -19,6 +19,7 @@ export declare class DynamicHostComponent implements AfterViewInit, OnChanges, O
19
19
  private isBindable;
20
20
  private setBinding;
21
21
  private setProperties;
22
+ private assignValue;
22
23
  private isControlValueAccessor;
23
24
  private resolveComponentType;
24
25
  private validProperties;
@@ -0,0 +1,6 @@
1
+ export declare function toLocalString(d: Date): string | null;
2
+ export declare function toLocalDateString(d: Date): string | null;
3
+ export declare function toLocalTimeString(d: Date): string | null;
4
+ export declare function isValidDateObject(value: any): value is Date;
5
+ export declare function isValidTime(value: string): boolean;
6
+ export declare function isValidDate(value: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@wemake4u/form-player-se",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
+ "license": "MIT",
4
5
  "peerDependencies": {
5
6
  "@angular/cdk": "^18.2.0",
6
7
  "@angular/common": "^18.2.0",