@c10t/nice-component-library 0.0.21-e → 0.0.21-g

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,10 +1,10 @@
1
- import { AfterViewInit, EventEmitter, Injector, OnInit } from '@angular/core';
1
+ import { EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { ValidatorService } from '../services/validator.service';
4
4
  import { NiceComponentLibraryConfig } from '../models/nice-component-library.config';
5
5
  import { AlignEnum } from '../enums/align.enum';
6
6
  import * as i0 from "@angular/core";
7
- export declare class CvaInputComponent implements ControlValueAccessor, OnInit, AfterViewInit {
7
+ export declare class CvaInputComponent implements ControlValueAccessor, OnInit {
8
8
  private injector;
9
9
  label: string;
10
10
  name: string;
@@ -30,13 +30,12 @@ export declare class CvaInputComponent implements ControlValueAccessor, OnInit,
30
30
  patternFilter: string;
31
31
  isFormControl: boolean;
32
32
  formatFunc: any;
33
- control: AbstractControl | undefined;
33
+ formControl: AbstractControl | undefined;
34
34
  config: NiceComponentLibraryConfig;
35
35
  constructor(injector: Injector, ngControl: NgControl);
36
36
  get NsValidator(): typeof ValidatorService;
37
37
  get textValue(): string;
38
38
  set textValue(val: string);
39
- ngAfterViewInit(): void;
40
39
  ngOnInit(): void;
41
40
  callValidator(): void;
42
41
  propagateChange: (_: any) => void;
@@ -23,7 +23,7 @@ export declare class CvaLiveSearchingComponent implements ControlValueAccessor,
23
23
  isFormControl: boolean;
24
24
  row?: any;
25
25
  columnDef?: string;
26
- control: AbstractControl | undefined;
26
+ formControl: AbstractControl | undefined;
27
27
  textControl: FormControl<string>;
28
28
  filteredOptions: any[];
29
29
  selected: any;
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { MatDatepicker } from '@angular/material/datepicker';
3
4
  import { DateUtilService } from '../../services/date-util.service';
4
5
  import { NiceComponentLibraryConfig } from '../../models/nice-component-library.config';
5
6
  import { ValidatorService } from '../../services/validator.service';
@@ -23,6 +24,7 @@ export declare class CvaDatePickerComponent implements ControlValueAccessor, OnI
23
24
  config: NiceComponentLibraryConfig;
24
25
  isFormControl: boolean;
25
26
  formControl: AbstractControl | undefined;
27
+ datepicker: MatDatepicker<any> | undefined;
26
28
  constructor(dateServiceUtil: DateUtilService, ngControl: NgControl, injector: Injector);
27
29
  get NsValidator(): typeof ValidatorService;
28
30
  get datepickerValue(): any;
@@ -39,6 +41,7 @@ export declare class CvaDatePickerComponent implements ControlValueAccessor, OnI
39
41
  getMaxDate(): Date;
40
42
  isString(inputValue: any): boolean;
41
43
  isShowControl(): boolean;
44
+ openDatepicker(event: MouseEvent): void;
42
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CvaDatePickerComponent, [null, { optional: true; self: true; }, null]>;
43
46
  static ɵcmp: i0.ɵɵComponentDeclaration<CvaDatePickerComponent, "cva-date-picker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
44
47
  }
@@ -38,6 +38,7 @@ export declare class CvaRangeDatePickerComponent implements ControlValueAccessor
38
38
  isFormControl: boolean;
39
39
  formControl: AbstractControl | undefined;
40
40
  defaultFromDate: any;
41
+ picker: MatDateRangePicker<any> | undefined;
41
42
  constructor(dateServiceUtil: DateUtilService, ngControl: NgControl, injector: Injector);
42
43
  get NsValiator(): typeof ValidatorService;
43
44
  get fromDateValue(): any;
@@ -59,6 +60,7 @@ export declare class CvaRangeDatePickerComponent implements ControlValueAccessor
59
60
  checkRequired(isRequired: boolean | (() => boolean)): boolean;
60
61
  clearRange(event: Event): void;
61
62
  openPicker(picker: MatDateRangePicker<any>): void;
63
+ openRangePicker(event: MouseEvent): void;
62
64
  static ɵfac: i0.ɵɵFactoryDeclaration<CvaRangeDatePickerComponent, [null, { optional: true; self: true; }, null]>;
63
65
  static ɵcmp: i0.ɵɵComponentDeclaration<CvaRangeDatePickerComponent, "cva-range-date-picker", never, { "label": { "alias": "label"; "required": false; }; "placeholderFromDate": { "alias": "placeholderFromDate"; "required": false; }; "placeholderToDate": { "alias": "placeholderToDate"; "required": false; }; "disabledAll": { "alias": "disabledAll"; "required": false; }; "disabledFromDate": { "alias": "disabledFromDate"; "required": false; }; "value": { "alias": "value"; "required": false; }; "requiredFromDate": { "alias": "requiredFromDate"; "required": false; }; "requiredToDate": { "alias": "requiredToDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "fromDateControlName": { "alias": "fromDateControlName"; "required": false; }; "toDateControlName": { "alias": "toDateControlName"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; }, { "onChange": "onChange"; "onOpenPicker": "onOpenPicker"; }, never, never, false, never>;
64
66
  }