@ieeesa-npm/presentation 0.33.16 → 0.33.17
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/components/dynamic-form/dynamic-form.component.mjs +3 -3
- package/esm2022/lib/components/modal-info/modal-info.component.mjs +3 -3
- package/esm2022/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.mjs +89 -19
- package/esm2022/lib/models/field-config.model.mjs +1 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +92 -22
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.d.ts +18 -0
- package/lib/models/field-config.model.d.ts +6 -0
- package/package.json +1 -1
|
@@ -87,6 +87,24 @@ export declare class MultiSelectAutocompleteComponent implements OnInit, FormFie
|
|
|
87
87
|
* @memberof MultiSelectAutocompleteComponent
|
|
88
88
|
*/
|
|
89
89
|
onChange(option: any): AutoCompleteOption;
|
|
90
|
+
/**
|
|
91
|
+
* Clears the typeahead search text from both the reactive form control and the
|
|
92
|
+
* native input element without touching the selected chips. Uses
|
|
93
|
+
* `emitEvent: false` so the valueChanges search stream is not re-triggered.
|
|
94
|
+
* @memberof MultiSelectAutocompleteComponent
|
|
95
|
+
*/
|
|
96
|
+
private clearSearchInput;
|
|
97
|
+
/**
|
|
98
|
+
* Fires when focus leaves the search input (click outside / tab away). If text
|
|
99
|
+
* was typed but never committed as a chip (i.e. nothing was picked from the
|
|
100
|
+
* dropdown), clear it so stale search text is not left behind. Deferred with a
|
|
101
|
+
* short timeout so that if the blur was caused by clicking a dropdown option,
|
|
102
|
+
* onChange commits the selection first (and has already cleared the text),
|
|
103
|
+
* making this a no-op in that case. Clicking back into the same field does not
|
|
104
|
+
* blur it, so the text is preserved while the user is still editing.
|
|
105
|
+
* @memberof MultiSelectAutocompleteComponent
|
|
106
|
+
*/
|
|
107
|
+
onInputBlur(): void;
|
|
90
108
|
/**
|
|
91
109
|
* Formats the selected options and emits the multiSelectAutoCompleteOptionSelected event.
|
|
92
110
|
* @param {SelectOption[]} selectedOptions -Array of selected options.
|
|
@@ -84,6 +84,12 @@ export interface FieldConfig {
|
|
|
84
84
|
canHideColorPicker?: boolean;
|
|
85
85
|
canHideTextInput?: boolean;
|
|
86
86
|
multiSelectAutoCompleteOptions?: AutoCompleteOption[];
|
|
87
|
+
/**
|
|
88
|
+
* When set, controls the reactive form update/validation strategy for this
|
|
89
|
+
* field (e.g. 'blur' so validation errors surface only after the user leaves
|
|
90
|
+
* the field, avoiding an error flash while interacting).
|
|
91
|
+
*/
|
|
92
|
+
updateOn?: 'change' | 'blur' | 'submit';
|
|
87
93
|
editorConfig?: EditorConfig;
|
|
88
94
|
isAllowAnyFileType?: boolean;
|
|
89
95
|
alignBrowsedFiles?: AlignBrowsedFiles;
|