adb-shared 3.0.8 → 3.0.9

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.
@@ -1,9 +1,9 @@
1
1
  import { ElementRef, OnDestroy, OnInit, Renderer2, ViewContainerRef } from "@angular/core";
2
- import { ControlValueAccessor } from "@angular/forms";
2
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
3
3
  import { TranslateService } from "@ngx-translate/core";
4
4
  import { AdbDatePickerService } from "./adb-date-picker.service";
5
5
  import * as i0 from "@angular/core";
6
- export declare class AdbDatePickerDirective implements ControlValueAccessor, OnInit, OnDestroy {
6
+ export declare class AdbDatePickerDirective implements ControlValueAccessor, Validator, OnInit, OnDestroy {
7
7
  private viewContainerRef;
8
8
  private renderer;
9
9
  private elementRef;
@@ -25,18 +25,19 @@ export declare class AdbDatePickerDirective implements ControlValueAccessor, OnI
25
25
  onClick(): void;
26
26
  onKeyup(event: KeyboardEvent): void;
27
27
  onHide(): void;
28
- onBlur(): void;
29
28
  handleKeyboardEvent(event: KeyboardEvent): void;
30
29
  onCheckOutSideClick(target: any): void;
31
30
  ngOnDestroy(): void;
31
+ validate(control: AbstractControl): ValidationErrors;
32
+ onValidationChange: any;
33
+ registerOnValidatorChange?(fn: () => void): void;
32
34
  onChange: any;
33
35
  onTouched: any;
34
36
  writeValue(value: Date | string): void;
35
37
  registerOnChange(fn: any): void;
36
38
  registerOnTouched(fn: any): void;
37
39
  setDisabledState?(isDisabled: boolean): void;
38
- static parseDate(value: Date | string): Date;
39
- static tryParse(dateString: string, format: string): Date;
40
+ static tryParse(dateString: string): Date;
40
41
  private getId;
41
42
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbDatePickerDirective, never>;
42
43
  static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDatePickerDirective, "input[adbDatepicker]", never, { "format": "format"; "toLeft": "toLeft"; "settings": "settings"; "pickOnly": "pickOnly"; }, {}, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adb-shared",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "author": "ADB",
5
5
  "license": "ISC",
6
6
  "peerDependencies": {