@fovestta2/web-angular 1.0.26 → 1.0.27

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.
@@ -3,7 +3,7 @@ import { AbstractControl, FormBuilder, FormControl, FormGroup, FormArray } from
3
3
  import { ValidationSchema } from '@fovestta2/validation-engine';
4
4
  import * as i0 from "@angular/core";
5
5
  export type FieldType = 'text' | 'email' | 'number' | 'select' | 'name-code' | 'checkbox' | 'textarea' | 'date' | 'password' | 'radio' | 'file' | 'month-year' | 'phone' | 'uan' | 'pf' | 'esi' | 'ifsc' | 'micr' | 'iban' | 'service-period' | 'document' | 'time';
6
- export type ValidationType = 'required' | 'email' | 'minLength' | 'maxLength' | 'pattern' | 'min' | 'max' | 'custom' | 'passwordComplexity';
6
+ export type ValidationType = 'required' | 'email' | 'minLength' | 'maxLength' | 'pattern' | 'min' | 'max' | 'custom' | 'duplicate' | 'passwordComplexity';
7
7
  export interface FieldValidation {
8
8
  type: ValidationType;
9
9
  value?: any;
@@ -33,10 +33,11 @@ export declare class FvNameCodeComponent implements ControlValueAccessor, OnChan
33
33
  registerOnChange(fn: any): void;
34
34
  registerOnTouched(fn: any): void;
35
35
  setDisabledState(isDisabled: boolean): void;
36
+ errorMessage: string | null;
37
+ private validateValue;
36
38
  isInvalid(): boolean;
37
39
  isRequired(): boolean;
38
40
  getErrorMessage(): string;
39
- getReadableError(key: string): string;
40
41
  onClickOutside(event: MouseEvent): void;
41
42
  onKeyDown(event: KeyboardEvent): void;
42
43
  private scrollToHighlighted;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@fovestta2/web-angular",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Angular UI controls for Fovestta",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^18.0.0",
7
7
  "@angular/core": "^18.0.0",
8
8
  "@angular/forms": "^18.0.0",
9
- "@fovestta2/validation-engine": "^1.0.4"
9
+ "@fovestta2/validation-engine": "^1.0.5"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"