@messaia/cdk 13.3.3-rc12 → 13.3.3-rc15
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/common/models/base-entity.mjs +2 -2
- package/esm2020/lib/forms/components/generic-form/generic-form.component.mjs +53 -38
- package/fesm2015/messaia-cdk.mjs +51 -35
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +49 -34
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/forms/components/generic-form/generic-form.component.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
5
6
|
import { FormFieldType } from '../../enums/form-field-type';
|
|
6
7
|
import { FormFieldDefinition } from '../../models/form-field-definition';
|
|
@@ -91,6 +92,18 @@ export declare class VdGenericFormComponent implements OnInit {
|
|
|
91
92
|
* It is invoked only once when the directive is instantiated.
|
|
92
93
|
*/
|
|
93
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;
|
|
94
107
|
/**
|
|
95
108
|
* Adds a chip
|
|
96
109
|
* @param field
|
|
@@ -103,6 +116,12 @@ export declare class VdGenericFormComponent implements OnInit {
|
|
|
103
116
|
* @param chip
|
|
104
117
|
*/
|
|
105
118
|
removeChip(field: FormFieldDefinition, chip: any): void;
|
|
119
|
+
/**
|
|
120
|
+
* Adds a chip
|
|
121
|
+
* @param field
|
|
122
|
+
* @param value
|
|
123
|
+
*/
|
|
124
|
+
private _addChip;
|
|
106
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdGenericFormComponent, never>;
|
|
107
126
|
static ɵcmp: i0.ɵɵComponentDeclaration<VdGenericFormComponent, "vd-generic-form", never, { "formGroup": "formGroup"; "fieldGroups": "fieldGroups"; "groupName": "groupName"; "separatorKeysCodes": "separatorKeysCodes"; }, {}, ["editorTemplate", "codeTemplate", "fileTemplate", "customTemplate"], never>;
|
|
108
127
|
}
|