@fovestta2/web-angular 1.0.4 → 1.0.6
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/esm2022/lib/add-update-form/add-update-form.component.mjs +83 -26
- package/esm2022/lib/fv-checkbox/fv-checkbox.component.mjs +13 -3
- package/esm2022/lib/fv-controls.module.mjs +22 -4
- package/esm2022/lib/fv-date-field/fv-date-field.component.mjs +13 -3
- package/esm2022/lib/fv-dropdown/fv-dropdown.component.mjs +67 -6
- package/esm2022/lib/fv-email-field/fv-email-field.component.mjs +123 -0
- package/esm2022/lib/fv-entry-field/fv-entry-field.component.mjs +13 -3
- package/esm2022/lib/fv-esi-field/fv-esi-field.component.mjs +13 -3
- package/esm2022/lib/fv-file-selector/fv-file-selector.component.mjs +13 -3
- package/esm2022/lib/fv-iban-field/fv-iban-field.component.mjs +13 -3
- package/esm2022/lib/fv-ifsc-field/fv-ifsc-field.component.mjs +3 -3
- package/esm2022/lib/fv-image-selector/fv-image-selector.component.mjs +3 -3
- package/esm2022/lib/fv-micr-field/fv-micr-field.component.mjs +3 -3
- package/esm2022/lib/fv-month-year-field/fv-month-year-field.component.mjs +39 -3
- package/esm2022/lib/fv-name-code/fv-name-code.component.mjs +73 -38
- package/esm2022/lib/fv-number-field/fv-number-field.component.mjs +13 -3
- package/esm2022/lib/fv-password-field/fv-password-field.component.mjs +118 -0
- package/esm2022/lib/fv-pf-field/fv-pf-field.component.mjs +46 -4
- package/esm2022/lib/fv-phone-field/fv-phone-field.component.mjs +13 -3
- package/esm2022/lib/fv-radio-group/fv-radio-group.component.mjs +16 -3
- package/esm2022/lib/fv-rich-text-editor/fv-rich-text-editor.component.mjs +4 -4
- package/esm2022/lib/fv-uan-field/fv-uan-field.component.mjs +13 -3
- package/esm2022/lib/query-form/query-form.component.mjs +58 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/fovestta2-web-angular.mjs +874 -248
- package/fesm2022/fovestta2-web-angular.mjs.map +1 -1
- package/lib/add-update-form/add-update-form.component.d.ts +5 -2
- package/lib/fv-checkbox/fv-checkbox.component.d.ts +3 -2
- package/lib/fv-controls.module.d.ts +4 -1
- package/lib/fv-date-field/fv-date-field.component.d.ts +3 -2
- package/lib/fv-dropdown/fv-dropdown.component.d.ts +3 -0
- package/lib/fv-email-field/fv-email-field.component.d.ts +27 -0
- package/lib/fv-entry-field/fv-entry-field.component.d.ts +3 -1
- package/lib/fv-esi-field/fv-esi-field.component.d.ts +3 -2
- package/lib/fv-file-selector/fv-file-selector.component.d.ts +3 -2
- package/lib/fv-iban-field/fv-iban-field.component.d.ts +3 -2
- package/lib/fv-month-year-field/fv-month-year-field.component.d.ts +6 -2
- package/lib/fv-name-code/fv-name-code.component.d.ts +3 -0
- package/lib/fv-number-field/fv-number-field.component.d.ts +3 -2
- package/lib/fv-password-field/fv-password-field.component.d.ts +29 -0
- package/lib/fv-pf-field/fv-pf-field.component.d.ts +4 -2
- package/lib/fv-phone-field/fv-phone-field.component.d.ts +3 -2
- package/lib/fv-radio-group/fv-radio-group.component.d.ts +5 -3
- package/lib/fv-rich-text-editor/fv-rich-text-editor.component.d.ts +1 -1
- package/lib/fv-uan-field/fv-uan-field.component.d.ts +3 -2
- package/lib/query-form/query-form.component.d.ts +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { ValidationSchema } from '@
|
|
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';
|
|
6
|
-
export type ValidationType = 'required' | 'email' | 'minLength' | 'maxLength' | 'pattern' | 'min' | 'max' | 'custom';
|
|
6
|
+
export type ValidationType = 'required' | 'email' | 'minLength' | 'maxLength' | 'pattern' | 'min' | 'max' | 'custom' | 'passwordComplexity';
|
|
7
7
|
export interface FieldValidation {
|
|
8
8
|
type: ValidationType;
|
|
9
9
|
value?: any;
|
|
10
10
|
message?: string;
|
|
11
11
|
validator?: (value: any, formGroup?: FormGroup) => boolean;
|
|
12
|
+
params?: any;
|
|
13
|
+
errorKey?: string;
|
|
12
14
|
}
|
|
13
15
|
export interface FormColumn {
|
|
14
16
|
name: string;
|
|
@@ -33,6 +35,7 @@ export interface FormColumn {
|
|
|
33
35
|
showTimePicker?: boolean;
|
|
34
36
|
allowAlphabetsOnly?: boolean;
|
|
35
37
|
maxLength?: number;
|
|
38
|
+
layout?: 'vertical' | 'horizontal';
|
|
36
39
|
}
|
|
37
40
|
export interface FormSection {
|
|
38
41
|
title?: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FvCheckboxComponent implements OnInit {
|
|
4
|
+
export declare class FvCheckboxComponent implements OnInit, OnChanges {
|
|
5
5
|
label: string;
|
|
6
6
|
control: FormControl;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
required: boolean;
|
|
9
9
|
valueChange: EventEmitter<boolean>;
|
|
10
10
|
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
11
12
|
onChange(event: Event): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FvCheckboxComponent, never>;
|
|
13
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<FvCheckboxComponent, "fv-checkbox", never, { "label": { "alias": "label"; "required": false; }; "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
@@ -13,8 +13,11 @@ import * as i11 from "./fv-image-selector/fv-image-selector.component";
|
|
|
13
13
|
import * as i12 from "./fv-rich-text-editor/fv-rich-text-editor.component";
|
|
14
14
|
import * as i13 from "./fv-name-code/fv-name-code.component";
|
|
15
15
|
import * as i14 from "./add-update-form/add-update-form.component";
|
|
16
|
+
import * as i15 from "./query-form/query-form.component";
|
|
17
|
+
import * as i16 from "./fv-email-field/fv-email-field.component";
|
|
18
|
+
import * as i17 from "./fv-password-field/fv-password-field.component";
|
|
16
19
|
export declare class FvControlsModule {
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FvControlsModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FvControlsModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.FvEntryFieldComponent, typeof i4.FvDateFieldComponent, typeof i5.FvMonthYearFieldComponent, typeof i6.FvNumberFieldComponent, typeof i7.FvCheckboxComponent, typeof i8.FvRadioGroupComponent, typeof i9.FvDropdownComponent, typeof i10.FvFileSelectorComponent, typeof i11.FvImageSelectorComponent, typeof i12.FvRichTextEditorComponent, typeof i13.FvNameCodeComponent, typeof i14.AddUpdateFormComponent], [typeof i3.FvEntryFieldComponent, typeof i4.FvDateFieldComponent, typeof i5.FvMonthYearFieldComponent, typeof i6.FvNumberFieldComponent, typeof i7.FvCheckboxComponent, typeof i8.FvRadioGroupComponent, typeof i9.FvDropdownComponent, typeof i10.FvFileSelectorComponent, typeof i11.FvImageSelectorComponent, typeof i12.FvRichTextEditorComponent, typeof i13.FvNameCodeComponent, typeof i14.AddUpdateFormComponent]>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FvControlsModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.FvEntryFieldComponent, typeof i4.FvDateFieldComponent, typeof i5.FvMonthYearFieldComponent, typeof i6.FvNumberFieldComponent, typeof i7.FvCheckboxComponent, typeof i8.FvRadioGroupComponent, typeof i9.FvDropdownComponent, typeof i10.FvFileSelectorComponent, typeof i11.FvImageSelectorComponent, typeof i12.FvRichTextEditorComponent, typeof i13.FvNameCodeComponent, typeof i14.AddUpdateFormComponent, typeof i15.QueryFormComponent, typeof i16.FvEmailFieldComponent, typeof i17.FvPasswordFieldComponent], [typeof i3.FvEntryFieldComponent, typeof i4.FvDateFieldComponent, typeof i5.FvMonthYearFieldComponent, typeof i6.FvNumberFieldComponent, typeof i7.FvCheckboxComponent, typeof i8.FvRadioGroupComponent, typeof i9.FvDropdownComponent, typeof i10.FvFileSelectorComponent, typeof i11.FvImageSelectorComponent, typeof i12.FvRichTextEditorComponent, typeof i13.FvNameCodeComponent, typeof i14.AddUpdateFormComponent, typeof i15.QueryFormComponent, typeof i16.FvEmailFieldComponent, typeof i17.FvPasswordFieldComponent]>;
|
|
19
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<FvControlsModule>;
|
|
20
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy, OnChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvDateFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvDateFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
schema: ValidationSchema;
|
|
8
8
|
control: FormControl;
|
|
@@ -17,6 +17,7 @@ export declare class FvDateFieldComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
private subscription?;
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
ngOnDestroy(): void;
|
|
20
|
+
ngOnChanges(changes: import('@angular/core').SimpleChanges): void;
|
|
20
21
|
private extractConstraintsFromSchema;
|
|
21
22
|
private formatDate;
|
|
22
23
|
private validateValue;
|
|
@@ -23,6 +23,7 @@ export declare class FvDropdownComponent implements OnInit, OnDestroy, OnChanges
|
|
|
23
23
|
private subscription?;
|
|
24
24
|
searchControl: FormControl<string | null>;
|
|
25
25
|
filteredOptions: DropdownOption[];
|
|
26
|
+
highlightedIndex: number;
|
|
26
27
|
constructor(el: ElementRef);
|
|
27
28
|
ngOnInit(): void;
|
|
28
29
|
ngOnDestroy(): void;
|
|
@@ -34,6 +35,8 @@ export declare class FvDropdownComponent implements OnInit, OnDestroy, OnChanges
|
|
|
34
35
|
onContainerClick(event: MouseEvent): void;
|
|
35
36
|
closeDropdown(): void;
|
|
36
37
|
selectOption(option: DropdownOption): void;
|
|
38
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
39
|
+
private scrollToHighlighted;
|
|
37
40
|
onBlur(): void;
|
|
38
41
|
onClickOutside(event: MouseEvent): void;
|
|
39
42
|
onInputFocus(): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FvEmailFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
|
+
label: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
schema: ValidationSchema;
|
|
9
|
+
control: FormControl;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
valueChange: EventEmitter<string>;
|
|
13
|
+
blur: EventEmitter<void>;
|
|
14
|
+
focus: EventEmitter<void>;
|
|
15
|
+
errorMessage: string | null;
|
|
16
|
+
private subscription?;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
private validateValue;
|
|
21
|
+
onBlur(event?: FocusEvent): void;
|
|
22
|
+
onFocus(event?: FocusEvent): void;
|
|
23
|
+
isRequired(): boolean;
|
|
24
|
+
getErrorMessage(): string;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FvEmailFieldComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FvEmailFieldComponent, "fv-email-field", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "valueChange": "valueChange"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
3
4
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvEntryFieldComponent implements OnInit, OnDestroy {
|
|
6
|
+
export declare class FvEntryFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
7
|
label: string;
|
|
7
8
|
placeholder: string;
|
|
8
9
|
schema: ValidationSchema;
|
|
@@ -19,6 +20,7 @@ export declare class FvEntryFieldComponent implements OnInit, OnDestroy {
|
|
|
19
20
|
private subscription?;
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngOnDestroy(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
24
|
private validateValue;
|
|
23
25
|
onBlur(event?: FocusEvent): void;
|
|
24
26
|
onFocus(event?: FocusEvent): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvEsiFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvEsiFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
control: FormControl;
|
|
8
8
|
disabled: boolean;
|
|
@@ -13,6 +13,7 @@ export declare class FvEsiFieldComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
private subscription?;
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
17
|
onInput(event: Event): void;
|
|
17
18
|
validateValue(value: any): void;
|
|
18
19
|
isRequired(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -8,7 +8,7 @@ export interface FileInfo {
|
|
|
8
8
|
size: number;
|
|
9
9
|
type: string;
|
|
10
10
|
}
|
|
11
|
-
export declare class FvFileSelectorComponent implements OnInit, OnDestroy {
|
|
11
|
+
export declare class FvFileSelectorComponent implements OnInit, OnDestroy, OnChanges {
|
|
12
12
|
label: string;
|
|
13
13
|
placeholder: string;
|
|
14
14
|
schema: ValidationSchema;
|
|
@@ -24,6 +24,7 @@ export declare class FvFileSelectorComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
private subscription?;
|
|
25
25
|
ngOnInit(): void;
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
27
28
|
private validateValue;
|
|
28
29
|
onFileSelected(event: Event): void;
|
|
29
30
|
openFileDialog(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvIbanFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvIbanFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
control: FormControl;
|
|
8
8
|
disabled: boolean;
|
|
@@ -13,6 +13,7 @@ export declare class FvIbanFieldComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
private subscription?;
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
17
|
onInput(event: Event): void;
|
|
17
18
|
validateValue(value: any): void;
|
|
18
19
|
isRequired(): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvMonthYearFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvMonthYearFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
schema: ValidationSchema;
|
|
8
8
|
control: FormControl;
|
|
@@ -14,9 +14,11 @@ export declare class FvMonthYearFieldComponent implements OnInit, OnDestroy {
|
|
|
14
14
|
blur: EventEmitter<void>;
|
|
15
15
|
focus: EventEmitter<void>;
|
|
16
16
|
errorMessage: string | null;
|
|
17
|
+
displayValue: string;
|
|
17
18
|
private subscription?;
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
ngOnDestroy(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
22
|
private extractConstraintsFromSchema;
|
|
21
23
|
private formatMonth;
|
|
22
24
|
private validateValue;
|
|
@@ -24,6 +26,8 @@ export declare class FvMonthYearFieldComponent implements OnInit, OnDestroy {
|
|
|
24
26
|
onFocus(event?: FocusEvent): void;
|
|
25
27
|
isRequired(): boolean;
|
|
26
28
|
getErrorMessage(): string;
|
|
29
|
+
private updateDisplayValue;
|
|
30
|
+
openPicker(picker: HTMLInputElement): void;
|
|
27
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<FvMonthYearFieldComponent, never>;
|
|
28
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<FvMonthYearFieldComponent, "fv-month-year-field", never, { "label": { "alias": "label"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "valueChange": "valueChange"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
29
33
|
}
|
|
@@ -18,6 +18,7 @@ export declare class FvNameCodeComponent implements ControlValueAccessor {
|
|
|
18
18
|
searchControl: FormControl<string | null>;
|
|
19
19
|
filteredOptions: SearchSelectOption[];
|
|
20
20
|
isOpen: boolean;
|
|
21
|
+
highlightedIndex: number;
|
|
21
22
|
private onChange;
|
|
22
23
|
private onTouched;
|
|
23
24
|
value: any;
|
|
@@ -36,6 +37,8 @@ export declare class FvNameCodeComponent implements ControlValueAccessor {
|
|
|
36
37
|
getErrorMessage(): string;
|
|
37
38
|
getReadableError(key: string): string;
|
|
38
39
|
onClickOutside(event: MouseEvent): void;
|
|
40
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
41
|
+
private scrollToHighlighted;
|
|
39
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<FvNameCodeComponent, never>;
|
|
40
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<FvNameCodeComponent, "fv-name-code", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
41
44
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvNumberFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvNumberFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
placeholder: string;
|
|
8
8
|
schema: ValidationSchema;
|
|
@@ -19,6 +19,7 @@ export declare class FvNumberFieldComponent implements OnInit, OnDestroy {
|
|
|
19
19
|
private subscription?;
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
23
|
private validateValue;
|
|
23
24
|
onBlur(): void;
|
|
24
25
|
onFocus(): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FvPasswordFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
|
+
label: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
schema: ValidationSchema;
|
|
9
|
+
control: FormControl;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
valueChange: EventEmitter<string>;
|
|
13
|
+
blur: EventEmitter<void>;
|
|
14
|
+
focus: EventEmitter<void>;
|
|
15
|
+
errorMessage: string | null;
|
|
16
|
+
showPassword: boolean;
|
|
17
|
+
private subscription?;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
private validateValue;
|
|
22
|
+
toggleVisibility(): void;
|
|
23
|
+
onBlur(event?: FocusEvent): void;
|
|
24
|
+
onFocus(event?: FocusEvent): void;
|
|
25
|
+
isRequired(): boolean;
|
|
26
|
+
getErrorMessage(): string;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FvPasswordFieldComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FvPasswordFieldComponent, "fv-password-field", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "valueChange": "valueChange"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvPfFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvPfFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
control: FormControl;
|
|
8
8
|
disabled: boolean;
|
|
@@ -12,10 +12,12 @@ export declare class FvPfFieldComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
errorMessage: string | null;
|
|
13
13
|
private subscription?;
|
|
14
14
|
ngOnInit(): void;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
17
|
onInput(event: Event): void;
|
|
17
18
|
validateValue(value: any): void;
|
|
18
19
|
isRequired(): boolean;
|
|
20
|
+
getErrorMessage(): string;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FvPfFieldComponent, never>;
|
|
20
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<FvPfFieldComponent, "fv-pf-field", never, { "label": { "alias": "label"; "required": false; }; "control": { "alias": "control"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; }, { "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
21
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvPhoneFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvPhoneFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
control: FormControl;
|
|
8
8
|
disabled: boolean;
|
|
@@ -15,6 +15,7 @@ export declare class FvPhoneFieldComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private subscription?;
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
19
|
onInput(event: Event): void;
|
|
19
20
|
validateValue(value: any): void;
|
|
20
21
|
onBlur(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface RadioOption {
|
|
@@ -6,17 +6,19 @@ export interface RadioOption {
|
|
|
6
6
|
label: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare class FvRadioGroupComponent implements OnInit {
|
|
9
|
+
export declare class FvRadioGroupComponent implements OnInit, OnChanges {
|
|
10
10
|
label: string;
|
|
11
11
|
control: FormControl;
|
|
12
12
|
options: RadioOption[];
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
required: boolean;
|
|
15
15
|
name: string;
|
|
16
|
+
layout: 'vertical' | 'horizontal';
|
|
16
17
|
valueChange: EventEmitter<any>;
|
|
17
18
|
ngOnInit(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
20
|
onChange(value: any): void;
|
|
19
21
|
isSelected(value: any): boolean;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FvRadioGroupComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FvRadioGroupComponent, "fv-radio-group", never, { "label": { "alias": "label"; "required": false; }; "control": { "alias": "control"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FvRadioGroupComponent, "fv-radio-group", never, { "label": { "alias": "label"; "required": false; }; "control": { "alias": "control"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "name": { "alias": "name"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
22
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { ValidationSchema } from '@
|
|
3
|
+
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FvRichTextEditorComponent implements OnInit, OnDestroy {
|
|
6
6
|
label: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ValidationSchema } from '@fovestta2/validation-engine';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FvUanFieldComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class FvUanFieldComponent implements OnInit, OnDestroy, OnChanges {
|
|
6
6
|
label: string;
|
|
7
7
|
control: FormControl;
|
|
8
8
|
disabled: boolean;
|
|
@@ -13,6 +13,7 @@ export declare class FvUanFieldComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
private subscription?;
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
17
|
onInput(event: Event): void;
|
|
17
18
|
validateValue(value: any): void;
|
|
18
19
|
isRequired(): boolean;
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export interface QueryFormColumn {
|
|
6
6
|
label: string;
|
|
7
7
|
key: string;
|
|
8
|
-
type: 'dropdown' | 'text' | 'number' | 'date' | 'month' | 'file' | 'name-code' | 'phone' | 'uan' | 'pf' | 'esi' | 'ifsc' | 'micr' | 'iban';
|
|
8
|
+
type: 'dropdown' | 'text' | 'number' | 'date' | 'month' | 'file' | 'name-code' | 'phone' | 'uan' | 'pf' | 'esi' | 'ifsc' | 'micr' | 'iban' | 'email' | 'password';
|
|
9
9
|
options?: any[];
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
onChange?: (value: any) => void;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fovestta2/web-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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.
|
|
9
|
+
"@fovestta2/validation-engine": "^1.0.4"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -19,3 +19,5 @@ export * from './lib/fv-esi-field/fv-esi-field.component';
|
|
|
19
19
|
export * from './lib/fv-ifsc-field/fv-ifsc-field.component';
|
|
20
20
|
export * from './lib/fv-micr-field/fv-micr-field.component';
|
|
21
21
|
export * from './lib/fv-iban-field/fv-iban-field.component';
|
|
22
|
+
export * from './lib/fv-email-field/fv-email-field.component';
|
|
23
|
+
export * from './lib/fv-password-field/fv-password-field.component';
|