@messaia/cdk 13.3.3-rc10 → 13.3.3-rc13
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/esm2020/lib/forms/components/generic-form/generic-form.component.mjs +98 -24
- package/esm2020/lib/forms/enums/form-field-type.mjs +2 -1
- package/esm2020/lib/forms/forms.module.mjs +8 -4
- package/fesm2015/messaia-cdk.mjs +126 -47
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +123 -47
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/forms/components/generic-form/generic-form.component.d.ts +37 -1
- package/lib/forms/enums/form-field-type.d.ts +1 -0
- package/lib/forms/forms.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CdkPortal } from '@angular/cdk/portal';
|
|
2
2
|
import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
5
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
4
6
|
import { FormFieldType } from '../../enums/form-field-type';
|
|
5
7
|
import { FormFieldDefinition } from '../../models/form-field-definition';
|
|
6
8
|
import { FormFieldGroup } from '../../models/form-field-group';
|
|
@@ -50,6 +52,10 @@ export declare class VdGenericFormComponent implements OnInit {
|
|
|
50
52
|
* Group name
|
|
51
53
|
*/
|
|
52
54
|
groupName: string;
|
|
55
|
+
/**
|
|
56
|
+
* separatorKeysCodes: number[]
|
|
57
|
+
*/
|
|
58
|
+
separatorKeysCodes: number[];
|
|
53
59
|
/**
|
|
54
60
|
* fieldRows: FormFieldDefinition[]
|
|
55
61
|
*/
|
|
@@ -86,6 +92,36 @@ export declare class VdGenericFormComponent implements OnInit {
|
|
|
86
92
|
* It is invoked only once when the directive is instantiated.
|
|
87
93
|
*/
|
|
88
94
|
ngOnInit(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Handles autocomplete event
|
|
97
|
+
* @param field
|
|
98
|
+
* @param event
|
|
99
|
+
*/
|
|
100
|
+
filterAutocomplete(field: FormFieldDefinition, event: any): void;
|
|
101
|
+
/**
|
|
102
|
+
* Adds a chip when a autocomplete value is selected
|
|
103
|
+
* @param field
|
|
104
|
+
* @param event
|
|
105
|
+
*/
|
|
106
|
+
autocompleteValueSelected(field: FormFieldDefinition, event: MatAutocompleteSelectedEvent, chipInputEvent: any): void;
|
|
107
|
+
/**
|
|
108
|
+
* Adds a chip
|
|
109
|
+
* @param field
|
|
110
|
+
* @param event
|
|
111
|
+
*/
|
|
112
|
+
addChip(field: FormFieldDefinition, event: MatChipInputEvent): void;
|
|
113
|
+
/**
|
|
114
|
+
* Removes a chip
|
|
115
|
+
* @param field
|
|
116
|
+
* @param chip
|
|
117
|
+
*/
|
|
118
|
+
removeChip(field: FormFieldDefinition, chip: any): void;
|
|
119
|
+
/**
|
|
120
|
+
* Adds a chip
|
|
121
|
+
* @param field
|
|
122
|
+
* @param value
|
|
123
|
+
*/
|
|
124
|
+
private _addChip;
|
|
89
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdGenericFormComponent, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VdGenericFormComponent, "vd-generic-form", never, { "formGroup": "formGroup"; "fieldGroups": "fieldGroups"; "groupName": "groupName"; }, {}, ["editorTemplate", "codeTemplate", "fileTemplate", "customTemplate"], never>;
|
|
126
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VdGenericFormComponent, "vd-generic-form", never, { "formGroup": "formGroup"; "fieldGroups": "fieldGroups"; "groupName": "groupName"; "separatorKeysCodes": "separatorKeysCodes"; }, {}, ["editorTemplate", "codeTemplate", "fileTemplate", "customTemplate"], never>;
|
|
91
127
|
}
|
|
@@ -22,6 +22,7 @@ import * as i17 from "@angular/material/checkbox";
|
|
|
22
22
|
import * as i18 from "@angular/material/slide-toggle";
|
|
23
23
|
import * as i19 from "@angular/material/core";
|
|
24
24
|
import * as i20 from "@angular/material/autocomplete";
|
|
25
|
+
import * as i21 from "@angular/material/chips";
|
|
25
26
|
export { formFieldGroupMetadataKey } from './constants/constants';
|
|
26
27
|
export { FormFieldType } from './enums/form-field-type';
|
|
27
28
|
export { FormField, FormGroup } from './functions/decorators';
|
|
@@ -34,6 +35,6 @@ export { EqualValidator } from './validators/equal-validator.directive';
|
|
|
34
35
|
export { NativeElementInjectorDirective, UniqueValidatorDirective, MatFormFieldEditorDirective };
|
|
35
36
|
export declare class VdFormsModule {
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdFormsModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdFormsModule, [typeof i1.EqualValidator, typeof i2.UniqueValidatorDirective, typeof i3.NativeElementInjectorDirective, typeof i4.MatFormFieldReadonlyDirective, typeof i5.MatFormFieldEditorDirective, typeof i6.VdEditorDirective, typeof i6.VdCodeDirective, typeof i6.VdFileDirective, typeof i6.VdCustomDirective, typeof i6.VdGenericFormComponent], [typeof i7.CommonModule, typeof i8.VdCommonModule, typeof i9.VdSelectModule, typeof i10.VdChipsModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatFormFieldModule, typeof i13.MatSelectModule, typeof i14.MatIconModule, typeof i15.MatInputModule, typeof i16.MatDatepickerModule, typeof i17.MatCheckboxModule, typeof i18.MatSlideToggleModule, typeof i16.MatDatepickerModule, typeof i19.MatNativeDateModule, typeof i20.MatAutocompleteModule], [typeof i1.EqualValidator, typeof i2.UniqueValidatorDirective, typeof i3.NativeElementInjectorDirective, typeof i4.MatFormFieldReadonlyDirective, typeof i5.MatFormFieldEditorDirective, typeof i6.VdEditorDirective, typeof i6.VdCodeDirective, typeof i6.VdFileDirective, typeof i6.VdCustomDirective, typeof i6.VdGenericFormComponent]>;
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdFormsModule, [typeof i1.EqualValidator, typeof i2.UniqueValidatorDirective, typeof i3.NativeElementInjectorDirective, typeof i4.MatFormFieldReadonlyDirective, typeof i5.MatFormFieldEditorDirective, typeof i6.VdEditorDirective, typeof i6.VdCodeDirective, typeof i6.VdFileDirective, typeof i6.VdCustomDirective, typeof i6.VdGenericFormComponent], [typeof i7.CommonModule, typeof i8.VdCommonModule, typeof i9.VdSelectModule, typeof i10.VdChipsModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatFormFieldModule, typeof i13.MatSelectModule, typeof i14.MatIconModule, typeof i15.MatInputModule, typeof i16.MatDatepickerModule, typeof i17.MatCheckboxModule, typeof i18.MatSlideToggleModule, typeof i16.MatDatepickerModule, typeof i19.MatNativeDateModule, typeof i20.MatAutocompleteModule, typeof i21.MatChipsModule], [typeof i1.EqualValidator, typeof i2.UniqueValidatorDirective, typeof i3.NativeElementInjectorDirective, typeof i4.MatFormFieldReadonlyDirective, typeof i5.MatFormFieldEditorDirective, typeof i6.VdEditorDirective, typeof i6.VdCodeDirective, typeof i6.VdFileDirective, typeof i6.VdCustomDirective, typeof i6.VdGenericFormComponent]>;
|
|
38
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<VdFormsModule>;
|
|
39
40
|
}
|